﻿/* =========================================================================
   SCHNEIDER'S / CELLAR.COM — CUSTOMER WEBSITE BRAND
   Loaded by Website/Website.Master on every public page (shop, product,
   checkout, confirmation, gift cards, rewards, mailing list).
   Source: Branding/Schneiders_BrandGuide_Esentials.pdf.
     Rich Black #231f20, White, Grey #666666. Gold #998542 is for the
     anniversary mark only, so it isn't used here.
     Headings: Bauer Bodoni Black/Bold, capitals. Subheads: Reader Bold.
     Body: Trade Gothic Light.
   The brand fonts are licensed, so the site uses free look-alikes from
   Google Fonts. Which ones is chosen on Settings > Fonts: BrandFonts.AddToHead
   (App_Code/Helpers/BrandFonts.cs) loads them and sets --b-display, --b-sub,
   --b-body and --b-body-weight after this file; the values below are only the
   defaults. Each stack names the brand font first: once the web fonts are
   bought, add their @font-face rules (template at the bottom) and they take
   over everywhere with no other change.
   Back office pages keep cm-theme.css and are not affected.
   ========================================================================= */

:root {
    /* Colour — from the guide */
    --b-ink: #231f20;            /* Rich Black: text, buttons, rules */
    --b-white: #ffffff;
    --b-grey: #666666;           /* Grey: secondary text, the heading bar */
    /* Neutrals derived from the two above, for lines and quiet fills */
    --b-ink-hover: #47423f;
    --b-soft: #767676;           /* lightest grey that still reads as text on white (4.5:1) */
    --b-line: #e4e2e1;
    --b-line-soft: #f1efee;
    --b-field: #c9c6c4;          /* input borders */
    --b-tint: #f6f5f4;           /* panels, hover rows */
    /* Functional colours (not in the guide; agreed Nov 7, 2026) */
    --b-sale: #b91c1c;           /* sale prices and price badges */
    --b-ok: #15803d;
    --b-focus: rgba(35, 31, 32, .18);

    /* Type */
    --b-display: "Bauer Bodoni", "Bodoni Moda", "Bodoni 72", Didot, "Bodoni MT", Georgia, serif;
    --b-sub: "Reader", "Barlow", "Helvetica Neue", Arial, sans-serif;
    --b-body: "Trade Gothic", "Trade Gothic Next", "Barlow", "Helvetica Neue", Arial, sans-serif;
    --b-mono: Consolas, "Courier New", monospace;

    --b-shadow: 0 1px 2px rgba(35, 31, 32, .06), 0 8px 24px rgba(35, 31, 32, .08);
    --b-radius: 2px;             /* the guide is square-edged; keep corners crisp */
}

/* ---- base -------------------------------------------------------------- */

html, body {
    margin: 0;
    padding: 0;
}

