/* =============================================
   Lisek Buszek — Warm Smoke Theme
   ============================================= */

@property --glow-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes glowSpin {
    to { --glow-angle: 360deg; }
}

/* --- Custom Properties --- */
:root {
    --color-bg: #0a0a0b;
    --color-bg-secondary: #141416;
    --color-bg-card: rgba(255, 255, 255, 0.03);
    --color-text: #f0ece4;
    --color-text-muted: rgba(240, 236, 228, 0.5);
    --color-border: rgba(255, 255, 255, 0.06);
    --color-warm-1: #ff6b35;
    --color-warm-2: #f7c948;
    --color-warm-3: #1dd3b0;
    --color-warm-4: #086375;
    --gradient-warm: linear-gradient(135deg, #ff6b35, #f7c948, #1dd3b0);
    --gradient-warm-reverse: linear-gradient(135deg, #1dd3b0, #f7c948, #ff6b35);
}

/* --- Base --- */
html {
    scroll-behavior: smooth;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Syne', sans-serif;
}

/* --- Selection --- */
::selection {
    background: rgba(247, 201, 72, 0.3);
    color: #fff;
}

/* --- Scrollbar (Webkit) --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(247, 201, 72, 0.3);
}

/* =============================================
   Animated Gradient Text
   ============================================= */
@property --gradient-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes gradientShift {
    0%   { --gradient-angle: 0deg; }
    100% { --gradient-angle: 360deg; }
}

.gradient-text {
    background: linear-gradient(
        var(--gradient-angle, 0deg),
        #ff6b35,
        #f7c948,
        #1dd3b0,
        #f7c948,
        #ff6b35
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s linear infinite, gradientMove 4s ease infinite;
}

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

/* Subtle version for smaller text */
.gradient-text-subtle {
    background: linear-gradient(135deg, #f7c948, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================
   Noise & Texture Overlay
   ============================================= */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.012;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 512px 512px;
}

body > * {
    position: relative;
    z-index: 1;
}

/* =============================================
   Navigation
   ============================================= */

/* Hide navbar logo on mobile homepage */
@media (max-width: 767px) {
    .is-homepage #navbar .navbar-logo {
        display: none;
    }
}

.nav-link {
    position: relative;
    color: rgba(240, 236, 228, 0.6);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.25rem 0;
    transition: color 300ms ease;
    font-family: 'DM Sans', sans-serif;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gradient-warm);
    border-radius: 1px;
    transition: width 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active-link::after {
    width: 100%;
}

.nav-link.active-link {
    color: var(--color-text);
}

/* --- Navbar scroll state --- */
.nav-scrolled {
    background: rgba(10, 10, 11, 0.92) !important;
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* =============================================
   Hamburger Button — Animated 3-line → X
   ============================================= */
.hamburger-btn {
    position: relative;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

/* Only show on mobile — md:hidden sets display:none, this sets the flex fallback */
#hamburger-btn.hamburger-btn {
    display: flex;
}

@media (min-width: 768px) {
    #hamburger-btn.hamburger-btn {
        display: none;
    }
}

/* Close button inside mobile menu always visible */
#mobile-menu-close.hamburger-btn {
    display: flex;
}

.hamburger-line {
    position: absolute;
    width: 20px;
    height: 1.5px;
    background: rgba(240, 236, 228, 0.7);
    border-radius: 1px;
    transition: all 350ms cubic-bezier(0.65, 0, 0.35, 1);
}

.hamburger-line--1 { transform: translateY(-6px); }
.hamburger-line--2 { opacity: 1; }
.hamburger-line--3 { transform: translateY(6px); }

/* Active state → X */
.hamburger-btn.is-active .hamburger-line--1,
.is-active > .hamburger-line--1 {
    transform: rotate(45deg);
    background: var(--color-text);
}

.hamburger-btn.is-active .hamburger-line--2,
.is-active > .hamburger-line--2 {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.is-active .hamburger-line--3,
.is-active > .hamburger-line--3 {
    transform: rotate(-45deg);
    background: var(--color-text);
}

/* =============================================
   Mobile Menu
   ============================================= */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0ms linear 600ms;
}

.mobile-menu.active,
.mobile-menu.closing {
    pointer-events: auto;
    visibility: visible;
    transition: visibility 0ms linear 0ms;
}

.mobile-menu.closing {
    pointer-events: none;
}

/* Background — clip-path reveal from top-right */
.mobile-menu-bg {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 10, 0.98);
    backdrop-filter: blur(30px) saturate(1.3);
    -webkit-backdrop-filter: blur(30px) saturate(1.3);
    clip-path: circle(0% at calc(100% - 30px) 30px);
    transition: clip-path 500ms cubic-bezier(0.65, 0, 0.35, 1);
}

.mobile-menu.active .mobile-menu-bg {
    clip-path: circle(150% at calc(100% - 30px) 30px);
}

/* Closing — reverse the circle */
.mobile-menu.closing .mobile-menu-bg {
    clip-path: circle(0% at calc(100% - 30px) 30px);
    transition: clip-path 450ms cubic-bezier(0.65, 0, 0.35, 1);
}

/* Top bar & nav — fade in after bg reveals */
.mobile-menu > .relative {
    opacity: 0;
    transition: opacity 200ms ease 0ms;
}

.mobile-menu.active > .relative {
    opacity: 1;
    transition: opacity 250ms ease 200ms;
}

.mobile-menu.closing > .relative {
    opacity: 0;
    transition: opacity 150ms ease 0ms;
}

/* Nav links */
.mobile-nav-link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 2.5rem;
    text-decoration: none;
    overflow: hidden;
}

