﻿/* ============================================
   ModuleARCH - Premium Scandinavian Design System
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ModuleARCH — Architectural Scandinavian Palette */
    --sand:       #f5f3ef;   /* Nordic Linen — page bg */
    --cream:      #ede9e3;   /* Warm Plaster — section bg */
    --warm-white: #faf9f7;   /* Elevated surfaces, cards */
    --white:      #ffffff;   /* Selected cards, modals, inputs */
    --stone:      #d8d3cb;   /* Raw Clay — borders, dividers */
    --driftwood:  #b5afa5;   /* Inactive, disabled states */
    --sage:       #6b7c5e;   /* Moss — primary accent, CTAs */
    --sage-dark:  #4a5a3e;   /* Deep Moss — hover, focus rings */
    --sage-light: #e3e8dd;   /* Pale Lichen — accent bg, success */
    --charcoal:   #1c1c1e;   /* Nordic Black — headlines */
    --graphite:   #3a3a3c;   /* Body text, secondary headings */
    --ash:        #6b6b6b;   /* Secondary text */
    --mist:       #8e8e93;   /* Scandinavian Fog — captions, labels */
    --accent:     #8b7355;   /* Driftwood Warm — prices */
    --accent-hover: #7a6348;

    /* Typography */
    --font-main: 'Avenir Next', 'Avenir', 'Neue Haas Grotesk Display Pro', 'Neue Haas Grotesk', 'Helvetica Neue', 'Nunito Sans', Helvetica, Arial, sans-serif;
    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --space-2xl: 64px;
    --space-3xl: 100px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);

    /* Transitions */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Legacy compat aliases */
    --primary-color: var(--charcoal);
    --secondary-color: var(--ash);
    --accent-color: var(--accent);
    --light-bg: var(--sand);
    --text-dark: var(--charcoal);
    --text-light: var(--mist);
    --border-color: var(--stone);
}

body {
    font-family: var(--font-main);
    color: var(--charcoal);
    line-height: 1.6;
    background-color: var(--sand);
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle architectural grain overlay — adds depth without visible texture */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 9998;
}

/* Accessible focus indicators */
*:focus-visible {
    outline: 2px solid var(--sage-dark);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--sage-dark);
    outline-offset: 2px;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ============================================
   HEADER - Floating architectural bar
   ============================================ */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 249, 247, 0.92);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid rgba(216, 211, 203, 0.6);
    transition: background 0.3s var(--ease);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    height: 72px;
    max-width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo img {
    height: 42px;
    width: auto;
    display: block;
}

nav {
    display: flex;
    gap: 36px;
    margin-left: 48px;
}

nav a {
    text-decoration: none;
    color: var(--ash);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: color 0.3s var(--ease);
    position: relative;
    padding: 4px 0;
}

nav a:hover {
    color: var(--charcoal);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--sage-dark);
    transition: width 0.35s var(--ease);
}

nav a:hover::after {
    width: 100%;
}

.language-toggle {
    display: flex;
    gap: 2px;
}

.lang-btn {
    padding: 6px 10px;
    border: none;
    background: transparent;
    color: var(--ash);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    letter-spacing: 0.5px;
    transition: all 0.25s var(--ease);
    font-family: var(--font-main);
}

.lang-btn:hover {
    color: var(--charcoal);
}

.lang-btn.active {
    background: transparent;
    color: var(--charcoal);
    font-weight: 700;
}

/* ============================================
   CART BUTTON - Floating
   ============================================ */
.cart-button {
    position: relative;
    background: transparent;
    border: 1px solid var(--stone);
    cursor: pointer;
    padding: 10px;
    color: var(--charcoal);
    transition: all 0.3s var(--ease);
    border-radius: 50%;
    box-shadow: none;
    z-index: 10;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-button:hover {
    color: var(--sage-dark);
    border-color: var(--sage);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.cart-button svg {
    display: block;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--sage-dark);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    display: none;
    box-shadow: 0 2px 6px rgba(74,90,62,0.3);
}

/* ============================================
   HERO - Full-bleed architectural showcase
   ============================================ */
.hero {
    background-color: var(--cream);
    background-image: url('images/Banner_picture4.jpg');
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    color: var(--charcoal);
    padding: 120px 0 140px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(245,243,239,0.68) 0%,
        rgba(245,243,239,0.38) 40%,
        rgba(245,243,239,0.58) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.hero h1,
.hero h2 {
    font-family: var(--font-display);
    font-size: 70px;
    font-weight: 300;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
    line-height: 1.0;
    color: var(--graphite);
    text-shadow: 0 2px 16px rgba(255,255,255,0.55);
}

.hero p {
    font-size: 18px;
    margin-bottom: 36px;
    color: var(--graphite);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

.cta-button {
    display: inline-block;
    padding: 16px 44px;
    background: var(--sage-dark);
    color: var(--white);
    text-decoration: none;
    border-radius: 2px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.35s var(--ease);
    border: none;
}

.cta-button:hover {
    background: var(--charcoal);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(28,28,30,0.18);
    letter-spacing: 2px;
}

/* ============================================
   PRODUCT SELECTOR
   ============================================ */
.step-label {
    display: block;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sage-dark);
    margin-bottom: 10px;
}

.product-selector-section {
    padding: var(--space-2xl) 0 var(--space-2xl);
    background: var(--warm-white);
    border-bottom: 1px solid var(--stone);
}

.product-selector-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.product-selector-card {
    border: 2px solid var(--stone);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.35s var(--ease);
    background: var(--white);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.product-selector-card:hover {
    border-color: var(--sage);
    box-shadow: 0 14px 44px rgba(0,0,0,0.10);
    transform: translateY(-5px);
}

.product-selector-card.selected {
    border-color: var(--sage-dark);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.product-selector-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.product-selector-info {
    padding: 20px 24px 24px;
}

.product-selector-info h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.product-selector-info p {
    color: var(--mist);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.product-selector-from {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--sage-dark);
    letter-spacing: 0.3px;
}

/* ============================================
   CONFIGURATOR SECTION
   ============================================ */
.configurator-section {
    padding: var(--space-2xl) 0 var(--space-3xl);
    background: var(--white);
    position: relative;
}

.section-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 8px;
    color: var(--charcoal);
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1.5px;
    background: var(--sage);
    margin: 14px auto 0;
    opacity: 0.75;
}

.section-subtitle {
    text-align: center;
    color: var(--mist);
    font-size: 16px;
    margin-bottom: var(--space-2xl);
    font-weight: 400;
    letter-spacing: 0.3px;
}

.configurator-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 80px;
    align-items: start;
}

.configurator-form {
    background: transparent;
    padding: 0;
}

.form-group {
    margin-bottom: 0;
    animation: fadeIn 0.5s var(--ease);
    border-bottom: 1px solid var(--stone);
}

.form-group:last-child {
    border-bottom: none;
}

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

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

.hero-content > * {
    animation: heroFadeUp 1.1s var(--ease) both;
}
.hero-content > *:nth-child(1) { animation-delay: 0.10s; }
.hero-content > *:nth-child(2) { animation-delay: 0.32s; }
.hero-content > *:nth-child(3) { animation-delay: 0.54s; }

.section-label {
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0;
    padding: 28px 0;
    letter-spacing: -0.3px;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
    gap: 0;
}

.section-label > span:first-child {
    flex-shrink: 0;
}

.section-label .section-summary {
    flex: 1;
    min-width: 0;
}

.section-label:hover {
    color: var(--sage-dark);
}

.section-label::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    color: var(--mist);
    transition: transform 0.3s var(--ease), color 0.2s ease;
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 16px;
    line-height: 1;
}

/* Selection summary shown next to title when section is collapsed */
.section-summary {
    font-size: 14px;
    font-weight: 400;
    color: var(--ash);
    margin-left: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    letter-spacing: 0;
}

.section-summary::before {
    content: '\2014\00a0\00a0';
    color: var(--ash);
}

.form-group.is-open .section-summary {
    display: none;
}

.form-group.is-open .section-label::after {
    content: '\2212';
    color: var(--charcoal);
}

.section-label:hover::after {
    color: var(--sage-dark);
}

.form-group-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s var(--ease), opacity 0.3s ease, padding 0.3s ease;
    opacity: 0;
    padding-bottom: 0;
}

