/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');

:root {
    /* Colors - Will be overridden by dynamic values from header.php */
    --primary: #660652;
    --primary-hover: #4a043c;
    --secondary: #E91E63;
    --accent: #00bcd4;
    
    /* Static Colors (Not changed from admin) */
    --text-main: #333333;
    --text-light: #777777;
    --bg-light: #F9F9F9;
    --white: #ffffff;
    
    /* Design Tokens */
    --border-radius: 20px;
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.08);
    --font-main: 'Cairo', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Font Weights for Arabic */
    --font-weight-normal: 600;
    --font-weight-bold: 800;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    font-weight: var(--font-weight-normal);
    background: #fdfdfd;
    color: var(--text-main);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    padding-bottom: 80px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Wrapper */
.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px var(--primary-rgba-02);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-rgba-03);
}

/* Forms / Auth */
.form-control {
    width: 100%;
    display: block;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    color: var(--text-main);
    font-family: var(--font-main);
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.form-control::placeholder {
    color: #9aa3af;
    font-weight: 700;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-rgba-02);
}

.auth-wrapper {
    max-width: 560px;
    margin: 28px auto;
    padding: 0 12px;
}

.auth-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: -120px -120px auto auto;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle at center, var(--primary-rgba-15), rgba(0,0,0,0));
    pointer-events: none;
}

.auth-title {
    margin: 0 0 8px;
    font-weight: 900;
    color: var(--text-main);
    font-size: 26px;
}

.auth-subtitle {
    margin: 0 0 18px;
    color: #666;
    font-weight: 700;
    line-height: 1.7;
}

.auth-field {
    margin-bottom: 12px;
}

.auth-label {
    display: block;
    font-weight: 900;
    margin-bottom: 8px;
    color: #111827;
}

.auth-alert {
    padding: 12px 14px;
    border-radius: 16px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.7;
}

.auth-alert.warning {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

.auth-alert.error {
    background: #fdecea;
    border: 1px solid #f5c6cb;
    color: #b71c1c;
}

.auth-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 16px;
    border-radius: 18px;
    font-weight: 900;
    transition: var(--transition);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px var(--primary-rgba-03);
}

.auth-footer {
    margin-top: 14px;
    text-align: center;
    font-weight: 800;
    color: #666;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 900;
}

/* Header */
.main-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 5px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Exact Logo Styling if text */
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin: 0;
    line-height: 1;
}

.nav-menu ul {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-bar input {
    background: #f5f5f5;
    border: 1px solid transparent;
    padding: 10px 20px;
    border-radius: 30px;
    width: 250px;
    transition: var(--transition);
    font-weight: 600;
}

.search-bar input:focus {
    background: white;
    border-color: #eee;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.action-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icon-btn {
    font-size: 1.4rem;
    color: #444;
    cursor: pointer;
    position: relative;
    transition: .2s;
}

.icon-btn:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--secondary);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Hero Slider */
.hero-slider-container {
    position: relative;
    margin-bottom: 40px;
}

.hero-swiper {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.hero-swiper .swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.slide-image-wrapper {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 40px;
}

.slide-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.slide-text-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    text-align: right;
    color: #fff;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.slide-title {
    font-size: 2.5rem;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 900;
    text-shadow: none;
}

.slide-subtitle {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 0;
    font-weight: 600;
    text-shadow: none;
}

/* Swiper Navigation Buttons */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.95);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    margin-top: -25px;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
    font-size: 20px;
    font-weight: 900;
}

.hero-swiper .swiper-button-next {
    right: 20px;
}

.hero-swiper .swiper-button-prev {
    left: 20px;
}

/* Swiper Pagination */
.hero-swiper .swiper-pagination {
    bottom: 20px !important;
}

.hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: var(--primary);
    width: 30px;
    border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-swiper {
        height: 350px;
        border-radius: 15px;
    }

    .slide-image-wrapper {
        padding: 20px;
    }

    .slide-text-content {
        max-width: 100%;
        padding: 20px;
    }

    .slide-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .slide-subtitle {
        font-size: 1rem;
    }

    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev {
        width: 40px;
        height: 40px;
        margin-top: -20px;
    }

    .hero-swiper .swiper-button-next::after,
    .hero-swiper .swiper-button-prev::after {
        font-size: 16px;
    }

    .hero-swiper .swiper-button-next {
        right: 10px;
    }

    .hero-swiper .swiper-button-prev {
        left: 10px;
    }
}

@media (max-width: 480px) {
    .hero-swiper {
        height: 280px;
        border-radius: 12px;
    }

    .slide-image-wrapper {
        padding: 15px;
    }

    .slide-text-content {
        padding: 15px;
    }

    .slide-title {
        font-size: 1.4rem;
    }

    .slide-subtitle {
        font-size: 0.9rem;
    }

    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev {
        width: 35px;
        height: 35px;
        margin-top: -17.5px;
    }

    .hero-swiper .swiper-button-next::after,
    .hero-swiper .swiper-button-prev::after {
        font-size: 14px;
    }
}

/* Categories Grid Section Refined */
.nasa-theme-style .categories-grid-section {
    margin-bottom: 40px;
    padding: 30px 0;
    position: relative;
    background: radial-gradient(circle at center, var(--primary-rgba-05) 0%, transparent 70%);
}

.nasa-theme-style .categories-scroll-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    /* Force single row for scrolling */
    justify-content: flex-start !important;
    gap: 15px !important;
    overflow-x: auto !important;
    /* Enable horizontal scroll */
    padding: 10px 15px !important;
    scrollbar-width: none !important;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none !important;
    /* Hide scrollbar IE/Edge */
    -webkit-overflow-scrolling: touch !important;
    /* Smooth scroll iOS */
}

.nasa-theme-style .categories-scroll-container::-webkit-scrollbar {
    display: none !important;
    /* Hide scrollbar Chrome/Safari */
}

.nasa-theme-style .category-card {
    min-width: 150px !important;
    /* Slightly smaller as requested */
    width: 150px !important;
    flex: 0 0 auto !important;
    /* Don't grow/shrink */
    position: relative;
    transition: var(--transition);
    text-align: center;
}

.nasa-theme-style .cat-img-box {
    position: relative !important;
    padding-top: 100% !important;
    /* Exact 1:1 Aspect Ratio */
    background: #f0f0f0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    margin-bottom: 12px !important;
}

