/*
 * Storefront components: page banner, breadcrumbs, section headers, home
 * hero slider, category cards, product grid/cards, filters, product page,
 * cart, trust bar, testimonials, forms, FAQ accordion.
 */

/* Section header pattern (eyebrow / heading / copy), reused everywhere --- */

.section-header {
    max-width: 640px;
    margin-bottom: var(--space-6);
}

.section-header--center {
    margin-inline: auto;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0.14em;
    font-size: 0.95rem;
    color: var(--color-purple);
    margin-bottom: var(--space-2);
}

/* Breadcrumbs ------------------------------------------------------------- */

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-caption);
    margin-bottom: var(--space-4);
    color: rgba(255, 246, 232, 0.9);
}

/* Only banner-hosted breadcrumbs sit on a photo and need the legibility
   shadow — product.php's plain-background breadcrumb overrides its own
   colour inline and must not pick this up. */
.page-banner__content .breadcrumbs {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 2px 12px rgba(0, 0, 0, 0.5);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs__sep {
    opacity: 0.6;
}

/* Page banner --------------------------------------------------------------- */

.page-banner {
    position: relative;
    min-height: 320px;
    height: 42vh;
    max-height: 420px;
    overflow: hidden;
    /* Breathing room before whatever follows (product controls, prose,
       forms) — previously zero, so the Shop page's sort/filter toolbar sat
       flush against the banner's bottom edge. */
    margin-bottom: var(--space-7);
}

.page-banner__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-banner__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    /* No dark panel — two soft, wide gradients (vertical bottom fade +
       horizontal left fade) layered together so the whole text block stays
       legible regardless of exact copy height or how light-toned a given
       banner photo is, without ever reading as a hard-edged rectangle. */
    background:
        linear-gradient(180deg, rgba(17,17,17,0) 15%, rgba(17,17,17,0.62) 100%),
        linear-gradient(90deg, rgba(17,17,17,0.4) 0%, rgba(17,17,17,0) 62%);
}

.page-banner--strong .page-banner__overlay {
    background:
        linear-gradient(180deg, rgba(17,17,17,0) 8%, rgba(17,17,17,0.72) 100%),
        linear-gradient(90deg, rgba(17,17,17,0.52) 0%, rgba(17,17,17,0) 68%);
}

.page-banner__content {
    padding-block: var(--space-6);
    color: var(--color-cream);
    max-width: 640px;
    /* Left-aligned at the same gutter as the header logo/content — not
       centered within the page. .container (which this element also
       carries, see page-banner.php) applies margin-inline:auto for its
       max-width; that must not apply here, or the content re-centers
       itself inside the wider container rather than hugging the left
       edge. */
    margin-inline: 0;
}

.page-banner__eyebrow {
    font-weight: 700;
    letter-spacing: 0.12em;
    font-size: var(--fs-caption);
    color: var(--color-cream);
    opacity: 0.95;
    margin-bottom: var(--space-2);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 2px 12px rgba(0, 0, 0, 0.5);
}

.page-banner__heading {
    color: var(--color-cream);
    margin-bottom: var(--space-2);
    font-size: clamp(2rem, 3vw + 1rem, 3.25rem);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.75), 0 4px 20px rgba(0, 0, 0, 0.55);
}

.page-banner__copy {
    color: #fff;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 2px 12px rgba(0, 0, 0, 0.5);
}

@media (max-width: 767px) {
    .page-banner { height: 32vh; min-height: 260px; }
}

/* Category cards (home) — compact rail, single row on desktop, touch
   slider on mobile (scroll-snap: no JS needed for a smooth, accessible,
   swipeable rail). -------------------------------------------------------- */

.category-cards {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-2);
    /* Hide the scrollbar visually while staying scrollable/swipeable — this
       is a slider, not a table, so a persistent scrollbar reads as UI noise. */
    scrollbar-width: none;
}

.category-cards::-webkit-scrollbar { display: none; }

.category-card {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 128px;
    scroll-snap-align: start;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--color-black);
}