.form-group.is-open .form-group-body {
    max-height: 3000px;
    opacity: 1;
    padding-bottom: 32px;
}

/* ── Quantity group (always visible, no collapse) ── */
.quantity-group {
    padding: 28px 0;
    border-bottom: 1px solid var(--stone);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quantity-group:last-child {
    border-bottom: none;
}

.quantity-group-label {
    font-size: 22px;
    font-weight: 600;
    color: var(--charcoal);
    letter-spacing: -0.3px;
}

.quantity-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--stone);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 44px;
    height: 44px;
    background: var(--warm-white);
    border: none;
    font-size: 20px;
    font-weight: 400;
    color: var(--charcoal);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    line-height: 1;
}

.qty-btn:hover {
    background: var(--stone);
}

.quantity-stepper .quantity-input {
    width: 56px;
    height: 44px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--stone);
    border-right: 1px solid var(--stone);
    font-size: 16px;
    font-weight: 600;
    color: var(--charcoal);
    background: var(--white);
    -moz-appearance: textfield;
    margin: 0;
    padding: 0;
}

.quantity-stepper .quantity-input::-webkit-outer-spin-button,
.quantity-stepper .quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ============================================
   OPTION CARDS - Veneer / Hinges / Handles / Frame
   ============================================ */
.option-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.option-cards--single {
    grid-template-columns: minmax(140px, 200px);
}

.option-card {
    background: var(--warm-white);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    position: relative;
    display: flex;
    flex-direction: column;
}

.option-card:hover {
    border-color: var(--stone);
    box-shadow: var(--shadow-md);
}

.option-card.selected {
    border-color: var(--sage-dark);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(74,90,62,0.12);
}

.option-card.selected::after {
    content: '\2713';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    background: var(--sage-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Visible border for Frame, Hinges, and Handles cards */
#frameCards .option-card,
#hingesCards .option-card,
#handlesCards .option-card {
    border-color: var(--stone);
}

#frameCards .option-card {
    background: #fff;
}

#frameGroup .cas-piece-group {
    background: #fff;
    padding: 0;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
    flex: 1;
    justify-content: center;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--charcoal);
    letter-spacing: 0.2px;
}

.card-subtitle {
    font-size: 13px;
    color: var(--mist);
    margin-top: -6px;
    line-height: 1.4;
}

.card-price {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    margin-top: 2px;
}

/* Card Preview Image */
.card-preview-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 6px;
    background: var(--cream);
    padding: 4px;
}

/* Card Dropdown */
.card-dropdown {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--stone);
    width: 100%;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.card-dropdown label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--ash);
    margin-bottom: 6px;
    text-align: left;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

#handlesCards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

#hingesCards {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card-dropdown select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--stone);
    border-radius: 4px;
    font-size: 13px;
    color: var(--charcoal);
    background: var(--white);
    cursor: pointer;
    transition: all 0.2s var(--ease);
    font-family: var(--font-main);
}

.card-dropdown select:hover {
    border-color: var(--ash);
}

.card-dropdown select:focus {
    outline: none;
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(124,140,110,0.12);
}

/* ============================================
   FINISH IMAGES - Wood sample tiles
   ============================================ */
.finish-swatch {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.06);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.1);
}

.finish-image {
    width: 130px;
    height: 130px;
    border-radius: 8px;
    border: 2px solid rgba(0,0,0,0.05);
    object-fit: cover;
    object-position: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s var(--ease);
}

