/* -------------------------------------------------------------
 * Custom Design Tokens & CSS Variables (Premium Light Theme)
 * ------------------------------------------------------------- */
:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    
    /* Core Theme Colors (Light Theme) */
    --bg-color: #ffffff;
    --bg-subtle: #f5f5f7;
    --bg-card: #fbfbfd;
    --bg-card-hover: #ffffff;
    
    --white-pure: #ffffff;
    --white-subtle: #f5f5f7;
    --text-color: #1d1d1f;
    --text-subtle: #86868b;
    --text-muted: #6e6e73;
    
    --gray-border: rgba(0, 0, 0, 0.08);
    --gray-border-subtle: rgba(0, 0, 0, 0.04);
    
    /* Brand Accents */
    --accent-blue: #0071e3;
    --accent-blue-hover: #147ce5;
    --accent-green: #34c759;
    --accent-glow: rgba(0, 113, 227, 0.08);
    
    /* Dimensions & Spacing */
    --nav-height: 48px;
    --product-nav-height: 52px;
    
    /* Transition Defaults */
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-quick: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-subtle);
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* Typography Utilities */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
}

p {
    line-height: 1.6;
    color: var(--text-subtle);
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: var(--transition-quick);
}
a:hover {
    color: var(--accent-blue-hover);
    text-decoration: underline;
}

/* Buttons */
.btn-primary {
    background-color: var(--accent-blue);
    color: var(--white-pure);
    border: none;
    padding: 8px 16px;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-quick);
}
.btn-primary:hover {
    background-color: var(--accent-blue-hover);
    transform: scale(1.02);
}

.link-chevron {
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.link-chevron .chevron {
    transition: transform 0.3s ease;
}
.link-chevron:hover .chevron {
    transform: translateX(4px);
    text-decoration: none;
}

/* -------------------------------------------------------------
 * Apple Global Navigation Header (Frosted Light)
 * ------------------------------------------------------------- */
.global-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    border-bottom: 1px solid var(--gray-border-subtle);
}

.nav-container {
    max-width: 1024px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 22px;
}

.nav-logo {
    color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}
.nav-logo:hover {
    color: var(--text-color);
}

.brand-logo-img {
    height: 24px;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: var(--transition-quick);
}
.brand-logo-img:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    gap: 28px;
}
.nav-menu a {
    color: rgba(0, 0, 0, 0.65);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}
.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-color);
    text-decoration: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-btn {
    background: none;
    border: none;
    color: rgba(0, 0, 0, 0.65);
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    transition: color 0.2s ease;
}
.nav-btn:hover {
    color: var(--text-color);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: var(--accent-blue);
    color: var(--white-pure);
    font-size: 9px;
    font-weight: 700;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-quick);
    opacity: 0;
    transform: scale(0.5);
}
.cart-count.active {
    opacity: 1;
    transform: scale(1);
}

/* -------------------------------------------------------------
 * Product Sticky Sub-Navigation (Frosted Light)
 * ------------------------------------------------------------- */
.product-nav-wrapper {
    position: sticky;
    top: 0;
    width: 100%;
    height: var(--product-nav-height);
    background-color: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 90;
    border-bottom: 1px solid var(--gray-border);
    margin-top: var(--nav-height);
}

.product-nav {
    max-width: 1024px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 22px;
}

.prod-name {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: -0.02em;
}
.prod-name:hover {
    text-decoration: none;
    color: var(--text-color);
}

.prod-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.buy-cta-btn {
    background-color: var(--accent-blue);
    color: var(--white-pure);
    border: none;
    font-size: 12px;
    font-weight: 400;
    padding: 4px 11px;
    border-radius: 980px;
    cursor: pointer;
    transition: var(--transition-quick);
}
.buy-cta-btn:hover {
    background-color: var(--accent-blue-hover);
}

/* -------------------------------------------------------------
 * Layout Containers & Sections
 * ------------------------------------------------------------- */
section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 22px;
}

.section-header {
    max-width: 680px;
    margin: 0 auto 60px auto;
    text-align: center;
}

