/* ===== CSS Variables & Design Tokens ===== */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f7f7f8;
    --bg-tertiary: #eeeef1;
    --bg-card: #fafafa;
    --bg-card-hover: #f1f2f4;

    --accent-primary: #6E737A;
    --accent-light: #BFC5CC;
    --accent-dark: #2c2f33;
    --accent-glow: rgba(110, 115, 122, 0.10);
    --accent-glow-strong: rgba(110, 115, 122, 0.22);

    --text-primary: #14161a;
    --text-secondary: #4a4d52;
    --text-muted: #6b6e73;
    --text-on-accent: #14161a;

    --border-color: rgba(20, 22, 26, 0.12);
    --border-hover: rgba(20, 22, 26, 0.32);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-accent: 0 10px 40px rgba(191, 197, 204, 0.18);

    --gradient-accent: linear-gradient(135deg, var(--accent-dark), var(--accent-primary), var(--accent-light));
    --gradient-dark: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    --gradient-card: linear-gradient(145deg, #ffffff, #fafafa);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --font-arabic: 'Tajawal', sans-serif;
    --font-display: 'Playfair Display', serif;

    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-base: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-dark) var(--bg-secondary);
}

section[id] {
    scroll-margin-top: 80px;
}

html::-webkit-scrollbar {
    width: 8px;
}

html::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

html::-webkit-scrollbar-thumb {
    background: var(--accent-dark);
    border-radius: 4px;
}

body {
    font-family: var(--font-arabic);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

body::before {
    width: 520px;
    height: 520px;
    top: -120px;
    right: -140px;
    background: radial-gradient(circle, rgba(191, 197, 204, 0.10), transparent 70%);
    animation: blob-float-a 22s ease-in-out infinite;
}

body::after {
    width: 620px;
    height: 620px;
    bottom: -180px;
    left: -160px;
    background: radial-gradient(circle, rgba(230, 232, 235, 0.07), transparent 70%);
    animation: blob-float-b 28s ease-in-out infinite;
}

@keyframes blob-float-a {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-40px, 60px) scale(1.08);
    }
}

@keyframes blob-float-b {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(60px, -50px) scale(1.12);
    }
}

main,
header,
footer,
section {
    position: relative;
    z-index: 1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: var(--font-arabic);
    transition: var(--transition-base);
}

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

/* ===== Page Loader ===== */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo {
    width: 120px;
    height: auto;
    object-fit: contain;
    animation: loaderPulse 1.5s ease-in-out infinite;
    filter: brightness(0);
}

.loader-bar {
    position: absolute;
    top: calc(100% + 24px);
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.loader-bar-fill {
    width: 0;
    height: 100%;
    background: #000000;
    border-radius: 3px;
    animation: loaderFill 1.8s ease forwards;
}

@keyframes loaderPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes loaderFill {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

/* ===== Header ===== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1500;
    transition: var(--transition-base);
}

.header-top {
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 50%, #f0f0f0 100%);
    color: #2c2f33;
    padding: 6px 0;
    font-size: 0.8rem;
    font-weight: 500;
    overflow: hidden;
}

.header-top .container {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.header-top span {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.header-top span i {
    color: #000000;
    font-size: 0.85rem;
}

.navbar {
    background: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0;
    transition: var(--transition-base);
}

.main-header.scrolled .navbar {
    background: #000000;
    border-bottom-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.main-header.scrolled .header-top {
    margin-top: -40px;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo img {
    height: 52px;
    filter: brightness(0) invert(1);
    transition: var(--transition-base);
}

.logo:hover img {
    filter: brightness(0) invert(0.85) sepia(1) hue-rotate(5deg) saturate(3);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

/* Hide mobile-only menu elements on desktop */
.mobile-menu-header-item,
.mobile-menu-divider-item,
.mobile-menu-footer-item {
    display: none;
}

.nav-link i {
    display: none;
}

.nav-link {
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #d0d3d8;
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: var(--transition-base);
}

.nav-link.active::after {
    width: 28px;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 24px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.cart-btn:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #14161a;
    transform: scale(1.05);
}

.account-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    cursor: pointer;
}

.account-btn:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #14161a;
    transform: scale(1.05);
}

.account-btn.logged-in {
    border-color: var(--accent-primary);
    background: rgba(110, 115, 122, 0.15);
}

.account-btn.logged-in:hover {
    background: #ffffff;
    color: #14161a;
}

.cart-count {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

/* ===== Auth Modal ===== */
.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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

.auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    padding: 2rem;
}

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

.auth-modal[hidden] {
    display: none;
}

.auth-modal-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.auth-modal-close:hover {
    background: var(--text-primary);
    color: #ffffff;
}

.auth-modal-inner {
    width: 100%;
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.auth-modal-header h2 {
    font-family: var(--font-arabic);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.auth-modal-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.auth-field label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.auth-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrap i:first-child {
    position: absolute;
    right: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
    pointer-events: none;
}

.auth-input-wrap input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 2.5rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-arabic);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.auth-input-wrap input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.auth-input-wrap input[dir="ltr"] {
    text-align: left;
}

.auth-toggle-pass {
    position: absolute;
    left: 30px;
    top: 40%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px;
    z-index: 1;
}

.auth-toggle-pass:hover {
    color: var(--text-primary);
}

.auth-forgot-link {
    align-self: flex-start;
    background: none;
    border: none;
    color: var(--accent-primary);
    font-family: var(--font-arabic);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.auth-forgot-link:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

.auth-submit-btn {
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--text-primary);
    color: #ffffff;
    font-family: var(--font-arabic);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 0.5rem;
}

.auth-submit-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.25rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.auth-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 0.75rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff;
    font-family: var(--font-arabic);
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.auth-google-btn:hover {
    background: #f8f8f8;
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.auth-google-btn svg {
    flex-shrink: 0;
}

.auth-switch {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-switch button {
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-arabic);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}

.auth-switch button:hover {
    color: var(--accent-primary);
}

.auth-error {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    text-align: center;
    animation: authErrorIn 0.3s;
}

.auth-error[hidden] {
    display: none;
}

@keyframes authErrorIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.auth-view[hidden] {
    display: none;
}

.cart-count.bump {
    animation: cartBump 0.3s ease;
}

@keyframes cartBump {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: var(--transition-base);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== Cart Sidebar ===== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

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

.cart-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 420px;
    max-width: 92vw;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    border-right: 1px solid rgba(20, 22, 26, 0.1);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(-100%);
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 12px 0 44px rgba(0, 0, 0, 0.15);
}

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

.cart-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: #ffffff;
    border-bottom: 1px solid rgba(20, 22, 26, 0.08);
}

.cart-header h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: #14161a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(20, 22, 26, 0.05);
    color: #14161a;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-close:hover {
    background: #14161a;
    color: #ffffff;
}

