/* Kitchen Magician — Buy It Now shop */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.shop-page section { padding: 0; }
.shop-hero { background: var(--cream); padding: 40px 0 36px; border-bottom: 1px solid var(--line); }
.shop-hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.08; margin: 6px 0 12px; }
.shop-hero .lede { font-size: 1.08rem; color: var(--muted); max-width: 46rem; margin: 0 0 14px; }
.shop-hero-landing { padding: 64px 0 56px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 700; color: var(--brass-d); margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.shop-crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.shop-crumbs a { color: var(--muted); }
.shop-body { padding: 36px 0 44px; }
.shop-body h2 { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; margin: 8px 0 14px; }
.shop-body h2 small { font-family: var(--sans); font-size: .9rem; color: var(--muted); font-weight: 400; }
.shop-facts { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; font-size: .97rem; }
.shop-facts li { padding-left: 22px; position: relative; }
.shop-facts li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); }
.shop-fine { font-size: .9rem; color: var(--muted); }
.btn-sm { padding: 8px 14px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.brand-card { display: flex; flex-direction: column; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--ink); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.brand-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.brand-card h3 { font-family: var(--serif); font-size: 1.6rem; margin: 2px 0 0; }
.brand-card p { margin: 0; color: var(--muted); font-size: .96rem; flex: 1; }
.brand-tag { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--brass-d); }
.brand-meta { font-size: .88rem; font-weight: 600; }

