:root {
    --bg: #f8f8f8;          /* clean off-white background */
    --surface: #ffffff;     /* pure white surfaces */
    --surface-alt: #f0f2f5; /* cool light gray alt surface */
    --ink: #1a1a2e;         /* deep navy-black body text */
    --brand: #003366;       /* dark navy primary */
    --brand-dark: #002244;  /* navy hover/active state */
    --stroke: #d0d5dc;      /* neutral cool gray border */
    --accent: #cc2200;      /* strong red accent for CTAs */
    --hero-band: #e8ecf0;   /* cool light gray hero strip */
    --rule: #d0d5dc;        /* separator line color (cart item dividers) */
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', 'Segoe UI', Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
}

h1, h2 {
    font-family: Bahnschrift, 'DIN Alternate', 'Franklin Gothic Medium', 'Arial Narrow', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.narrow {
    width: min(760px, 92vw);
}

.section {
    padding: 3rem 0;
}

.alt {
    background: var(--surface-alt);
}

.site-header {
    background: var(--brand);
    border-bottom: 3px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 74px;
    gap: 1rem;
}

.brand {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: Bahnschrift, 'DIN Alternate', 'Franklin Gothic Medium', sans-serif;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.main-nav a,
.dropdown-toggle,
.nav-link-button {
    color: #ffffff;
    text-decoration: none;
    font: inherit;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0.4rem 0.3rem;
    transition: opacity 0.15s ease;
}

.main-nav a:hover,
.dropdown-toggle:hover,
.nav-link-button:hover {
    opacity: 0.75;
}

.main-nav .nav-inline-form {
    margin: 0;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 8px;
    padding: 0.35rem;
}

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

.dropdown-menu a {
    display: block;
    padding: 0.4rem 0.55rem;
    border-radius: 6px;
    color: var(--ink);
}

.dropdown-menu a:hover {
    background: #f0f4f8;
}

.hero h1 {
    margin-top: 0;
}

.hero {
    background: linear-gradient(180deg, #f0f4f8 0%, var(--hero-band) 100%);
    border-bottom: 1px solid var(--stroke);
}

.product-hero {
    background: linear-gradient(180deg, #f0f4f8 0%, var(--hero-band) 100%);
    border-bottom: 1px solid var(--stroke);
}

.product-hero-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1rem;
    align-items: start;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 1.2rem;
    align-items: center;
}

.eyebrow {
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: #5a6478;
    margin: 0;
}

.hero-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.product-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.product-pill {
    display: inline-block;
    border-radius: 999px;
    border: 1px solid #c8cdd8;
    background: #f0f4f8;
    color: var(--brand);
    padding: 0.3rem 0.7rem;
    font-size: 0.84rem;
    font-weight: 700;
}

.product-image-card {
    margin: 0;
    background: #fff;
    border: 1px solid var(--stroke);
    border-radius: 10px;
    overflow: hidden;
}

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

.product-image-card figcaption {
    margin: 0;
    padding: 0.5rem 0.7rem;
    font-size: 0.84rem;
    color: #4a5568;
    border-top: 1px solid var(--stroke);
}

.hero-video {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: #000;
    aspect-ratio: 16 / 9;
}

.grid {
    display: grid;
    gap: 1rem;
}

.grid.two {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

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

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

.card {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 10px;
    padding: 1rem;
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, transform 0.15s ease, border-color 0.15s ease;
}

.cart-item-image {
    margin: 0 0 0.5rem;
}

.cart-item-image img {
    display: block;
    width: 100%;
    max-width: 240px;
    border: 1px solid var(--stroke);
    border-radius: 10px;
    background: #fff;
}

.product-tile-grid .product-tile {
    border-top: 4px solid transparent;
    transition: border-color 0.15s ease, transform 0.15s ease;
    display: grid;
    gap: 0.65rem;
    align-content: start;
}

.product-tile-grid .product-tile:hover {
    border-top-color: var(--accent);
    transform: translateY(-1px);
}

.tile-add-form {
    margin-top: 0.25rem;
}

.tile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.section-lead {
    max-width: 72ch;
}

.centered-cta {
    margin-top: 1rem;
}

.account-rule {
    display: inline-block;
    border-radius: 999px;
    border: 1px solid #c8cdd8;
    background: #e8ecf0;
    color: var(--brand);
    padding: 0.35rem 0.7rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.product-list-grid {
    margin-bottom: 2rem;
}

.product-list-grid--replacement {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.product-list-card {
    display: grid;
    gap: 0.6rem;
    padding: 0.8rem;
}

.products-subsection-heading {
    margin: 0 0 1rem;
}

.product-list-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--stroke);
}

.product-list-grid .card:hover {
    border-top: 4px solid var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.product-list-actions {
    margin-top: 0.25rem;
}

.callout {
    border-top: 1px solid var(--stroke);
    padding-top: 2rem;
}

.product-help-callout {
    text-align: left;
}

.button {
    display: inline-block;
    border: 0;
    background: var(--brand);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.button:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.button:active {
    transform: translateY(0);
    box-shadow: none;
}

.button.ghost {
    background: transparent;
    color: var(--brand);
    border: 1px solid var(--brand);
}

.button.ghost:hover {
    background: var(--brand);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.button.danger {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.button.danger:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(204, 34, 0, 0.3);
}

.stack {
    display: grid;
    gap: 0.65rem;
}

.product-page .card {
    padding: 1.05rem;
}

@media (max-width: 760px) {
    .product-list-grid--replacement {
        grid-template-columns: 1fr;
    }
}

.product-compare-card p {
    margin-top: 0;
}

.product-switch {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.65rem;
}

.product-switch a {
    display: block;
    text-decoration: none;
    color: var(--ink);
    border: 1px solid var(--stroke);
    border-radius: 8px;
    background: #fff;
    padding: 0.55rem 0.7rem;
}

.product-switch a:hover {
    border-color: #b0b8c8;
    background: #f0f4f8;
}

.product-switch a.active {
    border-color: var(--brand);
    background: #e8eef8;
    color: var(--brand-dark);
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--stroke);
    border-radius: 8px;
    padding: 0.6rem;
    font: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23003366' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

select:hover {
    border-color: #b0b8c8;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.15);
}

/* ── Form field icons ───────────────────────────────── */
.input-icon-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8896aa;
    pointer-events: none;
    display: flex;
    align-items: center;
    line-height: 1;
}

.input-icon-wrap input,
.input-icon-wrap select {
    padding-left: 2.4rem;
}

.input-icon-wrap--textarea .input-icon {
    top: 0.72rem;
    transform: none;
}

.input-icon-wrap--textarea textarea {
    padding-left: 2.4rem;
}

.site-footer {
    padding: 2rem 0;
    border-top: 3px solid var(--accent);
    background: #1a1a2e;
    color: #c8d0da;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-footer nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.site-footer a {
    color: #a0aabb;
}

.site-footer a:hover {
    color: #ffffff;
}

@media (max-width: 760px) {
    .header-inner {
        align-items: flex-start;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        flex-direction: column;
    }

    .hero-layout {
        grid-template-columns: 1fr;
    }

    .product-page .section {
        padding: 2rem 0;
    }

    .product-page .product-hero h1 {
        font-size: clamp(1.55rem, 6vw, 2rem);
        line-height: 1.2;
    }

    .product-page .product-hero p {
        margin-bottom: 0.75rem;
    }

    .product-page .product-hero-layout {
        grid-template-columns: 1fr;
    }

    .product-page .product-hero-meta {
        gap: 0.35rem;
    }

    .product-page .product-pill {
        font-size: 0.76rem;
        padding: 0.24rem 0.58rem;
    }

    .product-page .product-switch {
        grid-template-columns: 1fr;
    }

    .product-page .card {
        padding: 0.9rem;
    }

    .product-page .stack {
        gap: 0.55rem;
    }

    .product-page input,
    .product-page select,
    .product-page textarea {
        padding: 0.55rem;
    }
}

/* ── Hero image section ──────────────────────────────── */
.hero-image-section {
    width: 100%;
    overflow: hidden;
    line-height: 0; /* removes inline gap below img */
    border-bottom: 3px solid var(--accent);
}

.hero-image {
    display: block;
    width: 100%;
    height: clamp(320px, 42vw, 760px);
    object-fit: cover;
    object-position: center 62%;
}

/* ── Video section ───────────────────────────────────── */
.video-section {
    background: #fff;
}

.video-section .container {
    background: #fff;
}

.video-section .hero-video {
    display: block;
    width: 100%;
    max-width: 1120px;
    aspect-ratio: 16 / 9;
    border-radius: 0;
    border: none;
    background: #000;
    margin: 0 auto;
}

.home-intro-band {
    border-bottom: 1px solid #ccd3de;
    background: var(--brand);
    text-align: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.home-intro-band .home-section-title {
    margin: 0;
    color: #fff;
}

/* ── Home problem + solution sections ─────────────────── */
.home-block {
    border-top: 3px solid #ccd3de;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.home-section-title {
    font-size: clamp(2rem, 4.2vw, 2.9rem);
    line-height: 1.1;
    letter-spacing: 0.01em;
    margin: 0 0 1rem;
}

.home-problem-intro {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1rem;
    align-items: start;
    margin-top: 0.75rem;
}

.home-problem-main-image {
    margin: 0;
    border: 1px solid var(--stroke);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.home-problem-main-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.home-problem-copy p {
    margin: 0;
}

.home-problem-subtitle {
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    margin: 1.2rem 0 0.65rem;
}

.home-problem-grid,
.home-solution-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
}

.home-problem-card,
.home-solution-card {
    margin: 0;
    border: 1px solid var(--stroke);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.home-problem-card img,
.home-solution-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.home-problem-card figcaption {
    padding: 0.45rem 0.6rem;
    font-size: 0.86rem;
    font-weight: 700;
    border-top: 1px solid var(--stroke);
}

.home-solution-video {
    display: block;
    width: 100%;
    max-width: 1120px;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--stroke);
    border-radius: 10px;
    background: #000;
    margin: 0.75rem auto 0;
}

.home-patent-image-wrap {
    margin: 1rem auto 0.5rem;
    text-align: center;
}

.home-patent-image {
    display: inline-block;
    max-width: min(220px, 100%);
    width: 100%;
    height: auto;
}

.home-solution-cta {
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    margin: 0 auto;
}

.home-reviews-media {
    margin: 0 0 1rem;
}

.home-reviews-section .home-section-title {
    text-align: center;
}

.home-reviews-video {
    display: block;
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    border: 1px solid var(--stroke);
    border-radius: 10px;
    background: #000;
    aspect-ratio: 16 / 9;
}

.home-review-card {
    border-top: 4px solid var(--accent);
    background: linear-gradient(180deg, #fff 0%, #fff4ee 100%);
}

.home-review-meta {
    margin: 0;
}

.home-review-stars {
    margin: 0.2rem 0 0.45rem;
    letter-spacing: 0.08em;
    font-size: 1rem;
    color: #c7ccd4;
}

.home-review-stars .is-filled {
    color: #ffb400;
}

/* ── Product tile image ──────────────────────────────── */
.product-tile-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

/* ── Responsive: hero height on mobile ───────────────── */
@media (max-width: 760px) {
    .hero-image {
        height: 260px;
    }

    .home-block {
        padding-top: 2.6rem;
        padding-bottom: 2.6rem;
    }

    .home-problem-intro {
        grid-template-columns: 1fr;
    }

    .home-problem-grid,
    .home-solution-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ============================================================
   Phase 4 — Product Page Components
   ============================================================ */

/* --- Option Pill Selectors (print options, design proof) --- */
.option-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.option-pill {
    display: inline-block;
    border: 2px solid var(--stroke);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    padding: 0.45rem 1rem;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s;
}

.option-pill:hover {
    border-color: var(--brand);
    background: #e8eef8;
}

.option-pill.active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
    font-weight: 700;
}

/* --- Wind Slits Toggle Switch --- */
.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.toggle-switch {
    display: inline-flex;
    align-items: center;
}

.toggle-input {
    display: none;
}

.toggle-track {
    display: block;
    width: 48px;
    height: 26px;
    border-radius: 999px;
    background: var(--stroke);
    position: relative;
    cursor: pointer;
    transition: background 0.15s;
}

.toggle-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    transition: transform 0.15s;
}

.toggle-input:checked + .toggle-track {
    background: var(--brand);
}

.toggle-input:checked + .toggle-track::after {
    transform: translateX(22px);
}

/* --- Product Description / Reviews Tabs --- */
.product-tabs-section {
    padding: 2rem 0;
}

.product-tabs__nav {
    display: flex;
    border-bottom: 2px solid var(--stroke);
    margin-bottom: 1.5rem;
}

.product-tab-btn {
    padding: 0.65rem 1.5rem;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    color: #666;
    transition: color 0.15s, border-color 0.15s;
}

.product-tab-btn--active {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

.product-tab-btn:hover:not(.product-tab-btn--active) {
    color: var(--ink);
}

.product-tab-panel {
    min-height: 6rem;
    line-height: 1.7;
}

/* Keeps the paragraphs and line breaks the admin typed into the description box */
.product-description {
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.product-description a {
    color: var(--brand);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.product-description a:hover {
    color: var(--accent);
}

.product-tab-panel--hidden {
    display: none;
}

/* --- Product Page Reviews --- */
.product-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.product-review-card {
    border-left: 3px solid var(--accent);
    padding: 1rem 1.25rem;
    background: #f8f9fb;
    border-radius: 0 6px 6px 0;
}

.product-review-stars {
    margin: 0 0 0.4rem;
    letter-spacing: 0.08em;
    font-size: 1.1rem;
    color: #c7ccd4;
}

.product-review-stars .is-filled {
    color: #ffb400;
}

.product-review-title {
    font-weight: 700;
    margin: 0 0 0.3rem;
}

.product-review-text {
    margin: 0 0 0.6rem;
    line-height: 1.6;
}

.product-review-meta {
    font-size: 0.82rem;
    color: #777;
    margin: 0;
}

.product-reviews-empty {
    color: #777;
    font-style: italic;
    margin-top: 0.5rem;
}

.review-status-success {
    padding: 0.65rem 1rem;
    border-radius: 4px;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    margin-bottom: 1.25rem;
}

.review-status-error {
    padding: 0.65rem 1rem;
    border-radius: 4px;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    margin-bottom: 1.25rem;
}

/* --- Artwork Upload Preview --- */
.artwork-preview {
    max-width: 120px;
    max-height: 120px;
    border: 2px solid var(--stroke);
    border-radius: 4px;
    display: block;
    margin-top: 0.5rem;
    object-fit: contain;
}

.change-file-link {
    display: none;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--brand);
    cursor: pointer;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
}

.upload-hint {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.35rem;
}

/* --- Product Price Display --- */
.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand);
    margin: 0.25rem 0 1rem;
}

.product-price--tbd {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
    font-style: italic;
}

/* --- Product Hero Layout (side-by-side: image left, form right) --- */
.product-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.product-hero-img {
    width: 100%;
    border-radius: 6px;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.product-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.product-gallery-thumb {
    border: 2px solid var(--stroke);
    border-radius: 6px;
    background: #fff;
    padding: 0;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-gallery-thumb:hover,
.product-gallery-thumb:focus-visible {
    border-color: var(--brand);
    transform: translateY(-1px);
}

.product-gallery-thumb.is-active {
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand);
}

.product-gallery-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 4px;
}

/* --- Product Form Section --- */
.product-form-section {
    padding: 2.5rem 0;
}

.form-fieldset {
    border: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink);
    margin-bottom: 0.4rem;
}

.form-quantity {
    width: 72px;
    padding: 0.45rem 0.6rem;
    border: 2px solid var(--stroke);
    border-radius: 4px;
    font: inherit;
    font-size: 1rem;
}

.product-add-to-cart {
    width: 100%;
    margin-top: 0.5rem;
    text-align: center;
}

/* --- Artwork Upload Section (shown/hidden via JS) --- */
#artworkSection {
    padding: 1rem;
    border: 1.5px dashed var(--stroke);
    border-radius: 6px;
    background: #f8f9fb;
    margin-top: 0.25rem;
}

/* --- Responsive: collapse product hero grid on mobile --- */
@media (max-width: 760px) {
    .product-hero-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Phase 5 — Cart and Checkout
   ============================================================ */

/* Two-column cart layout: items left (1.8fr), summary right (1fr) */
.cart-layout {
    grid-template-columns: 1.8fr 1fr;
    align-items: start;
}

@media (max-width: 760px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

/* Bullet list of configured options below product name in cart */
.cart-item-options {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    color: var(--ink);
}

.cart-item-options li {
    padding: 0.15rem 0;
}

.cart-artwork-thumb {
    display: block;
    width: 100%;
    max-width: 140px;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    border: 1px solid var(--stroke);
    border-radius: 6px;
    background: #f8f9fb;
    margin-top: 0.4rem;
}

/* Cart item card row: product info + pricing + actions */
.cart-item-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--rule);
}

.cart-item-card:last-child {
    border-bottom: none;
}

/* Per-item pricing display */
.cart-item-pricing {
    text-align: right;
    white-space: nowrap;
}

.cart-item-line-total {
    font-weight: bold;
    font-size: 1.1rem;
}

/* Empty cart state */
.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--ink);
}

/* Order summary sticky sidebar */
.cart-summary-column {
    position: sticky;
    top: 1.5rem;
}

.cart-summary-total {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0.5rem 0 1rem;
}

/* Order Confirmation */
.confirmation-success {
    text-align: center;
    padding: 4rem 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.confirmation-checkmark {
    font-size: 5rem;
    color: #2e7d32;
    line-height: 1;
    margin-bottom: 1rem;
}

.confirmation-success h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--ink);
}

.confirmation-success p {
    color: var(--ink);
    margin-bottom: 2rem;
}

.confirmation-success .hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Toggle switch */
.toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    user-select: none;
}

.toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-track {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--stroke);
    border-radius: 12px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.toggle-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.toggle-input:checked + .toggle-track {
    background: var(--brand);
}

.toggle-input:checked + .toggle-track::after {
    transform: translateX(20px);
}

/* ── Admin order table ─────────────────────────────────────────── */

.admin-order-count {
    color: var(--muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.admin-search {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1.5rem;
}

.admin-search-input {
    flex: 1;
    min-width: 180px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--stroke);
    border-radius: 4px;
    font-size: 0.9rem;
}

.admin-search-select {
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    border: 1px solid var(--stroke);
    border-radius: 4px;
    font-size: 0.9rem;
    background: #fff;
}

.admin-orders {
    border: 1px solid var(--stroke);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.admin-orders-header {
    display: grid;
    grid-template-columns: 2fr 3fr 2fr 1.5fr 1.5fr;
    gap: 0;
    padding: 0.6rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--stroke);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.admin-order-row {
    border-bottom: 1px solid var(--stroke);
}

.admin-order-row:last-child {
    border-bottom: none;
}

.admin-order-summary {
    display: grid;
    grid-template-columns: 2fr 3fr 2fr 1.5fr 1.5fr;
    gap: 0;
    padding: 0.75rem 1rem;
    cursor: pointer;
    list-style: none;
    font-size: 0.9rem;
    align-items: center;
}

.admin-order-summary::-webkit-details-marker {
    display: none;
}

.admin-order-summary::marker {
    content: none;
}

.admin-order-row[open] .admin-order-summary {
    background: var(--surface);
    border-bottom: 1px solid var(--stroke);
}

.admin-order-summary:hover {
    background: #eef2f7;
    cursor: pointer;
}

.admin-order-detail {
    padding: 1rem 1.25rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: flex-start;
    background: #fafafa;
}

.admin-order-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    min-width: 200px;
}

.admin-order-item {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    font-size: 0.875rem;
    color: var(--text);
}

.admin-order-item strong {
    width: 100%;
}

.admin-order-item span {
    color: var(--muted);
}

.admin-status-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.admin-status-form label {
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.admin-status-form select {
    padding: 0.4rem 2.5rem 0.4rem 0.6rem;
    border: 1px solid var(--stroke);
    border-radius: 4px;
    font-size: 0.875rem;
    background: #fff;
}

.admin-pagination {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}

.admin-product-grid {
    display: grid;
    gap: 1rem;
}

.admin-product-card {
    display: grid;
    gap: 0.75rem;
}

.admin-product-card h3 {
    margin: 0;
}

.admin-product-card p {
    margin: 0;
}

.admin-product-form {
    display: grid;
    gap: 0.75rem;
}

.admin-product-form label {
    display: grid;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.admin-product-form input,
.admin-product-form textarea {
    width: 100%;
    border: 1px solid var(--stroke);
    border-radius: 6px;
    padding: 0.55rem 0.65rem;
    font: inherit;
}

.admin-product-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.75rem;
}

.admin-product-image-field {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.admin-product-image-label {
    margin: 0;
    font-weight: 700;
}

.admin-product-image-field img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--stroke);
    border-radius: 8px;
    background: #fff;
}

.admin-image-upload-button {
    width: fit-content;
}

.admin-image-file-input {
    display: none;
}

.admin-image-file-name {
    margin: 0;
    font-size: 0.86rem;
    color: #4a5568;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ============================================================
   Admin — variable-length image gallery
   ============================================================ */

.admin-image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.admin-image-slot {
    position: relative;
    width: 110px;
    flex-shrink: 0;
}

.admin-image-thumb {
    display: block;
    width: 110px;
    height: 80px;
    object-fit: cover;
    border: 1px solid var(--stroke);
    border-radius: 6px;
    background: #f5f5f5;
}

.admin-image-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 0.7rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-image-remove:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.75);
    transform: scale(1.1);
}

.admin-image-remove:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.admin-image-file-name {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    color: #4a5568;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 110px;
}

.admin-image-add {
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
    margin-bottom: 0.5rem;
}

/* ============================================================
   Phase 7 — Mobile Navigation Drawer
   ============================================================ */

/* Hamburger button — hidden on desktop, visible on mobile */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.nav-hamburger-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
}