.cart-items {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 16px;
    background: #f8f9fa;
    scrollbar-width: thin;
    scrollbar-color: rgba(20, 22, 26, 0.2) transparent;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
}

.cart-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.cart-empty p {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--text-secondary);
}

.cart-item {
    position: relative;
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 12px;
    padding: 12px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(20, 22, 26, 0.08);
    margin-bottom: 10px;
    animation: fadeSlideIn 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cart-item:hover {
    border-color: rgba(20, 22, 26, 0.18);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cart-item-image {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f4f4f5;
    border: 1px solid rgba(20, 22, 26, 0.06);
}

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

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.cart-item-name {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    color: #14161a;
    padding-left: 26px;
}

.cart-item-detail {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.cart-item-bundle {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(139, 105, 20, 0.08);
    color: #8B6914;
    font-weight: 700;
    font-size: 0.74rem;
    border: 1px solid rgba(139, 105, 20, 0.2);
    width: fit-content;
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
}

.cart-item-price {
    font-size: 0.92rem;
    font-weight: 800;
    color: #14161a;
}

.cart-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cart-item-qty {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    background: #f1f2f4;
    border: 1px solid rgba(20, 22, 26, 0.1);
    border-radius: 999px;
}

.cart-qty-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    color: #14161a;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-qty-btn:hover {
    background: #14161a;
    color: #ffffff;
}

.cart-qty-value {
    min-width: 16px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #14161a;
}

.cart-item-remove {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    border: none;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-item-remove:hover {
    background: #dc2626;
    color: #ffffff;
}

.cart-footer {
    padding: 16px 18px 14px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.cart-discount-section {
    margin-bottom: 12px;
    padding: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.cart-discount-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: transparent;
    color: inherit;
    padding: 0;
}

.cart-discount-toggle-text {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cart-discount-label {
    display: block;
    margin-bottom: 0;
    color: var(--text-primary);
    font-size: 0.86rem;
    font-weight: 700;
}

.cart-discount-toggle-hint {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
}

.cart-discount-toggle i {
    color: var(--text-muted);
    font-size: 0.76rem;
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.cart-discount-section.is-expanded .cart-discount-toggle i {
    transform: rotate(180deg);
    color: #14161a;
}

.cart-discount-content {
    margin-top: 10px;
}

.cart-discount-section.is-collapsed .cart-discount-content {
    display: none;
}

.cart-discount-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: stretch;
}

.cart-discount-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-family: var(--font-arabic);
    font-size: 0.88rem;
    text-align: right;
    direction: rtl;
    transition: var(--transition-fast);
}

.cart-discount-input::placeholder {
    color: var(--text-muted);
}

.cart-discount-input:focus {
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.cart-discount-btn {
    min-width: 82px;
    padding: 0 14px;
    border-radius: var(--radius-md);
    background: #000000;
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 800;
}

.cart-discount-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.cart-discount-message {
    min-height: 16px;
    margin-top: 8px;
    font-size: 0.78rem;
    font-weight: 600;
}

.cart-discount-message.is-valid {
    color: #7bc89c;
}

.cart-discount-message.is-invalid {
    color: #ff7a7a;
}

.cart-discount-message.is-applied {
    color: #4a4d52;
}

.cart-discount-applied {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-discount-applied-row,
.cart-summary-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cart-discount-applied-row {
    margin-bottom: 4px;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 700;
}

.cart-discount-applied-value {
    display: block;
    color: #7bc89c;
    font-size: 0.78rem;
    font-weight: 700;
}

.cart-discount-remove {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-discount-remove:hover {
    border-color: #000000;
    color: #14161a;
}

.cart-summary-line {
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cart-summary-line span:last-child,
.cart-summary-discount span:last-child {
    font-weight: 700;
}

.cart-summary-discount span:last-child {
    color: #7bc89c;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.cart-total span:last-child {
    color: #14161a;
}

.cart-shipping-status {
    margin-bottom: 14px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(110,115,122,0.06), rgba(191,197,204,0.04));
    border: 1px solid rgba(20,22,26,0.06);
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}

.cart-shipping-status.unlocked {
    background: linear-gradient(135deg, rgba(34,197,94,0.10), rgba(16,185,129,0.05));
    border-color: rgba(34,197,94,0.25);
    box-shadow: 0 0 0 4px rgba(34,197,94,0.06);
}

.cart-shipping-status p {
    font-size: 0.86rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 500;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-shipping-status p strong {
    color: var(--accent-primary);
    font-weight: 800;
}

.cart-shipping-status.unlocked p {
    color: #15803d;
}

.cart-shipping-status.unlocked p strong {
    color: #15803d;
}

.cart-shipping-track {
    position: relative;
    width: 100%;
    height: 28px;
    padding-top: 14px;
}

.cart-shipping-bar {
    position: relative;
    width: 100%;
    height: 8px;
    background: rgba(20,22,26,0.08);
    border-radius: 999px;
    overflow: hidden;
}

.cart-shipping-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent-dark) 0%, var(--accent-primary) 50%, var(--accent-light) 100%);
    border-radius: inherit;
    transition: width 0.7s cubic-bezier(0.16,1,0.3,1), background 0.4s ease;
    position: relative;
    box-shadow: 0 0 8px rgba(110,115,122,0.3);
}

.cart-shipping-bar span::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    transform: translateX(-100%);
    animation: shippingShine 2.4s cubic-bezier(0.4,0,0.2,1) infinite;
}

@keyframes shippingShine {
    0%   { transform: translateX(-100%); }
    60%  { transform: translateX(220%); }
    100% { transform: translateX(220%); }
}

.cart-shipping-status.unlocked .cart-shipping-bar span {
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 50%, #4ade80 100%);
    box-shadow: 0 0 12px rgba(34,197,94,0.5);
}

.cart-shipping-truck {
    position: absolute;
    top: 0;
    /* progress var set inline by JS via custom property */
    right: var(--progress, 0%);
    transform: translateX(50%);
    transition: right 0.7s cubic-bezier(0.16,1,0.3,1);
    color: var(--accent-primary);
    font-size: 0.95rem;
    line-height: 1;
    z-index: 2;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

.cart-shipping-status.unlocked .cart-shipping-truck {
    color: #16a34a;
    animation: truckBounce 0.6s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes truckBounce {
    0%   { transform: translateX(50%) scale(1); }
    50%  { transform: translateX(50%) scale(1.4); }
    100% { transform: translateX(50%) scale(1); }
}

.cart-shipping-flag {
    position: absolute;
    top: 14px;
    left: 0;
    transform: translate(-50%, -50%);
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1;
    opacity: 0.6;
    transition: all 0.4s ease;
}

.cart-shipping-status.unlocked .cart-shipping-flag {
    color: #16a34a;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
}

.btn-checkout {
    width: 100%;
    padding: 13px;
    border-radius: var(--radius-md);
    background: #14161a;
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    border: 1px solid #14161a;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-checkout:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(20, 22, 26, 0.25);
}

.btn-clear-cart {
    width: 100%;
    padding: 9px;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-clear-cart:hover {
    background: rgba(220, 50, 50, 0.1);
    color: #ff4444;
    border-color: rgba(220, 50, 50, 0.2);
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(10, 10, 10, 0.5) 0%,
            rgba(10, 10, 10, 0.3) 40%,
            rgba(10, 10, 10, 0.7) 100%);
}

.slide-content {
    position: absolute;
    bottom: 15%;
    right: 8%;
    max-width: 600px;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide-badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.slide-content h1 {
    font-family: var(--font-arabic);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #ffffff;
    text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.6);
}

.slide-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
    line-height: 1.8;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: #ffffff;
    color: #14161a;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--radius-xl);
    transition: var(--transition-base);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: #f0f0f0;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.3);
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(-5px);
}

.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 5;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: var(--accent-glow);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-base);
}

.slider-dot.active {
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    z-index: 5;
    animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* ===== Features Bar ===== */
.features-bar {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 32px 0;
}

.features-bar .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.feature-item:hover {
    background: #f1f2f4;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f1f2f4;
    border: 1px solid rgba(20, 22, 26, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #14161a;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

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

/* ===== Section Common ===== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-badge {
    display: inline-block;
    padding: 5px 18px;
    background: #000000;
    border: 1px solid #000000;
    border-radius: 30px;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 14px;
}

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #14161a;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.section-divider span {
    width: 60px;
    height: 1px;
    background: #14161a;
}

.section-divider i {
    color: #14161a;
    font-size: 0.75rem;
}

/* ===== Products Grid ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 0 auto;
}

/* Musk pair view — each .musk-pair is one grid cell holding 2 cards side-by-side */
.products-grid.is-musk-view {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 24px;
}
.musk-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(20,22,26,0.06);
}
@media (min-width: 1100px) {
    .products-grid.is-musk-view { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .products-grid.is-musk-view { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

.product-card {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition-base);
    cursor: pointer;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideIn 0.5s ease forwards;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg, rgba(230, 232, 235, 0.18), transparent 45%, transparent 55%, rgba(191, 197, 204, 0.1));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 3;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-accent), 0 14px 40px rgba(0, 0, 0, 0.55);
    background: var(--bg-card-hover);
}

.product-card:hover::before {
    opacity: 1;
}

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

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: transparent;
}

.product-image::after {
    content: '';
    position: absolute;
    inset: auto 12% 7%;
    height: 16px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.28), transparent 70%);
    filter: blur(5px);
    pointer-events: none;
    z-index: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    transition: transform 0.6s ease, filter 0.6s ease;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.15));
}

