/* 
    SADA Store — style.css (Premium Monochrome v2.0)
    تصميم عصري يركز على الفخامة، التناسق، وسهولة الاستخدام
*/

:root {
    --bg: #0a0a0a;
    --bg-rgb: 10, 10, 10;
    --bg2: #141414;
    --bg3: #1f1f1f;
    --border: #262626;
    --text: #ffffff;
    --muted: #8e8e93; /* تحسين التباين ليكون متوافقاً مع معايير WCAG AA */
    --accent: #ffffff;
    --danger: #ff453a;
    --success: #32d74b;
    --radius-sm: 10px;
    --radius-md: 24px;
    --font: 'IBM Plex Sans Arabic', sans-serif;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    --transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

body.light-mode {
    --bg: #ffffff;
    --bg-rgb: 255, 255, 255;
    --bg2: #f8f8f8;
    --bg3: #f0f0f0;
    --border: #e0e0e0;
    --text: #121212;
    --muted: #636366; /* تباين أفضل في الوضع الفاتح */
    --accent: #000000;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    direction: rtl;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
}

input,
button,
select,
textarea {
    font-family: var(--font);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: rgba(var(--bg-rgb), 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.navbar-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent);
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-container {
    position: relative;
    width: 280px;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    width: 18px !important;
    height: 18px !important;
    pointer-events: none;
}

.search-container input {
    width: 100%;
    padding: 10px 45px 10px 20px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--text);
    outline: none;
    transition: 0.3s;
    font-size: 0.85rem;
}

.search-container input:focus {
    border-color: var(--accent);
    background: var(--bg3);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    transition: 0.3s;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.icon-btn:hover {
    background: var(--bg3);
    color: var(--accent);
}

.cart-icon {
    position: relative;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--accent);
    color: var(--bg);
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg2); /* لون افتراضي في حال فشل الصورة */
    background-size: cover;
    background-position: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 35px;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    margin-bottom: 100px;
}

.feature-card {
    background: var(--bg2);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.feature-card svg,
.feature-card i {
    margin-bottom: 20px;
    color: var(--accent);
    opacity: 0.8;
}

.feature-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--muted);
    font-size: 0.9rem;
}

/* Collection Bar */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 20px;
}

.filter-bar {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    padding-bottom: 10px;
}

.filter-btn {
    padding: 10px 28px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 700;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

.product-card {
    background: var(--bg2);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: 0.4s;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.product-image {
    position: relative;
    padding-top: 130%;
    overflow: hidden;
    cursor: pointer;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
}

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

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: var(--bg);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
}

.product-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text);
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
}

/* Modal - Ultra Glass Design */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: rgba(var(--bg-rgb), 0.85);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    width: 95%;
    max-width: 950px;
    height: auto;
    max-height: 90vh;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    animation: modalFadeIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 25px;
    left: 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    backdrop-filter: blur(10px);
}

