/*
 * Bianchini's Market CYBER MONDAY skin (gift-card tenant).
 *
 * Built to Bianchini's own 2025 sale page (cybermonday.bianchinismarket.com,
 * cart/_images/2025CyberMonday_Monday-web.webp): a soft teal field, white
 * letter-spaced CYBER MONDAY between two rules, GIFT CARD SALE in big white
 * capitals, the household limit in red, and the red Cyber Monday gift card on
 * a plinth among red, gold and white ornaments.
 *
 * Palette is sampled from that raster and the legacy cart's LESS variables:
 *   teal #76adba (the field), deep teal #4f8794 (footer, rules), Bianchini's
 *   red #be1e2d (@bmRed), gold #c9a14a (stars and ornament caps), white.
 * Type: Fjalla One is what the legacy cart loaded for its condensed caps;
 * Barlow is the holiday skin's body face, so the two Bianchini's tenants read
 * as one shop.
 *
 * The art is images/bianchinis-cyber-hero.webp, the lower half of the 2025
 * raster with no 2025 date in it (scripts/build-bianchinis-cyber-hero-art.py).
 * It reaches the page through settings.storefront.hero_image_asset, so the
 * shared template's hero-media slot carries it; this skin stacks the slot
 * under the words instead of beside them.
 *
 * The header is white with the black stamp logo, as on bianchinismarket.com;
 * the teal starts under it. Nothing here names this tenant's words.
 */
@import url('https://fonts.googleapis.com/css2?family=Fjalla+One&family=Barlow:wght@400;500;600;700&display=swap');

:root {
    --teal: #76adba;
    --teal-light: #8fc4cf;
    --teal-deep: #4f8794;
    --red: #be1e2d;
    --red-deep: #9a1723;
    --gold: #c9a14a;
    --white: #ffffff;
    --stamp: #231f20;

    /* Structural tokens remapped so dynamically rendered parts match. */
    --evergreen: var(--red);
    --evergreen-deep: var(--red-deep);
    --cream: var(--teal);
    --paper: var(--white);
    --sage: #e6f2f4;
    --cranberry: var(--red);
    --ink: var(--stamp);
    --muted: #55656a;
    --line: #c8dde2;
    --shadow: 0 18px 44px rgba(31, 70, 80, .22);
}