.mobile-nav-label {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: rgba(240, 236, 228, 0.5);
    letter-spacing: -0.01em;
    transition: color 300ms ease, transform 300ms ease;
    transform: translateY(0);
}

.mobile-nav-link:hover .mobile-nav-label,
.mobile-nav-link:active .mobile-nav-label {
    color: var(--color-text);
    transform: translateY(-2px);
}

/* Active page indicator */
.mobile-nav-active .mobile-nav-label {
    color: var(--color-text);
}

.mobile-nav-line {
    display: block;
    width: 0;
    height: 2px;
    background: var(--gradient-warm);
    border-radius: 1px;
    margin-top: 6px;
    transition: width 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-nav-active .mobile-nav-line {
    width: 40px;
}

.mobile-nav-link:hover .mobile-nav-line {
    width: 30px;
}

/* Staggered entrance for nav links */
.mobile-menu.active .mobile-nav-link {
    animation: menuLinkIn 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.mobile-menu.active .mobile-nav-link[data-menu-item="1"] { animation-delay: 250ms; }
.mobile-menu.active .mobile-nav-link[data-menu-item="2"] { animation-delay: 330ms; }
.mobile-menu.active .mobile-nav-link[data-menu-item="3"] { animation-delay: 410ms; }
.mobile-menu.active .mobile-nav-link[data-menu-item="4"] { animation-delay: 490ms; }

/* Mobile cart icon positioning */
.mobile-cart-home {
    display: none;
    margin-top: 4px;
}
@media (max-width: 767px) {
    .is-homepage .mobile-cart-home {
        display: block;
    }
    .is-homepage .mobile-cart-inner {
        display: none;
    }
}

/* Cart badge */
.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: #25D366;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    padding-top: 1px;
    line-height: 1;
    text-align: center;
    font-family: 'Syne', sans-serif;
    letter-spacing: 0;
    box-sizing: border-box;
}

.cart-badge.hidden {
    display: none;
}

.cart-badge-mobile {
    background: #25D366;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    margin-left: 8px;
    line-height: 1;
}

.cart-badge-mobile.hidden {
    display: none;
}

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

/* Bottom accent gradient line */
.mobile-menu-accent {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 107, 53, 0.3), rgba(247, 201, 72, 0.3), rgba(29, 211, 176, 0.3), transparent);
}

/* Bottom text fade in */
.mobile-menu.active .px-8 {
    animation: menuLinkIn 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    animation-delay: 500ms;
}

/* =============================================
   Buttons
   ============================================= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2.25rem;
    background: linear-gradient(135deg, #ff6b35, #f7c948);
    color: #0a0a0b;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f7c948, #1dd3b0);
    opacity: 0;
    transition: opacity 400ms ease;
    border-radius: inherit;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.25),
                0 2px 10px rgba(247, 201, 72, 0.15);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary > * {
    position: relative;
    z-index: 1;
}

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-primary:active {
    transform: translateY(0);
}

/* Secondary/outline button */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background: transparent;
    color: var(--color-text);
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    border-radius: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: all 300ms ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-warm);
    opacity: 0;
    transition: opacity 300ms ease;
}

.btn-outline:hover {
    border-color: transparent;
    color: #0a0a0b;
    transform: translateY(-2px);
}

.btn-outline:hover::before {
    opacity: 1;
}

.btn-outline span {
    position: relative;
    z-index: 1;
}

/* =============================================
   Cards
   ============================================= */
.card {
    background: var(--color-bg-card);
    border: 1px solid transparent;
    border-radius: 20px;
    overflow: hidden;
    transition: all 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Gradient border via ::after */
.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(160deg, rgba(255, 107, 53, 0.25), rgba(247, 201, 72, 0.12) 40%, rgba(29, 211, 176, 0.08) 70%, rgba(255, 255, 255, 0.04));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
    transition: opacity 400ms ease;
}

