/* ========== LUXURY THEME - Institut Rose Sengmany ========== */
:root {
    --primary: #7B2D8E;
    --primary-dark: #5C1D6E;
    --primary-light: #f3eaf8;
    --secondary: #3D1A4A;
    --accent: #8BC34A;
    --accent-dark: #6A9E30;
    --gold: #C9A84C;
    --gold-light: #f5eedc;
    --bg: #FAFAFA;
    --bg-card: #ffffff;
    --text: #1a1a1a;
    --text-light: #6b6b6b;
    --text-white: #ffffff;
    --shadow: 0 4px 20px rgba(61,26,74,0.06);
    --shadow-lg: 0 12px 40px rgba(61,26,74,0.10);
    --shadow-card: 0 2px 12px rgba(0,0,0,0.05);
    --radius: 16px;
    --radius-sm: 10px;
    --nav-height: 68px;
    --header-height: 68px;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ========== RESET ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-tap-highlight-color: transparent; }
body {
    font-family: var(--font-body);
    background: var(--bg); color: var(--text);
    min-height: 100vh; overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-weight: 400;
}
a { color: var(--primary); text-decoration: none; }
img { display: block; max-width: 100%; }

/* ========== SPLASH ========== */
.splash {
    position: fixed; inset: 0; z-index: 9999;
    background: linear-gradient(160deg, #1a0a20 0%, var(--secondary) 40%, var(--primary-dark) 100%);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s, visibility 0.6s;
}
.splash.hide { opacity: 0; visibility: hidden; }
.splash-content { text-align: center; color: var(--text-white); }
.splash-logo {
    width: 130px; height: 130px; border-radius: 50%;
    margin: 0 auto 24px; overflow: hidden;
    box-shadow: 0 8px 40px rgba(123,45,142,0.3);
    border: 2px solid rgba(255,255,255,0.15);
}
.splash-logo img { width: 100%; height: 100%; object-fit: cover; }
.splash-content h1 {
    font-family: var(--font-display); font-size: 2.2rem;
    font-weight: 400; letter-spacing: 2px; margin-bottom: 6px;
}
.splash-content p {
    font-size: 0.85rem; opacity: 0.6; letter-spacing: 3px;
    text-transform: uppercase; font-weight: 300;
}
.splash-loader {
    width: 36px; height: 36px; margin: 36px auto 0;
    border: 2px solid rgba(255,255,255,0.15);
    border-top-color: var(--gold);
    border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== APP ========== */
.app.hidden { display: none; }

/* ========== HEADER ========== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(61,26,74,0.06);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 18px; max-width: 600px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
    width: 44px; height: 44px; border-radius: 50%;
    overflow: hidden; flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(61,26,74,0.12);
    border: 1.5px solid rgba(123,45,142,0.15);
}
.logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.logo-text h1 {
    font-family: var(--font-display); font-size: 1.2rem;
    color: var(--secondary); line-height: 1.2; font-weight: 500;
    letter-spacing: 0.5px;
}
.logo-text .subtitle {
    font-size: 0.62rem; color: var(--text-light);
    letter-spacing: 1.5px; text-transform: uppercase; font-weight: 400;
}
.date-bar {
    text-align: center; font-size: 0.68rem; color: var(--text-light);
    padding: 3px 18px 7px; letter-spacing: 0.5px; font-weight: 300;
}

/* Menu Button */
.menu-btn {
    background: none; border: none; cursor: pointer;
    width: 28px; height: 22px; position: relative;
    display: flex; flex-direction: column; justify-content: space-between;
}
.menu-btn span {
    display: block; width: 100%; height: 1.5px;
    background: var(--secondary); border-radius: 1px; transition: 0.3s;
}
.menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* ========== SIDE MENU ========== */
.overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.35);
    z-index: 150; opacity: 0; visibility: hidden;
    transition: 0.3s; backdrop-filter: blur(4px);
}
.overlay.show { opacity: 1; visibility: visible; }