@media (min-width: 640px) {
    .category-cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        overflow: visible;
    }
    .category-card { width: auto; }
}

@media (min-width: 1024px) {
    .category-card { aspect-ratio: 4 / 5; }
}

.category-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.category-card:hover .category-card__image {
    transform: scale(1.06);
}

.category-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: var(--space-3);
    background: linear-gradient(180deg, rgba(17,17,17,0) 55%, rgba(17,17,17,0.85) 100%);
    color: #fff;
}

.category-card__icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-1);
    backdrop-filter: blur(4px);
}

.category-card__icon svg { width: 13px; height: 13px; }

.category-card__label {
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

@media (min-width: 1024px) {
    .category-card__label { font-size: 1.1rem; }
}

/* Trust bar ----------------------------------------------------------------- */

.trust-bar {
    /* Same background as the page itself — no separate coloured/tinted
       panel behind the strip, in either theme. */
    background: var(--bg-page);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.trust-bar__grid {
    display: flex;
    gap: var(--space-6);
    padding-block: var(--space-6);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.trust-bar__grid::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
    .trust-bar__grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        overflow: visible;
        gap: var(--space-5);
    }
}

.trust-bar__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    flex: 0 0 auto;
    /* One item mostly fills the viewport with a small peek of the next,
       signalling there's more to swipe — not several items at once. */
    width: 82vw;
    max-width: 320px;
    scroll-snap-align: start;
}

@media (min-width: 768px) {
    .trust-bar__item {
        width: auto;
        align-items: center;
        text-align: center;
    }
}

.trust-bar__item-icon {
    /* No badge/circle background — plain line icon, per brand reference:
       simple icons directly on the strip's own background, no card look. */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-purple);
}

.trust-bar__item-icon svg {
    width: 26px;
    height: 26px;
}

.trust-bar__item h3 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: var(--fs-small);
    margin: 0;
}

.trust-bar__item p {
    font-size: var(--fs-caption);
    margin: 0;
}

/* Rail slider pagination dots — shared by the category rail and trust
   strip on mobile (assets/js/rail-slider.js only renders these when a
   rail is actually scrollable, i.e. never on the desktop grid layout). */
.rail-slider__dots {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-3);
    margin-bottom: var(--space-5);
}

.rail-slider__dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--border-strong);
    transition: background var(--transition-fast), width var(--transition-fast);
}

.rail-slider__dot[aria-current="true"] {
    background: var(--color-purple);
    width: 18px;
}

/* Promo banners (New Drop / Sale) ------------------------------------------- */

.promo-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: center;
}

.promo-banner__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-banner::before {
    /* Full-bleed smooth fade — no boxed sub-container with a hard edge.
       Dissolves into the image entirely by 65%, so it reads as atmosphere,
       not a panel. Text legibility comes primarily from the text-shadow on
       the copy itself, matching the "no visible dark rectangle" direction. */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17,17,17,0.4) 0%, rgba(17,17,17,0) 65%);
    z-index: 1;
    pointer-events: none;
}

.promo-banner__overlay {
    position: relative;
    z-index: 2;
    padding: var(--space-6);
    color: #fff;
    max-width: 420px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-banner__overlay h2 { color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6); }
.promo-banner__overlay p { color: rgba(255,255,255,0.92); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55); }
.promo-banner__overlay .eyebrow { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55); }

/* "More Than Just a Fit" feature cards --------------------------------------- */

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    text-align: left;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: var(--gradient-brand);
    color: #fff;
    margin-bottom: var(--space-4);
}

.feature-card__icon svg { width: 22px; height: 22px; }

.feature-card h3 {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.feature-card p { margin: 0; }

/* Testimonials ---------------------------------------------------------------- */

.testimonials {
    display: grid;
    gap: var(--space-5);
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .testimonials { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-5);
}

.testimonial-card__stars {
    display: flex;
    gap: 2px;
    color: var(--color-yellow);
    margin-bottom: var(--space-3);
}

.testimonial-card__stars svg { width: 16px; height: 16px; fill: currentColor; }

.testimonial-card p {
    color: var(--text-primary);
    font-style: italic;
}

.testimonial-card__name {
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--text-secondary);
}