.product-card:hover .product-image img {
    transform: scale(1.06) translateY(-4px);
    filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.22));
}

.product-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.badge-bestseller {
    background: #000000;
    color: #ffffff;
}

.wishlist-btn {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-muted);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.25s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    opacity: 0;
    transform: scale(0.8);
}

.product-card:hover .wishlist-btn,
.wishlist-btn.active {
    opacity: 1;
    transform: scale(1);
}

.wishlist-btn.active {
    color: #e11d48;
    background: #fff1f2;
}

.wishlist-btn:hover {
    transform: scale(1.15);
    color: #e11d48;
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.15) 0%, rgba(10, 10, 10, 0.75) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 22px;
    opacity: 0;
    transition: var(--transition-base);
    z-index: 2;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay-btn {
    padding: 12px 28px;
    border-radius: var(--radius-xl);
    background: #000000;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(10px);
    transition: var(--transition-base);
}

.product-card:hover .product-overlay-btn {
    transform: translateY(0);
}

.product-info {
    padding: 18px 20px;
}

.product-brand {
    font-size: 0.78rem;
    color: #4a4d52;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.product-gender {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 4px 12px;
    background: rgba(20, 22, 26, 0.05);
    border: 1px solid rgba(20, 22, 26, 0.12);
    border-radius: 20px;
    margin-bottom: 12px;
}

.product-prices {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(20, 22, 26, 0.1);
}

.price-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-size {
    font-size: 0.7rem;
    color: #4a4d52;
    margin-bottom: 2px;
}

.price-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: #14161a;
}

.price-currency {
    font-size: 0.7rem;
    font-weight: 500;
    color: #4a4d52;
}

.price-separator {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #4a4d52;
    opacity: 0.5;
    align-self: center;
}

