/*
 * vpm-shop.css - VPM Wholesale's look on the storefront (catalog, product
 * pages, showroom, compare, quote), to match the home page (vpm-theme.css).
 *
 * Loaded by shop/_top.php after the shared styles. Every rule starts with
 * body.shop-body.vpm, which outranks the shell's own .shop-body rules
 * whichever order they arrive in, and touches nothing behind sign-in.
 *
 * Palette: VPM.com's navy #243849, blue #2a5282, yellow #fbb116. Stock and
 * status badges keep their green / amber / red: those colours mean something.
 */

@font-face {
  font-family: 'VPM Josefin';
  src: url('/assets/fonts/josefin-sans.ttf') format('truetype');
  font-weight: 100 700;
  font-display: swap;
}

body.shop-body.vpm {
  --vpm-navy: #243849; --vpm-navy-2: #1a2a37; --vpm-blue: #2a5282; --vpm-blue-2: #3a6aa3;
  --vpm-yellow: #fbb116; --vpm-tint: #eef3f9;
  --vpm-head: Futura, 'Futura PT', 'VPM Josefin', 'Century Gothic', 'Trebuchet MS', sans-serif;
  /* The shared styles read these. */
  --green-900: var(--vpm-navy); --green-700: var(--vpm-blue); --green-600: var(--vpm-blue-2); --green-100: #dfe8f3;
  --c-emerald: var(--vpm-blue); --c-teal: var(--vpm-blue-2); --c-cyan: #5b8cc8;
  --c-lime: #c98a00; --c-lime-b: var(--vpm-yellow); --c-amber: var(--vpm-yellow);
  --c-mint: var(--vpm-tint); --mint: var(--vpm-tint);
  background: linear-gradient(180deg, #eef3f9 0%, #f6f8fb 160px, #ffffff 380px);
}

/* Headings: bold, uppercase Futura, as on the home page. */
body.shop-body.vpm .page-head h1,
body.shop-body.vpm .card-title,
body.shop-body.vpm .sr-hall h1, body.shop-body.vpm .sr-head h1 {
  font-family: var(--vpm-head); text-transform: uppercase; letter-spacing: .02em; font-weight: 700; color: var(--vpm-navy);
}
body.shop-body.vpm .page-head h1::after { background: var(--vpm-yellow); }

/* The shared site header (home/_site_header.php, styled by landing.css and
   vpm-theme.css). Here it is a block, not the home page's full-height column,
   and it scrolls away rather than sticking: the showroom hall and the phone
   filter bar pin themselves to the top of the screen, and a sticky header
   would sit over both. So anchors need no room for it either. */
body.shop-body.vpm .lp.lp-hdr-only { display: block; min-height: 0; }
body.shop-body.vpm .lp-hdr-only .lp-head { position: relative; border-bottom: 2px solid var(--vpm-yellow); }
html:has(> body.shop-body) { scroll-padding-top: 12px; }
body.shop-body.vpm .lp-nav .shop-cart { display: inline-flex; align-items: center; gap: 6px; }
/* The search bar under it, on every storefront page but the grid. */
body.shop-body.vpm .shop-searchbar { background: #fff; border-bottom: 1px solid var(--line); }
body.shop-body.vpm .shop-searchbar .shop-search { max-width: 1120px; margin: 0 auto; padding: 10px 20px; flex: none; }
body.shop-body.vpm .shop-searchbar .shop-search input[type="search"] { max-width: 520px; }
body.shop-body.vpm #lp-progress { background: var(--vpm-yellow); box-shadow: none; }

/* Buttons: solid VPM blue, navy on hover. */
body.shop-body.vpm .btn:not(.btn-outline):not(.btn-ghost):not(.btn-danger) {
  background: var(--vpm-blue); border-color: var(--vpm-blue); color: #fff; border-radius: 8px; }
body.shop-body.vpm .btn:not(.btn-outline):not(.btn-ghost):not(.btn-danger):hover { background: var(--vpm-navy); border-color: var(--vpm-navy); }
body.shop-body.vpm .btn:hover { box-shadow: 0 8px 18px -10px rgba(36,56,73,.55); }
body.shop-body.vpm .btn-outline { border-radius: 8px; }

/* Grid / Showroom toggle, category chips, the USA toggle: navy when on. */
body.shop-body.vpm .shop-view.is-on,
body.shop-body.vpm .cat-chip.is-on,
body.shop-body.vpm .usa-toggle.is-on { background: var(--vpm-navy); color: #fff; box-shadow: none; }
body.shop-body.vpm .cat-chip:hover, body.shop-body.vpm .usa-toggle:hover { border-color: var(--vpm-blue); box-shadow: 0 8px 18px -10px rgba(36,56,73,.4); }

/* Product cards: one blue edge, yellow on hover. */
body.shop-body.vpm .prod-slot > a.prod-card::before,
body.shop-body.vpm .prod-slot:nth-child(n) > a.prod-card::before { background: var(--vpm-blue); }
body.shop-body.vpm .prod-grid > .prod-slot > a.prod-card:hover { border-color: var(--vpm-blue); box-shadow: 0 18px 38px -18px rgba(36,56,73,.45); }
body.shop-body.vpm .prod-grid > .prod-slot > a.prod-card:hover::before { background: var(--vpm-yellow); }

/* The shipped drawings (no product photo yet, showroom doors, empty states)
   are green; turned to VPM blue. Real photos are left alone. */
body.shop-body.vpm img[src*="/assets/img/product.svg"],
body.shop-body.vpm img[src*="/assets/img/door.svg"],
body.shop-body.vpm img[src*="/assets/img/empty.svg"] { filter: hue-rotate(72deg) saturate(.85); }

/* The account call-to-action card. */
body.shop-body.vpm .shop-cta { background: linear-gradient(120deg, var(--vpm-tint), #ffffff 62%); border-color: #c4d5ea; }
body.shop-body.vpm .shop-cta::before { background: var(--vpm-yellow); }
body.shop-body.vpm .brand-teaser { border-left-color: var(--vpm-yellow); }

/* Footer: navy, like the home page. */
body.shop-body.vpm .shop-footer { background: linear-gradient(135deg, var(--vpm-navy-2) 0%, var(--vpm-navy) 60%, #2c4558 100%); }
body.shop-body.vpm .shop-footer::before { background: var(--vpm-yellow); }
body.shop-body.vpm .shop-footer a:hover { color: var(--vpm-yellow); }

/* Showroom: its hall is washed in mint; blue-grey here. */
body.shop-body.vpm .sr-door-blank { background: linear-gradient(135deg, #eef3f9, #dfe8f3); }
/* The hall, its floor and the haze the far bays fade into, in the same
   relationship showroom.css measured for the mint version: the haze is the
   colour the hall shows behind the bays, so a hazed card has no edge. */
body.shop-body.vpm .sr-hall[data-sr-on] {
  background: radial-gradient(120% 80% at 50% 40%, #ffffff 0%, #eef3f9 46%, #d6e2f0 100%); }
body.shop-body.vpm .sr-hall[data-sr-on] .sr-haze { background: #fafbfd; }
body.shop-body.vpm .sr-hall[data-sr-on] .sr-floor {
  background:
    repeating-linear-gradient(to right, rgba(42,82,130,.2) 0 1px, transparent 1px calc(var(--sr-tile, 160) * 1px)),
    repeating-linear-gradient(to bottom, rgba(42,82,130,.2) 0 1px, transparent 1px calc(var(--sr-tile, 160) * 1px)),
    linear-gradient(to bottom, #dfe8f3 0%, #eef3f9 42%, #ffffff 100%); }
body.shop-body.vpm .sr-bay-door .sr-door, body.shop-body.vpm .sr-bay-more .sr-door { background: linear-gradient(180deg, #ffffff, #f5f8fb); }

/* The catalog's title block: a navy band across the page, like the home
   page hero and the blog's title. Full width without new markup: the shadow
   paints the band out to the window edges and clip-path keeps it to the
   block's own height. */
body.shop-body.vpm .page-head { position: relative; color: #fff; padding: 26px 0 24px; margin-bottom: 22px;
  background: var(--vpm-navy); box-shadow: 0 0 0 100vmax var(--vpm-navy); clip-path: inset(-22px -100vmax 0); }
/* ...reaching up over the page's top padding to meet the header. */
body.shop-body.vpm .page-head h1 { color: #fff; }
body.shop-body.vpm .page-head .sub, body.shop-body.vpm .page-head .hint, body.shop-body.vpm .page-head p { color: #d5dde7; }
body.shop-body.vpm .page-head a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); }
body.shop-body.vpm .page-head .shop-views { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); }
body.shop-body.vpm .page-head .shop-view { color: #d5dde7; text-decoration: none; }
body.shop-body.vpm .page-head .shop-view.is-on { background: var(--vpm-yellow); color: var(--vpm-navy); }
body.shop-body.vpm .page-head a.shop-view:hover { color: #fff; background: rgba(255,255,255,.12); }
body.shop-body.vpm .sr-up, body.shop-body.vpm .sr-cue { color: var(--vpm-blue); }
