/* ==========================================================================
   THE COSMO PACKAGING - B2B DESIGN SYSTEM (LIGHT LUXURY INDUSTRIAL AESTHETIC)
   ========================================================================== */

/* --- Import Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Outfit:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');
@import url('product-imagery.css');

:root {
    /* --- Premium Monochromatic Light Tokens --- */
    --bg-base: #fafaf9;          /* Elegant Alabaster White */
    --bg-surface: #ffffff;       /* Pure White Cards */
    --bg-card: #f4f4f2;          /* Soft Warm Sand */
    --bg-dark-accent: #eaeaea;   /* Slightly Deeper Sand/Grey */
    
    --text-primary: #1d1d1f;     /* Apple-style Matte Charcoal */
    --text-secondary: #515154;   /* Warm Mid-Grey */
    --text-muted: #8e8e93;       /* Cool Slate Gray */
    --text-light: #ffffff;
    
    --border-light: rgba(29, 29, 31, 0.08);
    --border-accent: rgba(29, 29, 31, 0.15);
    --border-technical: rgba(29, 29, 31, 0.25);
    
    --accent-titanium: #8e8e93;  /* Brushed Slate */
    --accent-steel: #5c5c60;     /* Dark Industrial Steel */
    --accent-red: #d9383a;       /* Dieline Fold/Crease Indicator */
    --accent-blue: #0071e3;      /* Dieline Bleed Indicator */
    --accent-green: #34c759;     /* Dieline Dimensions Indicator */
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-ui: 'Outfit', sans-serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.06);
    --shadow-depth: 0 30px 60px rgba(0, 0, 0, 0.1);
    
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s ease;
}

/* --- Global Reset & Architecture --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* --- Industrial Drafting Grid Overlay --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(var(--border-light) 1px, transparent 1px),
        linear-gradient(to right, rgba(29, 29, 31, 0.01) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(29, 29, 31, 0.01) 1px, transparent 1px);
    background-size: 24px 24px, 120px 120px, 120px 120px;
    z-index: -2;
    pointer-events: none;
    opacity: 0.85;
}

/* --- Typography System --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: -0.02em;
}

p {
    font-family: var(--font-sans);
    color: var(--text-secondary);
    line-height: 1.6;
}

.serif-italics {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
}

.technical-label {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

/* --- Layout Wrappers & Sections --- */
.section-padding {
    padding: 8rem 5%;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 5rem 1.5rem;
    }
}

.container-wide {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem auto;
}

.section-header h1,
.section-header h2 {
    font-size: 3rem;
    line-height: 1.15;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

@media (max-width: 600px) {
    .section-header h1,
    .section-header h2 { font-size: 2.2rem; }
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* --- Glassmorphic / Industrial Cards --- */
.luxury-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.luxury-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid transparent;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(29, 29, 31, 0.05), transparent) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
}

.luxury-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-premium);
    border-color: var(--border-accent);
}

/* --- Premium Buttons --- */
.btn-luxury {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--text-primary);
    color: var(--text-light);
    border: 1px solid var(--text-primary);
    border-radius: 50px;
    padding: 1rem 2.25rem;
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(29, 29, 31, 0.1);
}

.btn-luxury:hover {
    background: transparent;
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(29, 29, 31, 0.15);
}

.btn-luxury-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-technical);
    border-radius: 50px;
    padding: 1rem 2.25rem;
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-luxury-outline:hover {
    background: var(--bg-card);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

/* --- Header / Navigation Bar --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    background: rgba(250, 250, 249, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
}

header.scrolled {
    padding: 1rem 5%;
    box-shadow: var(--shadow-subtle);
}

.brand-logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-box {
    width: 42px;
    height: 32px;
    border: 1px solid var(--text-primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-ui);
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    position: relative;
    overflow: hidden;
}

.logo-box::before {
    content: '';
    position: absolute;
    inset: 5px 7px 7px 6px;
    border: 1px solid currentColor;
    border-radius: 2px;
    opacity: 0.28;
}

.logo-box::after {
    content: '';
    position: absolute;
    right: 6px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-top: 1px solid #d9c79f;
    border-right: 1px solid #d9c79f;
    transform: skew(-14deg);
    opacity: 0.8;
}

.brand-name {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

@media (max-width: 900px) {
    nav { display: none; }
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition-fast);
}

nav a:hover, nav a.active {
    color: var(--text-primary);
}

/* Products dropdown + Get Quote nav CTA */
.nav-dropdown {
    position: relative;
    padding: 1rem 0;
    margin: -1rem 0;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition-fast);
}

.nav-dropdown-toggle::after {
    content: '▾';
    font-size: 0.65rem;
    opacity: 0.7;
}

.nav-dropdown.is-active .nav-dropdown-toggle,
.nav-dropdown.is-open .nav-dropdown-toggle,
.nav-dropdown-toggle:hover {
    color: var(--text-primary);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% - 0.1rem);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: var(--shadow-premium);
    padding: 0.5rem 0;
    z-index: 1100;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -1rem;
    height: 1rem;
}

.nav-dropdown.is-open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: var(--bg-card);
}

.nav-dropdown--style .nav-dropdown-menu {
    left: auto;
    right: -60px;
    transform: none;
    width: min(720px, calc(100vw - 2rem));
    padding: 1rem 1.1rem;
}

.nav-style-menu {
    gap: 0.85rem;
}

.nav-dropdown.is-open .nav-style-menu,
.nav-dropdown:hover .nav-style-menu,
.nav-dropdown:focus-within .nav-style-menu {
    display: block;
}

.nav-style-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-light);
}

.nav-style-head strong {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 500;
    color: var(--text-primary);
}

.nav-style-head a {
    padding: 0.45rem 0.7rem !important;
    border-radius: 8px;
    color: #fffaf5 !important;
    background: #4f5f45;
    white-space: nowrap;
}

.nav-style-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    padding-top: 0.85rem;
}

.nav-style-list span {
    display: block;
    margin-bottom: 0.45rem;
    font-family: var(--font-ui);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hover-olive-dark);
}

.nav-style-list a {
    display: block;
    padding: 0.36rem 0 !important;
    white-space: normal !important;
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.25;
}

.nav-style-list a:hover,
.nav-style-list a.active {
    background: transparent;
    color: var(--hover-olive-dark);
}