.eyebrow {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    background: linear-gradient(180deg, var(--text-color) 40%, var(--text-subtle) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    font-size: 19px;
    line-height: 1.5;
    color: var(--text-subtle);
}

/* -------------------------------------------------------------
 * Hero Section
 * ------------------------------------------------------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: calc(var(--nav-height) + 60px) 0 40px 0;
    background: radial-gradient(circle at center, #ffffff 0%, var(--bg-subtle) 80%);
}

.hero-split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.hero-content {
    text-align: left;
    z-index: 10;
}

.hero-title {
    font-size: clamp(48px, 8vw, 96px); /* Scaled down slightly to fit beautifully side-by-side */
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: -0.05em;
    background: linear-gradient(180deg, var(--text-color) 40%, var(--text-subtle) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 24px);
    font-weight: 500;
    color: var(--text-color);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-cta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

.hero-cta .btn-primary {
    font-size: 17px;
    padding: 12px 26px;
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.product-display-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-product-img {
    max-height: 340px;
    max-width: 90%;
    object-fit: contain;
    filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.15));
    animation: floatAnim 6s ease-in-out infinite;
    z-index: 5;
    transition: var(--transition-smooth);
}

.glow-effect {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(20px);
    z-index: 1;
    pointer-events: none;
    animation: pulseGlow 4s ease-in-out infinite alternate;
}

.hero-specs-banner {
    display: flex;
    justify-content: center;
    gap: clamp(30px, 8vw, 80px);
    border-top: 1px solid var(--gray-border-subtle);
    padding-top: 40px;
    width: 90%;
    max-width: 800px;
}

.banner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.banner-val {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: var(--text-color);
    line-height: 1;
    margin-bottom: 6px;
}

.banner-lbl {
    font-size: 12px;
    color: var(--text-subtle);
    max-width: 140px;
}

/* Floating Animation Keyframe */
@keyframes floatAnim {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1.5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 0.9; }
}

/* -------------------------------------------------------------
 * Color Switcher Section
 * ------------------------------------------------------------- */
.switcher-section {
    background-color: var(--bg-subtle);
    border-top: 1px solid var(--gray-border-subtle);
}

.switcher-showcase {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.switcher-visual {
    position: relative;
    background: radial-gradient(circle at center, #ffffff 0%, var(--bg-subtle) 100%);
    border: 1px solid var(--gray-border-subtle);
    border-radius: 28px;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.switcher-img {
    max-height: 360px;
    object-fit: contain;
    filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.15));
    z-index: 5;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.switcher-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(209, 213, 219, 0.15) 0%, transparent 70%);
    filter: blur(25px);
    z-index: 1;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.switcher-controls {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.color-details {
    border-left: 2px solid var(--gray-border);
    padding-left: 24px;
}

.color-label-eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-subtle);
    display: block;
    margin-bottom: 6px;
}

.color-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.color-description {
    font-size: 15px;
    color: var(--text-subtle);
}

.color-dots-container {
    display: flex;
    gap: 16px;
}

.color-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--dot-color);
    border: 3px solid var(--bg-color);
    outline: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-quick);
}
.color-dot:hover {
    transform: scale(1.1);
}
.color-dot.active {
    outline: 2px solid var(--text-color);
    transform: scale(1.05);
}

.material-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mat-feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.mat-icon {
    font-size: 24px;
    background-color: rgba(0, 0, 0, 0.02);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mat-feature-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.mat-feature-item p {
    font-size: 14px;
    color: var(--text-subtle);
}

/* -------------------------------------------------------------
 * Active Noise Cancellation (ANC) Simulator Section
 * ------------------------------------------------------------- */
.anc-section {
    background-color: var(--bg-color);
}

.anc-simulator-widget {
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-subtle) 100%);
    border: 1px solid var(--gray-border);
    border-radius: 32px;
    padding: clamp(30px, 5vw, 60px);
    margin-top: 40px;
    display: grid;
    grid-template-rows: auto auto;
    gap: 40px;
}

.sim-display {
    position: relative;
    height: 320px;
    background-color: var(--bg-color);
    border-radius: 20px;
    border: 1px solid var(--gray-border-subtle);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.sim-product-container {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.sim-earbud-img {
    height: 180px;
    object-fit: contain;
    z-index: 15;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.15));
}

.soundwave-wrapper {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 120px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
}

.wave-lines {
    width: 90%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

/* Sound Wave Bars */
.wave-bar {
    width: 4px;
    background-color: var(--accent-blue);
    border-radius: 4px;
    height: var(--h);
    opacity: 0.65;
    transition: height 0.15s ease, background-color 0.4s ease, opacity 0.4s ease;
    animation: voiceWave 1.2s ease-in-out infinite alternate;
    animation-delay: var(--d);
}

@keyframes voiceWave {
    0% { transform: scaleY(0.7); }
    100% { transform: scaleY(1.3); }
}

.mode-hud {
    position: absolute;
    bottom: 20px;
    display: flex;
    gap: 20px;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gray-border);
    padding: 8px 16px;
    border-radius: 30px;
    z-index: 20;
}