.side-menu {
    position: fixed; top: 0; left: -300px; width: 300px;
    height: 100%; z-index: 200;
    background: var(--bg-card);
    box-shadow: var(--shadow-lg); transition: left 0.35s ease;
    overflow-y: auto;
}
.side-menu.open { left: 0; }
.menu-header {
    background: linear-gradient(160deg, #1a0a20, var(--secondary), var(--primary-dark));
    padding: 50px 24px 24px; text-align: center; color: white;
}
.menu-logo {
    width: 80px; height: 80px; border-radius: 50%;
    margin: 0 auto 14px; overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.15);
}
.menu-logo img { width: 100%; height: 100%; object-fit: cover; }
.menu-header h2 {
    font-family: var(--font-display); font-size: 1.4rem;
    font-weight: 400; letter-spacing: 1px;
}
.menu-sub {
    font-size: 0.7rem; opacity: 0.6; letter-spacing: 2px;
    text-transform: uppercase; font-weight: 300;
}
.menu-list { list-style: none; padding: 16px 0; }
.menu-list li a {
    display: block; padding: 15px 28px;
    color: var(--text); font-size: 0.88rem;
    transition: all 0.2s; letter-spacing: 0.5px;
    font-weight: 400; border-left: 3px solid transparent;
}
.menu-list li a:hover, .menu-list li a.active {
    background: var(--primary-light); color: var(--primary);
    border-left-color: var(--primary);
}
.menu-footer {
    padding: 24px; text-align: center;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.menu-footer-logo { width: 36px; height: 36px; border-radius: 50%; margin: 0 auto 8px; }
.menu-footer p { font-size: 0.7rem; color: var(--text-light); letter-spacing: 0.5px; }

/* ========== CONTENT ========== */
.content {
    padding-top: var(--header-height);
    padding-bottom: calc(var(--nav-height) + 20px);
    min-height: 100vh; max-width: 600px; margin: 0 auto;
}
.page { display: none; animation: fadeIn 0.4s; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ========== HERO ========== */
.hero {
    position: relative; height: 380px; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center center;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(26,10,32,0.4) 100%);
}
.hero-content {
    position: relative; z-index: 1;
    height: 100%; display: flex; flex-direction: column;
    justify-content: flex-end; align-items: center;
    padding: 24px; color: white;
}
.hero-badge {
    display: inline-block; width: fit-content;
    padding: 4px 14px; border-radius: 50px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    font-size: 0.68rem; letter-spacing: 2px;
    text-transform: uppercase; font-weight: 400;
    margin-bottom: 12px; border: 1px solid rgba(255,255,255,0.2);
}
.hero-content h2 {
    font-family: var(--font-display); font-size: 2rem;
    font-weight: 400; line-height: 1.2; margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.hero-content p {
    font-size: 0.85rem; opacity: 0.85; margin-bottom: 20px;
    max-width: 300px; font-weight: 300; line-height: 1.5;
}

/* ========== SECTIONS ========== */
.section { padding: 0 18px 24px; }
.section-header { margin-bottom: 18px; text-align: center; }
.section-label {
    font-size: 0.65rem; color: var(--primary);
    letter-spacing: 3px; text-transform: uppercase;
    font-weight: 500; display: block; margin-bottom: 4px;
}
.section-title {
    font-family: var(--font-display); font-size: 1.6rem;
    color: var(--secondary); font-weight: 400; letter-spacing: 0.5px;
}

/* ========== PAGE HERO ========== */
.page-hero {
    position: relative; height: 180px; overflow: hidden;
    margin-bottom: 24px;
}
.page-hero-bg {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.page-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(26,10,32,0.3) 0%, rgba(61,26,74,0.65) 100%);
}
.page-hero-content {
    position: relative; z-index: 1;
    height: 100%; display: flex; flex-direction: column;
    justify-content: flex-end; padding: 24px;
    color: white;
}
.page-hero-content h2 {
    font-family: var(--font-display); font-size: 1.8rem;
    font-weight: 400; letter-spacing: 0.5px;
}
.page-hero-content p { font-size: 0.82rem; opacity: 0.8; font-weight: 300; margin-top: 4px; }

/* ========== MARQUEE BANNER ========== */
.marquee-banner {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
    padding: 10px 0;
    margin-bottom: 10px;
}
.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}
.marquee-content span {
    display: inline-block;
    color: var(--text-white);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========== SERVICES CAROUSEL ========== */
.services-section { padding: 0 0 24px; }
.services-section .section-header { padding: 0 18px; }

.carousel-wrapper {
    position: relative; overflow: hidden;
    margin-top: 4px;
}
.carousel {
    display: flex; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding: 8px 18px 16px;
    scroll-padding-left: 18px;
}
.carousel::-webkit-scrollbar { display: none; }

.carousel-slide {
    flex: 0 0 72%; scroll-snap-align: start;
    position: relative; border-radius: var(--radius);
    overflow: hidden; cursor: pointer;
    height: 340px; min-width: 260px;
    box-shadow: 0 8px 30px rgba(61,26,74,0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.carousel-slide:active {
    transform: scale(0.97);
}
.carousel-slide img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.carousel-slide:active img { transform: scale(1.05); }

.slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 30%,
        rgba(26,10,32,0.15) 50%,
        rgba(26,10,32,0.7) 80%,
        rgba(26,10,32,0.85) 100%
    );
    transition: opacity 0.4s;
}

.slide-content {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 24px 20px; color: white; z-index: 2;
    transform: translateY(0);
    transition: transform 0.4s ease;
}
.slide-tag {
    display: inline-block; padding: 3px 12px;
    border-radius: 50px; font-size: 0.6rem;
    letter-spacing: 2px; text-transform: uppercase;
    font-weight: 500; margin-bottom: 10px;
    background: rgba(139,195,74,0.25);
    border: 1px solid rgba(139,195,74,0.4);
    backdrop-filter: blur(8px);
}
.slide-content h4 {
    font-family: var(--font-display); font-size: 1.5rem;
    font-weight: 400; margin-bottom: 4px;
    letter-spacing: 0.3px; line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.slide-content p {
    font-size: 0.78rem; opacity: 0.8; font-weight: 300;
    margin-bottom: 14px; letter-spacing: 0.3px;
}
.slide-cta {
    display: inline-block; font-size: 0.72rem;
    letter-spacing: 1.5px; text-transform: uppercase;
    font-weight: 500; opacity: 0.9;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    transition: border-color 0.3s, opacity 0.3s;
}

/* Carousel dots */
.carousel-dots {
    display: flex; justify-content: center;
    gap: 6px; margin-top: 10px;
}
.carousel-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #d8c8e2; border: none; padding: 0;
    cursor: pointer; transition: all 0.3s;
}
.carousel-dot.active {
    background: var(--primary);
    width: 20px; border-radius: 3px;
}

/* Carousel progress bar */
.carousel-progress {
    height: 2px; background: #ebe4f0;
    margin: 0 18px; border-radius: 1px; overflow: hidden;
}
.carousel-progress-fill {
    height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 1px; transition: width 0.3s ease;
    width: 16.66%;
}

/* ========== E-POP CARE CARD ========== */
.epop-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: transform 0.3s;
    background: var(--bg-card);
    padding: 30px 22px;
    text-align: center;
}
.epop-card:active { transform: scale(0.98); }
.epop-logo {
    height: 80px;
    width: auto;
    display: block;
    margin: 0 auto 16px;
    object-fit: contain;
}
.epop-desc {
    font-size: 0.82rem; color: var(--text-light);
    font-weight: 300; line-height: 1.6;
    margin-bottom: 18px;
}
/* E-Pop Modal */
.epop-modal {
    width: 100%; height: 100%;
    max-width: 100%; max-height: 100%;
    border-radius: 0;
    display: flex;
    flex-direction: column;
}
.epop-iframe-wrapper {
    flex: 1;
    overflow: hidden;
}

