/* ==================================================================================================================
   iCHO!™ STYLESHEET  
================================================================================================================== */

/* ── RESET ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    font-size: 16px; /* Fixed root — fluid scaling handled at component level via clamp()+vw */
    scroll-behavior: smooth;
    /* 'none' prevents Safari on iOS from inflating text when system font is set small,
       which causes the layout to render at desktop width on a 390px screen */
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    overflow-y: auto;
    background: radial-gradient(circle at 50% 50%, var(--bg-inner) 20%, var(--bg-outer) 100%);
}

body {
    font-family: Arial, sans-serif;
    -webkit-overflow-scrolling: touch;
    min-height: 100vh;
    /*padding-bottom: max(40px, calc(40px + env(safe-area-inset-bottom)));*/
}

/* Texture overlay */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.40;
    background: url('https://www.transparenttextures.com/patterns/cartographer.png');
}

/* ── ROOT VARIABLES ──────────────────────────────────────────────────────── */
:root {
    --bg-inner:  #1c1c1c;
    --bg-outer:  #000;

    --coming-size: clamp(14px, 4vw, 20px);
    --coming-line: var(--coming-line-dynamic, calc(var(--coming-size) * 1.6));

    --top-bottom-font:    clamp(0.75rem, 1.1vw, 1rem);
    --heading-font:       clamp(2rem, 6vw, 4.5rem);
    --paragraph-font:     clamp(0.9rem, 2.5vw, 1.05rem);
    --product-title-font: clamp(1.1rem, 3.5vw, 1.6rem);
    --body-text:          clamp(0.9rem, 1.5vw, 1.05rem);
    --body-line-height:   1.75;
    --backtotop-font:     clamp(1rem, 1.5vw, 1.2rem);

    --text-light: #e6e6e6;
    --glass-bg:   rgba(255,255,255,0.07);

    --container-max: 860px;
    --container-pad: clamp(20px, 5vw, 48px);

    /* Section card */
    --card-bg:      rgba(255,255,255,0.04);
    --card-border:  rgba(255,255,255,0.09);
    --card-radius:  18px;
    --card-pad-v:   clamp(28px, 6vh, 56px);
    --card-pad-h:   clamp(20px, 5vw, 48px);


    /* Framed sections (About + Get It) — the "photo frame" system
       --frame-pad-*  : the wooden frame edges (outer card padding)
       --frame-body-* : the photo area (inner content boundary)        */
    --frame-pad-v:    clamp(28px, 6vh, 56px);
    --frame-pad-h:    clamp(24px, 5vw, 52px);
    --frame-body-max: 680px;
    --frame-body-gap: 20px;

    /* Entrance animation */
    --anim-duration: 0.7s;
    --anim-ease:     cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── UNIFORM CONTAINER ───────────────────────────────────────────────────── */
.section-inner {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.section-inner.section-card {
    background:    var(--card-bg);
    border:        1px solid var(--card-border);
    border-radius: var(--card-radius);
    padding:       var(--card-pad-v) var(--card-pad-h);
    /* Subtle inner glow at the top edge */
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.03) inset,
        0 24px 60px rgba(0,0,0,0.35);
    width: calc(100% - clamp(24px, 5vw, 64px));
}

/* THE FRAME — outer card with controlled padding */
.section-inner.section-card.section-card--framed {
    padding: var(--frame-pad-v) var(--frame-pad-h);
    align-items: center;
}

/* THE PHOTO — inner content boundary */
.section-card--framed .section-body {
    width: 100%;
    max-width: var(--frame-body-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;  /* centre children horizontally within the frame */
    gap: var(--frame-body-gap);
}

/* Headings inside framed sections — full width of the photo area */
.section-card--framed .section-body h2 {
    width: 100%;
    text-align: center;
    margin-bottom: 0;
}

/* Paragraphs and buttons fill the frame width — links excluded
   (social icon <a> tags must keep their own sizing) */
.section-card--framed .section-body p,
.section-card--framed .section-body button {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Social icons row — always centred within the frame */
.section-card--framed .section-body .social-icons {
    width: 100%;
    justify-content: center;
}


/* ── SCROLL-TRIGGERED ENTRANCE ANIMATION ────────────────────────────────── */
.animate-in {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity   var(--anim-duration) var(--anim-ease),
        transform var(--anim-duration) var(--anim-ease);
}

.animate-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── HERO / LANDING ──────────────────────────────────────────────────────── */
.landing {
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 2.5vh, 22px); 
    justify-content: center;
    padding: 0 var(--container-pad);
}

.hero-headline {
    color: #fff;
    text-align: center;
    font-size: var(--heading-font);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.1;
    word-spacing: 0.4em;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
}

.logo {
    width: clamp(160px, min(85vw, 65dvh), 100vw);
    transition: opacity 0.2s ease;
}

.js-ready .logo {
    opacity: 0;
}

.logo-wrapper:hover .logo {
    filter: drop-shadow(0 0 24px rgba(255,255,255,0.15));
}

/* ── LOGO GHOST (morph animation element) ───────────────────────────────── */
.logo-ghost {
    position: fixed;
    z-index: 1100; 
    pointer-events: none;
    will-change: left, top, width, opacity;
    display: block;
}

/* ── COMING TEXT ANIMATION ───────────────────────────────────────────────── */
.coming-viewport {
    height: var(--coming-line);
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to bottom, transparent, black 35%, black 65%, transparent);
}

.coming-track {
    display: flex;
    flex-direction: column;
    animation: scrollUp 10s ease-in-out infinite;
}

.coming-track p {
    height: var(--coming-line);
    line-height: var(--coming-line);
    text-align: center;
    color: var(--text-light);
    letter-spacing: clamp(0.05em, 0.8vw, 0.25em);
    padding: 0 10px;
    font-size: var(--coming-size);
    white-space: nowrap;
}

@keyframes scrollUp {
    0%,  20% { transform: translateY(0); }
    25%, 45%  { transform: translateY(calc(-1 * var(--coming-line))); }
    50%, 70%  { transform: translateY(calc(-2 * var(--coming-line))); }
    75%, 95%  { transform: translateY(calc(-3 * var(--coming-line))); }
    100%      { transform: translateY(calc(-4 * var(--coming-line))); }
}

.hero-summary {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

/* ── SECTIONS ────────────────────────────────────────────────────────────── */
section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 1svh;
    padding: 8px 0 10px;
    scroll-margin-top: 80px;
}

/* Subtle top divider */
section::before {
    content: "";
    position: absolute;
    top: 0; left: 10%; width: 80%; height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.07), transparent);
}

