/* Cubtopia Shop (shop/) — sits on top of style.css */
.shop-wrap [hidden], .cart-jump[hidden]{ display: none !important; }
.shop-section{ padding-top: 2rem; }
.shop-wrap{ max-width: 1180px; margin: 0 auto; }
.shop-note{ background: var(--cream); border-radius: 16px; padding: 1rem 1.25rem; margin: 0 0 1.25rem; font-weight: 700; box-shadow: 0 8px 18px rgba(12,28,57,.15); }
.shop-note.warn{ background: #fff1d6; }
.shop-note a{ color: var(--line-blue); }
.shop-intro{ background: var(--cream); border-radius: 16px; padding: 1rem 1.25rem; margin: 0 0 1.25rem; line-height: 1.55; }
.shop-back{ text-align: center; }

.shop-layout{ display: grid; grid-template-columns: 1fr 340px; gap: 1.25rem; align-items: start; }
.shop-layout.closed{ grid-template-columns: 1fr; }
.shop-products{ display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.shop-card{ background: var(--cream); border-radius: 20px; overflow: hidden; box-shadow: 0 12px 26px rgba(12,28,57,.22); display: flex; flex-direction: column; }
.shop-img{ aspect-ratio: 4 / 3; background: linear-gradient(160deg, var(--sky-pale), #fff); }
.shop-img img{ width: 100%; height: 100%; object-fit: cover; }
.shop-body{ padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.shop-body h2{ margin: 0; font-size: 1.3rem; line-height: 1.15; }
.shop-price{ margin: 0; font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 1.25rem; color: var(--gold-deep); }
.shop-desc{ margin: 0; font-size: .92rem; line-height: 1.5; }
.shop-soldout{ margin: auto 0 0; font-weight: 700; color: #b3261e; }
.shop-buy{ margin-top: auto; display: grid; grid-template-columns: 1fr 80px; gap: .5rem; align-items: end; }
.shop-buy label{ display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; font-weight: 700; }
.shop-buy select, .shop-buy input, .shop-cart input, .shop-cart textarea, .shop-cart select{
  font: inherit; font-size: 16px; padding: .55rem .6rem; border: 1px solid rgba(12,28,57,.25); border-radius: 10px; background: #fff; width: 100%; color: var(--navy);
}
.shop-buy .btn{ grid-column: 1 / -1; justify-content: center; }
.shop-buy label:only-of-type{ grid-column: 2; }

.shop-cart{ position: sticky; top: 1rem; background: var(--cream); border-radius: 20px; padding: 1.1rem 1.2rem; box-shadow: 0 12px 26px rgba(12,28,57,.22); }
.shop-cart h2{ margin: 0 0 .5rem; }
.shop-cart ul{ list-style: none; margin: 0; padding: 0; }
.shop-cart li{ display: grid; grid-template-columns: 1fr auto 64px; gap: .4rem; align-items: center; padding: .4rem 0; border-bottom: 1px solid rgba(12,28,57,.1); font-size: .92rem; }
.shop-cart li.muted{ display: block; color: #5b6478; border: 0; }
.cl-qty{ display: inline-flex; align-items: center; gap: .3rem; }
.cl-qty b{ min-width: 1.3rem; text-align: center; }
.cl-btn{ width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(12,28,57,.25); background: #fff; font-weight: 700; cursor: pointer; color: var(--navy); }
.cl-amt{ text-align: right; font-variant-numeric: tabular-nums; }
.shop-total{ display: flex; justify-content: space-between; font-family: "Baloo 2", sans-serif; font-size: 1.4rem; margin: .6rem 0 .2rem; }
.shop-cart form label{ display: block; font-size: .82rem; font-weight: 700; margin: .55rem 0 0; }
.shop-cart form label input, .shop-cart form label textarea, .shop-cart form label select{ margin-top: .2rem; font-weight: 400; }
.shop-agree{ display: flex !important; gap: .5rem; align-items: flex-start; font-weight: 600 !important; }
.shop-agree input{ width: auto !important; margin-top: .25rem !important; }
.shop-pickup{ background: #fff; border-radius: 12px; padding: .7rem .8rem; margin: .7rem 0 0; font-size: .88rem; line-height: 1.5; }
.btn-wide{ width: 100%; justify-content: center; margin-top: .8rem; }
.btn:disabled{ opacity: .5; cursor: not-allowed; transform: none; }
.small{ font-size: .85rem; }
.tiny{ font-size: .75rem; line-height: 1.45; color: #4a5468; }
.muted{ color: #5b6478; }
.cart-jump{ display: none; }
.hp{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.shop-order-grid{ display: grid; grid-template-columns: 340px 1fr; gap: 1.25rem; background: var(--cream); border-radius: 22px; padding: clamp(1.2rem, 3vw, 2rem); box-shadow: 0 18px 36px rgba(12,28,57,.28); }
.shop-pickup-card{ text-align: center; }
.shop-pickup-card h2{ margin-top: 0; color: var(--gold-deep); }
.shop-qr{ background: #fff; border-radius: 16px; padding: .6rem; max-width: 260px; margin: 0 auto; }
.shop-qr svg{ display: block; width: 100%; height: auto; }
.shop-ordno{ font-family: "Baloo 2", sans-serif; font-size: 2rem; font-weight: 800; margin: .4rem 0; }
.shop-table{ width: 100%; border-collapse: collapse; }
.shop-table td{ padding: .45rem .2rem; border-bottom: 1px solid rgba(12,28,57,.1); }
.shop-table .num{ text-align: right; white-space: nowrap; }
.shop-table .tot td{ font-weight: 800; }
.shop-paid{ background: #1f7a36; color: #fff; text-align: center; border-radius: 22px; padding: 2rem 1rem; }
.shop-paid .big{ font-family: "Baloo 2", sans-serif; font-size: clamp(2rem, 8vw, 3.2rem); font-weight: 800; margin: 0; }

@media (max-width: 900px){
  .cart-jump{ position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 40; display: block; text-align: center; background: var(--navy); color: var(--cream); font-weight: 700; text-decoration: none; padding: .9rem 1rem; border-radius: 999px; box-shadow: 0 10px 24px rgba(12,28,57,.35); }
  .cart-jump[hidden]{ display: none; }
  .shop-layout{ grid-template-columns: 1fr; }
  .shop-cart{ position: static; }
  .shop-order-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 480px){
  .shop-section{ padding-left: 1rem; padding-right: 1rem; }
  .shop-products{ grid-template-columns: 1fr; }
}
@media print{
  .site-header, .scouts-footer, .critters, .river-divider, .cloud, .btn{ display: none !important; }
  .sky, .bush{ background: #fff !important; padding: 0 !important; }
  .shop-order-grid{ box-shadow: none; }
}