/* ===== Category Strip ===== */
.category-strip-section {
    padding: 28px 0 8px;
    background: var(--bg-primary);
}
.category-strip {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 8px 12px 14px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}
.category-strip::-webkit-scrollbar { display: none; }
.category-item {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    padding: 4px 2px;
    min-width: 86px;
    flex-shrink: 0;
    font-family: inherit;
    color: var(--text-primary, #14161a);
    transition: transform 0.25s ease;
}
.category-item:hover { transform: translateY(-3px); }
.category-circle {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f2f4;
    border: 2px solid rgba(20,22,26,0.06);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.category-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.category-circle .ci-fallback {
    font-size: 1.8rem;
    color: #4a4d52;
}
.category-item:hover .category-circle {
    border-color: #000;
    box-shadow: 0 10px 26px rgba(0,0,0,0.14);
}
.category-item.active .category-circle {
    border-color: #000;
    box-shadow: 0 0 0 3px #000, 0 10px 26px rgba(0,0,0,0.18);
}
.category-label {
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    max-width: 90px;
}

@media (max-width: 600px) {
    .category-strip { justify-content: flex-start; gap: 14px; }
    .category-circle { width: 64px; height: 64px; }
    .category-item { min-width: 72px; }
    .category-label { font-size: 0.78rem; }
}

/* ===== Best Sellers Section ===== */
.best-sellers-section {
    background:
        radial-gradient(ellipse at top right, rgba(191,197,204,0.25), transparent 60%),
        radial-gradient(ellipse at bottom left, rgba(110,115,122,0.10), transparent 55%),
        var(--bg-secondary);
    overflow: hidden;
}

/* ===== New Arrivals Section ===== */
.new-arrivals-section {
    background:
        radial-gradient(ellipse at top left, rgba(191,197,204,0.18), transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(110,115,122,0.08), transparent 55%),
        var(--bg-primary);
    overflow: hidden;
}

/* ===== Gender Tabs (shared) — mirrors .filter-bar / .filter-btn ===== */
.gender-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 4px auto 22px;
    flex-wrap: wrap;
}
.gender-tab {
    padding: 10px 22px;
    border-radius: var(--radius-xl);
    background: #f1f2f4;
    border: 1px solid rgba(20, 22, 26, 0.12);
    color: #4a4d52;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.gender-tab:hover {
    border-color: #000000;
    color: #14161a;
    background: #e4e5e7;
}
.gender-tab.active {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.rail-empty {
    grid-column: 1/-1;
    text-align: center;
    color: var(--text-muted, #888);
    padding: 60px 20px;
    font-size: 1rem;
    width: 100%;
}

.best-sellers-rail-wrap {
    position: relative;
    margin: 0 -8px;
}

.best-sellers-rail {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    padding: 24px 16px 32px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

.best-sellers-rail::-webkit-scrollbar { display: none; }

.best-sellers-rail .product-card {
    flex: 0 0 auto;
    width: clamp(260px, 26vw, 320px);
    scroll-snap-align: center;
    position: relative;
    box-shadow: 0 12px 40px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.6s cubic-bezier(0.16,1,0.3,1), box-shadow 0.6s cubic-bezier(0.16,1,0.3,1);
}

.best-sellers-rail .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.16), 0 4px 12px rgba(0,0,0,0.08);
}

.bs-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.bs-nav:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}

.bs-nav-prev { right: -10px; }
.bs-nav-next { left: -10px; }

.bs-nav.is-hidden {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .best-sellers-rail .product-card { width: 44vw; min-width: 0; max-width: 280px; }
    .bs-nav { display: none; }
    .best-sellers-rail { padding: 16px 12px 24px; gap: 12px; }
}

@media (max-width: 480px) {
    .best-sellers-rail .product-card { width: 44vw; }
    .best-sellers-rail { padding: 14px 10px 20px; gap: 10px; }
}

/* ===== Filter Bar ===== */
/* ===== Catalog Controls (filter + meta) ===== */
.catalog-sentinel {
    height: 1px;
    width: 100%;
    pointer-events: none;
}

.catalog-controls {
    position: relative;
    top: auto;
    z-index: 10;
    margin: 0 0 28px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(20, 22, 26, 0.08);
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
}

.catalog-controls.is-stuck {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(20, 22, 26, 0.12);
}

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

.filter-btn {
    padding: 10px 22px;
    border-radius: var(--radius-xl);
    background: #f1f2f4;
    border: 1px solid rgba(20, 22, 26, 0.12);
    color: #4a4d52;
    font-size: 0.92rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #000000;
    color: #14161a;
    background: #e4e5e7;
}

.filter-btn.active {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.filter-count {
    display: none !important;
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.55;
    margin-inline-start: 2px;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}

.filter-btn.active .filter-count {
    opacity: 0.7;
}

.catalog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed rgba(20, 22, 26, 0.10);
    flex-wrap: wrap;
    transition: margin 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
}

.catalog-count {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.catalog-count strong {
    color: var(--text-primary);
    font-weight: 700;
    margin: 0 4px;
}

.sort-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.sort-control > i {
    font-size: 0.85rem;
    opacity: 0.7;
}

.sort-label {
    font-weight: 500;
}

.sort-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a4d52' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
    background-size: 12px 12px;
    background-color: #ffffff;
    border: 1px solid rgba(20, 22, 26, 0.14);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 8px 34px 8px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 180px;
}

[dir="rtl"] .sort-select {
    background-position: 12px center;
    padding: 8px 14px 8px 34px;
}

.sort-select:hover {
    border-color: rgba(20, 22, 26, 0.4);
}

.sort-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(110, 115, 122, 0.12);
}

@media (max-width: 768px) {
    .catalog-controls { padding: 12px 16px; margin: 0 0 22px; }
    .filter-bar { gap: 6px; }
    .filter-btn { padding: 8px 16px; font-size: 0.84rem; }
    .filter-count { font-size: 0.68rem; }
    .catalog-meta { flex-direction: row; gap: 10px; margin-top: 10px; padding-top: 10px; }
    .catalog-count { font-size: 0.82rem; }
    .sort-control { font-size: 0.82rem; }
    .sort-control .sort-label { display: none; }
    .sort-select { min-width: 140px; padding: 7px 28px 7px 10px; font-size: 0.82rem; }
    [dir="rtl"] .sort-select { padding: 7px 10px 7px 30px; }
}