/* The last section (Get It / drop) — give it enough bottom space so the
   very last stockist line clears the fixed bottom bar on all screen sizes.
   80px covers the bar height + safe-area on most devices. */
section:last-of-type {
    min-height: auto;
    padding-bottom: max(100px, calc(80px + env(safe-area-inset-bottom)));
}

.content-section {
    width: 100%;
    text-align: center;
    color: #fff;
    padding-top:    clamp(3px, 10vh, 30px);
    padding-bottom: clamp(30px, 10vh, 30px);
}

.content-section h2 {
    font-size: var(--heading-font);
    margin-bottom: 6px;
    text-align: center;
}

.content-section p {
    line-height: var(--body-line-height);
    font-size: var(--paragraph-font);
    color: var(--text-light);
}

.brand { font-weight: bold; letter-spacing: 0.05em; }

/* ── NAVBAR ──────────────────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 15px; 
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 20px);
    max-width: 900px;
    padding: 12px 24px;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(12px);
    border-radius: 999px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    z-index: 1000;

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.35s ease;
}

body.scrolled .navbar {
    opacity: 1;
    pointer-events: auto;
}

.nav-inner { display: flex; justify-content: space-between; align-items: center; }

.nav-logo-img { 
	width: 98px; transition: transform 0.3s ease; 
	filter: drop-shadow(0 0 5px rgba(239, 51, 64, 0.45));
    transition: filter 0.4s ease, transform 0.3s ease;

}

.nav-logo:hover .nav-logo-img { transform: scale(1.1); }

.nav-links {
    display: flex;
    position: relative;
    gap: clamp(8px, 3vw, 18px);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: var(--top-bottom-font);
    opacity: 0.55;
    transition: opacity 0.3s;
}

.nav-links a.active { opacity: 1; }

/* Sliding underline */
.nav-links::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: var(--underline-left, 0);
    width: var(--underline-width, 0);
    height: 2px;
    background: #ff0000;
    transform-origin: left center;
    transition: width 0.4s ease, left 0.4s ease;
}

/* Top blur strip */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 60px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    pointer-events: none;
    z-index: 900;
}

/* ── LANG SWITCHER ───────────────────────────────────────────────────────── */
.lang-switcher { display: flex; gap: 6px; margin-left: 12px; }