/* ========== CARTE CADEAU CARD ========== */
.cadeau-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: transform 0.3s;
    position: relative;
}
.cadeau-card:active { transform: scale(0.98); }
.cadeau-card-photo {
    width: 100%; height: 480px;
    display: block;
    object-fit: cover;
}
.cadeau-card-body {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 70px 22px 22px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
}
.cadeau-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; font-size: 0.6rem; font-weight: 600;
    padding: 4px 14px; border-radius: 50px;
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 10px;
}
.cadeau-card-title {
    font-family: var(--font-display); font-size: 1.4rem;
    color: white; font-weight: 500;
    margin-bottom: 6px;
}
.cadeau-card-desc {
    font-size: 0.82rem; color: rgba(255,255,255,0.85);
    font-weight: 300; line-height: 1.6;
    margin-bottom: 16px;
}

/* ========== SHOP CAROUSEL ========== */
.shop-carousel-wrapper {
    overflow: hidden;
    margin: 0 -20px;
    padding: 0 0 10px;
}
.shop-carousel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 20px 12px;
    scrollbar-width: none;
}
.shop-carousel::-webkit-scrollbar { display: none; }
.shop-card {
    min-width: 200px;
    max-width: 200px;
    scroll-snap-align: start;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow);
    flex-shrink: 0;
    transition: transform 0.3s;
}
.shop-card:active { transform: scale(0.97); }
.shop-card-img {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.shop-emoji {
    font-size: 3.5rem;
}
.shop-card-info {
    padding: 14px 16px 16px;
}
.shop-card-cat {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    font-weight: 600;
}
.shop-card-info h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--secondary);
    font-weight: 500;
    margin: 4px 0 6px;
}
.shop-card-info p {
    font-size: 0.72rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 10px;
}
.shop-price {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========== LOYALTY CARD ========== */
.loyalty-wrapper {
    cursor: pointer;
    perspective: 800px;
}
.loyalty-card {
    position: relative;
    background: linear-gradient(145deg, #2d1240 0%, #5c1d6e 35%, #7b2d8e 65%, #a044b8 100%);
    border-radius: 22px;
    padding: 26px 24px 20px;
    color: white;
    box-shadow:
        0 20px 60px rgba(61,26,74,0.35),
        0 8px 20px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.1);
    overflow: hidden;
    transition: transform 0.3s;
}
.loyalty-card:active { transform: scale(0.98); }

/* Decorative */
.loyalty-glow {
    position: absolute; top: -40%; right: -20%;
    width: 80%; height: 120%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.loyalty-circles { pointer-events: none; }
.loyalty-circle {
    position: absolute; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.04);
}
.loyalty-circle-1 {
    width: 300px; height: 300px;
    top: -120px; right: -100px;
}
.loyalty-circle-2 {
    width: 200px; height: 200px;
    bottom: -80px; left: -60px;
}

/* Top */
.loyalty-top {
    display: flex; justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative; z-index: 1;
}
.loyalty-brand {
    display: flex; align-items: center; gap: 12px;
}
.loyalty-logo {
    width: 42px; height: 42px; border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.loyalty-name {
    font-family: var(--font-display); font-size: 1.05rem;
    font-weight: 500; letter-spacing: 0.3px;
}
.loyalty-type {
    font-size: 0.58rem; opacity: 0.45; font-weight: 500;
    letter-spacing: 2.5px; margin-top: 2px;
}
.loyalty-level {
    background: linear-gradient(135deg, rgba(201,168,76,0.25), rgba(201,168,76,0.1));
    border: 1px solid rgba(201,168,76,0.3);
    padding: 4px 14px; border-radius: 50px;
    font-size: 0.6rem; font-weight: 600;
    letter-spacing: 2px; color: var(--gold);
}

/* Progress */
.loyalty-progress {
    position: relative; z-index: 1;
    margin-bottom: 22px;
}
.loyalty-progress-bar {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.loyalty-progress-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--accent), #b8e986);
    border-radius: 4px;
    transition: width 0.5s ease;
}
.loyalty-progress-glow {
    position: absolute; top: -3px; width: 8px; height: 10px;
    background: var(--accent);
    border-radius: 50%;
    filter: blur(4px);
    opacity: 0; left: 0;
    transition: left 0.5s ease, opacity 0.3s;
}
.loyalty-progress-labels {
    display: flex; justify-content: space-between;
    margin-top: 8px;
    font-size: 0.68rem; opacity: 0.5;
    font-weight: 400; letter-spacing: 0.3px;
}
.loyalty-progress-reward {
    color: var(--gold); opacity: 1; font-weight: 500;
    letter-spacing: 1px; font-size: 0.62rem;
    text-transform: uppercase;
}

/* Stamps */
.loyalty-stamps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    position: relative; z-index: 1;
    margin-bottom: 18px;
}
.loyalty-stamp {
    aspect-ratio: 1;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.loyalty-stamp-num {
    font-size: 0.75rem; font-weight: 700;
    opacity: 0.18; letter-spacing: 0;
    transition: opacity 0.3s;
    position: relative; z-index: 1;
}
.loyalty-stamp-reward .loyalty-stamp-num {
    font-size: 1.3rem;
    opacity: 0.5;
}
.loyalty-stamp-icon {
    display: flex; align-items: center; justify-content: center;
    width: 60%; height: 60%;
    color: rgba(255,255,255,0.2);
    transition: opacity 0.3s;
}
.loyalty-stamp-icon svg { width: 100%; height: 100%; }
.loyalty-stamp-icon-gold { color: rgba(201,168,76,0.3); }

/* Tampon rubber stamp overlay */
.loyalty-stamp-tampon {
    position: absolute; inset: -15%;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transform: scale(2.5) rotate(-25deg);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    filter: drop-shadow(0 2px 8px rgba(139,195,74,0.4));
    z-index: 2;
}
.loyalty-stamp-tampon svg {
    width: 100%; height: 100%;
    opacity: 0.85;
}
.loyalty-stamp-tampon-gold {
    filter: drop-shadow(0 2px 12px rgba(201,168,76,0.5));
}
.loyalty-stamp-tampon-gold svg {
    opacity: 0.9;
}

/* Stamped state */
.loyalty-stamp.stamped {
    border-color: rgba(139,195,74,0.3);
    background: rgba(139,195,74,0.08);
}
.loyalty-stamp.stamped .loyalty-stamp-num { opacity: 0; }
.loyalty-stamp.stamped .loyalty-stamp-tampon {
    opacity: 1;
    transform: scale(1) rotate(-8deg);
}

/* Reward stamp */
.loyalty-stamp-reward.stamped {
    border-color: rgba(201,168,76,0.3);
    background: rgba(201,168,76,0.08);
}
.loyalty-stamp-reward.stamped .loyalty-stamp-icon { opacity: 0; }
.loyalty-stamp-reward.stamped .loyalty-stamp-tampon {
    opacity: 1;
    transform: scale(1) rotate(-8deg);
}

/* Animations */
.loyalty-stamp.stamp-pop .loyalty-stamp-tampon {
    animation: tamponSlam 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes tamponSlam {
    0% { transform: scale(2.5) rotate(-25deg); opacity: 0; }
    60% { transform: scale(0.9) rotate(-5deg); opacity: 1; }
    80% { transform: scale(1.05) rotate(-10deg); opacity: 1; }
    100% { transform: scale(1) rotate(-8deg); opacity: 1; }
}
.loyalty-stamp-reward.stamped {
    animation: rewardGlow 1.5s ease-in-out 2;
}
@keyframes rewardGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
    50% { box-shadow: 0 0 20px 4px rgba(201,168,76,0.5); }
}
.loyalty-card.card-flash {
    animation: cardFlash 0.7s ease;
}
@keyframes cardFlash {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
    100% { filter: brightness(1); }
}

/* Reward message */
.loyalty-reward-msg {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: linear-gradient(160deg, #1a0a20 0%, #2d1240 30%, #3d1a4a 60%, #1a0a20 100%);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    overflow: hidden;
    border: 1px solid rgba(201,168,76,0.2);
}
.loyalty-reward-msg.show {
    opacity: 1;
    transform: scale(1);
}

/* Floating particles */
.reward-bg-particles {
    position: absolute; inset: 0;
    pointer-events: none; overflow: hidden;
}
.reward-particle {
    position: absolute;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0;
}
.loyalty-reward-msg.show .reward-particle {
    animation: particleFloat 2s ease-in-out infinite;
}
.reward-particle-1 { left: 10%; top: 20%; animation-delay: 0s !important; }
.reward-particle-2 { left: 85%; top: 15%; animation-delay: 0.3s !important; width: 3px; height: 3px; }
.reward-particle-3 { left: 20%; top: 75%; animation-delay: 0.6s !important; width: 5px; height: 5px; }
.reward-particle-4 { left: 80%; top: 70%; animation-delay: 0.9s !important; }
.reward-particle-5 { left: 50%; top: 10%; animation-delay: 0.4s !important; width: 3px; height: 3px; }
.reward-particle-6 { left: 45%; top: 85%; animation-delay: 0.7s !important; width: 5px; height: 5px; }
@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(0) scale(0); }
    30% { opacity: 0.7; transform: translateY(-10px) scale(1); }
    70% { opacity: 0.5; transform: translateY(-25px) scale(0.8); }
    100% { opacity: 0; transform: translateY(-40px) scale(0); }
}

