:root {
    --primary-color: #4f46e5;
    --secondary-color: #10b981;
    --bg-color: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    /* متغيرات لوحة التحكم */
    --admin-sidebar-bg: #0f172a;
    --admin-sidebar-width: 260px;
    --admin-card-bg: #ffffff;
    --admin-accent: #6366f1;
    --admin-border: #e2e8f0;
    --success-light: #dcfce7;
    --success-dark: #166534;
}

.announcement-bar {
    background-color: var(--ann-bg);
    color: var(--ann-text);
    z-index: 1001;
    position: relative; /* ضروري لتحديد موقع زر الإغلاق */
}

.close-announcement {
    position: absolute;
    left: 15px; /* وضع الزر في جهة اليسار لأن المتجر RTL */
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 0 5px;
    z-index: 10;
}

.close-announcement:hover {
    opacity: 1;
}

.announcement-bar a {
    color: inherit;
    text-decoration: none;
}

* {
    box-sizing: border-box; /* يضمن أن الحواف لا تكسر عرض العناصر */
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: var(--header-position);
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    color: var(--header-text);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-links a {
    text-decoration: none;
    color: var(--header-text);
    margin-right: 20px;
    font-weight: 500;
    transition: color 0.2s;
}

.mobile-controls {
    display: none;
    align-items: center;
    gap: 15px;
}

.mobile-cart-btn {
    position: relative;
    color: var(--header-text);
    display: flex;
    align-items: center;
}

.mobile-cart-btn .cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border-radius: 0 0 50px 50px;
    margin-bottom: 40px;
}

.hero h2 { font-size: 2.5rem; margin-bottom: 10px; }
.hero p { font-size: 1.1rem; opacity: 0.9; }

.section-title {
    margin-bottom: 30px;
    font-size: 1.5rem;
    border-right: 5px solid var(--primary-color);
    padding-right: 15px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.product-image-container {
    width: 100%;
    aspect-ratio: 1 / 1; /* يضمن بقاء الحاوية مربعة تماماً بنسبة 1 إلى 1 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background-color: #f1f5f9; /* لون خلفية يظهر قبل تحميل الصورة */
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* لملء الحاوية بالكامل */
    transition: transform 0.5s ease;
}

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

.product-info {
    padding: 15px;
    flex-grow: 1;
}

.product-info h3 { margin: 0 0 8px 0; font-size: 1.1rem; color: var(--text-main); min-height: 2.8em; display: flex; align-items: center; }
.product-info p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 15px; }

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.price {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: bold;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.85rem;
}

.price-rating-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
}

.price-group {
    display: flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
}

.btn-buy {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 8px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.2s;
}

.btn-buy:hover { opacity: 0.9; }

.cart-badge {
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 0.75rem;
    vertical-align: middle;
}

.category-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    overflow-x: auto; /* يسمح بالتمرير الأفقي للتصنيفات على الهاتف */
    white-space: nowrap;
    padding: 10px 5px;
    -webkit-overflow-scrolling: touch;
}

.category-nav::-webkit-scrollbar { display: none; } /* إخفاء شريط التمرير لمظهر أنيق */

.category-link {
    background: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.category-link:hover, .category-link.active {
    background: var(--primary-color);
    color: white;
}

footer {
    background: var(--footer-bg);
    color: #f8fafc;
    padding: 60px 0 20px;
    margin-top: 80px;
    border-top: 1px solid #1e293b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
}

.footer-section p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.footer-bottom {
    padding-top: 25px;
    border-top: 1px solid #1e293b;
    color: #64748b;
    font-size: 0.9rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.payment-methods {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.payment-methods img {
    height: 24px;
    filter: none;
    transition: all 0.3s ease;
    opacity: 1;
}

.payment-methods img:hover {
    filter: grayscale(0) brightness(1);
    opacity: 1;
    transform: scale(1.1);
}

/* زر العودة للأعلى */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px; /* جهة اليسار لأن المتجر بالعربية RTL */
    background: var(--primary-color);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* إشعار الإضافة للسلة */
.cart-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    transform: translateX(120%);
    background: var(--white);
    width: 90%;
    max-width: 400px;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 2500;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: 1px solid #f1f5f9;
    overflow: hidden; /* لضمان عدم خروج شريط التحميل عن الحواف المنحنية */
}

.close-notification {
    position: absolute;
    top: 10px;
    left: 10px; /* وضع الزر في الجهة اليسرى لأن المحتوى عربي */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    z-index: 10;
    transition: color 0.2s;
}

.close-notification:hover {
    color: #ef4444; /* يتغير للون الأحمر عند التمرير */
}

.cart-notification.show {
    transform: translateX(0);
}

.cart-notification-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1rem;
}

.cart-notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.cart-notification-content img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
}