.hud-mode {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.3;
    color: var(--text-color);
    transition: var(--transition-quick);
}
.hud-mode.active {
    opacity: 1;
}

.hud-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-blue);
    box-shadow: 0 0 8px var(--accent-blue);
}
#hud-transparency .hud-dot {
    background-color: #333;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

.hud-text {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.sim-controls {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.slider-group {
    margin-bottom: 20px;
}
.slider-group:last-of-type {
    margin-bottom: 0;
}

.control-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-subtle);
    margin-bottom: 12px;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 8px;
    background-color: rgba(0, 0, 0, 0.08);
    border-radius: 99px;
    display: flex;
    align-items: center;
}

.slider-wrapper input[type="range"] {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-appearance: none;
    background: transparent;
    cursor: pointer;
    z-index: 20;
}

.slider-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--white-pure);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--gray-border);
    transition: transform 0.1s ease;
}
.slider-wrapper input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.slider-progress {
    position: absolute;
    left: 0;
    height: 100%;
    border-radius: 99px;
    background-color: var(--accent-blue);
    width: 0%;
    z-index: 10;
    pointer-events: none;
    transition: width 0.1s ease, background-color 0.4s ease;
}

.sim-hint-text {
    font-size: 12px;
    text-align: center;
    color: var(--text-muted);
    margin-top: 24px;
}

/* -------------------------------------------------------------
 * Bento Specs Grid
 * ------------------------------------------------------------- */
.bento-section {
    background-color: var(--bg-subtle);
    border-top: 1px solid var(--gray-border-subtle);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 20px;
    margin-top: 40px;
}

.bento-card {
    background-color: var(--bg-color);
    border: 1px solid var(--gray-border-subtle);
    border-radius: 28px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}
.bento-card:hover {
    background-color: var(--white-pure);
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
    transform: translateY(-4px);
}

/* Bento Card Grid Positioning Rules */
.card-large {
    grid-column: span 2;
    grid-row: span 2;
    background: radial-gradient(circle at bottom right, #f0f4f8 0%, var(--bg-color) 60%);
}

.card-medium {
    grid-column: span 1;
    grid-row: span 2;
    justify-content: flex-start;
    gap: 30px;
}

.card-wide {
    grid-column: span 3;
    grid-row: span 1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.card-wide .card-info {
    max-width: 50%;
}

.card-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(0, 113, 227, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.card-info {
    z-index: 10;
}

.card-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-subtle);
    display: block;
    margin-bottom: 6px;
}

.card-title {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
}

.card-desc {
    font-size: 14px;
    color: var(--text-subtle);
    line-height: 1.5;
}

/* Card 1 Specifics: Chip Render */
.card-large {
    grid-column: span 2;
    grid-row: span 2;
    background: radial-gradient(circle at bottom right, #f0f4f8 0%, var(--bg-card) 60%);
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Create split columns inside card */
    align-items: center;
}

.chip-visual-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px; /* Enable 3D depth */
    z-index: 5;
    padding-right: 20px;
}

.h2-chip-float-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    animation: floatChip 6s ease-in-out infinite alternate;
    transform-style: preserve-3d;
}

.h2-chip-mock {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #3a3a3c 0%, #1c1c1e 100%);
    border: 3.5px solid #555;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), inset 0 0 15px rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.15s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: grab;
    user-select: none;
    touch-action: none; /* Prevent scroll while dragging on mobile */
}

.h2-chip-mock.dragging {
    cursor: grabbing;
    transition: none;
    z-index: 100;
}

.chip-inner {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 900;
    color: var(--white-pure);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
    transform: translateZ(25px); /* Push inner text out in 3D */
}
.h2-chip-mock::before {
    content: '';
    position: absolute;
    width: 176px;
    height: 176px;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    pointer-events: none;
}

@keyframes floatChip {
    0% { transform: translateY(0) rotateX(0) rotateY(0); }
    50% { transform: translateY(-8px) rotateX(3deg) rotateY(-3deg); }
    100% { transform: translateY(0) rotateX(0) rotateY(0); }
}

/* Card 2 Specifics: Touch Vol */
.touch-control-sim {
    margin-top: auto;
    height: 220px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 20px;
    border: 1px solid var(--gray-border-subtle);
    padding: 10px;
}