/* Content */
.loyalty-reward-msg-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}
.reward-crown {
    font-size: 2.2rem;
    margin-bottom: 6px;
    display: block;
}
.loyalty-reward-msg.show .reward-crown {
    animation: crownEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}
@keyframes crownEntrance {
    0% { transform: translateY(-20px) scale(0); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}
.reward-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 10px auto;
}
.loyalty-reward-msg-content h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #f5e6a3, var(--gold), #f5e6a3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}
.loyalty-reward-msg.show h4 {
    animation: textFadeUp 0.6s ease 0.3s both;
}
.loyalty-reward-msg-content p {
    font-size: 0.78rem;
    font-weight: 300;
    opacity: 0.6;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.loyalty-reward-msg.show p {
    animation: textFadeUp 0.6s ease 0.4s both;
}
.reward-prize {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    letter-spacing: 0.5px;
    padding: 6px 0;
}
.loyalty-reward-msg.show .reward-prize {
    animation: textFadeUp 0.6s ease 0.5s both;
}
.reward-sub {
    font-size: 0.62rem;
    opacity: 0.35;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 400;
}
.loyalty-reward-msg.show .reward-sub {
    animation: textFadeUp 0.6s ease 0.7s both;
}
@keyframes textFadeUp {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Bottom */
.loyalty-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 14px;
    position: relative; z-index: 1;
}
.loyalty-bottom span {
    font-size: 0.78rem; opacity: 0.55;
    font-weight: 400; letter-spacing: 0.5px;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 28px; border-radius: 50px; border: none;
    font-family: var(--font-body);
    font-size: 0.82rem; font-weight: 500; cursor: pointer;
    transition: all 0.3s; text-align: center;
    letter-spacing: 0.5px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}
.btn-primary:active { transform: scale(0.97); }
.btn-glow {
    box-shadow: 0 6px 24px rgba(123,45,142,0.25);
}
.btn-outline {
    background: transparent; border: 1.5px solid var(--primary);
    color: var(--primary);
}
.btn-white {
    background: rgba(255,255,255,0.9); color: var(--secondary);
    backdrop-filter: blur(10px);
}
.btn-small { padding: 8px 18px; font-size: 0.72rem; }
.btn-large { width: 100%; padding: 16px; font-size: 0.88rem; }
.btn-full { width: 100%; }

/* ========== RDV PAGE ========== */
.rdv-visual {
    border-radius: var(--radius); overflow: hidden;
    margin-bottom: 20px; box-shadow: var(--shadow-card);
}
.rdv-visual img { width: 100%; height: 180px; object-fit: cover; }
.rdv-title {
    font-family: var(--font-display); font-size: 1.3rem;
    color: var(--secondary); font-weight: 400; text-align: center;
    margin-bottom: 8px;
}
.rdv-desc {
    color: var(--text-light); font-size: 0.85rem; text-align: center;
    line-height: 1.6; margin-bottom: 24px; font-weight: 300;
}
#openPlanity { margin-bottom: 16px; }
.rdv-divider {
    text-align: center; margin: 0 0 16px; position: relative;
}
.rdv-divider::before {
    content: ''; position: absolute; top: 50%; left: 0; right: 0;
    height: 1px; background: #e8e0ee;
}
.rdv-divider span {
    position: relative; background: var(--bg);
    padding: 0 16px; font-size: 0.78rem; color: var(--text-light);
    font-weight: 300; letter-spacing: 1px;
}

/* ========== FIDELITE ========== */
.fidelite-auth, .fidelite-card { max-width: 420px; margin: 0 auto; }

.auth-tabs {
    display: flex; border-radius: var(--radius-sm); overflow: hidden;
    border: 1.5px solid #d8c8e2; margin-bottom: 24px;
}
.auth-tab {
    flex: 1; padding: 13px; border: none; background: var(--bg-card);
    font-family: var(--font-body); font-size: 0.82rem;
    cursor: pointer; transition: all 0.2s;
    color: var(--text-light); letter-spacing: 0.5px; font-weight: 500;
}
.auth-tab.active { background: var(--primary); color: white; }

.auth-form.hidden { display: none; }
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block; font-size: 0.72rem; color: var(--text-light);
    margin-bottom: 6px; font-weight: 500; letter-spacing: 0.5px;
    text-transform: uppercase;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 14px 16px;
    border: 1.5px solid #e0d6e6; border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 0.88rem;
    background: var(--bg-card); color: var(--text);
    transition: border 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary); outline: none;
    box-shadow: 0 0 0 4px rgba(123,45,142,0.08);
}