.cart-notification-content h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-main);
}

.cart-notification-btns {
    display: flex;
    gap: 10px;
}

.cart-notification-progress {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 4px;
    background: var(--secondary-color);
    width: 0;
}

.cart-notification.show .cart-notification-progress {
    animation: notification-progress 5s linear forwards;
}

@keyframes notification-progress {
    from { width: 100%; }
    to { width: 0%; }
}

.cart-notification.show ~ .cart-drawer { z-index: 2400; }

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    }

    @media (max-width: 768px) {
        .whatsapp-float {
            width: 50px;
            height: 50px;
            bottom: 20px;
            right: 20px;
        }
}

.checkout-container {
    max-width: 600px;
    margin: 40px auto;
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.qty-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
    background: #fff;
    animation: fadeIn 0.3s ease;
}

/* أنماط النوافذ المنبثقة (Modal) */
.settings-modal, .quick-buy-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--white);
    width: 90%;
    max-width: 400px;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 3000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.settings-modal.active, #quick-buy-modal.active {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.settings-overlay, #quick-buy-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.settings-overlay.active, #quick-buy-overlay.active {
    visibility: visible;
    opacity: 1;
}

.close-notification {
    cursor: pointer;
}

/* أنماط لوحة التحكم الحديثة */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
}

.admin-sidebar {
    width: var(--admin-sidebar-width);
    background: var(--admin-sidebar-bg);
    color: #cbd5e1;
    position: fixed;
    height: 100vh;
    right: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    z-index: 1001;
}

.admin-sidebar .sidebar-logo {
    padding: 0 25px 30px;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    border-bottom: 1px solid #1e293b;
    margin-bottom: 20px;
}

.admin-sidebar a {
    padding: 12px 25px;
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    font-weight: 500;
}

.admin-sidebar a:hover, .admin-sidebar a.active {
    background: rgba(99, 102, 241, 0.1);
    color: #fff;
    border-right: 4px solid var(--admin-accent);
}

.admin-main {
    flex: 1;
    margin-right: var(--admin-sidebar-width);
    padding: 30px;
    width: calc(100% - var(--admin-sidebar-width));
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.stat-card {
    background: var(--admin-card-bg);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid var(--admin-border);
}

.stat-card h3 { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 10px; }
.stat-card .value { font-size: 1.8rem; font-weight: 800; color: var(--text-main); }
.stat-card .trend { font-size: 0.8rem; margin-top: 8px; font-weight: 600; }

/* أيقونة واتساب العائمة */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* أنماط اختيار العملة */
.currency-selector {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
}

.currency-selector select {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 2px 5px;
    font-family: inherit;
    cursor: pointer;
    font-size: 0.75rem;
    outline: none;
    color: var(--text-main);
    height: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 16px; /* يمنع الزووم التلقائي المزعج في الجوال عند الضغط على الحقل */
}

/* أنماط لوحة التحكم */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.admin-table th, .admin-table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background: #f1f5f9;
    color: var(--text-main);
}
.admin-table thead th {
    padding: 15px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
}

.btn-add {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    margin-bottom: 20px;
}

.btn-delete {
    background: #ef4444;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}
.btn-delete:hover { opacity: 0.8; }

.btn-edit {
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.2s;
    margin-left: 5px;
}
.btn-edit:hover { opacity: 0.8; }

.login-container {
    max-width: 400px;
    margin: 100px auto;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* صفحة تفاصيل المنتج */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 50px;
}

.breadcrumb {
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.breadcrumb a { text-decoration: none; color: var(--primary-color); }
.breadcrumb .active { color: var(--text-main); font-weight: bold; }

.product-detail-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    object-fit: cover;
    padding: 0;
}

.product-detail-info h1 { margin: 0 0 15px 0; color: var(--text-main); font-size: 2.2rem; font-weight: 800; }

.product-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--secondary-color);
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
}