.option-card:hover .finish-image {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

.finish-image--lg {
    width: 180px;
    height: 180px;
}

.option-card.selected .finish-image {
    border-color: var(--sage);
    border-width: 2px;
}

/* Custom Column Project card */
.option-card--custom {
    background: var(--sage-light);
    border-color: var(--driftwood);
}

.option-card--custom .card-title,
.option-card--custom .card-subtitle {
    color: var(--sage-dark);
}

.option-card--custom:hover {
    background: #dce5d6;
    border-color: var(--sage);
    box-shadow: var(--shadow-md);
}

.option-card--custom.selected {
    background: #dce5d6;
    border-color: var(--sage-dark);
    box-shadow: 0 0 0 3px rgba(74,90,62,0.15);
}

.option-card--custom.selected::after {
    background: var(--sage-dark);
    color: var(--white);
}

/* Test finish card */
.option-card--test {
    border-color: #d97706 !important;
    background: #fffbeb;
}
.option-card--test.selected {
    border-color: #b45309 !important;
    background: #fef3c7;
}
.card-test-badge {
    display: inline-block;
    background: #d97706;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 10px;
    align-self: flex-start;
}
.option-card--test .card-content {
    min-height: 130px;
    justify-content: center;
}

/* ============================================
   OPTION PILLS - Size / Opening / Prehung
   ============================================ */
.option-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.option-pill {
    background: var(--warm-white);
    border: 1.5px solid var(--stone);
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    font-size: 14px;
    font-weight: 500;
    color: var(--charcoal);
    min-width: 56px;
    text-align: center;
    letter-spacing: 0.2px;
}

.option-pill:hover {
    border-color: var(--ash);
    background: var(--white);
}

.option-pill.selected {
    background: var(--charcoal);
    border-color: var(--charcoal);
    color: var(--white);
}

/* Elevated pill variant for Opening & Pre-hung */
#openingSideCards .option-pill,
#swingDirectionCards .option-pill,
#prehungCards .option-pill {
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1.5px solid var(--stone);
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.3s var(--ease);
}

#openingSideCards .option-pill:hover,
#swingDirectionCards .option-pill:hover,
#prehungCards .option-pill:hover {
    border-color: var(--charcoal);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#openingSideCards .option-pill.selected,
#swingDirectionCards .option-pill.selected,
#prehungCards .option-pill.selected {
    background: var(--sage-dark);
    border-color: var(--sage-dark);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(74,90,62,0.18);
}

/* ============================================
   OPENING CONFIG - Side + Swing + Chart
   ============================================ */
.opening-config {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.opening-selectors {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex-shrink: 0;
}

.opening-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.opening-field-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--ash);
    letter-spacing: 0.2px;
}

.swing-chart-container {
    flex: 1;
    max-width: 360px;
    border: 1px solid var(--stone);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
}

.swing-chart-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   STAIN CARD
   ============================================ */
.stain-card-container {
    display: flex;
    gap: 12px;
}

.stain-card {
    background: var(--warm-white);
    border: 2px solid var(--stone);
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    position: relative;
    display: flex;
    gap: 20px;
    align-items: center;
    flex: 1;
}

.stain-card:hover {
    border-color: var(--ash);
    box-shadow: var(--shadow-md);
}

.stain-card-image {
    width: 110px;
    height: 110px;
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.stain-card-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.stain-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--charcoal);
}

.stain-card-subtitle {
    font-size: 13px;
    color: var(--mist);
    transition: opacity 0.2s ease;
}

.stain-card-subtitle.hidden {
    display: none;
}

/* ============================================
   STAIN SWATCH PICKER
   ============================================ */
.stain-dropdown-hidden {
    display: none !important;
}

.stain-swatch-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.stain-swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    border-radius: 6px;
    padding: 4px 2px;
    transition: background 0.15s ease;
}

.stain-swatch-item:hover:not(.disabled) {
    background: var(--sand);
}

.stain-swatch-item.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.stain-swatch-thumb {
    width: 44px;
    height: 44px;
    border-radius: 5px;
    overflow: hidden;
    background: var(--stone);
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.15s ease;
}

.stain-swatch-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.stain-swatch-item.selected .stain-swatch-thumb {
    box-shadow: 0 0 0 2.5px var(--sage-dark), 0 0 0 5px rgba(74,90,62,0.12);
}

.stain-swatch-item:hover:not(.disabled) .stain-swatch-thumb {
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.stain-swatch-label {
    font-size: 10px;
    color: var(--ash);
    text-align: center;
    line-height: 1.2;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-main);
    letter-spacing: 0.1px;
}

.stain-swatch-item.selected .stain-swatch-label {
    color: var(--sage-dark);
    font-weight: 600;
}

.stain-card-price {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    margin-top: 2px;
}

.stain-card-dropdown {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 32px 8px 12px;
    border: 1.5px solid var(--stone);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-main);
    background: var(--white);
    color: var(--charcoal);
    cursor: pointer;
    transition: all 0.2s var(--ease);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' 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-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
}

.stain-card-dropdown:hover {
    border-color: var(--ash);
}

.stain-card-dropdown:focus {
    outline: none;
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(124,140,110,0.12);
}

/* ============================================
   SIZE GROUPS
   ============================================ */
.size-group {
    margin-bottom: 20px;
}

.size-group:last-child {
    margin-bottom: 0;
}

.size-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--ash);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ============================================
   QUANTITY INPUT
   ============================================ */
.quantity-input {
    width: 100%;
    max-width: 120px;
    padding: 14px 20px;
    border: 1.5px solid var(--stone);
    border-radius: 4px;
    font-size: 16px;
    font-family: var(--font-main);
    background: var(--white);
    transition: all 0.25s var(--ease);
    text-align: center;
    font-weight: 600;
    color: var(--charcoal);
}

.quantity-input:focus {
    outline: none;
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(124,140,110,0.12);
}

.quantity-input:hover {
    border-color: var(--ash);
}

/* ============================================
   PRICE SUMMARY - Sticky sidebar
   ============================================ */
.price-summary {
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.price-card {
    background: var(--warm-white);
    padding: 32px;
    border-radius: 8px;
    border: 1px solid var(--stone);
    position: relative;
}

.price-card h3,
.price-card .price-card-title {
    font-family: var(--font-display);
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--charcoal);
    font-weight: 600;
    text-align: left;
    letter-spacing: -0.2px;
}

/* ── Door Preview ── */
.door-preview-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--stone);
}

.door-preview-scene {
    position: relative;
    perspective: 600px;
    padding-bottom: 10px;
}