/* Hover glow via ::before */
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: radial-gradient(ellipse at top, rgba(247, 201, 72, 0.03), transparent 70%);
    opacity: 0;
    transition: opacity 400ms ease;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: none;
}
.card:hover::after {
    background: linear-gradient(160deg, rgba(255, 107, 53, 0.4), rgba(247, 201, 72, 0.25) 40%, rgba(29, 211, 176, 0.15) 70%, rgba(255, 255, 255, 0.06));
}

.card:hover::before {
    opacity: 1;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-content .card-button {
    margin-top: auto;
}

/* =============================================
   Glass Panel
   ============================================= */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* =============================================
   Hero Section
   ============================================= */
.hero-overlay {
    background:
        linear-gradient(to bottom, rgba(10, 10, 11, 0.25) 0%, rgba(10, 10, 11, 0.1) 30%, rgba(10, 10, 11, 0.15) 55%, rgba(10, 10, 11, 0.85) 100%),
        radial-gradient(ellipse at center, transparent 40%, rgba(10, 10, 11, 0.2) 100%);
}

.hero-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
    text-shadow: none;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.6));
}

.hero-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(240, 236, 228, 0.85);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 0, 0, 0.7);
}


/* Hero content — push slightly below center on mobile */
.hero-content {
    margin-top: 5vh;
}


/* ── Strength Picker ─────────────────────────────────────── */

.strength-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 10px 20px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    letter-spacing: 0.02em;
}

.strength-btn:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.strength-btn.selected {
    color: #fff;
    background: rgba(29, 211, 176, 0.12);
    border-color: rgba(29, 211, 176, 0.4);
    box-shadow: 0 0 20px rgba(29, 211, 176, 0.08);
}

/* Minimum order info */
.min-order-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    background: rgba(247, 201, 72, 0.06);
    border: 1px solid rgba(247, 201, 72, 0.12);
    color: rgba(247, 201, 72, 0.7);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
}

/* =============================================
   Flavor Picker — Vertical List Edition
   ============================================= */

/* Flavor trigger button */
.flavor-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 250ms ease;
    font-family: 'DM Sans', sans-serif;
}

.flavor-trigger:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
}

.flavor-trigger-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.flavor-trigger-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: conic-gradient(
        #ff6b6b, #ffa94d, #ffd43b,
        #69db7c, #4dabf7, #9775fa,
        #f06595, #ff6b6b
    );
    flex-shrink: 0;
    transition: all 300ms ease;
    animation: dotSpin 4s linear infinite;
}

@keyframes dotSpin {
    to { transform: rotate(360deg); }
}

.flavor-trigger-dot.has-color {
    animation: none;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--dot-color) 25%, transparent),
                0 0 10px color-mix(in srgb, var(--dot-color) 20%, transparent);
}

.flavor-trigger-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    transition: color 200ms ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flavor-trigger.has-selection .flavor-trigger-text {
    color: var(--color-text);
}

.flavor-trigger-count {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.25);
    white-space: nowrap;
    flex-shrink: 0;
}

.flavor-trigger-arrow {
    color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    transition: transform 200ms ease;
}

/* Flavor trigger error state */
.flavor-trigger--error {
    border-color: rgba(239, 68, 68, 0.5) !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15), 0 0 20px rgba(239, 68, 68, 0.1) !important;
    animation: flavor-error-pulse 0.6s ease 2;
}
@keyframes flavor-error-pulse {
    0%, 100% { border-color: rgba(239, 68, 68, 0.5); }
    50% { border-color: rgba(239, 68, 68, 0.8); }
}

/* Flavor toast notification */
.flavor-toast {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 300ms ease, transform 300ms ease;
}
.flavor-toast svg {
    flex-shrink: 0;
    color: #ef4444;
}
.flavor-toast--visible {
    opacity: 1;
    transform: translateY(0);
}

/* Flavor popup overlay */
.flavor-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
}

.flavor-popup.is-open {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    padding: 16px;
}
.flavor-popup::before,
.flavor-popup::after {
    content: '';
    flex: 1;
    min-height: 16px;
}

.flavor-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.flavor-popup-sheet {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    max-height: 70vh;
    background: #111113;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.flavor-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 0.75rem;
    flex-shrink: 0;
}

.flavor-popup-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 200ms ease;
    border: none;
}

.flavor-popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Scrollable flavor list inside popup */
.flavor-popup-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0.5rem 1.25rem 1.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.flavor-popup-list::-webkit-scrollbar {
    width: 4px;
}

.flavor-popup-list::-webkit-scrollbar-track {
    background: transparent;
}

.flavor-popup-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Flavor card — vertical row */
.flavor-card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 0.7rem 1rem;
    border-radius: 14px;
    cursor: pointer;
    transition: all 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    outline: none;
    user-select: none;
    font-family: 'DM Sans', sans-serif;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
    width: 100%;
    min-height: 0;
}