@media (max-width: 980px) {
    .nav-dropdown--style .nav-dropdown-menu {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    .nav-style-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.nav-cta-get-quote {
    padding: 0.5rem 1.25rem !important;
    font-size: 0.75rem !important;
    color: var(--text-light) !important;
    letter-spacing: 0.12em !important;
}

/* Artwork guide — simple Get Quote block */
.quick-quote-section {
    background: var(--text-primary);
    color: var(--text-light);
    padding: 5rem 5%;
}

.quick-quote-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.quick-quote-inner h2 {
    color: #ffffff;
    font-size: 2.5rem;
    margin: 0.75rem 0 1rem;
}

.quick-quote-inner p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.quick-quote-form {
    text-align: left;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 2rem;
}

.quick-quote-form .quote-label {
    color: rgba(255, 255, 255, 0.85);
}

.quick-quote-form .quote-input,
.quick-quote-form textarea.quote-input {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    width: 100%;
    resize: vertical;
    min-height: 88px;
}

.quick-quote-alert {
    display: none;
    background: rgba(217, 56, 58, 0.15);
    border: 1px solid rgba(217, 56, 58, 0.4);
    color: #ffb4b4;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.quick-quote-success {
    display: none;
    text-align: center;
    padding: 2rem 0;
}

.quick-quote-success p {
    color: rgba(255, 255, 255, 0.8);
}

/* --- Dynamic moving ticker --- */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem 0;
}

.ticker {
    display: flex;
    width: 200%;
    animation: tickerLoop 30s linear infinite;
}

.ticker:hover {
    animation-play-state: paused;
}

.ticker-item {
    width: 25%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.75;
    transition: var(--transition-fast);
}

.ticker-item:hover {
    color: var(--text-primary);
    opacity: 1;
}

@keyframes tickerLoop {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* ==========================================================================
   PURE 3D CSS PACKAGING ENGINE
   ========================================================================== */

.perspective-container {
    perspective: 1200px;
    width: 320px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: grab;
}

.perspective-container:active {
    cursor: grabbing;
}

.box-3d {
    width: 120px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-20deg) rotateY(35deg);
    transition: transform 0.1s ease-out;
}

.box-3d.animate-float {
    animation: boxFloat 6s ease-in-out infinite alternate;
}

@keyframes boxFloat {
    0% { transform: rotateX(-15deg) rotateY(30deg) translateY(0); }
    100% { transform: rotateX(-25deg) rotateY(45deg) translateY(-15px); }
}

/* --- Box Faces --- */
.face {
    position: absolute;
    background: #ffffff;
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
    backface-visibility: hidden;
}

/* Premium Matte Finish reflections */
.face::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

/* --- Dimensions Mapping for STE/RTE boxes (120x200x80) --- */
.face.front {
    width: 120px;
    height: 200px;
    transform: translateZ(40px);
}

.face.back {
    width: 120px;
    height: 200px;
    transform: rotateY(180deg) translateZ(40px);
}

.face.left {
    width: 80px;
    height: 200px;
    transform: rotateY(-90deg) translateZ(40px);
    left: 20px;
}

.face.right {
    width: 80px;
    height: 200px;
    transform: rotateY(90deg) translateZ(40px);
    left: 20px;
}

.face.top {
    width: 120px;
    height: 80px;
    transform: rotateX(90deg) translateZ(40px);
    top: 60px;
}

.face.bottom {
    width: 120px;
    height: 80px;
    transform: rotateX(-90deg) translateZ(160px);
    top: 60px;
}

/* Premium industrial details on box faces */
.box-logo {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    color: var(--text-primary);
    text-transform: uppercase;
    font-weight: 600;
}

.box-tech-notes {
    position: absolute;
    bottom: 15px;
    font-family: var(--font-ui);
    font-size: 0.45rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* --- 3D Unfolding Animation to Flat Dieline (Interactive Mode) --- */
.box-3d.flat-layout {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) !important;
}

.box-3d.flat-layout .face {
    box-shadow: none;
    background: transparent;
    border: 1px solid var(--text-primary);
}

.box-3d.flat-layout .face.front {
    transform: translateZ(0);
}
.box-3d.flat-layout .face.back {
    transform: translateZ(0) translateX(-120px) rotateY(0deg);
}
.box-3d.flat-layout .face.left {
    transform: translateZ(0) translateX(-40px) rotateY(0deg);
    left: 0;
}
.box-3d.flat-layout .face.right {
    transform: translateZ(0) translateX(120px) rotateY(0deg);
    left: 0;
}
.box-3d.flat-layout .face.top {
    transform: translateZ(0) translateY(-80px) rotateX(0deg);
    top: 0;
}
.box-3d.flat-layout .face.bottom {
    transform: translateZ(0) translateY(200px) rotateX(0deg);
    top: 0;
}

.mailer-3d.flat-layout {
    transform: rotateX(0deg) rotateY(0deg) scale(0.9) !important;
    animation: none !important;
    opacity: 0.25;
}

@media (max-width: 700px) {
    .comparison-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Final viewer override: keep real 3D and Dieline controls visible */
body[data-page="tuck-end"] .dual-view-toggle,
body[data-page="mailer"] .dual-view-toggle,
body[data-page="mylar"] .dual-view-toggle {
    display: inline-flex !important;
}

body[data-page="tuck-end"] .viewer-panel,
body[data-page="mailer"] .viewer-panel,
body[data-page="mylar"] .viewer-panel {
    background: #fffaf5 !important;
    border: 1px solid rgba(64, 73, 58, 0.12) !important;
    border-radius: 18px !important;
    box-shadow: 0 26px 64px rgba(36, 49, 31, 0.11) !important;
}

body[data-page="tuck-end"] .box-stage,
body[data-page="mailer"] .box-stage,
body[data-page="mylar"] .box-stage {
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.95) 0 18%, transparent 46%),
        linear-gradient(145deg, #fffaf5 0%, #eee6dc 58%, #d7cabc 100%) !important;
}

body[data-page="tuck-end"] .box-stage::before,
body[data-page="mailer"] .box-stage::before,
body[data-page="mylar"] .box-stage::before,
body[data-page="tuck-end"] .box-stage::after,
body[data-page="mailer"] .box-stage::after,
body[data-page="mylar"] .box-stage::after,
body[data-page="tuck-end"] .box-3d-view::before,
body[data-page="mailer"] .box-3d-view::before,
body[data-page="mylar"] .box-3d-view::before,
body[data-page="tuck-end"] .box-3d-view::after,
body[data-page="mailer"] .box-3d-view::after,
body[data-page="mylar"] .box-3d-view::after {
    content: none !important;
}

body[data-page="tuck-end"] .perspective-container,
body[data-page="mailer"] .perspective-container,
body[data-page="mylar"] .perspective-container {
    display: flex !important;
}

body[data-page="tuck-end"] .box-3d-view,
body[data-page="mailer"] .box-3d-view,
body[data-page="mylar"] .box-3d-view {
    display: flex !important;
}

body[data-page="tuck-end"] .box-3d-view.hidden,
body[data-page="mailer"] .box-3d-view.hidden,
body[data-page="mylar"] .box-3d-view.hidden {
    display: none !important;
}

body[data-page="tuck-end"] .dieline-view,
body[data-page="mailer"] .dieline-view,
body[data-page="mylar"] .dieline-view {
    display: none !important;
}

body[data-page="tuck-end"] .dieline-view.active,
body[data-page="mailer"] .dieline-view.active,
body[data-page="mylar"] .dieline-view.active {
    display: flex !important;
}

/* ==========================================================================
   Launch-ready product viewer: professional 3D + dieline controls
   ========================================================================== */
body[data-page="tuck-end"] .dual-view-toggle,
body[data-page="mailer"] .dual-view-toggle,
body[data-page="mylar"] .dual-view-toggle {
    display: inline-flex !important;
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    z-index: 5;
    background: rgba(255, 250, 245, 0.9);
    border: 1px solid rgba(64, 73, 58, 0.16);
    border-radius: 12px;
    padding: 0.35rem;
    box-shadow: 0 16px 34px rgba(36, 49, 31, 0.1);
    backdrop-filter: blur(12px);
}

body[data-page="tuck-end"] .dual-view-toggle .view-btn,
body[data-page="mailer"] .dual-view-toggle .view-btn,
body[data-page="mylar"] .dual-view-toggle .view-btn {
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text-secondary);
    padding: 0.7rem 1rem;
    font-family: var(--font-ui);
    font-size: 0.76rem;
    font-weight: 700;
}