/* ── Door slab (3D) ── */
.door-preview-slab {
    width: 115px;
    height: 210px;
    position: relative;
    border-radius: 2px;
    overflow: visible;
    transform: rotateY(-8deg) rotateX(1deg);
    transform-style: preserve-3d;
    box-shadow:
        /* light edge highlight */
        inset 2px 1px 0 rgba(255,255,255,0.10),
        /* dark far-side edge */
        inset -1px -1px 0 rgba(0,0,0,0.08),
        /* layered drop shadows */
        4px 4px 6px rgba(0,0,0,0.14),
        8px 10px 20px rgba(0,0,0,0.10),
        14px 18px 36px rgba(0,0,0,0.07);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease;
}

.door-preview-slab:hover {
    transform: rotateY(-4deg) rotateX(0.5deg) translateY(-2px);
    box-shadow:
        inset 2px 1px 0 rgba(255,255,255,0.12),
        inset -1px -1px 0 rgba(0,0,0,0.10),
        3px 3px 5px rgba(0,0,0,0.12),
        6px 8px 16px rgba(0,0,0,0.08),
        10px 14px 28px rgba(0,0,0,0.05);
}

.door-preview-img {
    width: 115px;
    height: 210px;
    object-fit: cover;
    display: block;
    border-radius: 2px;
    transition: opacity 0.35s ease;
}

/* 3D side edge (visible thickness) */
.door-edge {
    position: absolute;
    top: 0;
    right: -8px;
    width: 8px;
    height: 100%;
    background: linear-gradient(90deg,
        rgba(0,0,0,0.22) 0%,
        rgba(0,0,0,0.12) 40%,
        rgba(0,0,0,0.06) 100%);
    border-radius: 0 2px 2px 0;
    transform: rotateY(90deg);
    transform-origin: left center;
    pointer-events: none;
}

/* ── Ground shadow ── */
.door-ground-shadow {
    width: 120px;
    height: 8px;
    margin: 0 auto;
    background: radial-gradient(ellipse at 55% 50%, rgba(0,0,0,0.12) 0%, transparent 72%);
    border-radius: 50%;
    filter: blur(1px);
}

/* ── Label ── */
.door-preview-label {
    margin-top: 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ash);
    letter-spacing: 0.4px;
    text-transform: uppercase;
    text-align: center;
}

.price-breakdown {
    border-bottom: 1px solid var(--stone);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--ash);
    padding: 6px 0;
}

.breakdown-item:last-child {
    margin-bottom: 0;
}

.breakdown-item span:last-child {
    font-weight: 600;
    color: var(--charcoal);
    padding: 4px 12px;
    background: rgba(139,115,85,0.06);
    border-radius: 4px;
    font-size: 13px;
}

.sku-display {
    margin: 20px 0;
    padding: 14px;
    background: rgba(139,115,85,0.04);
    border-radius: 6px;
    border: 1px solid rgba(139,115,85,0.1);
}

.sku-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--mist);
    margin-bottom: 6px;
}

.sku-value {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--charcoal);
    word-break: break-all;
    line-height: 1.6;
}

.price-total {
    margin-bottom: 24px;
    padding-top: 16px;
}

.total-item:first-child {
    font-size: 15px;
    padding: 12px;
    background: rgba(124,140,110,0.06);
    border-radius: 6px;
    margin-bottom: 14px;
}

.total-item:first-child span:last-child {
    font-size: 18px;
}

.total-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 500;
}

.total-item span:last-child {
    font-weight: 700;
    color: var(--accent);
}

.total-item.quantity-total {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--stone);
    margin-bottom: 14px;
}

.total-item.grand-total {
    font-size: 22px;
    font-weight: 600;
    color: var(--charcoal);
    margin-top: 14px;
    padding: 0;
    background: transparent;
    margin-bottom: 20px;
}

.total-item.grand-total span:last-child {
    font-weight: 600;
    color: var(--charcoal);
}

.order-button {
    width: 100%;
    padding: 16px;
    background: var(--sage-dark);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-family: var(--font-main);
}

.order-button:hover {
    background: var(--charcoal);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.order-button:active {
    transform: scale(0.98);
}

.delivery-note {
    text-align: center;
    font-size: 12px;
    color: var(--mist);
    margin-top: 16px;
}

.payment-note {
    text-align: center;
    font-size: 12px;
    color: var(--mist);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ============================================
   COLUMN CONFIGURATOR
   ============================================ */
.column-configurator-section .configurator-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 80px;
    align-items: start;
}

.column-height-input-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.column-height-input {
    width: 100px;
    text-align: center;
}

.column-height-unit {
    font-size: 18px;
    color: var(--mist);
    font-weight: 500;
}

.column-material-display .option-pill.selected {
    cursor: default;
    opacity: 0.85;
}

.column-preview-wrapper {
    text-align: center;
    margin-bottom: 24px;
}

.column-preview-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto 12px;
    display: block;
    border-radius: 8px;
}

.column-preview-label {
    display: block;
    font-size: 13px;
    color: var(--mist);
    letter-spacing: 0.4px;
}

/* Card icon wrapper (for Custom column project SVG) */
.card-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ash);
    margin-bottom: 4px;
}

.option-card.selected .card-icon-wrapper {
    color: var(--sage-dark);
}

.card-content--centered {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 16px;
}

.card-title--lg {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   CUSTOM COLUMN PROJECT FORM
   ============================================ */
.col-custom-project-form {
    animation: fadeSlideIn 0.4s ease-out;
    padding-top: 32px;
}

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

.custom-project-header {
    margin-bottom: 28px;
}

.custom-project-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--charcoal);
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}

.custom-project-header p {
    font-size: 14px;
    color: var(--mist);
    margin: 0;
    line-height: 1.5;
}

.custom-project-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.custom-project-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.custom-project-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--ash);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-project-field input,
.custom-project-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--stone);
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--font-main);
    color: var(--charcoal);
    background: var(--white);
    transition: all 0.2s var(--ease);
    box-sizing: border-box;
}

.custom-project-field input:focus,
.custom-project-field textarea:focus {
    outline: none;
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(124,140,110,0.12);
}

