/* The existing shop palette and type remain the visual source of truth. */
.mock-tools { background:#fff; color:var(--ink); gap:18px; flex-wrap:wrap; align-items:center; padding:8px 18px; border-bottom:1px solid var(--line); }
.demo-guide { display:flex; flex-direction:column; line-height:1.5; margin-right:auto; }
.demo-guide b { font-size:14px; font-weight:650; }
.demo-guide span { font-size:12px; color:var(--muted); }
.demo-paths { display:flex; gap:7px; }
.demo-paths button { background:#fff; border:1px solid #d2c8bb; border-radius:4px; min-height:38px; padding:6px 12px; font-size:13px; color:#734332; }
.demo-paths button:hover { background:var(--cream); }
.mock-controls span { display:none; }
.mock-controls a { min-height:36px; min-width:64px; font-size:12px; }
.mock-controls a:hover { background:#f1ece2; }
.mock-controls a[aria-current="true"] { background:#40372e; color:white; }
.cart-count { display:inline-flex; align-items:center; justify-content:center; min-width:21px; height:21px; border-radius:50%; background:#fff; color:var(--red); font:650 12px/1 var(--sans); padding:0 5px; }
.textlink .cart-count,.footlink .cart-count { background:#e7d9c9; color:#67402f; }
.catalogue-price { display:flex; align-items:baseline; gap:3px; font-size:15px; font-weight:650; margin-top:8px; }
.catalogue-price small { font-size:12px; color:var(--muted); font-weight:400; }
.product-detail { margin-top:0; }
#panel { border-radius:8px; background:#fffdfa; }
#panel .dialogbar { background:#fffdfa; }
#panel[open] { animation:panel-reveal .2s ease-out; }
#panel-content { padding:30px; }
#panel h2:focus { outline:none; }
#panel h2 { font-size:30px; letter-spacing:.025em; }
#panel button { min-height:44px; }
#panel .shopbtn { border:1px solid var(--red); font-size:15px; min-height:48px; padding:11px 16px; }
#panel .outlined { background:transparent; font-size:15px; min-height:48px; }
#panel .outlined:hover { background:var(--cream); }
#panel .shopbtn:disabled { cursor:wait; opacity:.65; }
#panel [tabindex="-1"]:focus { outline:none; }
.panel-product { align-items:start; grid-template-columns:.85fr 1.15fr; gap:30px; }
.detail-image { position:sticky; top:76px; }
.detail-image .packshot { height:330px; background:#f4f0e7; padding:25px; border-radius:4px; }
.detail-image>span { display:block; text-align:center; font-size:12px; color:var(--muted); padding-top:5px; }
.panel-copy>.category { display:block; margin-top:0; }
.panel-copy>p { font-size:14px; }
.product-purchase { border-top:1px solid var(--line); margin-top:18px; padding-top:16px; }
.product-purchase>label { display:block; font-size:14px; font-weight:650; margin-bottom:5px; }
#product-size { appearance:none; background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23615c52' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center; border:1px solid #b7afa3; border-radius:4px; width:100%; padding:10px 36px 10px 12px; min-height:44px; font:inherit; font-size:15px; color:var(--ink); }
.quantity-label { display:flex; align-items:center; justify-content:space-between; margin-top:14px; font-size:14px; font-weight:650; }
.qty-control { display:flex; align-items:center; height:42px; width:128px; border:1px solid #c8c0b3; border-radius:4px; background:#fff; }
#panel .qty-control button { border:0; background:transparent; min-height:40px; min-width:38px; font-size:18px; padding:0; color:var(--ink); }
.qty-control button:disabled { opacity:.3; cursor:default; }
.qty-control input { width:48px; min-width:0; padding:0; border:0; background:transparent; text-align:center; font:500 15px var(--sans); color:var(--ink); appearance:textfield; }
.qty-control input::-webkit-inner-spin-button,.qty-control input::-webkit-outer-spin-button { appearance:none; margin:0; }
.panel-copy .detail-price { display:flex; align-items:baseline; gap:9px; margin:17px 0 13px; color:var(--ink); }
.detail-price strong { font:600 28px/1.3 var(--sans); font-variant-numeric:tabular-nums; }
.detail-price span { font-size:12px; color:var(--muted); }
.purchase-actions { display:flex; flex-direction:column; gap:9px; }
#panel .purchase-actions .shopbtn { margin:0; display:flex; }
#panel .purchase-note { margin-top:10px; font-size:12px; line-height:1.65; color:#726456; }
#panel .flow-hint { font-size:12px; margin-top:11px; line-height:1.7; }
.panel-eyebrow { font-size:13px; color:#80543d; margin-bottom:3px; }
.panel-intro { font-size:14px; color:var(--muted); margin-top:7px; }
.cart-lines { margin-top:20px; border-top:1px solid var(--line); }
.cart-line { display:grid; grid-template-columns:66px 1fr auto; gap:16px; align-items:start; padding:19px 0; border-bottom:1px solid var(--line); }
.cart-line>img { width:66px; height:90px; object-fit:contain; background:#f3eee5; padding:7px; border-radius:3px; }
.cart-line h3 { font:600 18px/1.55 var(--serif); }
.cart-line-info>p { font-size:13px; color:var(--muted); margin-top:4px; }
.cart-line-info>p span { display:inline-block; margin-left:12px; }
.cart-line-controls { display:flex; gap:15px; align-items:center; margin-top:10px; }
.remove-item { padding:0; background:none; border:0; color:#775a49; text-decoration:underline; text-underline-offset:3px; font-size:12px; }
.line-total { padding-top:3px; font-size:16px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.order-totals { margin-top:20px; font-size:14px; }
.order-totals>div { display:flex; justify-content:space-between; align-items:baseline; gap:15px; margin:8px 0; }
.order-totals dt span { font-size:12px; color:var(--muted); }
.order-totals dd { font-variant-numeric:tabular-nums; }
.order-totals .grand-total { padding-top:14px; margin-top:14px; border-top:1px solid var(--line); font-weight:650; }
.grand-total dd { font-size:26px; }
.full-button { display:flex; width:100%; justify-content:center; margin-top:16px; }
.text-button { background:transparent; color:#77513d; border:0; font-size:14px; text-decoration:underline; text-underline-offset:4px; margin-top:6px; }
.empty-cart { text-align:center; padding:30px 0 12px; }
.empty-cart>svg { width:52px; height:52px; color:#aa8b72; margin:0 auto 15px; }
.empty-cart h3 { font:600 23px/1.5 var(--serif); margin-bottom:9px; }
.empty-cart p { color:var(--muted); font-size:14px; margin-bottom:22px; }
.empty-cart .shopbtn { margin:0 auto; width:fit-content; padding-inline:30px!important; }
.checkout-back { padding:0; background:none; border:0; color:#79513e; font-size:13px; text-decoration:underline; text-underline-offset:4px; margin-bottom:6px; }
.checkout-demo-note { display:flex; flex-wrap:wrap; gap:5px 14px; background:#f6efe1; border-left:3px solid #b79056; padding:10px 13px; margin:14px 0 24px; line-height:1.6; color:#624d31; }
.checkout-demo-note b { font-size:13px; }
.checkout-demo-note span { font-size:12px; }
.checkout-demo-note span br { display:none; }
.checkout-layout { display:grid; grid-template-columns:1fr .9fr; gap:30px; }
.checkout-layout h3 { font:600 21px/1.5 var(--serif); margin-bottom:14px; }
.sample-field { margin-top:12px; }
.sample-field label { display:block; font-size:13px; color:var(--ink); margin-bottom:4px; }
.sample-field input { width:100%; min-width:0; border:1px solid #c9c2b7; border-radius:5px; padding:10px 12px; min-height:45px; background:#fff; font:14px/1.5 var(--sans); color:#5d574d; cursor:default; }
.payment-section { border-top:1px solid var(--line); margin-top:24px; padding-top:22px; }
.payment-heading { display:flex; justify-content:space-between; align-items:baseline; }
.payment-heading h3 { margin:0; }
.credit-label { border:1px solid #b2a596; border-radius:3px; font-size:11px; padding:1px 6px; color:#61574b; }
.payment-split { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.sample-hint { margin-top:9px; font-size:12px; color:var(--muted); line-height:1.6; }
.checkout-summary { padding:20px; background:#f7f3eb; border-radius:5px; align-self:start; min-width:0; }
.checkout-summary h3 { margin-bottom:0; }
.summary-lines .cart-line { grid-template-columns:44px 1fr; gap:10px; padding:14px 0; }
.summary-lines .cart-line>img { width:44px; height:62px; padding:3px; }
.summary-lines .cart-line h3 { font-size:15px; line-height:1.6; }
.summary-lines .cart-line-info>p { font-size:12px; }
.summary-lines .cart-line-info>p span { display:none; }
.summary-lines .line-total { grid-column:2; padding:0; margin-top:-9px; font-size:15px; }
.checkout-summary .order-totals { margin-top:14px; }
.checkout-summary .grand-total dd { font-size:24px; }
.checkout-summary .shopbtn { font-size:14px!important; padding-inline:8px!important; }
.no-charge-note { text-align:center; color:var(--muted); font-size:11px; margin-top:7px; }
.payment-spinner { border:2px solid #ffffff66; border-top-color:white; border-radius:50%; width:16px; height:16px; flex:none; animation:spin .7s linear infinite; }
.complete-panel { max-width:560px; margin:auto; text-align:center; padding:12px 0; }
.success-mark { background:#e8eee0; color:#52613d; width:67px; height:67px; border-radius:50%; display:grid; place-items:center; margin:0 auto 20px; }
.success-mark svg { width:35px; height:35px; stroke-width:2; }
.complete-panel .panel-eyebrow { color:#626a4c; }
#panel .complete-panel h2 { font-size:28px; margin:7px 0 14px; }
.complete-copy { font-size:14px; line-height:1.9; color:var(--muted); }
.complete-order { text-align:left; background:#f7f3eb; border-radius:5px; padding:4px 20px 16px; margin-top:22px; }
.complete-order .cart-line { grid-template-columns:50px 1fr auto; gap:13px; }
.complete-order .cart-line>img { width:50px; height:70px; padding:3px; }
.complete-order .cart-line h3 { font-size:16px; }
.complete-order .cart-line-info>p span { display:none; }
@keyframes panel-reveal { from { opacity:0; } to { opacity:1; } }
@keyframes spin { to { transform:rotate(360deg); } }
@container mock (max-width:600px) {
  #panel-content { padding:20px 18px; }
  #panel h2 { font-size:25px; }
  .panel-product { display:block; }
  .detail-image { position:static; }
  .detail-image .packshot { height:170px; padding:14px; margin-bottom:0; }
  .detail-image>span { display:none; }
  .panel-copy>.category { margin-top:17px; }
  .panel-copy>p { font-size:14px; }
  #panel .panel-copy h2 { font-size:24px; line-height:1.5; }
  .product-purchase { margin-top:16px; padding-top:14px; }
  .purchase-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  #panel .purchase-actions button { font-size:13px; padding:10px 7px; }
  .cart-line { grid-template-columns:52px 1fr; gap:12px; padding:16px 0; position:relative; }
  .cart-line>img { width:52px; height:77px; padding:4px; }
  .cart-line h3 { font-size:17px; }
  .cart-line-info>p span { margin-left:0; display:block; }
  .cart-line-controls { gap:16px; }
  .line-total { grid-column:2; justify-self:end; margin-top:-3px; padding:0; font-size:16px; }
  .checkout-layout { grid-template-columns:1fr; gap:23px; }
  .checkout-demo-note { display:block; margin:12px 0 19px; }
  .checkout-demo-note b,.checkout-demo-note span { display:block; }
  .checkout-demo-note span { margin-top:3px; }
  .checkout-demo-note span br { display:block; }
  .checkout-summary { padding:18px 15px; }
  .checkout-summary .shopbtn { font-size:15px!important; }
  .summary-lines .line-total { justify-self:start; }
  .sample-field input { font-size:16px; }
  .complete-panel { padding:6px 0; }
  #panel .complete-panel h2 { font-size:24px; line-height:1.5; }
  .complete-copy { font-size:13px; }
  .complete-order { padding:4px 12px 13px; }
  .complete-order .cart-line { grid-template-columns:42px 1fr; gap:10px; }
  .complete-order .cart-line>img { width:42px; height:65px; }
  .complete-order .line-total { grid-column:2; }
  .complete-order .cart-line h3 { font-size:16px; }
}
@media (max-width:850px) {
  .mock-tools { gap:5px 12px; padding:6px 10px; }
  .demo-guide { flex:1; }
  .demo-guide b { font-size:12px; }
  .demo-guide span { font-size:12px; }
  .mock-controls { order:1; }
  .mock-controls a { min-height:32px; min-width:55px; }
  .demo-paths { order:2; flex-basis:100%; }
  .demo-paths button { flex:1; min-height:34px; font-size:12px; padding:4px 7px; }
}
@media (prefers-reduced-motion:reduce) { #panel[open], .payment-spinner { animation:none; } }