.phone-mockup {
    width: 80px;
    height: 160px;
    border: 2.5px solid #d1d5db;
    background-color: var(--white-pure);
    border-radius: 14px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notch {
    position: absolute;
    top: 4px;
    width: 32px;
    height: 6px;
    background-color: #d1d5db;
    border-radius: 99px;
}

.volume-bar-track {
    width: 12px;
    height: 100px;
    background-color: rgba(0, 0, 0, 0.06);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.volume-bar-fill {
    width: 100%;
    height: 50%;
    background-color: var(--accent-blue);
    border-radius: 6px;
    transition: height 0.2s ease;
}

.volume-icon {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--text-subtle);
}

.earbud-stem-touch-zone {
    width: 48px;
    height: 150px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.005) 100%);
    border: 1px solid var(--gray-border-subtle);
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ns-resize;
    position: relative;
    user-select: none;
    transition: var(--transition-quick);
}
.earbud-stem-touch-zone:hover {
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.04);
}

.drag-handle-hint {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 10px;
    color: var(--text-subtle);
    font-weight: 500;
}

/* Card 3 Specifics: Spectrum Visualizer */
.spectrum-visualizer {
    margin-top: auto;
    height: 100px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 20px;
    border: 1px solid var(--gray-border-subtle);
}

.spectrum-bar {
    width: 12%;
    background-color: var(--accent-blue);
    border-radius: 8px;
    opacity: 0.8;
    height: 10px;
    animation: barPulse 1.5s ease-in-out infinite alternate;
    animation-delay: var(--delay);
}

@keyframes barPulse {
    0% { height: 10%; background-color: var(--accent-blue); }
    100% { height: calc(80% * var(--height-multiplier)); background-color: var(--text-color); }
}

/* Card 4 Specifics: Case Battery */
.case-battery-sim {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(0, 0, 0, 0.02);
    padding: 16px 28px;
    border-radius: 22px;
    border: 1px solid var(--gray-border-subtle);
}

.case-graphic {
    width: 64px;
    height: 80px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.case-lid {
    height: 24px;
    border: 2px solid #8e8e93;
    border-radius: 12px 12px 2px 2px;
}

.case-body {
    flex-grow: 1;
    border: 2px solid #8e8e93;
    border-radius: 2px 2px 14px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-led {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-green);
    transition: var(--transition-quick);
}
.status-led.charge-green {
    background-color: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
}
.status-led.charge-amber {
    background-color: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
}

.battery-status-text {
    display: flex;
    flex-direction: column;
}

.battery-percentage {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
}

.battery-status-label {
    font-size: 12px;
    color: var(--text-subtle);
}

.charge-btn {
    background: none;
    border: 1px solid var(--gray-border);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition-quick);
}
.charge-btn:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* -------------------------------------------------------------
 * Spatial Audio Sandbox Section
 * ------------------------------------------------------------- */
.spatial-section {
    background-color: var(--bg-color);
}

.spatial-sandbox {
    background: radial-gradient(circle at center, #ffffff 0%, var(--bg-subtle) 100%);
    border: 1px solid var(--gray-border);
    border-radius: 32px;
    padding: clamp(30px, 5vw, 60px);
    margin-top: 40px;
}

.sandbox-instructions {
    text-align: center;
    font-size: 15px;
    margin-bottom: 30px;
    color: var(--text-subtle);
}
.sandbox-instructions strong {
    color: var(--text-color);
}

.soundstage-canvas {
    height: 400px;
    border: 1px solid var(--gray-border-subtle);
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    cursor: grab;
}
.soundstage-canvas:active {
    cursor: grabbing;
}

.listener-head {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.head-circle {
    width: 56px;
    height: 56px;
    background-color: #f5f5f7;
    border: 2px solid var(--gray-border);
    border-radius: 50%;
    position: relative;
}

.ear {
    position: absolute;
    width: 6px;
    height: 12px;
    background-color: #d1d5db;
    border-radius: 3px;
    top: 22px;
}
.ear.left { left: -7px; }
.ear.right { right: -7px; }

.face-nose {
    position: absolute;
    width: 4px;
    height: 10px;
    background-color: var(--accent-blue);
    border-radius: 2px;
    top: -5px;
    left: calc(50% - 2px);
}

.listener-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-subtle);
    text-transform: uppercase;
}

/* Interactive Draggable Audio Source */
.draggable-source {
    position: absolute;
    width: 40px;
    height: 40px;
    top: 80px;
    left: calc(50% - 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
}

.source-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-blue);
    background-color: rgba(0, 113, 227, 0.05);
    box-shadow: 0 0 15px var(--accent-blue);
    animation: beaconPulse 2s infinite ease-out;
}

.source-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-blue);
    z-index: 2;
}