.custom-project-field input::placeholder,
.custom-project-field textarea::placeholder {
    color: var(--stone);
}

.custom-project-field textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.col-custom-submit {
    margin-top: 4px;
}

.custom-project-status {
    text-align: center;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.custom-project-status.success {
    background: rgba(124,140,110,0.1);
    color: var(--sage-dark);
    border: 1px solid rgba(124,140,110,0.2);
}

.custom-project-status.error {
    background: rgba(200,60,60,0.08);
    color: #c83c3c;
    border: 1px solid rgba(200,60,60,0.15);
}

@media (max-width: 600px) {
    .custom-project-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CASING CONFIGURATOR
   ============================================ */
.casing-configurator-section .configurator-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 80px;
    align-items: start;
}

/* --- Casing sub-sections --- */
.cas-subsection {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px 20px 8px;
    margin-bottom: 16px;
    background: #fff;
}

.cas-subsection-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.cas-subsection-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--charcoal);
}

.cas-subsection-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--sage-dark);
    background: rgba(74,103,65,.09);
    border-radius: 20px;
    padding: 2px 10px;
    white-space: nowrap;
}

.cas-length-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #92713a;
    background: #fefbf3;
    border: 1px solid #f5ecd4;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 14px;
    line-height: 1.4;
}

.cas-length-hint::before {
    content: "\2702";
    font-size: 16px;
    flex-shrink: 0;
}

/* --- 3-piece dimension inputs --- */
.cas-piece-group {
    background: var(--sand);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
}

.cas-piece-group--muted {
    background: #f3f4f6;
}

.cas-piece-header {
    font-size: 14px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 2px;
}

.cas-piece-qty {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--sage-dark);
    background: rgba(74,103,65,.10);
    border-radius: 4px;
    padding: 1px 6px;
    margin-left: 4px;
    vertical-align: middle;
}

.cas-piece-sub {
    font-size: 12px;
    color: var(--mist);
    margin-bottom: 10px;
}

.cas-fixed-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--charcoal);
    padding: 4px 0;
}

.cas-dim-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.cas-dim-select {
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    color: var(--charcoal);
    cursor: pointer;
    min-width: 74px;
}

.cas-dim-select--sm {
    min-width: 60px;
}

.cas-dim-frac {
    width: 80px;
    padding: 8px 6px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    color: var(--charcoal);
    cursor: pointer;
}

.cas-dim-frac--sm {
    width: 74px;
    font-size: 14px;
}

.cas-dim-unit {
    font-size: 18px;
    color: var(--mist);
    font-weight: 500;
}

/* --- Capped sub-options --- */
.cas-capped-options {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}

.cas-capped-field {
    margin-bottom: 12px;
}

.cas-capped-field:last-child {
    margin-bottom: 0;
}

.cas-capped-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 6px;
}

/* --- 3D Casing illustration --- */
.casing-preview-wrapper {
    text-align: center;
    margin-bottom: 24px;
}

/* --- Casing Preview (door-style slabs) --- */
.casing-preview-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--stone);
}

.cas-preview-row {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cas-preview-scene {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    perspective: 600px;
}

/* --- Shared slab (same design as door-preview-slab) --- */
.cas-slab {
    position: relative;
    border-radius: 2px;
    overflow: visible;
    transform: rotateY(-8deg) rotateX(1deg);
    transform-style: preserve-3d;
    box-shadow:
        inset 2px 1px 0 rgba(255,255,255,0.10),
        inset -1px -1px 0 rgba(0,0,0,0.08),
        4px 4px 6px rgba(0,0,0,0.14),
        8px 10px 20px rgba(0,0,0,0.10),
        14px 18px 36px rgba(0,0,0,0.07);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease;
}
.cas-slab:hover {
    transform: rotateY(-4deg) rotateX(0.5deg) translateY(-2px);
    box-shadow:
        inset 2px 1px 0 rgba(255,255,255,0.12),
        inset -1px -1px 0 rgba(0,0,0,0.10),
        3px 3px 5px rgba(0,0,0,0.12),
        6px 8px 16px rgba(0,0,0,0.08),
        10px 14px 28px rgba(0,0,0,0.05);
}

/* Slab images */
.cas-slab-img {
    display: block;
    object-fit: cover;
    border-radius: 2px;
    transition: opacity 0.35s ease;
}
.cas-slab-img--side {
    width: 36px;
    height: 190px;
}
.cas-slab-img--top {
    width: 36px;
    height: 100px;
}

/* 3D side edge (same as .door-edge) */
.cas-slab-edge {
    position: absolute;
    top: 0;
    right: -7px;
    width: 7px;
    height: 100%;
    background: linear-gradient(90deg,
        rgba(0,0,0,0.22) 0%,
        rgba(0,0,0,0.12) 40%,
        rgba(0,0,0,0.06) 100%);
    border-radius: 0 2px 2px 0;
    transform: rotateY(90deg);
    transform-origin: left center;
    pointer-events: none;
}

/* Labels row */
.cas-slab-labels {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.cas-slab-labels span {
    width: 36px;
    text-align: center;
    font-size: 9px;
    font-weight: 600;
    color: var(--mist);
    text-transform: uppercase;
    letter-spacing: .03em;
}

/* Ground shadow */
.cas-ground-shadow {
    width: 140px;
    height: 8px;
    margin: 2px auto 0;
    background: radial-gradient(ellipse at 55% 50%, rgba(0,0,0,0.10) 0%, transparent 72%);
    border-radius: 50%;
    filter: blur(1px);
}

.casing-preview-label {
    display: block;
    font-size: 13px;
    color: var(--mist);
    letter-spacing: 0.4px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    padding: var(--space-3xl) 0;
    background: var(--sand);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-family: var(--font-display);
    font-size: 46px;
    margin-bottom: 24px;
    color: var(--charcoal);
    font-weight: 300;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.about-text p {
    font-size: 16px;
    color: var(--ash);
    margin-bottom: 18px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    gap: 20px;
}

.feature {
    padding: 28px 32px;
    background: var(--white);
    border-radius: 6px;
    border: 1px solid var(--stone);
    border-left: 3px solid transparent;
    transition: all 0.35s var(--ease);
}

.feature:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-left-color: var(--sage);
}

.feature h3 {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--charcoal);
    font-weight: 600;
    letter-spacing: 0.2px;
}

.feature p {
    color: var(--mist);
    font-size: 14px;
    line-height: 1.5;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: var(--space-3xl) 0;
    background: var(--warm-white);
}

.faq-section h2 {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 300;
    color: var(--charcoal);
    letter-spacing: -0.5px;
    margin-bottom: 40px;
    text-align: center;
}

.faq-grid {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-bottom: 1px solid var(--stone);
}

.faq-item:first-child {
    border-top: 1px solid var(--stone);
}

.faq-item summary {
    padding: 22px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--charcoal);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 22px;
    font-weight: 300;
    color: var(--mist);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item[open] summary::after {
    content: "\2212";
}

.faq-item summary:hover {
    color: var(--sage-dark);
}

.faq-item p {
    padding: 0 0 22px;
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
    color: var(--ash);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    padding: 100px 0;
    background: var(--warm-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contact-info h2 {
    font-family: var(--font-display);
    font-size: 46px;
    font-weight: 300;
    color: var(--charcoal);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.contact-info > p {
    color: var(--ash);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--sand);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-detail h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.contact-detail a {
    color: var(--accent);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
}

.contact-detail a:hover {
    color: var(--accent-hover);
}

.contact-detail p {
    color: var(--ash);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.contact-form-wrapper {
    background: var(--white);
    border-radius: 16px;
    padding: 44px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--graphite);
    margin-bottom: 8px;
}

.contact-form label .optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--mist);
    font-size: 11px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--stone);
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 15px;
    color: var(--charcoal);
    background: var(--warm-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(124, 140, 110, 0.12);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b6b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.contact-submit {
    width: 100%;
    padding: 16px;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 4px;
}

.contact-success {
    text-align: center;
    padding: 40px 20px;
}

.contact-success .success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.contact-success h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.contact-success p {
    color: var(--ash);
    font-size: 15px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--charcoal);
    color: var(--white);
    padding: 64px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-link {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.footer-link:hover {
    color: rgba(255,255,255,0.85);
}

.footer-section h3 {
    font-family: var(--font-display);
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
}

.footer-section h4 {
    font-size: 12px;
    margin-bottom: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--mist);
}

.footer-section p {
    color: rgba(255,255,255,0.55);
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.35);
    font-size: 12px;
    letter-spacing: 0.3px;
}

/* ============================================
   PAYMENT MODAL
   ============================================ */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26,26,26,0.45);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s var(--ease);
}

