/* =========================================================================
   Jireh storefront styles
   One HTML structure, several looks. The active look is set by data-theme on <html>
   (see static/theme.js). Each theme has a token block (colours, type, shape)
   and a layout block (header arrangement, hero shape, card treatment).
   ========================================================================= */

/* --- THEME TOKENS ------------------------------------------------------- */

/* Midnight: the current dark brand, sharpened. Poster caps, Jireh yellow, pill buttons */
:root,
[data-theme="midnight"] {
    --bg: #0b0b0b;
    --surface: #161616;
    --text: #f2efe8;
    --muted: #8f8b84;
    --line: #262626;
    --accent: #fada5e;
    --accent-ink: #0b0b0b;
    --sale: #ef4444;

    --font-body: "Inter", system-ui, sans-serif;
    --font-display: "Anton", Impact, sans-serif;
    --font-label: "Inter", system-ui, sans-serif;
    --display-weight: 400;
    --display-style: normal;
    --display-transform: uppercase;
    --display-tracking: 0.01em;
    --display-stretch: normal;
    --label-tracking: 0.14em;
    --title-size: clamp(36px, 6vw, 80px);

    --radius: 10px;
    --btn-radius: 999px;
    --grid-gap: 32px 16px;
    --header-h: 68px;
}

/* Gallery: cool white with a cobalt accent, wide grotesk and mono index numbers */
[data-theme="gallery"] {
    --bg: #f7f7f5;
    --surface: #ececea;
    --text: #0e0e0e;
    --muted: #6b6b6b;
    --line: #dadad6;
    --accent: #2342ff;
    --accent-ink: #ffffff;
    --sale: #2342ff;

    --font-body: "Archivo", system-ui, sans-serif;
    --font-display: "Archivo", system-ui, sans-serif;
    --font-label: "JetBrains Mono", ui-monospace, monospace;
    --display-weight: 800;
    --display-style: normal;
    --display-transform: uppercase;
    --display-tracking: -0.01em;
    --display-stretch: 125%;
    --label-tracking: 0.06em;
    --title-size: clamp(28px, 4vw, 52px);

    --radius: 0px;
    --btn-radius: 0px;
    --grid-gap: 0px;
    --header-h: 64px;
}

/* Scripture: book-like serif italics, a title-page masthead, oxblood ink on parchment */
[data-theme="scripture"] {
    --bg: #f3eee3;
    --surface: #e9e2d2;
    --text: #1d1a16;
    --muted: #716859;
    --line: #d9cfbc;
    --accent: #7a1f1f;
    --accent-ink: #f3eee3;
    --sale: #7a1f1f;

    --font-body: "Inter", system-ui, sans-serif;
    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-label: "IBM Plex Mono", ui-monospace, monospace;
    --display-weight: 500;
    --display-style: italic;
    --display-transform: none;
    --display-tracking: -0.01em;
    --display-stretch: normal;
    --label-tracking: 0.12em;
    --title-size: clamp(40px, 6vw, 84px);

    --radius: 0px;
    --btn-radius: 0px;
    --grid-gap: 48px 24px;
    --header-h: 64px;
}

/* Gold Coast: warm and Ghanaian. Kente stripe, rounded tinted cards, friendly heavy grotesk */
[data-theme="goldcoast"] {
    --bg: #fbf4e6;
    --surface: #f3e6c8;
    --text: #1a1410;
    --muted: #6b5d4f;
    --line: #e8d9ba;
    --accent: #0f6b4c;
    --accent-ink: #ffffff;
    --sale: #b8322b;
    --kente-gold: #f2b33d;
    --kente-green: #0f6b4c;
    --kente-red: #b8322b;

    --font-body: "Bricolage Grotesque", system-ui, sans-serif;
    --font-display: "Bricolage Grotesque", system-ui, sans-serif;
    --font-label: "Bricolage Grotesque", system-ui, sans-serif;
    --display-weight: 800;
    --display-style: normal;
    --display-transform: none;
    --display-tracking: -0.03em;
    --display-stretch: normal;
    --label-tracking: 0.08em;
    --title-size: clamp(36px, 5.5vw, 76px);

    --radius: 22px;
    --btn-radius: 999px;
    --grid-gap: 20px;
    --header-h: 68px;
}

/* Sanctuary: church-window arches, navy on stone, wide rounded display type */
[data-theme="sanctuary"] {
    --bg: #f2efe9;
    --surface: #e6e1d6;
    --text: #15213b;
    --muted: #5d6577;
    --line: #d6d0c3;
    --accent: #15213b;
    --accent-ink: #f2efe9;
    --sale: #a3402b;
    --gild: #b48a3c;

    --font-body: "Manrope", system-ui, sans-serif;
    --font-display: "Unbounded", system-ui, sans-serif;
    --font-label: "Manrope", system-ui, sans-serif;
    --display-weight: 500;
    --display-style: normal;
    --display-transform: uppercase;
    --display-tracking: -0.02em;
    --display-stretch: normal;
    --label-tracking: 0.2em;
    --title-size: clamp(30px, 4.5vw, 64px);

    --radius: 0px;
    --btn-radius: 999px;
    --grid-gap: 48px 24px;
    --header-h: 72px;
}

/* Block: street poster energy. Thick outlines, hard shadows, yellow highlighter */
[data-theme="block"] {
    --bg: #ecebe6;
    --surface: #ffffff;
    --text: #0a0a0a;
    --muted: #4d4d4d;
    --line: #0a0a0a;
    --accent: #fada5e;
    --accent-ink: #0a0a0a;
    --sale: #ff3b30;

    --font-body: "Space Grotesk", system-ui, sans-serif;
    --font-display: "Archivo", Impact, sans-serif;
    --font-label: "Space Mono", ui-monospace, monospace;
    --display-weight: 800;
    --display-style: normal;
    --display-transform: uppercase;
    --display-tracking: -0.02em;
    --display-stretch: 100%;
    --label-tracking: 0.04em;
    --title-size: clamp(36px, 6vw, 84px);

    --radius: 0px;
    --btn-radius: 0px;
    --grid-gap: 28px;
    --header-h: 68px;
}