/* Always-visible mobile icons (cart + account) — hidden on desktop */
.nav-icons-always {
    display: none;
}

/* Drawer panel — off-canvas, slides in from right */
.nav-drawer {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: var(--brand);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 100;
    overflow-y: auto;
    padding: 1.5rem 1rem;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-drawer.is-open {
    transform: translateX(0);
}

/* Drawer links */
.nav-drawer a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-drawer a:last-child {
    border-bottom: 0;
}

/* Backdrop */
.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99;
}

.nav-backdrop.is-open {
    display: block;
}

@media (max-width: 760px) {
    /* Override Phase 1 column stacking — header stays as single row on mobile */
    .header-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 0;
        flex-wrap: nowrap;
        min-height: 56px;
    }

    /* Show hamburger button */
    .nav-hamburger {
        display: flex;
    }

    /* Show always-visible cart + account icons */
    .nav-icons-always {
        display: flex;
        gap: 0.75rem;
        align-items: center;
    }

    .nav-icons-always a {
        color: #ffffff;
        text-decoration: none;
        font-size: 0.9rem;
    }

    /* Hide desktop full nav */
    .main-nav {
        display: none;
    }

    /* Show drawer as flex column when open */
    .nav-drawer {
        display: flex;
    }
}

/* ============================================================
   Phase 7 — Responsive Audit Fixes
   ============================================================ */

