/* إعدادات عامة */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #ff6b6b;
    --secondary-color: #5f27cd;
    --accent-color: #ff9ff3;
    --text-color: #333;
    --light-bg: #f9f7f7;
    --border-color: #ddd;
    --success-color: #10ac84;
    --error-color: #ee5253;
    --warning-color: #ff9f43;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    direction: rtl;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
}

/* الهيدر والتنقل */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    flex: 1;
    text-align: center;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 0;
}

header nav {
    display: none;
}

/* Add new styles for the hamburger menu */
.menu-toggle {
    display: block;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

.side-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 20px;
}

.side-menu.active {
    right: 0;
}

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.close-menu {
    font-size: 24px;
    cursor: pointer;
}

.side-menu ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.side-menu ul li a {
    display: block;
    padding: 10px 0;
    font-size: 18px;
    transition: color 0.3s;
}

.side-menu ul li a:hover {
    color: var(--primary-color);
}

/* Overlay style */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* الصفحة الرئيسية - قسم الترحيب */
.welcome-section {
    display: flex;
    padding: 3rem 5%;
    background-color: white;
    margin-bottom: 2rem;
}

.welcome-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.welcome-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.shop-now-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 5px;
    align-self: flex-start;
    transition: background-color 0.3s;
}

.shop-now-btn:hover {
    background-color: #ff5252;
}

.welcome-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.welcome-image img {
    max-width: 90%;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

/* قسم المنتجات */
.products-section {
    padding: 2rem 5%;
    background-color: white;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.products-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.products-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.load-more-btn {
    display: block;
    margin: 2rem auto 0;
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.load-more-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* بطاقة المنتج */
.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.quick-actions {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    transition: bottom 0.3s;
}

.product-card:hover .quick-actions {
    bottom: 10px;
}

.quick-actions button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: white;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s, color 0.3s;
}

.quick-add:hover {
    background-color: var(--success-color);
    color: white;
}

.quick-view:hover {
    background-color: var(--secondary-color);
    color: white;
}

.product-info {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-title {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-section {
    display: flex;
    align-items: center;
}

.add-to-cart-btn-small {
    background-color: var(--success-color);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    transition: background-color 0.3s;
    cursor: pointer;
}

.add-to-cart-btn-small:hover {
    background-color: #0c9472;
}

/* سلايد شو التخفيضات */
.sale-slider {
    padding: 2rem 5%;
    background-color: white;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.sale-slider h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.sale-slider h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.slider-container {
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.prev-btn {
    right: -20px;
}

.next-btn {
    left: -20px;
}

/* فلتر أصناف المنتجات */
.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s;
    min-width: 80px;
}

.category-item:hover {
    background-color: rgba(255, 107, 107, 0.1);
}

.category-item.active {
    background-color: rgba(255, 107, 107, 0.2);
    color: var(--primary-color);
}

.category-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--text-color);
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: var(--light-bg);
    transition: all 0.3s;
}

.category-item.active .category-icon {
    background: var(--primary-color);
    color: white;
}

.category-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .category-filter {
        gap: 10px;
    }
    
    .category-item {
        min-width: 65px;
        padding: 8px;
    }
    
    .category-icon {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }
    
    .category-item span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .category-filter {
        gap: 8px;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }
    
    .category-item {
        min-width: 60px;
    }
    
    .category-icon {
        font-size: 1.2rem;
        width: 35px;
        height: 35px;
    }
    
    .category-filter.mobile-grid {
        grid-template-columns: repeat(4, 1fr);
        overflow-x: hidden; 
    }
}

/* النوافذ المنبثقة */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.product-modal-content, .cart-modal-content {
    max-width: 900px;
}

.close-modal {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--error-color);
}

/* نموذج تسجيل الدخول والتسجيل */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Tajawal', sans-serif;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #ff5252;
}

/* عرض المنتج */
.product-view {
    display: flex;
    gap: 2rem;
}

.product-gallery {
    flex: 1;
}