.payment-modal-content {
    background: var(--white);
    border-radius: 8px;
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,0.2);
    animation: slideUp 0.35s var(--ease);
}

.payment-modal-content.success {
    text-align: center;
    padding: 48px 40px;
}

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

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

.payment-header h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--charcoal);
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--mist);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s var(--ease);
}

.close-modal:hover {
    background: var(--sand);
    color: var(--charcoal);
}

.order-summary {
    padding: 28px 32px;
    border-bottom: 1px solid var(--stone);
}

.order-summary h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 18px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.order-summary p {
    font-size: 14px;
    color: var(--charcoal);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.order-summary p strong {
    font-weight: 600;
    color: var(--mist);
}

.order-summary .total-line {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--stone);
    font-size: 18px;
    font-weight: 600;
}

/* Tax breakdown in checkout */
.tax-breakdown {
    font-size: 14px;
    color: var(--ash);
}

/* Order items in cart checkout */
.order-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 14px;
    max-height: 380px;
    overflow-y: auto;
}

.order-item-card {
    background: var(--sand);
    border: 1px solid var(--stone);
    border-radius: 6px;
    padding: 16px;
}

.order-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--stone);
}

.order-item-header strong {
    font-size: 15px;
    color: var(--charcoal);
}

.order-item-qty {
    background: var(--sage-dark);
    color: white;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.order-item-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 12px;
}

.order-item-details p {
    font-size: 13px;
    margin: 0;
    display: block;
}

.order-item-details p strong {
    font-weight: 600;
    color: var(--mist);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.order-item-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--stone);
}

.order-item-price .unit-price {
    font-size: 13px;
    color: var(--mist);
}

.order-item-price .item-total {
    font-size: 16px;
    font-weight: 600;
    color: var(--charcoal);
}

/* Scrollbar for order items */
.order-items::-webkit-scrollbar { width: 6px; }
.order-items::-webkit-scrollbar-track { background: var(--sand); border-radius: 3px; }
.order-items::-webkit-scrollbar-thumb { background: var(--stone); border-radius: 3px; }

#intuit-payment-container {
    padding: 32px;
    min-height: 100px;
}

.payment-actions {
    padding: 20px 32px;
    display: flex;
    gap: 12px;
    border-top: 1px solid var(--stone);
}

.cancel-button {
    flex: 1;
    padding: 14px;
    background: var(--sand);
    border: 1px solid var(--stone);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--charcoal);
    cursor: pointer;
    transition: all 0.2s var(--ease);
    font-family: var(--font-main);
}

.cancel-button:hover {
    background: var(--cream);
}

.confirm-payment-button {
    flex: 2;
    padding: 14px;
    background: var(--sage-dark);
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s var(--ease);
    font-family: var(--font-main);
    letter-spacing: 0.5px;
}

.confirm-payment-button:hover {
    background: var(--charcoal);
}

.confirm-payment-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.payment-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 12px;
    color: var(--mist);
    background: var(--sand);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Payment Error */
.payment-error {
    margin: 16px 0;
    animation: slideDown 0.3s var(--ease);
}

.payment-error p {
    color: #c53030;
    margin: 0;
    padding: 12px 16px;
    background: #fff5f5;
    border-radius: 4px;
    border: 1px solid #feb2b2;
    font-size: 14px;
    line-height: 1.5;
}

