/**
 * Techno — Modern storefront layer (home / header / footer)
 * Typography: Thmanyah Sans + Thmanyah Serif Display (font.thmanyah.com)
 */

:root {
    --nm-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --nm-radius: 14px;
    --nm-radius-sm: 10px;
    --nm-space: clamp(1rem, 2.5vw, 2rem);
    --nm-container: var(--techno-container-max-width, 1280px);
    --nm-header-h: 72px;
    --nm-font-sans: "Thmanyah Sans", "Cairo", system-ui, sans-serif;
    --nm-font-display: "Thmanyah Serif Display", "Thmanyah Sans", serif;
    --nm-section-pad: clamp(3.25rem, 7vw, 5.5rem);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--nm-font-sans) !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    letter-spacing: 0;
    line-height: 1.7;
    background: var(--techno-body-bg, #fff) !important;
    color: var(--techno-body-text) !important;
}

.container {
    max-width: var(--nm-container);
    margin-inline: auto;
    padding-inline: var(--nm-space);
}

/* ── Motion ── */
.nm-reveal {
    animation: nmFadeUp 0.8s var(--nm-ease) both;
}

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

/* ═══════════════════════════════════════════
   HOME SECTION BANDS + DIVIDERS (واضح واحترافي)
   ═══════════════════════════════════════════ */
.categories-section,
.featured-products-section,
.new-arrivals-section,
.testimonials-section,
.custom-home-blocks,
.home-custom-blocks {
    position: relative;
    padding-block: var(--nm-section-pad) !important;
    overflow: visible !important;
}

.categories-section::before,
.categories-section::after,
.featured-products-section::before,
.new-arrivals-section::before,
.testimonials-section::before {
    display: none !important;
}

