/* Shop UI: option picker, slide-out cart, checkout + receipt. Colors follow the store theme via --shop-* tokens. */
:root { --shop-ink: #1b1b1b; --shop-bg: #fff; --shop-muted: #6b6b6b; --shop-line: #e3e0da; --shop-accent: #1f6f43; --shop-accent-ink: #fff; --shop-radius: 8px; }
.shop-picker { display: grid; gap: 16px; margin: 18px 0; max-width: 460px; }
.shop-opt { border: 0; margin: 0; padding: 0; }
.shop-opt legend { font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.shop-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-chips label { position: relative; }
.shop-chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.shop-chips span { display: inline-block; min-width: 44px; padding: 8px 12px; text-align: center; border: 1.5px solid var(--shop-line); border-radius: var(--shop-radius); font-size: .9rem; background: var(--shop-bg); color: var(--shop-ink); }
.shop-chips input:checked + span { border-color: var(--shop-ink); background: var(--shop-ink); color: var(--shop-bg); }
.shop-chips input:focus-visible + span { outline: 2px solid var(--shop-accent); outline-offset: 2px; }
.shop-chips .is-off span { opacity: .35; text-decoration: line-through; }
.shop-price { font-size: 1.35rem; font-weight: 700; margin: 0; }
.shop-buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.shop-qtyin { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; }
.shop-qtyin input { width: 64px; padding: 9px 8px; border: 1.5px solid var(--shop-line); border-radius: var(--shop-radius); font: inherit; }
.shop-btn { display: inline-block; padding: 12px 22px; border: 0; border-radius: var(--shop-radius); background: var(--shop-accent); color: var(--shop-accent-ink) !important; font: inherit; font-weight: 700; text-decoration: none !important; cursor: pointer; text-align: center; }
.shop-btn[disabled] { opacity: .45; cursor: not-allowed; }
.shop-btn--ghost { background: transparent; color: var(--shop-ink) !important; border: 1.5px solid var(--shop-ink); }
.shop-msg { min-height: 1.3em; margin: 0; font-size: .9rem; color: var(--shop-muted); }

.shop-locked { overflow: hidden; }
.shop-drawer { position: fixed; inset: 0; z-index: 9999; pointer-events: none; }
.shop-drawer[aria-hidden="false"] { pointer-events: auto; }
.shop-drawer__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.4); opacity: 0; transition: opacity .2s; }
.shop-drawer[aria-hidden="false"] .shop-drawer__scrim { opacity: 1; }
.shop-drawer__panel { position: absolute; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: var(--shop-bg); color: var(--shop-ink); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; box-shadow: -8px 0 30px rgba(0,0,0,.15); }
.shop-drawer[aria-hidden="false"] .shop-drawer__panel { transform: none; }
.shop-drawer__panel header { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--shop-line); }
.shop-drawer__panel h2 { margin: 0; font-size: 1.2rem; }
.shop-x { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: inherit; padding: 4px 8px; }
.shop-drawer__lines { flex: 1; overflow-y: auto; padding: 8px 20px; }
.shop-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--shop-line); align-items: start; }
.shop-line img, .shop-line__ph { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; background: #f2f0ec; }
.shop-line__info { display: grid; gap: 2px; font-size: .92rem; }
.shop-line__info span { color: var(--shop-muted); font-size: .85rem; }
.shop-qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.shop-qty button { width: 28px; height: 28px; border: 1px solid var(--shop-line); background: var(--shop-bg); border-radius: 6px; cursor: pointer; color: inherit; }
.shop-remove { width: auto !important; border: 0 !important; text-decoration: underline; font-size: .8rem; color: var(--shop-muted) !important; margin-left: 6px; }
.shop-drawer__foot { padding: 16px 20px 22px; border-top: 1px solid var(--shop-line); display: grid; gap: 8px; }
.shop-sub { display: flex; justify-content: space-between; margin: 0; font-size: 1.05rem; }
.shop-note { margin: 0; color: var(--shop-muted); font-size: .85rem; }
.shop-empty { color: var(--shop-muted); padding: 20px 0; }
.shop-cart-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.shop-cart-btn [data-cart-count] { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--shop-accent); color: var(--shop-accent-ink); font-size: .75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.shop-checkout { min-height: 480px; }
.shop-receipt { list-style: none; padding: 0; margin: 16px 0; border-top: 1px solid var(--shop-line); }
.shop-receipt li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--shop-line); }
@media (prefers-reduced-motion: reduce) { .shop-drawer__panel, .shop-drawer__scrim { transition: none; } }