body.b-site {
    background: var(--b-white);
    color: var(--b-ink);
    font-family: var(--b-body);
    font-weight: var(--b-body-weight, 400);   /* Settings > Fonts (App_Code/Helpers/BrandFonts.cs) */
    /* Never fake a bold: a font with one weight (Abril Fatface) or a lighter top weight
       (Libre Bodoni) is drawn in its own heaviest face instead of smeared thicker. */
    font-synthesis: style;
    font-synthesis-weight: none;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* DevExpress controls set their own font (Tahoma/Segoe). Bring them into the
   brand body face; headings and buttons are set again below. */
body.b-site [class*="dx"] {
    font-family: var(--b-body) !important;
}

/* :where() keeps these at the lowest priority, so any component that colours its
   own links (black tiles, buttons, the footer) wins without a fight. */
:where(body.b-site) a {
    color: var(--b-ink);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

:where(body.b-site) a:hover {
    color: var(--b-ink-hover);
}

body.b-site :focus-visible {
    outline: 2px solid var(--b-ink);
    outline-offset: 2px;
}

/* ---- headings: Bodoni capitals with the short grey bar, as in the guide -- */

body.b-site h1,
body.b-site h2 {
    font-family: var(--b-display) !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    line-height: 1.12;
    color: var(--b-ink);
}

body.b-site h1 {
    font-size: clamp(26px, 3.4vw, 38px);
    margin: 0 0 14px;
}

/* The grey bar under page titles (guide: every section title has one) */
body.b-site h1::after {
    content: "";
    display: block;
    width: 44px;
    height: 5px;
    margin-top: 12px;
    background: var(--b-grey);
}

body.b-site h2 {
    font-size: clamp(19px, 2vw, 23px);
}

/* Subheads: Reader Bold in the guide — bold sans, capitals, tracked */
body.b-site h3 {
    font-family: var(--b-sub) !important;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--b-ink);
}

/* A product's own name reads better in its own capitalisation */
body.b-site h1.st-pd-name {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
}

body.b-site h1.st-pd-name::after { display: none; }

.b-tagline {
    font-family: var(--b-display);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* ---- header ------------------------------------------------------------ */

.b-header {
    background: var(--b-white);
}

.b-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 22px 24px 18px;     /* clear space around the logo */
}

.b-logo {
    display: inline-block;
    line-height: 0;
    padding: 4px 0;
}

.b-logo img {
    display: block;
    height: 36px;                /* guide minimum on screen: 27px */
    width: auto;
}

.b-header .b-tagline {
    font-size: 13px;
    color: var(--b-ink);
    white-space: nowrap;
}

/* Menu + cart row (markup in Website.Master; layout in Menu.css) */
.menu-and-cart.b-nav {
    background: var(--b-white) !important;
    border-top: 1px solid var(--b-line);
    border-bottom: 1px solid var(--b-ink);
    padding: 0 12px !important;
    position: sticky;
    top: 0;
    z-index: 900;
}

/* DevExpress menu, flattened into the brand: tracked capitals, underline on hover */
.b-site .b-menu,
.b-site .b-menu.dxm-main,
.b-site .b-menu ul,
.b-site .b-menu .dxm-item,
.b-site .b-menu .dxm-item.dxm-hovered,
.b-site .b-menu .dxm-item.dxm-selected {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.b-site .b-menu .dxm-item .dxm-content,
.b-site .b-menu .dxm-item a,
.b-site .b-menu .dxm-item a.dx {
    font-family: var(--b-sub) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--b-ink) !important;
    text-decoration: none !important;
}

.b-site .b-menu .dxm-item .dxm-content {
    padding: 15px 9px !important;
}

.b-site .b-menu .dxm-item.dxm-hovered .dxm-content,
.b-site .b-menu .dxm-item.dxm-selected .dxm-content {
    box-shadow: inset 0 -2px 0 var(--b-ink);
}

/* Drop-down and side (phone) menus */
.b-site .dxm-popup {
    background: var(--b-white) !important;
    border: 1px solid var(--b-line) !important;
    box-shadow: var(--b-shadow) !important;
}

.b-site .dxm-popup .dxm-item,
.b-site .dxm-popup .dxm-item .dxm-content {
    background: transparent !important;
    border: 0 !important;
}

.b-site .dxm-popup .dxm-item a,
.b-site .dxm-popup .dxm-item .dxm-content {
    font-family: var(--b-sub) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--b-ink) !important;
    text-decoration: none !important;
}

.b-site .dxm-popup .dxm-item.dxm-hovered {
    background: var(--b-tint) !important;
}

/* Phone menu button (below 1100px). DevExpress draws a grey, bordered box with three
   bars, and Menu.css used to swap in images/brand/menu-icon.svg; both read as a stock
   widget. This one is just three hairline ink bars of equal length, no box.
   DevExpress's own markup is kept: button > div (middle bar), div::before/::after
   (top and bottom bars). */
.b-site .dxmLite.dxm-side-menu-mode .dxm-side-menu-button {
    content: normal;                 /* undo Menu.css content:url(menu-icon.svg) */
    display: flex;
    align-items: center;
    width: auto;
    height: 44px;
    padding: 0 2px;
    background: transparent;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

    .b-site .dxmLite.dxm-side-menu-mode .dxm-side-menu-button > div {
        position: relative;
        top: auto;
        left: auto;
        margin: 0;
        flex: 0 0 auto;
        width: 22px;
        height: 1.5px;
        background: var(--b-ink);
    }

        .b-site .dxmLite.dxm-side-menu-mode .dxm-side-menu-button > div::before,
        .b-site .dxmLite.dxm-side-menu-mode .dxm-side-menu-button > div::after {
            left: 0;
            width: 22px;
            height: 1.5px;
            background: var(--b-ink);
        }

        .b-site .dxmLite.dxm-side-menu-mode .dxm-side-menu-button > div::before { top: -6px; }
        .b-site .dxmLite.dxm-side-menu-mode .dxm-side-menu-button > div::after { bottom: -6px; top: auto; }

    /* Same hover cue as the full menu: a 2px ink underline */
    .b-site .dxmLite.dxm-side-menu-mode .dxm-side-menu-button:hover {
        box-shadow: inset 0 -2px 0 var(--b-ink);
    }

/* Cart link in the menu row */
.b-site .cart-container {
    gap: 8px;
    padding: 8px 4px;
    cursor: pointer;
}

.b-site .cart-container,
.b-site .cart-container .dxeBase,
.b-site .cart-container span {
    font-family: var(--b-sub) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--b-ink) !important;
}