/* شريط فاصل علوي واضح بين كل قسم */
.categories-section,
.featured-products-section,
.new-arrivals-section,
.testimonials-section {
    border-top: 1px solid color-mix(in srgb, var(--techno-border, #e5e7eb) 100%, transparent);
}

.categories-section::after,
.featured-products-section::after,
.new-arrivals-section::after,
.testimonials-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: var(--techno-body-bg, #fff);
    border: 1px solid color-mix(in srgb, var(--techno-border, #e5e7eb) 100%, transparent);
    box-shadow: 0 0 0 6px var(--techno-body-bg, #fff);
    z-index: 2;
    pointer-events: none;
    display: block !important;
}

.categories-section .container,
.featured-products-section .container,
.new-arrivals-section .container,
.testimonials-section .container {
    position: relative;
    z-index: 3;
}

/* نقطة لونية داخل دائرة الفاصل */
.categories-section::after { background:
    radial-gradient(circle at center, var(--techno-primary) 0 28%, var(--techno-body-bg, #fff) 29%); }
.featured-products-section::after { background:
    radial-gradient(circle at center, var(--techno-primary) 0 28%, var(--techno-surface-subtle, #fafafa) 29%); }
.new-arrivals-section::after { background:
    radial-gradient(circle at center, var(--techno-primary) 0 28%, var(--techno-body-bg, #fff) 29%); }
.testimonials-section::after { background:
    radial-gradient(circle at center, var(--techno-primary) 0 28%, var(--techno-surface-muted, #f9fafb) 29%); }

/* خلفيات متناوبة تفصل الأقسام بصريًا */
.categories-section {
    background:
        linear-gradient(180deg,
            color-mix(in srgb, var(--techno-surface-subtle, #fafafa) 100%, transparent) 0%,
            color-mix(in srgb, var(--techno-primary-soft, #DBEAFE) 18%, var(--techno-surface-subtle, #fafafa)) 100%
        ) !important;
}

.featured-products-section {
    background: var(--techno-surface-subtle, #fafafa) !important;
}

.new-arrivals-section {
    background: var(--techno-body-bg, #fff) !important;
}

.testimonials-section {
    background:
        linear-gradient(180deg,
            var(--techno-surface-muted, #f9fafb) 0%,
            color-mix(in srgb, var(--techno-primary-soft) 22%, var(--techno-surface-muted)) 100%
        ) !important;
}

/* رأس القسم: تسمية صغيرة + عنوان ثمانية ديسبلاي */
.categories-section .section-title,
.featured-products-section .section-title,
.new-arrivals-section .section-title,
.testimonials-section .section-title {
    font-family: var(--nm-font-display) !important;
    font-size: clamp(1.85rem, 3.6vw, 2.65rem) !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    color: var(--techno-text-strong) !important;
    background: none !important;
    -webkit-text-fill-color: unset !important;
    text-align: start !important;
    line-height: 1.25 !important;
    padding-bottom: 1.15rem !important;
    margin: 0 0 1.75rem !important;
    border-bottom: 1px solid color-mix(in srgb, var(--techno-border, #e5e7eb) 90%, transparent);
    box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--techno-primary) 55%, transparent);
    position: relative;
}

.categories-section .section-title::after,
.featured-products-section .section-title::after,
.new-arrivals-section .section-title::after,
.testimonials-section .section-title::after {
    display: none !important;
}

.categories-section .section-title::before,
.featured-products-section .section-title::before,
.new-arrivals-section .section-title::before,
.testimonials-section .section-title::before {
    display: block !important;
    font-family: var(--nm-font-sans) !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.14em !important;
    color: var(--techno-primary) !important;
    background: none !important;
    -webkit-text-fill-color: var(--techno-primary) !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 0.55rem !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    position: static !important;
    left: auto !important;
    transform: none !important;
    opacity: 1 !important;
}

.categories-section .section-title::before { content: 'التصنيفات' !important; }
.featured-products-section .section-title::before { content: 'الأكثر مبيعًا' !important; }
.new-arrivals-section .section-title::before { content: 'وصل حديثًا' !important; }
.testimonials-section .section-title::before { content: 'آراء العملاء' !important; }

.categories-section .categories-grid-wrapper,
.featured-products-section .products-grid-wrapper,
.new-arrivals-section .products-grid-wrapper {
    margin-top: 0.35rem !important;
}

/* ═══════════════ HEADER ═══════════════ */
.site-header {
    background: var(--techno-header-main-bg, #fff) !important;
    /* لا تستخدم backdrop-filter هنا — يكسر توسيط البوب أب ومكان السلة/المفضلة */
    box-shadow: none !important;
    border-bottom: 1px solid color-mix(in srgb, var(--techno-border, #e5e7eb) 80%, transparent);
    transition: background 0.35s var(--nm-ease), box-shadow 0.35s var(--nm-ease), border-color 0.35s var(--nm-ease);
}

.site-header.scrolled {
    background: color-mix(in srgb, var(--techno-header-main-bg, #fff) 92%, transparent) !important;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06) !important;
    border-bottom-color: color-mix(in srgb, var(--techno-border) 100%, transparent);
}

.header-main {
    padding: 0.85rem 0 !important;
    background: transparent !important;
}

.header-top {
    padding: 0.4rem 0 !important;
    border-bottom: none !important;
    font-size: 0.78rem;
}

.header-top .header-info-item {
    font-weight: 500;
    letter-spacing: 0.01em;
}

.header-top .header-social,
.header-top .social-link {
    border-radius: 8px !important;
}

.logo-link {
    gap: 0.75rem !important;
}

.logo-link:hover {
    transform: none !important;
}

.logo-link img {
    max-height: 48px !important;
    border-radius: 8px;
}

.logo-icon {
    width: 46px !important;
    height: 46px !important;
    border-radius: 12px !important;
    font-size: 1.15rem !important;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--techno-primary) 28%, transparent) !important;
}

.logo-link:hover .logo-icon {
    transform: translateY(-1px) !important;
}

.logo-name {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    font-family: var(--nm-font-display) !important;
}

.logo-tagline {
    font-size: 0.72rem !important;
    font-weight: 450 !important;
    opacity: 0.72;
    max-width: 180px;
}

.main-menu .menu-link,
.main-menu .menu-link span {
    font-size: 0.92rem !important;
    font-weight: 560 !important;
    letter-spacing: -0.01em;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.main-menu .menu-link:hover {
    opacity: 1;
}

.header-action-item .action-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transition: color 0.2s ease !important;
}

.action-link:hover .action-icon {
    background: transparent !important;
    border-color: transparent !important;
    transform: none !important;
    color: var(--techno-primary) !important;
}

.header-actions .action-text {
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    font-family: var(--nm-font-sans) !important;
}

.header-actions .action-link {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.45rem !important;
    min-width: 0 !important;
    padding: 0.4rem 0.7rem !important;
    border-radius: 999px !important;
}

.header-actions .action-link > .cart-total {
    display: none !important;
}

@media (max-width: 992px) {
    .header-actions .action-link {
        padding: 0.35rem !important;
        gap: 0 !important;
    }
    .header-actions .action-text {
        display: none !important;
    }
    .header-action-item .action-icon {
        width: 36px !important;
        height: 36px !important;
    }
}

.action-badge,
.cart-count-badge,
.wishlist-count-badge {
    border-radius: 999px !important;
    animation: none !important;
}

/* ═══════════════ HERO / BANNER (Zid-like) ═══════════════ */
.th-banner,
.th-hero {
    margin: 0 !important;
}

.th-banner + .categories-section,
.th-banner + section,
.th-hero + .categories-section,
.th-hero + section {
    margin-top: 0;
}

/* ═══════════════ CATEGORIES (دوائر أصايل + شبكة الصفحة) ═══════════════ */
.categories-section {
    overflow: visible !important;
}
.categories-section.cats-alasayel,
.categories-section.cats-alasayel::before,
.categories-section.cats-alasayel::after {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.categories-section.cats-alasayel::before,
.categories-section.cats-alasayel::after {
    display: none !important;
    content: none !important;
}
.categories-section .section-title::before,
.categories-section .section-title::after {
    display: none !important;
}
.categories-section .cat-panel {
    border: none !important;
    border-radius: 25px !important;
}
.categories-section .cat-circle,
.categories-section .cat-circle.box-img-product {
    border-radius: 50% !important;
    overflow: hidden !important;
    aspect-ratio: 1 / 1 !important;
}
.categories-section .cat-circle img,
.categories-section .cat-circle .category-img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}
.categories-section .cat-more-btn,
.categories-section a.cat-more-btn {
    background: var(--techno-primary, #1E3A5F) !important;
    color: #fff !important;
    border-radius: 999px !important;
}
.categories-section .category-card .category-overlay,
.categories-section .category-card .products-count-badge,
.categories-section .category-card .category-arrow {
    display: none !important;
}

/* ═══════════════ PRODUCTS ═══════════════ */
.featured-products-section,
.new-arrivals-section {
    overflow: visible !important;
}

.featured-products-section .products-grid-wrapper,
.new-arrivals-section .products-grid-wrapper {
    margin-top: 0.35rem !important;
    padding: 0 !important;
}

.featured-products-section .products-grid,
.new-arrivals-section .products-grid {
    gap: 1rem !important;
    padding: 0.25rem 0 1rem !important;
    scrollbar-width: none;
}

.featured-products-section .products-grid::-webkit-scrollbar,
.new-arrivals-section .products-grid::-webkit-scrollbar {
    display: none;
}

.featured-products-section .scroll-btn,
.new-arrivals-section .scroll-btn {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    background: var(--techno-white) !important;
    border: 1px solid var(--techno-border) !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06) !important;
    color: var(--techno-text-strong) !important;
}

.s-product-card-entry,
.featured-products-section .s-product-card-entry,
.new-arrivals-section .s-product-card-entry {
    border-radius: 16px !important;
    border: 1px solid color-mix(in srgb, var(--techno-border) 75%, transparent) !important;
    box-shadow: none !important;
    min-height: 0 !important;
    background: var(--techno-card-bg, #fff) !important;
    transition: transform 0.4s var(--nm-ease), box-shadow 0.4s var(--nm-ease), border-color 0.3s ease !important;
}

.s-product-card-entry:hover,
.featured-products-section .s-product-card-entry:hover,
.new-arrivals-section .s-product-card-entry:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08) !important;
    border-color: color-mix(in srgb, var(--techno-primary) 22%, transparent) !important;
}

.s-product-card-image,
.featured-products-section .s-product-card-image {
    background: #f0f0f0 !important;
    border-radius: 16px 16px 0 0 !important;
}

.s-product-card-wishlist-btn,
.featured-products-section .s-product-card-wishlist-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1) !important;
}

.s-product-card-content-title,
.featured-products-section .s-product-card-content-title {
    font-size: 0.95rem !important;
    font-weight: 650 !important;
    letter-spacing: -0.015em;
}

.s-button-element,
.featured-products-section .s-button-element,
.new-arrivals-section .s-button-element {
    border-radius: 999px !important;
    font-weight: 650 !important;
    letter-spacing: -0.01em;
}

/* ═══════════════ FOOTER ═══════════════ */
.sf-footer {
    margin-top: clamp(2rem, 5vw, 3.5rem);
    border-top: 1px solid color-mix(in srgb, var(--techno-border) 90%, transparent);
}

.sf-top-bar {
    height: 2px !important;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--techno-primary-soft) 20%,
        var(--techno-primary) 50%,
        var(--techno-primary-soft) 80%,
        transparent 100%
    ) !important;
}

.sf-body {
    padding: 3rem clamp(1rem, 4vw, 2rem) 1.5rem !important;
    max-width: var(--nm-container) !important;
    margin-inline: auto !important;
    width: 100%;
    box-sizing: border-box;
}

.sf-grid {
    gap: 2.5rem !important;
    margin-bottom: 2rem !important;
    width: 100%;
}

.sf-heading {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding-bottom: 0.65rem !important;
}

.sf-heading::after {
    width: 1.5rem !important;
    height: 2px !important;
}

.sf-brand-name {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    font-family: var(--nm-font-display) !important;
}

.sf-brand-logo img,
.sf-brand-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
}

.sf-brand-desc {
    font-size: 0.86rem !important;
    line-height: 1.7 !important;
    max-width: 42ch;
}

.sf-contact-item {
    font-size: 0.86rem !important;
}

.sf-social {
    justify-content: flex-start;
}

.sf-social a {
    width: 38px !important;
    height: 38px !important;
    border-radius: 11px !important;
    transition: transform 0.25s var(--nm-ease), background 0.25s ease, color 0.25s ease !important;
}

.sf-social a:hover {
    transform: translateY(-2px) !important;
}

.sf-links li a {
    font-size: 0.88rem !important;
    padding-block: 0.15rem;
}

.sf-branch {
    border-radius: 12px !important;
    padding: 1rem !important;
}

.sf-payment-row {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.sf-payment-badge {
    border-radius: 9px !important;
    padding: 0.35rem 0.7rem !important;
    font-size: 0.75rem !important;
}

.sf-bottom {
    padding-top: 1.15rem !important;
    font-size: 0.78rem !important;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 580px) {
    .sf-body {
        padding: 2.5rem 1.15rem 1.35rem !important;
        text-align: start;
    }
    .sf-grid {
        gap: 1.75rem !important;
    }
    .sf-brand-desc {
        max-width: none;
    }
    .sf-bottom {
        flex-direction: column;
        align-items: flex-start !important;
        text-align: start !important;
        gap: 0.65rem !important;
    }
    .sf-payment-row {
        justify-content: flex-start !important;
    }
    .sf-social {
        justify-content: flex-start !important;
    }
}

/* Testimonials polish */
.testimonials-section {
    overflow: visible !important;
}

.testimonials-section .section-title {
    text-align: start !important;
}

/* ═══════════════ MOBILE DRAWER (override legacy) ═══════════════ */
.mobile-menu-nav .menu-link::before {
    display: none !important;
    content: none !important;
}

.mobile-menu-nav .menu-link:hover::before,
.mobile-menu-nav .menu-link.active::before {
    display: none !important;
    transform: none !important;
}

.mobile-menu-nav .sub-menu li a::before {
    display: block !important;
    position: static !important;
    width: 5px !important;
    height: 5px !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    background: color-mix(in srgb, var(--techno-primary) 45%, transparent) !important;
    border-radius: 50% !important;
    transform: none !important;
}

@media (max-width: 768px) {
    .categories-section .section-title,
    .featured-products-section .section-title,
    .new-arrivals-section .section-title {
        font-size: 1.45rem !important;
        margin-bottom: 1.25rem !important;
        padding-bottom: 0.85rem !important;
    }

    /* إخفاء دائرة الفاصل على الموبايل — كانت تطلع كنقطة أزرق فاتحة غريبة */
    .categories-section::after,
    .featured-products-section::after,
    .new-arrivals-section::after,
    .testimonials-section::after {
        display: none !important;
        content: none !important;
    }

    .categories-section,
    .featured-products-section,
    .new-arrivals-section,
    .testimonials-section {
        padding-block: 2.25rem !important;
        border-top: 1px solid color-mix(in srgb, var(--techno-border) 100%, transparent);
    }

    .logo-tagline {
        display: none !important;
    }

    /* ——— Header ثابت ونظيف ——— */
    .site-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 9000 !important;
        display: block !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .site-header.hidden {
        transform: none !important;
        opacity: 1 !important;
    }

    .header-main {
        padding: 0.55rem 0 !important;
    }

    .header-content {
        gap: 0.4rem !important;
        overflow: visible !important;
        align-items: center !important;
    }

    .header-actions {
        gap: 0.15rem !important;
        padding: 0 !important;
        margin: 0 !important;
        min-width: 0 !important;
        flex-shrink: 0 !important;
    }

    .header-actions .action-link {
        padding: 0.3rem !important;
        gap: 0 !important;
        min-width: 40px !important;
        border-radius: 12px !important;
    }

    .header-action-item .action-icon {
        width: 36px !important;
        height: 36px !important;
        background: transparent !important;
        border: none !important;
    }

    .header-actions .action-text,
    .header-actions .action-link > .cart-total {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        flex-shrink: 0 !important;
    }

    /* ——— Dropdowns: مخفية 100% إلا عند الفتح ——— */
    .action-dropdown,
    .cart-dropdown,
    .wishlist-dropdown {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translate3d(0, 120%, 0) !important;
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        z-index: 10050 !important;
    }

    .account-action.active .account-dropdown,
    .cart-action.active .cart-dropdown,
    .wishlist-action.active .wishlist-dropdown {
        display: flex !important;
        flex-direction: column !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translate3d(0, 0, 0) !important;
        max-height: min(78vh, 640px) !important;
        border-radius: 18px 18px 0 0 !important;
        overflow: hidden !important;
    }

    .cart-dropdown-footer,
    .wishlist-dropdown-footer {
        flex-shrink: 0 !important;
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
    }

    /* Auth popup — لا يظهر إلا مع .active */
    .auth-popup-overlay:not(.active) {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .auth-popup-overlay.active {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: fixed !important;
        inset: 0 !important;
        z-index: 10060 !important;
    }

    .auth-popup-overlay.active .auth-popup,
    .auth-popup-overlay.active #authPopup {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        opacity: 1 !important;
        z-index: 10061 !important;
    }

    .auth-tabs {
        display: none !important;
    }

    /* قائمة الموبايل فوق كل شيء */
    .mobile-menu {
        z-index: 10070 !important;
    }

    .mobile-menu-overlay {
        z-index: 10065 !important;
    }

    .dropdown-overlay {
        z-index: 10040 !important;
    }

    .dropdown-overlay:not(.active) {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .dropdown-overlay.active {
        display: block !important;
    }
}

/* ═══════════════════════════════════════════
   PRODUCT PAGE — modern editorial layer
   ═══════════════════════════════════════════ */
.breadcrumbs {
    background: transparent !important;
    border-bottom: 1px solid color-mix(in srgb, var(--techno-border, #e5e7eb) 90%, transparent) !important;
    margin-bottom: 0.75rem !important;
    padding: 0.85rem 0 !important;
    font-family: var(--nm-font-sans) !important;
}

.breadcrumb-list li {
    font-size: 0.84rem !important;
    color: var(--techno-text-muted) !important;
}

.breadcrumb-list a {
    color: var(--techno-text-muted) !important;
    font-weight: 500 !important;
    padding: 0.2rem 0.35rem !important;
    border-radius: 6px !important;
}

.breadcrumb-list a:hover {
    color: var(--techno-primary) !important;
    background: color-mix(in srgb, var(--techno-primary) 8%, transparent) !important;
    transform: none !important;
}

.breadcrumb-list li:last-child {
    color: var(--techno-text-strong) !important;
    font-weight: 600 !important;
    background: transparent !important;
    padding: 0.2rem 0.35rem !important;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/' !important;
    margin: 0 0.35rem !important;
    color: var(--techno-text-soft, #cbd5e1) !important;
    opacity: 1 !important;
    transform: none !important;
}

.nm-product .product-tab-btn:hover {
    color: var(--techno-primary) !important;
}

@media (max-width: 992px) {
    .nm-product .product-gallery {
        display: flex !important;
        flex-direction: column !important;
    }

    .nm-product .product-main-image {
        order: -1 !important;
    }
}

/* ═══════════════════════════════════════════
   LISTING PAGES — products + category
   ═══════════════════════════════════════════ */
.products-page,
.category-page {
    padding: clamp(1.25rem, 3vw, 2.5rem) 0 clamp(3.5rem, 7vw, 5rem) !important;
    min-height: 60vh;
    font-family: var(--nm-font-sans) !important;
    background: var(--techno-body-bg, #fff) !important;
}

.products-page > .container,
.category-page > .container {
    max-width: var(--nm-container) !important;
    margin-inline: auto !important;
    padding-inline: var(--nm-space) !important;
}

.products-page-header,
.category-page-header {
    margin-bottom: 1.5rem !important;
    text-align: start !important;
}

.products-page-header h1,
.category-page-header h1 {
    font-family: var(--nm-font-display) !important;
    font-size: clamp(1.75rem, 3.4vw, 2.45rem) !important;
    font-weight: 700 !important;
    color: var(--techno-text-strong) !important;
    margin: 0 0 0.35rem !important;
    letter-spacing: -0.02em !important;
    line-height: 1.25 !important;
    text-align: start !important;
}

.products-page-header::after,
.category-page-header::after {
    content: '';
    display: block;
    width: 2.75rem;
    height: 2px;
    margin-top: 0.85rem;
    background: var(--techno-primary);
    border-radius: 2px;
}

.category-description {
    font-size: 0.98rem !important;
    color: var(--techno-text-muted) !important;
    max-width: 42rem !important;
    margin: 0.85rem 0 0 !important;
    line-height: 1.75 !important;
    text-align: start !important;
}

.filter-info {
    text-align: start !important;
    margin: 0.85rem 0 0 !important;
    padding: 0.65rem 0.9rem !important;
    background: color-mix(in srgb, var(--techno-primary) 7%, white) !important;
    border-radius: 10px !important;
    border: 1px solid color-mix(in srgb, var(--techno-primary) 18%, transparent) !important;
    display: inline-block;
}

.filter-info p {
    font-size: 0.88rem !important;
    color: var(--techno-primary) !important;
    margin: 0 !important;
    font-weight: 600 !important;
}

.products-page .products-grid,
.category-page .products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 1.15rem !important;
    margin-top: 1.35rem !important;
}

.products-page .s-product-card-entry,
.category-page .s-product-card-entry {
    border-radius: 16px !important;
    border: 1px solid color-mix(in srgb, var(--techno-border) 100%, transparent) !important;
    box-shadow: none !important;
    background: #fff !important;
    animation: none !important;
    min-height: 0 !important;
    transition: transform 0.4s var(--nm-ease), border-color 0.25s ease, box-shadow 0.4s ease !important;
}

.products-page .s-product-card-entry:hover,
.category-page .s-product-card-entry:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08) !important;
    border-color: color-mix(in srgb, var(--techno-primary) 28%, transparent) !important;
}

.products-page .s-product-card-image,
.category-page .s-product-card-image {
    background: var(--techno-surface-muted, #fafafa) !important;
}

.products-page .s-product-card-entry:hover .s-product-card-image-cover,
.category-page .s-product-card-entry:hover .s-product-card-image-cover {
    transform: scale(1.05) !important;
}

.products-page .s-product-card-wishlist-btn,
.category-page .s-product-card-wishlist-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    top: 12px !important;
    right: 12px !important;
    box-shadow: none !important;
    backdrop-filter: blur(8px);
    transform: none !important;
}

.products-page .s-product-card-wishlist-btn:hover,
.category-page .s-product-card-wishlist-btn:hover {
    transform: scale(1.06) !important;
    border-color: var(--techno-primary) !important;
    color: var(--techno-primary) !important;
}

.products-page .s-product-card-content,
.category-page .s-product-card-content {
    padding: 1rem 1.05rem 1.15rem !important;
    gap: 0.65rem !important;
    min-height: 0 !important;
}

.products-page .s-product-card-content-title,
.category-page .s-product-card-content-title {
    font-size: 0.95rem !important;
    font-weight: 650 !important;
    letter-spacing: -0.015em !important;
    min-height: 0 !important;
    color: var(--techno-text-strong) !important;
}

.products-page .s-product-card-sale-price h4,
.category-page .s-product-card-sale-price h4 {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: var(--techno-primary) !important;
    letter-spacing: -0.02em !important;
}

.products-page .s-product-card-sale-price h4 i,
.category-page .s-product-card-sale-price h4 i {
    font-size: 0.9rem !important;
    color: var(--techno-text-muted) !important;
}

.products-page .s-button-element,
.category-page .s-button-element {
    border-radius: 11px !important;
    border-width: 1.5px !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    padding: 0.75rem 1rem !important;
}

.products-page .s-button-element::before,
.category-page .s-button-element::before {
    display: none !important;
}

.products-page .s-button-element:hover,
.category-page .s-button-element:hover {
    background: var(--techno-primary) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--techno-primary) 28%, transparent) !important;
}

.nm-listing-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--techno-text-muted);
    font-size: 1rem;
    border: 1px dashed color-mix(in srgb, var(--techno-border) 100%, transparent);
    border-radius: 16px;
    background: color-mix(in srgb, var(--techno-surface-muted) 45%, white);
}

.pagination-wrapper {
    margin-top: 2.75rem !important;
    padding: 1.25rem 0 0.5rem !important;
}

.pagination-wrapper nav a.relative.inline-flex,
.pagination-wrapper nav span.relative.inline-flex,
.pagination-list li a {
    border-radius: 10px !important;
    border-width: 1.5px !important;
    box-shadow: none !important;
    font-family: var(--nm-font-sans) !important;
    min-width: 42px !important;
    height: 42px !important;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
}

.pagination-wrapper nav a.relative.inline-flex:hover,
.pagination-list li a:hover {
    transform: translateY(-2px) !important;
    border-color: var(--techno-primary) !important;
    color: var(--techno-primary) !important;
    background: color-mix(in srgb, var(--techno-primary) 8%, white) !important;
}

.pagination-list li a.active,
.pagination-wrapper nav span[aria-current="page"] span,
.pagination-wrapper nav [aria-current="page"] {
    background: var(--techno-primary) !important;
    border-color: var(--techno-primary) !important;
    color: #fff !important;
    transform: none !important;
}

@media (max-width: 768px) {
    .products-page .products-grid,
    .category-page .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.75rem !important;
    }

    .products-page .s-product-card-content-title,
    .category-page .s-product-card-content-title {
        font-size: 0.88rem !important;
    }

    .products-page .s-product-card-sale-price h4,
    .category-page .s-product-card-sale-price h4 {
        font-size: 1.05rem !important;
    }
}

@media (max-width: 380px) {
    .products-page .products-grid,
    .category-page .products-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ═══════════════════════════════════════════
   ACCOUNT DASH SHARED (account / orders / wishlist / cart)
   ═══════════════════════════════════════════ */
.account-dash {
            --ad-surface: #fff;
            --ad-line: color-mix(in srgb, var(--techno-border, #e5e7eb) 100%, transparent);
            --ad-muted: var(--techno-text-muted, #6b7280);
            --ad-ink: var(--techno-text-strong, #141414);
            --ad-soft: color-mix(in srgb, var(--techno-primary) 8%, #fff);
            --ad-soft-2: color-mix(in srgb, var(--techno-primary) 14%, #fff);
            padding: clamp(1.25rem, 3vw, 2.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
            min-height: calc(100vh - 200px);
            font-family: "Thmanyah Sans", "Cairo", system-ui, sans-serif;
            background:
                radial-gradient(1200px 480px at 100% -10%, color-mix(in srgb, var(--techno-primary) 12%, transparent), transparent 60%),
                radial-gradient(900px 420px at -5% 30%, color-mix(in srgb, var(--techno-primary) 7%, transparent), transparent 55%),
                var(--techno-body-bg, #fafafa);
            color: var(--ad-ink);
        }
        .account-dash .container {
            max-width: var(--techno-container-max-width, 1280px);
            margin-inline: auto;
            padding-inline: clamp(1rem, 2.5vw, 2rem);
        }
        .ad-hero {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-end;
            justify-content: space-between;
            gap: 1rem;
            margin-bottom: 1.75rem;
            padding-bottom: 1.25rem;
            border-bottom: 1px solid var(--ad-line);
        }
        .ad-hero-kicker {
            font-size: 0.8rem;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--ad-muted);
            margin: 0 0 0.35rem;
        }
        .ad-hero h1 {
            font-family: "Thmanyah Serif Display", "Thmanyah Sans", serif;
            font-size: clamp(1.85rem, 3.6vw, 2.6rem);
            font-weight: 700;
            letter-spacing: -0.02em;
            margin: 0 0 0.35rem;
            line-height: 1.15;
        }
        .ad-hero h1 span {
            color: var(--techno-primary);
        }
        .ad-hero p {
            margin: 0;
            color: var(--ad-muted);
            font-size: 0.98rem;
        }
        .ad-hero-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.65rem;
        }
        .ad-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            padding: 0.7rem 1.15rem;
            border-radius: 999px;
            border: 1px solid var(--ad-line);
            background: var(--ad-surface);
            color: var(--ad-ink);
            font-size: 0.9rem;
            font-weight: 600;
            text-decoration: none;
            transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
        }
        .ad-btn:hover {
            border-color: color-mix(in srgb, var(--techno-primary) 40%, var(--ad-line));
            color: var(--techno-primary);
            transform: translateY(-1px);
        }
        .ad-btn-primary {
            background: var(--techno-primary);
            border-color: var(--techno-primary);
            color: #fff;
        }
        .ad-btn-primary:hover {
            background: color-mix(in srgb, var(--techno-primary) 88%, #000);
            border-color: transparent;
            color: #fff;
        }

        .ad-layout {
            display: grid;
            grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
            gap: clamp(1.25rem, 2.5vw, 2rem);
            align-items: start;
        }
        @media (max-width: 960px) {
            .ad-layout { grid-template-columns: 1fr; }
        }

        .ad-side {
            background: var(--ad-surface);
            border: 1px solid var(--ad-line);
            border-radius: 22px;
            padding: 1.35rem 1.1rem 1.1rem;
            position: sticky;
            top: 96px;
        }
        @media (max-width: 960px) {
            .ad-side {
                position: static;
                padding: 1.1rem;
            }
        }
        .ad-profile {
            text-align: center;
            padding: 0.35rem 0.5rem 1.2rem;
            border-bottom: 1px solid var(--ad-line);
            margin-bottom: 1rem;
        }
        .ad-avatar {
            width: 76px;
            height: 76px;
            margin: 0 auto 0.85rem;
            border-radius: 50%;
            display: grid;
            place-items: center;
            font-family: "Thmanyah Serif Display", serif;
            font-size: 1.45rem;
            font-weight: 700;
            color: var(--techno-primary);
            background:
                linear-gradient(145deg, var(--ad-soft-2), #fff 55%, var(--ad-soft));
            border: 1px solid color-mix(in srgb, var(--techno-primary) 22%, var(--ad-line));
            box-shadow: 0 10px 28px color-mix(in srgb, var(--techno-primary) 14%, transparent);
        }
        .ad-profile h2 {
            margin: 0 0 0.25rem;
            font-size: 1.15rem;
            font-weight: 700;
        }
        .ad-profile p {
            margin: 0;
            font-size: 0.86rem;
            color: var(--ad-muted);
            word-break: break-word;
        }

        .ad-nav {
            display: flex;
            flex-direction: column;
            gap: 0.3rem;
            margin: 0;
            padding: 0;
            list-style: none;
        }
        @media (max-width: 960px) {
            .ad-nav {
                flex-direction: row;
                overflow-x: auto;
                gap: 0.45rem;
                padding-bottom: 0.25rem;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
            }
            .ad-nav::-webkit-scrollbar { display: none; }
        }
        .ad-nav a,
        .ad-nav button {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 0.7rem;
            padding: 0.72rem 0.85rem;
            border-radius: 14px;
            border: 0;
            background: transparent;
            color: var(--ad-ink);
            text-decoration: none;
            font: inherit;
            font-size: 0.92rem;
            font-weight: 600;
            cursor: pointer;
            text-align: start;
            transition: background .18s ease, color .18s ease;
            white-space: nowrap;
        }
        @media (max-width: 960px) {
            .ad-nav a,
            .ad-nav button {
                width: auto;
                background: color-mix(in srgb, var(--ad-line) 55%, #fff);
                padding-inline: 1rem;
            }
        }
        .ad-nav a i,
        .ad-nav button i {
            width: 1.15rem;
            text-align: center;
            color: var(--ad-muted);
            font-size: 0.95rem;
        }
        .ad-nav a:hover,
        .ad-nav button:hover,
        .ad-nav a.active,
        .ad-nav button.active {
            background: var(--ad-soft);
            color: var(--techno-primary);
        }
        .ad-nav a.active i,
        .ad-nav button.active i,
        .ad-nav a:hover i,
        .ad-nav button:hover i {
            color: var(--techno-primary);
        }
        .ad-nav .badge {
            margin-inline-start: auto;
            min-width: 1.4rem;
            height: 1.4rem;
            padding: 0 0.35rem;
            border-radius: 999px;
            background: var(--techno-primary);
            color: #fff;
            font-size: 0.72rem;
            display: inline-grid;
            place-items: center;
            font-weight: 700;
        }
        .ad-side-foot {
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid var(--ad-line);
        }
        .ad-logout {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.75rem 1rem;
            border-radius: 14px;
            border: 1px solid color-mix(in srgb, #ef4444 25%, var(--ad-line));
            background: color-mix(in srgb, #ef4444 6%, #fff);
            color: #b91c1c;
            text-decoration: none;
            font-weight: 700;
            font-size: 0.9rem;
            transition: background .2s ease;
        }
        .ad-logout:hover { background: color-mix(in srgb, #ef4444 12%, #fff); }

        .ad-main {
            display: flex;
            flex-direction: column;
            gap: 1.15rem;
            min-width: 0;
        }
        .ad-panel { display: none; }
        .ad-panel.active { display: flex; flex-direction: column; gap: 1.15rem; }

        .ad-stats {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 0.85rem;
        }
        @media (max-width: 1100px) {
            .ad-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        }
        .ad-stat {
            position: relative;
            overflow: hidden;
            background: var(--ad-surface);
            border: 1px solid var(--ad-line);
            border-radius: 18px;
            padding: 1.15rem 1.1rem;
            text-decoration: none;
            color: inherit;
            transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
        }
        .ad-stat:hover {
            transform: translateY(-2px);
            border-color: color-mix(in srgb, var(--techno-primary) 35%, var(--ad-line));
            box-shadow: 0 14px 34px color-mix(in srgb, var(--techno-primary) 10%, transparent);
        }
        .ad-stat::after {
            content: '';
            position: absolute;
            inset: auto -20% -40% auto;
            width: 110px;
            height: 110px;
            border-radius: 50%;
            background: color-mix(in srgb, var(--techno-primary) 10%, transparent);
            pointer-events: none;
        }
        .ad-stat-label {
            display: block;
            font-size: 0.82rem;
            color: var(--ad-muted);
            margin-bottom: 0.45rem;
            font-weight: 600;
        }
        .ad-stat-value {
            font-family: "Thmanyah Serif Display", serif;
            font-size: clamp(1.6rem, 2.5vw, 2rem);
            font-weight: 700;
            letter-spacing: -0.03em;
            line-height: 1;
            margin-bottom: 0.35rem;
        }
        .ad-stat-hint {
            font-size: 0.78rem;
            color: var(--ad-muted);
        }

        .ad-card {
            background: var(--ad-surface);
            border: 1px solid var(--ad-line);
            border-radius: 20px;
            padding: clamp(1.15rem, 2.2vw, 1.55rem);
        }
        .ad-card-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            margin-bottom: 1.1rem;
        }
        .ad-card-head h3 {
            margin: 0;
            font-size: 1.12rem;
            font-weight: 700;
            font-family: "Thmanyah Sans", sans-serif;
            display: flex;
            align-items: center;
            gap: 0.55rem;
        }
        .ad-card-head h3 i {
            color: var(--techno-primary);
            font-size: 0.95rem;
        }
        .ad-link {
            color: var(--techno-primary);
            text-decoration: none;
            font-size: 0.86rem;
            font-weight: 700;
            white-space: nowrap;
        }
        .ad-link:hover { text-decoration: underline; }

        .ad-quick {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 0.75rem;
        }
        @media (max-width: 720px) {
            .ad-quick { grid-template-columns: 1fr; }
        }
        .ad-quick a {
            display: flex;
            align-items: center;
            gap: 0.85rem;
            padding: 1rem;
            border-radius: 16px;
            border: 1px solid var(--ad-line);
            background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--techno-primary) 4%, #fff));
            text-decoration: none;
            color: inherit;
            transition: border-color .2s ease, transform .2s ease;
        }
        .ad-quick a:hover {
            border-color: color-mix(in srgb, var(--techno-primary) 40%, var(--ad-line));
            transform: translateY(-1px);
        }
        .ad-quick-icon {
            width: 42px;
            height: 42px;
            border-radius: 12px;
            display: grid;
            place-items: center;
            background: var(--ad-soft);
            color: var(--techno-primary);
            flex-shrink: 0;
        }
        .ad-quick strong {
            display: block;
            font-size: 0.92rem;
            margin-bottom: 0.1rem;
        }
        .ad-quick span {
            font-size: 0.78rem;
            color: var(--ad-muted);
        }

        .ad-orders { display: flex; flex-direction: column; gap: 0.65rem; }
        .ad-order {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 0.75rem 1rem;
            align-items: center;
            padding: 0.95rem 1rem;
            border-radius: 16px;
            border: 1px solid var(--ad-line);
            background: #fff;
            text-decoration: none;
            color: inherit;
            transition: border-color .2s ease, background .2s ease;
        }
        .ad-order:hover {
            border-color: color-mix(in srgb, var(--techno-primary) 35%, var(--ad-line));
            background: var(--ad-soft);
        }
        .ad-order-id {
            font-weight: 700;
            font-size: 0.95rem;
            margin-bottom: 0.2rem;
        }
        .ad-order-meta {
            font-size: 0.8rem;
            color: var(--ad-muted);
            display: flex;
            flex-wrap: wrap;
            gap: 0.45rem 0.85rem;
        }
        .ad-order-total {
            font-family: "Thmanyah Serif Display", serif;
            font-weight: 700;
            font-size: 1.05rem;
            text-align: end;
        }
        .ad-pill {
            display: inline-flex;
            align-items: center;
            padding: 0.28rem 0.65rem;
            border-radius: 999px;
            font-size: 0.72rem;
            font-weight: 700;
            background: var(--ad-soft);
            color: var(--techno-primary);
        }
        .ad-pill.is-success { background: #ecfdf5; color: #047857; }
        .ad-pill.is-danger { background: #fef2f2; color: #b91c1c; }
        .ad-pill.is-warn { background: #fffbeb; color: #b45309; }
        .ad-pill.is-info { background: #eff6ff; color: #1d4ed8; }

        .ad-empty {
            text-align: center;
            padding: 2rem 1rem;
            color: var(--ad-muted);
        }
        .ad-empty i {
            font-size: 1.8rem;
            margin-bottom: 0.65rem;
            color: color-mix(in srgb, var(--techno-primary) 55%, #9ca3af);
            display: block;
        }
        .ad-empty p { margin: 0 0 1rem; }

        .ad-form {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        .ad-form-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 1rem;
        }
        @media (max-width: 720px) {
            .ad-form-grid { grid-template-columns: 1fr; }
        }
        .ad-field label {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            font-size: 0.84rem;
            font-weight: 700;
            margin-bottom: 0.45rem;
            color: var(--ad-ink);
        }
        .ad-field label i { color: var(--techno-primary); font-size: 0.8rem; }
        .ad-field input {
            width: 100%;
            border: 1px solid var(--ad-line);
            border-radius: 14px;
            padding: 0.85rem 1rem;
            font: inherit;
            font-size: 0.95rem;
            background: #fff;
            color: var(--ad-ink);
            transition: border-color .2s ease, box-shadow .2s ease;
        }
        .ad-field input:focus {
            outline: none;
            border-color: color-mix(in srgb, var(--techno-primary) 55%, var(--ad-line));
            box-shadow: 0 0 0 4px color-mix(in srgb, var(--techno-primary) 12%, transparent);
        }
        .ad-form-actions {
            display: flex;
            justify-content: flex-start;
            gap: 0.75rem;
            padding-top: 0.25rem;
        }
        .ad-msg {
            display: none;
            margin-top: 0.85rem;
            padding: 0.85rem 1rem;
            border-radius: 12px;
            font-size: 0.9rem;
            font-weight: 600;
        }
        .ad-msg.success { display: block; background: #ecfdf5; color: #047857; }
        .ad-msg.error { display: block; background: #fef2f2; color: #b91c1c; }

        .ad-address {
            display: grid;
            gap: 0.7rem;
        }
        .ad-address-row {
            display: flex;
            gap: 0.75rem;
            align-items: flex-start;
            padding: 0.85rem 0.95rem;
            border-radius: 14px;
            background: color-mix(in srgb, var(--techno-primary) 4%, #fff);
            border: 1px solid var(--ad-line);
        }
        .ad-address-row i {
            margin-top: 0.15rem;
            color: var(--techno-primary);
            width: 1rem;
            text-align: center;
        }
        .ad-address-row strong {
            display: block;
            font-size: 0.78rem;
            color: var(--ad-muted);
            margin-bottom: 0.15rem;
            font-weight: 600;
        }
        .ad-address-row span {
            font-size: 0.95rem;
            font-weight: 600;
        }

        @keyframes adFadeUp {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .ad-hero, .ad-side, .ad-panel.active > * {
            animation: adFadeUp .45s ease both;
        }
        .ad-panel.active > *:nth-child(2) { animation-delay: .05s; }
        .ad-panel.active > *:nth-child(3) { animation-delay: .1s; }
        .ad-panel.active > *:nth-child(4) { animation-delay: .15s; }


/* Techno Mokab categories bar */
.custom-main-normal {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.12);
}
.custom-main-normal .main-menu-wrap,
.custom-main-normal .main-menu .menu-list {
    display: flex;
    gap: 0.15rem;
    list-style: none;
    margin: 0;
    padding: 0.2rem 0.5rem;
    overflow-x: auto;
    align-items: center;
}
.custom-main-normal .main-menu .menu-list a,
.custom-main-normal .menu-list a {
    display: block;
    padding: 0.7rem 0.95rem;
    color: #E8F1FF !important;
    text-decoration: none;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 0.88rem;
    font-weight: 600;
}
.custom-main-normal .main-menu .menu-list a:hover,
.custom-main-normal .menu-list a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
}
@media (max-width: 991px) {
    .custom-main-normal { display: none !important; }
}

/* Mobile search panel */
.header-search-mobile-panel {
    display: none;
    padding: 0.65rem 1rem 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.15);
}
.header-search-mobile-panel:not([hidden]),
.header-search-mobile-panel.is-open {
    display: block;
}
.header-search-mobile-panel .search-wrapper {
    display: flex;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.1);
}
.header-search-mobile-panel input {
    flex: 1;
    border: 0;
    padding: 0 0.85rem;
    outline: none;
    background: transparent;
    color: #fff;
}
.header-search-mobile-panel input::placeholder { color: rgba(255,255,255,0.65); }
.header-search-mobile-panel button {
    width: 48px;
    border: 0;
    background: rgba(255,255,255,0.15);
    color: #fff;
}