/* the picker shows the live price; hide the theme's static price block on product pages */
.summary:has(.shop-product-buy) > .price, .entry-summary:has(.shop-product-buy) > p.price { display: none; }
.shop-own-page .entry-content { max-width: 760px; }
.shop-checkout { margin-top: 12px; }
.shop-steps { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.shop-step h2, .shop-pay h2 { font-size: 1.15rem; margin: 0 0 14px; }
.shop-addr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shop-addr label { display: grid; gap: 4px; font-size: .88rem; font-weight: 600; }
.shop-addr input, .shop-addr select { font: inherit; font-weight: 400; padding: 10px 11px; border: 1.5px solid var(--shop-line); border-radius: var(--shop-radius); background: var(--shop-bg); color: var(--shop-ink); width: 100%; }
.shop-addr input:disabled, .shop-addr select:disabled { background: #f6f4f0; color: var(--shop-muted); }
.shop-wide { grid-column: 1 / -1; }
.shop-summary { background: #f8f6f2; border-radius: 10px; padding: 18px 20px; }
.shop-summary .shop-receipt { margin: 0; border-top: 0; }
.shop-receipt small { color: var(--shop-muted); }
.shop-muted { color: var(--shop-muted); }
.shop-total { font-weight: 700; }
.shop-pay { margin-top: 32px; }
@media (max-width: 760px) { .shop-steps { grid-template-columns: 1fr; } .shop-addr { grid-template-columns: 1fr; } }
.shop-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 640px; margin-top: 16px; }
.shop-contact label { display: grid; gap: 4px; font-size: .88rem; font-weight: 600; }
.shop-contact input, .shop-contact select, .shop-contact textarea { font: inherit; font-weight: 400; padding: 10px 11px; border: 1.5px solid var(--shop-line); border-radius: var(--shop-radius); background: var(--shop-bg); color: var(--shop-ink); width: 100%; }
.shop-contact .shop-btn { justify-self: start; }
@media (max-width: 760px) { .shop-contact { grid-template-columns: 1fr; } }
.shop-status-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; max-width: 720px; }
.shop-status-form label { display: grid; gap: 4px; font-size: .88rem; font-weight: 600; }
.shop-status-form input { font: inherit; font-weight: 400; padding: 10px 11px; border: 1.5px solid var(--shop-line); border-radius: var(--shop-radius); width: 100%; }
.shop-status { max-width: 720px; margin-top: 8px; }
.shop-status h2 { margin: 0 0 4px; font-size: 1.3rem; } .shop-status h3 { margin: 24px 0 6px; font-size: 1rem; }
.shop-status-now { margin: 0 0 14px; }
.shop-steps-bar { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0; margin: 8px 0 4px; counter-reset: s; }
.shop-steps-bar li { position: relative; padding-top: 14px; font-size: .85rem; color: var(--shop-muted); border-top: 5px solid var(--shop-line); }
.shop-steps-bar li.is-done { color: var(--shop-ink); font-weight: 700; border-top-color: var(--shop-accent); }
.shop-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0 0 8px; padding: 0; list-style: none; font-size: .85rem; }
.shop-footer-links a { color: inherit; }
@media (max-width: 760px) { .shop-status-form { grid-template-columns: 1fr; } }