.nasa-theme-style .cat-img-box img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.nasa-theme-style .category-card h3 {
    font-size: 18px !important;
    /* Larger for better visibility */
    font-weight: 800 !important;
    /* Bolder */
    color: var(--primary) !important;
    /* Match header color */
    margin: 10px 0 !important;
    display: block !important;
}



/* Centered Section Headers */
.section-headers.centered {
    flex-direction: column;
    justify-content: center;
    border-bottom: none;
    margin-bottom: 30px;
    gap: 10px;
}

.section-headers.centered::after {
    content: '';
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 5px;
    filter: drop-shadow(0 2px 4px var(--primary-rgba-03));
}



/* Product Grid */
.section-headers {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.section-headers h3 {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 900;
    margin: 0;
}

.view-all {
    color: #777;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    /* Reduced size */
    gap: 20px;
    margin-bottom: 60px;
}

/* Product Card Redesign - Absolute Button Fix */
.nasa-theme-style .product-card {
    background: #fff !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 15px !important;
    padding: 0 !important;
    padding-bottom: 0 !important;
    /* Spacer strategy engaged */
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

.nasa-theme-style .product-card:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
    transform: translateY(-5px) !important;
}

.nasa-theme-style .product-image {
    position: relative !important;
    padding-top: 100% !important;
    background: #f9f9f9 !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
    border-radius: 15px 15px 0 0 !important;
    width: 100% !important;
}

/* RESTORED IMAGE STYLES - CRITICAL */
.nasa-theme-style .product-image img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Product Image Slider Styles */
.nasa-theme-style .product-image-swiper {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.nasa-theme-style .product-image-swiper .swiper-wrapper {
    width: 100% !important;
    height: 100% !important;
}

.nasa-theme-style .product-image-swiper .swiper-slide {
    width: 100% !important;
    height: 100% !important;
}

.nasa-theme-style .product-image-swiper .swiper-slide img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.nasa-theme-style .product-info {
    padding: 15px !important;
    text-align: right !important;
    direction: rtl !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.nasa-theme-style .product-title {
    font-size: 16px !important;
    color: #333 !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    display: block !important;
    line-height: 1.3 !important;
}

.nasa-theme-style .product-price {
    font-size: 17px !important;
    color: var(--primary) !important;
    font-weight: 800 !important;
    display: block !important;
    margin-bottom: 15px !important;
}

/* Full Width Button Logic - Absolute Positioning */
.nasa-theme-style .add_to_cart_button {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background-color: var(--primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 0 15px 15px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 12px 15px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
    text-decoration: none !important;
    z-index: 10 !important;
}

.nasa-theme-style .add_to_cart_button:hover {
    background-color: var(--primary-hover) !important;
    color: #fff !important;
    padding-bottom: 15px !important;
}

.nasa-theme-style .nasa-icon.cart-icon {
    display: flex !important;
    align-items: center !important;
}

.nasa-theme-style .nasa-icon.cart-icon svg {
    fill: currentColor !important;
    transform: scaleY(-1);
    /* Correct flip if needed as per svg class name/viewbox */
}

/* Reset padding */
.nasa-theme-style .product-card {
    padding-bottom: 0 !important;
    /* Spacer handles spacing now */
}

/* Physical Spacer to prevent overlap */
.card-spacer {
    height: 55px !important;
    width: 100%;
    flex-shrink: 0;
}


/* Mobile Bottom Nav */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    height: 65px;
    justify-content: space-around;
    align-items: center;
    z-index: 2000;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.06);
    border-radius: 20px 20px 0 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #aaa;
    transition: .2s;
}

.nav-item i {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 0.65rem;
    font-weight: 700;
}

.nav-item.active {
    color: var(--primary);
    transform: translateY(-3px);
}

/* Mobile Specifics */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .nav-menu {
        display: none;
    }

    .mobile-bottom-nav {
        display: flex;
    }

    .container {
        padding: 0 10px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        /* Force 2 columns */
        gap: 15px !important;
        /* Better spacing */
    }

    .product-card {
        padding: 0 !important;
        padding-bottom: 80px !important;
        /* Force on mobile too */
    }

    .nasa-theme-style .add_to_cart_button {
        width: 100% !important;
        /* Natural Width */
        margin: 0 !important;
        font-size: 13px !important;
        padding: 10px 0 !important;
    }

    .product-image {
        border-radius: 15px 15px 0 0 !important;
        margin-bottom: 0 !important;
        width: 100% !important;
    }

    .add-to-cart-btn-overlay {
        display: none;
    }

    /* No hover on mobile */

    .product-title {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .product-price {
        font-size: 1.1rem;
    }

    .hero-slider-container {
        margin-bottom: 20px;
    }

    .swiper {
        height: 260px;
        border-radius: 15px;
        overflow: hidden;
        margin: 0 10px;
        width: calc(100% - 20px);
    }

    .slide-text h2 {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .slide-text p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .categories-scroll-container {
        gap: 10px;
        padding: 5px 10px;
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
    }

    .cat-overlay span {
        font-size: 0.9rem;
        display: none;
        /* Hide overlay text if title is below */
    }

    /* Mobile Header Specifics */
    .mobile-left {
        gap: 12px;
    }

    .mobile-account-icon {
        font-size: 1.4rem;
        color: #444;
    }

    .mobile-cart-icon {
        position: relative;
    }
}

/* ... Existing CSS ... */

/* =========================================
   NASA THEME REPLICA STYLES (EXACT MATCH)
   ========================================= */

/* Visibility Utilities (CRITICAL FIXES - Enforce !important) */
.nasa-hide-for-mobile {
    display: block !important;
}

.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .nasa-hide-for-mobile {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }
}

/* Drawers (Hidden by Default - Safer) */
.mobile-menu-drawer,
.cart-drawer,
.wishlist-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: white;
    z-index: 10000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
    /* Off-canvas via transform */
    display: none;
    /* remove from flow entirely */
}

.mobile-menu-drawer.active,
.cart-drawer.active,
.wishlist-drawer.active {
    display: block;
    transform: translateX(0);
}

/* =========================================
   STRICTLY ISOLATED HEADER STYLES
   ========================================= */

/* -----------------------------------------
   DESKTOP STYLES (Min-Width: 769px) - Tablet Landscape & Desktop
   ----------------------------------------- */
@media (min-width: 769px) {
    .desktop-layout {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 90px;
        padding: 0 15px;
    }

    .logo-desktop h1 {
        font-size: 28px;
        color: var(--primary);
        line-height: 1;
    }

    /* Fixed Search Bar */
    .search-column {
        flex: 1;
        max-width: 600px;
        margin: 0 40px;
    }

    .nasa-ajax-search-form {
        position: relative;
        width: 100%;
        display: flex;
        align-items: center;
    }

    .search-input {
        width: 100%;
        height: 48px;
        background: #f7f7f7;
        border: 1px solid #e5e5e5;
        border-radius: 50px;
        padding: 0 55px 0 20px;
        /* Space for icon */
        font-family: var(--font-main);
        font-size: 14px;
        color: #333;
    }

    .nasa-submit-search {
        position: absolute;
        right: 5px;
        /* RTL fix */
        top: 5px;
        height: 38px;
        width: 38px;
        background: var(--primary);
        color: white;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }

    /* Fixed Login & Icons */
    .icons-column {
        display: flex;
        align-items: center;
    }

    .header-icons {
        display: flex;
        align-items: center;
        gap: 25px;
    }

    .header-icons li {
        display: flex;
        align-items: center;
    }

    /* Cart Icon - Larger Size */
    .header-cart a {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #333;
        transition: all 0.3s ease;
    }

    .header-cart i {
        font-size: 1.8rem;
        color: #333;
        transition: all 0.3s ease;
    }

    .header-cart:hover i {
        color: var(--primary);
        transform: scale(1.1);
    }

    .header-cart .nasa-cart-count {
        position: absolute;
        top: -8px;
        right: -8px;
        background: var(--primary);
        color: #fff;
        font-size: 11px;
        font-weight: 800;
        min-width: 20px;
        height: 20px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .desktop-nav-menu {
        border-top: 1px solid rgba(var(--primary-rgb), 0.1);
        background: var(--primary);
    }

    .desktop-menu-list {
        display: flex;
        justify-content: center;
        gap: 35px;
        padding: 15px 0;
        margin: 0;
    }

    .desktop-menu-list a {
        font-weight: 700;
        font-size: 16px;
        color: white;
        transition: all 0.3s;
    }

    .desktop-menu-list a:hover,
    .desktop-menu-list a.active {
        color: var(--secondary);
        transform: translateY(-2px);
    }
}

/* -----------------------------------------
   MOBILE STYLES (Max-Width: 991px) 
   ----------------------------------------- */
@media (max-width: 991px) {
    .mobile-layout {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 65px;
        padding: 0 15px;
        position: relative;
    }

    .mobile-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        text-align: center;
        z-index: 1;
        /* Behind icons */
    }

    .mobile-center a {
        position: relative;
        z-index: 10;
        /* Clickable */
    }

    .mobile-right,
    .mobile-left {
        display: flex;
        gap: 18px;
        align-items: center;
        font-size: 1.4rem;
        z-index: 5;
        position: relative;
    }

    /* Fix Mobile Bottom Nav Glow */
    .mobile-bottom-nav {
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
        /* Softer shadow */
    }
}

/* -----------------------------------------
   SHARED CATEGORY UPDATES
   ----------------------------------------- */
.categories-strip {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    /* Ensure wrapping on big screens so they stay centered */
    gap: 30px;
    padding: 20px 0;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    text-align: center;
    cursor: pointer;
}

.cat-img {
    width: 100px;
    height: 100px;
    border-radius: 40px;
    /* Soft Rounded Square */
    overflow: hidden;
    background: #fdf2f7;
    /* Very light pink */
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.cat-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Prevent clipping */
    transform: scale(0.9);
    /* Slight padding inside */
}

.category-item:hover .cat-img {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {

    /* Changed from 991px to 768px to limit side-scrolling to actual mobile */
    .categories-strip {
        justify-content: flex-start;
        padding: 10px 10px 5px;
        /* Minimized bottom padding */
        gap: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        /* Keep strip on mobile */
    }

    .category-item {
        min-width: 65px;
        /* Even smaller width */
        width: 65px;
    }

    .cat-img {
        width: 55px;
        /* Even smaller image */
        height: 55px;
        border-radius: 18px;
    }

    .category-item span {
        font-size: 0.75rem;
        /* Smaller font */
    }
}

/* Mobile Header Exact */
.mobile-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border-bottom: 1px solid #eee;
    /* Added separator */
}

.mini-icon-mobile {
    display: flex;
    gap: 15px;
}

.nasa-flex {
    display: flex;
    align-items: center;
}

/* Override existing mobile bottom nav for exact look */
.mobile-bottom-nav {
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
    height: 60px;
}

.mobile-bottom-nav .nav-item i {
    color: #333;
    font-size: 1.5rem;
    /* Increased from 20px */
    margin-bottom: 2px;
}

.mobile-bottom-nav .nav-item span {
    color: #777;
    margin-top: 5px;
}

.mobile-bottom-nav .nav-item.active i,
.mobile-bottom-nav .nav-item.active span {
    color: var(--primary);
}

/* Product Card Updates based on 'product-item' structure */
.product-item.grid .product-img-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid #eee;
}