/* Success State */
.success-icon {
    margin: 0 auto 24px;
    animation: scaleIn 0.4s var(--ease);
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

.payment-modal-content.success h3 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 300;
    color: var(--charcoal);
    margin-bottom: 12px;
}

.payment-modal-content.success p {
    font-size: 16px;
    color: var(--ash);
    margin-bottom: 12px;
}

.payment-modal-content.success .order-details {
    font-size: 20px;
    font-weight: 600;
    color: var(--charcoal);
    margin: 20px 0;
}

.payment-modal-content.success .shipping-info {
    font-size: 14px;
    margin-bottom: 28px;
}

.payment-modal-content.success .transaction-id {
    font-size: 12px;
    color: var(--mist);
    font-family: 'Courier New', monospace;
    margin: 8px 0 16px;
    padding: 8px 16px;
    background: var(--sand);
    border-radius: 4px;
}

.close-success-button {
    padding: 14px 48px;
    background: var(--sage-dark);
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s var(--ease);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: var(--font-main);
}

.close-success-button:hover {
    background: var(--charcoal);
}

/* Payment Form Section */
.payment-form-section {
    padding: 28px 32px;
    border-bottom: 1px solid var(--stone);
}

.payment-form-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 18px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ash);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-field input,
.form-field select {
    padding: 12px 14px;
    border: 1.5px solid var(--stone);
    border-radius: 4px;
    font-size: 15px;
    font-family: var(--font-main);
    transition: all 0.2s var(--ease);
    color: var(--charcoal);
    background: var(--white);
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(124,140,110,0.12);
}

.form-field input::placeholder {
    color: var(--stone);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   SHOPPING CART MODAL
   ============================================ */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: flex-end;
}

.cart-modal.active {
    display: flex;
}

.cart-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,26,26,0.4);
    backdrop-filter: blur(6px);
    z-index: 1;
}

.cart-modal-content {
    position: relative;
    background: var(--white);
    width: 480px;
    max-width: 90vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(0,0,0,0.08);
    animation: slideInRight 0.35s var(--ease);
    z-index: 2;
    overflow: hidden;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

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

.cart-modal-header h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.cart-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--mist);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s var(--ease);
}

.cart-close:hover {
    color: var(--charcoal);
}

.cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.cart-empty-icon {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: 0.25;
}

.cart-empty p {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cart-empty-desc {
    color: var(--mist);
    margin-bottom: 24px !important;
}

.cart-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.cart-items {
    flex: 0 1 auto;
    overflow: visible;
    padding: 20px;
}

.cart-content::-webkit-scrollbar { width: 6px; }
.cart-content::-webkit-scrollbar-track { background: var(--sand); }
.cart-content::-webkit-scrollbar-thumb { background: var(--stone); border-radius: 3px; }

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--stone);
    border-radius: 6px;
    margin-bottom: 14px;
    background: var(--warm-white);
    position: relative;
}

.cart-item-details { min-width: 0; }

.cart-item-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--charcoal);
}

.cart-item-specs {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 12px;
    color: var(--mist);
}

.cart-item-specs span { display: block; }

.cart-item-quantity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.cart-item-quantity label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--mist);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.quantity-input-small {
    width: 56px;
    padding: 8px;
    border: 1px solid var(--stone);
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    font-family: var(--font-main);
    color: var(--charcoal);
    background: var(--white);
}

.cart-item-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

.item-unit-price {
    font-size: 11px;
    color: var(--mist);
    margin-bottom: 4px;
}

.item-total-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--charcoal);
}

.cart-item-remove {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--mist);
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--ease);
    border-radius: 4px;
}

.cart-item-remove:hover {
    color: #c53030;
    background: rgba(197,48,48,0.06);
}

.cart-summary {
    flex-shrink: 0;
    padding: 20px;
    border-top: 1px solid var(--stone);
    background: var(--warm-white);
}

.cart-province-row {
    margin-bottom: 16px;
}

.cart-province-row label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--graphite);
    margin-bottom: 6px;
}

.cart-province-row select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--stone);
    border-radius: 4px;
    font-size: 13px;
    color: var(--charcoal);
    background: var(--white);
    font-family: var(--font-main);
    cursor: pointer;
}

.cart-province-row select:focus {
    outline: none;
    border-color: var(--sage-dark);
}

.cart-tax-row {
    color: var(--graphite);
    font-size: 13px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--ash);
}

.cart-summary-row:last-child { margin-bottom: 0; }

.cart-total-row {
    font-size: 19px;
    font-weight: 700;
    color: var(--charcoal);
    padding-top: 12px;
    border-top: 1.5px solid var(--stone);
    margin-top: 10px;
}

.cart-actions {
    flex-shrink: 0;
    display: flex;
    gap: 10px;
    padding: 20px;
    background: var(--white);
}

.btn-primary, .btn-secondary {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    font-family: var(--font-main);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--sage-dark);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--charcoal);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-secondary {
    background: var(--sand);
    color: var(--charcoal);
    border: 1px solid var(--stone);
    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
}

.btn-secondary:hover {
    background: var(--white);
    border-color: var(--ash);
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--sage-dark);
    color: white;
    padding: 14px 24px;
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(74,90,62,0.25);
    font-weight: 600;
    font-size: 14px;
    z-index: 10001;
    transform: translateX(400px);
    transition: transform 0.35s var(--ease);
}

.cart-notification.show {
    transform: translateX(0);
}

/* ============================================
   COOKIE CONSENT BANNER (class-based)
   ============================================ */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--charcoal);
    color: var(--white);
    padding: 16px 24px;
    z-index: 10000;
    font-family: var(--font-main);
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
    transform: translateY(100%);
    transition: transform 0.4s var(--ease);
}

.cookie-banner.visible {
    display: block;
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.cookie-text {
    margin: 0;
    color: rgba(255,255,255,0.8);
    flex: 1;
    min-width: 280px;
}

.cookie-link {
    color: var(--sage);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.cookie-accept {
    background: var(--sage-dark);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-main);
    transition: background 0.2s var(--ease);
}

.cookie-accept:hover {
    background: var(--sage);
}

.cookie-decline {
    background: transparent;
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 18px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.2s var(--ease);
}

.cookie-decline:hover {
    color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.4);
}