.source-label {
    position: absolute;
    bottom: -24px;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
    color: var(--white-pure);
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid var(--gray-border-subtle);
    padding: 3px 8px;
    border-radius: 20px;
    pointer-events: none;
}

/* Sound Stage Wave Ranks */
.ripple-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    border: 1px dashed rgba(0, 113, 227, 0.15);
    width: 300px;
    height: 300px;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: var(--transition-smooth);
}
.ripple-wave.active {
    animation: ripplePulse 4s infinite linear;
}
.ripple-wave.wave-2 { animation-delay: 1.33s; }
.ripple-wave.wave-3 { animation-delay: 2.66s; }

@keyframes beaconPulse {
    0% { transform: scale(0.9); opacity: 0.9; }
    100% { transform: scale(1.4); opacity: 0; }
}

@keyframes ripplePulse {
    0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

.sandbox-toggle-bar {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
}

.spatial-toggle-btn {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--gray-border);
    color: var(--text-subtle);
    padding: 10px 20px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-quick);
}
.spatial-toggle-btn:hover {
    color: var(--text-color);
    background-color: rgba(0, 0, 0, 0.06);
}
.spatial-toggle-btn.active {
    background-color: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
    font-weight: 600;
}

/* -------------------------------------------------------------
 * Compare Model Section
 * ------------------------------------------------------------- */
.compare-section {
    background-color: var(--bg-subtle);
    border-top: 1px solid var(--gray-border-subtle);
}

.compare-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.compare-card {
    background-color: var(--bg-color);
    border: 1px solid var(--gray-border-subtle);
    border-radius: 24px;
    padding: 36px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-smooth);
}
.compare-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 16px 45px rgba(0,0,0,0.04);
}

.compare-card.highlight-card {
    border-color: var(--accent-blue);
    background: radial-gradient(circle at top, rgba(0, 113, 227, 0.02) 0%, var(--bg-color) 70%);
}

.comp-img-wrapper {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.comp-img {
    max-height: 100%;
    object-fit: contain;
}

/* CSS Filters to simulate different models from the same base */
.color-shift-max {
    filter: hue-rotate(180deg) brightness(0.85);
}

.color-shift-lite {
    filter: hue-rotate(45deg) saturate(1.2);
}

.comp-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.comp-tagline {
    font-size: 13px;
    color: var(--text-subtle);
    min-height: 38px;
    margin-bottom: 16px;
    max-width: 220px;
}

.comp-price {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.comp-buy-btn {
    background-color: var(--accent-blue);
    color: var(--white-pure);
    border: none;
    padding: 8px 20px;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-quick);
}
.comp-buy-btn:hover {
    background-color: var(--accent-blue-hover);
}

.compare-card .divider {
    width: 100%;
    height: 1px;
    background-color: var(--gray-border-subtle);
    margin: 28px 0;
}

.comp-specs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
    font-size: 13px;
    color: var(--text-subtle);
}
.comp-specs-list li strong {
    color: var(--text-color);
}

/* -------------------------------------------------------------
 * Shop Fly-Out Cart Drawer
 * ------------------------------------------------------------- */
.cart-slide-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    visibility: hidden;
    transition: visibility 0.4s ease;
}
.cart-slide-drawer.open {
    visibility: visible;
}

.cart-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.cart-slide-drawer.open .cart-overlay {
    opacity: 1;
}

.cart-panel {
    position: absolute;
    top: 0;
    right: -420px;
    width: 420px;
    height: 100%;
    background-color: var(--bg-color);
    border-left: 1px solid var(--gray-border);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 10;
}
.cart-slide-drawer.open .cart-panel {
    right: 0;
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid var(--gray-border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.close-drawer-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-quick);
}
.close-drawer-btn:hover {
    color: var(--accent-blue);
}

.cart-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
}

/* Empty State */
.empty-cart-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    gap: 16px;
}

.empty-cart-icon {
    font-size: 48px;
    opacity: 0.3;
}

.start-shopping-btn {
    margin-top: 10px;
    font-size: 14px;
}

/* Filled State Card */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 16px;
    background-color: var(--bg-card);
    border: 1px solid var(--gray-border-subtle);
    padding: 16px;
    border-radius: 16px;
}

.cart-item-img-wrapper {
    height: 80px;
    background-color: rgba(0, 0, 0, 0.01);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-preview-img {
    max-height: 70px;
    object-fit: contain;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.cart-item-title {
    font-size: 15px;
    font-weight: 600;
}

.cart-item-price {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
}

.cart-item-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: var(--text-subtle);
}

.cart-addon-selection {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--gray-border-subtle);
    padding-top: 10px;
}