.product-item .info {
    padding: 10px 5px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-item .name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #333;
    display: block;
    margin-bottom: 2px;
    height: 40px;
    /* Fixed height for alignment */
    overflow: hidden;
}

.product-item .price {
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    color: var(--primary);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
}

/* FULL WIDTH BUTTON STYLE */
/* Duplicate button rule removed */

/* Mobile Bottom Nav - FORCE SHOW */
.mobile-bottom-nav {
    display: none;
    /* Hidden on desktop */
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex !important;
        /* Force flex on mobile */
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 65px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        justify-content: space-around;
        align-items: center;
        z-index: 99999;
        /* Max z-index */
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
        padding-bottom: env(safe-area-inset-bottom);
        /* iPhone X+ fix */
    }
}

/* Features Section - Professional Redesign */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    /* Increased gap */
}

.feature-box {
    background: #fff;
    border: 1px solid #eee;
    /* Slightly more visible border */
    border-radius: 20px;
    /* Softer rounded corners */
    padding: 30px 20px;
    /* More vertical padding */
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    position: relative;
    overflow: hidden;
}

.feature-box:hover {
    transform: translateY(-8px);
    /* Higher lift */
    box-shadow: 0 15px 30px var(--primary-rgba-08);
    /* Colored shadow */
    border-color: var(--primary);
}

.feature-box .icon-box {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px auto;
    background: var(--primary-rgba-06);
    /* Light purple background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.feature-box:hover .icon-box {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.feature-box h4 {
    font-size: 17px;
    /* Larger */
    font-weight: 800;
    margin-bottom: 8px;
    color: #333;
}