@media (max-width: 768px) {
    :root,
    [data-theme] {
        --header-h: 60px;
    }
}

/* --- BASE --------------------------------------------------------------- */

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

main {
    flex: 1;
}

img, video {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

input, textarea {
    font: inherit;
    color: inherit;
}

.label {
    font-family: var(--font-label);
    font-size: 11px;
    letter-spacing: var(--label-tracking);
    text-transform: uppercase;
}

.display {
    font-family: var(--font-display);
    font-weight: var(--display-weight);
    font-style: var(--display-style);
    font-stretch: var(--display-stretch);
    text-transform: var(--display-transform);
    letter-spacing: var(--display-tracking);
    line-height: 0.95;
}

/* --- BUTTONS ------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 28px;
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: var(--label-tracking);
    text-transform: uppercase;
    background: var(--accent);
    color: var(--accent-ink);
    border: 1px solid var(--accent);
    border-radius: var(--btn-radius);
    transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    opacity: 0.85;
}

.btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--text);
}

.btn--ghost:hover {
    background: var(--text);
    color: var(--bg);
    opacity: 1;
}

.btn--block {
    width: 100%;
}

.link-arrow {
    font-family: var(--font-label);
    font-size: 11px;
    letter-spacing: var(--label-tracking);
    text-transform: uppercase;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    white-space: nowrap;
}

.link-arrow:hover {
    opacity: 0.6;
}

/* --- ANNOUNCEMENT BAR --------------------------------------------------- */
/* The message is repeated inside the track so marquee themes can scroll it seamlessly;
   static themes show only the first copy */

.announcement-bar {
    position: relative;
    z-index: 60;
    display: block;
    overflow: hidden;
    padding: 9px 16px;
    background: var(--accent);
    color: var(--accent-ink);
    font-family: var(--font-label);
    font-size: 11px;
    letter-spacing: var(--label-tracking);
    text-transform: uppercase;
    white-space: nowrap;
}

.announcement-track {
    display: flex;
    justify-content: center;
}

.announcement-track span[aria-hidden="true"] {
    display: none;
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* --- HEADER ------------------------------------------------------------- */
/* Default arrangement: logo left, nav beside it, icons right.
   Themes rearrange it with grid areas (desktop only; mobile shares one layout) */

.site-header {
    --header-fg: var(--text);
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: var(--header-h);
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo nav actions";
    align-items: center;
    column-gap: 40px;
    padding: 0 24px;
    background: var(--bg);
    color: var(--header-fg);
    border-bottom: 1px solid var(--line);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.header-logo-link {
    grid-area: logo;
}

.header-nav {
    grid-area: nav;
    display: flex;
    align-items: center;
    gap: 28px;
}

.header-nav a {
    position: relative;
    font-family: var(--font-label);
    font-size: 11px;
    letter-spacing: var(--label-tracking);
    text-transform: uppercase;
    padding: 4px 0;
}

.header-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.header-nav a:hover::after,
.header-nav a[aria-current="page"]::after {
    width: 100%;
}

.header-logo {
    height: 40px;
    width: auto;
}

.header-actions {
    grid-area: actions;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 4px;
}

.icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.icon-btn:hover {
    opacity: 0.6;
}

.icon-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-counter {
    position: absolute;
    top: 3px;
    right: 1px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--accent);
    color: var(--accent-ink);
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
    display: none;
}

.cart-counter.visible {
    display: block;
}

.menu-toggle {
    display: none;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px 16px 24px;
    background: var(--bg);
    color: var(--text);
    border-bottom: 1px solid var(--line);
}

.mobile-menu.open {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-weight: var(--display-weight);
    font-style: var(--display-style);
    font-stretch: var(--display-stretch);
    text-transform: var(--display-transform);
    font-size: 28px;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .site-header {
        grid-template-columns: 1fr auto 1fr;
        grid-template-areas: "nav logo actions";
        column-gap: 0;
        padding: 0 8px;
    }

    .header-nav a {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .header-logo {
        height: 34px;
    }
}

/* --- SEARCH OVERLAY ----------------------------------------------------- */

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 12vh 16px 0;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    color: var(--text);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-close-btn {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 40px;
    line-height: 1;
}

.search-modal {
    width: 100%;
    max-width: 640px;
}

.search-input {
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--text);
    outline: none;
    font-family: var(--font-display);
    font-weight: var(--display-weight);
    font-style: var(--display-style);
    font-stretch: var(--display-stretch);
    text-transform: var(--display-transform);
    font-size: clamp(24px, 4vw, 40px);
}

.search-input::placeholder {
    color: var(--muted);
}

.search-results {
    margin-top: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.search-result-item:hover {
    opacity: 0.7;
}

.search-result-item img {
    width: 56px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: var(--surface);
}

.search-result-item-info h4 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.search-result-item-info p {
    color: var(--muted);
    font-size: 13px;
}

.search-empty {
    color: var(--muted);
    text-align: center;
}

/* --- HERO (home) -------------------------------------------------------- */
/* Default: full-bleed video with the headline anchored bottom-left. Themes reshape it */

.hero {
    position: relative;
    height: 88svh;
    min-height: 520px;
    overflow: hidden;
    background: #000;
    color: #fff;
}

.hero__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.65));
}

.hero__logo {
    display: none;
}

.hero__text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 0 24px 56px;
}