/* Editorial section ------------------------------------------------------------ */

.editorial-block {
    display: grid;
    gap: var(--space-6);
    align-items: center;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .editorial-block { grid-template-columns: 1fr 1fr; }
    .editorial-block--reverse { direction: rtl; }
    .editorial-block--reverse > * { direction: ltr; }
}

.editorial-block__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.newsletter-form-home {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-top: var(--space-2);
}

.newsletter-form-home input {
    flex: 1;
    min-width: 220px;
}

.newsletter-form-home__consent {
    font-size: var(--fs-caption);
    color: var(--text-secondary);
    margin-top: var(--space-3);
}

/* Product grid + card --------------------------------------------------------- */

.shop-layout {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1fr;
    padding-block: var(--space-6);
}

@media (min-width: 1024px) {
    .shop-layout { grid-template-columns: 260px 1fr; align-items: start; }
}

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
    flex-wrap: wrap;
}

.shop-toolbar__count {
    font-size: var(--fs-small);
    color: var(--text-secondary);
}

.shop-toolbar__controls {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

.select-field {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: var(--fs-small);
}

.filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    font-weight: 600;
    font-size: var(--fs-small);
}

@media (min-width: 1024px) {
    .filter-toggle { display: none; }
}

.filters {
    display: none;
}

@media (min-width: 1024px) {
    .filters {
        display: block;
        position: sticky;
        top: calc(var(--header-height) + var(--announcement-height) + var(--space-4));
    }
}

body[data-filters-open] .filters {
    display: block;
    position: fixed;
    inset: 0 15% 0 0;
    z-index: 220;
    background: var(--bg-page);
    padding: var(--space-5);
    overflow-y: auto;
    box-shadow: var(--shadow-lift);
}

.filters__group {
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--border-subtle);
}

.filters__group h3 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: var(--fs-small);
    margin-bottom: var(--space-3);
}

.filters__option {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-small);
    padding: var(--space-1) 0;
    color: var(--text-secondary);
}

.filters__option input { accent-color: var(--color-purple); }

.filters__price-row {
    display: flex;
    gap: var(--space-2);
}

.filters__price-row input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-strong);
    background: var(--bg-card);
    color: var(--text-primary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    align-items: stretch;
}

@media (min-width: 640px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.product-card:hover {
    box-shadow: var(--shadow-lift);
    transform: translateY(-2px);
}

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

.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card__badges {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    width: fit-content;
}

.badge--new { background: var(--color-purple); color: #fff; }
.badge--sale { background: var(--color-pink); color: #fff; }
.badge--best-seller { background: var(--color-yellow); color: var(--color-black); }
.badge--sold-out { background: var(--color-black); color: #fff; }

.product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: var(--space-3) var(--space-4) var(--space-4);
}

.product-card__category {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

/* No line-clamp — a long title (e.g. "Premium Faux Leather Varsity
   Bomber Jacket") used to get truncated with an ellipsis mid-word inside
   a fixed 2-line box. Left to wrap naturally instead: the card just grows
   to fit, and the 2-up mobile grid stays 2-up regardless (this only
   affects a card's own height, not its column). */
.product-card__title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--fs-small);
    line-height: 1.4;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.product-card__price {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    font-weight: 700;
    margin-bottom: var(--space-3);
    font-variant-numeric: tabular-nums;
}

.product-card__price .old-price {
    font-weight: 500;
    font-size: var(--fs-caption);
    color: var(--text-secondary);
    text-decoration: line-through;
}

.product-card__action {
    margin-top: auto;
}

.product-card__action .btn {
    width: 100%;
    padding: 10px 16px;
    min-height: 40px;
    font-size: var(--fs-small);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-7);
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    font-size: var(--fs-small);
    font-weight: 600;
}

.pagination a:hover { background: var(--bg-surface); }
.pagination [aria-current="page"] { background: var(--color-purple); color: #fff; border-color: var(--color-purple); }

.empty-state {
    text-align: center;
    padding-block: var(--space-8);
}

/* Product detail page ------------------------------------------------------------ */

.product-detail {
    display: grid;
    gap: var(--space-7);
    grid-template-columns: 1fr;
    padding-block: var(--space-7);
}

@media (min-width: 1024px) {
    .product-detail { grid-template-columns: 1.1fr 1fr; }
}

.product-gallery__main {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-surface);
    margin-bottom: var(--space-3);
}

.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }

.product-gallery__thumbs {
    display: flex;
    gap: var(--space-2);
}

.product-gallery__thumbs button {
    width: 72px;
    height: 90px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
}

.product-gallery__thumbs button[aria-current="true"] {
    border-color: var(--color-purple);
}

.product-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-info__category {
    font-size: var(--fs-caption);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-purple);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.product-info h1 { margin-bottom: var(--space-2); }

.product-info__tagline {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

.product-info__price {
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-display);
    margin-bottom: var(--space-4);
    font-variant-numeric: tabular-nums;
}

.product-info__price .old-price {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-caption);
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: var(--space-5);
}

