/* MARIA — marketplace design layer
   ---------------------------------------------------------------------------
   The store's look, rebuilt the way a big marketplace is built: a dark
   navigation bar, a search bar that owns the page, a dense grid of product
   tiles, a filter rail down the left, and a buy box on the product page.

   This file sits ON TOP of assets/css/style.css — it changes how the store
   looks, never what it says. Every promise, every price, every line of the
   cost breakdown stays exactly where it was.

   Nothing here uses a marketplace's trademark. The name on every page is
   MARIA; only the layout language is borrowed.
   --------------------------------------------------------------------------- */

:root {
  /* the marketplace palette */
  --bone: #ffffff;
  --sand: #f7f7f7;
  --paper: #ffffff;
  --ink: #0f1111;
  --ink-soft: #565959;
  --muted: #8c8c8c;
  --line: #e6e6e6;
  --line-strong: #d5d9d9;
  --clay: #007185;
  --clay-soft: #f0f7f8;
  --sage: #007185;
  --sage-soft: #f0f7f8;
  --gold: #de7921;
  --gold-soft: #fdf3e7;
  --forest: #131921;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(15, 17, 17, .06);
  --shadow: 0 2px 8px rgba(15, 17, 17, .09);
  --shadow-lg: 0 8px 24px rgba(15, 17, 17, .14);
  --wrap: 1500px;
  --nav: #131921;
  --nav-2: #232f3e;
  --nav-line: #3b4551;
  --btn: #ffd814;
  --btn-hover: #f0c40c;
  --btn-line: #f0c40c;
}

* { box-sizing: border-box; }