.lang-switcher button {
    background: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-light);
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    font-size: var(--top-bottom-font);
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.lang-switcher button:hover { background: var(--text-light); color: #000; font-weight: bold; }
.lang-switcher button.active { background: #fff; color: #000; border-color: #fff; font-weight: 600; }

/* ── PRODUCT GRID ────────────────────────────────────────────────────────── */
.product-wrapper { position: relative; width: 100%; }

.product-grid {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 20px 10px 20px;
    scrollbar-width: none;
}

.product-grid::-webkit-scrollbar { display: none; }

.product-card {
    flex: 0 0 80%;
    max-width: 340px;
    scroll-snap-align: center;
    background: var(--glass-bg);
    padding: 20px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    text-align: center;
    transition: background 0.3s ease;
}

.product-card:hover { background: rgba(255,255,255,0.11); }

.product-card h3 { font-size: var(--product-title-font); margin-bottom: 10px; }
.product-card p  { font-size: var(--paragraph-font); line-height: 1.6; }

/* Flavour tag — small label above the product title */
.prod-flavour-tag {
    display: block;
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 4px;
    transition: color 0.3s ease;
}
 
.product-card:hover .prod-flavour-tag {
    color: rgba(255, 255, 255, 0.55);
}
 
/* Redacted tag on classified card */
.redacted-tag {
    color: transparent !important;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    padding: 0 6px;
    user-select: none;
    transition: color 0.4s ease, background 0.4s ease;
}
 
.product-card--classified:hover .redacted-tag {
    color: rgba(255,255,255,0.35) !important;
    background: transparent;
}
 
/* Product title */
.product-card h3 {
    font-size: var(--product-title-font);
    margin-bottom: 14px; 
    margin-top: 2px;
    line-height: 1.25;
}
 
/* Description */
.prod-desc {
    display: flex;
    flex-direction: column;
    gap: 6px;             
    font-size: var(--paragraph-font);
    line-height: 1.55;
    color: rgba(255,255,255,0.65);
    text-align: center;
}
 
.prod-line {
    display: block;
}
 
.product-card p.prod-desc {
    line-height: 1.55; 
}

.product-card-img {
    width: 85%;
    max-width: 260px;
    display: block;
    margin: 0 auto 14px;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.4));
    transform: rotate(-5deg);
    transition: transform 0.35s ease;
}

.product-card:hover .product-card-img { transform: rotate(0deg) scale(1.05); }

.product-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.13), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover::after { opacity: 1; }

/* Classified card */
.product-card--classified { border: 1px solid rgba(255,255,255,0.1); }

.classified-badge {
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    overflow: hidden;
    pointer-events: none;
    z-index: 3;
}

.classified-badge::after {
    content: "CLASSIFIED";
    position: absolute;
    top: 18px; right: -22px;
    width: 100px;
    background: #c00;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-align: center;
    padding: 4px 0;
    transform: rotate(45deg);
    transform-origin: center center;
}

.redacted-text {
    position: relative;
    color: transparent !important;
    user-select: none;
    transition: color 0.4s ease;
}

.redacted-text::after {
    content: "";
    position: absolute;
    inset: 0 -4px;
    background: rgba(255,255,255,0.14);
    border-radius: 3px;
    transition: opacity 0.4s ease;
}

.product-card--classified:hover .redacted-text::after { opacity: 0; }
.product-card--classified:hover .redacted-text { color: #fff !important; }

.redacted-lines {
    position: relative;
    color: transparent !important;
    user-select: none;
    transition: color 0.4s ease;
}

.redacted-lines::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.12) 0px,
        rgba(255,255,255,0.12) 1.1em,
        transparent 1.1em,
        transparent 1.6em
    );
    border-radius: 3px;
    transition: opacity 0.4s ease;
}

.product-card--classified:hover .redacted-lines::before { opacity: 0; }
.product-card--classified:hover .redacted-lines { color: var(--text-light) !important; }

.classified-reveal-hint {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
    margin-top: 10px;
    transition: opacity 0.3s;
}

.product-card--classified:hover .classified-reveal-hint { opacity: 0; }

.product-card-img.muted {
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.4)) grayscale(1) brightness(0.35);
    transition: filter 0.4s ease, transform 0.35s ease;
}

.product-card--classified:hover .product-card-img.muted {
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.4)) grayscale(0.2) brightness(0.7);
}

/* Scroll arrows */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 26px;
    color: rgba(255,255,255,0.55);
    background: rgba(0,0,0,0.2);
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, color 0.3s;
}