/* Glow orb behind the card */
.flavor-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: radial-gradient(ellipse at center, var(--chip-color), transparent 70%);
    opacity: 0;
    transition: opacity 400ms ease;
    pointer-events: none;
}

/* Shimmer border effect */
.flavor-card::after {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: 15px;
    padding: 1.5px;
    background: var(--chip-color);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 400ms ease;
    pointer-events: none;
}

.flavor-card:hover:not(.unavailable) {
    background: color-mix(in srgb, var(--chip-color) 8%, transparent);
    border-color: color-mix(in srgb, var(--chip-color) 25%, transparent);
}

.flavor-card:hover:not(.unavailable)::before {
    opacity: 0.08;
}

.flavor-card:hover:not(.unavailable)::after {
    opacity: 0.6;
}

/* Selected state */
.flavor-card.selected {
    background: color-mix(in srgb, var(--chip-color) 12%, transparent);
    border-color: color-mix(in srgb, var(--chip-color) 40%, transparent);
    box-shadow: 0 4px 20px color-mix(in srgb, var(--chip-color) 20%, transparent),
                0 0 40px color-mix(in srgb, var(--chip-color) 6%, transparent);
}

.flavor-card.selected::before {
    opacity: 0.12;
}

.flavor-card.selected::after {
    opacity: 0.6;
}

@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes borderSpin {
    to { --border-angle: 360deg; }
}

/* Flavor card content */
.flavor-card .flavor-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--chip-color);
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--chip-color) 20%, transparent);
    transition: box-shadow 300ms ease, transform 300ms ease;
}

.flavor-card:hover:not(.unavailable) .flavor-icon,
.flavor-card.selected .flavor-icon {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--chip-color) 20%, transparent),
                0 0 12px color-mix(in srgb, var(--chip-color) 40%, transparent);
    transform: scale(1.1);
}

.flavor-card .flavor-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
    letter-spacing: 0.01em;
    flex: 1;
    min-width: 0;
}

.flavor-card .flavor-promo {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.5rem;
    border-radius: 6px;
    background: rgba(255, 107, 53, 0.12);
    color: #ff6b35;
    flex-shrink: 0;
    white-space: nowrap;
}

.flavor-card .flavor-status {
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.02em;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Unavailable */
.flavor-card.unavailable {
    opacity: 0.35;
    filter: grayscale(0.8);
    cursor: not-allowed;
    pointer-events: none;
}

.flavor-card.unavailable .flavor-name {
    text-decoration: line-through;
}

.flavor-card.unavailable .flavor-status {
    filter: saturate(2);
    opacity: 2;
    color: rgba(255, 255, 255, 0.6);
}

/* Selection indicator checkmark — overlays the color dot */
.flavor-card .check-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    margin-top: -11px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--chip-color) 85%, #000);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--chip-color) 20%, transparent);
}

.flavor-card.selected .check-icon {
    opacity: 1;
    transform: scale(1);
}

.flavor-card .check-icon svg {
    width: 12px;
    height: 12px;
    stroke: #fff;
    stroke-width: 3;
    fill: none;
}

/* =============================================
   Promo Badge
   ============================================= */
.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(247, 201, 72, 0.15));
    color: #f7c948;
    border: 1px solid rgba(247, 201, 72, 0.15);
}

/* =============================================
   Animations
   ============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
}

/* Staggered children */
.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }

/* =============================================
   Form Inputs
   ============================================= */
.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.875rem 1.125rem;
    color: var(--color-text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    transition: all 300ms ease;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

textarea.form-input.flex-1 {
    min-height: 150px;
}

.form-input:focus {
    outline: none;
    border-color: rgba(247, 201, 72, 0.4);
    box-shadow: 0 0 0 3px rgba(247, 201, 72, 0.08),
                0 0 20px rgba(247, 201, 72, 0.05);
    background: rgba(255, 255, 255, 0.04);
}

/* =============================================
   Page Headings
   ============================================= */
.page-heading {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* =============================================
   Regulamin
   ============================================= */
.regulamin-section {
    position: relative;
    padding-left: 1.5rem;
}

.regulamin-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #ff6b35, #f7c948, transparent);
    border-radius: 1px;
}

.regulamin-section h2 {
    font-family: 'Syne', sans-serif;
}

/* =============================================
   Category Filter Buttons
   ============================================= */
.category-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.75rem;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.45);
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 300ms ease;
    letter-spacing: 0.02em;
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.12);
}

.category-btn.active {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(247, 201, 72, 0.1));
    color: #f7c948;
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.08);
}

/* =============================================
   WhatsApp Button (Green variant)
   ============================================= */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #25D366;
    color: #fff;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all 300ms ease;
    text-decoration: none;
}

.btn-whatsapp:hover {
    background: #1fb855;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.25);
}

/* Add to cart button */
.btn-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--color-text);
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-to-cart:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-add-to-cart:active {
    transform: scale(0.97);
}