body[data-page="tuck-end"] .dual-view-toggle .view-btn.active,
body[data-page="mailer"] .dual-view-toggle .view-btn.active,
body[data-page="mylar"] .dual-view-toggle .view-btn.active,
body[data-page="tuck-end"] .dual-view-toggle .view-btn:hover,
body[data-page="mailer"] .dual-view-toggle .view-btn:hover,
body[data-page="mylar"] .dual-view-toggle .view-btn:hover {
    background: #3f4c37;
    color: #fffaf5;
}

body[data-page="tuck-end"] .viewer-panel,
body[data-page="mailer"] .viewer-panel,
body[data-page="mylar"] .viewer-panel {
    background: #fffaf5 !important;
    border: 1px solid rgba(64, 73, 58, 0.12) !important;
    border-radius: 18px !important;
    box-shadow: 0 26px 64px rgba(36, 49, 31, 0.11) !important;
    overflow: hidden;
}

body[data-page="tuck-end"] .box-stage,
body[data-page="mailer"] .box-stage,
body[data-page="mylar"] .box-stage {
    min-height: 540px;
    border: 0 !important;
    border-radius: 0 !important;
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.95) 0 18%, transparent 46%),
        linear-gradient(145deg, #fffaf5 0%, #eee6dc 58%, #d7cabc 100%) !important;
    box-shadow: none !important;
}

body[data-page="tuck-end"] .box-stage::before,
body[data-page="mailer"] .box-stage::before,
body[data-page="mylar"] .box-stage::before,
body[data-page="tuck-end"] .box-stage::after,
body[data-page="mailer"] .box-stage::after,
body[data-page="mylar"] .box-stage::after,
body[data-page="tuck-end"] .box-3d-view::before,
body[data-page="mailer"] .box-3d-view::before,
body[data-page="mylar"] .box-3d-view::before,
body[data-page="tuck-end"] .box-3d-view::after,
body[data-page="mailer"] .box-3d-view::after,
body[data-page="mylar"] .box-3d-view::after {
    content: none !important;
}

body[data-page="tuck-end"] .box-stage-crosshairs,
body[data-page="mailer"] .box-stage-crosshairs,
body[data-page="mylar"] .box-stage-crosshairs,
body[data-page="tuck-end"] .stage-corner-mark,
body[data-page="mailer"] .stage-corner-mark,
body[data-page="mylar"] .stage-corner-mark,
body[data-page="tuck-end"] .stage-shadow,
body[data-page="mailer"] .stage-shadow,
body[data-page="mylar"] .stage-shadow {
    display: block !important;
    opacity: 0.18;
}

body[data-page="tuck-end"] .stage-drag-hint,
body[data-page="mailer"] .stage-drag-hint,
body[data-page="mylar"] .stage-drag-hint {
    display: none !important;
}

body[data-page="tuck-end"] .box-3d-view,
body[data-page="mailer"] .box-3d-view,
body[data-page="mylar"] .box-3d-view {
    position: relative;
    inset: auto;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 470px;
    padding-top: 3.8rem;
}

body[data-page="tuck-end"] .box-3d-view.hidden,
body[data-page="mailer"] .box-3d-view.hidden,
body[data-page="mylar"] .box-3d-view.hidden {
    display: none !important;
}

body[data-page="tuck-end"] .perspective-container,
body[data-page="mailer"] .perspective-container,
body[data-page="mylar"] .perspective-container {
    display: flex !important;
}

body[data-page="tuck-end"] .dieline-view,
body[data-page="mailer"] .dieline-view,
body[data-page="mylar"] .dieline-view {
    display: none !important;
    min-height: 470px;
    padding: 5.5rem 1.25rem 2rem;
    align-items: center;
    justify-content: center;
}

body[data-page="tuck-end"] .dieline-view.active,
body[data-page="mailer"] .dieline-view.active,
body[data-page="mylar"] .dieline-view.active {
    display: flex !important;
}

body[data-page="tuck-end"] .dieline-svg,
body[data-page="mailer"] .dieline-svg,
body[data-page="mylar"] .dieline-svg {
    background: #fffdf8;
    border: 1px solid rgba(64, 73, 58, 0.12);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 18px 42px rgba(36, 49, 31, 0.08);
}

body[data-page="tuck-end"] .stage-label,
body[data-page="mailer"] .stage-label,
body[data-page="mylar"] .stage-label {
    position: absolute;
    right: 1.2rem;
    left: auto;
    top: 1.35rem;
    bottom: auto;
    background: rgba(255, 250, 245, 0.9);
    color: #33402d !important;
    border: 1px solid rgba(64, 73, 58, 0.14);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    width: auto;
    z-index: 5;
}

body[data-page="tuck-end"] .product-section-inner,
body[data-page="mailer"] .product-section-inner,
body[data-page="mylar"] .product-section-inner {
    align-items: center;
}

.viewer-size-card {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.viewer-size-card span {
    display: block;
    background: #f2ece4;
    border: 1px solid rgba(64, 73, 58, 0.12);
    border-radius: 10px;
    padding: 0.8rem;
    color: #596251;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    line-height: 1.35;
}

.viewer-size-card .viewer-size-note {
    grid-column: 1 / -1;
    background: #fbf7f0;
    border-style: dashed;
}

.viewer-size-card strong {
    display: block;
    color: #24311f;
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.discount-band,
.service-faq-section,
.design-showcase-section {
    padding: 5.25rem 5%;
}

.discount-panel {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(31, 55, 29, 0.94) 0%, rgba(31, 55, 29, 0.78) 48%, rgba(31, 55, 29, 0.34) 100%),
        var(--img-sample) center / cover no-repeat;
    color: #fffaf5;
    border-radius: 10px;
    padding: clamp(2rem, 4.4vw, 3.6rem);
    box-shadow: 0 28px 72px rgba(36, 49, 31, 0.18);
    border: 1px solid rgba(255, 250, 245, 0.14);
    min-height: 300px;
}

.discount-panel h2 {
    color: #fffaf5;
    font-size: clamp(2rem, 3.8vw, 3.8rem);
    line-height: 1.03;
    margin-bottom: 0.8rem;
}

.discount-panel p {
    color: rgba(255, 250, 245, 0.76);
    max-width: 620px;
}

.discount-panel .btn-luxury {
    box-shadow: 0 16px 34px rgba(14, 24, 12, 0.22);
}

.discount-code {
    display: inline-flex;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 250, 245, 0.24);
    border-radius: 999px;
    padding: 0.5rem 0.9rem;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: #fffaf5;
}