body,
button,
input,
select,
textarea {
    font-family: Barlow, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* The art's field: flat teal, so the edges of the art disappear into it. */
body {
    color: var(--white);
    background: var(--teal);
}

a { color: var(--white); }

/* ------------------------------------------------------------------ */
/* Header and footer. */
.site-header {
    min-height: 84px;
    color: var(--stamp);
    background: var(--white);
    border-bottom: 4px solid var(--red);
    backdrop-filter: none;
}
.site-header-inner { justify-content: center; }
.brand-home { color: var(--stamp); }
.brand-logo {
    width: auto;
    max-height: 72px;
}
.brand-name,
.ordering-label,
.brand-subtitle { color: var(--stamp); }
.header-store-change { color: var(--stamp); border-color: var(--stamp); }

.footer {
    color: rgba(255, 255, 255, .85);
    background: var(--teal-deep);
    border-top: 0;
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .8rem;
}
/* The stamp is black on transparent; on the deep teal it is lifted to white. */
.footer-logo { width: 110px; height: auto; filter: brightness(0) invert(1); }
.footer-copy { font-size: .78rem; letter-spacing: .08em; }

/* ------------------------------------------------------------------ */
/* Countdown, first on screen before the sale opens: STARTS IN between
   rules, then four white ornament discs with gold caps and red numbers. */
.sale-top {
    padding: clamp(1.6rem, 4vw, 2.6rem) 1rem .4rem;
    color: var(--white);
    background: transparent;
    border: 0;
}
.sale-top .sale-title {
    margin: 0 auto 1.2rem;
    color: var(--white);
    font-family: "Fjalla One", Impact, sans-serif;
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    font-weight: 400;
    letter-spacing: .32em;
    text-transform: uppercase;
}
.sale-top .countdown {
    max-width: 560px;
    gap: clamp(.6rem, 2.4vw, 1.4rem);
}
.countdown-unit {
    position: relative;
    display: grid;
    aspect-ratio: 1;
    padding: 0;
    place-content: center;
    color: var(--red);
    background: radial-gradient(circle at 35% 30%, #ffffff 0 45%, #e9eef0 100%);
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(31, 70, 80, .28);
}
/* The ornament's cap. */
.countdown-unit::before {
    position: absolute;
    top: -9px;
    left: 50%;
    width: 22%;
    height: 14px;
    background: linear-gradient(180deg, #e2c27a, var(--gold));
    border-radius: 3px 3px 1px 1px;
    content: '';
    transform: translateX(-50%);
}
.countdown-unit strong {
    color: var(--red);
    font-family: "Fjalla One", Impact, sans-serif;
    font-size: clamp(1.6rem, 6vw, 2.9rem);
    font-weight: 400;
    line-height: 1;
}
.countdown-unit span {
    margin-top: .2rem;
    color: var(--stamp);
    font-size: clamp(.55rem, 1.4vw, .72rem);
    font-weight: 700;
    letter-spacing: .14em;
    opacity: 1;
}

.sale-top .sale-banner {
    color: var(--white);
    background: var(--red);
    border-radius: 0;
    font-family: "Fjalla One", Impact, sans-serif;
    font-weight: 400;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* ------------------------------------------------------------------ */
/* Hero: one centred column, the words over the art. */
.hero,
.hero:has(.hero-media) {
    padding: clamp(1.4rem, 4vw, 2.4rem) clamp(1rem, 5vw, 3rem) 0;
    overflow: visible;
    color: var(--white);
    background: transparent;
    border: 0;
}
.hero::after { content: none; }
.hero-waves { display: none; }
.hero-inner,
.hero-inner:has(.hero-media) {
    display: block;
    width: min(100%, 980px);
    max-width: none;
    min-height: 0;
    margin: 0 auto;
}
.hero-copy-panel,
.hero-inner:has(.hero-media) .hero-copy-panel {
    display: block;
    max-width: 860px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

/* CYBER MONDAY between two rules. */
.eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(.8rem, 3vw, 1.6rem);
    margin: 0 0 .5rem;
    color: var(--white);
    font-family: "Fjalla One", Impact, sans-serif;
    font-size: clamp(1.25rem, 3.4vw, 2.3rem);
    font-weight: 400;
    letter-spacing: .3em;
    text-transform: uppercase;
}
.eyebrow::before,
.eyebrow::after {
    flex: 0 1 9rem;
    height: 3px;
    background: var(--white);
    content: '';
}

.hero h1 {
    max-width: none;
    margin: 0 auto;
    color: var(--white);
    font-family: "Fjalla One", Impact, sans-serif;
    font-size: clamp(2.4rem, 6.4vw, 4.9rem);
    font-weight: 400;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 3px 0 rgba(31, 70, 80, .22);
}

/* The offer reads in white on a red ribbon; the sub-line is the art's red
   "Limit 5 Per Household" line, white on the teal here for contrast. */
.offer-line {
    display: inline-block;
    margin: 1.2rem auto 0;
    padding: .45rem 1.4rem .4rem;
    color: var(--white);
    background: var(--red);
    font-family: "Fjalla One", Impact, sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    letter-spacing: .06em;
    line-height: 1.15;
}
.offer-subline {
    margin: .8rem auto 0;
    color: var(--white);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 700;
    letter-spacing: .14em;
}
.hero-open-callout { color: var(--white); }
.hero-copy {
    max-width: 640px;
    margin: .9rem auto 0;
    color: var(--white);
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 500;
}
.preview-stack {
    display: grid;
    justify-items: center;
    margin-top: 1rem;
}
.preview-note {
    margin-top: 0;
    color: var(--stamp);
    background: rgba(255, 255, 255, .88);
    border: 0;
    border-radius: 0;
}
.preview-note > span { color: var(--red); }

/* The art. The structural layer gives hero-media a dark left fade for photo
   heroes; here the fade goes, and all four edges melt into the field (the
   raster's own teal drifts a shade darker toward its corners). */
.hero-media {
    width: min(100%, 860px);
    margin: .4rem auto 0;
    overflow: visible;
}
.hero-media::after { content: none; }
.hero-media img {
    width: 100%;
    height: auto;
    min-height: 0;
    object-fit: contain;
    -webkit-mask-image:
        linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent),
        linear-gradient(180deg, transparent, #000 3%, #000 80%, transparent);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent),
        linear-gradient(180deg, transparent, #000 3%, #000 80%, transparent);
    mask-composite: intersect;
}

/* ------------------------------------------------------------------ */
/* Below the hero: white cards with a red top rule, dark type. */
.order-bar { display: none; }
.main-shell { padding-top: 0; }
.gift-sale { max-width: 720px; }

.section-card,
.panel {
    color: var(--stamp);
    background: var(--white);
    border: 0;
    border-top: 5px solid var(--red);
    border-radius: 0;
    box-shadow: var(--shadow);
}
.sale-panel { padding: clamp(1.4rem, 4vw, 2.2rem); }
.sale-panel .sale-title { color: var(--red); font-family: "Fjalla One", Impact, sans-serif; font-weight: 400; letter-spacing: .06em; }
.sale-window { color: var(--stamp); font-weight: 600; }
.sale-fine-print {
    color: var(--muted);
    font-size: .85rem;
    line-height: 1.5;
}
/* The first fine-print line is the household limit; the art set it in red. */
.sale-fine-print li:first-child { color: var(--red); font-weight: 700; }
.preview-state-note {
    color: var(--stamp);
    background: rgba(255, 255, 255, .85);
    border: 0;
    border-radius: 0;
}

/* The order form. */
.gift-form h2 {
    color: var(--red);
    font-family: "Fjalla One", Impact, sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: .14em;
    text-align: center;
    text-transform: uppercase;
}
.gift-form h3 {
    color: var(--stamp);
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.gift-form label,
.card-token-form label {
    color: var(--stamp);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
}
.gift-form input,
.gift-form select,
.gift-form textarea,
.card-token-form input,
.card-token-form select {
    color: var(--stamp);
    background: var(--white);
    border: 1px solid #b9cdd2;
    border-radius: 0;
}
.gift-form input:focus-visible,
.gift-form select:focus-visible,
.gift-form textarea:focus-visible,
.card-token-form input:focus-visible,
.card-token-form select:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 1px;
}
.gift-offer-single {
    color: var(--red);
    font-family: "Fjalla One", Impact, sans-serif;
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: .06em;
    text-align: center;
}
.gift-summary { color: var(--stamp); }
.gift-summary strong { color: var(--red); }
.gift-handling,
.gift-preview-note { color: var(--muted); }

/* CHECKOUT: Bianchini's red bar, white letter-spaced caps. */
.primary-button {
    padding: 1rem 1.2rem;
    color: var(--white);
    background: var(--red);
    border-radius: 0;
    font-family: "Fjalla One", Impact, sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: .22em;
    text-transform: uppercase;
}
.primary-button:hover { background: var(--red-deep); }
.primary-button:focus-visible { outline: 3px solid var(--stamp); outline-offset: 2px; }
.form-status.error { color: #7a0d17; background: #fde3e5; }
.form-status.success { color: #0f4a35; background: #dcf2e8; }
.gift-success,
.success-card {
    color: var(--stamp);
    background: var(--white);
}
.success-card strong { color: var(--red); }

/* The store chooser dialog on arrival. */
.store-chooser-card {
    color: var(--stamp);
    background: var(--white);
    border: 0;
    border-top: 5px solid var(--red);
    border-radius: 0;
}
.store-chooser-card h2 { color: var(--red); font-family: "Fjalla One", Impact, sans-serif; font-weight: 400; letter-spacing: .04em; }
.store-chooser-card p { color: var(--muted); }
.store-chooser-options button {
    color: var(--stamp);
    background: var(--white);
    border: 2px solid var(--red);
    border-radius: 0;
}
.store-chooser-options button:hover,
.store-chooser-options button:focus-visible {
    color: var(--white);
    background: var(--red);
}

/* ------------------------------------------------------------------ */
/* Quantity: one compact stepper, [−] [qty] [+] side by side, with the
   totals beside it (below it on a phone). The shared markup has the
   buttons; this skin lays them out (Seaside's 1f4070c, in Bianchini's red). */
.gift-cart-quantity-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .35rem 1.25rem;
}
.gift-cart-quantity-row > label { grid-column: 1 / -1; margin: 0; }
.gift-quantity-control {
    display: grid;
    grid-template-columns: 44px 72px 44px;
    width: max-content;
    border: 1px solid var(--red);
    border-radius: .55rem;
    overflow: hidden;
}
.gift-form .gift-quantity-control select {
    width: 100%;
    min-height: 44px;
    padding: 0 .4rem;
    border: 0;
    border-radius: 0;
    font-weight: 700;
    text-align: center;
    text-align-last: center;
}
.gift-quantity-control button {
    min-height: 44px;
    padding: 0;
    color: #ffffff;
    background: var(--red);
    border: 0;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}
.gift-quantity-control button:hover { background: var(--red-deep); }
.gift-quantity-control button:focus-visible,
.gift-form .gift-quantity-control select:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: -3px;
}
@media (max-width: 480px) {
    .gift-cart-quantity-row { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .site-header { min-height: 68px; }
    .brand-logo { max-height: 52px; }
    .eyebrow { letter-spacing: .22em; }
    .eyebrow::before,
    .eyebrow::after { flex-basis: 2.5rem; }
    .countdown-unit::before { top: -7px; height: 10px; }
    .hero-media { width: 112%; margin-left: -6%; }
}

/* Order confirmation page (after payment): Bianchini's red, teal and ink,
   none of the template's default green. */
.confirmation-page main { color: var(--ink); background: var(--white); border-color: var(--line); }
.confirmation-page h1 {
    color: var(--red);
    font-family: "Fjalla One", Impact, sans-serif;
    font-weight: 400;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.confirmation-page .status { background: var(--sage); color: var(--ink); }
.confirmation-page main a { color: var(--red); }