.stock-pill--in_stock { background: rgba(30,142,90,0.12); color: var(--color-success); }
.stock-pill--low_stock { background: rgba(255,138,0,0.12); color: var(--color-orange); }
.stock-pill--sold_out { background: rgba(225,51,47,0.12); color: var(--color-danger); }
.stock-pill--available_while_stock_lasts { background: rgba(124,58,237,0.12); color: var(--color-purple); }

.option-group {
    margin-bottom: var(--space-5);
}

.option-group__label {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: var(--fs-small);
    margin-bottom: var(--space-3);
}

.option-group__label a {
    color: var(--color-purple);
    font-weight: 500;
    font-size: var(--fs-caption);
}

.swatches {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.swatch {
    min-width: 44px;
    height: 44px;
    padding: 0 var(--space-3);
    border-radius: 8px;
    border: 1.5px solid var(--border-strong);
    font-size: var(--fs-small);
    font-weight: 600;
    background: var(--bg-card);
}

.swatch[aria-pressed="true"] {
    border-color: var(--color-purple);
    background: rgba(124,58,237,0.08);
    color: var(--color-purple);
}

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

.quantity-stepper button {
    width: 40px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.quantity-stepper button:hover { background: var(--bg-surface); }

.quantity-stepper input {
    width: 48px;
    height: 44px;
    text-align: center;
    border: 0;
    border-left: 1.5px solid var(--border-strong);
    border-right: 1.5px solid var(--border-strong);
    background: var(--bg-card);
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-block: var(--space-5);
}

.product-actions .btn { flex: 1; min-width: 200px; }

.product-note {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    padding: var(--space-3) var(--space-4);
}

.product-details-list {
    list-style: disc;
    padding-left: 1.2em;
    font-size: var(--fs-small);
    color: var(--text-secondary);
}

.product-details-list li { margin-bottom: var(--space-1); }

/* Full-width details section below the gallery/purchase area — three clear
   columns on desktop (Why You'll Love It / Product Details / Delivery &
   Returns), cleanly stacked on mobile rather than the old 2-col grid
   default (which would leave an awkward lone third item). */
.product-full-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 1024px) {
    .product-full-details {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-full-details__col {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-5);
}

.product-full-details__col h2 {
    font-size: 1.15rem;
    font-family: var(--font-body);
    font-weight: 700;
    margin-bottom: var(--space-3);
}

.product-full-details__col p:last-child { margin-bottom: 0; }

.form-message {
    font-size: var(--fs-small);
    padding: var(--space-2) var(--space-3);
    border-radius: 6px;
    display: none;
}

.form-message--error { background: rgba(225,51,47,0.1); color: var(--color-danger); }
.form-message--success { background: rgba(30,142,90,0.1); color: var(--color-success); }
.form-message[data-visible] { display: block; }

/* Cart page ------------------------------------------------------------------------ */

.cart-layout {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1fr;
    padding-block: var(--space-7);
}

@media (min-width: 1024px) {
    .cart-layout { grid-template-columns: 1fr 360px; align-items: start; }
}

.cart-item {
    display: grid;
    grid-template-columns: 84px 1fr auto;
    gap: var(--space-4);
    padding-block: var(--space-4);
    border-bottom: 1px solid var(--border-subtle);
    align-items: center;
}

/* Grid items default to min-width:auto (their content's min-content size).
   The quantity-stepper's fixed-width buttons/input don't shrink, so
   without this the 1fr track — and the whole row — got forced wider than
   the viewport at 320-375px instead of the stepper simply not having
   room to spare. */
.cart-item__body {
    min-width: 0;
}

.cart-item__image {
    width: 84px;
    height: 104px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-surface);
}

.cart-item__image img { width: 100%; height: 100%; object-fit: cover; }

.cart-item__title { font-weight: 600; margin-bottom: 4px; }
.cart-item__meta { font-size: var(--fs-caption); color: var(--text-secondary); }

.cart-item__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-2);
}

