/* Extend the Devo storefront to product, checkout and confirmation pages.
   Existing checkout selectors and API behavior remain in style.css / app.js. */
.storefront-page {
  padding-bottom: 0;
  font-weight: 400;
  letter-spacing: .03em;
}
.storefront-page .header { padding-top: 0; padding-bottom: 0; text-align: initial; }
.storefront-page .header .wordmark { text-align: center; }
.storefront-page .site-footer { margin-top: 0; text-align: left; letter-spacing: normal; color: var(--ink); }
.storefront-page .site-footer .footer-logo { text-align: center; }
.storefront-page .bag-button [data-cart-count] { font-family: var(--sans); font-size: 17px; }
.storefront-page .inner-page { max-width: 1200px; min-height: 52vh; margin: 0 auto; padding: 0 42px 90px; }
.storefront-page .wrap { padding: 0; }
.breadcrumbs { display: flex; align-items: center; gap: 14px; padding: 34px 0; font-size: 12px; color: var(--muted); }
.breadcrumbs a { border-bottom: 1px solid var(--line); }
.page-heading { padding: 56px 0 38px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.page-heading .eyebrow { color: var(--muted); }
.page-heading h1 { font-size: 30px; letter-spacing: 3px; font-weight: 400; margin: 12px 0; line-height: 1.7; }
.page-heading > p:last-child:not(.eyebrow) { font-size: 13px; color: var(--muted); letter-spacing: 1px; }
.storefront-page .card { border-radius: 0; border: 1px solid var(--line); box-shadow: none; padding: 25px; }
.storefront-page .sec-title { font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 1.5px; }
.storefront-page .sec-title::before { height: 1px; width: 14px; border-radius: 0; background: var(--brown); }
.storefront-page .btn { border-radius: 0; box-shadow: none; background: var(--brown); font-family: var(--sans); font-size: 14px; font-weight: 400; letter-spacing: 2px; }
.storefront-page .btn:hover:not(:disabled) { background: #38291e; }
.storefront-page .btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.storefront-page .btn.ghost:hover { background: var(--cream); }
.storefront-page .stepper { border-radius: 0; background: var(--paper); }
.storefront-page .stepper .val { font-family: var(--sans); font-weight: 500; font-size: 21px; }
.storefront-page .stepper button { min-width: 38px; height: 38px; }
.storefront-page .stepper.sm button { min-width: 32px; width: 32px; height: 32px; }
.storefront-page .stepper.sm .val { width: 30px; font-size: 18px; }
.storefront-page .tag { border-radius: 0; }
.storefront-page .leaf { color: #a18d77; margin: 24px 0; }
.storefront-page .dbar { background: var(--cream); border-radius: 0; padding: 16px 18px; }
.storefront-page .dbar .vl { font-family: var(--sans); font-size: 15px; }
.storefront-page .dbar .none { font-size: 13px; }
.storefront-page .qty-hint { font-size: 12px; color: var(--muted); margin-top: 12px; }
.product-detail-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 60px; align-items: start; }
.product-copy { min-width: 0; padding-top: 12px; }
.product-copy > .eyebrow { font-size: 10px; color: var(--muted); }
.product-page .gallery { border-radius: 0; box-shadow: none; background: var(--cream); position: sticky; top: 135px; }
.product-page .gallery img { height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.product-page .gallery .dots { display: flex; justify-content: center; gap: 8px; }
.product-page .gallery .dots i { width: 8px; height: 8px; background: #ffffff99; border: 1px solid #ffffffcc; border-radius: 50%; cursor: pointer; }
.product-page .gallery .dots i.on { background: var(--paper); width: 22px; border-radius: 8px; }
.product-page .ptitle { text-align: left; padding: 12px 0 24px; }
.product-page .ptitle h1 { font-family: var(--sans); font-size: 29px; font-weight: 400; line-height: 1.7; letter-spacing: 2px; }
.product-page .ptitle .jp { font-family: var(--serif); font-size: 19px; font-style: italic; letter-spacing: 1px; }
.product-page .ptitle .price { font-family: var(--sans); font-size: 31px; margin-top: 12px; }
.product-page .intro { text-align: left; padding: 20px 0 0; font-size: 13px; line-height: 2.1; }
.product-page .ship-tags { justify-content: flex-start; }
.product-availability { border: 1px solid var(--line); padding: 22px; margin: 4px 0 8px; background: var(--paper); }
.product-availability h2 { font-size: 15px; font-weight: 500; letter-spacing: 1.5px; margin: 0 0 14px; }
.product-availability .cal-head { margin-bottom: 14px; }
.product-availability .cal-head b { font-family: var(--sans); font-size: 14px; font-weight: 500; }
.product-availability .cal-head button { border-radius: 0; background: transparent; }
.product-availability .cal { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.product-availability .cal .d { min-width: 0; min-height: 56px; height: auto; aspect-ratio: auto; padding: 6px 1px; border-radius: 0; font-family: var(--sans); font-size: 13px; }
.product-availability .cal .d small { font-family: var(--sans); font-size: 10px; line-height: 1.4; letter-spacing: 0; }
.product-availability .cal .off { opacity: .65; }
.product-availability .cal .blank { min-height: 0; }
.product-availability .cal-why { font-size: 11px; margin-top: 14px; line-height: 1.9; }
.product-stock-status { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; font-size: 13px; color: var(--muted); }
.product-stock-status span { display: block; font-size: 12px; margin-bottom: 5px; }
.product-stock-status strong { display: block; color: var(--brown); font-size: 20px; font-weight: 500; letter-spacing: 1px; }
.product-stock-status.low strong { color: var(--warn); }
.availability-actions { display: flex; gap: 22px; flex-wrap: wrap; }
.product-buy-hint { text-align: center; color: var(--muted); font-size: 12px; margin-top: 11px; line-height: 1.8; }
.product-page .addon { flex-wrap: wrap; }
.product-page .addon .an { min-width: 110px; }
.product-page .addon .ap { font-family: var(--sans); font-size: 18px; }
.product-page .addon .box { border-radius: 0; }
.product-page .addon .stepper.sm { margin-left: auto; }
.product-page .sheet-in { max-width: 390px; border-radius: 0; padding: 36px 28px 26px; border: 1px solid var(--line); }
.product-page .sheet-in h3 { font-family: var(--sans); font-weight: 400; font-size: 21px; margin-bottom: 12px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 38px; align-items: start; }
.checkout-layout:has(#top > .empty) { grid-template-columns: minmax(0, 1fr); max-width: 620px; margin-inline: auto; }
.checkout-layout > * { min-width: 0; }
.checkout-layout #form > [aria-hidden] + .card { margin-top: 0 !important; }
.cart-page #top { position: sticky; top: 130px; }
.cart-page .date-slot .picked, .cart-page .cal-head b { font-family: var(--sans); font-size: 15px; }
.cart-page .cal-head button { border-radius: 0; }
.cart-page .cal .d { border-radius: 0; font-family: var(--sans); font-size: 13px; }
.cart-page .item img { width: 66px; height: 80px; border-radius: 0; }
.cart-page .item .inm { font-size: 14px; line-height: 1.8; }
.cart-page .item .ip, .cart-page .sub-addon .sa-p { font-family: var(--sans); font-size: 19px; }
.cart-page .item .ir { flex-wrap: wrap; gap: 10px; }
.cart-page .total { border-radius: 0; padding: 20px; }
.cart-page .total .line.sum b { font-family: var(--sans); font-size: 27px; font-weight: 500; }
.storefront-page .free-nudge, .storefront-page .free-got,
.storefront-page .conflict, .storefront-page .split-hint,
.storefront-page .batch, .storefront-page .pay-due { border-radius: 0; }
.storefront-page .field input, .storefront-page .field textarea,
.storefront-page .field select { border-radius: 0; font-weight: 400; font-size: 14px; background-color: var(--paper); }
.storefront-page .field input:focus, .storefront-page .field textarea:focus,
.storefront-page .field select:focus { border-color: var(--brown); box-shadow: 0 0 0 2px #58443515; }
.storefront-page .field input:read-only { background-color: var(--cream); }
.storefront-page .zip-show b { font-family: var(--sans); }
.storefront-page .samebtn, .storefront-page .samebtn .box { border-radius: 0; }
.storefront-page .pay-box { background: var(--cream); border: 1px solid var(--line); border-radius: 0; }
.storefront-page .pay-box .pa { font-family: var(--sans); font-size: 22px; overflow-wrap: anywhere; }
.storefront-page .pay-box .pc { border-radius: 0; background: var(--brown); }
.storefront-page .notice { padding: 46px 24px; text-align: center; border: 1px solid var(--line); background: var(--cream); }
.storefront-page .notice h2 { font-size: 22px; margin-bottom: 16px; }
.storefront-page .notice p { font-size: 14px; color: var(--muted); line-height: 2; }
.storefront-page .toast { border-radius: 0; background: var(--brown); color: var(--paper); max-width: min(90vw, 520px); white-space: normal; text-align: center; bottom: 24px; box-shadow: none; }
.done-page .inner-page { max-width: 740px; }
.done-page .page-heading { text-align: center; }
.done-page .page-heading h1 { font-size: 27px; }
.done-page .success { border: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 38px; }
.done-page .success .si { background: var(--cream); margin-bottom: 20px; }
.done-page .success h2 { font-family: var(--sans); font-size: 23px; }
.done-page .ono { font-family: var(--sans); font-size: 23px; border: 1px solid var(--line); border-radius: 0; background: var(--cream); margin-top: 22px; overflow-wrap: anywhere; }
.done-page .pb-row { gap: 14px; }
.done-page .pb-row > b { overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 1000px) {
  .storefront-page .inner-page { padding-left: 28px; padding-right: 28px; }
  .product-detail-layout { gap: 32px; }
  .checkout-layout { gap: 22px; }
  .storefront-page .card { padding: 20px; }
}
@media (max-width: 760px) {
  .checkout-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .cart-page #top { position: static; }
  .cart-page .inner-page { max-width: 580px; }
}
@media (max-width: 700px) {
  .storefront-page .inner-page { padding: 0 20px 58px; }
  .breadcrumbs { padding: 25px 0; font-size: 11px; }
  .page-heading { padding: 38px 0 26px; margin-bottom: 24px; }
  .page-heading .eyebrow { font-size: 9px; letter-spacing: 1.6px; }
  .page-heading h1 { font-size: 24px; letter-spacing: 2px; }
  .product-detail-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .product-page .gallery { position: relative; top: auto; }
  .product-page .gallery img { aspect-ratio: 1 / 1; }
  .product-copy { padding-top: 0; }
  .product-page .ptitle h1 { font-size: 25px; }
  .product-page .ptitle .jp { font-size: 17px; }
  .product-page .ptitle .price { font-size: 28px; }
  .product-availability { padding: 17px 12px; }
  .product-availability .cal { gap: 3px; }
  .product-availability .cal .d { min-height: 50px; font-size: 12px; }
  .product-stock-status strong { font-size: 18px; }
  .storefront-page .card { padding: 20px 17px; }
  .storefront-page .field input, .storefront-page .field textarea, .storefront-page .field select { font-size: 16px; }
  .storefront-page .pay-box { padding: 15px 13px; }
  .storefront-page .pay-box .pa { font-size: 20px; }
  .cart-page .item img { width: 56px; height: 68px; }
  .cart-page .item .ip { font-size: 18px; }
  .cart-page .total { padding: 17px; }
  .done-page .page-heading h1 { font-size: 21px; letter-spacing: 1px; }
  .done-page .success { padding: 28px 20px; }
  .done-page .pb-row { font-size: 12px; gap: 8px; }
  .done-page .ono { font-size: 20px; }
}