/* Admin desktop-only notice — hidden by default, shown on mobile */
.admin-mobile-notice {
    display: none;
}

@media (max-width: 760px) {
    /* Fix: Cart summary sticky causes mid-scroll freeze in single-column layout */
    .cart-summary-column {
        position: static;
    }

    /* Fix: Cart item pricing white-space:nowrap causes horizontal overflow on narrow screens */
    .cart-item-pricing {
        white-space: normal;
    }

    /* Fix: Checkout two-column grid may not collapse below ~520px with auto-fit minmax(260px,1fr) */
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    /* Admin mobile notice — visible on mobile */
    .admin-mobile-notice {
        display: block;
        padding: 0.875rem 1rem;
        background: var(--surface-alt, #f5f5f5);
        border: 1px solid var(--stroke, #d0d5dc);
        border-radius: 8px;
        margin-bottom: 1.25rem;
        font-size: 0.95rem;
        color: var(--ink);
    }

    /* Hide admin content on mobile — notice is sufficient */
    .admin-mobile-notice ~ h1,
    .admin-mobile-notice ~ section {
        display: none;
    }
}

/* ============================================================
   Industry Pages
   ============================================================ */

/* Hero: full-bleed image with navy gradient overlay */
.industry-hero {
    position: relative;
    overflow: hidden;
    background: var(--brand);
}

.industry-hero-img {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
    opacity: 0.65;
}

.industry-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 34, 68, 0.82) 0%,
        rgba(0, 34, 68, 0.45) 60%,
        transparent 100%
    );
    display: flex;
    align-items: center;
}