.coll { margin-bottom: 26px; }
.finish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.finish-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); }
.finish-card:hover { box-shadow: var(--shadow); color: var(--ink); }
.finish-card img, .finish-card .swatch-color { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #eee; display: block; }
.finish-name { font-weight: 600; padding: 10px 12px 0; line-height: 1.25; }
.finish-meta { font-size: .82rem; color: var(--muted); padding: 2px 12px 12px; }
.finish-head { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: start; }
.finish-head-img img, .finish-head-img .swatch-color { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); display: block; background: #eee; }

.shop-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; }
.shop-tools label { font-weight: 600; }
.shop-tools input { flex: 1; min-width: 220px; max-width: 420px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--white); }
.sku-group { margin-bottom: 26px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.sku-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.sku-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--paper); }
.sku-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sku-table tr:last-child td { border-bottom: 0; }
.sku-table td.sku { white-space: nowrap; }
.sku-table td.desc small { color: var(--muted); }
.sku-table td.price { font-weight: 700; white-space: nowrap; }
.sku-table td.buy { white-space: nowrap; text-align: right; }
.sku-table td.buy input { width: 58px; padding: 7px 6px; border: 1px solid var(--line); border-radius: 8px; font: inherit; margin-right: 6px; }
.sku-table select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; max-width: 260px; }
.sku-table td.assembly { min-width: 168px; }
.sku-table td.assembly select { width: 100%; max-width: 280px; }
.sku-table .cm3 { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; font-size: .9rem; white-space: nowrap; }
.asm-na { color: var(--muted); font-size: .88rem; margin: 6px 0 0; }
.asm-lead { display: block; margin: 6px 0 0; font-size: .8rem; color: var(--muted); font-weight: 400; line-height: 1.35; }
.shop-tools-lead { flex-basis: 100%; margin: 0; }
.assemble-bar { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; }
.assemble-bar p { margin: 0 0 8px; font-size: .92rem; }
.assemble-bar .asm-lead { margin: 0 0 10px; }
.assemble-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.asm-pick { display: inline-block; margin: 8px 8px 0 0; font-size: .88rem; font-weight: 600; }
.cart-line select[data-line-assembly] { display: block; margin-top: 4px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; max-width: 280px; }
.line-asm { display: block; font-weight: 600; font-size: .78rem; color: var(--muted); }
.tag { display: inline-block; margin-left: 6px; font-size: .72rem; font-weight: 600; color: #3f5a2c; background: #eef4ea; border-radius: 999px; padding: 1px 8px; vertical-align: middle; }
tr.added td { background: #f3f8ef; }

.cart-fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; background: var(--espresso); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow); }
.cart-fab span { display: inline-block; min-width: 22px; text-align: center; background: var(--brass); border-radius: 999px; padding: 0 6px; margin-left: 6px; }
.cart-fab:hover { color: #fff; background: #000; }

.info-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.shop-info { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.zip-check { background: var(--cream); border-radius: 12px; padding: 18px; margin-top: 10px; }
.zip-check label { font-weight: 700; display: block; margin-bottom: 8px; }
.zip-row { display: flex; gap: 10px; }
.zip-row input { flex: 1; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.shop-contractor-cta { text-align: center; max-width: 44rem; }
.narrow { max-width: 760px; }

.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.cart-line { display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line h3 { font-size: 1rem; margin: 0; font-family: var(--sans); }
.cart-line p { margin: 2px 0 0; font-size: .88rem; color: var(--muted); }
.cart-line input { width: 60px; padding: 7px 6px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.cart-line .line-total { font-weight: 700; min-width: 90px; text-align: right; }
.link-btn { background: none; border: 0; color: var(--brass-d); text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; padding: 0; }
.cart-brand { font-family: var(--serif); font-size: 1.35rem; margin: 22px 0 0; }
.cart-form fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 22px 0 0; background: var(--white); }
.cart-form legend { font-weight: 700; padding: 0 6px; }
.cart-form .radio, .cart-form .check { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; cursor: pointer; }
.cart-form .radio input, .cart-form .check input { margin-top: 5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .span2 { grid-column: span 2; }
.cart-summary { position: sticky; top: calc(var(--header-h) + 16px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.cart-summary h2 { margin-top: 0; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .96rem; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 700; font-size: 1.05rem; }
.sum-note { font-size: .86rem; color: var(--muted); margin: 2px 0 6px; }
.sum-quote { background: #fbf4e6; border: 1px solid #ecdcb8; border-radius: 10px; padding: 10px 12px; font-size: .9rem; margin: 10px 0; }
.sum-error { background: #f8ece8; color: #6b2a1f; border-radius: 10px; padding: 10px 12px; font-size: .9rem; margin: 10px 0; }

@media (max-width: 980px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .cart-layout, .info-grid { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}
@media (max-width: 640px) {
  .brand-grid { grid-template-columns: 1fr; }
  .finish-head { grid-template-columns: 1fr; }
  .finish-head-img { max-width: 160px; }
  .finish-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: auto; }
  .sku-table thead { display: none; }
  .sku-table, .sku-table tbody, .sku-table tr, .sku-table td { display: block; width: 100%; }
  .sku-table tr { padding: 10px 12px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }
  .sku-table td { border: 0; padding: 0; }
  .sku-table td.sku { order: 1; }
  .sku-table td.price { order: 2; text-align: right; }
  .sku-table td.desc { order: 3; grid-column: 1 / -1; }
  .sku-table td.assembly { order: 4; grid-column: 1 / -1; min-width: 0; }
  .sku-table td.buy { order: 5; grid-column: 1 / -1; text-align: left; }
  .cart-line { grid-template-columns: 1fr auto; }
  .cart-line .line-total { text-align: left; }
}

.price-now { font-weight: 700; }
s.price-list { font-weight: 500; color: var(--muted); text-decoration: line-through; margin-left: 6px; }
.save-badge { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: var(--brass, #b0893e); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; vertical-align: middle; }
.finish-meta s.price-list { font-size: .9em; }
.finish-meta .save-badge { margin-top: 4px; }
.sku-table td.price { font-weight: 700; white-space: normal; }
.sku-table td.price .save-badge { display: block; width: fit-content; margin: 4px 0 0; }
.cart-line .price-list, .cart-line .save-badge { font-size: .9em; }
.sum-row.you-save { color: var(--brass-d, #8a6a2b); font-weight: 700; }

/* ---------- cabinet-type sections on finish pages ---------- */
.sec-nav { margin: 6px 0 22px; }
.sec-nav-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; font-weight: 700; }
.sec-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.sec-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: inherit; text-decoration: none; text-align: center; transition: border-color .15s, box-shadow .15s; }
.sec-tile:hover, .sec-tile:focus-visible { border-color: currentColor; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.sec-tile[hidden] { display: none; }
.sec-tile-name { font-weight: 700; font-size: .92rem; line-height: 1.2; }
.sec-tile-n { font-size: .8rem; color: var(--muted); }
.sec-nav-tools { margin-top: 8px; font-size: .88rem; color: var(--muted); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.sku-sec { margin-bottom: 18px; scroll-margin-top: calc(var(--header-h, 72px) + 12px); }
.sku-sec > details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 2px solid var(--line); margin-bottom: 12px; }
.sku-sec > details > summary::-webkit-details-marker { display: none; }
.sku-sec > details > summary h2 { margin: 0; }
.sec-toggle::after { content: "–"; font-size: 1.4rem; line-height: 1; color: var(--muted); }
.sku-sec > details:not([open]) > summary .sec-toggle::after { content: "+"; }
.sec-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.sec-chip { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: inherit; text-decoration: none; font-size: .88rem; }
.sec-chip:hover, .sec-chip:focus-visible { border-color: currentColor; }
.sec-chip span { color: var(--muted); }
.sku-sec .sku-group { scroll-margin-top: calc(var(--header-h, 72px) + 12px); }
.sku-sec .sku-group h3 { font-size: 1.05rem; margin: 6px 0 8px; }
.sku-sec .sku-group h3 small, .sku-sec h2 small { color: var(--muted); font-weight: 500; }
@media (max-width: 640px) { .sec-tiles { grid-template-columns: repeat(3, 1fr); } .sec-tile { padding: 10px 4px; } .sec-tile svg { width: 32px; height: 30px; } }

/* Hardware shop cards */
.hw-shop-jump { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 8px 0 28px; padding: 0; list-style: none; }
.hw-shop-jump a { font-weight: 600; }
.hw-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
  margin: 0 0 40px;
}
.hw-shop-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.hw-shop-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--paper);
  padding: 14px;
}
.hw-shop-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.hw-shop-card h3 { font-family: var(--serif); font-size: 1.25rem; margin: 0; line-height: 1.25; }
.hw-shop-card .hw-sku, .hw-shop-card .hw-meta { margin: 0; color: var(--muted); font-size: .92rem; }
.hw-shop-card .price { margin: 8px 0 12px; font-weight: 700; }
.hw-shop-buy { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.hw-shop-buy input { width: 58px; padding: 7px 6px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.hw-shop-card.added { outline: 2px solid var(--brass); outline-offset: 2px; }
@media (max-width: 760px) {
  .hw-shop-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
}

.hw-shop-card { color: inherit; text-decoration: none; transition: box-shadow .15s ease, border-color .15s ease; }
.hw-shop-card:hover, .hw-shop-card:focus-visible { border-color: var(--brass, #b08d57); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.hw-shop-cta { margin-top: auto; font-weight: 600; font-size: .92rem; }
.hw-demo-banner, .hw-demo-note {
  background: #f7f1e6;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 16px 0 0;
}
.hw-pdp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 36px;
  align-items: start;
}
.hw-pdp-photo {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.hw-pdp-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; display: block; }
.hw-pdp-buy .hw-sku { margin: 0 0 6px; color: var(--muted); }
.hw-pdp-buy .price { margin: 0 0 8px; font-size: 1.45rem; font-weight: 700; }
.hw-avail { margin: 0 0 16px; font-size: .95rem; color: var(--muted); }
.hw-avail.is-unavailable { color: #8a1f1f; }
.hw-options { border: 0; padding: 0; margin: 0 0 18px; }
.hw-options legend { font-weight: 700; margin: 0 0 8px; padding: 0; }
.hw-opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.hw-opt {
  font: inherit;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}
.hw-opt[aria-pressed="true"] { border-color: var(--ink, #1a1a1a); background: var(--paper); font-weight: 600; }
.hw-opt:disabled, .hw-opt.is-unavailable {
  opacity: .45;
  cursor: not-allowed;
  text-decoration: line-through;
}
.hw-pdp-buy .hw-shop-buy { margin-top: 8px; }
[data-hw-product].added .hw-pdp-buy { outline: 2px solid var(--brass); outline-offset: 8px; border-radius: 8px; }
@media (max-width: 800px) {
  .hw-pdp { grid-template-columns: 1fr; gap: 20px; }
}

.hw-opt { max-width: 100%; text-align: left; white-space: normal; line-height: 1.3; }
.hw-call { margin: 0 0 16px; font-size: 1.15rem; font-weight: 700; }
.hw-call[hidden], .hw-shop-buy[hidden], [data-hw-option-wrap][hidden], .price[hidden] { display: none; }
.hw-shop-buy[hidden] { display: none !important; }
.order-ref { font-size: 1.15rem; font-weight: 700; margin: 12px 0; }

.cart-form .pickup-location { margin: 8px 0 0; padding: 12px 14px; background: var(--cream, #f7f1e8); border-radius: 8px; }
.cart-form .pickup-location p { margin: 0; }
.cart-form [data-delivery-address] { margin-top: 8px; }