.service-faq-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
    gap: 1.25rem;
    align-items: stretch;
}

.service-list {
    display: grid;
    gap: 0.75rem;
}

.service-list article,
.design-filter button {
    background: #fffaf5;
    border: 1px solid rgba(64, 73, 58, 0.12);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: var(--shadow-subtle);
}

.service-faq-grid > div:first-child {
    position: relative;
    min-height: 100%;
    border-radius: 10px;
    padding: clamp(1.6rem, 3vw, 2.4rem);
    background:
        linear-gradient(180deg, rgba(255, 250, 245, 0.76), rgba(247, 243, 238, 0.94)),
        var(--img-mailer-rigid) center / cover no-repeat;
    border: 1px solid rgba(64, 73, 58, 0.12);
    box-shadow: 0 18px 48px rgba(36, 49, 31, 0.08);
}

.service-faq-grid > div:first-child h2 {
    font-size: clamp(2rem, 3vw, 3.2rem);
    max-width: 420px;
}

.service-faq-grid > div:first-child p {
    max-width: 430px;
}

.service-list article {
    display: grid;
    grid-template-columns: 0.82fr 1.4fr;
    gap: 1rem;
    align-items: center;
    border-radius: 10px;
    box-shadow: none;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.service-list article:hover {
    transform: translateX(4px);
    border-color: rgba(79, 95, 69, 0.26);
    background: #fffdf8;
}

.service-list h3 {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.service-list p {
    font-size: 0.86rem;
}

.design-stage {
    max-width: 1180px;
    margin: 0 auto;
}

.design-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.design-filter {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.design-filter button {
    padding: 0.75rem 1rem;
    font-family: var(--font-ui);
    font-weight: 700;
    color: #596251;
}

.design-filter button.active,
.design-filter button:hover {
    background: #3f4c37;
    color: #fffaf5;
}

.sample-carousel {
    position: relative;
}

.sample-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    border-radius: 10px;
    background: #fffaf5;
    border: 1px solid rgba(64, 73, 58, 0.12);
    box-shadow: 0 18px 44px rgba(36, 49, 31, 0.08);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.sample-showcase-grid {
    display: grid;
    grid-template-columns: 1.15fr repeat(3, 0.95fr);
    gap: 1rem;
}

.sample-showcase-stack {
    display: grid;
    gap: 1rem;
}

.showcase-lane {
    display: grid;
    grid-template-columns: minmax(250px, 0.34fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.showcase-lane__intro {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    padding: 1.45rem;
    background:
        linear-gradient(180deg, rgba(255, 250, 245, 0.82), rgba(255, 250, 245, 0.96)),
        var(--img-tuck) center / cover no-repeat;
    border: 1px solid rgba(64, 73, 58, 0.12);
    box-shadow: 0 18px 44px rgba(36, 49, 31, 0.06);
}

.showcase-lane__intro h3 {
    font-size: 1.8rem;
    margin: 0.65rem 0 0.65rem;
}

.showcase-lane__intro p {
    font-size: 0.9rem;
    margin-bottom: 1.1rem;
}

.showcase-lane__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.showcase-lane .sample-card {
    min-height: 315px;
    box-shadow: 0 16px 38px rgba(36, 49, 31, 0.07);
    background: rgba(255, 250, 245, 0.96);
}

.showcase-lane .sample-render {
    min-height: 165px;
}

.showcase-lane .sample-render::before {
    content: '';
    position: absolute;
    inset: 0.75rem;
    border: 1px solid rgba(255, 250, 245, 0.45);
    z-index: 1;
    pointer-events: none;
}

.showcase-lane--product .showcase-lane__intro {
    background:
        linear-gradient(180deg, rgba(38, 56, 32, 0.93), rgba(38, 56, 32, 0.97)),
        var(--img-sample) center / cover no-repeat;
    color: #fffaf5;
}

.showcase-lane--product .showcase-lane__intro h3,
.showcase-lane--product .showcase-lane__intro p,
.showcase-lane--product .showcase-lane__intro .section-tag,
.showcase-lane--product .showcase-lane__intro .grid-card-action {
    color: #fffaf5 !important;
}

.showcase-lane--product .showcase-lane__intro p {
    opacity: 0.76;
}

.sample-card:hover,
.sample-card:focus-visible {
    transform: translateY(-5px);
    border-color: rgba(79, 95, 69, 0.28);
    box-shadow: 0 24px 58px rgba(36, 49, 31, 0.14);
}

.showcase-lane__cards:has(.sample-card.is-active) .sample-card.is-muted {
    opacity: 0.72;
    transform: scale(0.985);
}

.sample-card.is-active {
    border-color: rgba(79, 95, 69, 0.34);
    box-shadow: 0 26px 62px rgba(36, 49, 31, 0.16);
}

.sample-card.is-active .sample-render {
    filter: saturate(1.08) contrast(1.04);
}

.sample-card-featured {
    grid-row: span 2;
    min-height: 520px;
}

.sample-render {
    min-height: 210px;
    background: var(--sample-bg, var(--img-hero)) center / cover no-repeat;
    position: relative;
}

.sample-render::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(29, 29, 31, 0.01), rgba(29, 29, 31, 0.18));
    pointer-events: none;
}

.sample-card-featured .sample-render {
    min-height: 310px;
}

.sample-card-dark {
    background: #fffaf5;
}

.sample-card-dark .sample-copy h3,
.sample-card-dark .sample-copy p,
.sample-card-dark .sample-copy span {
    color: inherit;
}

.sample-card-dark .sample-copy p {
    opacity: 1;
}

.sample-card-dark .sample-copy span {
    color: #637056;
}

.sample-copy {
    padding: 1.25rem 1.3rem 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sample-copy span {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #637056;
    margin-bottom: 0.55rem;
}

.sample-copy h3 {
    font-size: 1.45rem;
    margin-bottom: 0.35rem;
}

.sample-copy p {
    font-size: 0.88rem;
    margin-bottom: 0;
}

@media (max-width: 820px) {
    .discount-panel,
    .service-faq-grid,
    .design-toolbar,
    .sample-showcase-grid,
    .showcase-lane,
    .showcase-lane__cards {
        grid-template-columns: 1fr;
    }

    .service-list article {
        grid-template-columns: 1fr;
    }

    .design-toolbar .btn-luxury-outline {
        width: 100%;
    }

    .sample-card,
    .sample-card-featured {
        min-height: auto;
    }

    .sample-card-featured .sample-render,
    .sample-render {
        min-height: 220px;
    }

    .viewer-size-card {
        grid-template-columns: 1fr;
    }
}

/* --- 3D Stage Background elements --- */
.visual-stage-container {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.stage-floor {
    position: absolute;
    width: 250px;
    height: 40px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.04) 0%, transparent 70%);
    bottom: 40px;
    border-radius: 50%;
}

.technical-crosshairs {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.technical-crosshairs::before, .technical-crosshairs::after {
    content: '';
    position: absolute;
    background: var(--border-light);
}

.technical-crosshairs::before {
    width: 1px;
    height: 100%;
    left: 50%;
    top: 0;
    border-left: 1px dashed var(--border-light);
}

.technical-crosshairs::after {
    height: 1px;
    width: 100%;
    top: 50%;
    left: 0;
    border-top: 1px dashed var(--border-light);
}

/* ==========================================================================
   DYNAMIC TAB VIEW CONTROL & INTERFACES
   ========================================================================= */

.dual-tab-header {
    display: inline-flex;
    background: var(--bg-card);
    padding: 0.35rem;
    border-radius: 50px;
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
}

.tab-btn {
    background: transparent;
    border: none;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.tab-btn.active {
    background: var(--bg-surface);
    color: var(--text-primary);
    box-shadow: var(--shadow-subtle);
}

/* ==========================================================================
   INTERACTIVE B2B SPECIFICATION CHARTS
   ========================================================================= */

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    text-align: left;
}

.specs-table th, .specs-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.specs-table th {
    font-family: var(--font-ui);
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.specs-table td {
    color: var(--text-secondary);
}

.specs-table tr:hover td {
    color: var(--text-primary);
    background: rgba(29, 29, 31, 0.01);
}

/* ==========================================================================
   CONVERSION MULTISTEP FORM & INSPECTOR DRAWER
   ========================================================================= */

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeUpStep 0.5s ease forwards;
}

@keyframes fadeUpStep {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

.step-indicator-wrap {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 3.5rem;
}

.step-indicator-wrap::before {
    content: '';
    position: absolute;
    height: 1px;
    width: 100%;
    background: var(--border-light);
    top: 50%;
    z-index: 1;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
    transition: var(--transition-fast);
}

.step-dot.active {
    border-color: var(--text-primary);
    background: var(--text-primary);
    color: var(--text-light);
    box-shadow: 0 0 15px rgba(29, 29, 31, 0.15);
}

.step-dot.completed {
    border-color: var(--text-primary);
    background: var(--bg-base);
    color: var(--text-primary);
}

/* Input Fields */
.quote-field-group {
    margin-bottom: 1.5rem;
}

.quote-label {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
}

.quote-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-family: var(--font-sans);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.quote-input:focus {
    outline: none;
    border-color: var(--text-primary);
    background: var(--bg-surface);
    box-shadow: var(--shadow-subtle);
}

.quote-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231d1d1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 1rem;
}

/* Webhook Payload Debug Console Drawer */
.payload-inspector-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-technical);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-fast);
}

.payload-inspector-btn:hover {
    transform: rotate(30deg) scale(1.05);
    border-color: var(--text-primary);
}

.payload-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-accent);
    box-shadow: var(--shadow-depth);
    z-index: 9999;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition-smooth);
}