.industry-hero-content {
    padding: 2rem 0;
}

.industry-hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 0.5rem;
}

.industry-hero-title {
    color: #ffffff;
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
    margin: 0 0 0.65rem;
    line-height: 1.1;
}

.industry-hero-lead {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.1rem;
    max-width: 50ch;
    margin: 0;
    line-height: 1.55;
}

/* Split section: text + image side by side */
.industry-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.industry-split-text h2 {
    margin-top: 0;
    font-size: 1.65rem;
}

.industry-split-text p {
    line-height: 1.75;
    color: #2d3748;
}

.industry-split-text p + p {
    margin-top: 0.85rem;
}

.industry-split-img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--stroke);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

/* Benefits grid */
.industry-benefits-heading {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
}

.industry-benefit-card {
    border-top: 3px solid var(--accent);
    border-radius: 0 0 10px 10px;
    padding: 1.25rem 1.25rem 1.25rem;
}

.industry-benefit-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    color: var(--brand);
}

.industry-benefit-card p {
    margin: 0;
    line-height: 1.65;
    font-size: 0.95rem;
}

/* CTA band at the bottom */
.industry-cta-band {
    background: var(--brand);
    padding: 3.5rem 0;
    text-align: center;
}

.industry-cta-band h2 {
    color: #ffffff;
    margin: 0 0 0.6rem;
    font-size: 1.75rem;
}