.cart-item__remove {
    font-size: var(--fs-caption);
    color: var(--color-danger);
}

.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-5);
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-3);
    font-variant-numeric: tabular-nums;
}

.cart-summary__row--total {
    font-weight: 700;
    font-size: 1.1rem;
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-subtle);
}

.cart-empty {
    text-align: center;
    padding-block: var(--space-9);
}

.cart-empty img { width: 220px; margin-inline: auto; margin-bottom: var(--space-5); }

/* Order-request section — sits below the cart/summary grid but reads as a
   deliberate continuation of it (matching top border + spacing), not an
   island in a large empty area. */
.order-request {
    /* Left-aligned to the .container edge (same shared rule as .prose/
       .faq-list) — not re-centered inside the already-centered .container. */
    max-width: 880px;
    margin-inline: 0;
    padding-block: var(--space-8);
    border-top: 1px solid var(--border-subtle);
}

.order-request__intro {
    margin-bottom: var(--space-6);
}

.order-request__intro h2 { margin-bottom: var(--space-2); }
.order-request__intro p { margin: 0; max-width: 60ch; }

.order-request__card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: var(--space-6);
}

@media (max-width: 640px) {
    .order-request__card { padding: var(--space-5); }
}

/* Forms (contact, order-request, newsletter reuse) --------------------------------- */

.form-grid {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .form-grid--2col { grid-template-columns: 1fr 1fr; }
}

/* Base .field styling lives in components.css (shared with admin). */

.field textarea { min-height: 140px; resize: vertical; }

/* FAQ accordion ----------------------------------------------------------------------- */

.faq-list {
    /* Readable line length, but left-aligned to the .container's edge (same
       edge as the header logo/banner text) — not re-centered inside the
       already-centered .container, which was leaving standard content
       pages looking narrow and disconnected from the rest of the layout. */
    max-width: 760px;
    margin-inline: 0;
}

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

.faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: var(--space-4);
    text-align: left;
    font-weight: 600;
}

.faq-item__question svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.faq-item[data-open] .faq-item__question svg {
    transform: rotate(180deg);
}

.faq-item__answer {
    display: none;
    padding-bottom: var(--space-4);
    color: var(--text-secondary);
}

.faq-item[data-open] .faq-item__answer {
    display: block;
}

/* Simple content pages (policy text) ---------------------------------------------------- */

.prose {
    /* Same shared alignment rule as .faq-list above. */
    max-width: 760px;
    margin-inline: 0;
}

.prose h2 {
    font-size: 1.3rem;
    font-family: var(--font-body);
    font-weight: 700;
    margin-top: var(--space-6);
}

.prose p { color: var(--text-secondary); }