.payload-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1rem;
}

.close-drawer-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.close-drawer-btn:hover {
    color: var(--text-primary);
}

.payload-log-box {
    background: #1e1e1e;
    color: #a9b7c6;
    border-radius: 12px;
    padding: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    flex-grow: 1;
    overflow-y: auto;
    border: 1px solid #333333;
}

.payload-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    background: rgba(0, 113, 227, 0.1);
    color: var(--accent-blue);
}

.payload-status-badge.success {
    background: rgba(52, 199, 89, 0.1);
    color: var(--accent-green);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    padding: 5rem 5% 3rem 5%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-column h4 {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
    padding-left: 3px;
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ==========================================================================
   Soft beauty commerce refresh inspired by the supplied reference
   ========================================================================== */
:root {
    --bg-base: #f7f3ee;
    --bg-surface: #fffaf5;
    --bg-card: #f2ece4;
    --bg-dark-accent: #e7dfd4;
    --text-primary: #24311f;
    --text-secondary: #596251;
    --text-muted: #7a8174;
    --border-light: rgba(64, 73, 58, 0.12);
    --border-accent: rgba(64, 73, 58, 0.22);
    --border-technical: rgba(64, 73, 58, 0.28);
    --accent-titanium: #637056;
    --accent-steel: #3f4c37;
    --shadow-subtle: 0 8px 24px rgba(36, 49, 31, 0.05);
    --shadow-premium: 0 22px 54px rgba(36, 49, 31, 0.11);
}

body {
    background-color: var(--bg-base);
}

body::before {
    background-image: none;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: 0;
}

.luxury-card,
.grid-card,
.quote-form-card,
.checkout-card,
.product-tab-btn,
.product-section,
.timeline-item,
.contact-card {
    border-radius: 8px !important;
    border-color: var(--border-light);
    box-shadow: var(--shadow-subtle);
}

header {
    background: rgba(247, 243, 238, 0.92);
    border-bottom-color: var(--border-light);
}

.logo-box {
    border-color: var(--accent-steel);
    color: var(--accent-steel);
}

.brand-name,
nav a:hover,
nav a.active,
.nav-dropdown.is-active .nav-dropdown-toggle,
.nav-dropdown.is-open .nav-dropdown-toggle,
.nav-dropdown-toggle:hover {
    color: var(--text-primary);
}

nav a,
.nav-dropdown-toggle {
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: 0;
}

.nav-dropdown-toggle::after {
    content: 'v';
}

.nav-dropdown-menu {
    background: var(--bg-surface);
    border-radius: 8px;
}

.btn-luxury,
.btn-luxury-outline,
button.btn-luxury,
input[type="submit"].btn-luxury {
    border-radius: 10px;
    text-transform: none;
    letter-spacing: 0;
}

.btn-luxury {
    background: #4f5f45;
    border-color: #4f5f45;
    color: #fffaf5;
}

.btn-luxury:hover {
    background: #33402d;
    border-color: #33402d;
    color: #fffaf5;
}

.audience-section .btn-luxury,
.discount-panel .btn-luxury,
footer .btn-luxury {
    background: #fffaf5 !important;
    border-color: rgba(255, 250, 245, 0.88) !important;
    color: #263820 !important;
    box-shadow: 0 16px 34px rgba(14, 24, 12, 0.18);
}

.audience-section .btn-luxury:hover,
.audience-section .btn-luxury:focus-visible,
.discount-panel .btn-luxury:hover,
.discount-panel .btn-luxury:focus-visible,
footer .btn-luxury:hover,
footer .btn-luxury:focus-visible {
    background: #f2eadf !important;
    border-color: #f2eadf !important;
    color: #1f371d !important;
}

.nav-cta-get-quote {
    background: #4f5f45 !important;
    border-color: #4f5f45 !important;
    color: #fffaf5 !important;
    border-radius: 10px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.nav-cta-get-quote:hover,
.nav-cta-get-quote:focus-visible {
    background: #33402d !important;
    border-color: #33402d !important;
    color: #fffaf5 !important;
}

.section-tag,
.technical-label,
.grid-card-tag {
    color: var(--accent-titanium);
    letter-spacing: 0.12em;
}

.ticker-wrap,
.quick-quote-section {
    background: #637056;
    border-color: rgba(255, 255, 255, 0.16);
}

.ticker-item,
.ticker-item span,
.quick-quote-inner h2 {
    color: #ffffff !important;
}

.ticker-item {
    opacity: 0.9;
}

footer {
    background: #263820;
    border-top: 0;
}

footer h4,
footer .brand-name {
    color: #fffaf5;
}

footer p,
.footer-links a,
.footer-bottom p,
.footer-bottom a {
    color: rgba(255, 250, 245, 0.72) !important;
}

/* ==========================================================================
   Premium hover feedback for products, cards, and controls
   ========================================================================== */
:root {
    --hover-olive: #4f5f45;
    --hover-olive-dark: #33402d;
    --hover-cream: #eee6dc;
    --hover-cream-light: #fffdf8;
    --hover-ring: rgba(79, 95, 69, 0.28);
}

a,
button,
input[type="submit"],
.grid-card,
.luxury-card,
.product-category-card,
.product-section,
.product-tab-btn,
.faq-question,
.dual-view-toggle,
.finish-option,
.option-card,
.quote-option,
.quote-step-btn,
.choice-card,
.contact-card,
.checkout-card,
.quote-form-card,
.footer-links a {
    transition:
        color 0.22s ease,
        background-color 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease,
        opacity 0.22s ease;
}

.btn-luxury:hover,
.btn-luxury:focus-visible,
.nav-btn-luxury:hover,
.nav-btn-luxury:focus-visible,
button[type="submit"]:hover,
button[type="submit"]:focus-visible,
input[type="submit"]:hover,
input[type="submit"]:focus-visible {
    background: var(--hover-olive-dark) !important;
    border-color: var(--hover-olive-dark) !important;
    color: #fffaf5 !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(36, 49, 31, 0.18);
}

.btn-luxury-outline:hover,
.btn-luxury-outline:focus-visible,
.grid-card-action:hover,
.grid-card-action:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--hover-olive-dark) !important;
}

footer {
    background: #1f371d;
    color: #f7efe2;
}

footer h4,
footer .brand-name {
    color: #fffaf5 !important;
}

footer .footer-column h4 {
    color: #d9c79f !important;
    opacity: 1;
}

footer p,
footer .footer-links a,
footer .footer-bottom p,
footer .footer-bottom a,
footer .footer-column a {
    color: rgba(255, 250, 245, 0.78) !important;
}

footer .footer-column p a[href^="mailto:"] {
    color: #f2dfb5 !important;
    font-weight: 600;
}

footer .footer-links a:hover,
footer .footer-links a:focus-visible,
footer .footer-bottom a:hover,
footer .footer-bottom a:focus-visible,
footer .footer-column a:hover,
footer .footer-column a:focus-visible {
    color: #ffffff !important;
}

footer .logo-box {
    border-color: rgba(255, 250, 245, 0.24);
    color: #d9c79f;
}

.btn-luxury-outline:hover,
.btn-luxury-outline:focus-visible {
    background: var(--hover-cream);
    border-color: var(--hover-olive);
    box-shadow: 0 10px 24px rgba(36, 49, 31, 0.08);
}

nav a:hover,
nav a:focus-visible,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible {
    color: var(--hover-olive-dark);
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
    background: var(--hover-cream);
    color: var(--hover-olive-dark);
}

.grid-card:hover,
.grid-card:focus-within,
.luxury-card:hover,
.luxury-card:focus-within,
.contact-card:hover,
.contact-card:focus-within,
.checkout-card:hover,
.checkout-card:focus-within,
.quote-form-card:hover,
.quote-form-card:focus-within {
    background: var(--hover-cream-light);
    border-color: var(--hover-ring);
    box-shadow: 0 22px 48px rgba(36, 49, 31, 0.12);
    transform: translateY(-4px);
}

.product-category-card:hover,
.product-category-card:focus-within,
.product-section:hover,
.product-section:focus-within {
    background: #fffdf8 !important;
    border-color: var(--hover-ring) !important;
    box-shadow: 0 24px 54px rgba(36, 49, 31, 0.14) !important;
}

.product-category-card:hover .product-category-card__media {
    filter: saturate(1.06) contrast(1.03);
    transform: scale(1.025);
}

.product-category-card__media {
    transition: transform 0.35s ease, filter 0.35s ease;
}

.product-tab-btn:hover,
.product-tab-btn:focus-visible,
.dual-view-toggle:hover,
.dual-view-toggle:focus-visible,
.finish-option:hover,
.finish-option:focus-visible,
.quote-step-btn:hover,
.quote-step-btn:focus-visible,
.option-card:hover,
.option-card:focus-within,
.quote-option:hover,
.quote-option:focus-within,
.choice-card:hover,
.choice-card:focus-within,
.product-tab-btn.active {
    background: var(--hover-olive) !important;
    border-color: var(--hover-olive) !important;
    color: #fffaf5 !important;
    box-shadow: 0 12px 26px rgba(36, 49, 31, 0.14);
}

.faq-question:hover,
.faq-question:focus-visible {
    background: var(--hover-cream);
    color: var(--hover-olive-dark);
}

button:not(:disabled),
a[href] {
    cursor: pointer;
}

button:disabled,
.btn-luxury:disabled {
    cursor: not-allowed;
    opacity: 0.62;
    transform: none !important;
    box-shadow: none !important;
}

/* Shared By Style detail pages */
.style-detail-hero {
    position: relative;
    padding: 10rem 5% 5.5rem;
    background:
        linear-gradient(90deg, rgba(250, 250, 249, 0.98), rgba(250, 250, 249, 0.8), rgba(250, 250, 249, 0.54)),
        var(--style-img, var(--img-mailer)) center / cover;
    border-bottom: 1px solid var(--border-light);
}

.style-detail-hero h1 {
    max-width: 860px;
    font-size: clamp(3rem, 6vw, 5.2rem);
    line-height: 0.98;
    margin: 0.8rem 0 1.1rem;
}

.style-detail-hero p {
    max-width: 680px;
    font-size: 1.04rem;
}

.style-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.style-detail-card {
    background: #fffaf5;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1.6rem;
    box-shadow: var(--shadow-subtle);
}

.style-detail-card h3 {
    font-size: 1.55rem;
    margin-bottom: 0.9rem;
}

.style-detail-card ul {
    margin-left: 1.1rem;
}

.style-detail-card li {
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 0.45rem;
}

.style-detail-cta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
    margin-top: 2rem;
    padding: 2rem;
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(38, 56, 32, 0.96), rgba(38, 56, 32, 0.84)),
        var(--style-img, var(--img-mailer)) center / cover;
    color: #fffaf5;
}

