/* The Stubby Hut — /shop/ only. Page-scoped (SPEC §4): loaded by this page
   alone, so it never forces a ?v= bump on css/main.css and the other 32 pages.
   Everything here builds on the tokens and components already in main.css. */

/* The cart button is fixed bottom-right — keep it off the last lines of copy. */
main { padding-bottom: 76px; }

/* ---------- Product block ---------- */

.shop-product {
  background: var(--cream);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: 22px 24px 26px;
  max-width: 760px;
  box-shadow: 0 8px 24px rgba(48, 24, 0, 0.08);
}

.shop-options { display: grid; gap: 16px; }

.shop-same-price {
  margin: 14px 0 0;
  font-size: 14.5px;
  color: var(--text-mid);
}

.shop-price { margin-top: 18px; }

.shop-price-main {
  margin: 0;
  font-size: 19px;
  color: var(--bark);
  line-height: 1.4;
}

.shop-price-main strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  color: var(--sunset-deep);
  line-height: 1;
  margin-right: 4px;
}

.shop-price-sep { color: var(--text-light); margin: 0 4px; }

.shop-price-freight {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-mid);
}

.shop-notice {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-sand);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--bark-mid);
}

.shop-notice a { font-weight: 800; }

.shop-add { margin-top: 20px; }
.shop-add[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.shop-add-note {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-mid);
  max-width: 46ch;
}

/* ---------- Supporting copy ---------- */

.shop-cancel-note { max-width: 720px; margin-top: 4px; }

.shop-quote-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 22px;
  display: grid;
  gap: 14px;
  max-width: 720px;
}

.shop-quote-list li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-mid);
}

.shop-quote-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
}

.shop-quote-list strong { color: var(--bark); }

.shop-quote-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0; }
.shop-quote-cta-note { font-size: 15px; color: var(--text-mid); }

/* ---------- Cart button ---------- */

.shop-cart-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border: none;
  border-radius: 999px;
  background: var(--sunset-deep);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(48, 24, 0, 0.3);
}

.shop-cart-fab:hover { background: var(--sunset); }

.shop-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--bark);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ---------- Cart panel ---------- */

.shop-cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(26, 18, 16, 0.5);
}

.shop-cart {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: -12px 0 40px rgba(48, 24, 0, 0.28);
  overflow-y: auto;
  padding: 18px 20px 26px;
}

.shop-cart[hidden], .shop-cart-backdrop[hidden], .shop-cart-fab[hidden] { display: none; }

body.shop-cart-open { overflow: hidden; }

.shop-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(48, 24, 0, 0.12);
}

.shop-cart-head h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--bark);
  margin: 0;
}

.shop-cart-close {
  border: none;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  color: var(--text-mid);
  cursor: pointer;
  padding: 0 4px;
}

.shop-cart-close:hover { color: var(--sunset-deep); }

.shop-cart-empty {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-mid);
}

.shop-cart-empty[hidden] { display: none; }
.shop-cart-empty strong { color: var(--bark); }

.shop-cart-lines { list-style: none; margin: 8px 0 0; padding: 0; }

.shop-cart-line {
  padding: 14px 0;
  border-bottom: 1px solid rgba(48, 24, 0, 0.1);
}

.shop-cart-line-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.shop-cart-line-label {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--bark);
  line-height: 1.4;
}

.shop-cart-line-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--sunset-deep);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.shop-cart-line-unit {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--text-meta);
}

.shop-cart-line-controls { display: flex; gap: 16px; margin-top: 8px; }

.shop-cart-link {
  border: none;
  background: transparent;
  padding: 0;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--teal-link);
  text-decoration: underline;
  cursor: pointer;
}

.shop-cart-link:hover { color: var(--sunset-deep); }

/* ---------- Line editor ---------- */

.shop-cart-editor {
  margin-top: 12px;
  padding: 14px;
  border-radius: 10px;
  background: var(--bg-sand);
  display: grid;
  gap: 12px;
}

.shop-cart-editor-actions { display: flex; align-items: center; gap: 16px; }
.shop-cart-save { padding: 10px 20px; font-size: 14px; }

.shop-cart-editor-error {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--sunset-deep);
}

/* ---------- Cheaper-tier guard (SPEC §3.3) ---------- */

.shop-cart-guard {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  border-left: 4px solid var(--teal-deep);
  background: var(--bg-warm);
}

.shop-cart-guard[hidden] { display: none; }

.shop-cart-guard-msg {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--bark-mid);
}

.shop-cart-guard-btn { padding: 9px 18px; font-size: 14px; }

/* ---------- Cart footer ---------- */

.shop-cart-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(48, 24, 0, 0.12);
}

.shop-cart-foot[hidden] { display: none; }

.shop-cart-subtotal {
  margin: 0 0 14px;
  font-size: 17px;
  color: var(--bark);
  line-height: 1.5;
}

.shop-cart-subtotal span { font-variant-numeric: tabular-nums; }

.shop-cart-freight {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-mid);
}

.shop-checkout { width: 100%; text-align: center; }

.shop-cart-foot-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-meta);
  text-align: center;
}

/* ---------- Wider screens ---------- */

@media (min-width: 720px) {
  .shop-options { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .shop-cart-fab { right: 28px; bottom: 28px; }
}

/* ---------- Product layout + gallery (23 Sep rebuild) ---------- */
.shop-layout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .shop-layout { grid-template-columns: 1.1fr 1fr; gap: 40px; } }
.shop-gallery-main { border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 28px rgba(48,24,0,0.14); background: var(--bg-sand); }
.shop-gallery-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.shop-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.shop-thumb { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.shop-thumb.is-active, .shop-thumb:hover { border-color: var(--sunset-deep); }
.shop-thumb-img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.shop-layout .shop-product { max-width: none; padding: 26px 28px 30px; }
.shop-product-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; color: var(--bark); margin: 0 0 10px; }
.shop-product-lede { font-size: 17px; line-height: 1.6; color: var(--bark-mid); margin: 0 0 20px; }
.shop-layout .form-select { font-size: 16px; padding-top: 12px; padding-bottom: 12px; }
.shop-layout .shop-price-main strong { font-size: 44px; }
.shop-layout .shop-add { width: 100%; font-size: 17px; padding-top: 16px; padding-bottom: 16px; }
.shop-examples { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .shop-examples { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.shop-example { margin: 0; }
.shop-example-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: 0 6px 18px rgba(48,24,0,0.1); }
.shop-example figcaption { margin-top: 8px; font-weight: 700; font-size: 15px; color: var(--bark); }
.shop-examples-note { margin-top: 18px; font-size: 15px; color: var(--text-mid); max-width: 70ch; }
.shop-layout .shop-options { grid-template-columns: 1fr; gap: 14px; }

/* Phones: get the product photo and price onto the first screen.
   The hero buttons only jump to the product block below (and Get a Quote is
   in the nav), so they are dropped here; the trust points go two-up. */
@media (max-width: 767px) {
  .occasion-hero { padding: 84px 0 22px; }
  .occasion-hero .hero-ctas { display: none; }
  .occasion-hero .trust-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: 14px; }
  .occasion-hero .trust-strip li { font-size: 13px; align-items: flex-start; text-align: left; }
  #product { padding-top: 22px; }
}