.addon-checkbox-label {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.cart-qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid var(--gray-border);
    background: none;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-btn:hover {
    border-color: var(--text-color);
}

.qty-val {
    font-size: 13px;
    font-weight: 700;
}

.remove-item-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-subtle);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition-quick);
}
.remove-item-btn:hover {
    color: #ef4444;
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--gray-border-subtle);
    background-color: var(--bg-subtle);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-subtle);
    margin-bottom: 12px;
}

.shipping-row .free-text {
    color: var(--accent-green);
    font-weight: 600;
}

.divider-row {
    height: 1px;
    background-color: var(--gray-border-subtle);
    margin: 16px 0;
}

.total-row {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 24px;
}
.total-row strong {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-color);
}

.checkout-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkout-btn {
    width: 100%;
    background-color: var(--accent-blue);
    color: var(--white-pure);
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-quick);
}
.checkout-btn:hover {
    background-color: var(--accent-blue-hover);
}

.checkout-subtext {
    font-size: 10px;
    text-align: center;
    color: var(--text-subtle);
}

/* Hide State Class helper */
.hide {
    display: none !important;
}

/* -------------------------------------------------------------
 * Apple Structured Footer
 * ------------------------------------------------------------- */
.global-footer {
    background-color: var(--bg-subtle);
    border-top: 1px solid var(--gray-border);
    padding: 40px 0 24px 0;
    color: var(--text-muted);
    font-size: 12px;
}

.footer-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 22px;
}

.footer-notes {
    border-bottom: 1px solid var(--gray-border);
    padding-bottom: 18px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    line-height: 1.6;
}