.hero__title {
    font-size: clamp(48px, 9vw, 136px);
    max-width: 11ch;
}

.hero__eyebrow {
    opacity: 0.85;
}

@media (max-width: 768px) {
    .hero__text {
        padding: 0 16px 40px;
    }
}

/* --- SECTIONS ----------------------------------------------------------- */

.section {
    padding: 72px 24px;
}

.section--tight {
    padding-top: 0;
}

main {
    counter-reset: section;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    counter-increment: section;
}

.eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
}

.section-title {
    font-size: var(--title-size);
}

.summary-title {
    font-size: 32px;
}

.page-head {
    padding: 56px 24px 32px;
    text-align: center;
}

.page-head .section-title {
    margin-top: 4px;
}

@media (max-width: 768px) {
    .section {
        padding: 48px 16px;
    }

    .section--tight {
        padding-top: 0;
    }

    .page-head {
        padding: 40px 16px 24px;
    }
}

/* --- PRODUCT GRID ------------------------------------------------------- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--grid-gap);
    counter-reset: card;
}

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

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    counter-increment: card;
}

.product-card__media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--surface);
    border-radius: var(--radius);
}

.product-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.product-card__alt {
    opacity: 0;
}

@media (hover: hover) {
    .product-card:hover .product-card__media img {
        transform: scale(1.04);
    }

    .product-card:hover .product-card__alt {
        opacity: 1;
    }
}

.product-card--soldout .product-card__media {
    filter: grayscale(0.7);
    opacity: 0.7;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    padding: 4px 8px;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-label);
    font-size: 10px;
    letter-spacing: var(--label-tracking);
    text-transform: uppercase;
}

.badge--sale {
    background: var(--sale);
    color: #fff;
}

.product-card__info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 12px;
    padding-top: 12px;
}

.product-card__name {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.product-card__color {
    grid-row: 2;
    color: var(--muted);
    font-size: 12px;
}

.product-card__price {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-size: 13px;
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .product-card__info {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-card__price {
        grid-column: 1;
        grid-row: 3;
        text-align: left;
    }
}

.price-old {
    margin-right: 6px;
    color: var(--muted);
    text-decoration: line-through;
}

.price-now--sale {
    color: var(--sale);
}

/* --- EDITORIAL SPLIT (home "About") ------------------------------------ */

.editorial {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
}

.editorial__media img {
    width: 100%;
    height: 100%;
    max-height: 80vh;
    object-fit: cover;
}

.editorial__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    padding: 64px clamp(24px, 6vw, 96px);
}

.editorial__text p {
    max-width: 46ch;
    font-size: 17px;
    color: var(--muted);
}

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

    .editorial__text {
        padding: 40px 16px 56px;
    }
}

/* --- PRODUCT PAGE ------------------------------------------------------- */

.product-container {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 56px;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 32px 24px 96px;
}

.image-display-container {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--surface);
    border-radius: var(--radius);
}

#main-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-nav-btn {
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    color: var(--text);
    font-size: 16px;
}

.image-nav-btn.prev {
    left: 12px;
}

.image-nav-btn.next {
    right: 12px;
}

.thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    overflow-x: auto;
}

.thumbnail-img {
    width: 72px;
    flex-shrink: 0;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    opacity: 0.45;
    cursor: pointer;
    border-radius: min(var(--radius), 8px);
    transition: opacity 0.2s ease;
}

.thumbnail-img:hover,
.thumbnail-img.active {
    opacity: 1;
}

.product-details {
    position: sticky;
    top: calc(var(--header-h) + 32px);
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#product-name {
    font-size: clamp(32px, 4vw, 56px);
}

#product-price {
    font-size: 18px;
}

#product-description {
    max-width: 52ch;
    color: var(--muted);
    white-space: pre-line;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.option-label {
    color: var(--muted);
}

.option-label span {
    color: var(--text);
}

.color-swatches-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.color-swatch {
    width: 34px;
    height: 34px;
    padding: 3px;
    border: 1px solid transparent;
    border-radius: 50%;
    cursor: pointer;
}

.color-swatch.active {
    border-color: var(--text);
}

.color-swatch svg {
    display: block;
    width: 100%;
    height: 100%;
}

.size-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.size-option-btn {
    height: 48px;
    border: 1px solid var(--line);
    border-radius: min(var(--btn-radius), 12px);
    font-family: var(--font-label);
    font-size: 12px;
    letter-spacing: var(--label-tracking);
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.size-option-btn:hover:not(:disabled) {
    border-color: var(--text);
}

.size-option-btn.active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.size-option-btn:disabled {
    color: var(--muted);
    text-decoration: line-through;
    opacity: 0.5;
    cursor: not-allowed;
}

.action-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 900px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 0 0 72px;
    }

    .thumbnails {
        padding: 0 16px;
    }

    .product-details {
        position: static;
        padding: 0 16px;
    }
}

/* --- CHECKOUT ----------------------------------------------------------- */

.checkout-wrapper {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 96px;
}

.checkout-wrapper .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 48px;
    align-items: start;
}