/* ============================================
   HAMBURGER MENU TOGGLE (mobile)
   ============================================ */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 200;
    width: 44px;
    height: 44px;
    align-items: center;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

.nav-toggle.open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   MOBILE STICKY ADD-TO-CART BAR
   ============================================ */
.mobile-sticky-cart {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--stone);
    padding: 12px 20px;
    z-index: 9998;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
    transform: translateY(100%);
    transition: transform 0.3s var(--ease);
}

.mobile-sticky-cart.visible {
    transform: translateY(0);
}

.mobile-sticky-cart-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.mobile-sticky-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--charcoal);
}

.mobile-sticky-btn {
    padding: 12px 28px;
    background: var(--sage-dark);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-main);
    transition: background 0.2s var(--ease);
    white-space: nowrap;
}

.mobile-sticky-btn:hover {
    background: var(--charcoal);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

/* ============================================
   CART BADGE BOUNCE ANIMATION
   ============================================ */
@keyframes cartBadgeBounce {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.4); }
    50%  { transform: scale(0.9); }
    70%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.cart-count.bounce {
    animation: cartBadgeBounce 0.4s var(--ease);
}

/* ============================================
   BUTTON LOADING STATE
   ============================================ */
.order-button.loading,
.mobile-sticky-btn.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.order-button.loading::after,
.mobile-sticky-btn.loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: btnSpinner 0.6s linear infinite;
    right: 16px;
    top: 50%;
    margin-top: -9px;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .configurator-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .price-summary {
        position: static;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .option-cards {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    /* Bring cart button into header flow on tablet to prevent overlap - now always in flow */
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    header .container {
        padding: 12px 16px;
        height: auto;
        flex-wrap: wrap;
    }

    .logo {
        display: none;
    }

    /* Hamburger visible on mobile – left corner */
    .nav-toggle {
        display: flex;
        order: 1;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 10;
        gap: 0;
        margin-left: 0;
        padding: 12px 0 4px;
        border-top: 1px solid var(--stone);
    }

    nav.open {
        display: flex;
    }

    nav a {
        font-size: 14px;
        letter-spacing: 0.6px;
        padding: 12px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .language-toggle {
        flex-shrink: 0;
    }

    .cart-button {
        width: 44px;
        height: 44px;
        padding: 10px;
        box-shadow: none;
        border: 1px solid var(--stone);
        flex-shrink: 0;
    }

    .cart-count {
        top: -3px;
        right: -3px;
        width: 17px;
        height: 17px;
        font-size: 10px;
    }

    /* Hide cart & lang when hamburger menu is open */
    .header-left:has(.nav-toggle.open) ~ .header-right {
        display: none;
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 10px;
        min-height: auto;
        min-width: auto;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero {
        padding: 90px 20px 90px;
        min-height: 460px;
        background-image: url('images/Banner_picture4_mobile.jpg');
    }

    .hero h1,
    .hero h2 {
        font-size: 46px;
        letter-spacing: -0.3px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-title {
        font-size: 36px;
    }

    .section-label {
        font-size: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .price-card {
        padding: 24px;
    }

    .price-summary {
        scroll-margin-top: 80px;
        max-height: none;
        overflow-y: visible;
    }

    .option-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Handles cards stack full-width */
    #handlesCards {
        grid-template-columns: 1fr;
    }

    .finish-image {
        width: 100px;
        height: 100px;
    }

    .stain-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .stain-card-image {
        width: 100%;
        max-width: 200px;
        height: 180px;
    }

    .stain-card-dropdown {
        position: static;
        width: 100%;
        margin-top: 14px;
    }

    .stain-swatch-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }

    .stain-swatch-thumb {
        width: 38px;
        height: 38px;
    }

    .option-pills {
        gap: 6px;
    }

    .opening-config {
        flex-direction: column;
        gap: 20px;
    }
    
    .swing-chart-container {
        max-width: 100%;
    }

    .option-pill {
        padding: 10px 18px;
        font-size: 13px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .configurator-section {
        padding: 40px 0 60px;
    }

    /* Product Selector responsive */
    .product-selector-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .product-selector-img {
        aspect-ratio: 4 / 3;
    }

    .product-selector-info h3 {
        font-size: 18px;
    }

    /* Column configurator responsive */
    .column-configurator-section .configurator-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Casing configurator responsive */
    .casing-configurator-section .configurator-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cas-dim-select { font-size: 14px; min-width: 68px; }
    .cas-dim-frac { width: 74px; font-size: 14px; }
    .cas-slab-img--side { width: 28px; height: 150px; }
    .cas-slab-img--top { width: 28px; height: 76px; }
    .cas-slab-labels span { width: 28px; font-size: 8px; }
    .cas-preview-scene { gap: 6px; }
    .cas-slab-labels { gap: 6px; }
    .cas-slab-edge { right: -5px; width: 5px; }

    .about-section {
        padding: 60px 0;
    }

    .contact-section {
        padding: 60px 0;
    }

    .contact-form-wrapper {
        padding: 28px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .contact-info h2 {
        font-size: 28px;
    }

    .cart-modal-content {
        width: 100%;
        max-width: 100%;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cart-item-quantity,
    .cart-item-price {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .cart-item-remove {
        position: absolute;
        top: 12px;
        right: 12px;
    }

    /* Show mobile sticky cart bar */
    .mobile-sticky-cart {
        display: block;
    }

    /* Cookie banner stacks on mobile */
    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    header .container {
        flex-wrap: wrap;
        gap: 6px;
        padding: 10px 12px;
    }

    .cart-button {
        width: 44px;
        height: 44px;
        padding: 8px;
    }

    .cart-button svg {
        width: 18px;
        height: 18px;
    }

    .lang-btn {
        padding: 4px 6px;
        font-size: 9px;
    }

    .hero h1,
    .hero h2 {
        font-size: 28px;
    }

    .cta-button {
        padding: 14px 32px;
    }

    /* Ensure touch targets stay accessible */
    .option-pill {
        min-height: 44px;
        padding: 10px 16px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