.btn-add-to-cart.added {
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.3);
    color: #25D366;
}

/* =============================================
   Order Modal
   ============================================= */
/* Boost #swup stacking context above navbar (z-50) when modal is open */
#swup:has(.order-modal:not(.hidden)) {
    z-index: 60;
}

.order-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    padding: 16px;
}
.order-modal::before,
.order-modal::after {
    content: '';
    flex: 1;
    min-height: 16px;
}
.order-modal.hidden {
    display: none;
}

.order-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.70);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.order-modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    flex-shrink: 0;
    background: #141416;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 32px 28px 40px;
}

.order-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 200ms ease;
}
.order-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.order-summary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.order-qty-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 200ms ease;
}
.order-qty-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.order-qty-input {
    width: 60px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 4px;
    padding-left: 7px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Syne', sans-serif;
    line-height: 1;
    box-sizing: border-box;
    -moz-appearance: textfield;
}
.order-qty-input.qty-double {
    padding-left: 4px;
}
.order-qty-input::-webkit-outer-spin-button,
.order-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.order-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
    transition: border-color 200ms ease;
}
.order-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}
.order-input:focus {
    outline: none;
    border-color: rgba(29, 211, 176, 0.4);
}
.order-input.invalid {
    border-color: rgba(239, 68, 68, 0.5);
}

.order-label {
    display: block;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    font-weight: 500;
}

.delivery-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    cursor: pointer;
    transition: all 200ms ease;
    color: #fff;
}
.delivery-tile:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.14);
}
.delivery-tile.selected {
    background: rgba(29, 211, 176, 0.08);
    border-color: rgba(29, 211, 176, 0.4);
    box-shadow: 0 0 20px rgba(29, 211, 176, 0.08), inset 0 0 20px rgba(29, 211, 176, 0.03);
}

.delivery-logo {
    height: 22px;
    width: auto;
    object-fit: contain;
}

.delivery-tile-label {
    font-size: 0.85rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    line-height: 1.3;
}

/* Delivery section label */
.delivery-section-label {
    display: block;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* Delivery hint */
.delivery-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(29, 211, 176, 0.06);
    border: 1px solid rgba(29, 211, 176, 0.15);
    animation: deliveryHintPulse 2s ease-in-out infinite;
}
.delivery-hint span {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(29, 211, 176, 0.85);
}
.delivery-hint-arrow {
    color: rgba(29, 211, 176, 0.7);
    animation: deliveryHintBounce 1.2s ease-in-out infinite;
}
.delivery-hint.hidden {
    display: none;
}

@keyframes deliveryHintPulse {
    0%, 100% { opacity: 1; border-color: rgba(29, 211, 176, 0.15); }
    50% { opacity: 0.7; border-color: rgba(29, 211, 176, 0.3); }
}
@keyframes deliveryHintBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.order-wa-info {
    background: rgba(37, 211, 102, 0.04);
    border: 1px solid rgba(37, 211, 102, 0.1);
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.shipping-fields {
    margin-bottom: 24px;
}
.shipping-fields.hidden {
    display: none;
}

/* =============================================
   Availability Dot
   ============================================= */
.dot-available {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1dd3b0;
    box-shadow: 0 0 8px rgba(29, 211, 176, 0.4);
}

.dot-unavailable {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

/* =============================================
   Mobile Homepage — Button Stack
   ============================================= */
.home-mobile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 24px;
    border-radius: 16px;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.home-mobile-btn--wa {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    border-color: transparent;
}

.home-mobile-btn--wa-big {
    flex-direction: column;
    gap: 6px;
    padding: 24px 28px;
    font-size: 1.15rem;
}

.home-mobile-btn--wa:active {
    transform: scale(0.97);
}

.home-mobile-btn--offer {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text);
    backdrop-filter: blur(12px);
    border: none;
    padding: 24px 28px;
    font-size: 1.15rem;
    position: relative;
    z-index: 0;
    overflow: hidden;
}
.home-mobile-btn--offer::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(
        from var(--glow-angle, 0deg),
        #ff6b6b, #ffd93d, #6bff8e, #6bb5ff, #c96bff, #ff6b9d, #ff6b6b
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: glowSpin 4s linear infinite;
}
.home-mobile-btn--offer::after {
    content: '';
    position: absolute;
    inset: -40px;
    border-radius: inherit;
    background: conic-gradient(
        from var(--glow-angle, 0deg),
        #ff6b6b33, #ffd93d33, #6bff8e33, #6bb5ff33, #c96bff33, #ff6b9d33, #ff6b6b33
    );
    filter: blur(20px);
    z-index: -1;
    animation: glowSpin 4s linear infinite;
}

.home-mobile-btn--offer:active {
    background: rgba(255, 255, 255, 0.14);
}

.home-mobile-btn--how {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
}

.home-mobile-btn--how:active {
    background: rgba(255, 255, 255, 0.08);
}

.home-how-to-order {
    background: rgba(255, 255, 255, 0.07);
    border: none;
    border-radius: 16px;
    padding: 28px 22px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    z-index: 0;
    overflow: hidden;
}
.home-how-to-order::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(
        from var(--glow-angle, 0deg),
        #ff6b6b, #ffd93d, #6bff8e, #6bb5ff, #c96bff, #ff6b9d, #ff6b6b
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: glowSpin 4s linear infinite;
}
.home-how-to-order::after {
    content: '';
    position: absolute;
    inset: -40px;
    border-radius: inherit;
    background: conic-gradient(
        from var(--glow-angle, 0deg),
        #ff6b6b22, #ffd93d22, #6bff8e22, #6bb5ff22, #c96bff22, #ff6b9d22, #ff6b6b22
    );
    filter: blur(25px);
    z-index: -1;
    animation: glowSpin 4s linear infinite;
}

.home-step-number {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Syne', sans-serif;
    line-height: 1;
    padding-bottom: 1px;
}

/* =============================================
   Footer
   ============================================= */
footer {
    margin-top: auto;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15), transparent);
}