.style-detail-cta h2,
.style-detail-cta p {
    color: #fffaf5;
}

.style-detail-cta p {
    opacity: 0.76;
    max-width: 720px;
}

@media (max-width: 900px) {
    .style-detail-grid,
    .style-detail-cta {
        grid-template-columns: 1fr;
    }
}

/* Context-aware CTA color: light sections use olive; dark/green sections use ivory. */
.audience-section .btn-luxury,
.discount-panel .btn-luxury,
.style-detail-cta .btn-luxury,
footer .btn-luxury {
    background: #fffaf5 !important;
    border-color: rgba(255, 250, 245, 0.9) !important;
    color: #263820 !important;
}

.audience-section .btn-luxury:hover,
.audience-section .btn-luxury:focus-visible,
.discount-panel .btn-luxury:hover,
.discount-panel .btn-luxury:focus-visible,
.style-detail-cta .btn-luxury:hover,
.style-detail-cta .btn-luxury:focus-visible,
footer .btn-luxury:hover,
footer .btn-luxury:focus-visible {
    background: #f2eadf !important;
    border-color: #f2eadf !important;
    color: #1f371d !important;
}

/* Unified By Style product pages */
.style-product-page {
    background: #fffaf5;
}

.product-detail-hero {
    padding: 9rem 5% 5rem;
    background:
        linear-gradient(90deg, rgba(255, 250, 245, 0.98) 0%, rgba(255, 250, 245, 0.9) 48%, rgba(255, 250, 245, 0.58) 100%),
        var(--style-img, var(--img-hero)) right center / cover no-repeat;
    border-bottom: 1px solid rgba(64, 73, 58, 0.12);
    overflow: hidden;
}