.cart-grid-header {
    display: grid;
    grid-template-columns: minmax(0, 5fr) 2fr 3fr 2fr 40px;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.cart-item {
    display: grid;
    grid-template-columns: minmax(0, 5fr) 2fr 3fr 2fr 40px;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.cart-item-product-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-item-product-info img {
    width: 72px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: var(--surface);
    border-radius: min(var(--radius), 8px);
}

.cart-item-product-info p:first-of-type {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cart-item-product-info p:last-of-type {
    color: var(--muted);
    font-size: 13px;
}

.cart-item-price {
    text-align: center;
}

.cart-item-quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    justify-self: center;
    border: 1px solid var(--line);
    border-radius: min(var(--btn-radius), 999px);
    overflow: hidden;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
}

.quantity-btn:hover {
    background: var(--surface);
}

.quantity-input {
    width: 40px;
    height: 36px;
    text-align: center;
    background: transparent;
    border: 0;
    outline: none;
    -moz-appearance: textfield;
}

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

.item-subtotal {
    text-align: right;
    font-weight: 600;
}

.remove-item-container {
    display: flex;
    justify-content: flex-end;
}

.remove-item-btn {
    color: var(--muted);
    display: inline-flex;
}

.remove-item-btn:hover {
    color: var(--sale);
}

.order-summary-section {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    padding: 28px;
    background: var(--surface);
    border-radius: var(--radius);
}

.order-summary-section .summary-title {
    margin-bottom: 20px;
}

.email-form-group,
.delivery-options-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.email-form-group > label,
.delivery-options-group > label {
    font-family: var(--font-label);
    font-size: 11px;
    letter-spacing: var(--label-tracking);
    text-transform: uppercase;
    color: var(--muted);
}

.email-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: min(var(--radius), 12px);
    outline: none;
}

.email-input:focus {
    border-color: var(--text);
}

.delivery-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: min(var(--radius), 12px);
}

.delivery-option:has(input:checked) {
    border-color: var(--text);
}

.delivery-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.delivery-option label {
    flex: 1;
    cursor: pointer;
}

.delivery-option span {
    color: var(--muted);
    font-size: 13px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

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

.empty-cart-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 64px 0;
    text-align: center;
    color: var(--muted);
}

.empty-cart-message h2 {
    color: var(--text);
}

.empty-cart-message a {
    font-family: var(--font-label);
    font-size: 11px;
    letter-spacing: var(--label-tracking);
    text-transform: uppercase;
    border-bottom: 1px solid currentColor;
    color: var(--text);
}

@media (max-width: 900px) {
    .checkout-wrapper {
        padding: 0 16px 72px;
    }

    .checkout-wrapper .container {
        grid-template-columns: 1fr;
    }

    .cart-grid-header {
        display: none;
    }

    .cart-item {
        grid-template-columns: minmax(0, 1fr) auto auto;
        grid-template-areas:
            "info info remove"
            "price qty subtotal";
        gap: 12px;
    }

    .cart-item-product-info { grid-area: info; }
    .cart-item-price { grid-area: price; text-align: left; }
    .cart-item-quantity-controls { grid-area: qty; }
    .item-subtotal { grid-area: subtotal; }
    .remove-item-container { grid-area: remove; }

    .order-summary-section {
        position: static;
    }
}

/* --- SIZE CHARTS -------------------------------------------------------- */

.size-chart {
    max-width: 960px;
    margin: 0 auto 56px;
    padding: 0 24px;
}

.size-chart h2 {
    font-size: clamp(24px, 3vw, 36px);
    margin-bottom: 16px;
}

.size-chart__scroll {
    overflow-x: auto;
}

.size-chart-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
}

.size-chart-table th,
.size-chart-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    text-align: center;
    font-size: 14px;
}

.size-chart-table th {
    font-family: var(--font-label);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: var(--label-tracking);
    color: var(--muted);
    text-transform: uppercase;
}

.size-chart-table td:first-child,
.size-chart-table th:first-child {
    text-align: left;
    font-family: var(--font-label);
    font-size: 11px;
    letter-spacing: var(--label-tracking);
}

/* --- STATUS PAGES (success, failure, 404, coming soon) ----------------- */

.status-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 60vh;
    padding: 64px 16px;
    text-align: center;
}

.status-page .section-title {
    max-width: 14ch;
}

.status-page p {
    max-width: 44ch;
    color: var(--muted);
}

/* --- FOOTER ------------------------------------------------------------- */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 56px 24px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer-brand img {
    height: 56px;
    width: auto;
    margin-bottom: 16px;
}

.footer-brand p {
    max-width: 36ch;
    color: var(--muted);
    font-size: 14px;
}

.footer-col h4 {
    margin-bottom: 14px;
    color: var(--muted);
    font-weight: 400;
}

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

.footer-col a:hover {
    opacity: 0.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

@media (max-width: 768px) {
    .site-footer {
        padding: 48px 16px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

/* --- NEWSLETTER (footer, campaign page, stop.html) --------------------- */

.newsletter-field {
    display: flex;
    gap: 8px;
    width: 100%;
}

.newsletter-field input {
    flex: 1;
    min-width: 0;
    height: 50px;
    padding: 0 18px;
    font-size: 16px; /* 16px stops iOS zooming in on focus */
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--btn-radius);
}

.newsletter-field input:focus {
    outline: none;
    border-color: var(--text);
}

.newsletter-field .btn {
    flex-shrink: 0;
    padding: 0 22px;
}

/* Hidden spam trap: people never see it, bots fill it in */
.newsletter-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.newsletter-field[hidden] {
    display: none;
}

.newsletter-soon {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 18px;
    white-space: nowrap;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: var(--btn-radius);
}

.newsletter-soon[hidden] {
    display: none;
}

.newsletter-status {
    min-height: 1.4em;
    font-size: 13px;
    color: var(--muted);
}

.newsletter-status--success {
    color: var(--text);
}

.newsletter-status--error {
    color: var(--sale);
}

.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    margin-top: 28px;
}

.footer-newsletter h4 {
    color: var(--muted);
    font-weight: 400;
}

.newsletter-toggle {
    display: inline-flex;
    align-self: flex-start;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: var(--btn-radius);
}

.newsletter-toggle label {
    position: relative;
}

.newsletter-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.newsletter-toggle span {
    display: block;
    padding: 6px 16px;
    font-family: var(--font-label);
    font-size: 11px;
    letter-spacing: var(--label-tracking);
    text-transform: uppercase;
    color: var(--muted);
    border-radius: var(--btn-radius);
    cursor: pointer;
}

.newsletter-toggle input:checked + span {
    background: var(--text);
    color: var(--bg);
}

.newsletter-toggle input:focus-visible + span {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.stop-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 480px;
}

/* --- FADE-ON-SCROLL ----------------------------------------------------- */

.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-element.visible {
    opacity: 1;
    transform: none;
}

/* --- CAMPAIGN PAGE (index.html: Road to 700) ------------------------- */
/* The hero always sits on the dark video, whatever the theme; the accent colour drives the tally */

.campaign-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
    color: #fff;
}