@media (max-width: 480px) {
    .filter-btn .filter-label { font-size: 0.82rem; }
}

/* ===== Skeleton Loading Cards ===== */
.skeleton-card {
    pointer-events: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.skeleton-card .product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    background: rgba(20,22,26,0.05);
    border-radius: var(--radius-md);
    margin: 0;
    overflow: hidden;
}

.skeleton-card .product-info {
    padding: 14px 4px 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skel-line {
    height: 14px;
    background: rgba(20,22,26,0.07);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.skel-line.skel-line-sm { height: 10px; }

.skel-shimmer {
    position: relative;
    overflow: hidden;
}

.skel-shimmer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.55) 50%,
        transparent 100%
    );
    transform: translateX(-100%);
    animation: skelShimmer 1.5s ease-in-out infinite;
}

@keyframes skelShimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* RTL: shimmer slides right-to-left */
[dir="rtl"] .skel-shimmer::after {
    animation-name: skelShimmerRtl;
}

@keyframes skelShimmerRtl {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
    .skel-shimmer::after { animation: none; opacity: 0.5; }
}

/* ===== Catalog Empty State ===== */
.catalog-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    color: var(--text-secondary);
    background: linear-gradient(135deg, rgba(110,115,122,0.04), rgba(191,197,204,0.06));
    border: 1px dashed rgba(20,22,26,0.10);
    border-radius: var(--radius-lg);
    gap: 14px;
}

.catalog-empty i {
    font-size: 3rem;
    color: var(--accent-light);
    margin-bottom: 4px;
    opacity: 0.6;
}

.catalog-empty h3 {
    font-family: var(--font-arabic);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.catalog-empty p {
    font-size: 0.95rem;
    max-width: 380px;
    line-height: 1.7;
    margin: 0;
}

.catalog-empty .btn-secondary {
    margin-top: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-xl);
    background: var(--text-primary);
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.catalog-empty .btn-secondary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* ===== Show More Button ===== */
.show-more-container {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.btn-show-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    background: transparent;
    border: 1.5px solid #000000;
    color: #14161a;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-xl);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-show-more::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #000000;
    opacity: 0;
    transition: var(--transition-base);
}

.btn-show-more:hover::before {
    opacity: 1;
}

.btn-show-more:hover {
    color: #ffffff;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

.btn-show-more i,
.btn-show-more span {
    position: relative;
    z-index: 1;
}

.show-more-count {
    font-size: 0.82rem;
    opacity: 0.75;
    font-weight: 500;
}

/* ===== About Section ===== */

.about-section {
    background: var(--bg-secondary);
    overflow: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-logo {
    width: 220px;
    max-width: 75%;
    height: auto;
    object-fit: contain;
    filter: brightness(0);
    position: relative;
    z-index: 2;
}

.about-image-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 350px;
    height: 350px;
    border: 2px solid rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    animation: hrPulse 3s ease-out infinite;
    animation-delay: 0.75s;
    pointer-events: none;
}

.about-image-decoration::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    animation: hrPulse 3s ease-out infinite;
    animation-delay: 2.25s;
}

@keyframes rotateSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.about-image::before,
.about-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    animation: hrPulse 3s ease-out infinite;
    pointer-events: none;
    z-index: 1;
}

.about-image::after {
    animation-delay: 1.5s;
}

@keyframes hrPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 0.9;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

.about-text .section-badge {
    display: inline-block;
}

.about-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 12px 0;
    color: #14161a;
}

.about-lead {
    font-size: 1.15rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 16px !important;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.9;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat {
    text-align: center;
    padding: 20px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: #14161a;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    color: #4a4d52;
}

/* ===== Contact Section ===== */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1040px;
    margin: 0 auto;
}

.contact-card {
    text-align: center;
    padding: 36px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.contact-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-accent);
}

.contact-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 16px;
}

.contact-icon.whatsapp {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.contact-icon.instagram {
    background: rgba(228, 64, 95, 0.1);
    color: #E4405F;
    border: 1px solid rgba(228, 64, 95, 0.2);
}

.contact-icon.facebook {
    background: rgba(24, 119, 242, 0.1);
    color: #1877F2;
    border: 1px solid rgba(24, 119, 242, 0.2);
}

.contact-icon.phone {
    background: #f1f2f4;
    color: #14161a;
    border: 1px solid rgba(20, 22, 26, 0.15);
}

.contact-card h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.contact-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== Footer ===== */
.main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: brightness(0);
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
}

.footer-socials a:hover {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #14161a;
}

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

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

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #14161a;
    padding-right: 5px;
}

.footer-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(37, 211, 102, 0.08);
    color: #128c7e !important;
    border: 1px solid rgba(37, 211, 102, 0.22);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem !important;
    transition: all var(--transition-fast);
}

.footer-wa-btn i {
    font-size: 1.1rem;
    color: #25d366;
}

.footer-wa-btn:hover {
    background: #25d366;
    color: #fff !important;
    border-color: #25d366;
    padding-right: 16px !important;
}