.feature-box p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .feature-box {
        padding: 20px 15px;
    }

    .feature-box .icon-box {
        width: 55px;
        height: 55px;
        font-size: 22px;
        margin-bottom: 15px;
    }

    .feature-box h4 {
        font-size: 15px;
    }
}

/* =========================================
   PREMIUM FOOTER REDESIGN (LIGHT THEME)
   ========================================= */

.nasa-footer {
    background-color: #f9f9f9;
    /* Light Background */
    color: #444;
    /* Darker text */
    font-family: 'Cairo', sans-serif;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
    margin-top: 50px;
    border-top: 1px solid #eee;
}

.footer-top {
    padding-bottom: 50px;
    border-bottom: 1px solid #e5e5e5;
    /* Light border */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
    gap: 40px;
}

/* Widget Styles */
.footer-widget .widget-title {
    color: #222;
    /* Dark Title */
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-widget .widget-title::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Brand Column */
.logo-text {
    color: var(--primary);
    /* Primary Color for Logo */
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #666;
    /* Medium Gray */
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #fff;
    /* White background */
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-5px);
    color: #fff;
    border-color: var(--primary);
}

/* Links List */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #555;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--primary);
    padding-right: 8px;
    /* Move left in RTL */
}

/* Newsletter */
.newsletter-text {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.newsletter-form {
    display: flex;
    position: relative;
    margin-bottom: 25px;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    padding-left: 50px;
    /* Space for button */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50px;
    color: #333;
    outline: none;
    transition: all 0.3s;
    font-family: inherit;
    font-weight: 600;
}

.newsletter-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 4px 15px var(--primary-rgba-10);
}

.btn-newsletter {
    position: absolute;
    left: 5px;
    top: 5px;
    height: 34px;
    /* input height - 10px */
    width: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-newsletter:hover {
    transform: scale(1.1);
}

/* Contact Info */
.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-item i {
    width: 35px;
    height: 35px;
    background: var(--primary-rgba-08);
    /* Light Primary */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 14px;
}

.contact-item span {
    font-size: 14px;
    color: #555;
    font-weight: 600;
    direction: ltr;
    /* specific for phone/email */
}

/* Footer Bottom */
.footer-bottom {
    padding: 25px 0;
    background: #f1f1f1;
    border-top: 1px solid #e5e5e5;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-text p {
    margin: 0;
    font-size: 14px;
    color: #777;
    font-weight: 600;
}

.payment-icons {
    display: flex;
    gap: 15px;
    font-size: 24px;
    color: #888;
}

.payment-icons i:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .footer-widget {
        text-align: center;
    }

    .footer-widget .widget-title::after {
        right: 50%;
        transform: translateX(50%);
    }

    .social-links,
    .footer-bottom-content {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
    }

    .contact-item {
        justify-content: center;
    }

    .footer-links a:hover {
        padding-right: 0;
    }
}

/* =========================================
   CUSTOM MOBILE BOTTOM NAV STYLES
   ========================================= */

/* =========================================
   ULTRA-PREMIUM MOBILE NAV (ROBUST STYLE)
   ========================================= */

@media (max-width: 768px) {
    .mobile-bottom-nav {
        background: #fff !important;
        height: 75px !important;
        padding-bottom: 0 !important;
        justify-content: space-around !important;
        /* Better spacing */
        align-items: center;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.05);
        /* Softer shadow */
        border: none;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        overflow: visible !important;
        /* Critical for floating button */
    }

    /* Remove complex shadow notch - it causes bugs */
    .mobile-bottom-nav::before {
        display: none;
    }

    .nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #b0b0b0;
        transition: all 0.3s ease;
        height: 100%;
        padding-top: 10px;
        /* Push items down slightly */
    }

    .nav-item i {
        font-size: 1.4rem;
        margin-bottom: 4px;
        transition: transform 0.3s;
    }

    .nav-item span {
        font-size: 11px;
        font-weight: 700;
        font-family: 'Cairo', sans-serif;
    }

    /* Active States */
    .nav-item:not(.center-item).active {
        color: var(--primary);
    }

    .nav-item:not(.center-item).active i {
        transform: translateY(-3px);
    }

    /* CENTER ITEM - FLOATING WITH BORDER CUTOUT */
    .center-item {
        position: relative;
        top: -30px;
        /* Clean float */
        height: auto;
        width: 80px;
        flex: 0 0 80px;
        display: flex;
        justify-content: center;
        overflow: visible;
    }

    .nav-icon-circle {
        width: 60px;
        height: 60px;
        background: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #333;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border: 6px solid #fff;
        /* THE REAL CUTOUT TRICK */
        transition: transform 0.2s ease;
    }

    .center-item i {
        font-size: 1.5rem;
        margin-bottom: 0 !important;
        color: #333;
    }

    .center-item span {
        position: absolute;
        bottom: -20px;
        /* Position text comfortably below button */
        color: #333;
        font-weight: 800;
        font-size: 12px;
        width: 100%;
        text-align: center;
        text-shadow: none;
    }

    /* Cart Badge Position Fix */
    .mobile-nav-count {
        position: absolute;
        top: -8px;
        right: -8px;
        background: var(--secondary);
        color: #fff;
        font-size: 10px;
        font-weight: 800;
        min-width: 18px;
        height: 18px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    .icon-rel {
        position: relative;
    }

    .center-item:active .nav-icon-circle {
        transform: scale(0.95);
    }
}

/* =========================================
   BOTTOM SHEET STYLES (MORE MENU)
   ========================================= */

.more-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.more-sheet-overlay.active {
    opacity: 1;
    visibility: visible;
}

.more-sheet {
    position: fixed;
    bottom: 0px;
    /* Hidden initially (height depends on content) */
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 10001;
    border-radius: 25px 25px 0 0;
    padding: 20px 20px 40px 20px;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.more-sheet.active {
    transform: translateY(0);
}

.sheet-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    padding-top: 10px;
}

.sheet-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 800;
}

.drag-handle {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 5px;
    background: #e0e0e0;
    border-radius: 10px;
}

.sheet-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sheet-btn {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
    border: 1px solid transparent;
}

.sheet-btn i:first-child {
    font-size: 24px;
    width: 40px;
    text-align: center;
    margin-left: 15px;
}

.sheet-btn .btn-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: right;
    /* RTL */
}

.sheet-btn .main-text {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2px;
}