.footer-directory {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    border-bottom: 1px solid var(--gray-border);
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.footer-col h3 {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.footer-col .margin-h3 {
    margin-top: 24px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}
.footer-col a:hover {
    color: var(--text-color);
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-shop-hint {
    border-bottom: 1px solid var(--gray-border-subtle);
    padding-bottom: 12px;
}
.footer-shop-hint a {
    color: var(--accent-blue);
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.legal-copyright {
    order: 1;
}

.legal-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    order: 2;
}
.legal-links a {
    color: var(--text-muted);
    border-right: 1px solid var(--gray-border);
    padding-right: 16px;
}
.legal-links a:last-child {
    border-right: none;
    padding-right: 0;
}

.legal-country {
    order: 3;
}
.legal-country a {
    color: var(--text-muted);
}

/* -------------------------------------------------------------
 * Dynamic Scroll Reveals & Interactions
 * ------------------------------------------------------------- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hero elements staggered anim hooks */
.animate-title {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeRevealUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.animate-subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeRevealUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.2s forwards;
}

.animate-cta {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeRevealUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.4s forwards;
}

.animate-fade-in {
    opacity: 0;
    animation: fadeInOnly 1.2s ease 0.6s forwards;
}

@keyframes fadeRevealUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInOnly {
    to { opacity: 1; }
}

/* -------------------------------------------------------------
 * Responsive Media Queries for Mobile/Tablet Compatibility
 * ------------------------------------------------------------- */
@media (max-width: 820px) {
    .nav-menu {
        display: none;
    }
    
    .switcher-showcase {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    
    .card-large, .card-medium, .card-wide {
        grid-column: span 1;
        grid-row: span 1;
        height: auto;
        min-height: 280px;
    }
    
    .card-large {
        grid-template-columns: 1fr;
        padding-bottom: 40px;
    }
    
    .card-large .chip-visual-container {
        padding-right: 0;
        margin-top: 30px;
        height: 220px;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .card-wide {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .card-wide .card-info {
        max-width: 100%;
    }
    
    .case-battery-sim {
        width: 100%;
        justify-content: space-between;
    }
    
    .compare-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-directory {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-legal {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .product-nav {
        padding: 0 16px;
    }
    
    .cart-panel {
        width: 100%;
        right: -100%;
    }
    
    .footer-directory {
        grid-template-columns: 1fr;
    }
    
    .case-battery-sim {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
}

/* -------------------------------------------------------------
 * Shop Catalog Section (mirrorspace-inspired)
 * ------------------------------------------------------------- */
.catalog-section {
    background-color: var(--bg-color);
    border-top: 1px solid var(--gray-border-subtle);
}

.catalog-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.category-tabs {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--gray-border-subtle);
    padding: 6px;
    border-radius: 980px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar for clean look */
}
.category-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    border: none;
    background: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 980px;
    cursor: pointer;
    color: var(--text-subtle);
    transition: var(--transition-quick);
    white-space: nowrap;
}
.tab-btn:hover {
    color: var(--text-color);
}
.tab-btn.active {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.sort-label {
    font-size: 13px;
    color: var(--text-subtle);
    font-weight: 500;
}

.sort-select {
    padding: 8px 36px 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--gray-border);
    background-color: var(--white-pure);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    color: var(--text-color);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    transition: var(--transition-quick);
}
.sort-select:hover {
    border-color: rgba(0, 0, 0, 0.25);
    background-color: var(--bg-subtle);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    width: 100%;
}

.catalog-product-card {
    background-color: var(--white-pure);
    border: 1px solid var(--gray-border-subtle);
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    height: 380px;
    transition: var(--transition-smooth);
}
.catalog-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
}

.catalog-product-card.loading-state {
    grid-column: 1 / -1;
    height: 200px;
    align-items: center;
    justify-content: center;
    color: var(--text-subtle);
}

.card-cat-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: var(--bg-subtle);
    color: var(--text-subtle);
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 10;
}

.card-img-wrapper {
    position: relative;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    margin-top: 10px;
    z-index: 5;
}

.card-product-img {
    max-height: 100%;
    max-width: 90%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.catalog-product-card:hover .card-product-img {
    transform: scale(1.08) rotate(1.5deg);
}

.card-glow {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.03) 0%, transparent 70%);
    filter: blur(15px);
    pointer-events: none;
    z-index: 1;
}

.card-meta {
    margin-top: auto;
    z-index: 5;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.star-icon {
    color: #f59e0b;
    font-size: 12px;
}

.sales-count {
    color: var(--text-subtle);
    font-weight: 400;
}

.product-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
}

.current-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-color);
}

.original-price {
    font-size: 13px;
    color: var(--text-subtle);
    text-decoration: line-through;
    font-weight: 400;
}

.card-buy-btn {
    width: 100%;
    border: none;
    background-color: var(--bg-subtle);
    color: var(--text-color);
    font-size: 13px;
    font-weight: 600;
    padding: 10px;
    border-radius: 14px;
    cursor: pointer;
    transition: var(--transition-quick);
}
.catalog-product-card:hover .card-buy-btn {
    background-color: var(--text-color);
    color: var(--bg-color);
}
.card-buy-btn:active {
    transform: scale(0.97);
}

/* Responsive Overrides for Catalog Controls */
@media (max-width: 768px) {
    .catalog-controls-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .category-tabs {
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        padding-bottom: 6px;
    }
    
    .sort-wrapper {
        justify-content: space-between;
    }
}

/* -------------------------------------------------------------
 * Products Page View Specific Layout
 * ------------------------------------------------------------- */
.products-page-view {
    background-color: var(--bg-color);
}

.products-main-content {
    margin-top: var(--nav-height);
    min-height: calc(100vh - var(--nav-height));
    padding-top: 40px;
}

.products-store-header {
    margin-bottom: 50px;
    text-align: left;
    max-width: 800px;
}
.products-store-header .section-title {
    background: linear-gradient(180deg, var(--text-color) 30%, var(--text-subtle) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 10px;
    font-weight: 800;
}

/* Ensure no border at the top of the catalog section when on the products page */
.products-page-view .catalog-section {
    border-top: none;
    padding-top: 20px;
}

/* Nav Menu Transitions */
.products-page-view .global-nav .nav-menu a {
    transition: color 0.2s ease;
}

/* -------------------------------------------------------------
 * Collaboration & Merchandise Section Styles
 * ------------------------------------------------------------- */
.collab-merch-section {
    background-color: var(--bg-subtle);
    border-top: 1px solid var(--gray-border-subtle);
    padding: clamp(60px, 8vw, 100px) 0;
}

.collab-split-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.collab-info {
    display: flex;
    flex-direction: column;
}

.collab-features-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.collab-feat-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feat-icon {
    font-size: 28px;
    background: rgba(0, 113, 227, 0.08);
    border-radius: 12px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feat-details h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-color);
}

.feat-details p {
    font-size: 14px;
    color: var(--text-subtle);
    line-height: 1.5;
}

.collab-cta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-whatsapp-collab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #25d366;
    color: white;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 99px;
    text-decoration: none;
    transition: var(--transition-quick);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-collab:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.wa-icon {
    flex-shrink: 0;
}

.cta-hint {
    font-size: 13px;
    color: var(--text-muted);
}

/* Visual Column */
.collab-visual {
    display: flex;
    justify-content: center;
}

.collab-glass-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 40px;
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.06);
    transition: var(--transition-smooth);
}