.campaign-hero__media {
    position: absolute;
    inset: 0;
}

.campaign-hero__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.campaign-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.45) 70%, rgba(0, 0, 0, 0.3)),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0) 30%);
}

.campaign-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px;
}

.campaign-live {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
}

.campaign-live__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: live-pulse 1.6s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.8); }
}

.campaign-title {
    font-size: clamp(64px, 12vw, 184px);
    line-height: 0.85;
}

.campaign-lede {
    max-width: 38ch;
    font-size: clamp(16px, 1.6vw, 20px);
    color: rgba(255, 255, 255, 0.78);
}

.campaign-tally {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 720px;
}

.campaign-tally__numbers {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
}

.campaign-tally__numbers > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.campaign-tally__sold {
    font-size: clamp(64px, 9vw, 128px);
    line-height: 0.9;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.campaign-tally__goal {
    align-items: flex-end;
    text-align: right;
}

.campaign-tally__goal .display {
    font-size: clamp(32px, 4vw, 56px);
    color: rgba(255, 255, 255, 0.55);
}

.campaign-progress {
    height: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}

.campaign-progress__fill {
    display: block;
    width: 0;
    height: 100%;
    background: var(--accent);
    border-radius: inherit;
    transition: width 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.campaign-tally__meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: rgba(255, 255, 255, 0.72);
}

.campaign-countdown {
    display: flex;
    gap: 10px;
}

.campaign-countdown > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 78px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
}

.campaign-countdown .display {
    font-size: 34px;
    font-variant-numeric: tabular-nums;
}

.campaign-countdown .label {
    color: rgba(255, 255, 255, 0.6);
}

.campaign-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.campaign-hero .btn--ghost {
    color: #fff;
    border-color: #fff;
}

.campaign-hero .btn--ghost:hover {
    background: #fff;
    color: #000;
}

.campaign-why__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.campaign-why__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.campaign-why__body p {
    max-width: 52ch;
    font-size: 18px;
    color: var(--muted);
}

.campaign-newsletter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.campaign-newsletter p {
    max-width: 46ch;
    color: var(--muted);
}

.newsletter-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 880px;
    margin-top: 16px;
    text-align: left;
}

.newsletter-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.newsletter-card h3 {
    color: var(--text);
    font-weight: 600;
}

.newsletter-card p {
    font-size: 14px;
    margin-bottom: 6px;
}

.campaign-newsletter .newsletter-note {
    margin-top: 4px;
}