.scroll-arrow:hover { background: rgba(0,0,0,0.5); color: #fff; }
.scroll-arrow.left  { left:  5px; }
.scroll-arrow.right { right: 5px; }

/* ── ABOUT ───────────────────────────────────────────────────────────────── */
.about-wrapper { width: 100%; }

/* #aboutText width/margin controlled by .section-body frame */
#aboutText {
    text-align: left;
    font-size: var(--body-text);
    line-height: var(--body-line-height);
    color: var(--text-light);
}

.about-footnote {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.03em;
    font-style: italic;
}

/* ── ABOUT MORE (expandable company details) ─────────────────────────────── */
.about-more-trigger {
    background: transparent;
    border: none;
    color: #EF3340;
    font-size: clamp(0.78rem, 2vw, 0.88rem);
    letter-spacing: 0.1em;
    cursor: pointer;
    padding: 0;
    margin-top: 6px;
    transition: color 0.3s ease, letter-spacing 0.3s ease, opacity 0.4s ease;
    font-family: inherit;
    text-align: left;
    display: block;
    -webkit-appearance: none;
    appearance: none;
}

.about-more-trigger:hover {
    color: #EF3340;
    letter-spacing: 0.14em;
}

.about-more-trigger[aria-expanded="true"] {
    color: #EF3340;
}

/* The reveal card */
.about-more-card {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                opacity    0.4s ease;
    opacity: 0;
}

.about-more-card.is-open {
    max-height: 2000px;
    opacity: 1;
}

.about-more-body {
    margin-top: 20px;
    padding: 24px 28px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    text-align: left;
    font-size: clamp(0.82rem, 2vw, 0.9rem);
    line-height: 1.8;
    color: rgba(255,255,255,0.65);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
	background-image: 
		linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.85)),
		url('../images/ruins1.png');
    background-size: 100%;
    background-position: center bottom;
    background-repeat: no-repeat;

}

.about-more-label {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}

.about-more-meta {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: #EF3340;
    font-variant-numeric: tabular-nums;
}

.about-verse {
    display: block;
    font-style: italic;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.04em;
    line-height: 1.7;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 16px;
    margin-top: 4px;
    text-align: center;
}

/* ── GET IT SECTION ──────────────────────────────────────────────────────── */
.content-section--drop {
    min-height: 100dvh;
}

/* Email reveal link */
#drop a[role="button"] {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    font-size: var(--paragraph-font);
    transition: opacity 0.3s;
}

#drop img[alt="email address"] {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

#drop a[role="button"]:hover   { opacity: 0.65; }
#drop a[role="button"]:visited { color: #fff !important; }

/* Social icons */
.social-icons { display: flex; justify-content: center; gap: 20px; }

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    transition: background 0.3s, transform 0.3s;
}

.social-icons a:hover { background: rgba(255,255,255,0.14); transform: scale(1.05); }
.icon { width: 20px; height: 20px; fill: var(--text-light); }

.stockist-line {
    font-size: clamp(0.82rem, 2vw, 0.92rem);
    line-height: 1.7;
    color: rgba(255,255,255,0.75);
    text-align: left;
    padding-bottom: 4px;
}

.stockist-line:last-child {
    padding-bottom: 0; 
}

/* Loading / error */
.stockists-loading, .stockists-error {
    font-size: var(--paragraph-font);
    color: rgba(255,255,255,0.35);
    text-align: center;
    padding: 16px 0;
}
.stockists-error { color: rgba(255,100,100,0.65); }

/* ── SCROLL INDICATOR ────────────────────────────────────────────────────── */
.scroll-indicator {
    position: absolute;
    bottom: 56px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px; height: 40px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    touch-action: manipulation;
}

.scroll-indicator span {
    display: block;
    width: 4px; height: 8px;
    background: #fff;
    margin: 6px auto;
    border-radius: 2px;
    animation: scrollHint 1.5s infinite;
}

@keyframes scrollHint {
    0%   { opacity: 0; transform: translateY(0); }
    50%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(14px); }
}

/* ── BOTTOM BAR ──────────────────────────────────────────────────────────── */
.bottom-bar {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 1rem;
    padding-bottom: max(0.3rem, env(safe-area-inset-bottom));
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    z-index: 1000;
}

.bottom-bar .bottom-left { display: flex; align-items: center; gap: 0.8rem; }
.bottom-bar .copyright   { color: #fff; font-size: var(--top-bottom-font); }

.back-to-top {
    opacity: 0;
    pointer-events: none;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    transition: opacity 0.3s, transform 0.2s ease, background 0.2s;
    font-size: var(--backtotop-font);
}

.back-to-top.visible { opacity: 0.75; pointer-events: auto; }
.back-to-top:hover   { transform: scale(1.1); background: rgba(255,255,255,0.18); }

.scalable-text { font-size: var(--top-bottom-font); }

.lang-switcher button:not(.active) {
    animation: lang-pulse 2s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.15s); 
}