/* =============================================
   Cart Page
   ============================================= */
.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 16px 20px;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
}

.cart-item-details {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    margin-top: 2px;
}

.cart-item-price {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    min-width: 70px;
    text-align: right;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-qty input {
    width: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--color-text);
    padding: 6px 0;
    padding-left: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Syne', sans-serif;
    line-height: 1;
    box-sizing: border-box;
}
.cart-item-qty input.qty-double {
    padding-left: 0;
}
.cart-item-qty input::-webkit-outer-spin-button,
.cart-item-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.cart-item-qty input {
    -moz-appearance: textfield;
}

.cart-item-qty button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.cart-item-qty button:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.cart-item-remove {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 80, 80, 0.08);
    border: none;
    color: rgba(255, 80, 80, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    background: rgba(255, 80, 80, 0.2);
    color: #ff5050;
}

.cart-clear-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 80, 80, 0.15);
    background: rgba(255, 80, 80, 0.06);
    color: rgba(255, 80, 80, 0.7);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-clear-all-btn:hover {
    background: rgba(255, 80, 80, 0.15);
    border-color: rgba(255, 80, 80, 0.3);
    color: #ff5050;
}

.cart-clear-all-btn:active {
    transform: scale(0.96);
}

.cart-summary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 24px;
    margin-top: 24px;
    margin-bottom: 32px;
}

@media (max-width: 639px) {
    .cart-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 16px;
        position: relative;
    }
    .cart-item-info {
        width: 100%;
        padding-right: 36px;
    }
    .cart-item > .cart-item-remove {
        position: absolute;
        top: 14px;
        right: 16px;
        width: 28px;
        height: 28px;
    }
    .cart-item-controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .cart-item-price {
        text-align: right;
        min-width: auto;
    }
}

/* =============================================
   Page Transitions — Swup + View Transitions API
   ============================================= */

/* Swup CSS fade — fallback for browsers without View Transitions */
@supports not (view-transition-name: none) {
    .transition-main {
        transition: opacity 0.25s ease;
    }
    html.is-animating .transition-main {
        opacity: 0;
    }
}

/* View Transitions API — old page fades out, new page instant (GSAP handles entrance) */
::view-transition-old(root) {
    animation: vt-fade-out 0.2s ease both;
}
::view-transition-new(root) {
    animation: none;
}
@keyframes vt-fade-out {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* Product image morph — smooth position/size interpolation */
::view-transition-group(product-img) {
    animation-duration: 0.4s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

::view-transition-old(product-img),
::view-transition-new(product-img) {
    animation: none;
    mix-blend-mode: normal;
    object-fit: cover;
}

/* Navbar stays static during transition */
#navbar {
    view-transition-name: navbar;
}

::view-transition-group(navbar) {
    animation: none;
}

::view-transition-old(navbar),
::view-transition-new(navbar) {
    animation: none;
}


/* =============================================
   Responsive — Mobile Perfection
   ============================================= */

/* --- Touch device: disable hover transforms --- */
@media (hover: none) and (pointer: coarse) {
    .card:hover {
        transform: none !important;
        border-color: rgba(255, 255, 255, 0.06) !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3) !important;
    }

    .card:hover::before {
        opacity: 0 !important;
    }

    .card:active {
        transform: scale(0.98) !important;
        transition: transform 150ms ease;
    }

    .btn-primary:hover,
    .btn-outline:hover,
    .btn-whatsapp:hover {
        transform: none;
    }

    .btn-primary:active,
    .btn-outline:active,
    .btn-whatsapp:active {
        transform: scale(0.97);
        transition: transform 100ms ease;
    }

    .flavor-card:hover:not(.unavailable) {
        transform: none;
    }

    .flavor-card.selected {
        transform: none;
    }

    .flavor-card:active:not(.unavailable) {
        transform: scale(0.97);
    }
}