/* Card Visual */
.card-visual { margin: 24px 0; perspective: 1000px; }
.card-front {
    background: linear-gradient(135deg, #1a0a20, var(--secondary), var(--primary-dark), var(--primary));
    border-radius: var(--radius); padding: 32px 24px;
    color: white; text-align: center; position: relative;
    box-shadow: 0 12px 40px rgba(61,26,74,0.2);
    overflow: hidden;
}
.card-front::before {
    content: ''; position: absolute; top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(139,195,74,0.08) 0%, transparent 60%);
}
.card-logo {
    width: 54px; height: 54px; border-radius: 50%;
    margin: 0 auto 12px; overflow: hidden;
    border: 1.5px solid rgba(255,255,255,0.2);
    position: relative;
}
.card-logo img { width: 100%; height: 100%; object-fit: cover; }
.card-front h3 {
    font-family: var(--font-display); font-size: 1rem;
    opacity: 0.8; margin-bottom: 8px; font-weight: 300;
    letter-spacing: 2px; text-transform: uppercase;
}
.card-name {
    font-family: var(--font-display); font-size: 1.2rem;
    font-weight: 500; margin-bottom: 16px; letter-spacing: 0.5px;
}
.points-number {
    font-family: var(--font-display); font-size: 3rem; font-weight: 300;
}
.points-label { display: block; font-size: 0.72rem; opacity: 0.7; letter-spacing: 2px; text-transform: uppercase; }
.card-level {
    display: inline-block; margin-top: 12px;
    padding: 5px 20px; border-radius: 50px;
    background: rgba(255,255,255,0.1); font-size: 0.72rem;
    letter-spacing: 1.5px; text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.15);
}

.card-progress { margin: 20px 0; }
.progress-bar {
    height: 6px; background: #ebe4f0; border-radius: 3px; overflow: hidden;
}
.progress-fill {
    height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px; transition: width 0.5s;
}
.progress-text { font-size: 0.72rem; color: var(--text-light); margin-top: 8px; text-align: center; font-weight: 300; }

.card-rewards, .card-history { margin-top: 24px; }
.card-rewards h4, .card-history h4 {
    font-family: var(--font-display); font-size: 1.15rem;
    color: var(--secondary); margin-bottom: 12px; font-weight: 500;
}
.rewards-list, .history-list { display: flex; flex-direction: column; gap: 8px; }
.reward-item, .history-item {
    background: var(--bg-card); border-radius: var(--radius-sm);
    padding: 14px 16px; box-shadow: var(--shadow-card);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.82rem;
}
.reward-item .reward-name { color: var(--secondary); font-weight: 400; }
.reward-item .reward-cost { color: var(--primary); font-weight: 600; }
.history-item .hist-desc { color: var(--text); }
.history-item .hist-pts { color: var(--accent-dark); font-weight: 600; }
.history-item .hist-date { font-size: 0.7rem; color: var(--text-light); font-weight: 300; }