/* The cart pop-up */
.b-site .responsive-popup .dxpc-header {
    background: var(--b-white) !important;
    border-bottom: 1px solid var(--b-line) !important;
}

.b-site .responsive-popup .dxpc-headerText {
    font-family: var(--b-display) !important;
    font-weight: 800 !important;
    font-size: 18px !important;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--b-ink) !important;
}

/* ---- buttons ----------------------------------------------------------- */

.b-btn,
.b-site .btnCheckOut,
.b-site .btnCheckOut.dxbButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 26px;
    border: 1px solid var(--b-ink) !important;
    border-radius: var(--b-radius) !important;
    background: var(--b-ink) !important;
    background-image: none !important;
    color: var(--b-white) !important;
    font-family: var(--b-sub) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background-color .15s ease;
}

.b-btn:hover,
.b-site .btnCheckOut:hover {
    background: var(--b-ink-hover) !important;
    transform: none !important;
}

.b-site .btnCheckOut .dxb,
.b-site .btnCheckOut span {
    color: var(--b-white) !important;
    font: inherit !important;
    letter-spacing: inherit;
}

.b-btn-plain {
    background: var(--b-white) !important;
    color: var(--b-ink) !important;
}

.b-btn-plain:hover {
    background: var(--b-tint) !important;
}

.b-sale { color: var(--b-sale); }

/* ---- footer ------------------------------------------------------------ */

.b-footer {
    margin-top: 56px;
    background: var(--b-ink);
    color: #d9d6d4;
    font-family: var(--b-body);
    font-size: 15px;
    line-height: 1.6;
}

.b-footer-inner {
    display: grid;
    grid-template-columns: minmax(110px, .8fr) minmax(190px, 1.25fr) minmax(190px, 1.15fr) repeat(3, minmax(140px, 1fr));
    gap: 32px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 44px 24px 28px;
}

.b-footer img.b-footer-logo {
    display: block;
    width: 116px;
    height: auto;
}

.b-footer h3 {
    margin: 0 0 10px;
    color: var(--b-white) !important;
    font-size: 12px !important;
}

.b-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.b-footer li { margin: 0 0 4px; }

/* Store hours (Settings > Website): "days  hours" rows */
.b-footer h3.b-footer-sub { margin-top: 20px; }

.b-hours {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
}

.b-hours > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 3px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.b-hours dt { margin: 0; }

.b-hours dd {
    margin: 0;
    color: var(--b-white);
    text-align: right;
    white-space: nowrap;
}

body.b-site .b-footer a {
    color: #d9d6d4;
    text-decoration: none;
}

body.b-site .b-footer a:hover {
    color: var(--b-white);
    text-decoration: underline;
}

.b-footer-base {
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.b-footer-base-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 24px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 18px 24px 26px;
    font-size: 13px;
    color: #a8a4a2;
}

.b-footer-base .b-tagline {
    font-size: 15px;
    color: var(--b-white);
}

.b-footer-legal {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px 18px;
}