.detail-description { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 30px; }

.detail-price-section { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #f1f5f9; padding-top: 30px; }
.price-wrapper { display: flex; flex-direction: column; }
.price-wrapper .label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 4px; }
.price-wrapper .price { font-size: 2rem; color: var(--secondary-color); font-weight: 800; }

.related-section { margin-top: 60px; }

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .product-detail-info h1 { font-size: 1.5rem; }
    .detail-price-section { flex-direction: column; align-items: flex-start; }
    .detail-price-section .btn-buy { width: 100%; }
}

/* سلة المشتريات الجانبية */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    background: #000000;
    color: #ffffff;
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 25px rgba(0,0,0,0.5);
}

.cart-drawer.active {
    transform: translateX(0);
}

.cart-drawer-header {
    padding: 20px;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-header h3 { margin: 0; font-size: 1.2rem; }
#close-cart-btn { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

.cart-drawer-content { flex-grow: 1; overflow-y: auto; padding: 20px; }

.cart-drawer-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #111;
}

.cart-drawer-item img { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; }
.item-details h4 { margin: 0; font-size: 0.9rem; }
.item-details .price { color: var(--secondary-color); font-size: 0.9rem; }

.remove-item { color: #ef4444; text-decoration: none; font-size: 1.2rem; margin-right: auto; }

.cart-drawer-footer {
    padding: 20px;
    background: #0a0a0a;
    border-top: 1px solid #222;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 1.1rem;
}

/* تحسينات التصميم للهواتف */
@media (max-width: 768px) {
    .mobile-controls {
        display: flex;
    }

    .menu-toggle {
        display: flex; /* إظهار الزر في الهاتف */
    }

    .nav-links {
        display: flex;
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%); /* البداية من خارج الشاشة جهة اليمين */
        transition: transform 0.4s ease, opacity 0.3s ease;
        
        position: fixed; /* جعل القائمة ثابتة على كامل ارتفاع الشاشة */
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px; /* عرض القائمة الجانبية */
        height: 100vh;
        background: #000000; /* خلفية سوداء بالكامل */
        flex-direction: column;
        padding: 80px 30px 30px 30px; /* مسافة علوية لتجنب تداخل الأيقونات */
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        gap: 15px;
        text-align: right; /* محاذاة النص لليمين */
        z-index: 1000;
    }

    .currency-selector {
        display: block;
        margin: 10px 0;
        padding: 10px;
        border-top: 1px solid #222;
    }
    .currency-selector select {
        width: 100%;
        height: 45px;
        font-size: 1rem;
        background: #111;
        color: #fff;
        border-color: #333;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0); /* الدخول إلى الشاشة */
        display: flex !important;
    }

    .nav-links a {
        margin: 0;
        font-size: 1.2rem;
        padding: 10px;
        border-bottom: 1px solid #222; /* خطوط فاصلة داكنة */
        color: #ffffff; /* جعل الخط أبيض ليتناسب مع الخلفية السوداء */
    }

    .nav-links .cart-link {
        display: none !important;
    }

    .hero {
        padding: 40px 15px;
        border-radius: 0 0 30px 30px;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); /* توزيع مرن جداً */
        gap: 10px;
    }

    .product-info {
        padding: 10px;
    }

    .product-info h3 {
        font-size: 0.9rem;
        min-height: 3em; /* حجز مساحة لسطرين على الأقل في الجوال */
        display: flex;
        align-items: center;
    }

    .price-rating-row {
        gap: 4px;
    }

    .price-group {
        gap: 4px;
    }

    .price {
        font-size: 0.9rem !important;
    }

    .old-price {
        font-size: 0.7rem !important;
    }

    .product-info .rating {
        font-size: 0.7rem !important;
    }

    .checkout-container, .login-container {
        margin: 20px 10px;
        padding: 20px;
    }

    .category-link {
        padding: 6px 15px;
        font-size: 0.85rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}