/* --- Mobile: disable product card hover --- */
@media (max-width: 768px) {
    .card:hover {
        transform: none !important;
        border-color: rgba(255, 255, 255, 0.06) !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3) !important;
    }

    .card:hover::before {
        opacity: 0 !important;
    }
}

/* --- Tablet & below (768px) --- */
@media (max-width: 768px) {
    /* Flavor list — mobile adjustments */
    .flavor-card {
        padding: 0.6rem 0.875rem;
        gap: 10px;
    }

    .flavor-card .check-icon {
        left: 0.875rem;
    }

    .flavor-card .flavor-name {
        font-size: 0.78rem;
    }

    /* Hero — better text on mobile */
    .hero-title {
        text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8), 0 0 80px rgba(0, 0, 0, 0.6);
    }

    .hero-subtitle {
        font-size: 0.7rem;
        letter-spacing: 0.12em;
        text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
    }

    .hero-content {
        margin-top: 8vh;
    }

    /* Cards — tighter on mobile */
    .card {
        border-radius: 16px;
    }

    .card-content {
        padding: 1.25rem;
    }

    /* Page headings */
    .page-heading {
        letter-spacing: -0.01em;
    }

    /* Buttons — full width, bigger targets */
    .btn-primary,
    .btn-whatsapp {
        min-height: 48px;
        font-size: 0.88rem;
    }

    .btn-outline {
        min-height: 44px;
    }

    /* Product detail page */
    .product-page .product-image-col {
        border-radius: 16px;
    }

    /* Form inputs — bigger tap targets */
    .form-input {
        padding: 1rem 1.125rem;
        font-size: 1rem; /* 16px prevents iOS zoom on focus */
        border-radius: 12px;
    }

    /* Regulamin — more breathing room */
    .regulamin-section {
        padding-left: 1.25rem;
    }

    /* Glass panels */
    .glass-panel {
        border-radius: 16px;
    }

    /* Footer */
    footer .grid > div + div {
        padding-top: 0;
    }

    /* Transition animations — less dramatic on mobile */
    .product-enter-left {
        transform: translateX(-20px);
    }

    .product-enter-right {
        transform: translateX(20px);
    }

    .product-enter {
        transform: translateY(20px);
    }

    /* Mobile menu — polish */
    .mobile-menu nav {
        gap: 0;
    }

    .mobile-nav-link {
        padding: 0.75rem 1.5rem;
        font-size: 1.25rem;
    }
}

/* --- Small phones (480px and below) --- */
@media (max-width: 480px) {
    /* Hero section — fit "Lisek Buszek" in Syne 800 within viewport */
    .hero-title {
        font-size: clamp(2rem, 10vw, 2.75rem) !important;
        line-height: 1.05;
    }

    .hero-subtitle {
        font-size: 0.65rem;
        letter-spacing: 0.15em;
    }

    /* Product cards — optimize space */
    .card-content {
        padding: 1rem;
    }

    .card-content h2 {
        font-size: 1rem;
    }

    /* Product detail */
    .product-page h1 {
        font-size: 1.75rem !important;
    }

    /* Price */
    .product-page .text-3xl {
        font-size: 1.5rem;
    }

    /* Contact page — full width everything */
    .glass-panel {
        padding: 1.25rem !important;
    }

    /* Regulamin */
    .regulamin-section h2 {
        font-size: 1rem;
    }

    .regulamin-section ul {
        font-size: 0.88rem;
    }

    /* Blog post */
    .blog-post-hero-glow {
        width: 350px;
        height: 250px;
        top: -80px;
    }

    .blog-article-end {
        gap: 0.75rem;
    }

    .blog-article-end-cta {
        font-size: 0.72rem;
        padding: 0.4rem 1rem;
    }

    .blog-content h2 {
        font-size: 1.25rem;
    }

    .blog-content h3 {
        font-size: 1.1rem;
    }

    /* Footer */
    footer {
        font-size: 0.85rem;
    }

    footer .py-14 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    footer .gap-12 {
        gap: 1.5rem;
    }

    footer h3 {
        margin-bottom: 0.75rem;
    }
}

/* --- Very small phones (360px and below) --- */
@media (max-width: 360px) {
    .hero-title {
        font-size: 2.25rem !important;
    }

    .flavor-card {
        padding: 0.5rem 0.75rem;
    }

    .flavor-card .check-icon {
        left: 0.75rem;
    }

    .flavor-card .flavor-name {
        font-size: 0.72rem;
    }

    .card-content {
        padding: 0.875rem;
    }

    .btn-primary,
    .btn-whatsapp {
        padding-left: 1rem;
        padding-right: 1rem;
        font-size: 0.82rem;
    }
}