/* ========== ACADEMY ========== */
.academy-card {
    background: linear-gradient(160deg, #2d1240, var(--secondary));
    border-radius: var(--radius);
    padding: 30px 24px;
    color: white;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.academy-card .section-header { margin-bottom: 16px; }
.academy-card .section-label { color: var(--gold); }
.academy-card .section-title { color: white; }
.academy-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.academy-desc {
    font-size: 0.82rem; font-weight: 300;
    opacity: 0.8; line-height: 1.6;
    margin-bottom: 20px;
}
.academy-list {
    list-style: none; padding: 0;
    text-align: left; margin: 0 auto 24px;
    max-width: 280px;
}
.academy-list li {
    padding: 8px 0;
    font-size: 0.82rem;
    font-weight: 400;
    opacity: 0.85;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-left: 20px;
    position: relative;
}
.academy-list li::before {
    content: '✦';
    position: absolute; left: 0;
    color: var(--gold);
    font-size: 0.6rem;
    top: 10px;
}
.academy-list li:last-child { border-bottom: none; }
.academy-card .btn-primary {
    background: linear-gradient(135deg, var(--gold), #b8952e);
    color: #1a0a20;
    font-weight: 600;
}

/* Academy Modal */
.academy-modal {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    display: flex; align-items: flex-end;
    justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
}
.academy-modal.show {
    opacity: 1; pointer-events: all;
}
.academy-modal-content {
    background: var(--bg);
    border-radius: 20px 20px 0 0;
    padding: 28px 22px 36px;
    width: 100%; max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}
.academy-modal.show .academy-modal-content {
    transform: translateY(0);
}
.academy-modal-close {
    position: absolute; top: 14px; right: 18px;
    background: none; border: none;
    font-size: 1.8rem; color: var(--text-light);
    cursor: pointer; line-height: 1;
}
.academy-modal-content h3 {
    font-family: var(--font-display);
    font-size: 1.3rem; color: var(--secondary);
    font-weight: 500; margin-bottom: 6px;
    text-align: center;
}
.academy-modal-content > p {
    font-size: 0.8rem; color: var(--text-light);
    text-align: center; margin-bottom: 20px;
    font-weight: 300;
}
.academy-modal-content select {
    width: 100%; padding: 12px 14px;
    border: 1.5px solid #e8e0ed;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.85rem; color: var(--text);
    background: white;
    -webkit-appearance: none;
    appearance: none;
}

/* ========== GIFT CARDS ========== */
.gift-desc {
    text-align: center; color: var(--text-light); font-size: 0.88rem;
    line-height: 1.6; margin-bottom: 24px; font-weight: 300;
}
.gift-options {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    margin-bottom: 24px;
}
.gift-card {
    background: var(--bg-card); border-radius: var(--radius);
    padding: 20px 10px; text-align: center;
    border: 1.5px solid #e8e0ee; cursor: pointer;
    transition: all 0.2s;
}
.gift-card:active { transform: scale(0.97); }
.gift-card.selected { border-color: var(--primary); background: var(--primary-light); }
.gift-amount {
    font-family: var(--font-display); font-size: 1.6rem;
    font-weight: 500; color: var(--primary);
}
.gift-card p { font-size: 0.68rem; color: var(--text-light); margin-top: 4px; letter-spacing: 0.5px; font-weight: 300; }

.gift-form { margin-top: 20px; }
.gift-form h4 {
    font-family: var(--font-display); font-size: 1.15rem;
    color: var(--secondary); margin-bottom: 16px; text-align: center;
    font-weight: 400;
}
.gift-note { font-size: 0.72rem; color: var(--text-light); text-align: center; margin-top: 12px; font-weight: 300; }

.gift-success { text-align: center; padding: 30px 0; }
.gift-success.hidden { display: none; }
.gift-success h3 {
    font-family: var(--font-display); font-size: 1.4rem;
    color: var(--secondary); margin-bottom: 8px; font-weight: 400;
}
.gift-success p { color: var(--text-light); font-size: 0.88rem; margin-bottom: 20px; font-weight: 300; }
.gift-preview {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: var(--radius); padding: 24px; color: white;
    margin: 20px 0; text-align: center;
}
.gift-preview .gp-amount { font-family: var(--font-display); font-size: 2.4rem; font-weight: 300; }
.gift-preview .gp-from, .gift-preview .gp-to { font-size: 0.82rem; opacity: 0.85; font-weight: 300; }
.gift-preview .gp-msg { font-size: 0.78rem; opacity: 0.7; margin-top: 8px; font-style: italic; }
.gift-preview .gp-code {
    margin-top: 12px; padding: 8px 16px;
    background: rgba(255,255,255,0.12); border-radius: 8px;
    font-family: var(--font-body); font-size: 1rem;
    letter-spacing: 3px; font-weight: 500;
    border: 1px solid rgba(255,255,255,0.15);
}

/* ========== CONTACT ========== */
.contact-cards { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.contact-card {
    background: var(--bg-card); border-radius: var(--radius);
    padding: 20px; display: flex; align-items: center; gap: 16px;
    box-shadow: var(--shadow-card);
}
.contact-icon-wrap {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.contact-card h4 {
    font-family: var(--font-display); font-size: 1rem;
    color: var(--secondary); font-weight: 500; margin-bottom: 2px;
}
.contact-card p, .contact-card a { font-size: 0.82rem; color: var(--text-light); font-weight: 300; }

.map-container { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }

/* ========== BOTTOM NAV ========== */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    height: var(--nav-height); z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(61,26,74,0.06);
    display: flex; align-items: center; justify-content: space-around;
    max-width: 600px; margin: 0 auto;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.nav-item {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; gap: 3px; padding: 8px 0;
    background: none; border: none; cursor: pointer;
    color: var(--text-light); transition: color 0.2s;
}
.nav-item.active { color: var(--primary); }
.nav-svg { width: 22px; height: 22px; }
.nav-label {
    font-family: var(--font-body); font-size: 0.6rem;
    font-weight: 500; letter-spacing: 0.3px;
}
.nav-rdv-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-top: -20px;
    box-shadow: 0 6px 20px rgba(123,45,142,0.3);
}
.nav-rdv .nav-label { margin-top: 2px; }

/* ========== MODAL ========== */
.modal {
    position: fixed; inset: 0; z-index: 500;
    background: rgba(0,0,0,0.4);
    display: none; align-items: flex-end; justify-content: center;
    backdrop-filter: blur(4px);
}
.modal.show { display: flex; }
.modal-content {
    background: var(--bg-card);
    width: 100%; max-width: 600px;
    height: 92vh; border-radius: 20px 20px 0 0;
    display: flex; flex-direction: column;
    animation: slideUp 0.35s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 22px; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.modal-header h3 {
    font-family: var(--font-display); font-size: 1.1rem;
    color: var(--secondary); font-weight: 400;
}
.modal-close {
    width: 34px; height: 34px; border-radius: 50%;
    border: none; background: var(--primary-light); font-size: 1.3rem;
    cursor: pointer; display: flex; align-items: center;
    justify-content: center; color: var(--primary); transition: 0.2s;
}
.modal-body { flex: 1; overflow: hidden; }
.modal-body iframe { width: 100%; height: 100%; border: none; }

/* ========== INSTALL BANNER ========== */
.install-banner {
    position: fixed; bottom: calc(var(--nav-height) + 12px);
    left: 18px; right: 18px; z-index: 90;
    max-width: 564px; margin: 0 auto;
}
.install-banner.hidden { display: none; }
.install-content {
    background: linear-gradient(135deg, var(--secondary), var(--primary-dark));
    color: white; border-radius: var(--radius); padding: 14px 18px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: var(--shadow-lg);
}
.install-content p { flex: 1; font-size: 0.82rem; font-weight: 300; }
.install-close {
    background: none; border: none; color: white;
    font-size: 1.2rem; cursor: pointer; opacity: 0.6;
}

/* ========== TOAST ========== */
.toast {
    position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
    z-index: 9999; padding: 13px 28px;
    background: var(--secondary); color: white;
    border-radius: 50px; font-size: 0.82rem;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s, toastOut 0.3s 2.7s;
    opacity: 0; animation-fill-mode: forwards;
    font-weight: 400; letter-spacing: 0.3px;
}
@keyframes toastIn { to { opacity: 1; } }
@keyframes toastOut { to { opacity: 0; } }

/* ========== PRODUCT SHOWCASE ========== */
.product-showcase {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.product-showcase:active { transform: scale(0.98); }
.product-showcase-img {
    position: relative;
    width: 100%; height: 280px;
    background: linear-gradient(135deg, #f8e8f0, #f0d8e8);
    overflow: hidden;
}
.product-showcase-img img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block;
}
.product-badge {
    position: absolute; top: 14px; left: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; font-size: 0.65rem; font-weight: 600;
    padding: 5px 14px; border-radius: 50px;
    text-transform: uppercase; letter-spacing: 1.2px;
}
.product-showcase-info {
    padding: 22px 22px 24px;
}
.product-cat {
    display: inline-block;
    font-size: 0.65rem; color: var(--primary);
    text-transform: uppercase; letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 8px;
}
.product-showcase-info h4 {
    font-family: var(--font-display);
    font-size: 1.35rem; font-weight: 500;
    color: var(--secondary);
    margin-bottom: 6px; line-height: 1.25;
}
.product-tagline {
    font-size: 0.82rem; color: var(--text-light);
    font-weight: 300; margin-bottom: 12px;
}
.product-rating {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 14px;
}
.rating-stars {
    color: #f5b301; letter-spacing: 1px; font-size: 0.95rem;
}
.rating-text {
    font-size: 0.72rem; color: var(--text-light); font-weight: 400;
}
.product-prices {
    display: flex; align-items: baseline; gap: 12px;
    margin-bottom: 16px;
}
.product-price {
    font-family: var(--font-display);
    font-size: 1.5rem; color: var(--primary);
    font-weight: 600;
}
.product-price-alt {
    font-size: 0.78rem; color: var(--text-light); font-weight: 300;
}

/* ========== MODAL OVERLAY (generic) ========== */
.modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,0.55);
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
}
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal-overlay > .modal {
    position: relative;
    inset: auto;
    z-index: auto;
    backdrop-filter: none;
    background: var(--bg-card);
    width: 100%; max-width: 600px;
    max-height: calc(100vh - 32px);
    height: auto;
    border-radius: 20px;
    display: flex; flex-direction: column;
    align-items: stretch; justify-content: flex-start;
    min-height: 0;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    box-sizing: border-box;
}
.modal-overlay.show > .modal { transform: scale(1) translateY(0); }
.modal-overlay > .modal > .modal-header { flex-shrink: 0; }

@media (max-width: 600px) {
    .modal-overlay { padding: 0; }
    .modal-overlay > .modal {
        max-height: 100vh;
        max-height: 100dvh;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        transform: scale(1) translateY(40px);
    }
    .modal-overlay.show > .modal { transform: scale(1) translateY(0); }
}

/* ========== PRODUCT MODAL ========== */
.product-modal { max-width: 600px; }
.product-modal-body {
    flex: 1 1 auto; min-height: 0;
    overflow-y: auto;
    padding: 0 0 28px;
    -webkit-overflow-scrolling: touch;
}
.product-gallery {
    background: linear-gradient(135deg, #f8e8f0, #f0d8e8);
    padding: 18px 18px 14px;
}
.product-gallery-main {
    width: 100%; height: 320px;
    border-radius: 14px; overflow: hidden;
    background: white; margin-bottom: 12px;
    display: flex; align-items: center; justify-content: center;
}
.product-gallery-main img {
    width: 100%; height: 100%; object-fit: cover;
}
.product-gallery-thumbs {
    display: flex; gap: 8px; overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.product-gallery-thumbs::-webkit-scrollbar { display: none; }
.product-thumb {
    flex: 0 0 64px; height: 64px;
    border-radius: 10px; object-fit: cover;
    cursor: pointer; opacity: 0.55;
    border: 2px solid transparent;
    transition: opacity 0.2s, border-color 0.2s;
}
.product-thumb.active {
    opacity: 1; border-color: var(--primary);
}
.product-detail {
    padding: 22px;
}
.product-detail h2 {
    font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 500;
    color: var(--secondary);
    margin: 6px 0 12px; line-height: 1.25;
}
.product-options {
    display: flex; flex-direction: column; gap: 10px;
    margin: 18px 0;
}
.product-option {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
}
.product-option.active {
    border-color: var(--primary);
    background: var(--primary-light);
}
.product-option input { accent-color: var(--primary); margin: 0; }
.option-info { flex: 1; }
.option-title {
    display: block; font-size: 0.9rem; font-weight: 500;
    color: var(--secondary);
}
.option-sub {
    display: block; font-size: 0.72rem; color: var(--text-light);
    font-weight: 300; margin-top: 2px;
}
.option-price {
    font-family: var(--font-display);
    font-size: 1.1rem; color: var(--primary); font-weight: 600;
}
.product-quantity {
    display: flex; align-items: center; justify-content: space-between;
    margin: 16px 0 22px;
}
.product-quantity label {
    font-size: 0.85rem; color: var(--secondary); font-weight: 500;
}
.qty-control {
    display: flex; align-items: center;
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 50px; overflow: hidden;
}
.qty-btn {
    width: 36px; height: 36px;
    background: none; border: none;
    cursor: pointer; font-size: 1.1rem; color: var(--primary);
    transition: 0.2s;
}
.qty-btn:hover { background: var(--primary-light); }
#productQty {
    width: 44px; text-align: center;
    border: none; background: none;
    font-size: 0.95rem; font-weight: 500; color: var(--secondary);
    pointer-events: none;
}
.product-tabs {
    display: flex; gap: 4px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    margin-top: 26px; overflow-x: auto;
    scrollbar-width: none;
}
.product-tabs::-webkit-scrollbar { display: none; }
.product-tab {
    background: none; border: none; cursor: pointer;
    padding: 10px 14px;
    font-size: 0.78rem; color: var(--text-light);
    font-weight: 500; white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}
.product-tab.active {
    color: var(--primary); border-bottom-color: var(--primary);
}
.product-tab-content {
    display: none; padding: 18px 0 0;
    font-size: 0.85rem; line-height: 1.7;
    color: var(--text); font-weight: 300;
}
.product-tab-content.active { display: block; }
.product-tab-content p { margin-bottom: 10px; }
.benefits-list {
    list-style: none; padding: 0;
}
.benefits-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.85rem;
}
.benefits-list li:last-child { border-bottom: none; }
.benefits-list strong {
    color: var(--primary); font-weight: 500;
}
.ingredients-text {
    font-size: 0.75rem !important;
    line-height: 1.65 !important;
    color: var(--text-light);
    word-break: break-word;
}

/* ========== ORDER MODAL ========== */
.order-modal { max-width: 540px; }
.order-modal-body {
    flex: 1 1 auto; min-height: 0;
    overflow-y: auto;
    padding: 22px;
    -webkit-overflow-scrolling: touch;
}
.order-summary {
    display: flex; gap: 12px; align-items: center;
    padding: 12px;
    background: var(--primary-light);
    border-radius: 12px;
    margin-bottom: 22px;
}
.order-summary img {
    width: 60px; height: 60px;
    border-radius: 8px; object-fit: cover;
}
.order-summary-info { flex: 1; }
.order-summary-title {
    font-size: 0.85rem; font-weight: 500;
    color: var(--secondary); display: block;
    margin-bottom: 2px;
}
.order-summary-sub {
    font-size: 0.72rem; color: var(--text-light);
    font-weight: 300;
}
.delivery-options {
    display: flex; flex-direction: column; gap: 10px;
}
.delivery-option {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 12px; cursor: pointer;
    transition: 0.2s;
}
.delivery-option.active {
    border-color: var(--primary);
    background: var(--primary-light);
}
.delivery-option input { accent-color: var(--primary); margin: 0; }
.d-title {
    display: block; font-size: 0.85rem; font-weight: 500;
    color: var(--secondary);
}
.d-sub {
    display: block; font-size: 0.72rem; color: var(--text-light);
    font-weight: 300; margin-top: 2px;
}
.order-total {
    text-align: right;
    font-size: 0.95rem; color: var(--text-light);
    margin: 18px 0 14px;
}
.order-total strong {
    font-family: var(--font-display);
    font-size: 1.35rem; color: var(--primary); font-weight: 600;
    margin-left: 6px;
}
.order-note {
    font-size: 0.72rem; color: var(--text-light);
    font-weight: 300; text-align: center;
    margin-top: 12px; line-height: 1.5;
}
.order-success {
    text-align: center; padding: 30px 10px;
}
.order-success.hidden { display: none; }
.order-form.hidden { display: none; }
.success-icon {
    width: 70px; height: 70px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white; font-size: 2.2rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.order-success h3 {
    font-family: var(--font-display);
    font-size: 1.4rem; color: var(--secondary);
    margin-bottom: 12px; font-weight: 500;
}
.order-success p {
    font-size: 0.85rem; color: var(--text);
    margin-bottom: 8px; line-height: 1.6;
}
.order-success strong { color: var(--primary); }

/* ========== RESPONSIVE ========== */
@media (min-width: 600px) {
    .carousel-slide { flex: 0 0 45%; }
    .gift-options { grid-template-columns: repeat(5, 1fr); }
    .product-showcase {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .product-showcase-img { height: 100%; min-height: 320px; }
    .product-modal { max-width: 800px; }
    .product-gallery-main { height: 380px; }
}
