
/* --- 1. CORE SETUP --- */
:root {
    --navy: #002d62;
    --navy-dark: #001a3a;
    --navy-light: #1a3f7a;
    --red: #c41230;
    --red-light: #e63e4a;
    --white: #ffffff;
    --off-white: #f8fafc;
    --light-gray: #f1f4f8;
    --medium-gray: #e2e8f0;
    --dark-gray: #2d3748;
    --gold: #c5a572;
    --gold-light: #d4b68a;
    --shadow-sm: 0 4px 12px rgba(0, 45, 98, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 45, 98, 0.12);
    --shadow-lg: 0 20px 40px rgba(0, 45, 98, 0.16);
    --shadow-hover: 0 30px 50px rgba(196, 18, 48, 0.15);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-slow: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.shop-site {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background-color: #e2e8f0;
    background-image: 
        linear-gradient(30deg, #f8fafc 12%, transparent 12.5%, transparent 87%, #f8fafc 87.5%, #f8fafc),
        linear-gradient(150deg, #f8fafc 12%, transparent 12.5%, transparent 87%, #f8fafc 87.5%, #f8fafc),
        linear-gradient(30deg, #f8fafc 12%, transparent 12.5%, transparent 87%, #f8fafc 87.5%, #f8fafc),
        linear-gradient(150deg, #f8fafc 12%, transparent 12.5%, transparent 87%, #f8fafc 87.5%, #f8fafc),
        linear-gradient(60deg, #cbd5e0 25%, transparent 25.5%, transparent 75%, #cbd5e0 75.5%, #cbd5e0),
        linear-gradient(60deg, #cbd5e0 25%, transparent 25.5%, transparent 75%, #cbd5e0 75.5%, #cbd5e0);
    background-size: 80px 140px;
    background-attachment: fixed;
    overflow-x: hidden;
    color: var(--dark-gray);
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- 2. NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-bottom: 1px solid rgba(0, 45, 98, 0.08);
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--red), 
        var(--navy), 
        var(--gold), 
        var(--red), 
        transparent);
    transform: scaleX(0);
    transition: transform 0.6s ease;
    transform-origin: center;
}

.navbar:hover::after {
    transform: scaleX(1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 45, 98, 0.12);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 40px;
    transition: padding 0.3s ease;
    width: 100%;
}

.navbar.scrolled .navbar-container {
    padding: 8px 40px;
}

.logo-group {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1001; 
    flex-shrink: 0; 
}

.logo-group:hover .nav-logo {
    transform: scale(1.05) rotate(-1deg);
    filter: drop-shadow(0 4px 8px rgba(211,47,47,0.15));
}

.nav-logo {
    height: 70px;
    width: auto;
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--red);
    letter-spacing: 1px;
    font-weight: 500;
}

/*-- Navigation Container --*/
.nav-links {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-links ul {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    position: relative;
}

/*-- Base Link Styling --*/
.nav-links a {
    text-decoration: none;
    color: var(--navy, #002D62);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 18px;
    border-radius: 40px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    text-align: center;
}

/*-- Underline Hover & Active Effect --*/
.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 4px; 
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--red, #C41230), var(--navy, #002D62));
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

/*-- Hover State --*/
.nav-links a:hover {
    color: var(--red, #C41230);
    background: rgba(196, 18, 48, 0.05); 
    transform: translateY(-2px);
}

.nav-links a:hover::before {
    width: 60%; 
}

/*-- Active Page Indicator --*/
.nav-links a.active {
    color: var(--red, #C41230);
    background: rgba(196, 18, 48, 0.08); 
}

.nav-links a.active::before {
    width: 60%; 
}

/*-- Icon Styling --*/
.nav-links a i {
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.nav-links a:hover i {
    transform: scale(1.1); 
}

/*-- (Book Now) --*/
.nav-links a.nav-cta {
    background: var(--red, #C41230);
    color: white;
    margin-left: 10px;
    box-shadow: 0 4px 15px rgba(196, 18, 48, 0.2);
}

.nav-links a.nav-cta:hover {
    background: var(--white);
    color: var(--red) !important;
    transform: translateY(-2px);
}

.nav-links a.nav-cta:hover i {
    color: var(--red) !important;
}

.nav-links a.nav-cta::before {
    display: none; 
}

.nav-cta::before { 
    display: none; 
}

.nav-cta:hover { 
    background: linear-gradient(135deg, #b91c1c, var(--red)); 
    transform: translateY(-2px) !important; 
    color: white !important; 
}

.nav-cta i { 
    color: white; 
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 0;
}

.menu-toggle span { width: 100%; height: 2px; background: var(--navy); transition: all 0.3s ease; border-radius: 2px; }
.menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); background: var(--red); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background: var(--red); }

/* --- Language Switcher --- */
.lang-switcher {
    display: flex;
    align-items: center;
    margin: 0 20px;
    z-index: 1001;
}

#language-select {
    background: var(--white);
    color: var(--navy);
    border: 1px solid rgba(0, 45, 98, 0.15);
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    text-align: center;
}

/* --- 3. HERO SECTION --- */
.Perfume-images {
    padding: 120px 0 50px;
    text-align: center;
    background-color: #292929 !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-bottom: 1px solid rgba(212, 182, 138, 0.2);
}

.Perfume-images h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin-bottom: 15px;
    color: #d4b68a;
    position: relative;
}

.Perfume-images h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: #d4b68a;
}

.Perfume-images p {
    font-size: 1.2rem;
    color: #ffffff;
    max-width: 600px;
    margin: 40px auto 0;
    opacity: 0.9;
}

/* --- 4. TICKER --- */
.ticker-shelf {
    width: 95%;
    max-width: 1300px;
    margin: 30px auto;
    overflow: hidden;
    padding: 25px 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.ticker-shelf::before, .ticker-shelf::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.ticker-shelf::before { left: 0; background: linear-gradient(90deg, rgba(255,255,255,0.9), transparent); }
.ticker-shelf::after { right: 0; background: linear-gradient(-90deg, rgba(255,255,255,0.9), transparent); }

.collection-ticker { overflow: hidden; width: 100%; }

.loop-images {
    display: flex;
    width: fit-content;
    animation: scrollSeamless 60s linear infinite;
}

.loop-images:hover { animation-play-state: paused; }

.loop-images img {
    height: 120px;
    width: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    user-select: none;
    margin: 0 25px;
    flex-shrink: 0;
}

.loop-images img:hover { transform: scale(1.08); box-shadow: var(--shadow-lg); }

@keyframes scrollSeamless {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- 5. FILTER CONTROLS --- */
.filter-controls {
    max-width: 1200px;
    margin: 30px auto 15px;
    padding: 0 24px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
}

.filter-controls label { font-weight: 500; color: var(--navy); font-size: 0.95rem; }

.filter-controls select {
    padding: 10px 25px 10px 15px;
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--dark-gray);
    background: var(--white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23002d62' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.filter-controls select:focus { outline: none; border-color: var(--red); }

/* --- 6. PRODUCT GRID --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    padding: 40px 24px 80px;
    max-width: 1300px;
    margin: 0 auto;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: cardFadeIn 0.6s ease forwards;
    border: 1px solid rgba(255,255,255,0.5);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }
.product-card:nth-child(9) { animation-delay: 0.9s; }
.product-card:nth-child(10) { animation-delay: 1s; }

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--navy), var(--red), var(--gold));
    transform: scaleX(0);
    transition: transform 0.6s ease;
    transform-origin: left;
}

.product-card:hover::before { 
    transform: scaleX(1); 
}
.product-card:hover { 
    transform: translateY(-15px) scale(1.02); 
    box-shadow: var(--shadow-hover); }

.product-img {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--off-white), var(--light-gray));
    padding: 30px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    transition: var(--transition-slow);
}

.product-card:hover .product-img img { transform: scale(1.1); }

.product-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    gap: 10px;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
    color: var(--white);
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 45, 98, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gender-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gender-tag i { color: var(--gold-light); font-size: 0.85rem; }

.product-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-card p { font-size: 1rem; color: var(--dark-gray); margin-bottom: 20px; line-height: 1.6; opacity: 0.8; }

.price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--red);
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-buy {
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
    color: var(--white) !important;
    padding: 16px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: block;
    transition: var(--transition);
    border: none;
    letter-spacing: 0.5px;
}

.btn-buy:hover { background: linear-gradient(135deg, var(--red), #a00e2a); transform: translateY(-3px); box-shadow: 0 10px 25px rgba(196,18,48,0.4); }

/* --- 7. AGENT INFO --- */
.agent-info {
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    position: relative;
    overflow: hidden;
}

.agent-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 15px;
    position: relative;
}

.agent-info h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--white));
    border-radius: 3px;
}

.agent-info p { font-size: 1.2rem; color: rgba(255,255,255,0.9); max-width: 600px; margin: 30px auto 40px; }

.ital-box { margin: 50px auto; max-width: 350px; animation: float 6s ease-in-out infinite; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.ital-logo { width: 100%; height: auto; border-radius: 20px; box-shadow: var(--shadow-lg); border: 3px solid rgba(255,255,255,0.2); }

/* --- 8. FOOTER --- */
.pro-footer { background-color: #212529; color: rgba(255, 255, 255, 0.6); padding: 60px 0; text-align: center; font-size: 14px; }
.footer-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: rgba(255, 255, 255, 0.6); text-decoration: none; margin: 0 15px; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--white); }

/* --- CONTACT STRIP --- */
.contact-action-strip, .pro-contact { background: linear-gradient(135deg, #1e2a3a 0%, #0f172a 100%); padding: 40px 0; }
.strip-flex-pro { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 25px; }
.contact-info { display: flex; gap: 40px; flex-wrap: wrap; }
.contact-info span { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; color: var(--white); font-weight: 500; }

.btn-outline-navy {
    text-decoration: none;
    border: 2px solid var(--navy);
    padding: 12px 32px;
    color: var(--white);
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    background: var(--navy);
    font-size: 1rem;
    cursor: pointer;
}

.btn-outline-navy:hover { background: var(--white); color: var(--navy); transform: translateY(-2px); }

/* Force Font Awesome */
.nav-links i { font-family: "Font Awesome 6 Free"; font-weight: 900; display: inline-block !important; }

/* Arabic */
[lang="ar"] body.shop-site { direction: ltr !important; text-align: right; }
[lang="ar"] .navbar-container { flex-direction: row !important; }
[lang="ar"] .gender-tag { border-left: none; border-right: 1px solid rgba(255, 255, 255, 0.3); padding: 0 10px; }

/* ============================================================
   RESPONSIVE - TABLET
   ============================================================ */
@media (max-width: 1200px) {
    .navbar-container { padding: 12px 30px; }
    .nav-links a { padding: 8px 14px; font-size: 0.9rem; }
}

@media (max-width: 1024px) {
    .nav-links a { padding: 8px 12px; font-size: 0.85rem; }
    .logo-main { font-size: 1.2rem; }
    .nav-logo { height: 60px; }
    .Perfume-images h1 { font-size: 3rem; }
    .loop-images img { height: 100px; }
    .product-grid { gap: 30px; }
}

/* ============================================================
   RESPONSIVE - MOBILE
   ============================================================ */

  @media (max-width: 768px) {

    /* Navbar */
    .navbar-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 16px;
    }

    .navbar::after { display: none; }

    .navbar {
        border-bottom: 2px solid rgba(0, 45, 98, 0.1);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    /* Logo */
    .logo-text { display: flex; }
    .logo-main { font-size: 1.4rem; }
    .logo-sub { font-size: 0.8rem; }

    /* Language switcher */
      .lang-switcher {
        margin-left: auto; 
        margin-right: 15px;
        order: 2; 
    }
    .menu-toggle { order: 3; display: flex; }
    .logo-group { order: 1; }
    #language-select { font-size: 12px; padding: 4px 10px; }

    /* Mobile menu */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1000;
        padding: 70px 30px 40px;
        display: block;
    }

    .nav-links.active { right: 0; }

    .nav-links ul { flex-direction: column; gap: 8px; width: 100%; }
    .nav-links li { width: 100%; }

    .nav-links a {
        display: flex;
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
        justify-content: flex-start;
        border-radius: 12px;
        white-space: normal;

        background: transparent;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-links a.nav-cta {
    background: linear-gradient(135deg, var(--red), #b91c1c) !important;
    color: white !important;
    margin-left: 0;
    margin-top: 10px;
    text-align: left;
    justify-content: left;
}

    .nav-links a:hover {
        transform: translateX(8px);
        background: rgba(211, 47, 47, 0.08);
        color: var(--red) !important;
    }

    .nav-links a:active {
        background: rgba(211, 47, 47, 0.08);
        color: var(--red) !important;
    }


    /* Hero */
    .Perfume-images { padding: 80px 0 30px; }
    .Perfume-images h1 { font-size: 2rem; }
    .Perfume-images p { font-size: 1rem; margin: 20px auto 0; }

    /* Ticker */
    .ticker-shelf { margin: 15px auto; border-radius: 15px; }
    .loop-images img { height: 70px; margin: 0 15px; }

    /* Products - 2 columns */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 15px 12px 40px;
    }

    .product-card { padding: 12px; border-radius: 12px; }

    .product-img {
        height: 130px;
        padding: 10px;
        margin-bottom: 10px;
    }

    .product-img img { max-height: 110px; }

    .product-tag { font-size: 0.6rem; padding: 4px 8px; gap: 5px; margin-bottom: 8px; }
    .gender-tag { padding: 0 6px; }

    .product-card h3 { font-size: 0.85rem; margin-bottom: 5px; }
    .product-card p { font-size: 0.8rem; margin-bottom: 8px; line-height: 1.4; }

    .price { font-size: 1.1rem; margin: 8px 0; }

    .btn-buy { padding: 10px 12px; font-size: 0.8rem; border-radius: 30px; }

    /* Agent */
    .agent-info h2 { font-size: 2rem; }
    .agent-info p { font-size: 1rem; }

    /* Footer */
    .footer-container { flex-direction: column; text-align: center; }
    .contact-info { flex-direction: column; gap: 10px; align-items: center; }
    .strip-flex-pro { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px 10px 30px;
    }

    .product-img { height: 110px; }
    .product-img img { max-height: 90px; }
    .product-card h3 { font-size: 0.8rem; }
    .price { font-size: 1rem; }
    .btn-buy { padding: 8px 10px; font-size: 0.75rem; }
}

/* --- FINAL FIX FOR PRODUCT DESCRIPTIONS --- */

.product-card p {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #4a5568 !important; 
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 10px 0 15px 0;
    min-height: 3em;
    text-align: center;
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .product-card p {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
        margin: 5px 0 10px 0 !important;
        min-height: auto;
        display: -webkit-box !important;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* --- MOBILE PRODUCT CARD MODAL --- */
.card-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card-overlay.active {
    display: flex;
}

.card-overlay-inner {
    background: var(--white);
    border-radius: 20px;
    padding: 15px 20px 25px;
    width: 100%;
    max-width: 360px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 45, 98, 0.35);
    animation: modalPop 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    border-top: 4px solid var(--gold);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.85) translateY(30px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.card-overlay-close {
    display: block;
    margin: 0 0 10px auto;
    background: var(--light-gray);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1rem;
    color: var(--navy);
    cursor: pointer;
    line-height: 32px;
    text-align: center;
    padding: 0;
}

/* Bigger image inside modal */
.card-overlay-inner .product-img {
    height: 280px !important;
    padding: 20px !important;
    margin-bottom: 15px;
}

.card-overlay-inner .product-img img {
    max-height: 240px !important;
}

@media (max-width: 768px) {
    .product-card { cursor: pointer; }
}