@media (max-width: 700px) {
    .newsletter-options {
        grid-template-columns: 1fr;
    }

    .newsletter-card {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .campaign-hero__inner {
        gap: 22px;
        padding: 48px 16px;
    }

    .campaign-countdown {
        width: 100%;
    }

    .campaign-countdown > div {
        flex: 1;
        min-width: 0;
        padding: 10px;
    }

    .campaign-countdown .display {
        font-size: 26px;
    }

    .campaign-actions .btn {
        flex: 1;
        padding: 0 14px;
        white-space: nowrap;
    }

    .campaign-why__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* =========================================================================
   THEME LAYOUTS
   ========================================================================= */

/* --- MIDNIGHT ----------------------------------------------------------- */
/* Full-bleed hero under a see-through header, numbered sections, yellow prices */

[data-theme="midnight"] .hero {
    height: 100svh;
    margin-top: calc(-1 * var(--header-h));
}

[data-theme="midnight"] .campaign-hero {
    margin-top: calc(-1 * var(--header-h));
}

[data-theme="midnight"] .campaign-hero__inner {
    padding-top: calc(var(--header-h) + 48px);
}

[data-theme="midnight"] .site-header--overlay:not(.is-solid):not(.menu-open) {
    --header-fg: #fff;
    background: transparent;
    border-color: transparent;
}

[data-theme="midnight"] .hero__eyebrow {
    color: var(--accent);
    opacity: 1;
}

[data-theme="midnight"] .section-head .eyebrow::before {
    /* content: counter(section, decimal-leading-zero) " / "; */
    color: var(--accent);
}

[data-theme="midnight"] .product-card__price {
    color: var(--accent);
}

[data-theme="midnight"] .price-old {
    color: var(--muted);
}

/* [data-theme="midnight"] .editorial__media img {
    border-radius: 0 var(--radius) var(--radius) 0;
} */

/* --- GALLERY ------------------------------------------------------------ */
/* Split hero, nav pushed right, index-numbered contact-sheet grid */

@media (min-width: 769px) {
    [data-theme="gallery"] .site-header {
        grid-template-columns: auto 1fr auto auto;
        grid-template-areas: "logo . nav actions";
    }
}

[data-theme="gallery"] .hero {
    display: grid;
    grid-template-columns: 5fr 7fr;
    height: auto;
    min-height: 0;
    background: var(--bg);
    color: var(--text);
    border-bottom: 1px solid var(--line);
}

[data-theme="gallery"] .hero__media {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    height: min(78vh, 760px);
}

[data-theme="gallery"] .hero__media::after {
    display: none;
}

[data-theme="gallery"] .hero__text {
    position: static;
    grid-column: 1;
    grid-row: 1;
    justify-content: space-between;
    padding: 40px 32px;
    border-right: 1px solid var(--line);
}

[data-theme="gallery"] .hero__title {
    font-size: clamp(40px, 5vw, 80px);
    order: 2;
}

[data-theme="gallery"] .hero__eyebrow {
    order: 1;
    color: var(--accent);
    opacity: 1;
}

[data-theme="gallery"] .hero__cta {
    order: 3;
}

[data-theme="gallery"] .product-grid {
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

[data-theme="gallery"] .product-card {
    padding: 12px 12px 20px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: background-color 0.2s ease;
}

[data-theme="gallery"] .product-card:hover {
    background: var(--surface);
}

[data-theme="gallery"] .product-card::after {
    content: counter(card, decimal-leading-zero);
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
    font-family: var(--font-label);
    font-size: 11px;
    color: #fff;
    mix-blend-mode: difference;
}

[data-theme="gallery"] .product-card__name,
[data-theme="gallery"] .product-card__price,
[data-theme="gallery"] .product-card__color {
    font-family: var(--font-label);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: var(--label-tracking);
}

[data-theme="gallery"] .badge {
    background: var(--accent);
    color: var(--accent-ink);
}

[data-theme="gallery"] .page-head {
    text-align: left;
    border-bottom: 1px solid var(--line);
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    [data-theme="gallery"] .hero {
        grid-template-columns: 1fr;
    }

    [data-theme="gallery"] .hero__media {
        grid-column: 1;
        grid-row: 1;
        height: 60vh;
    }

    [data-theme="gallery"] .hero__text {
        grid-row: 2;
        gap: 20px;
        padding: 28px 16px 40px;
        border-right: 0;
    }
}

/* --- SCRIPTURE ---------------------------------------------------------- */
/* Title-page masthead, framed hero with a caption beneath, verse-numbered cards */

@media (min-width: 769px) {
    [data-theme="scripture"] {
        --header-h: 112px;
    }

    [data-theme="scripture"] .site-header {
        grid-template-columns: 1fr auto 1fr;
        grid-template-rows: 70px 42px;
        grid-template-areas:
            ". logo actions"
            "nav nav nav";
    }

    [data-theme="scripture"] .header-nav {
        justify-content: center;
        gap: 40px;
        height: 100%;
        border-top: 1px solid var(--line);
    }

    [data-theme="scripture"] .header-logo {
        height: 50px;
    }
}

[data-theme="scripture"] .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    height: auto;
    min-height: 0;
    padding: 32px 24px 72px;
    background: var(--bg);
    color: var(--text);
}

[data-theme="scripture"] .hero__media {
    position: relative;
    width: 100%;
    height: 72vh;
    padding: 8px;
    border: 1px solid var(--line);
}

[data-theme="scripture"] .hero__media::after {
    display: none;
}

[data-theme="scripture"] .hero__text {
    position: static;
    align-items: center;
    padding: 0;
    text-align: center;
}

[data-theme="scripture"] .hero__title {
    font-size: clamp(48px, 7vw, 108px);
    max-width: none;
}

[data-theme="scripture"] .hero__eyebrow {
    color: var(--accent);
    opacity: 1;
}

[data-theme="scripture"] .product-card__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    padding-top: 16px;
}

[data-theme="scripture"] .product-card__info::before {
    content: "1:" counter(card, decimal-leading-zero);
    font-family: var(--font-label);
    font-size: 10px;
    letter-spacing: var(--label-tracking);
    color: var(--accent);
}

[data-theme="scripture"] .product-card__name {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: 22px;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.1;
}

[data-theme="scripture"] .product-card__price {
    text-align: center;
}

[data-theme="scripture"] .section-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

[data-theme="scripture"] .eyebrow {
    color: var(--accent);
}

[data-theme="scripture"] .eyebrow::before,
[data-theme="scripture"] .eyebrow::after {
    content: " \2014 ";
}

[data-theme="scripture"] .product-card__media,
[data-theme="scripture"] .editorial__media img {
    border: 1px solid var(--line);
    padding: 6px;
    background: var(--bg);
}

[data-theme="scripture"] .product-card__media img {
    inset: 6px;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
}

@media (max-width: 768px) {
    [data-theme="scripture"] .hero {
        padding: 16px 16px 48px;
        gap: 24px;
    }

    [data-theme="scripture"] .hero__media {
        height: 58vh;
    }
}

/* --- GOLD COAST --------------------------------------------------------- */
/* Kente stripe, scrolling announcement, rounded framed hero, tinted card tiles */

[data-theme="goldcoast"] .announcement-bar {
    background: var(--text);
    color: var(--kente-gold);
    padding-left: 0;
    padding-right: 0;
}

[data-theme="goldcoast"] .announcement-track {
    width: max-content;
    justify-content: flex-start;
    animation: marquee 28s linear infinite;
}

[data-theme="goldcoast"] .announcement-track span,
[data-theme="goldcoast"] .announcement-track span[aria-hidden="true"] {
    display: inline;
    padding: 0 32px;
}

[data-theme="goldcoast"] .site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 6px;
    background: repeating-linear-gradient(90deg,
        var(--kente-gold) 0 28px,
        var(--kente-green) 28px 40px,
        var(--kente-gold) 40px 52px,
        var(--kente-red) 52px 64px,
        var(--text) 64px 70px);
}

[data-theme="goldcoast"] .header-nav {
    gap: 6px;
}

[data-theme="goldcoast"] .header-nav a {
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
}

[data-theme="goldcoast"] .header-nav a::after {
    display: none;
}

[data-theme="goldcoast"] .header-nav a:hover,
[data-theme="goldcoast"] .header-nav a[aria-current="page"] {
    background: var(--surface);
}