.industry-cta-band p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 auto 1.5rem;
    max-width: 52ch;
    font-size: 1rem;
    line-height: 1.6;
}

.industry-cta-band .button {
    background: var(--accent);
    border-color: var(--accent);
    font-size: 1rem;
    padding: 0.75rem 2rem;
}

.industry-cta-band .button:hover {
    background: #a81c00;
    border-color: #a81c00;
}

/* Photo pair: two images side by side used in some pages */
.industry-photo-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.industry-photo-pair img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--stroke);
}

/* Responsive */
@media (max-width: 760px) {
    .industry-hero-img {
        height: 280px;
    }

    .industry-split {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .industry-split-media {
        order: -1;
    }

    .industry-photo-pair {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Blog
   ============================================================ */

.blog-post-card {
    display: grid;
    gap: 0.5rem;
}

.blog-post-meta {
    margin: 0;
    font-size: 0.85rem;
    color: #5a6478;
}

.blog-post-title {
    margin: 0;
    font-size: 1.3rem;
}

.blog-post-title a {
    color: var(--ink);
    text-decoration: none;
}

.blog-post-title a:hover {
    color: var(--brand);
}

.blog-post-excerpt {
    margin: 0;
    color: #4a5568;
    line-height: 1.6;
}

.blog-back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--brand);
    text-decoration: none;
    font-size: 0.9rem;
}

.blog-back-link:hover {
    text-decoration: underline;
}

.blog-post-body {
    margin-top: 1.5rem;
    line-height: 1.75;
}

.blog-post-body h2,
.blog-post-body h3 {
    margin-top: 2rem;
}

.blog-post-body p {
    margin: 0 0 1rem;
}

.blog-post-body ul,
.blog-post-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.blog-post-body a {
    color: var(--brand);
}

.blog-post-body img {
    max-width: 100%;
    border-radius: 8px;
}

/* --- Flash Toast --- */
.flash-toast {
    position: fixed;
    top: 90px;
    left: 1rem;
    z-index: 200;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid transparent;
    max-width: 360px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    font-size: 0.9rem;
    line-height: 1.4;
    animation: flash-slide-in 0.2s ease-out;
}

.flash-toast--success {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.flash-toast--error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.flash-toast__message {
    flex: 1;
}

.flash-toast__close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0;
    margin-top: 1px;
}

.flash-toast__close:hover {
    opacity: 1;
}

.flash-toast.flash-toast--hiding {
    animation: flash-slide-out 0.2s ease-in forwards;
}

@keyframes flash-slide-in {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes flash-slide-out {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(-12px); }
}

/* ── Admin order status badges ─────────────────────── */
.status-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid transparent;
}

