/*
 * Seaside Market storefront skin (both Seaside tenants).
 * Palette extracted from the live seasidemarket.com holiday page:
 * white page, near-black text (#212529), burgundy accent (#930C34),
 * black primary buttons, League Spartan type. Structure (layout, card
 * image containment) stays in the shared structural stylesheet; this
 * file only re-themes it. Jensen keeps its own green skin.
 */
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;500;600;700;800&display=swap');

:root {
    --evergreen: #930c34;
    --evergreen-deep: #6d0a27;
    --sage: #f4f4f4;
    --cream: #ffffff;
    --paper: #ffffff;
    --cranberry: #930c34;
    --gold: #930c34;
    --ink: #212529;
    --muted: #4b494b;
    --line: #e4e2e3;
    --shadow: 0 18px 48px rgba(0, 0, 0, .10);
}

body,
button,
input,
select,
textarea {
    font-family: "League Spartan", "Spartan", ui-sans-serif, system-ui, sans-serif;
}

h1, h2, h3, h4,
.brand-title,
.hero h1,
.product-art,
.section-heading h2 {
    font-family: "League Spartan", "Spartan", ui-sans-serif, system-ui, sans-serif !important;
    color: #4b494b;
}

body { background: #ffffff; color: #212529; }
.hero h1 { color: inherit; }

/* No black buttons: product-card buttons match the band pills (white,
   burgundy on hover/focus) and checkout is the one filled burgundy call to
   action. Every state is AA or better. */
.primary-button { color: #ffffff; background: #930c34; border: 1.5px solid #930c34; }
.primary-button:hover,
.primary-button:focus-visible { background: #6d0a27; border-color: #6d0a27; }
.primary-button:focus-visible,
.add-order-button:focus-visible { outline: 2px solid #930c34; outline-offset: 2px; }
.add-order-button { color: #212529; background: #ffffff; border-color: #212529; }
.add-order-button:hover,
.add-order-button:focus-visible { color: #ffffff; background: #930c34; border-color: #930c34; }
.primary-button:disabled,
.primary-button:disabled:hover {
    color: #585e64;
    background: #e9ecef;
    border-color: #ced4da;
    cursor: not-allowed;
    opacity: 1;
}
.product-actions input { border: 1.5px solid #212529; border-radius: .55rem; }
.filter-button.active { background: #930c34; border-color: #930c34; color: #ffffff; }

/* White header and hero to match the live site (logo renders on white). */
.site-header {
    color: #212529;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--line);
    /* No blur (2026-11-06). The structural layer gives the header
       backdrop-filter: blur(12px), and the floating View Cart tab is
       position: fixed INSIDE the header. A backdrop-filter (or filter or
       transform) makes the header the tab's containing block, so the phone
       rule bottom: 14px was measured from the header's bottom edge and the
       tab sat inside the header instead of in the corner of the screen. The
       97% white background never showed the blur. Same fix as the Jensen's
       and Bianchini's live-site skins. */
    backdrop-filter: none;
}
.site-header a, .site-header .brand-subtitle { color: inherit; }
.hero {
    color: #212529;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}
.hero h1 { color: #4b494b; }
.eyebrow { color: #930c34; }
.hero-copy { color: #4b494b; }

/* QA round: white text on accent surfaces, no decorative sparkle. */
.cart-header, .cart-header h2 { color: #ffffff; }
.hero::after { content: none; }

/* Category filter pills follow the skin. */
.filter-button { border-color: var(--line); }

/* White footer: the navy logo needs a light background. */
.footer { color: #212529; background: #ffffff; border-top: 1px solid var(--line); }

/* Holiday header per the live seasidemarket.com holiday page: slim white
   bar, orange cart badge, photo banner, dark category band, red disclaimer. */
.site-header { min-height: 56px; padding-top: .4rem; padding-bottom: .4rem; }
.brand-logo { max-height: 40px; }
.cart-jump .cart-count { color: #ffffff; background: #f37121; }
.hero-banner-title { color: #ffffff; font-family: "League Spartan", "Spartan", ui-sans-serif, system-ui, sans-serif !important; }
/* Band pills: white by default; burgundy on hover and when selected
   (including the clearable child chip); white focus ring for keyboards. */
.category-band .filter-button {
    color: #212529;
    background: #ffffff;
    border: 1px solid #ffffff;
    transition: background-color .15s ease, color .15s ease;
}
.category-band .filter-button:hover,
.category-band .filter-button.active { color: #ffffff; background: #930c34; border-color: #930c34; }
.category-band .filter-button:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
.intro-copy { color: #212529; }
.intro-disclaimer { color: #ff0000; }

/* Legacy holiday product box (seasidemarket.com/holidays, read 2026-10-02):
   uppercase letter-spaced name, 3:2 photo, "$275" with a raised dollar,
   grey includes/size table with an italic header, one full-width outlined
   black button that fills black on hover. */
:root { --includes-row: #f1f1f1; --includes-head: #e6e6e6; }
.product-name,
.product-info-name {
    color: #231f20;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    line-height: 1.4;
}
.product-art,
.product-art.has-image { aspect-ratio: 3 / 2; min-height: 0; position: relative; }
/* Pin the photo to the frame. A percentage height against an aspect-ratio
   box is cyclic and falls back to auto, so a portrait photo overflowed the
   frame (clipped raw turkeys) and a wide one floated with a gap above. */
.product-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Logan, 2026-10-12: fill the frame and centre the photo; cropping a tall
   photo (Hanukkah Meal, raw turkeys) beats a narrow strip with white sides. */
.product-art.has-image { background: #ffffff; }
.product-art img { object-fit: cover; object-position: center; }
.product-price {
    color: #231f20;
    font-family: "League Spartan", "Spartan", ui-sans-serif, system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
}
.product-includes { color: #212529; font-size: .85rem; }
.product-includes th { color: #212529; }
.add-order-button,
.add-order-button:disabled {
    min-height: 0;
    padding: 9px 7px 6px;
    border: 1px solid #231f20;
    border-radius: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-transform: capitalize;
}
.add-order-button:hover,
.add-order-button:focus-visible { color: #ffffff; background: #231f20; border-color: #231f20; }

/* =========================================================================
 * CART, copied from the Bianchini tenant (Logan, 2026-10-12: "just copy the
 * cart from the bianchinis tenant"). The permanent right-hand cart column
 * goes; the cart becomes a slide-over opened by the floating tab, via the
 * :target that the existing "Your order" link already sets. Pure CSS.
 * Geometry is bianchinis-ordering.css / bianchinis-site-ordering.css
 * verbatim; only the colours are Seaside's (legacy .cart-sticky orange).
 * ========================================================================= */

.order-layout {
    grid-template-columns: minmax(0, 1fr);
}

.cart-card {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    width: min(26rem, 92vw);
    max-height: none;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    box-shadow: -18px 0 48px rgba(35, 31, 32, .18);
    transform: translateX(102%);
    transition: transform .22s ease;
}

.cart-card:target {
    transform: translateX(0);
}

.cart-close {
    display: block;
    margin-left: auto;
    padding: 0 .35rem;
    color: inherit;
    font-size: 1.5rem;
    line-height: 1;
    text-decoration: none;
}

/* The floating tab on the page's right edge (their cart-sticky: orange,
   rounded left corners, cart glyph, "View Cart", count in a white disc). */
.cart-jump {
    position: fixed;
    top: 300px;
    right: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 85px;
    margin: 0;
    padding: 20px 11px 15px 20px;
    gap: 0;
    color: #ffffff;
    background: #f36627;
    border: 0;
    border-radius: 10px 0 0 10px;
    font-family: "League Spartan", "Spartan", ui-sans-serif, system-ui, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
}

.cart-jump::before {
    content: "";
    display: block;
    width: 30px;
    height: 26px;
    background: url('/images/bianchinis-icon-cart.svg') center / contain no-repeat;
}

.cart-jump::after {
    content: "View Cart";
    flex: 1 1 100%;
    margin-top: .5em;
    color: #ffffff;
    text-align: center;
}

.cart-jump:hover,
.cart-jump:focus-visible {
    color: #ffffff;
    background: #d9571d;
}

/* The link's own words stay for screen readers, clipped; the count moves
   into the badge. Restated at every width because the structural layer
   removes the words outright under 680px. */
.cart-jump > span:first-child {
    display: block;
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}

.cart-jump .cart-count {
    position: absolute;
    bottom: -5px;
    left: -10px;
    min-width: 0;
    width: 25px;
    height: auto;
    padding: 5px 4px 4px;
    color: #231f20;
    background: #ffffff;
    border: 2px solid #231f20;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.cart-jump:hover .cart-count,
.cart-jump:focus-visible .cart-count {
    color: #231f20;
    background: #ffffff;
}

/* =========================================================================
 * The two boxes under the intro go (Logan, 2026-10-12): the Seaside address
 * card and the "Pay at pickup" card. One store, nothing charged online --
 * both only restated facts. The controls stay in the page for the catalogue
 * script; they are hidden, not removed.
 * ========================================================================= */
.order-bar { display: none; }

/* The red category note reads like the legacy per-page disclaimers. */
.category-intro-note { color: #ff0000; }
.product-card-note { color: #ff0000; }
/* Logan, 2026-10-12: a category with a single item centres its card instead
   of sitting in the left column. Seaside selects categories with pills (no
   section headings), so the lone card is the grid's only child; the heading
   case is covered too for when headings are switched on. The card keeps its
   one-column width (half the grid less the 22px column gap). */
.product-grid > .product-card:only-child,
.product-grid > .product-section-heading + .product-card:last-child,
.product-grid > .product-section-heading + .product-card:has(+ .product-section-heading) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: calc(50% - 11px);
}
@media (max-width: 980px) {
    .product-grid > .product-card:only-child,
    .product-grid > .product-section-heading + .product-card:last-child,
    .product-grid > .product-section-heading + .product-card:has(+ .product-section-heading) {
        max-width: none;
    }
}

/* Phone category opener (Logan, 2026-10-14: keep a sticky hamburger that
   lists the categories, like the legacy "Choose Category" picker). Band
   colours: burgundy for the selected category, white list. */
.category-menu-toggle { color: #231f20; background: #ffffff; border-color: #ffffff; }
.category-menu-item.active { background: #930c34; color: #ffffff; }

/* Phones: the floating cart tab sat over the intro paragraph (Logan,
   2026-10-14). It now rides the bottom-right corner, clear of the copy. */
@media (max-width: 680px) {
    .cart-jump { top: auto; bottom: 14px; }
    /* Footer on a phone: the full-size logo left "Seaside Market ·
       Cardiff-by-the-Sea" wrapping beside it (Logan, 2026-11-22). Stack them,
       logo smaller, both centred. */
    .footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
    .footer-logo { width: 160px; height: auto; }
}