.sheet-btn .sub-text {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
}

.sheet-btn .arrow {
    font-size: 14px;
    color: #ccc;
    transition: transform 0.2s;
}

.sheet-btn:hover {
    transform: scale(0.98);
}

/* Primary Button (Login/Reg) */
.primary-btn {
    background: #f9f9f9;
    border: 1px solid #eee;
}

.primary-btn i:first-child {
    color: #333;
}

.primary-btn:active {
    background: #f0f0f0;
    border-color: #ddd;
}

/* WhatsApp Button */
.whatsapp-btn {
    background: #f9f9f9;
    border: 1px solid #eee;
}

.whatsapp-btn i:first-child {
    color: #333;
}

.whatsapp-btn .main-text {
    color: var(--primary);
}

.whatsapp-btn .sub-text {
    color: var(--text-light);
}

.whatsapp-btn:active {
    background: #f0f0f0;
    border-color: #ddd;
}

/* Search Button */
.search-btn {
    background: #f9f9f9;
    border: 1px solid #eee;
}

.search-btn i:first-child {
    color: #333;
}

.search-btn:active {
    background: #f0f0f0;
    border-color: #ddd;
}

/* Outline Button (Full Menu) - DEPRECATED / REMOVED */
.outline-btn {
    background: #fff;
    border: 1px dashed #ddd;
    margin-top: 10px;
    padding: 12px 15px;
}

.outline-btn .main-text {
    font-size: 14px;
    color: #666;
}

.outline-btn i:first-child {
    font-size: 18px;
    color: #999;
}

/* =========================================
   MOBILE HEADER ADJUSTMENTS
   ========================================= */
@media (max-width: 768px) {
    .mobile-header .header-inner {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
    }

    .mobile-center {
        text-align: center !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .logo-mobile img {
        display: block;
        /* Removes inline spacing */
        margin: 0 auto;
    }

    /* Footer Logo Center */
    .footer-logo {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-bottom: 15px;
    }

    .footer-logo img {
        margin: 0 auto;
        display: block;
    }
}

/* =========================================
   LATEST PRODUCTS SLIDER (Horizontal)
   ========================================= */
.products-horizontal-scroll {
    display: flex;
    flex-wrap: nowrap;
    /* Prevent wrapping */
    overflow-x: auto;
    gap: 15px;
    padding: 10px 5px 20px 5px;
    /* Bottom padding for scrollbar/shadow */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    /* Firefox */
}

/* Hide Scrollbar for cleaner look (optional, but requested 'like categories') */
.products-horizontal-scroll::-webkit-scrollbar {
    height: 4px;
}

.products-horizontal-scroll::-webkit-scrollbar-thumb {
    background: #eee;
    border-radius: 10px;
}

/* Specific styling for Product Card inside Scroll Container */
.product-card.scroll-card {
    min-width: 165px;
    /* Minimum width to maintain shape */
    width: 165px;
    flex: 0 0 auto;
    /* Prevent shrinking in flex container */
    margin-bottom: 5px;
    /* Tiny bottom margin for shadow */
    display: flex;
    /* Ensure flex layout inside */
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card.scroll-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    /* Re-add hover effect */
}

/* Adjust image height for the smaller scroll card if needed */
.product-card.scroll-card .product-image {
    height: 165px;
    /* Square aspect ratio usually looks good */
    position: relative;
}

.product-card.scroll-card .product-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* Product Image Slider for Scroll Cards */
.product-card.scroll-card .product-image-swiper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.product-card.scroll-card .product-image-swiper .swiper-wrapper {
    width: 100%;
    height: 100%;
}

.product-card.scroll-card .product-image-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}

.product-card.scroll-card .product-image-swiper .swiper-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ensure Font sizes scale down slightly if needed */
.product-card.scroll-card .product-title {
    font-size: 0.9rem;
    height: 38px;
    /* Fixed height for title alignment */
    overflow: hidden;
}

.product-card.scroll-card .product-price {
    font-size: 1rem;
}

/* =========================================
   PREMIUM DRAWER STYLES (Eleven Kids Similarity)
   ========================================= */
.cart-drawer,
.wishlist-drawer,
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: 0;
    /* Default LTR */
    width: 350px;
    height: 100%;
    background: #fff;
    z-index: 10000;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

[dir="rtl"] .cart-drawer,
[dir="rtl"] .wishlist-drawer,
[dir="rtl"] .mobile-menu-drawer {
    left: auto;
    right: 0;
    transform: translateX(100%);
}

.cart-drawer.open,
.wishlist-drawer.open,
.mobile-menu-drawer.open {
    transform: translateX(0) !important;
}

/* Header */
.drawer-header {
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.drawer-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #222;
}

.close-drawer {
    background: #f7f7f7;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    font-size: 14px;
    transition: background 0.2s;
}

.close-drawer:hover {
    background: #eee;
}

/* Body */
.drawer-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

/* Cart Item */
.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f9f9f9;
    position: relative;
    align-items: flex-start;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item .item-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #f5f5f5;
}

.cart-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item .item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 5px;
    color: #333;
    line-height: 1.4;
}

.cart-item .item-price {
    font-size: 15px;
    color: #222;
    font-weight: 800;
    margin-bottom: 10px;
}

/* Qty Control */
.qty-control {
    display: flex;
    align-items: center;
    background: #f7f7f7;
    border-radius: 8px;
    width: fit-content;
    padding: 2px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
}