.lang-switcher.interacted button {
    animation: none;
}

@keyframes lang-pulse {
    0%   { box-shadow: inset 0 0 0 0px rgba(255, 255, 255, 0);    border-color: #fff; }
    50%  { box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.55); border-color: #fff; }
    100% { box-shadow: inset 0 0 0 0px rgba(255, 255, 255, 0);    border-color: #fff; }
}

/* ── ORIENTATION LOCK ────────────────────────────────────────────────────── */
body.landscape nav,
body.landscape section,
body.landscape .bottom-bar { display: none !important; }

#orientation-lock {
    display: flex;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    inset: 0;
    background: #111;
    color: #fff;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    z-index: 9999;
}

#orientation-lock .lock-logo { margin-bottom: 2rem; }
#orientation-lock .lock-logo-img {
    width: auto;
    height: clamp(80px, 38vh, 160px);  
    height: clamp(80px, 38dvh, 160px); 
    max-width: 55vw;
    opacity: 1 !important;
}

#orientation-lock .message {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.3rem;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    white-space: nowrap;
}

body.landscape #orientation-lock { opacity: 1; pointer-events: auto; }

#orientation-lock .rotate-icon {
    width: clamp(60px, 15dvh, 90px);
    height: auto;
    margin-bottom: 1.5rem;
    opacity: 0.5;
    animation: rotateHint 2s ease-in-out infinite;
}

#orientation-lock .rotate-icon svg {
    width: 100%;
    height: auto;
    fill: #ffffff;
}

@keyframes rotateHint {
    0%, 100% { transform: rotate(0deg); opacity: 0.4; }
    50%       { transform: rotate(15deg); opacity: 0.7; }
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    section { padding: 70px 0 90px; }

    section:last-of-type {
        padding-bottom: max(110px, calc(90px + env(safe-area-inset-bottom)));
    }

    .content-section h2 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
    .hero-headline       { font-size: clamp(1.8rem, 7vw, 2.4rem); }

    .product-card {
        flex: 0 0 90vw;
        min-height: 68svh;
    }

    .product-card-img { max-width: 200px; }
    .scroll-arrow     { font-size: 20px; padding: 5px 8px; }
    .icon             { width: 18px; height: 18px; }

    .section-inner.section-card {
        width: calc(100% - 24px);
        padding: clamp(20px, 5vh, 36px) clamp(14px, 4vw, 24px);
    }
}

@media (max-height: 600px) {
    .scroll-indicator { display: none; }
}

@media (min-width: 768px) {
    .product-card { flex: 0 0 58vw; min-height: 62svh; }
}

@media (min-width: 1024px) {
    .product-grid    { justify-content: flex-start; }
    .product-card    { flex: 0 0 320px; min-height: 500px; }
    .product-wrapper { max-width: calc(3 * 320px + 2 * 16px + 40px); }
}
/* ── MID-RANGE / FOLDED TABLET FIX ──────────────────────────────────────────
   Catches viewports like Zenbook Fold (~853px) and similar mid-range widths
   where vw-based clamps hit awkward intermediate values, causing card edges
   and text to misalign. Safari on iPhone 13/16 Pro in landscape also benefits.
────────────────────────────────────────────────────────────────────────────── */
@media (min-width: 481px) and (max-width: 960px) {

    .section-inner.section-card {
        width: calc(100% - 40px);
        padding-left:  clamp(20px, 4vw, 40px);
        padding-right: clamp(20px, 4vw, 40px);
    }

    .content-section h2 {
        font-size: clamp(1.9rem, 5.5vw, 3rem);
    }
}

/* ── iOS SAFARI — iPhone 13 / 16 Pro (390px CSS width) ──────────────────────
   Targets compact iPhones specifically. Locks layout to the 390px logical
   viewport and prevents any remaining Safari font-scale interference.
────────────────────────────────────────────────────────────────────────────── */
@media only screen and (max-width: 430px) and (-webkit-min-device-pixel-ratio: 2) {

    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .section-inner.section-card {
        width: calc(100% - 24px);
        padding: clamp(20px, 5vh, 36px) clamp(14px, 4vw, 24px);
    }

    .section-card--framed .section-body {
        max-width: 100%;
    }

    .content-section h2,
    .hero-headline {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
    }

    .product-card {
        flex: 0 0 90vw;
        min-height: 68svh;
    }
}