.footer-wa-btn:hover i {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== Product Modal =====
   Full implementation lives in css/product-modal.css (loaded after this file).
   See css/product-modal.css for .modal-overlay, .product-modal, .modal-close,
   .modal-body, .modal-image, .modal-info, .modal-brand, .modal-gender,
   .quantity-control, .qty-btn, .qty-value, .btn-add-to-cart, etc.
   (Formerly duplicated here; removed as dead/overridden code.) */

/* ===== WhatsApp Float ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    font-size: 1.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 900;
    transition: var(--transition-base);
    animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@keyframes whatsappPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 12px rgba(37, 211, 102, 0.1);
    }
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f1f2f4;
    border: 1px solid rgba(20, 22, 26, 0.15);
    color: #14161a;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-base);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
    transform: translateY(-3px);
}

/* ===== Toast Notification ===== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 14px 28px;
    background: #ffffff;
    border: 1px solid rgba(20, 22, 26, 0.15);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 5000;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast i {
    color: #14161a;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .about-logo {
        width: 180px;
    }

    .about-image-decoration {
        width: 220px;
        height: 220px;
    }

    .about-image {
        width: 260px;
        height: 260px;
        margin: 0 auto;
        contain: paint;
    }

    .about-image::before,
    .about-image::after {
        width: 200px;
        height: 200px;
    }

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

@media (max-width: 768px) {
    .header-top .container {
        gap: 20px;
        font-size: 0.72rem;
    }


    /* Center logo, menu-btn & search-btn on visual right, account & cart on visual left (RTL) */
    .navbar-content {
        position: relative;
        justify-content: flex-start;
        gap: 8px;
    }

    .navbar-content > .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 1;
    }

    .nav-actions {
        display: contents;
    }

    .mobile-menu-btn {
        order: -2;
    }

    .search-btn {
        order: -1;
        margin-inline-end: auto;
    }

    .account-btn {
        order: 1;
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    .cart-btn {
        order: 2;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: 300px;
        height: 100vh;
        height: 100dvh;
        background: #ffffff;
        border-left: 1px solid rgba(20, 22, 26, 0.12);
        flex-direction: column;
        padding: 0;
        transform: translateX(100%);
        transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
        z-index: 1500;
        gap: 0;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .nav-links::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 1px;
        height: 100%;
        background: linear-gradient(180deg, transparent, rgba(20, 22, 26, 0.15), transparent);
        opacity: 0.5;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    /* Mobile Menu Header */
    .mobile-menu-header-item {
        display: list-item;
        list-style: none;
    }

    .mobile-menu-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 36px 24px 20px;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
    }

    .nav-links.active .mobile-menu-header {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-menu-logo {
        width: 70px;
        height: auto;
        filter: brightness(0);
        margin-bottom: 10px;
    }

    .mobile-menu-brand {
        font-family: var(--font-display);
        font-size: 1.3rem;
        font-weight: 600;
        color: #14161a;
        letter-spacing: 1.5px;
    }

    .mobile-menu-brand .amp {
        font-family: Arial, sans-serif;
        font-style: normal;
        letter-spacing: 0;
    }

    .mobile-menu-tagline {
        font-size: 0.78rem;
        color: var(--text-muted);
        margin-top: 4px;
        letter-spacing: 0.5px;
    }

    /* Mobile Menu Divider */
    .mobile-menu-divider-item {
        display: list-item;
        list-style: none;
    }

    .mobile-menu-divider {
        display: block;
        height: 1px;
        margin: 8px 24px;
        background: linear-gradient(90deg, transparent, rgba(20, 22, 26, 0.15), transparent);
    }

    /* Nav links inside mobile menu - only target nav link li items, not wrapper items */
    .nav-links li:not(.mobile-menu-header-item):not(.mobile-menu-divider-item):not(.mobile-menu-footer-item) {
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.35s ease, transform 0.35s ease;
        padding: 0 16px;
    }

    /* Make ALL nav link li visible when menu is open */
    .nav-links.active li:not(.mobile-menu-header-item):not(.mobile-menu-divider-item):not(.mobile-menu-footer-item) {
        opacity: 1;
        transform: translateX(0);
    }

    /* Stagger the entrance animation (indices 3-7 because header=1, divider=2) */
    .nav-links.active li:nth-of-type(3) { transition-delay: 0.12s; }
    .nav-links.active li:nth-of-type(4) { transition-delay: 0.17s; }
    .nav-links.active li:nth-of-type(5) { transition-delay: 0.22s; }
    .nav-links.active li:nth-of-type(6) { transition-delay: 0.27s; }
    .nav-links.active li:nth-of-type(7) { transition-delay: 0.32s; }

    .nav-link {
        padding: 14px 18px;
        font-size: 1.05rem;
        font-weight: 500;
        color: #4a4d52;
        border-radius: var(--radius-md);
        display: flex;
        align-items: center;
        gap: 14px;
        transition: all 0.3s ease;
        position: relative;
    }

    .nav-link i {
        display: inline;
        font-size: 1rem;
        width: 20px;
        text-align: center;
        color: var(--text-muted, #6b6e73);
        transition: color 0.3s ease;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(20, 22, 26, 0.06);
        color: #14161a;
    }

    .nav-link:hover i,
    .nav-link.active i {
        color: #14161a;
    }

    .nav-link.active::before {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 60%;
        background: #000000;
        border-radius: 3px;
    }

    .nav-link::after {
        display: none;
    }

    /* Mobile Menu Footer */
    .mobile-menu-footer-item {
        display: list-item;
        list-style: none;
        margin-top: auto;
    }

    .mobile-menu-footer {
        padding: 20px 24px 32px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.4s ease 0.35s, transform 0.4s ease 0.35s;
    }

    .nav-links.active .mobile-menu-footer {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-menu-socials {
        display: flex;
        gap: 14px;
    }

    .mobile-menu-socials a {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: var(--bg-tertiary);
        border: 1px solid var(--border-color);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-secondary);
        font-size: 1.05rem;
        transition: all 0.3s ease;
    }

    .mobile-menu-socials a:hover {
        background: #000000;
        border-color: #000000;
        color: #ffffff;
        transform: translateY(-2px);
    }

    .mobile-menu-copyright {
        font-size: 0.72rem;
        color: var(--text-muted);
        letter-spacing: 0.3px;
    }

    .mobile-menu-btn {
        display: flex;

    }

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

    .slide-content {
        right: 5%;
        left: 5%;
        bottom: 18%;
    }

    .features-bar .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

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

    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        max-width: 520px;
    }

    /* Mobile Bottom Sheet Modal */
    .product-modal {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        max-height: 82vh;
        max-height: 82dvh;
        transform: translateY(100%);
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        border: none;
        border-top: 1px solid var(--border-hover);
        background: linear-gradient(180deg, #1a1a1a 0%, #111111 100%);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .product-modal.active {
        transform: translateY(0);
    }

    /* Drag handle indicator */
    .product-modal::before {
        content: '';
        position: sticky;
        top: 0;
        display: block;
        width: 40px;
        height: 4px;
        background: rgba(20, 22, 26, 0.2);
        border-radius: 4px;
        margin: 10px auto 0;
        z-index: 20;
    }

    .modal-close {
        top: 6px;
        left: 12px;
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .modal-body {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .modal-image {
        aspect-ratio: 4/5;
        max-height: 300px;
        border-radius: 0;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        background:
            radial-gradient(ellipse at 50% 55%, rgba(191, 197, 204, 0.16) 0%, rgba(191, 197, 204, 0.05) 35%, transparent 65%),
            linear-gradient(180deg, #1e1e22 0%, #141418 100%);
        overflow: hidden;
    }

    .modal-image::before {
        content: '';
        position: absolute;
        bottom: 14%;
        left: 50%;
        transform: translateX(-50%);
        width: 55%;
        height: 14px;
        border-radius: 50%;
        background: radial-gradient(ellipse, rgba(0, 0, 0, 0.55), transparent 70%);
        filter: blur(6px);
        pointer-events: none;
    }

    .modal-image::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: linear-gradient(to top, #1a1a1a 15%, transparent);
        pointer-events: none;
    }

    .modal-image img {
        max-width: 85%;
        max-height: 100%;
        width: auto;
        height: auto;
        padding: 0;
        object-fit: contain;
        object-position: center;
        filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.3));
        position: relative;
        z-index: 1;
        animation: modalImgFloat 4s ease-in-out infinite;
    }

    @keyframes modalImgFloat {
        0%, 100% { transform: translateY(0); }
        50%      { transform: translateY(-6px); }
    }

    .modal-info {
        padding: 16px 20px 24px;
        gap: 10px;
        overflow: visible;
    }

    .modal-brand {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
    }

    .modal-info h2 {
        font-size: 1.3rem;
        font-weight: 700;
    }

    .modal-gender {
        font-size: 0.75rem;
        padding: 3px 10px;
    }

    .modal-sizes h4,
    .modal-quantity h4 {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }

    .size-options {
        gap: 8px;
    }

    .size-btn {
        padding: 10px 8px;
        border-radius: var(--radius-sm);
        border-width: 1.5px;
    }

    .size-label {
        font-size: 0.82rem;
    }

    .size-price {
        font-size: 0.92rem;
    }

    /* Quantity and Add to Cart inline row */
    .modal-quantity {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .modal-quantity h4 {
        margin-bottom: 0;
        white-space: nowrap;
    }

    .quantity-control {
        padding: 2px;
    }

    .qty-btn {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .qty-value {
        min-width: 30px;
        font-size: 0.95rem;
    }

    .btn-add-to-cart {
        padding: 12px;
        font-size: 0.92rem;
        border-radius: var(--radius-xl);
        margin-top: 4px;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .stat-num {
        font-size: 1.5rem;
    }

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

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-links a {
        justify-content: center;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .filter-bar {
        gap: 6px;
    }

    .filter-btn {
        padding: 8px 18px;
        font-size: 0.82rem;
    }

    .cart-discount-form {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .cart-discount-btn {
        height: 38px;
        min-height: 38px;
        width: auto;
        padding: 0 16px;
    }

    .cart-summary-line,
    .cart-discount-applied-row,
    .cart-item-meta,
    .cart-item-bottom {
        gap: 6px;
    }

    .cart-sidebar {
        width: 290px;
        max-width: 290px;
        border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
        box-shadow: var(--shadow-lg);
    }

    .cart-header {
        padding: 14px 14px;
    }

    .cart-header h3 {
        font-size: 0.98rem;
    }

    .cart-items {
        padding: 10px;
    }

    .cart-item {
        grid-template-columns: 54px 1fr;
        gap: 10px;
        padding: 10px;
        margin-bottom: 6px;
    }

    .cart-item-image {
        width: 54px;
        height: 54px;
    }

    .cart-item-info {
        gap: 4px;
    }

    .cart-item-name {
        font-size: 0.84rem;
        padding-right: 18px;
    }

    .cart-item-detail {
        font-size: 0.7rem;
    }

    .cart-item-price {
        font-size: 0.84rem;
    }

    .cart-item-qty {
        padding: 2px;
        gap: 2px;
    }

    .cart-qty-btn {
        width: 22px;
        height: 22px;
        font-size: 0.72rem;
    }

    .cart-qty-value {
        min-width: 14px;
        font-size: 0.8rem;
    }

    .cart-item-remove {
        top: 8px;
        left: 8px;
        width: 22px;
        height: 22px;
        font-size: 0.62rem;
    }

    .cart-footer {
        padding: 12px 14px 12px;
    }

    .cart-discount-section {
        padding: 10px;
        margin-bottom: 10px;
    }

    .cart-discount-toggle {
        min-height: 28px;
    }

    .cart-discount-toggle-hint {
        font-size: 0.66rem;
        padding: 2px 7px;
    }

    .cart-discount-content {
        margin-top: 8px;
    }

    .cart-discount-input {
        padding: 9px 11px;
        font-size: 0.82rem;
    }

    .cart-discount-message {
        min-height: 14px;
        margin-top: 6px;
        font-size: 0.72rem;
    }

    .cart-summary-line {
        margin-bottom: 6px;
        font-size: 0.84rem;
    }

    .cart-total {
        font-size: 0.94rem;
        margin-bottom: 8px;
    }

    .cart-shipping-status {
        margin-bottom: 10px;
    }

    .cart-shipping-status p {
        font-size: 0.75rem;
        margin-bottom: 6px;
    }

    .cart-shipping-bar {
        height: 7px;
    }

    .btn-checkout {
        padding: 10px 12px;
        font-size: 0.88rem;
        margin-bottom: 6px;
    }

    .btn-clear-cart {
        padding: 8px;
        font-size: 0.76rem;
    }
}

@media (max-width: 480px) {
    .modal-image {
        max-height: 170px;
    }

    .modal-info h2 {
        font-size: 1.15rem;
    }

    .cart-sidebar {
        width: 280px;
        max-width: 280px;
    }

    .cart-item {
        grid-template-columns: 50px 1fr;
        gap: 8px;
        padding: 9px;
    }

    .cart-item-image {
        width: 50px;
        height: 50px;
    }

    .cart-item-name {
        font-size: 0.8rem;
    }

    .cart-item-detail,
    .cart-discount-label,
    .cart-summary-line {
        font-size: 0.72rem;
    }

    .cart-total {
        font-size: 0.9rem;
    }

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

    .product-info {
        padding: 12px 14px;
    }

    .product-name {
        font-size: 0.82rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-brand {
        font-size: 0.7rem;
    }

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

    .product-overlay {
        display: none;
    }

    .slide-content h1 {
        font-size: 1.6rem;
    }

    .slide-content p {
        font-size: 0.92rem;
    }

    .btn-primary {
        padding: 12px 28px;
        font-size: 0.92rem;
    }

    .features-bar .container {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        padding: 12px 8px;
        gap: 8px;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .feature-text h4 {
        font-size: 0.82rem;
    }

    .feature-text p {
        font-size: 0.72rem;
    }
}

/* ===== Smooth Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-up { opacity: 0; transform: translateY(40px); transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.reveal-up.visible { opacity: 1; transform: translateY(0); }

.reveal-scale { opacity: 0; transform: scale(0.96); transition: opacity 1s cubic-bezier(0.16,1,0.3,1), transform 1s cubic-bezier(0.16,1,0.3,1); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
    .fade-in, .reveal-up, .reveal-scale { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ===== Editorial Storytelling Section ===== */
.editorial-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 140px 0;
    isolation: isolate;
}

.editorial-bg {
    position: absolute;
    inset: -8%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.1);
    will-change: transform;
    z-index: 0;
    animation: editorialKenBurns 24s ease-in-out infinite alternate;
}

@keyframes editorialKenBurns {
    0%   { transform: scale(1.10) translate(0, 0); }
    100% { transform: scale(1.18) translate(-2%, -1.5%); }
}

.editorial-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(8,8,12,0.55) 0%, rgba(8,8,12,0.85) 70%, rgba(8,8,12,0.95) 100%),
        linear-gradient(180deg, rgba(8,8,12,0.4) 0%, rgba(8,8,12,0.7) 100%);
    z-index: 1;
}

.editorial-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 820px;
    padding: 0 20px;
}

.editorial-eyebrow {
    display: inline-block;
    font-family: var(--font-arabic);
    font-size: 0.9rem;
    letter-spacing: 0;
    color: var(--accent-light);
    margin-bottom: 28px;
    opacity: 0.9;
    padding: 0 18px 12px;
    border-bottom: 1px solid rgba(191,197,204,0.35);
    font-weight: 500;
}

.editorial-headline {
    font-family: var(--font-arabic);
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.35;
    color: #fff;
    margin-bottom: 32px;
    letter-spacing: 0;
}

.editorial-headline em {
    font-style: normal;
    color: var(--accent-light);
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-light) 60%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.editorial-text {
    font-family: var(--font-arabic);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 2.1;
    color: rgba(255,255,255,0.88);
    max-width: 620px;
    margin: 0 auto 36px;
    font-weight: 300;
}

.editorial-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: var(--accent-light);
    margin-top: 8px;
}

.editorial-divider span {
    height: 1px;
    width: 70px;
    background: linear-gradient(to right, transparent, var(--accent-light), transparent);
}

.editorial-divider i {
    font-size: 0.95rem;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .editorial-section { min-height: 56vh; padding: 90px 0; }
    .editorial-text { line-height: 1.95; }
    .editorial-eyebrow { letter-spacing: 0.35em; }
}

/* Mobile menu overlay */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1400;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

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

/* ===== Instagram Reels Section ===== */
.reels-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    overflow: hidden;
}

.reels-rail-wrap {
    position: relative;
    margin: 0 -8px;
}

.reels-rail {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 8px 16px 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.reels-rail::-webkit-scrollbar { display: none; }

.reel-card {
    flex: 0 0 auto;
    width: clamp(220px, 22vw, 280px);
    aspect-ratio: 9 / 16;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    background: #0a0a0e;
    scroll-snap-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(20, 22, 26, 0.06);
    transition: transform 0.6s cubic-bezier(0.16,1,0.3,1), box-shadow 0.6s cubic-bezier(0.16,1,0.3,1), border-color 0.6s ease;
    isolation: isolate;
}

.reel-card video,
.reel-card .reel-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.16,1,0.3,1), filter 0.6s ease;
    filter: brightness(0.92) saturate(1.05);
    background: #0a0a0e;
}

.reel-card .reel-poster {
    background-size: cover;
    background-position: center;
}

.reel-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.reel-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28), 0 0 0 1px var(--accent-light);
    border-color: var(--accent-light);
}