.product-detail-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.75fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.product-detail-hero__copy h1 {
    max-width: 640px;
    font-size: clamp(3.2rem, 6vw, 5.7rem);
    line-height: 0.96;
    margin: 1rem 0 1.3rem;
    color: #24311f;
}

.product-detail-hero__copy p {
    max-width: 620px;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #596251;
}

.product-hero-specs {
    margin-top: 2rem;
}

.page-hero-breadcrumb {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #637056;
    margin-bottom: 1.1rem;
}

.page-hero-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.product-photo-card {
    position: relative;
    border: 1px solid rgba(64, 73, 58, 0.13);
    border-radius: 12px;
    background: rgba(255, 250, 245, 0.78);
    box-shadow: 0 28px 78px rgba(36, 49, 31, 0.15);
    overflow: hidden;
}

.product-photo {
    min-height: 430px;
    position: relative;
    background:
        linear-gradient(120deg, rgba(255, 250, 245, 0.92), rgba(255, 250, 245, 0.48)),
        var(--style-img, var(--img-hero)) center / cover no-repeat;
}

.product-photo::before {
    content: '';
    position: absolute;
    inset: 9% 11%;
    border-radius: 10px;
    background:
        linear-gradient(90deg, transparent 49.7%, rgba(99, 112, 86, 0.42) 50%, transparent 50.3%),
        linear-gradient(0deg, transparent 49.7%, rgba(99, 112, 86, 0.24) 50%, transparent 50.3%),
        linear-gradient(90deg, rgba(255,255,255,0.95), rgba(250,247,239,0.96));
    border: 1px solid rgba(64, 73, 58, 0.16);
    box-shadow: 0 28px 62px rgba(36, 49, 31, 0.14);
}

.product-photo::after {
    content: 'DIELINE MOCKUP';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 38%;
    height: 48%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: end center;
    padding-bottom: 1rem;
    color: rgba(38, 56, 32, 0.58);
    font-family: var(--font-ui);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    background:
        linear-gradient(90deg, transparent 48%, rgba(99, 112, 86, 0.34) 49%, rgba(99, 112, 86, 0.34) 51%, transparent 52%),
        linear-gradient(0deg, transparent 31%, rgba(99, 112, 86, 0.22) 32%, transparent 33%, transparent 66%, rgba(99, 112, 86, 0.22) 67%, transparent 68%),
        rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(64, 73, 58, 0.2);
    clip-path: polygon(11% 0, 89% 0, 100% 18%, 100% 82%, 89% 100%, 11% 100%, 0 82%, 0 18%);
    box-shadow: 0 18px 36px rgba(36, 49, 31, 0.1);
}

.product-photo-caption {
    display: grid;
    gap: 0.28rem;
    padding: 1rem 1.1rem 1.15rem;
    background: rgba(255, 250, 245, 0.96);
    border-top: 1px solid rgba(64, 73, 58, 0.1);
}

.product-photo-caption strong {
    color: #263820;
    font-family: var(--font-ui);
    font-size: 0.86rem;
}

.product-photo-caption span {
    color: #596251;
    font-size: 0.78rem;
    line-height: 1.45;
}

.product-detail-body {
    background: #fffaf5;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.42fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.product-detail-main {
    display: grid;
    gap: 1.25rem;
}

.product-info-panel,
.dieline-reference-panel,
.product-quote-panel {
    background: #fffdf8;
    border: 1px solid rgba(64, 73, 58, 0.12);
    border-radius: 10px;
    box-shadow: 0 18px 44px rgba(36, 49, 31, 0.07);
}

.product-info-panel,
.dieline-reference-panel {
    padding: clamp(1.5rem, 3vw, 2.25rem);
}

.product-info-panel h2,
.dieline-reference-panel h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin: 0.7rem 0 0.75rem;
}

.product-detail-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dieline-reference-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.45fr);
    gap: 1rem;
    align-items: stretch;
}

.dieline-photo-note {
    display: grid;
    gap: 0.55rem;
    align-content: center;
    padding: 1rem;
    border-radius: 8px;
    background: #f2eadf;
}

.dieline-photo-note strong {
    color: #263820;
    font-family: var(--font-ui);
}

.dieline-photo-note span {
    color: #596251;
    font-size: 0.84rem;
    padding: 0.45rem 0;
    border-top: 1px solid rgba(64, 73, 58, 0.1);
}

.related-style-section {
    background: #fffdf8;
    border: 1px solid rgba(64, 73, 58, 0.12);
    border-radius: 10px;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: 0 18px 44px rgba(36, 49, 31, 0.07);
}

.related-style-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.25rem;
}

.related-style-head h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin: 0.55rem 0 0.45rem;
}

.related-style-head p {
    max-width: 720px;
    margin: 0;
}