body.b-site .b-footer-legal a { color: #a8a4a2; }

/* ---- local delivery: the line above the logo and its dialog --------------
   Website.Master; wording from Settings > Website (SiteSettings.cs). */

.b-announce {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 2px 14px;
    padding: 8px 16px;
    background: var(--b-ink);
    color: var(--b-white);
    font-family: var(--b-sub);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: center;
}

body.b-site .b-announce-link {
    color: var(--b-white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.b-site .b-announce-link:hover { color: #d9d6d4; }

.b-dialog {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(35, 31, 32, .55);
}

.b-dialog[hidden] { display: none; }

html.b-dialog-open { overflow: hidden; }

.b-dialog-box {
    position: relative;
    width: min(520px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 30px 30px 26px;
    background: var(--b-white);
    border-top: 4px solid var(--b-ink);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
    color: var(--b-ink);
    font-size: 16px;
    line-height: 1.6;
}

body.b-site .b-dialog-box h2 {
    margin: 0 36px 14px 0;
    font-size: 26px;
}

body.b-site .b-dialog-box h2::after {
    content: "";
    display: block;
    width: 44px;
    height: 5px;
    margin-top: 12px;
    background: var(--b-grey);
}

.b-dialog-box p { margin: 0 0 12px; }

.b-dialog-facts {
    margin: 4px 0 16px;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--b-line);
}

.b-dialog-facts li {
    padding: 9px 0;
    border-bottom: 1px solid var(--b-line);
}

.b-dialog-call { color: var(--b-grey); }

.b-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.b-dialog-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: var(--b-ink);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.b-dialog-close:hover { color: var(--b-ink-hover); }

/* ---- message box (replaces the browser's alert() on public pages) ------- */

.b-notice {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(35, 31, 32, .55);
}

.b-notice[hidden] { display: none; }

.b-notice-box {
    width: min(440px, 100%);
    padding: 28px 28px 24px;
    background: var(--b-white);
    border-top: 4px solid var(--b-ink);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
    font-family: var(--b-body);
    color: var(--b-ink);
}

.b-notice-box img {
    display: block;
    height: 22px;
    width: auto;
    margin-bottom: 18px;
}

.b-notice-msg {
    margin: 0 0 22px;
    font-size: 16px;
    line-height: 1.55;
    white-space: pre-line;      /* messages use \n for new lines */
    overflow-wrap: anywhere;
}

.b-notice-box .b-btn { min-width: 120px; }
.b-notice-box .b-btn:focus-visible { outline: 2px solid #8c8786; outline-offset: 3px; }

/* ---- page components ---------------------------------------------------
   Gift Cards, Gift Card Balance, Rewards, Mailing List and Checkout keep their
   own layouts; these rules give their buttons and section headers one look. */

body.b-site :is(.gc-btn, .rw-btn, .gb-btn, .ml-btn) {
    font-family: var(--b-sub);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* Checkout section headers (ASPxRoundPanel): Reader-style tracked capitals */
body.b-site .roundPanel .dxrpHeader,
body.b-site .roundPanel .dxrpHT,
body.b-site .roundPanel .dxrpHeader span {
    font-family: var(--b-sub) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--b-ink) !important;
    background: transparent !important;
}

/* Checkout's own header (it doesn't use Website.Master) */
.b-checkout-head {
    border-bottom: 1px solid var(--b-ink);
}

.b-checkout-head .b-header-row {
    padding-top: 16px;
    padding-bottom: 14px;
}

.b-checkout-head .b-secure {
    font-family: var(--b-sub);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--b-grey);
    white-space: nowrap;
}

/* Checkout's legal links (Privacy, Terms, Accessibility) at the foot of the page */
.b-checkout-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 18px;
    max-width: 1320px;
    margin: 40px auto 0;
    padding: 18px 24px 26px;
    border-top: 1px solid var(--b-line);
    font-size: 13px;
}

body.b-site .b-checkout-foot a {
    color: var(--b-grey);
    text-decoration: none;
}

body.b-site .b-checkout-foot a:hover {
    color: var(--b-ink);
    text-decoration: underline;
}

/* ---- small screens ----------------------------------------------------- */

/* The full menu shows down to 1100px (Website.Master collapses it to the phone menu
   below that); keep the row on one line by showing just the cart icon and count. */
@media (max-width: 1280px) {
    .b-site .cart-container .cart-text { display: none; }
}

@media (max-width: 1240px) {
    .b-footer-inner { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .b-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .b-header-row { padding: 14px 16px 12px; justify-content: center; }
    .b-header .b-tagline { display: none; }
    .b-checkout-head .b-header-row { justify-content: space-between; }
    .b-logo img { height: 30px; }
    .b-site .cart-container .cart-text { display: none; }
}

@media (max-width: 480px) {
    .b-footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

@media print {
    .b-nav, .b-footer, .b-notice, .b-announce, .b-dialog { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    .b-btn, .b-site .btnCheckOut { transition: none; }
}

/* ---- licensed brand fonts (fill in once bought) -------------------------
   Put the .woff2 files in /Fonts and uncomment. The family names match the
   first entry of each stack above, so nothing else has to change.

@font-face { font-family: "Bauer Bodoni"; font-weight: 700; font-display: swap;
             src: url("../Fonts/BauerBodoni-Bold.woff2") format("woff2"); }
@font-face { font-family: "Bauer Bodoni"; font-weight: 800 900; font-display: swap;
             src: url("../Fonts/BauerBodoni-Black.woff2") format("woff2"); }
@font-face { font-family: "Reader"; font-weight: 600 700; font-display: swap;
             src: url("../Fonts/Reader-Bold.woff2") format("woff2"); }
@font-face { font-family: "Trade Gothic"; font-weight: 300 400; font-display: swap;
             src: url("../Fonts/TradeGothic-Light.woff2") format("woff2"); }
@font-face { font-family: "Trade Gothic"; font-weight: 600 700; font-display: swap;
             src: url("../Fonts/TradeGothic-Bold.woff2") format("woff2"); }
   ------------------------------------------------------------------------- */