.close-modal:hover {
    background: var(--accent);
    color: var(--bg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 0;
    align-items: stretch;
    flex-grow: 1;
    overflow: hidden;
    min-height: 0;
    /* Critical for flex overflow */
}

.modal-gallery {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-gallery-main {
    width: 100%;
    height: 100%;
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    cursor: grab;
    background: transparent;
    line-height: 0;
}

.modal-slides-container {
    display: flex;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.modal-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.modal-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-info {
    padding: 40px;
    overflow-y: auto;
    background: transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 90vh;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.modal-info h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.modal-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
}

.modal-desc {
    color: var(--muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-options {
    margin-bottom: 35px;
}

.option-group {
    margin-bottom: 35px;
}

.option-group label {
    display: block;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--muted);
}

.size-picker,
.color-picker {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.size-btn,
.color-btn {
    padding: 10px 20px;
    border: 1px solid var(--border);
    background: var(--bg2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: 0.2s;
    font-weight: 700;
}

.size-btn:hover,
.size-btn.active {
    border-color: var(--accent);
    color: var(--accent);
}

.color-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    position: relative;
    border: 2px solid var(--border) !important;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
    padding: 0;
    aspect-ratio: 1/1;
}

.color-btn:hover {
    transform: scale(1.1);
    border-color: var(--accent) !important;
}

.color-btn.active {
    transform: scale(1.15);
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

.color-btn.active::after {
    content: '✓';
    font-size: 14px;
    color: white;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
    font-weight: 900;
}

/* Cart Sidebar */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 1500;
}

.cart-overlay.active {
    display: block;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: var(--bg);
    border-left: 1px solid var(--border);
    z-index: 2000;
    transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 30px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

#close-cart {
    background: none;
    border: none;
    color: var(--text);
    font-size: 2rem;
    cursor: pointer;
}

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

.cart-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.cart-item img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--bg2);
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.cart-item-info p {
    font-size: 0.85rem;
    color: var(--muted);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 5px;
}

.cart-footer {
    padding: 30px;
    border-top: 1px solid var(--border);
    background: var(--bg2);
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--muted);
}

.price-row.total {
    color: var(--text);
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 15px;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

/* Checkout Form */
.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#back-to-cart {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 0.85rem;
}

.form-input {
    width: 100%;
    padding: 14px 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    font-size: 0.9rem;
    outline: none;
}

.form-input:focus {
    border-color: var(--accent);
}

.coupon-section {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.coupon-section input {
    flex-grow: 1;
    margin-bottom: 0;
}

.coupon-section button {
    padding: 0 20px;
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: 0.3s;
}

.coupon-section button:hover {
    background: var(--accent);
    color: var(--bg);
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    padding-left: 40px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

/* ==========================================================================
   تحديثات الهواتف الذكية المخصصة (Responsive Fixes)
   ========================================================================== */
@media (max-width: 768px) {
    .navbar {
        height: 80px;
    }

    .search-container {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .features {
        grid-template-columns: 1fr;
        margin-top: 20px;
        padding: 0 20px;
    }

    .feature-card {
        padding: 30px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-card {
        border-radius: 12px;
    }

    .product-info {
        padding: 12px;
    }

    .product-title {
        font-size: 0.85rem;
        margin-bottom: 5px;
        height: 2.4em;
        overflow: hidden;
    }

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

    .product-image {
        padding-top: 120%;
    }

    /* إصلاح المودال (تفاصيل المنتج) في الهاتف */
    .modal-overlay {
        padding: 10px;
        /* تقليل الحواف لزيادة المساحة */
    }

    .modal-content {
        width: 100%;
        height: 85vh;
        /* تحديد ارتفاع ثابت ومريح للمودال */
        max-height: 85dvh;
        border-radius: 24px;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
        display: flex;
        flex-direction: column;
    }

    .modal-body {
        grid-template-columns: 1fr;
        /* تحويل العرض لعمود واحد */
        grid-template-rows: auto 1fr;
        /* تقسيم المساحة بين الصورة والتفاصيل */
        height: 100%;
        overflow: hidden;
    }

    .modal-gallery {
        height: 35vh;
        /* تحديد حجم ثابت ومناسب للصور في الهاتف */
        min-height: auto;
        flex-shrink: 0;
        border-radius: 24px 24px 0 0;
    }

    .modal-gallery-main {
        height: 100% !important;
    }

    .modal-info {
        padding: 20px;
        gap: 15px;
        background: transparent;
        overflow-y: auto;
        /* تفعيل السكرول للتفاصيل فقط في حال كانت طويلة */
        display: flex;
        flex-direction: column;
    }

    .modal-info h2 {
        font-size: 1.4rem;
        margin-bottom: 4px;
        line-height: 1.3;
    }

    .modal-price {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .modal-desc {
        font-size: 0.88rem;
        line-height: 1.6;
        margin-bottom: 15px;
    }

    .modal-options {
        margin-bottom: 15px;
    }

    .option-group {
        margin-bottom: 12px;
    }

    .size-btn {
        padding: 14px 22px;
        font-size: 0.95rem;
        border-radius: 12px;
        min-width: 60px;
        text-align: center;
    }

    .color-btn {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        aspect-ratio: 1 / 1;
    }

    .close-modal {
        top: 15px;
        left: 15px;
        width: 44px;
        height: 44px;
        background: rgba(var(--bg-rgb), 0.7);
        border: 1px solid rgba(255, 255, 255, 0.15);
        font-size: 1.2rem;
    }

    /* إصلاح السلة الجانبية وزر إتمام الطلب */
    .cart-sidebar {
        width: 100%;
        right: -100%;
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        /* استخدام الارتفاع الديناميكي لحل مشكلة أشرطة المتصفح */
    }

    .cart-header {
        padding: 20px;
        flex-shrink: 0;
    }

    .cart-items {
        padding: 15px;
        overflow-y: auto;
        min-height: 0;
        /* منع القائمة من تمديد الـ Flexbox وإخفاء الفوتر */
        flex-grow: 1;
    }

    .cart-footer {
        padding: 20px;
        background: var(--bg2);
        flex-shrink: 0;
        /* إجبار الفوتر على البقاء ظاهراً في الأسفل دائماً */
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
        /* دعم الهواتف ذات الحواف الدائرية مثل الآيفون */
    }

    .modal-gallery-main {
        height: 100% !important;
    }

    .modal-gallery {
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

@media (min-width: 769px) and (max-width: 1100px) {
    .modal-content {
        max-width: 700px;
        height: 550px;
    }

    .modal-info {
        padding: 30px;
    }
}

/* Modal Gallery & Slider - Professional Slide Style */
.modal-gallery {
    position: relative;
    width: 100%;
    background: transparent;
    overflow: hidden;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.modal-gallery-main {
    width: 100%;
    height: 100%;
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    cursor: grab;
}

.modal-slides-container {
    display: flex;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.modal-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.modal-thumbnails {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    pointer-events: auto;
    padding: 0;
    background: transparent;
    border: none;
}

.thumb-img {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.thumb-img.active {
    background: rgba(255, 255, 255, 0.9);
    width: 35px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}



/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* لا تخفِ العناصر إذا لم يتم تحميل الجافاسكريبت */
body:not(.js-ready) .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Loader */
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--bg2);
    border-bottom-color: var(--accent);
    border-radius: 50%;
    display: inline-block;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Footer Professional Styling */
.footer {
    background: var(--bg2);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
    margin-top: 100px;
    color: var(--text);
}

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

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}



.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-col.about p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 20px 0;
    max-width: 400px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--text);
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--accent);
    color: var(--bg);
    transform: translateY(-5px);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: var(--muted);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
}

.size-btn.active {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    transform: scale(1.05);
}

.modal-info::-webkit-scrollbar {
    width: 6px;
}

.modal-info::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.modal-info::-webkit-scrollbar-track {
    background: transparent;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 0.9rem;
}

.contact-item i {
    width: 18px;
    color: var(--accent);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 0.85rem;
}



.payment-icons {
    display: flex;
    gap: 20px;
}

.payment-icons i,
.payment-icons svg {
    opacity: 0.5;
    transition: 0.3s;
    width: 24px;
    height: 24px;
}

.payment-icons i:hover,
.payment-icons svg:hover {
    opacity: 1;
    color: var(--accent);
}

/* Content Pages (About, FAQ, Policy) */
.content-section {
    padding: 160px 0 100px;
    min-height: 80vh;
    animation: fadeIn 0.8s ease-out;
}

.content-box {
    max-width: 850px;
    margin: 0 auto 30px;
    background: rgba(var(--bg-rgb), 0.4);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    padding: 45px 50px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.content-box:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.content-box h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    letter-spacing: -1px;
}

/* Accordion Styling */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    width: 100%;
    padding: 22px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: right;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-chevron {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--muted);
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-content {
    overflow: hidden;
    padding: 0 28px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.faq-item.active .faq-answer-content {
    padding-bottom: 22px;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 9999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.toast {
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: scale(0.9);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    opacity: 1;
    transform: scale(1) translateY(20px);
}

/* Shake Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

.shake {
    animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Empty State UX */
.empty-cart-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px;
    animation: fadeIn 0.5s ease-out;
}

.empty-cart-ui i {
    font-size: 4rem;
    color: var(--muted);
    opacity: 0.3;
    margin-bottom: 25px;
}

.empty-cart-ui h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text);
}

.empty-cart-ui p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
    max-width: 250px;
}

/* Image Text Overlay */
.image-text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.content-box h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.content-box h2 {
    font-size: 1.6rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-box p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 20px;
}

.content-box ul {
    list-style: none;
    margin-bottom: 30px;
}

.content-box ul li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 15px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.content-box ul li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: var(--accent);
    font-weight: bold;
}

.faq-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text);
}

@media (max-width: 768px) {
    .content-box {
        padding: 30px 20px;
        border-radius: 0;
        border: none;
        background: transparent;
        box-shadow: none;
    }

    .content-box h1 {
        font-size: 2rem;
    }

    .content-section {
        padding-top: 100px;
    }
}