/* --- Safe area for notched phones (iPhone X+) --- */
@supports (padding: env(safe-area-inset-bottom)) {
    footer {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-menu {
        padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    }

    nav#navbar {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

/* --- iOS momentum scrolling fix --- */
@supports (-webkit-touch-callout: none) {
    html {
        -webkit-overflow-scrolling: touch;
    }
}

/* ── Blog post hero & layout ─────────────────────────── */
.blog-post-hero {
    position: relative;
    overflow: hidden;
    padding-bottom: 1.5rem;
}
.blog-post-hero-inner {
    padding-top: 2rem;
}
@media (min-width: 768px) {
    .blog-post-hero-inner {
        padding-top: 2.5rem;
    }
}

.blog-post-hero-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(255, 107, 53, 0.06) 0%, rgba(247, 201, 72, 0.03) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.blog-post-hero > *:not(.blog-post-hero-glow) {
    position: relative;
    z-index: 1;
}

.blog-back-link {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    transition: color 200ms ease;
}
.blog-back-link:hover {
    color: var(--color-warm-1);
}
.blog-back-link svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    transition: transform 200ms ease;
}
.blog-back-link:hover svg {
    transform: translateX(-3px);
}

.blog-breadcrumbs a {
    transition: color 200ms ease;
}

.blog-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #f7c948;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(247, 201, 72, 0.08));
    border: 1px solid rgba(255, 107, 53, 0.25);
    border-radius: 999px;
    transition: all 300ms ease;
}

.blog-category-badge:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(247, 201, 72, 0.14));
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 0 16px rgba(255, 107, 53, 0.1);
}

.blog-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    color: rgba(240, 236, 228, 0.35);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.blog-post-title {
    color: var(--color-text);
}

.blog-post-excerpt {
    color: rgba(240, 236, 228, 0.4);
}

.blog-featured-image {
    position: relative;
}

.blog-featured-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 520px;
}
@media (min-width: 768px) {
    .blog-featured-img {
        max-height: none;
    }
}

/* Gradient border on featured image */
.blog-featured-image::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(160deg, rgba(255, 107, 53, 0.3), rgba(247, 201, 72, 0.15) 40%, rgba(29, 211, 176, 0.1) 70%, rgba(255, 255, 255, 0.04));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}
.blog-featured-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 8px 40px rgba(255, 107, 53, 0.06), 0 2px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

/* Article end divider */
.blog-article-end {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 3rem;
    padding-top: 2rem;
}

.blog-article-end-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.25), rgba(247, 201, 72, 0.15), transparent);
}

.blog-article-end-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(240, 236, 228, 0.4);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    transition: all 300ms ease;
    white-space: nowrap;
}

.blog-article-end-cta:hover {
    color: var(--color-warm-1);
    border-color: rgba(255, 107, 53, 0.25);
    background: rgba(255, 107, 53, 0.06);
}

.blog-article-end-cta svg {
    transition: transform 200ms ease;
}

.blog-article-end-cta:hover svg {
    transform: translateX(-2px);
}

/* Related posts section */
.blog-related {
    padding-bottom: 3.5rem;
}
@media (min-width: 768px) {
    .blog-related {
        padding-bottom: 5rem;
    }
}
.blog-related-inner {
    padding-top: 3.5rem;
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.2), rgba(247, 201, 72, 0.15), rgba(29, 211, 176, 0.1), transparent) 1;
}
@media (min-width: 768px) {
    .blog-related-inner {
        padding-top: 4rem;
    }
}

/* ── Blog content typography ─────────────────────────── */
.blog-content h2 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: rgba(240, 236, 228, 0.95);
    position: relative;
    padding-left: 1rem;
}

.blog-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.15em;
    bottom: 0.15em;
    width: 3px;
    background: linear-gradient(to bottom, #ff6b35, #f7c948);
    border-radius: 2px;
}

.blog-content h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: rgba(240, 236, 228, 0.85);
    padding-left: 1rem;
    border-left: 2px solid rgba(255, 107, 53, 0.25);
}
.blog-content p {
    color: rgba(240, 236, 228, 0.6);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}
.blog-content ul, .blog-content ol {
    color: rgba(240, 236, 228, 0.6);
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}
.blog-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}
.blog-content ul li {
    list-style-type: disc;
}
.blog-content ol li {
    list-style-type: decimal;
}
.blog-content strong {
    color: rgba(240, 236, 228, 0.85);
    font-weight: 600;
}
.blog-content a {
    color: #ff6b35;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.blog-content a:hover {
    color: #f7c948;
}
.blog-content blockquote {
    border-left: 3px solid #ff6b35;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: rgba(240, 236, 228, 0.5);
    font-style: italic;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
