/* =========================================
   BASE & MOBILE-FIRST TYPOGRAPHY
   ========================================= */
:root {
    --bg-navy: #0f172a;
    --bg-navy-light: #1e293b;
    --accent: #38bdf8;
    --emerald: #10b981;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-navy);
    color: #ffffff;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    font-size: clamp(1rem, 2.5vw, 1.0625rem);
    line-height: 1.6;
}

/* Fluid Typography using clamp() for 360px+ mobile screens */
.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.75rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.section-title {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.price-display {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    line-height: 1.1;
}

/* Minimum 48px height for comfortable thumb tapping on mobile */
.tap-target {
    min-height: 48px;
}

/* =========================================
   3D TACTILE SURFACES & BUTTONS
   ========================================= */
.card-3d {
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-3d {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35), inset 0 2px 2px rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-accent-3d {
    background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
    box-shadow: 0 10px 25px -5px rgba(56, 189, 248, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* =========================================
   TOFU 3D INTERACTIVE CUBE ENGINE
   ========================================= */
.perspective-container {
    perspective: 1200px;
}

.preserve-3d {
    transform-style: preserve-3d;
}

.cube-face {
    position: absolute;
    width: 176px;
    height: 176px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 4px,
        rgba(0, 0, 0, 0.02) 4px,
        rgba(0, 0, 0, 0.02) 8px
    );
}

.face-front  { background-color: #f8f9fa; transform: translateZ(88px); box-shadow: inset 0 0 15px rgba(0,0,0,0.05); }
.face-back   { background-color: #e5e7eb; transform: rotateY(180deg) translateZ(88px); box-shadow: inset 0 0 30px rgba(0,0,0,0.1); }
.face-right  { background-color: #f3f4f6; transform: rotateY(90deg) translateZ(88px); }
.face-left   { background-color: #f3f4f6; transform: rotateY(-90deg) translateZ(88px); }
.face-top    { background-color: #ffffff; transform: rotateX(90deg) translateZ(88px); box-shadow: inset 0 0 10px rgba(255,255,255,0.8); }
.face-bottom { background-color: #d1d5db; transform: rotateX(-90deg) translateZ(88px); border-color: #9ca3af; }

.oled-glow {
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4), inset 0 0 10px rgba(56, 189, 248, 0.2);
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
}

/* =========================================
   MOMENTUM 3D FEATURE CAROUSEL
   ========================================= */
.editorial-carousel-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: pan-y;
}

.editorial-card {
    position: absolute;
    width: clamp(195px, 46vw, 290px);
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--bg-navy-light);
    will-change: transform, opacity, z-index;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

.editorial-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* =========================================
   DRAWERS, ACCORDIONS & SCROLLBARS
   ========================================= */
.checkout-drawer-backdrop {
    transition: opacity 0.3s ease;
}

.checkout-drawer-panel {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

details > summary {
    list-style: none;
}
details > summary::-webkit-details-marker {
    display: none;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

.hide-scroll::-webkit-scrollbar { display: none; }
.hide-scroll { -ms-overflow-style: none; scrollbar-width: none; overflow-x: hidden; touch-action: pan-y; }