/* The retail storefront's look: a light, clean outdoor-furniture store in the style of
   polywood-helper's /shop (itself matched to the Townsend Mercantile site): white pages, black and
   white, Montserrat, square edges, big product photos on soft neutral panels. Loaded after
   site.css and shop.css on storefront pages only; staff pages are unchanged. Always light. */
body.shop {
  color-scheme: light;
  --bg: #ffffff; --surface: #ffffff; --panel: #f6f5f2; --line: #e2e2e2; --text: #111111; --muted: #5c5c5c;
  --accent: #111111; --accent-ink: #ffffff; --accent-soft: #f2f1ee;
  --clay: #7a4a24;   /* special order: a warm, dark wood brown */
  --stock: #1f5c38;  /* on hand: a deep porch green, used sparingly */
  --err: #a73737; --ok: #1f5c38;
  --radius: 0px;
  --serif: Montserrat, Arial, Helvetica, sans-serif;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 10px 28px rgba(0, 0, 0, .07);
  background: var(--bg); color: var(--text);
  font-family: Montserrat, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 1.55;
}
body.shop h1, body.shop h2, body.shop h3 { font-family: Montserrat, Arial, Helvetica, sans-serif; font-weight: 800; letter-spacing: .01em; color: var(--text); }
body.shop input, body.shop select, body.shop textarea { border-radius: 0; border-color: #c9c9c9; background: #fff; color: var(--text); font-family: inherit; }
body.shop :focus-visible { outline-color: #111; border-radius: 0; }

/* header: the helper's black top bar */
body.shop .shop-head { background: #000; border-bottom: 0; backdrop-filter: none; }
body.shop .shop-head-inner { max-width: 1240px; padding: 14px 20px; }
body.shop .shop-brand { color: #fff; font: 800 17px/1.2 Montserrat, Arial, sans-serif; text-transform: uppercase; letter-spacing: .06em; }
body.shop .shop-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
body.shop .brand-mark { width: 40px; height: 40px; flex: none; border-radius: 9px; }
body.shop .brand-words { display: flex; flex-direction: column; line-height: 1; }
body.shop .brand-top { font-size: 10px; font-weight: 600; letter-spacing: .34em; margin-bottom: 3px; }
body.shop .brand-main { font-size: 18px; font-weight: 800; letter-spacing: .04em; }
body.shop .foot-brand { display: flex; align-items: center; gap: 8px; }
body.shop .foot-brand img { border-radius: 6px; }
body.shop .shop-nav a { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 0; }
body.shop .shop-nav a:hover { background: #222; }
body.shop .shop-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 #fff; }
body.shop .badge { background: #fff; color: #000; }
body.shop .shop-main { max-width: 1240px; padding: 26px 20px 72px; }
body.shop .shop-foot { background: var(--panel); border-top: 1px solid var(--line); }
body.shop .foot-brand { font-family: Montserrat, Arial, sans-serif; text-transform: uppercase; letter-spacing: .06em; font-size: 15px; }
body.shop .skip-link { background: #000; color: #fff; border-radius: 0; }

/* buttons, chips, cards: square and black-and-white */
body.shop .btn { border-radius: 0; border: 1px solid #111; background: #fff; color: #111; font-weight: 700; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; padding: 11px 18px; }
body.shop .btn:hover { background: #f2f2f2; }
body.shop .btn-primary { background: #000; border-color: #000; color: #fff; }
body.shop .btn-primary:hover { background: #222; }
body.shop .chip { border-radius: 0; border-color: #cfcfcf; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: 12px; }
body.shop .chip.active { background: #000; border-color: #000; color: #fff; }
body.shop .card, body.shop .pcard, body.shop .summary, body.shop .panel, body.shop .path, body.shop .list-hero,
body.shop .checkout fieldset, body.shop .parked-order, body.shop table.cart, body.shop .browse-filters,
body.shop .notice, body.shop .option-card, body.shop .msg, body.shop .landing-hero, body.shop .shop-hero { border-radius: 0; }
body.shop .card-img, body.shop .pcard-media, body.shop .product-img, body.shop .bcard-img, body.shop .path-img { background: var(--panel); }
body.shop .msg { border-width: 1px; }
body.shop .eyebrow { color: var(--muted); letter-spacing: .1em; }
body.shop .page-title, body.shop .plp-title, body.shop .landing-hero h1, body.shop .list-hero h1, body.shop .order-hero h1 {
  font-family: Montserrat, Arial, sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
body.shop .crumbs a { color: var(--muted); }
body.shop .tag-stock, body.shop .twin-lot, body.shop .pcard-twin.twin-lot { background: #000; color: #fff; }

/* the two kinds of item: solid black "On the lot" vs dashed brown "Special order" */
body.shop .kbadge { border-radius: 0; letter-spacing: .04em; text-transform: uppercase; font-size: 11px; }
body.shop .kbadge.big { font-size: 12px; }
body.shop .kbadge-lot { background: #000; border-color: #000; color: #fff; }
body.shop .kbadge-special { color: var(--clay); border-color: var(--clay); }
body.shop .ribbon-lot { background: #000; color: #fff; }
body.shop .pcard-lot { border: 1px solid #111; }
body.shop .pcard-special { border: 1px dashed #b9a48f; }
body.shop .kick-lot, body.shop .note-lot { color: var(--stock); }
body.shop .switch-input:checked + .switch-label .switch-track { background: #000; }
body.shop .switch-input:checked + .switch-label .switch-thumb::after { border-color: #000; }
body.shop .pnum, body.shop .chosen-chip, body.shop .sw-more { border-radius: 0; }
body.shop .pnum.current { background: #000; border-color: #000; color: #fff; }
body.shop .pcard-cta { border: 1px solid #111; }
body.shop .pcard-title { font-size: 15px; font-weight: 700; }

/* ---------------------------------------------------------------- product page (helper layout) */
.pd-card { border: 1px solid var(--line); padding: clamp(16px, 3vw, 28px); background: #fff; }
.pd { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: clamp(20px, 4vw, 40px); align-items: start; }
@media (max-width: 820px) { .pd { grid-template-columns: 1fr; } }
.pd .product-img { aspect-ratio: 1; border: 0; padding: 24px; }
.pd .product-img img { object-fit: contain; }
.pd-eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.pd h1 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; text-transform: none; }
.pd-tags { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0 0 12px; }
.pd-color-tag { display: inline-block; padding: 5px 10px; background: #000; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.pd-stock { display: inline-block; padding: 5px 10px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; border: 1px solid #111; }
.pd-stock.in { color: var(--stock); border-color: var(--stock); }
.pd-stock.out { color: #8e2626; border-color: #e2b3b3; }
.pd-stock.out a, .pd-stock.order a { font-weight: 800; }
.pd-stock.special { color: var(--clay); border: 1px dashed var(--clay); }
.pd-stock a { color: inherit; }
.pd-price { margin: 8px 0 16px; font-size: 24px; font-weight: 800; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.pd-sku { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.pd-label { display: block; margin: 0 0 8px; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.pd-variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0 0 18px; border: 0; padding: 0; }
.pd-variant { position: relative; margin: 0; }
.pd-variant input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pd-variant span { display: flex; flex-direction: column; gap: 2px; min-height: 52px; padding: 9px 10px; border: 1px solid #c9c9c9; background: #fff; color: var(--text); font-size: 13px; cursor: pointer; text-align: left; }
.pd-variant small { color: var(--muted); font-size: 12px; font-weight: 600; }
.pd-variant.in-stock span { border: 2px solid #111; padding: 8px 9px; font-weight: 700; }
.pd-variant.in-stock small { color: var(--stock); }
.pd-variant input:checked + span { background: #000; border-color: #000; color: #fff; }
.pd-variant input:checked + span small { color: #ddd; }
.pd-variant.in-stock input:checked + span { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111; }
.pd-variant input:focus-visible + span { outline: 3px solid #111; outline-offset: 3px; }
.pd-variant.to-order span { color: #555; }
.pd-variant input:disabled + span { opacity: .45; cursor: not-allowed; }
.pick-req { margin-left: 6px; padding: 1px 6px; border: 1px solid var(--clay); color: var(--clay); font-size: 10px; }
.pd-stock.order { color: var(--clay); border: 1px dashed var(--clay); }
.btn[hidden] { display: none; }
.pd-buy { display: flex; align-items: end; gap: 12px; margin: 8px 0 14px; }
.pd-buy .qty { width: 90px; margin: 0; }
.pd-buy .btn { flex: 1; min-height: 48px; }
.pd-bullets { margin: 16px 0 0; padding-left: 20px; line-height: 1.7; }
.pd .notice { margin: 10px 0; }
.pd .twin-box { border-radius: 0; }
.pd select.option-select { min-height: 46px; }

/* Product photos come on white; let them sit on the soft panel instead of in a white box. */
body.shop .product-img img, body.shop .pcard-img, body.shop .card-img img, body.shop .bcard-img img,
body.shop .path-img img, body.shop .cart-thumb img, body.shop .thumb img { mix-blend-mode: multiply; }
body.shop .thumb { border-radius: 0; background: var(--panel); }
@media (max-width: 560px) {
  body.shop .shop-brand { font-size: 13px; letter-spacing: .03em; }
  body.shop .brand-mark { width: 34px; height: 34px; }
  body.shop .brand-main { font-size: 15px; }
  body.shop .brand-top { font-size: 9px; letter-spacing: .28em; }
  body.shop .shop-head-inner { padding: 12px 14px; }
}
body.shop .path-tag, body.shop .tag, body.shop .perks li, body.shop .path-facts li, body.shop .tag-inline { border-radius: 0; }
/* In-stock sections (Chairs & Seating, Tables, ...), like polywood-helper's /shop. */
body.shop .grid-section { margin: 34px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #111; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }
body.shop .grid-section:first-of-type { margin-top: 8px; }

/* The way to the catalog at the bottom of the in-stock (home) list. */
body.shop .catalog-cta { display: grid; gap: 8px; justify-items: start; margin: 40px 0 8px; padding: 28px 24px; border: 1px dashed var(--clay); background: var(--panel); color: var(--text); text-decoration: none; }
body.shop .catalog-cta .eyebrow { color: var(--clay); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
body.shop .catalog-cta strong { font-size: 22px; }
body.shop .catalog-cta .btn { margin-top: 6px; }
body.shop .catalog-cta:hover strong { text-decoration: underline; }

/* Delivery-area answer at checkout: a clear yes (green) or no (amber). */
body.shop .zone-msg { margin: 4px 0 14px; padding: 0; font-size: 14px; font-weight: 500; }
body.shop .zone-msg.zone-free { padding: 12px 14px; background: #e8f3ec; border: 2px solid var(--stock); color: #154428; }
body.shop .zone-msg.zone-free strong { color: var(--stock); font-size: 16px; margin-right: 4px; }
body.shop .zone-msg.zone-out { padding: 12px 14px; background: #fbf3e6; border: 2px solid #c98a2b; color: #5d3b0c; }

/* Authorized POLYWOOD dealer: a thin bar under the header, and in the footer. */
body.shop .dealer-bar { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 16px; background: #f6f5f2; border-bottom: 1px solid #e2e2e2; }
body.shop .dealer-bar img { height: 17px; width: auto; }
body.shop .dealer-bar span { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #333; padding-left: 12px; border-left: 1px solid #c9c9c9; }
body.shop .foot-dealer { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
body.shop .foot-dealer img { height: 13px; width: auto; }

/* /catalog organized like polywood.com: department sections with subcategory tiles. */
body.shop .dept { margin: 30px 0 10px; }
body.shop .dept-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid #111; }
body.shop .dept-head h2 { margin: 0; font-size: 18px; letter-spacing: .1em; text-transform: uppercase; }
body.shop .dept-all { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; }
body.shop .dept .card-name { font-size: 15px; }
body.shop .sub-chips { margin-top: 10px; }
body.shop .sub-chips .chip { font-size: 13px; }
body.shop .collection-chips { flex-wrap: wrap; }