.main-image {
    width: 100%;
    height: 300px;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-images {
    display: flex;
    gap: 0.5rem;
}

.thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.thumbnail.active, .thumbnail:hover {
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    flex: 1;
}

.product-details h2 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-description {
    margin-bottom: 1.5rem;
    color: #666;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.quantity-selector label {
    margin-left: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.quantity-btn.minus {
    border-radius: 5px 0 0 5px;
}

.quantity-btn.plus {
    border-radius: 0 5px 5px 0;
}

#quantity {
    width: 50px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-right: none;
    border-left: none;
    height: 30px;
}

.total-price {
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.add-to-cart-btn {
    width: 100%;
    background-color: var(--success-color);
    color: white;
    border: none;
    padding: 0.8rem;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
    background-color: #0c9472;
}

/* سلة التسوق */
.cart-items {
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    margin-left: 1rem;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-title {
    margin-bottom: 0.3rem;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.cart-item-price {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-color);
}

.quantity-indicator {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 12px;
    margin: 0 5px;
    font-size: 0.85rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    background-color: var(--light-bg);
    padding: 6px 10px;
    border-radius: 5px;
}

.remove-from-cart {
    color: var(--error-color);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    padding: 4px 10px;
    border-radius: 4px;
}

.remove-from-cart:hover {
    background-color: rgba(238, 82, 83, 0.15);
}

.cart-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cart-summary p {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.checkout-btn {
    width: 100%;
    max-width: 300px;
    background-color: var(--success-color);
    color: white;
    border: none;
    padding: 0.8rem;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.checkout-btn:hover {
    background-color: #0c9472;
}

.empty-cart-message {
    text-align: center;
    color: #888;
    padding: 2rem 0;
}

/* تحديث أسلوب التحكم بالكمية في السلة */
.cart-quantity-controls {
    display: inline-flex;
    align-items: center;
    margin: 0 10px;
}

.cart-quantity-btn {
    width: 24px;
    height: 24px;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 0;
    font-size: 12px;
}

.cart-quantity-btn.minus {
    border-radius: 3px 0 0 3px;
}

.cart-quantity-btn.plus {
    border-radius: 0 3px 3px 0;
}

.cart-quantity {
    width: 35px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-right: none;
    border-left: none;
    height: 24px;
    padding: 0;
    font-size: 12px;
}

/* لوحة المستخدم */
.user-dashboard {
    display: none;
    padding: 2rem 5%;
    background-color: white;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-header h2 {
    color: var(--secondary-color);
}

.user-info {
    flex: 1;
    text-align: left;
}

.add-product-btn {
    background-color: var(--success-color);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.add-product-btn:hover {
    background-color: #0c9472;
}

.logout-btn {
    background-color: var(--error-color);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: #e63946;
}

.dashboard-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    background-color: transparent;
    border: none;
    font-size: 1rem;
    color: #666;
    position: relative;
}

.tab-btn.active {
    color: var(--secondary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.orders-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.orders-list {
    display: grid;
    gap: 1.5rem;
}

.order-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
}

.order-number {
    font-weight: 500;
}

.order-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.status-pending {
    background-color: var(--warning-color);
    color: white;
}

.status-processing {
    background-color: var(--secondary-color);
    color: white;
}

.status-shipped {
    background-color: var(--success-color);
    color: white;
}

.status-delivered {
    background-color: #2ecc71;
    color: white;
}

.status-cancelled {
    background-color: var(--error-color);
    color: white;
}

.order-details {
    padding: 1rem;
}

.order-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.order-products {
    margin-bottom: 1rem;
}

.order-product {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.order-product:last-child {
    border-bottom: none;
}

.order-product-image {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
}

.order-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-product-details {
    flex: 1;
}

.order-total {
    text-align: left;
    font-size: 1.1rem;
    font-weight: 500;
}

.order-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

.order-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
}

.edit-order-btn {
    background-color: var(--secondary-color);
    color: white;
}

.cancel-order-btn {
    background-color: var(--error-color);
    color: white;
}

.user-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.user-product-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.user-product-image {
    width: 100%;
    height: 200px;
}

.user-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-product-details {
    padding: 1rem;
}

.user-product-title {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.user-product-price {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.user-product-actions {
    display: flex;
    justify-content: space-between;
}

.edit-product-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.delete-product-btn {
    background-color: var(--error-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.image-preview {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.preview-image {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-preview {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 20px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
}

/* الفوتر */
footer {
    background-color: #333;
    color: white;
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-logo h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-links h3, .footer-contact h3 {
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* تصميم متجاوب */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .user-products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .welcome-section {
        flex-direction: column;
    }

    .welcome-content {
        order: 2;
        text-align: center;
        margin-top: 2rem;
    }

    .welcome-content h2 {
        font-size: 2rem;
    }

    .shop-now-btn {
        align-self: center;
    }

    .welcome-image {
        order: 1;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-view {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .logo {
        order: 1;
        width: 50%;
    }

    nav {
        order: 3;
        width: 100%;
        margin-top: 1rem;
    }

    nav ul {
        justify-content: space-between;
    }

    nav ul li {
        margin-left: 0;
    }

    .products-section {
        padding: 1.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .user-products {
        grid-template-columns: 1fr;
    }

    .product-title {
        font-size: 0.9rem;
    }

    .product-modal-content, .cart-modal-content {
        padding: 1rem;
    }
}

/* Add new styles for floating cart icon */
.floating-cart {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 99;
    transition: transform 0.3s, background-color 0.3s;
}

.floating-cart:hover {
    transform: scale(1.1);
    background-color: #ff5252;
}

.floating-cart i {
    color: white;
    font-size: 24px;
}

.floating-cart .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--secondary-color);
    color: white;
    font-size: 14px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Add style for product navigation in modal */
.product-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    transform: translateY(-50%);
    z-index: 10;
}

.product-nav-btn {
    background-color: rgba(255,255,255,0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.product-nav-btn:hover {
    background-color: rgba(255,255,255,0.9);
}