body {
  background: var(--bone);
  color: var(--ink);
  font-family: "Amazon Ember", "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

.wrap { max-width: var(--wrap); padding: 0 16px; }

a { color: var(--clay); }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
p { color: var(--ink-soft); }

img, svg { max-width: 100%; }

/* ================= the top navigation bar ================= */

.announce {
  background: var(--nav-2);
  color: #cfd6de;
  font-size: 12px;
  letter-spacing: 0;
}
.announce .wrap { padding-top: 7px; padding-bottom: 7px; gap: 12px; justify-content: flex-end; }
.announce-mid { color: #a8b3bf; }

.site-head {
  position: sticky; top: 0; z-index: 60;
  background: var(--nav);
  border-bottom: 0;
  backdrop-filter: none;
}
.head-inner {
  display: flex; align-items: center; gap: 14px;
  padding-top: 10px; padding-bottom: 10px;
  max-width: var(--wrap);
}
.logo { display: flex; flex-direction: column; line-height: 1.05; flex: none; }
.logo-mark {
  font-size: 25px; font-weight: 700; letter-spacing: .16em;
  color: #ffffff; padding-right: .16em;
}
.logo-sub { color: #c8ccd1; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; }

.search {
  display: flex; flex: 1 1 auto; align-items: stretch;
  height: 38px; max-width: 640px;
  background: #ffffff; border-radius: 8px; overflow: hidden;
}
.search input {
  flex: 1 1 auto; min-width: 0;
  border: 0; background: #fff; color: var(--ink);
  padding: 0 12px; font-size: 14px; outline: none;
}
.search input::placeholder { color: #8c8c8c; }
.search:focus-within { box-shadow: 0 0 0 3px rgba(254, 189, 105, .55); }
.search button {
  width: 46px; flex: none;
  background: #febd69; color: #0f1111; border: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer;
}
.search button:hover { background: #f5ad42; }

.head-nav {
  display: flex; align-items: center; gap: 2px;
  margin-left: auto; color: #ffffff; font-size: 13px;
}
.head-nav a, .head-nav .nav-btn, .head-nav .nav-link {
  color: #ffffff; background: none; border: 0;
  padding: 7px 9px; border-radius: 6px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.head-nav a:hover, .head-nav .nav-btn:hover, .head-nav .nav-link:hover {
  outline: 1px solid #ffffff; outline-offset: -1px;
}
.nav-btn { font-size: 13px; }
.caret { font-size: 10px; color: #cfd6de; }
.acct-ico { width: 18px; height: 18px; }
.acct-ico svg { width: 100%; height: 100%; }
.account-link { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.2; }
.account-link #accountLabel { font-size: 12px; }
.account-link .acct-ico { display: none; }
.cart-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; color: #ffffff;
  padding: 7px 9px; border-radius: 6px; cursor: pointer;
}
.cart-btn:hover { outline: 1px solid #ffffff; outline-offset: -1px; }
.cart-ico { font-size: 17px; }
.cart-count {
  font-size: 17px; font-weight: 700; color: #febd69;
  font-variant-numeric: tabular-nums;
}
.nav-scan { font-size: 13px; }

/* the department strip under the search bar */
.dept-bar { background: var(--nav-2); border-top: 1px solid var(--nav-line); }
.dept-bar .wrap {
  display: flex; align-items: center; gap: 2px;
  overflow-x: auto; scrollbar-width: none;
  max-width: var(--wrap);
}
.dept-bar .wrap::-webkit-scrollbar { display: none; }
.dept-bar a {
  color: #e6e6e6; font-size: 13px; padding: 8px 9px; white-space: nowrap;
  border-radius: 4px;
}
.dept-bar a:hover { color: #ffffff; text-decoration: underline; }
.dept-bar a.dept-all { font-weight: 700; }

.head-nav-mobile {
  background: var(--nav-2);
  display: none; gap: 4px; overflow-x: auto; padding: 6px 16px;
}
.head-nav-mobile a, .head-nav-mobile button {
  color: #e6e6e6; font-size: 12.5px; background: none; border: 0;
  padding: 6px 8px; white-space: nowrap; cursor: pointer;
}

.menu-scrim { background: rgba(0, 0, 0, .45); }

/* the department mega panel */
.mega {
  background: #ffffff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow-lg);
}
.mega-name { color: var(--ink); }
.mega-count { color: var(--muted); }
.mega-foot { color: var(--ink-soft); border-top: 1px solid var(--line); }
.mega-thumb { border: 1px solid var(--line); }

/* ================= buttons ================= */

.btn {
  border-radius: 8px; font-size: 13.5px; font-weight: 500;
  padding: 9px 14px; border: 1px solid var(--line-strong);
  background: #ffffff; color: var(--ink); cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 17, 17, .08);
  transition: background .12s ease, border-color .12s ease;
}
.btn:hover { background: #f7f7f7; }
.btn-accent, .btn-primary {
  background: var(--btn); border-color: var(--btn-line); color: #0f1111;
  font-weight: 700;
}
.btn-accent:hover, .btn-primary:hover { background: var(--btn-hover); border-color: #d4ac0c; }
.btn-ghost { background: #ffffff; }
.btn-block { width: 100%; }

/* the tile button on a product card */
.btn-add {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; margin-top: 6px;
  background: var(--btn); color: #0f1111;
  border: 1px solid var(--btn-line); border-radius: 8px;
  font-size: 13px; font-weight: 700; padding: 8px 10px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 17, 17, .08);
}
.btn-add:hover { background: var(--btn-hover); }
.btn-add.added { background: #e6e6e6; border-color: #d5d9d9; color: var(--ink-soft); }

/* ================= product tiles ================= */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px 12px;
}
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.card {
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 10px 14px;
  display: flex; flex-direction: column;
  position: relative;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.card:hover { border-color: var(--line); box-shadow: 0 2px 8px rgba(15, 17, 17, .09); }
.card-media-link { display: block; }
.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border-radius: 6px; margin-bottom: 8px;
  background: #ffffff;
}
.card-media img, .card-media svg {
  width: 100%; height: 100%; object-fit: contain;
}
.card-cat {
  font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: 2px;
}
.card-name {
  font-size: 13.5px; font-weight: 400; line-height: 1.35; color: var(--ink);
  margin: 0 0 4px; min-height: 2.7em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card:hover .card-name { color: var(--clay); }
.card-tag {
  font-size: 12px; color: var(--muted); margin: 0 0 6px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.card-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 2px; }
.card-price strong { font-size: 19px; font-weight: 700; color: var(--ink); }
.card-price .compare { color: var(--muted); font-size: 12px; }
.card-meta {
  font-size: 12px; color: var(--ink-soft);
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.card-meta .stars { color: var(--gold); font-weight: 700; }
.card-meta .dot { color: var(--muted); }
.card-sw {
  display: flex; align-items: center; gap: 4px; margin-top: 6px;
  font-size: 11.5px; color: var(--ink-soft);
}
.swatch {
  width: 13px; height: 13px; border-radius: 50%;
  border: 1px solid rgba(15, 17, 17, .18); display: inline-block;
}
.sup-eta { margin-left: auto; color: var(--muted); }
.card-delivery {
  font-size: 12px; color: var(--ink-soft); margin-top: 4px;
}
.card-delivery b { color: var(--clay); font-weight: 700; }
.badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: #0f1111; color: #ffffff;
  font-size: 10.5px; font-weight: 700; letter-spacing: .03em;
  padding: 3px 6px; border-radius: 4px;
}
.badge-best { background: #0f1111; }
.badge-new { background: var(--clay); }
.sold-tag {
  position: absolute; bottom: 6px; left: 8px; z-index: 2;
  font-size: 11px; color: var(--ink-soft); background: rgba(255, 255, 255, .9);
  padding: 2px 5px; border-radius: 4px;
}
.wish {
  position: absolute; top: 6px; right: 6px; z-index: 3;
  background: rgba(255, 255, 255, .92); border: 0; border-radius: 50%;
  width: 28px; height: 28px; line-height: 1; font-size: 15px; color: var(--muted);
  cursor: pointer;
}
.wish.on { color: #b12704; }
.tag-sub { color: var(--muted); font-size: 11px; font-weight: 400; }

/* ================= the home page ================= */

.hero {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 20px 0 18px;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.hero h1 { font-size: 34px; line-height: 1.15; margin: 6px 0 10px; }
.hero h1 em { font-style: normal; color: var(--clay); }
.lede { font-size: 14.5px; color: var(--ink-soft); max-width: 62ch; margin: 0 0 16px; }
.eyebrow {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 700;
}
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.hero-stats {
  display: flex; gap: 26px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px;
}
.hero-stats strong { display: block; font-size: 18px; color: var(--ink); }
.hero-stats span { font-size: 12px; color: var(--muted); }
.hero-note, .social-note {
  font-size: 12.5px; color: var(--ink-soft);
  background: #f7f7f7; border: 1px solid var(--line);
  border-radius: 6px; padding: 9px 11px; margin: 0 0 12px;
}
.hero-mosaic { gap: 10px; height: 340px; }
.hm { border-radius: 8px; box-shadow: none; border: 1px solid var(--line); }

.section { padding: 28px 0; background: #ffffff; }
.section + .section { border-top: 1px solid var(--line); }
.section[style*="background:var(--sand)"] { background: var(--sand) !important; }
.section[style*="background:var(--forest)"] { background: var(--nav) !important; color: #ffffff; }
.section[style*="background:var(--forest)"] h2,
.section[style*="background:var(--forest)"] h3 { color: #ffffff !important; }
.section[style*="background:var(--forest)"] p,
.section[style*="background:var(--forest)"] .eyebrow { color: #cfd6de !important; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 16px;
}
.section-head h2 { font-size: 22px; margin: 2px 0 0; }
.section-head p { font-size: 13px; margin: 4px 0 0; }
.section-link { font-size: 13px; color: var(--clay); font-weight: 500; white-space: nowrap; }
.section-link:hover { color: #005e6d; text-decoration: underline; }

.cat-rail {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px;
}
.cat-tile {
  background: #ffffff; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px; display: block;
}
.cat-tile:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.ct-img {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; overflow: hidden; margin-bottom: 8px; background: #f7f7f7;
}
.ct-img img, .ct-img svg { width: 100%; height: 100%; object-fit: contain; }
.ct-meta h4 { font-size: 13.5px; margin: 0 0 2px; }
.ct-meta span { font-size: 11.5px; color: var(--muted); }

.panel {
  background: #ffffff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: none; padding: 16px;
}
.panel-pad { padding: 16px; }
.cost-rows { border-top: 1px solid var(--line); }
.cost-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 7px 0; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--ink-soft);
}
.cost-row.total { font-weight: 700; color: var(--ink); }
.cost-note { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ================= browse ================= */

.page-head { padding: 16px 0 10px; }
.page-head h1 { font-size: 24px; margin: 2px 0 6px; }
.page-head p { font-size: 13px; margin: 0; }

.browse {
  display: grid; grid-template-columns: 244px minmax(0, 1fr);
  gap: 16px; align-items: start;
}
.browse > aside { position: sticky; top: 118px; }
.facet-toggle { display: none; }
.facet {
  background: #ffffff; border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; margin-bottom: 10px;
}
.facet h4 {
  font-size: 14px; margin: 0 0 8px; display: flex; justify-content: space-between;
}
.facet h4 button { background: none; border: 0; color: var(--clay); font-size: 11.5px; cursor: pointer; }
.facet-list { list-style: none; margin: 0; padding: 0; }
.facet-list li { padding: 3px 0; }
.facet-list a, .facet-list button {
  font-size: 12.5px; color: var(--ink-soft); background: none; border: 0;
  padding: 2px 0; cursor: pointer; text-align: left; display: block;
}
.facet-list a:hover, .facet-list button:hover { color: var(--clay); }
.facet-list .on { color: var(--clay); font-weight: 700; }
.facet-n { color: var(--muted); font-size: 11.5px; margin-left: 4px; }
.facet-colors { display: flex; flex-wrap: wrap; gap: 6px; }
.facet-clear { font-size: 12px; color: var(--clay); background: none; border: 0; cursor: pointer; }

.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; background: #ffffff; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 12px; margin-bottom: 12px;
}
.toolbar .count { color: var(--muted); font-size: 12.5px; }
.sort-select {
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: #f0f0f0; color: var(--ink);
  padding: 6px 10px; font-size: 12.5px; cursor: pointer;
}
.active-chips { margin-bottom: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: #ffffff; border: 1px solid var(--line-strong);
  border-radius: 16px; padding: 5px 11px; font-size: 12px; color: var(--ink);
}
.chip:hover { background: #f7f7f7; }
.chip-ink { border-color: var(--line-strong); }
.chip-clay { background: var(--clay-soft); border-color: #cfe6ea; color: #005e6d; }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 22px; }
.pager button {
  min-width: 34px; height: 34px; padding: 0 8px;
  background: #ffffff; border: 1px solid var(--line-strong); border-radius: 8px;
  cursor: pointer; font-size: 13px;
}
.pager button:hover:not(:disabled) { background: #f7f7f7; }
.pager button.active { background: var(--nav); border-color: var(--nav); color: #ffffff; }
.pager button:disabled { color: var(--muted); cursor: default; }

/* ================= the product page ================= */

.breadcrumb {
  font-size: 12.5px; color: var(--muted); padding: 12px 0 10px;
}
.breadcrumb a { color: var(--clay); }
.breadcrumb a:hover { text-decoration: underline; }

.pdp {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr) 320px;
  gap: 24px; align-items: start;
}
.pdp-media { position: sticky; top: 118px; }
.pdp-main {
  background: #ffffff; border: 1px solid var(--line); border-radius: 8px;
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 10px;
}
.pdp-main img, .pdp-main svg { width: 100%; height: 100%; object-fit: contain; }
.pdp-thumbs { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.pdp-thumbs .thumb {
  width: 52px; height: 52px; padding: 2px;
  background: #ffffff; border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
}
.pdp-thumbs .thumb.active { border-color: var(--clay); box-shadow: 0 0 0 1px var(--clay); }
.pdp-thumbs .thumb img { width: 100%; height: 100%; object-fit: contain; }

.pdp-info h1 { font-size: 24px; line-height: 1.2; margin: 8px 0 6px; }
.pdp-lede { font-size: 14px; color: var(--ink-soft); margin: 0 0 10px; }
.pdp-price { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 4px; }
.pdp-price strong { font-size: 28px; font-weight: 700; color: var(--ink); }
.pdp-price .compare { color: var(--muted); font-size: 13px; }
.pdp-price .save { font-size: 13px; color: #b12704; font-weight: 700; }
.opt-block { margin: 14px 0; }
.opt-label { font-size: 13px; margin-bottom: 6px; color: var(--ink); }
.opt-row { display: flex; gap: 6px; flex-wrap: wrap; }
.opt {
  background: #ffffff; border: 1px solid var(--line-strong); border-radius: 6px;
  padding: 7px 12px; font-size: 13px; cursor: pointer;
}
.opt:hover { border-color: var(--clay); }
.opt.active { border-color: var(--clay); box-shadow: 0 0 0 1px var(--clay); }
.opt-color { width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 1px solid rgba(15,17,17,.18); }
.opt-color.active { box-shadow: 0 0 0 2px #ffffff, 0 0 0 3.5px var(--clay); }

/* the buy box */
.pdp-buy {
  background: #ffffff; border: 1px solid var(--line); border-radius: 8px;
  padding: 14px; position: sticky; top: 118px;
}
.pdp-buy .buy-price {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-size: 26px; font-weight: 700; color: var(--ink); margin-bottom: 2px;
}
.pdp-buy .buy-price .compare { font-size: 13px; font-weight: 400; color: var(--muted); }
.pdp-buy .buy-price .save { font-size: 13px; font-weight: 700; color: #b12704; }
.pdp-buy .buy-line { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 2px; }
.pdp-buy .buy-delivery { font-size: 13px; color: var(--ink); margin: 6px 0 12px; }
.pdp-buy .buy-delivery b { color: var(--clay); }
.pdp-buy .buy-row { display: flex; flex-direction: column; gap: 8px; }
.pdp-buy .btn { width: 100%; padding: 10px 12px; font-size: 13.5px; }
.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--line-strong);
  border-radius: 8px; overflow: hidden; width: 100%;
}
.qty button {
  width: 36px; height: 36px; border: 0; background: #f0f0f0; cursor: pointer; font-size: 15px;
}
.qty button:hover { background: #e6e6e6; }
.qty span { flex: 1; text-align: center; font-size: 13.5px; }
.trust { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.trust > div { display: flex; gap: 7px; align-items: flex-start; font-size: 12.5px; color: var(--ink-soft); }
.trust i { font-style: normal; color: var(--clay); font-weight: 700; }

.cost-panel {
  margin-top: 18px; background: #ffffff; border: 1px solid var(--line);
  border-radius: 8px; padding: 14px;
}
.cost-panel h4 { font-size: 15px; margin: 0 0 8px; }

/* the specifications, printed in the buy box so a shopper who taps a
   picture finds them without hunting for a tab */
.pdp-specs { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.pdp-specs h3 { font-size: 13.5px; margin: 0 0 6px; color: var(--ink); }
.pdp-specs .spec-quick { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pdp-specs .spec-quick th, .pdp-specs .spec-quick td {
  text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line);
}
.pdp-specs .spec-quick th { width: 42%; color: var(--muted); font-weight: 500; }
.pdp-specs .spec-quick tr:last-child th, .pdp-specs .spec-quick tr:last-child td { border-bottom: 0; }
.pdp-size-note { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tab {
  background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 9px 12px; font-size: 14px; color: var(--ink-soft); cursor: pointer;
}
.tab.active { color: var(--ink); border-bottom-color: var(--clay); font-weight: 700; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-table th, .spec-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.spec-table th { color: var(--muted); font-weight: 500; width: 40%; }
.size-chart { width: 100%; border-collapse: collapse; font-size: 13px; }
.size-chart th, .size-chart td { border: 1px solid var(--line); padding: 7px 9px; text-align: center; }
.size-chart th { background: #f7f7f7; font-weight: 600; }
.rating-big { font-size: 40px; font-weight: 700; color: var(--ink); }
.stars { color: var(--gold); }
.rating-bars .bar, .rating-bars > div { font-size: 12px; }

/* ================= cart, checkout, order ================= */

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.cart-line {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px;
  background: #ffffff; border: 1px solid var(--line); border-radius: 8px;
  padding: 14px; margin-bottom: 10px; align-items: start;
}
.cl-thumb { width: 96px; height: 96px; background: #f7f7f7; border-radius: 6px; overflow: hidden; }
.cl-thumb img, .cl-thumb svg { width: 100%; height: 100%; object-fit: contain; }
.cl-name { font-size: 15px; font-weight: 500; color: var(--ink); margin: 0 0 4px; }
.cl-meta, .cl-price { font-size: 13px; color: var(--ink-soft); }
.cl-right { text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.summary {
  background: #ffffff; border: 1px solid var(--line); border-radius: 8px; padding: 16px;
  position: sticky; top: 118px;
}
.summary h3 { font-size: 16px; margin: 0 0 10px; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13.5px; color: var(--ink-soft); }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-size: 18px; font-weight: 700; color: var(--ink); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.field label { display: block; font-size: 12.5px; margin-bottom: 4px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 10px; font: inherit; font-size: 13.5px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: #ffffff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(0, 113, 133, .16);
}
.method {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 8px;
  background: #ffffff;
}
.method.on { border-color: var(--clay); box-shadow: 0 0 0 1px var(--clay); }
.method-lock { color: var(--muted); font-size: 12px; }
.order-card {
  background: #ffffff; border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 12px;
}
.oid { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: var(--ink-soft); }
.status-pill {
  display: inline-block; background: var(--clay-soft); color: #005e6d;
  border: 1px solid #cfe6ea; border-radius: 12px; padding: 2px 9px; font-size: 11.5px;
}
.track { border-left: 2px solid var(--line); margin-left: 7px; padding-left: 16px; }
.track-step { position: relative; padding: 0 0 14px; }
.track-dot {
  position: absolute; left: -22px; top: 3px; width: 12px; height: 12px;
  border-radius: 50%; background: #ffffff; border: 2px solid var(--line-strong);
}
.track-step.done .track-dot { background: var(--clay); border-color: var(--clay); }
.track-when { font-size: 11.5px; color: var(--muted); }

/* ================= the account area ================= */

.acct-hero { background: #f7f7f7; border-bottom: 1px solid var(--line); padding: 18px 0; }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.auth-card {
  background: #ffffff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; max-width: 440px;
}
.acct-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.addr-card, .saved-grid > div, .order-card {
  background: #ffffff; border: 1px solid var(--line); border-radius: 8px; padding: 14px;
}

/* ================= the footer ================= */

.site-foot { background: var(--nav); color: #cfd6de; margin-top: 40px; }
.foot-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 26px; padding-top: 30px; padding-bottom: 26px;
}
.foot-col h4 { color: #ffffff; font-size: 14.5px; margin: 0 0 8px; }
.foot-col a { color: #cfd6de; font-size: 12.5px; }
.foot-col a:hover { color: #ffffff; text-decoration: underline; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 6px; }
.foot-brand .logo-mark { color: #ffffff; }
.foot-brand p { color: #cfd6de; font-size: 12.5px; }
.foot-stats { display: flex; gap: 18px; margin-top: 12px; }
.foot-stats strong { display: block; color: #ffffff; font-size: 16px; }
.foot-stats span { font-size: 11.5px; color: #a8b3bf; }
.foot-legal {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--nav-line); padding-top: 14px; padding-bottom: 16px;
  font-size: 12px; color: #a8b3bf;
}

/* ================= the drawer, toasts and the assistant ================= */

.drawer {
  background: #ffffff; border-left: 1px solid var(--line);
  box-shadow: -6px 0 24px rgba(15, 17, 17, .16);
}
.drawer-head { border-bottom: 1px solid var(--line); padding: 14px 16px; }
.drawer-head h3 { font-size: 16px; margin: 0; }
.drawer-body { padding: 12px 16px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 14px 16px; }
.drawer-line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dl-thumb { width: 56px; height: 56px; border-radius: 6px; overflow: hidden; background: #f7f7f7; }
.dl-thumb img, .dl-thumb svg { width: 100%; height: 100%; object-fit: contain; }
.toast {
  background: var(--nav); color: #ffffff; border-radius: 8px;
  box-shadow: var(--shadow-lg); font-size: 13px;
}
.toast-err { background: #b12704; }

.chat-panel {
  background: #ffffff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-lg);
}
.chat-fab { background: var(--nav); color: #ffffff; border-radius: 24px; box-shadow: var(--shadow-lg); }
.chat-fab-label { color: #ffffff; }
.chat-live { background: var(--clay-soft); color: #005e6d; }
.chat-product, .chat-thumb { border-color: var(--line); }

/* ================= small screens ================= */

@media (max-width: 1180px) {
  .grid-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pdp { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
  .pdp-buy { grid-column: 2; position: static; }
  .pdp-media { position: static; }
}

@media (max-width: 900px) {
  .wrap { padding: 0 12px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: 26px; }
  .hero-mosaic { height: 240px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .browse { grid-template-columns: minmax(0, 1fr); }
  .browse > aside { position: static; }
  /* the filters fold away on a phone, so the products stay on the screen */
  .facet-toggle {
    display: flex; align-items: center; gap: 8px; width: 100%;
    background: #ffffff; border: 1px solid var(--line-strong); border-radius: 8px;
    padding: 10px 12px; font-size: 13.5px; color: var(--ink); cursor: pointer;
  }
  .facet-shell.open .facet-toggle { border-color: var(--clay); }
  .facet-shell .facet { display: none; }
  .facet-shell.open .facet { display: block; }
  .pdp { grid-template-columns: minmax(0, 1fr); }
  .pdp-buy { grid-column: 1; }
  .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  /* the phone keeps the departments button, the account and the cart in
     the top row — hiding the whole bar took the cart off the phone */
  .head-nav { display: flex; gap: 6px; }
  .head-nav .nav-link:not(.account-link) { display: none; }
  .head-nav .nav-btn { padding: 11px 15px; font-size: 14px; line-height: 1.4; }
  .head-nav .cart-btn { padding: 10px 13px; }
  .account-link .acct-ico { display: block; width: 20px; height: 20px; }
  .head-nav-mobile { display: flex; }
  .announce .wrap { flex-wrap: nowrap; }
  .announce .wrap span:not(:first-child) { display: none; }
  .dept-bar { display: none; }
  .pdp-main { aspect-ratio: 4 / 3; }
  .search { max-width: none; }
  .announce .wrap { justify-content: center; }
}

@media (max-width: 560px) {
  /* the badge keeps its "modelled" marker, but it has to stay small enough
     not to cover the product */
  .badge {
    font-size: 9px; padding: 2px 4px; line-height: 1.25;
    max-width: 62%; white-space: normal;
  }
  .badge .tag-sub { font-size: 8.5px; }
  .card-meta { font-size: 11px; }
  .hero .lede { font-size: 13.5px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-name { font-size: 12.5px; }
  .card-price strong { font-size: 17px; }
  .cat-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- the marketplace rails ----------
   A marketplace opens with what is on today and what this shopper looked at.
   These are the pieces that make the front page read like one: a banner with
   the deals on it, a rail that scrolls sideways, and the saving printed on
   the card as a difference between two prices. */

.section-promo { background: var(--forest); color: var(--bone); }
.section-promo .eyebrow { color: var(--sand); }
.section-promo h2 { color: var(--bone); }
.section-promo h2 em { color: #E9B36B; font-style: normal; }
.section-promo p { color: #D9D2C4; max-width: 46ch; }

.promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: 22px;
  align-items: center;
}
.promo-copy { padding: 6px 0; }
.promo-copy h2 { margin: 4px 0 10px; font-size: 34px; line-height: 1.08; }
.promo-copy .btn { margin-top: 16px; }

/* the cards that sit on the banner, the way a marketplace shows them */
.promo-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.promo-cards .card {
  background: var(--bone);
  color: var(--ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
}
.promo-cards .card-media { aspect-ratio: 1 / 1; }

/* the rail that scrolls sideways */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(232px, 1fr);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }
.rail-tight { grid-auto-columns: minmax(210px, 1fr); }
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: rgba(120, 108, 90, .35); border-radius: 8px; }

/* the saving, printed as the difference between two prices.
   It is a line of text under the price, the way a marketplace prints it.
   It was a filled pill the width of the tile, which made the price look
   like an advertisement rather than a price. */
.deal-chip {
  display: inline-block;
  margin: 1px 0 2px;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--clay);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1px;
}
.deal-chip .tag-sub { color: var(--muted); }

@media (max-width: 1080px) {
  .promo { grid-template-columns: minmax(0, 1fr); }
  .promo-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .promo-copy h2 { font-size: 27px; }
  .promo-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail { grid-auto-columns: minmax(158px, 1fr); }
}

/* ---------- the phone tab bar ----------
   On a phone the five things a shopper does stay one tap away at the bottom
   of the screen, the way a marketplace app keeps them there. It is hidden on
   a desktop, where the header already carries all of it. */
.tabbar { display: none; }

@media (max-width: 760px) {
  .tabbar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 70;
    background: var(--bone);
    border-top: 1px solid rgba(120, 108, 90, .22);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -6px 20px rgba(60, 50, 38, .08);
  }
  .tabbar .tab {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    border: 0;
    background: none;
    padding: 4px 2px;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1px;
    text-decoration: none;
    position: relative;
    cursor: pointer;
  }
  .tabbar .tab svg { width: 22px; height: 22px; }
  .tabbar .tab:active { color: var(--clay); }
  .tabbar .tab-count {
    position: absolute;
    top: 0;
    right: 22%;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--clay);
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
  }
  .tabbar .tab-count.has-items { background: var(--clay); }
  /* The tab bar is fixed to the bottom of the phone, so the last row of
     the page must clear it — and on a phone with a home indicator, clear
     that too. 58px is the bar's own height (6 + 22 + 3 + 13 + 6 + 6). */
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- the seasonal shelf ----------
   The front-page rail for the occasion ranges our suppliers stock, and the
   chips that open the other occasions. */
.section-season {
  background: linear-gradient(180deg, #FBF6EC 0%, var(--paper) 55%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-season .section-head h2 { max-width: 22ch; }
.season-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}
.season-chips-label {
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 2px;
}
.season-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
  line-height: 1.4;
}
.season-chip:hover { border-color: var(--clay); color: var(--clay); }
.season-chip span {
  font-size: 11px;
  color: var(--muted);
  background: var(--sand);
  border-radius: 999px;
  padding: 1px 7px;
}
@media (max-width: 720px) {
  .season-chips { gap: 6px; }
  .season-chip { font-size: 12.5px; padding: 5px 10px; }
}
/* ---------- THE CATEGORY STRIP AT THE TOP, AND THE CAMERA IN THE SEARCH ----------

   The departments are at the top of the page, under the search box, the way
   a marketplace puts them: a row of tabs you can swipe along, not a menu you
   have to open. On a phone that row was hidden outright, and the only way
   into a department was a dropdown button that took the room the cart and
   the account now have.

   The camera sits inside the search field for the same reason. The thing a
   shopper wants from a picture search is the picture search, not a link
   labelled "Match a product" in a row of links. */

/* the camera, inside the white pill */
.search .search-scan {
  width: 42px; flex: none;
  background: #ffffff; color: var(--ink);
  border: 0; border-left: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.search .search-scan svg { width: 21px; height: 21px; }
.search .search-scan:hover { background: var(--sand); }

/* the strip: light, quiet, and always in the same place */
.dept-bar {
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.dept-bar .wrap {
  display: flex; align-items: center; gap: 2px;
  overflow-x: auto; scrollbar-width: none;
  max-width: var(--wrap);
  -webkit-overflow-scrolling: touch;
}
.dept-bar .wrap::-webkit-scrollbar { display: none; }
.dept-bar a {
  color: var(--ink-soft); font-size: 13.5px; font-weight: 600;
  padding: 11px 11px; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.dept-bar a:hover { color: var(--ink); text-decoration: none; border-bottom-color: var(--line-strong); }
.dept-bar a.dept-all { color: var(--ink); font-weight: 700; }
.dept-bar a.is-here {
  color: var(--ink); font-weight: 700;
  border-bottom-color: var(--clay);
}

@media (max-width: 760px) {
  /* the strip is the way into a department on a phone, so it stays */
  .dept-bar { display: block; }
  .dept-bar .wrap { padding: 0 12px; }
  .dept-bar a { padding: 12px 10px; font-size: 14px; }
  /* The dropdown button is no longer needed on a phone — the strip below
     the search box is the same list, one tap away, and the button took the
     room the cart and the account now have. The sheet is still one tap away
     from the tab bar at the bottom of the screen. */
  .head-nav .nav-btn { display: none; }
}