[data-theme="goldcoast"] .hero {
    height: auto;
    min-height: 0;
    padding: 22px 16px 0;
    background: var(--bg);
}

[data-theme="goldcoast"] .hero__media {
    position: relative;
    height: calc(100svh - var(--header-h) - 80px);
    min-height: 480px;
    border-radius: 28px;
}

[data-theme="goldcoast"] .hero__text {
    left: 16px;
    right: 16px;
    padding: 0 40px 48px;
}

[data-theme="goldcoast"] .hero__title {
    text-transform: none;
}

[data-theme="goldcoast"] .hero__eyebrow {
    color: var(--kente-gold);
    opacity: 1;
    font-weight: 700;
}

[data-theme="goldcoast"] .hero__cta {
    background: var(--kente-gold);
    border-color: var(--kente-gold);
    color: var(--text);
}

[data-theme="goldcoast"] .label {
    font-weight: 600;
}

[data-theme="goldcoast"] .product-card {
    padding: 10px 10px 16px;
    border-radius: calc(var(--radius) + 8px);
    background: #f6dc9c;
    transition: transform 0.25s ease;
}

[data-theme="goldcoast"] .product-card:nth-child(3n + 2) {
    background: #cfe3d6;
}

[data-theme="goldcoast"] .product-card:nth-child(3n + 3) {
    background: #f0c9c2;
}

[data-theme="goldcoast"] .product-card:hover {
    transform: translateY(-4px);
}

[data-theme="goldcoast"] .product-card__info {
    padding: 14px 6px 0;
}

[data-theme="goldcoast"] .product-card__name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: none;
}

[data-theme="goldcoast"] .product-card__price {
    align-self: start;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bg);
    font-weight: 700;
}

[data-theme="goldcoast"] .badge {
    border-radius: 999px;
    padding: 5px 10px;
    font-weight: 700;
}

[data-theme="goldcoast"] .editorial {
    gap: 16px;
    padding: 16px;
    border-top: 0;
}

[data-theme="goldcoast"] .editorial__media img {
    border-radius: 28px;
}

[data-theme="goldcoast"] .editorial__text {
    border-radius: 28px;
    background: var(--surface);
}

[data-theme="goldcoast"] .site-footer {
    border-top: 6px solid var(--kente-gold);
}

@media (max-width: 768px) {
    [data-theme="goldcoast"] .hero {
        padding: 16px 10px 0;
    }

    [data-theme="goldcoast"] .hero__media {
        height: 72svh;
        min-height: 0;
        border-radius: 20px;
    }

    [data-theme="goldcoast"] .hero__text {
        left: 10px;
        right: 10px;
        padding: 0 20px 32px;
    }

    [data-theme="goldcoast"] .product-card__price {
        justify-self: start;
    }

    [data-theme="goldcoast"] .editorial {
        padding: 10px;
    }
}

/* --- SANCTUARY ---------------------------------------------------------- */
/* Arched windows: the hero video, product photos and About image sit in arches */

@media (min-width: 769px) {
    [data-theme="sanctuary"] .site-header {
        grid-template-columns: auto 1fr auto auto;
        grid-template-areas: "logo . nav actions";
    }
}

[data-theme="sanctuary"] .site-header {
    border-bottom-color: transparent;
    box-shadow: 0 1px 0 var(--line);
}

[data-theme="sanctuary"] .hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 48px;
    height: auto;
    min-height: 0;
    padding: 56px 24px 80px;
    background: var(--bg);
    color: var(--text);
    overflow: visible;
}

[data-theme="sanctuary"] .hero__media {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    width: min(100%, 560px);
    justify-self: center;
    aspect-ratio: 4 / 5;
    max-height: 80vh;
    border-radius: 999px 999px 0 0;
    outline: 1px solid var(--gild);
    outline-offset: 10px;
}

[data-theme="sanctuary"] .hero__media::after {
    display: none;
}

[data-theme="sanctuary"] .hero__text {
    position: static;
    grid-column: 1;
    grid-row: 1;
    padding: 0 0 12px;
}

[data-theme="sanctuary"] .hero__title {
    font-size: clamp(40px, 5.5vw, 88px);
    line-height: 1;
}

[data-theme="sanctuary"] .hero__eyebrow,
[data-theme="sanctuary"] .eyebrow {
    color: var(--gild);
    opacity: 1;
}

[data-theme="sanctuary"] .eyebrow::before {
    content: "\2726  ";
}

[data-theme="sanctuary"] .section-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

[data-theme="sanctuary"] .product-card__media,
[data-theme="sanctuary"] .image-display-container {
    border-radius: 999px 999px 0 0;
}

/* The arch clips the corners, so the badge sits at the top centre */
[data-theme="sanctuary"] .badge {
    top: 16px;
    left: 50%;
    translate: -50% 0;
    border-radius: 999px;
    padding: 4px 10px;
}

[data-theme="sanctuary"] .product-card__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding-top: 16px;
    text-align: center;
}

[data-theme="sanctuary"] .product-card__price {
    text-align: center;
    font-weight: 600;
}

[data-theme="sanctuary"] .editorial {
    border-top: 0;
    padding: 40px 24px 0;
    align-items: center;
}

[data-theme="sanctuary"] .editorial__media img {
    width: min(100%, 480px);
    margin: 0 auto;
    aspect-ratio: 4 / 5;
    border-radius: 999px 999px 0 0;
}

[data-theme="sanctuary"] .site-footer {
    background: var(--text);
    color: var(--bg);
    border-top: 0;
    --line: rgba(242, 239, 233, 0.18);
    --muted: rgba(242, 239, 233, 0.6);
}