.related-style-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.related-style-card {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 10px;
    background: #fffaf5;
    border: 1px solid rgba(64, 73, 58, 0.12);
    text-decoration: none;
    color: inherit;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.related-style-card:hover,
.related-style-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(79, 95, 69, 0.3);
    box-shadow: 0 22px 48px rgba(36, 49, 31, 0.12);
}

.related-style-card.is-current {
    border-color: rgba(79, 95, 69, 0.42);
    box-shadow: inset 0 0 0 2px rgba(79, 95, 69, 0.12);
}

.related-style-media {
    min-height: 140px;
    background:
        linear-gradient(180deg, rgba(29, 29, 31, 0.02), rgba(29, 29, 31, 0.16)),
        var(--style-img, var(--img-hero)) center / cover no-repeat;
    border-bottom: 1px solid rgba(64, 73, 58, 0.1);
}

.related-style-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem;
}

.related-style-body > span {
    color: #637056;
    font-family: var(--font-ui);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.related-style-body h3 {
    font-size: 1.3rem;
    margin: 0.45rem 0 0.4rem;
}

.related-style-body p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.82rem;
    margin-bottom: 0.85rem;
}

.related-style-body .style-chip-row {
    margin-top: auto;
}

.product-quote-panel {
    position: sticky;
    top: 6.5rem;
    padding: 1.25rem;
}

.embedded-quote-form {
    display: grid;
    gap: 0.85rem;
}

.embedded-quote-form h2 {
    font-size: 1.7rem;
    margin: 0;
}

.embedded-quote-form p {
    font-size: 0.86rem;
    margin: 0;
}

.embedded-quote-form label {
    display: grid;
    gap: 0.38rem;
    color: #263820;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 700;
}

.embedded-quote-form input,
.embedded-quote-form textarea {
    width: 100%;
    border: 1px solid rgba(64, 73, 58, 0.16);
    border-radius: 8px;
    background: #fffaf5;
    padding: 0.85rem 0.9rem;
    color: #263820;
    font: inherit;
    font-weight: 500;
}

.embedded-quote-form textarea {
    resize: vertical;
}

.quote-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.quote-form-status {
    min-height: 1.2rem;
    color: #4f5f45;
    font-family: var(--font-ui);
    font-size: 0.8rem !important;
    font-weight: 700;
}

.prototype-quote-first .product-detail-layout {
    display: block;
}

.prototype-quote-first .quote-first-showcase {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(330px, 0.5fr);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: start;
    margin-bottom: 1.25rem;
}

.prototype-quote-first .quote-product-visual {
    border: 1px solid rgba(64, 73, 58, 0.12);
    border-radius: 10px;
    overflow: hidden;
    background: #fffdf8;
    box-shadow: 0 18px 44px rgba(36, 49, 31, 0.07);
}

.prototype-quote-first .quote-product-visual .product-photo {
    min-height: 520px;
}

.prototype-quote-first .quote-product-visual .product-photo::before {
    inset: 7% 10%;
}

.prototype-quote-first .quote-product-visual .product-photo::after {
    width: 34%;
    height: 54%;
}

.prototype-quote-first .product-quote-panel {
    position: sticky;
    top: 6.5rem;
}

.prototype-quote-first .product-detail-main {
    display: grid;
    gap: 1.25rem;
}

.product-hero-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin: 1.6rem 0 0;
}

.product-route-panel {
    background: #fffdf8;
    border: 1px solid rgba(64, 73, 58, 0.12);
    border-radius: 10px;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: 0 18px 44px rgba(36, 49, 31, 0.07);
}

.product-route-panel h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin: 0.7rem 0 0.75rem;
}

@media (max-width: 980px) {
    .product-detail-hero__grid,
    .product-detail-layout,
    .dieline-reference-panel,
    .product-detail-cards,
    .related-style-head {
        grid-template-columns: 1fr;
    }

    .product-quote-panel {
        position: relative;
        top: auto;
    }

    .related-style-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .prototype-quote-first .quote-first-showcase {
        grid-template-columns: 1fr;
    }

    .prototype-quote-first .product-quote-panel {
        position: relative;
        top: auto;
    }
}

@media (max-width: 560px) {
    .product-detail-hero {
        padding-top: 8.5rem;
    }

    .product-photo {
        min-height: 320px;
    }

    .quote-form-row,
    .product-hero-specs {
        grid-template-columns: 1fr;
    }

    .product-hero-actions .btn-luxury,
    .product-hero-actions .btn-luxury-outline,
    .embedded-quote-form .btn-luxury {
        width: 100%;
    }

    .related-style-grid {
        grid-template-columns: 1fr;
    }
}

/* Phase 2 mobile usability polish */
@media (max-width: 900px) {
    header {
        align-items: flex-start;
        gap: 0.8rem;
        padding: 0.85rem 1rem;
    }

    .brand-logo-container {
        flex: 0 0 auto;
        min-height: 44px;
    }

    .brand-name {
        max-width: 150px;
        line-height: 1.25;
    }

    header nav {
        display: flex !important;
        flex: 1 1 auto;
        gap: 0.55rem;
        overflow-x: auto;
        padding: 0.1rem 0 0.45rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    header nav::-webkit-scrollbar {
        display: none;
    }

    header nav a,
    .nav-dropdown-toggle {
        min-height: 44px;
        padding: 0.65rem 0.75rem;
        white-space: nowrap;
        border-radius: 8px;
        background: rgba(255, 250, 245, 0.72);
        border: 1px solid rgba(64, 73, 58, 0.08);
    }

    .nav-dropdown {
        padding: 0;
        margin: 0;
    }

    .nav-dropdown--style .nav-dropdown-menu {
        position: fixed;
        top: 78px;
        left: 1rem;
        right: 1rem;
        transform: none;
        width: auto;
        max-height: calc(100vh - 96px);
    }

    .nav-style-head {
        align-items: flex-start;
    }

    .product-detail-hero__grid {
        gap: 1.4rem;
    }

    .product-detail-hero__copy h1 {
        font-size: clamp(2.7rem, 13vw, 4rem);
    }

    .quote-first-showcase,
    .prototype-quote-first .quote-first-showcase {
        gap: 1rem;
    }

    .embedded-quote-form input,
    .embedded-quote-form textarea,
    .quote-input,
    .quote-select {
        min-height: 46px;
        font-size: 16px;
    }

    footer .footer-bottom {
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .section-padding {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .product-detail-hero {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .style-detail-card,
    .product-info-panel,
    .dieline-reference-panel,
    .product-route-panel,
    .related-style-section,
    .product-quote-panel {
        padding: 1rem;
    }

    .prototype-quote-first .quote-product-visual .product-photo {
        min-height: 340px;
    }

    .style-overview-card,
    .product-use-card,
    .related-style-card {
        min-height: auto;
    }

    .style-overview-media,
    .product-use-media,
    .related-style-media {
        min-height: 170px;
    }
}