.qty-input {
    width: 30px;
    text-align: center;
    border: none;
    background: none;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* Remove Button */
.remove-item {
    color: #999;
    font-size: 16px;
    margin-top: 5px;
    cursor: pointer;
    transition: color 0.2s;
    align-self: flex-start;
}

.remove-item:hover {
    color: #ff4d4d;
}

/* Footer Actions */
.drawer-footer {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
}

.subtotal-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

.subtotal-row .amount {
    color: var(--primary);
    font-size: 18px;
}

.cart-buttons {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.btn-checkout {
    background: #4a3b75;
    /* Premium Purple from reference */
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
    width: 100%;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s;
}

.btn-checkout:hover {
    background: #3a2e5c;
}

.btn-view-cart {
    background: #f5f5f5;
    color: #333;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
    width: 100%;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-view-cart:hover {
    background: #eee;
}

/* =========================================
   SITE OVERLAY (BLUR BACKDROP)
   ========================================= */
.site-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Dark semi-transparent */
    backdrop-filter: blur(5px);
    /* BLUR EFFECT */
    -webkit-backdrop-filter: blur(5px);
    /* Safari support */
    z-index: 9999;
    /* Below drawer (10000) but above everything else */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.site-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   PREMIUM PRODUCT PAGE STYLES (Antigravity's Touch)
   ========================================= */

/* Breadcrumbs */
.breadcrumbs-container {
    padding: 24px 0;
    font-size: 14px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.3px;
}

.breadcrumbs-container a {
    color: #444;
    font-weight: 500;
    transition: color 0.2s;
}

.breadcrumbs-container a:hover {
    color: var(--primary);
}

.breadcrumbs-container .sep {
    color: #ddd;
    font-size: 10px;
}

.breadcrumbs-container .current {
    color: var(--primary);
    font-weight: 700;
}

/* Grid Layout */
.product-page-container {
    padding-bottom: 80px;
}

.product-details-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* More space for images */
    gap: 60px;
    margin-bottom: 80px;
    align-items: start;
    /* For Sticky */
}

/* Gallery */
.product-gallery {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    /* Soft Shadow */
    background: #fff;
    padding: 10px;
}

.mySwiper2 {
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
}

.swiper-slide img {
    border-radius: 15px;
    transition: transform 0.5s ease;
}

.swiper-slide img:hover {
    transform: scale(1.03);
    /* Zoom effect */
}

.main-image-wrapper .sale-badge {
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    font-size: 14px;
    padding: 6px 15px;
    top: 20px;
    right: 20px;
    z-index: 10;
}

/* Info Column (Sticky) */
.product-info-column {
    position: sticky;
    top: 100px;
    /* Sticky on Scroll */
    padding: 10px 5px;
}

.product-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #1a1a1a;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.product-price-box {
    background: #fafafa;
    display: inline-flex;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid #eee;
    margin-bottom: 25px;
}

.current-price {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary);
}

.old-price {
    font-size: 20px;
    color: #aaa;
    margin-left: 15px;
    font-weight: 500;
}

.stock-status {
    background: #e8f5e9;
    color: #27ae60;
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 13px;
    margin-bottom: 30px;
}

.product-short-desc {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 35px;
    border-bottom: 1px solid #eee;
    padding-bottom: 35px;
}

/* Options */
.option-row label {
    font-size: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.size-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #eaeaea;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    font-weight: 700;
    font-size: 14px;
}

.size-box:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.size-box.selected {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(74, 59, 117, 0.4);
    /* Glow */
}

/* Actions */
.product-actions-wrapper {
    margin-top: 40px;
    gap: 20px;
}

.qty-wrapper {
    height: 55px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 14px;
}

.qty-wrapper button:hover {
    color: var(--primary);
    background: #eee;
}

.btn-add-cart {
    height: 55px;
    font-size: 17px;
    border-radius: 14px;
    background: linear-gradient(135deg, #4a3b75 0%, #3a2e5c 100%);
    box-shadow: 0 10px 30px rgba(74, 59, 117, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-add-cart::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.btn-buy-now {
    height: 55px;
    font-size: 17px;
    /* Matches Add to Cart */
    border-radius: 14px;
    border-width: 2px;
    font-weight: 800;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
    border-top: 1px solid #eee;
    padding-top: 25px;
}

.trust-item {
    text-align: center;
    font-size: 12px;
    color: #666;
}

.trust-item i {
    display: block;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 8px;
}

/* Related */
.related-products-section h3 {
    text-align: center;
    position: relative;
    display: table;
    margin: 0 auto 40px;
    font-size: 28px;
}

.related-products-section h3::after {
    content: '';
    display: block;
    width: 50%;
    height: 3px;
    background: var(--primary);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* =========================================
   PROFESSIONAL REFINEMENTS (Sizes, Colors, Trust)
   ========================================= */

/* Options Container */
.product-options {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.option-row {
    margin-bottom: 20px;
}

/* Color Swatches */
.color-box {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #ddd;
    position: relative;
    transition: transform 0.2s;
}

.color-box:hover {
    transform: scale(1.1);
}

.color-box.selected::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid #000;
    border-radius: 50%;
}

/* Extra Actions (Wishlist/Share) */
.extra-actions {
    display: flex;
    gap: 25px;
    margin-top: 25px;
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px solid #f9f9f9;
}

.extra-actions a {
    color: #555;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    font-weight: 500;
    text-decoration: none;
}

.extra-actions a i {
    font-size: 16px;
    color: #999;
    transition: color 0.2s;
}

.extra-actions a:hover {
    color: #000;
}

.extra-actions a:hover i {
    color: #e74c3c;
    /* Heart color */
}

/* Trust Badges - Professional Grid */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 0;
    background: #fcfcfc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.trust-item i {
    font-size: 20px;
    color: #333;
    margin-bottom: 0;
    background: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.trust-item span {
    font-size: 11px;
    font-weight: 600;
    color: #555;
    line-height: 1.3;
}

/* Mobile Adjustments for Trust */
@media (max-width: 480px) {
    .trust-badges {
        padding: 15px;
        gap: 10px;
    }

    .trust-item span {
        font-size: 10px;
    }

    .color-box {
        width: 40px;
        /* Larger tap target */
        height: 40px;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .product-details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-gallery {
        box-shadow: none;
        padding: 0;
        background: transparent;
    }

    .product-info-column {
        position: static;
        /* No sticky on mobile */
    }

    .product-actions-wrapper {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        padding: 15px 20px;
        gap: 15px;
    }

    .qty-wrapper {
        display: none;
        /* Hide Qty on sticky bar to save space */
    }

    .btn-add-cart {
        flex: 2;
        font-size: 16px;
    }

    .btn-buy-now {
        display: none;
    }

    .product-actions-wrapper {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 99999 !important;
    }

    .product-page-container {
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 90px;
    }
}

/* Force RTL Global */
html,
body {
    direction: rtl;
    text-align: right;
}

/* =========================================
   CLEAN MINIMAL PRODUCT STYLES (User Reference Override)
   ========================================= */

/* Gallery - Clean & Rounded */
.product-gallery {
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 20px;
}

.mySwiper2 {
    border-radius: 20px !important;
    background: #f8f8f8 !important;
    border: none !important;
}

.swiper-slide img {
    border-radius: 20px !important;
}

/* Thumbnails */
.mySwiper .swiper-slide {
    border-radius: 12px !important;
    border: 2px solid transparent !important;
    opacity: 0.7;
}

.mySwiper .swiper-slide-thumb-active {
    border-color: #000 !important;
    /* Black active border */
    opacity: 1;
}

/* Product Info - Minimalist */
.product-title {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #000 !important;
    margin-bottom: 5px !important;
}

.product-category-subtitle {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
    font-weight: 500;
    display: block;
}

/* Price - Text Only, No Box */
.product-price-box {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 20px !important;
    display: block !important;
}

.current-price {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #000 !important;
}

.old-price {
    font-size: 18px !important;
    text-decoration: line-through;
    color: #aaa !important;
}

/* Circular Sizes */
.size-box {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background: #fff;
    border: 1px solid #ddd !important;
    color: #000 !important;
    box-shadow: none !important;
}

.size-box.selected {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

/* Buttons */
.btn-add-cart {
    background: #000 !important;
    /* Pure Black */
    height: 50px !important;
    border-radius: 30px !important;
    /* Rounded Pill */
    box-shadow: none !important;
}

.btn-add-cart::after {
    display: none !important;
}

.qty-wrapper {
    height: 50px !important;
    border-radius: 30px !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
    width: 120px !important;
}

/* =========================================
   REFINED APP-LIKE STYLES (User Request Update)
   ========================================= */

/* Typography Pop */
.product-title {
    font-size: 26px !important;
    font-weight: 900 !important;
    color: #111 !important;
    margin-bottom: 5px !important;
    letter-spacing: -0.5px;
}

.product-category-subtitle {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
    font-weight: 500;
    display: block;
}

/* Reviews */
.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #ffb900;
}

.product-rating span {
    color: #888;
    margin-right: 5px;
    font-size: 12px;
}

/* Compact Price */
.product-price-box {
    margin-bottom: 25px !important;
    display: flex !important;
    align-items: baseline;
    gap: 10px;
}

.current-price {
    font-family: sans-serif;
}

/* Size Labels - Small & Grey (Like Reference) */
.option-row label {
    color: #888 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-bottom: 8px !important;
    text-transform: uppercase;
    display: block;
}

/* Size Boxes - Refined */
.size-box {
    width: 42px !important;
    height: 42px !important;
    font-size: 13px !important;
}

/* Description Header */
.desc-header {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000;
    margin-top: 20px;
}

/* Mobile Sticky Bar Polish */
/* EMERGENCY LAYOUT FIXES */
.product-gallery {
    max-width: 100%;
    overflow: hidden;
}

.swiper-slide img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
    max-height: 500px;
}

.option-values {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    gap: 10px !important;
}

.product-details-grid {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .product-details-grid {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* Fix Sticky Bar Overlap */
.product-actions-wrapper {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: #fff !important;
    z-index: 2147483647 !important;
    /* Max Z-Index */
    padding: 15px 20px 30px !important;
    /* Safe area padding */
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin: 0 !important;
}

/* Spacer for Mobile */
/* =========================================
   CATEGORY HEADER BANNER
   ========================================= */
.category-hero-banner {
    width: 100%;
    background: #660652;
    /* Deep Purple Theme */
    background: linear-gradient(135deg, #660652 0%, #4a043c 100%);
    color: #fff;
    text-align: center;
    padding: 30px 0;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px var(--primary-rgba-15);
}

.category-hero-banner h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

body {
    padding-bottom: 100px !important;
}

/* =========================================
   RESPONSIVE POLISH (Desktop & Mobile)
   ========================================= */

/* Center Container on Desktop */
@media (min-width: 1200px) {

    .container,
    .product-page-container {
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 0 15px;
    }

    .category-hero-banner {
        border-radius: 0 0 20px 20px;
        margin-bottom: 40px;
    }
}

/* Mobile Banner Adjustment */
@media (max-width: 768px) {
    .category-hero-banner {
        padding: 20px 0 !important;
        margin-bottom: 20px !important;
    }

    .category-hero-banner h1 {
        font-size: 18px !important;
    }
}

/* Fix Options Layout on Desktop */
@media (min-width: 992px) {
    .option-values {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .size-box,
    .color-box {
        margin: 0 !important;
    }
}

/* =========================================
   FINAL PROFESSIONAL STYLES (Colors & Trust)
   ========================================= */

/* Options Container */
.product-options {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.option-row {
    margin-bottom: 20px;
}

/* Color Swatches */
.color-box {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #ddd;
    position: relative;
    transition: transform 0.2s;
}

.color-box:hover {
    transform: scale(1.1);
}

.color-box.selected::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid #000;
    border-radius: 50%;
}

/* Extra Actions (Wishlist/Share) */
.extra-actions {
    display: flex;
    gap: 25px;
    margin-top: 25px;
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px solid #f9f9f9;
}

.extra-actions a {
    color: #555;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    font-weight: 500;
    text-decoration: none;
}

.extra-actions a i {
    font-size: 16px;
    color: #999;
    transition: color 0.2s;
}

.extra-actions a:hover {
    color: #000;
}

.extra-actions a:hover i {
    color: #e74c3c;
    /* Heart color */
}

/* Trust Badges - Professional Grid */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 0;
    background: #fcfcfc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.trust-item i {
    font-size: 20px;
    color: #333;
    margin-bottom: 0;
    background: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.trust-item span {

    /* =========================================
   FINAL LAYOUT REPAIR & PROFESSIONAL BRANDING
   ========================================= */

    /* 1. Reset Container & Centering */
    .container,
    .product-page-container {
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 0 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    body {
        overflow-x: hidden;
        padding-bottom: 0 !important;
        /* Reset padding */
    }

    /* 2. Remove Obstructive Overlays */
    body::before,
    body::after,
    .main-wrapper::before,
    .main-wrapper::after {
        display: none !important;
        content: none !important;
        background: none !important;
    }

    /* 3. Product Grid Layout (Desktop) */
    .product-details-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 40px !important;
        align-items: start !important;
        margin-top: 20px;
        direction: rtl;
        /* Ensure correct RTL flow */
    }

    /* Mobile: Stack Columns */
    @media (max-width: 991px) {
        .product-details-grid {
            grid-template-columns: 1fr !important;
            gap: 30px !important;
        }
    }

    /* 4. Image Gallery Fix */
    .product-gallery {
        width: 100% !important;
        max-width: 500px !important;
        margin: 0 auto !important;
    }

    /* 5. Product Info Column */
    .product-info-column {
        text-align: right;
        width: 100%;
    }

    /* 6. Professional Color Section (Requested) */
    .product-options {
        background: #fdfdfd;
        border: 1px solid #efefef;
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 25px;
    }

    /* Site Color Branding Line */
    .product-options::after {
        content: '';
        display: block;
        width: 100%;
        height: 3px;
        background: #660652;
        /* Site Theme Mock */
        margin-top: 15px;
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

/* 4. Image Gallery Fix */
.product-gallery {
    width: 100% !important;
    max-width: 500px !important;
    margin: 0 auto !important;
}

/* 5. Product Info Column */
.product-info-column {
    text-align: right;
    width: 100%;
}

/* 6. Professional Color Section (Requested) */
.product-options {
    background: #fdfdfd;
    border: 1px solid #efefef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

/* Site Color Branding Line */
.product-options::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background: #660652;
    /* Site Theme Mock */
    margin-top: 15px;
    border-radius: 2px;
    opacity: 0.1;
}

/* 7. Action Buttons Area (Clean & Integrated) */
/* 7. Action Buttons Area (Clean & Integrated) */
.product-actions-wrapper {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    position: relative !important;
    /* Default for Desktop */
}

/* Row 1: Qty + Add Cart */
.actions-row-top {
    display: flex;
    gap: 15px;
    align-items: center;
    width: 100%;
}

.qty-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 50px;
    height: 50px;
    background: #fff;
    min-width: 120px;
}

.qty-wrapper button {
    width: 40px;
    height: 100%;
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
}

.qty-wrapper input {
    width: 40px;
    border: none;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
}

.btn-add-cart {
    flex: 1;
    height: 50px;
    background: #000;
    color: #fff;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-decoration: none;
    gap: 10px;
}

.btn-add-cart:hover {
    background: #333;
    color: #fff;
}

/* Row 2: Buy Now */
.btn-buy-now {
    width: 100%;
    height: 50px;
    background: #660652;
    color: #fff !important;
    border-radius: 50px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-decoration: none;
    gap: 10px;
    box-shadow: 0 4px 10px var(--primary-rgba-03);
}

.btn-buy-now:hover {
    background: #4a043c;
    color: #fff;
}

/* Mobile Sticky Bar */
@media (max-width: 768px) {
    .product-actions-wrapper {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: #fff !important;
        padding: 15px 20px 30px !important;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
        z-index: 99999;
        margin: 0 !important;
        flex-direction: row;
        /* Side by side */
    }

    /* On Mobile Sticky: Hide Buy Now? */
    .btn-buy-now {
        display: none !important;
    }

    .actions-row-top {
        width: 100%;
    }

    .btn-add-cart {
        font-size: 14px;
        white-space: nowrap;
    }

}

/* Horizontal Scroll for Related Products */
.products-horizontal-scroll {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll iOS */
}

.products-horizontal-scroll::-webkit-scrollbar {
    height: 4px;
}

.products-horizontal-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* View More Products Button */
.view-more-products-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--primary-rgba-02);
    text-decoration: none;
}

.view-more-products-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 6, 82, 0.3);
}

.view-more-products-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.view-more-products-btn:hover i {
    transform: translateX(5px);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 15px;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.pagination-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    cursor: default;
}

.pagination-link i {
    font-size: 12px;
}

@media (max-width: 768px) {
    .view-more-products-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .pagination-link {
        min-width: 35px;
        height: 35px;
        padding: 6px 12px;
        font-size: 13px;
    }
}

.product-card.scroll-card {
    min-width: 160px;
    /* Mobile width */
    max-width: 160px;
    scroll-snap-align: start;
    flex-shrink: 0;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
}

@media (min-width: 768px) {
    .product-card.scroll-card {
        min-width: 220px;
        max-width: 220px;
    }
}

/* KILL STICKY BAR FOREVER */
@media (max-width: 768px) {

    /* Hide the old wrapper if it appears */
    .product-actions-wrapper {
        display: none !important;
    }

    /* Style the NEW Static Wrapper */
    .actions-static-container {
        display: flex !important;
        flex-direction: column !important;
        background: transparent !important;
        position: static !important;
        padding: 0 !important;
        margin-top: 20px !important;
        box-shadow: none !important;
        border: none !important;
        z-index: 1 !important;
        width: 100% !important;
    }

    /* Force visibility of Buy Now */
    .actions-static-container .btn-buy-now {
        display: flex !important;
    }

    body {
        padding-bottom: 20px !important;
        /* Reset padding */
    }
}

/* ============================================
   FAQ Section (الأسئلة الشائعة)
   ============================================ */
.faq-section {
    padding: 40px 15px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: transparent;
    border: none;
    text-align: right;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.faq-question:hover {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

.faq-question span {
    flex: 1;
    text-align: right;
}

.faq-icon {
    width: 24px;
    height: 24px;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: var(--primary);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-question {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #fafafa;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 25px 20px 25px;
}

.faq-answer p {
    margin: 0;
    padding-top: 15px;
    color: #666;
    line-height: 1.8;
    font-size: 15px;
    text-align: right;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .faq-section {
        padding: 30px 15px;
    }
    
    .faq-question {
        padding: 18px 20px;
        font-size: 15px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 18px 20px;
    }
    
    .faq-answer p {
        font-size: 14px;
    }
    
    .faq-icon {
        width: 20px;
        height: 20px;
        margin-left: 10px;
    }
}

/* ============================================
   Product Bundles Section (Force Display)
   ============================================ */
.product-bundles-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
    margin-top: 40px !important;
    padding: 24px 32px !important;
    background: #F7F7FA !important;
    border-radius: 28px !important;
}

.bundle-card {
    display: flex !important;
    width: 100% !important;
    cursor: pointer !important;
    flex-direction: column !important;
    border-radius: 20px !important;
    padding: 12px 20px !important;
    background: white !important;
    border: 1px solid #e0e0e0 !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    margin-bottom: 16px !important;
}

.bundle-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    transform: translateY(-2px) !important;
}

.bundle-radio {
    display: flex !important;
    height: 20px !important;
    width: 20px !important;
    min-width: 20px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    border: 2px solid #e0e0e0 !important;
    margin-left: 8px !important;
}

.bundle-radio-circle {
    height: 10px !important;
    width: 10px !important;
    border-radius: 50% !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
}

.bundle-size-option,
.bundle-color-option {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.add-bundle-btn {
    display: flex !important;
    width: 100% !important;
    padding: 12px !important;
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.add-bundle-btn:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(102, 6, 82, 0.3) !important;
}

.add-bundle-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}