@media (max-width: 768px) {
    [data-theme="sanctuary"] .hero {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 16px 56px;
    }

    [data-theme="sanctuary"] .hero__media {
        grid-column: 1;
        width: 82%;
        max-height: none;
    }

    [data-theme="sanctuary"] .hero__text {
        grid-column: 1;
        grid-row: 2;
        align-items: center;
        text-align: center;
    }

    [data-theme="sanctuary"] .editorial {
        padding: 32px 16px 0;
    }
}

/* --- BLOCK -------------------------------------------------------------- */
/* Thick outlines, hard offset shadows, highlighter yellow, sticker badges */

[data-theme="block"] .announcement-bar {
    background: var(--text);
    color: var(--accent);
    padding-left: 0;
    padding-right: 0;
}

[data-theme="block"] .announcement-track {
    width: max-content;
    justify-content: flex-start;
    animation: marquee 18s linear infinite;
}

[data-theme="block"] .announcement-track span,
[data-theme="block"] .announcement-track span[aria-hidden="true"] {
    display: inline;
    padding: 0 24px;
}

[data-theme="block"] .announcement-track span::after {
    content: "\2605";
    padding-left: 48px;
}

[data-theme="block"] .site-header {
    border-bottom: 2px solid var(--line);
}

[data-theme="block"] .header-nav {
    gap: 0;
    align-self: stretch;
}

[data-theme="block"] .header-nav a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    border-left: 2px solid var(--line);
    font-weight: 700;
}

[data-theme="block"] .header-nav a:last-child {
    border-right: 2px solid var(--line);
}

[data-theme="block"] .header-nav a::after {
    display: none;
}

[data-theme="block"] .header-nav a:hover,
[data-theme="block"] .header-nav a[aria-current="page"] {
    background: var(--accent);
}

[data-theme="block"] .btn {
    border-width: 2px;
    border-color: var(--text);
    box-shadow: 4px 4px 0 var(--text);
}

[data-theme="block"] .btn:hover:not(:disabled) {
    opacity: 1;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--text);
}

[data-theme="block"] .btn--ghost {
    background: var(--surface);
    color: var(--text);
}

[data-theme="block"] .hero {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    height: auto;
    min-height: 0;
    background: var(--bg);
    color: var(--text);
    border-bottom: 2px solid var(--line);
}

[data-theme="block"] .hero__media {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    height: min(76vh, 720px);
    border-left: 2px solid var(--line);
}

[data-theme="block"] .hero__media::after {
    display: none;
}

[data-theme="block"] .hero__text {
    position: static;
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-end;
    padding: 40px 32px;
    background: var(--accent);
}

[data-theme="block"] .hero__title {
    font-size: clamp(48px, 6.5vw, 112px);
    line-height: 0.88;
}

[data-theme="block"] .hero__eyebrow {
    opacity: 1;
    padding: 4px 8px;
    background: var(--text);
    color: var(--accent);
}

[data-theme="block"] .hero__cta {
    background: var(--text);
    color: var(--accent);
    box-shadow: 4px 4px 0 var(--surface);
}

[data-theme="block"] .section-title {
    display: inline;
    padding: 0 8px;
    background: linear-gradient(transparent 55%, var(--accent) 55%);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

[data-theme="block"] .product-card {
    background: var(--surface);
    border: 2px solid var(--line);
    box-shadow: 6px 6px 0 var(--text);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="block"] .product-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0 var(--text);
}

[data-theme="block"] .product-card__media {
    border-bottom: 2px solid var(--line);
}

[data-theme="block"] .product-card__info {
    padding: 12px;
}

[data-theme="block"] .product-card__name {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
}

[data-theme="block"] .product-card__price {
    font-family: var(--font-label);
    font-weight: 700;
}

[data-theme="block"] .badge {
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border: 2px solid var(--text);
    background: var(--accent);
    color: var(--text);
    font-weight: 700;
    transform: rotate(-6deg);
    box-shadow: 2px 2px 0 var(--text);
}

[data-theme="block"] .badge--sale {
    background: var(--sale);
    color: #fff;
}

[data-theme="block"] .editorial {
    border-top: 2px solid var(--line);
    border-bottom: 2px solid var(--line);
}

[data-theme="block"] .editorial__media {
    border-right: 2px solid var(--line);
}

[data-theme="block"] .image-display-container,
[data-theme="block"] .order-summary-section {
    border: 2px solid var(--line);
    box-shadow: 6px 6px 0 var(--text);
}

[data-theme="block"] .size-option-btn {
    border-width: 2px;
}

[data-theme="block"] .site-footer {
    border-top: 2px solid var(--line);
    background: var(--accent);
    --muted: #3d3a2a;
    --line: #0a0a0a;
}

@media (max-width: 768px) {
    [data-theme="block"] .header-nav a {
        display: none;
    }

    [data-theme="block"] .hero {
        grid-template-columns: 1fr;
    }

    [data-theme="block"] .hero__media {
        grid-column: 1;
        height: 56vh;
        border-left: 0;
        border-bottom: 2px solid var(--line);
    }

    [data-theme="block"] .hero__text {
        grid-row: 2;
        padding: 28px 16px 36px;
    }

    [data-theme="block"] .editorial__media {
        border-right: 0;
        border-bottom: 2px solid var(--line);
    }
}

/* --- DESIGN PREVIEW SWITCHER (local test site only, built by theme.js) - */

.theme-switcher {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 2px;
    max-width: calc(100vw - 32px);
    overflow-x: auto;
    padding: 4px;
    background: #111;
    color: #fff;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 12px;
    scrollbar-width: none;
}

.theme-switcher span {
    padding: 0 8px 0 10px;
    opacity: 0.6;
}

.theme-switcher button {
    flex-shrink: 0;
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff;
    white-space: nowrap;
}

.theme-switcher button[aria-pressed="true"] {
    background: #fff;
    color: #111;
}