.reel-card:hover video,
.reel-card:hover .reel-poster {
    transform: scale(1.06);
    filter: brightness(1) saturate(1.1);
}

.reel-card-pill {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 700;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.reel-card:hover .reel-card-pill {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.reel-card-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.4s ease;
}

.reel-card:hover .reel-card-icon {
    background: rgba(255, 255, 255, 0.95);
    color: #E1306C;
    transform: scale(1.1);
}

.reels-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.reels-nav:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}

.reels-nav-prev { right: -6px; }
.reels-nav-next { left: -6px; }

.reels-nav.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.reels-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 24px auto 0;
    padding: 12px 28px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.92rem;
    width: fit-content;
    transition: all 0.4s ease;
    background: #fff;
}

.reels-handle:hover {
    border-color: var(--accent-primary);
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.reels-handle i.fa-instagram {
    font-size: 1.05rem;
    color: #E1306C;
    transition: color 0.3s ease;
}

.reels-handle:hover i.fa-instagram {
    color: #fff;
}

.reels-handle-arrow {
    font-size: 0.75rem;
    transition: transform 0.4s ease;
}

.reels-handle:hover .reels-handle-arrow {
    transform: translateX(-4px);
}

.reels-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

@media (max-width: 768px) {
    .reel-card { width: 60vw; max-width: 240px; }
    .reels-nav { display: none; }
    .reels-rail { padding: 8px 12px 20px; gap: 12px; }
    .reel-card-pill { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (max-width: 480px) {
    .reel-card { width: 70vw; }
}