/* ==========================================================================
   ClickVenda Pro / LOJAS JP — DISRUPTIVE DESIGN SYSTEM V4 (2026)
   ========================================================================== */

:root {
    --brand: #111827;
    --brand-rgb: 17, 24, 39;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    padding-top: env(safe-area-inset-top, 0px);
}

@media all and (display-mode: standalone) {
    body {
        padding-top: max(16px, env(safe-area-inset-top, 0px));
    }
}

/* Blink animation for unread store Push messages in bottom dock */
@keyframes v4MsgBlink {
    0%, 100% {
        transform: scale(1);
        background: rgba(249, 115, 22, 0.16);
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.55);
    }
    50% {
        transform: scale(1.06);
        background: rgba(249, 115, 22, 0.30);
        box-shadow: 0 0 0 8px rgba(249, 115, 22, 0);
    }
}
.dock-msg-unread {
    color: #f97316 !important;
    animation: v4MsgBlink 1.35s ease-in-out infinite;
}
.dock-msg-unread svg {
    color: #f97316 !important;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ==========================================================================
   PROFESSIONAL YEN (¥) TYPOGRAPHY
   ========================================================================== */
.v4-yen { font-variant-numeric: tabular-nums; }
.v4-yen-symbol {
    font-size: 0.68em;
    font-weight: 500;
    opacity: 0.68;
    margin-right: 0.14em;
    letter-spacing: 0;
}
.v4-yen-val {
    font-weight: 800;
    letter-spacing: -0.035em;
}

/* ==========================================================================
   GLASSMORPHISM & NATIVE BOTTOM DOCK SURFACES
   ========================================================================== */
.glass-light-dock {
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    backdrop-filter: blur(28px) saturate(200%);
    border: 1px solid rgba(15, 23, 42, 0.09);
    box-shadow: 0 18px 44px -14px rgba(15, 23, 42, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.glass-dark-dock {
    background: rgba(10, 14, 24, 0.86);
    -webkit-backdrop-filter: blur(30px) saturate(190%);
    backdrop-filter: blur(30px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 22px 50px -14px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.glass-whatsapp-bag {
    background: rgba(9, 13, 22, 0.92);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    backdrop-filter: blur(32px) saturate(200%);
    border: 1px solid rgba(16, 185, 129, 0.36);
    box-shadow: 0 24px 54px -14px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* ==========================================================================
   PORTAL LIGHT APPLE + AIRBNB CANVAS (ZERO DARK BUBBLE)
   ========================================================================== */
.portal-light-canvas {
    background:
        radial-gradient(60% 340px at 50% 0%, rgba(16, 185, 129, 0.07), transparent 72%),
        radial-gradient(45% 280px at 88% 4%, rgba(99, 102, 241, 0.06), transparent 70%),
        #F8FAFC;
}

.story-ring-open {
    background: conic-gradient(from 180deg, #10B981, #06B6D4, #34D399, #10B981);
    padding: 2.5px;
}

.story-ring-vip {
    background: conic-gradient(from 140deg, #F59E0B, #FDE047, #F97316, #F59E0B);
    padding: 2.5px;
}

.story-ring-closed {
    background: linear-gradient(135deg, #CBD5E1, #E2E8F0);
    padding: 2px;
}

@keyframes v4BannerProgress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}
.banner-progress-fill {
    transform-origin: left center;
    animation: v4BannerProgress 4s linear forwards;
}
.banner-progress-fill.is-paused { animation-play-state: paused; }

.portal-slide-card {
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}

.bento-store-card {
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

/* ==========================================================================
   FLUID MOTION, SCROLL REVEAL & iOS BOTTOM SHEETS
   ========================================================================== */
@keyframes v4BtnPop {
    0% { transform: scale(1); }
    35% { transform: scale(0.82); }
    72% { transform: scale(1.14); }
    100% { transform: scale(1); }
}

@keyframes v4BadgeBump {
    0% { transform: scale(1); }
    40% { transform: scale(1.34); }
    100% { transform: scale(1); }
}

@keyframes v4KenBurns {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

@keyframes v4PulseEmerald {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes v4NeonPulse {
    0%, 100% { box-shadow: 0 0 18px -2px rgba(var(--brand-rgb), 0.75); }
    50% { box-shadow: 0 0 30px 2px rgba(var(--brand-rgb), 0.95); }
}

@keyframes v4GoldSheen {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes v4MatrixDrift {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 0 0, 22px 22px; }
}

.pulse-emerald { animation: v4PulseEmerald 2s infinite; }
.animate-btn-pop { animation: v4BtnPop 0.36s cubic-bezier(0.34, 1.56, 0.64, 1); }
.animate-badge-bump { animation: v4BadgeBump 0.38s cubic-bezier(0.34, 1.56, 0.64, 1); }
.ken-burns-bg { animation: v4KenBurns 18s ease-in-out infinite; }
.neon-btn-pulse { animation: v4NeonPulse 2.4s ease-in-out infinite; }

.reveal-item {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1), transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.v4-sheet-backdrop {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}
.v4-sheet-backdrop.is-open { opacity: 1; pointer-events: auto; }
.v4-sheet-panel {
    transform: translateY(104%);
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.v4-sheet-backdrop.is-open .v4-sheet-panel { transform: translateY(0); }

/* ==========================================================================
   7 DISRUPTIVE STOREFRONT ARCHITECTURES (index.html)
   ========================================================================== */

/* 1. IMMERSIVE FEED (clean-light — TikTok Shop / Vertical Reels) */
body[data-theme="clean-light"] {
    background: #FFFFFF;
    color: #0F172A;
    font-family: 'Inter', system-ui, sans-serif;
}
body[data-theme="clean-light"] .theme-heading {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
}
.immersive-reel-card {
    height: 82svh;
    min-height: 520px;
    max-height: 760px;
}
.immersive-price-glass {
    background: rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.35);
}

/* 2. OBSIDIAN SHOWCASE (dark-luxury — Apple Vision / Private Auction) */
body[data-theme="dark-luxury"] {
    background:
        radial-gradient(60% 380px at 50% -20px, rgba(212, 175, 55, 0.26), transparent 65%),
        radial-gradient(40% 260px at 50% 45%, rgba(212, 175, 55, 0.08), transparent 72%),
        #030407;
    color: #F8FAFC;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}
body[data-theme="dark-luxury"] .theme-heading {
    font-family: 'Cinzel', 'Cormorant Garamond', serif;
    letter-spacing: 0.06em;
}
.obsidian-3d-wrap {
    perspective: 1200px;
}
.obsidian-3d-inner {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}
.obsidian-3d-inner.is-flipped {
    transform: rotateY(180deg);
}
.obsidian-3d-face {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.obsidian-3d-back {
    transform: rotateY(180deg);
}
.obsidian-metal-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(16, 18, 28, 0.92) 48%, rgba(212, 175, 55, 0.14) 100%);
    -webkit-backdrop-filter: blur(32px);
    backdrop-filter: blur(32px);
    border-radius: 26px;
    box-shadow: 0 28px 64px -18px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 238, 185, 0.28);
}
.obsidian-metal-card::before,
.obsidian-pedestal::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(247, 217, 126, 0.65), rgba(255, 255, 255, 0.06) 46%, rgba(212, 175, 55, 0.38));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.obsidian-pedestal {
    position: relative;
    background: radial-gradient(circle at 50% 25%, rgba(212, 175, 55, 0.11), rgba(10, 12, 20, 0.92) 68%);
    border-radius: 30px;
    box-shadow: 0 30px 70px -22px rgba(0, 0, 0, 0.95);
}
.btn-liquid-gold {
    background: linear-gradient(120deg, #F8E39A 0%, #D4AF37 35%, #FFF0B5 55%, #B5871B 100%);
    background-size: 220% 220%;
    animation: v4GoldSheen 5s ease infinite;
    color: #030407;
    box-shadow: 0 14px 32px -10px rgba(212, 175, 55, 0.72);
}

/* 3. LIVE MENU DECK (gourmet-express — Live Delivery App) */
body[data-theme="gourmet-express"] {
    background: #FFFDF7;
    color: #1F150E;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}
body[data-theme="gourmet-express"] .theme-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.03em;
}
.gourmet-row-card {
    background: #FFFFFF;
    border: 1px solid rgba(120, 74, 42, 0.10);
    border-radius: 22px;
    box-shadow: 0 8px 26px -12px rgba(92, 54, 26, 0.12);
}

/* 4. GLOW GLASS ATELIER (beauty-rose — Digital Spa & Skincare) */
body[data-theme="beauty-rose"] {
    background:
        radial-gradient(65% 360px at 20% 0%, rgba(244, 114, 182, 0.18), transparent 70%),
        radial-gradient(55% 340px at 85% 28%, rgba(216, 180, 254, 0.22), transparent 72%),
        radial-gradient(60% 340px at 45% 82%, rgba(251, 207, 232, 0.34), transparent 70%),
        #FDF6F8;
    color: #361A26;
    font-family: 'Inter', system-ui, sans-serif;
}
body[data-theme="beauty-rose"] .theme-heading {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
}
.glow-glass-outer {
    background: rgba(255, 255, 255, 0.48);
    -webkit-backdrop-filter: blur(26px) saturate(160%);
    backdrop-filter: blur(26px) saturate(160%);
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    padding: 6px;
    box-shadow: 0 20px 46px -18px rgba(190, 24, 93, 0.18);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}
.glow-glass-outer:active { transform: scale(0.98); }
.glow-glass-inner {
    background: rgba(255, 255, 255, 0.86);
    border-radius: 28px;
    border: 1px solid rgba(244, 114, 182, 0.12);
}

/* 5. CYBER HUD (tech-neon — Futuristic Console & Interactive Flashlight) */
body[data-theme="tech-neon"] {
    background-color: #050811;
    background-image:
        radial-gradient(65% 360px at 50% -40px, rgba(var(--brand-rgb), 0.26), transparent 68%),
        radial-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px);
    background-size: 100% 100%, 22px 22px;
    animation: v4MatrixDrift 14s linear infinite;
    color: #F1F5F9;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}
body[data-theme="tech-neon"] .theme-heading {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.025em;
}
.tech-hud-mono { font-family: 'JetBrains Mono', monospace; }
.tech-spotlight-card {
    position: relative;
    background: rgba(9, 14, 27, 0.90);
    border: 1px solid rgba(var(--brand-rgb), 0.26);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.tech-spotlight-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--brand-rgb), 0.28), transparent 64%);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
    z-index: 1;
}
.tech-spotlight-card:hover::before,
.tech-spotlight-card.is-lit::before { opacity: 1; }
.tech-spotlight-card:hover,
.tech-spotlight-card.is-lit {
    border-color: rgba(var(--brand-rgb), 0.80);
    box-shadow: 0 0 30px -8px rgba(var(--brand-rgb), 0.62);
}

/* 6. APEX GARAGE (auto-pro — Porsche / GT Configurator) */
body[data-theme="auto-pro"] {
    background:
        repeating-linear-gradient(-45deg, rgba(255,255,255,0.018) 0px, rgba(255,255,255,0.018) 2px, transparent 2px, transparent 10px),
        #0D0F14;
    color: #F8FAFC;
    font-family: 'Inter', system-ui, sans-serif;
}
body[data-theme="auto-pro"] .theme-heading {
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.auto-chamfer-card {
    position: relative;
    background: #151821;
    border: 1px solid rgba(255, 255, 255, 0.09);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

/* 7. TURBO EXPRESS (market-brasil — Instant 1-Tap Supermarket) */
body[data-theme="market-brasil"] {
    background: #F2F5F8;
    color: #0F172A;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}
body[data-theme="market-brasil"] .theme-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.025em;
}
.market-aisle-card {
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 4px 16px -6px rgba(15, 23, 42, 0.08);
}