.collab-glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.mock-engrave-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.collab-product-showcase {
    max-height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.15));
}

.engraved-text-overlay {
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.45);
    background: rgba(0, 0, 0, 0.45);
    border: 1.5px dashed rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 6px;
    pointer-events: none;
    text-transform: uppercase;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
    animation: pulseBorder 2s infinite ease-in-out;
}

@keyframes pulseBorder {
    0% { border-color: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.35); }
    50% { border-color: rgba(255, 255, 255, 0.5); color: rgba(255, 255, 255, 0.6); }
    100% { border-color: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.35); }
}

.collab-badge {
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.1) 0%, rgba(0, 113, 227, 0.02) 100%);
    border: 1px solid rgba(0, 113, 227, 0.2);
    border-radius: 20px;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
}

.badge-num {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 900;
    color: var(--accent-blue);
}

.badge-lbl {
    font-size: 12px;
    color: var(--text-subtle);
    font-weight: 500;
}

/* Media Query Responsive for Collab Section */
@media (max-width: 968px) {
    .collab-split-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .collab-glass-card {
        max-width: 100%;
    }
}

/* -------------------------------------------------------------
 * Premium Product Detail Modal Styles
 * ------------------------------------------------------------- */
.product-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.product-modal-backdrop.open {
    visibility: visible;
    opacity: 1;
}

.product-modal-container {
    background: var(--bg-color);
    border: 1px solid var(--gray-border-subtle);
    border-radius: 32px;
    width: 90%;
    max-width: 960px;
    height: 85vh;
    max-height: 720px;
    position: relative;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-modal-backdrop.open .product-modal-container {
    transform: scale(1);
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: var(--transition-quick);
}
.close-modal-btn:hover {
    color: var(--accent-blue);
}

.product-modal-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    height: 100%;
    width: 100%;
}

.product-modal-gallery {
    padding: 40px;
    border-right: 1px solid var(--gray-border-subtle);
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.01) 0%, rgba(0, 0, 0, 0.03) 100%);
    justify-content: center;
    align-items: center;
    height: 100%;
}

.main-image-viewport {
    width: 100%;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--gray-border-subtle);
    border-radius: 20px;
    padding: 20px;
    overflow: hidden;
}

.main-image-viewport img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.15));
    transition: opacity 0.25s ease;
}

.thumbnail-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    width: 100%;
    padding: 6px 0;
    justify-content: center;
}

.thumbnail-strip::-webkit-scrollbar {
    height: 4px;
}
.thumbnail-strip::-webkit-scrollbar-thumb {
    background: var(--gray-border);
    border-radius: 99px;
}

.thumb-img {
    width: 54px;
    height: 54px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: var(--bg-card);
    cursor: pointer;
    object-fit: contain;
    padding: 4px;
    transition: var(--transition-quick);
}
.thumb-img:hover {
    border-color: var(--gray-border);
}
.thumb-img.active {
    border-color: var(--accent-blue);
}

.product-modal-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

.modal-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-blue);
    margin-bottom: 8px;
}

.modal-title {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 12px;
}

.modal-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-subtle);
    margin-bottom: 16px;
}

.modal-sales-count {
    color: var(--text-muted);
}

.modal-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-border-subtle);
}

.modal-current-price {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--text-color);
}

.modal-original-price {
    font-family: var(--font-display);
    font-size: 16px;
    text-decoration: line-through;
    color: var(--text-muted);
}

.modal-description-section {
    flex-grow: 1;
    margin-bottom: 30px;
}

.modal-description-section h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
}

.modal-description-body {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-subtle);
    white-space: pre-wrap;
}

.modal-cta-row {
    position: sticky;
    bottom: 0;
    background: var(--bg-color);
    padding-top: 15px;
    border-top: 1px solid var(--gray-border-subtle);
}

.modal-buy-btn {
    width: 100%;
    background-color: var(--accent-blue);
    color: var(--white-pure);
    border: none;
    padding: 14px 28px;
    border-radius: 99px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-quick);
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.25);
}

.modal-buy-btn:hover {
    background-color: var(--accent-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.35);
}

/* Media Query Responsive for Modal */
@media (max-width: 768px) {
    .product-modal-container {
        height: 90vh;
        max-height: none;
        border-radius: 24px;
    }
    
    .product-modal-content {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }
    
    .product-modal-gallery {
        border-right: none;
        border-bottom: 1px solid var(--gray-border-subtle);
        padding: 30px;
    }
    
    .main-image-viewport {
        height: 240px;
    }
    
    .product-modal-info {
        padding: 30px;
        overflow-y: visible;
    }
}