.status-badge--paid {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.status-badge--pending {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.status-badge--shipped {
    background: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
}

.status-badge--canceled {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

/* ── Admin inline edit toolbar ─────────────────────────────────────── */

.admin-edit-bar {
    background: #1a1a2e;
    border-bottom: 2px solid #003366;
    color: #e0e4ea;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    font-family: 'Segoe UI', Arial, sans-serif;
    position: sticky;
    top: 0;
    z-index: 900;
}

.admin-edit-bar__label {
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-right: 0.25rem;
}

.admin-edit-bar__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-edit-bar__status {
    color: #fca5a5;
    font-size: 0.78rem;
}

.admin-edit-bar__btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #e0e4ea;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.admin-edit-bar__btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.admin-edit-bar__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.admin-edit-bar__btn--primary {
    background: #003366;
    border-color: #0055aa;
    color: #fff;
}

.admin-edit-bar__btn--primary:hover {
    background: #0055aa;
}

/* Search description box: only shown while editing, on its own row under the bar's buttons */
.admin-edit-bar__seo {
    display: none;
    flex-basis: 100%;
    gap: 0.3rem;
    flex-direction: column;
}

.admin-edit-bar--editing {
    flex-wrap: wrap;
}

.admin-edit-bar--editing .admin-edit-bar__seo {
    display: flex;
}

.admin-edit-bar__seo-label {
    font-weight: 600;
}

.admin-edit-bar__seo-label small {
    font-weight: 400;
    opacity: 0.7;
}

/* Bar-scoped so the edit-mode highlight does not swap out the white box */
.admin-edit-bar .admin-edit-bar__seo-text {
    margin: 0;
    padding: 0.4rem 0.55rem;
    background: #fff;
    color: #1a1a2e;
    border-radius: 4px;
    font-size: 0.85rem;
    line-height: 1.4;
    outline-offset: 0;
}

.admin-edit-bar--editing .admin-edit-bar__label::after {
    content: ' — editing';
    opacity: 0.6;
    font-weight: 400;
}

/* Editable element highlight in edit mode */

.content-editable--active {
    outline: 2px dashed rgba(0, 85, 170, 0.6);
    outline-offset: 3px;
    border-radius: 2px;
    background: rgba(0, 85, 170, 0.04);
    cursor: text;
    min-height: 1em;
}

.content-editable--active:focus {
    outline-color: #0055aa;
    background: rgba(0, 85, 170, 0.08);
}

/* Image edit wrappers and replace buttons (injected by inline-edit.js in edit mode) */

.image-edit-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.image-edit-wrapper img {
    display: block;
    width: 100%;
}

/* Corner "Replace Photo" badge — used by both wrapper images and the hero section */
.image-edit-replace-btn {
    position: absolute;
    bottom: 0.6rem;
    right: 0.6rem;
    z-index: 100;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    padding: 0.35rem 0.7rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.15s;
}

.image-edit-replace-btn:hover {
    background: rgba(0, 51, 102, 0.88);
    border-color: rgba(255, 255, 255, 0.7);
}

.image-edit-replace-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* --- Auth Form Messages --- */
.field-error {
    margin: 0.25rem 0 0;
    color: #991b1b;
    font-size: 0.9rem;
}

.success-message {
    padding: 0.65rem 1rem;
    border-radius: 4px;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ── Contact form feedback ─────────────────────────────────────── */

.form-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0 0 1.25rem;
    padding: 0.9rem 1rem;
    border: 1px solid transparent;
    border-left-width: 4px;
    border-radius: 6px;
    font-weight: 600;
}

.form-alert--error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
    border-left-color: #dc2626;
}

.form-alert__icon {
    flex-shrink: 0;
    margin-top: 1px;
}

.form-alert__message {
    margin: 0;
}

.contact-dialog {
    width: min(420px, calc(100vw - 2rem));
    padding: 2rem 1.5rem 1.5rem;
    border: 0;
    border-top: 6px solid #16a34a;
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

/* Without JS the dialog renders non-modal; keep it centered over the page. */
.contact-dialog[open]:not(:modal) {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 300;
}

.contact-dialog::backdrop {
    background: rgba(26, 26, 46, 0.55);
}

.contact-dialog__icon {
    color: #16a34a;
}

.contact-dialog__title {
    margin: 0.5rem 0 0.5rem;
    color: #166534;
}

.contact-dialog__message {
    margin: 0 0 1.5rem;
}

.contact-dialog .button {
    min-width: 120px;
}

/* Inline edit mode: positions the "Replace Video" badge on the video's corner */
.video-edit-wrapper {
    position: relative;
    margin: 0 auto;
}

/* Top corner, so the badge does not cover the player's fullscreen and settings buttons */
.video-edit-wrapper .image-edit-replace-btn {
    top: 0.6rem;
    bottom: auto;
}

/* Keep each checkout card's content at the top when the other card is taller */
.checkout-layout > .card {
    align-content: start;
}

/* Checkout: replace the saved shipping address */
.change-address-form {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--stroke);
}

.change-address-form h3 {
    margin: 0;
}

.change-address-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
