/* Sacred Hive shop pages (shop, product, cart, checkout).
   Same vocabulary as the ticket pages: mono kickers, big uppercase headings,
   thin rules, square controls, no glass. Tokens come from site.css. */

.sh { padding: calc(var(--nav-h) + 32px) 0 96px; }
.sh-test { background: #f2a93b; color: #0a0a0c; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; padding: 10px var(--gutter); text-align: center; margin-top: var(--nav-h); }
.sh-test + .sh { padding-top: 40px; }

.sh-kicker { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.sh-kicker a { color: var(--accent); }
.sh-kicker a:hover { color: var(--fg); }
.sh h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; font-weight: 800; font-stretch: 112%; color: var(--fg); margin: 0 0 14px; text-transform: uppercase; }
.sh-meta { color: var(--fg-2); font-size: 1.05rem; margin: 0; max-width: 60ch; }
.sh-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 8px; }
.sh-head .btn-line { min-height: 44px; }

.sh-cat { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-2); margin: 44px 0 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-weight: 500; }
.sh-state { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.sh-state.is-accent { color: var(--accent); }
.sh-state.is-warn { color: #f2a93b; }
.sh-state.is-bad { color: #ff8a8e; }
.sh-badge { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 3px 8px; background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.sh-badge.is-sale { background: #10b981; }
.sh-badge.is-plain { background: var(--bg-3); color: var(--fg-2); }
.sh-price s { color: var(--fg-3); font-size: .7em; font-weight: 500; margin-left: 8px; text-decoration-thickness: 1px; }

/* Listing grid */
.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 0; }
.sh-card { display: flex; flex-direction: column; background: var(--bg); padding: 22px; color: var(--fg); transition: background .2s var(--ease); min-width: 0; }
.sh-card:hover { background: var(--bg-2); color: var(--fg); }
.sh-card-img { aspect-ratio: 1; background: var(--bg-2); display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 18px; }
.sh-card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s var(--ease); }
.sh-card:hover .sh-card-img img { transform: scale(1.04); }
.sh-card-img .sh-ph { color: var(--fg-3); font-size: 2rem; }
.sh-card h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 6px; letter-spacing: -0.01em; line-height: 1.2; }
.sh-card .sh-price { font-size: 1.25rem; font-weight: 800; margin: 0 0 6px; }
.sh-card .sh-state { margin-top: auto; padding-top: 6px; }
.sh-empty { border: 1px solid var(--line); padding: 48px 24px; text-align: center; color: var(--fg-2); margin-top: 32px; }
.sh-empty h2 { font-size: 1.4rem; text-transform: uppercase; font-stretch: 112%; margin: 0 0 8px; color: var(--fg); }
.sh-empty p { margin: 0; }
.sh-cart-fab { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; background: var(--fg); color: var(--accent-ink); font-family: var(--font-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.sh-cart-fab:hover { background: var(--accent); color: var(--accent-ink); }

/* Product page */
.sh-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.sh-product-img { background: var(--bg-2); border: 1px solid var(--line); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; position: sticky; top: calc(var(--nav-h) + 24px); }
.sh-product-img img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.sh-product-img .sh-ph { color: var(--fg-3); font-size: 3rem; }
.sh-product .sh-price { font-size: 2rem; font-weight: 800; margin: 18px 0 4px; }
.sh-product .sh-price s { font-size: 1.1rem; }
.sh-sale-ends { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #10b981; margin: 0 0 18px; }
.sh-desc { color: var(--fg-2); line-height: 1.65; margin: 18px 0 0; max-width: 56ch; }
.sh-notes { margin: 22px 0 0; display: grid; gap: 10px; }
.sh-note { border: 1px solid var(--line); padding: 14px 16px; color: var(--fg-2); font-size: .95rem; line-height: 1.5; }
.sh-note strong { color: var(--fg); font-weight: 600; }
.sh-label { display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); margin: 32px 0 10px; }
.sh-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size-option { min-width: 64px; height: 50px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); color: var(--fg); font-weight: 600; cursor: pointer; user-select: none; transition: border-color .2s var(--ease), background .2s var(--ease); font-size: .95rem; line-height: 1.1; text-align: center; }
.size-option:hover { border-color: var(--accent); }
.size-option.selected { background: var(--fg); color: var(--accent-ink); border-color: var(--fg); }
.size-option.out-of-stock { color: var(--fg-3); border-color: var(--line); cursor: not-allowed; text-decoration: line-through; }
.size-option small { display: none; }
.sh-qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); }
.sh-qty button { width: 46px; height: 46px; background: transparent; border: 0; color: var(--fg); font-size: 1.2rem; cursor: pointer; }
.sh-qty button:hover { color: var(--accent); }
.sh-qty input { width: 48px; height: 46px; text-align: center; background: transparent; border: 0; color: var(--fg); font-weight: 700; font-size: 1.05rem; -moz-appearance: textfield; }
.sh-qty input::-webkit-inner-spin-button, .sh-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.sh-cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.sh-cta .btn-solid { min-width: 220px; min-height: 52px; }
.sh-cta .btn-solid[disabled] { opacity: .4; pointer-events: none; }
.sh-back { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }
.sh-back:hover { color: var(--accent); }
.alert-custom { display: none; border: 1px solid var(--line-2); padding: 12px 16px; margin-bottom: 18px; font-size: .95rem; }
.alert-custom.alert-danger { border-color: #f2555a; color: #ffb3b5; background: transparent; }
.alert-custom.alert-success { border-color: #10b981; color: #9ff0cf; background: transparent; }

/* Cart + checkout layout */
.sh-two { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; margin-top: 36px; }
.sh-side { position: sticky; top: calc(var(--nav-h) + 24px); }
.sh-box { border: 1px solid var(--line); background: var(--bg-2); padding: 22px; }
.sh-box + .sh-box { margin-top: 16px; }
.sh-box h2 { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-2); margin: 0 0 14px; font-weight: 500; }
.sh-line { display: flex; justify-content: space-between; gap: 12px; color: var(--fg-2); font-size: .95rem; padding: 4px 0; }
.sh-line.is-good { color: #10b981; }
.sh-line.total { color: var(--fg); font-weight: 800; font-size: 1.2rem; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; }
.sh-box .btn-solid { width: 100%; margin-top: 18px; min-height: 52px; }
.sh-box .btn-solid[disabled] { opacity: .4; pointer-events: none; }
.sh-fine { color: var(--fg-3); font-size: .82rem; margin: 12px 0 0; line-height: 1.5; }
.sh-fine a { color: var(--fg-2); text-decoration: underline; }
.sh-err { border: 1px solid #f2555a; color: #ffb3b5; padding: 14px 16px; margin: 0 0 24px; }
.sh-info { border: 1px solid var(--line-2); color: var(--fg-2); padding: 14px 16px; margin: 16px 0 0; font-size: .9rem; line-height: 1.5; }

/* Cart rows */
.sh-rows { border-top: 1px solid var(--line); }
.cart-item { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-item .item-image, .cart-item .item-image-placeholder { width: 88px; height: 88px; background: var(--bg-2); object-fit: contain; display: flex; align-items: center; justify-content: center; color: var(--fg-3); }
.cart-item .item-name { font-weight: 700; font-size: 1.05rem; color: var(--fg); }
.cart-item .item-size { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); margin-top: 4px; }
.cart-item .item-preorder { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-top: 4px; }
.cart-item .item-price { font-weight: 800; margin-top: 8px; font-size: 1.05rem; }
.cart-item .item-price .price-was { color: var(--fg-3); text-decoration: line-through; font-weight: 500; font-size: .85em; margin-right: 8px; }
.cart-item .item-quantity { margin-top: 12px; }
.cart-item .item-end { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.cart-item .remove-btn { background: transparent; border: 0; color: var(--fg-3); cursor: pointer; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; padding: 0; }
.cart-item .remove-btn:hover { color: #ff8a8e; }
.sh-continue { display: inline-block; margin-top: 22px; }

/* Coupon + shipping choices */
.sh-code { display: flex; gap: 8px; }
.sh-code input { flex: 1; min-width: 0; height: 46px; background: var(--bg); border: 1px solid var(--line-2); color: var(--fg); padding: 0 14px; text-transform: uppercase; font-size: .95rem; border-radius: 0; }
.sh-code input:focus { outline: none; border-color: var(--accent); }
.sh-code .btn-line { min-height: 46px; padding: 0 16px; }
.sh-applied { display: flex; justify-content: space-between; align-items: center; border: 1px solid #10b981; color: #9ff0cf; padding: 10px 14px; font-size: .9rem; }
.sh-applied button { background: transparent; border: 0; color: inherit; cursor: pointer; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.sh-choice { display: block; border: 1px solid var(--line-2); padding: 14px 16px; margin-top: 8px; cursor: pointer; color: var(--fg); transition: border-color .2s var(--ease); }
.sh-choice:hover { border-color: var(--accent); }
.sh-choice.selected { border-color: var(--fg); background: var(--bg); }
.sh-choice-row { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.sh-choice small { display: block; color: var(--fg-3); font-size: .82rem; margin-top: 4px; font-weight: 400; }

/* Embedded payment step */
.sh-pay { margin-top: 36px; }
.sh-pay-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.sh-pay-head h2 { font-size: 1.4rem; font-weight: 800; color: var(--fg); margin: 0; text-transform: uppercase; font-stretch: 112%; }
.sh-pay-head .btn-line { min-height: 40px; }
#shStripe { margin-top: 18px; background: #fff; border-radius: 6px; overflow: hidden; min-height: 420px; }

/* Checkout form */
.sh-form { display: grid; gap: 16px; }
.sh-form label.sh-label { margin: 0 0 6px; }
.sh-form input[type=text], .sh-form input[type=email], .sh-form input[type=tel], .sh-form textarea { width: 100%; height: 50px; background: var(--bg); border: 1px solid var(--line-2); color: var(--fg); padding: 0 14px; font-size: 1rem; border-radius: 0; font-family: inherit; }
.sh-form textarea { height: auto; padding: 12px 14px; min-height: 110px; resize: vertical; }
.sh-form input:focus, .sh-form textarea:focus { outline: none; border-color: var(--accent); }
.sh-form input::placeholder, .sh-form textarea::placeholder { color: var(--fg-3); }
.sh-form-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.sh-section { margin-top: 36px; }
.sh-section:first-child { margin-top: 0; }
.sh-section h2 { font-size: 1.3rem; font-weight: 800; text-transform: uppercase; font-stretch: 112%; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sh-summary-item { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sh-summary-item strong { display: block; font-weight: 600; }
.sh-summary-item small { color: var(--fg-3); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.sh-summary-item .is-accent { color: var(--accent); }
.sh-secure { margin-top: 14px; color: var(--fg-3); font-size: .82rem; text-align: center; line-height: 1.5; }

@media (max-width: 900px) {
    .sh-product { grid-template-columns: 1fr; gap: 28px; }
    .sh-product-img { position: static; }
    .sh-two { grid-template-columns: 1fr; gap: 28px; }
    .sh-side { position: static; }
    .sh-form-row { grid-template-columns: 1fr; }
    .cart-item { grid-template-columns: 72px minmax(0, 1fr); }
    .cart-item .item-image, .cart-item .item-image-placeholder { width: 72px; height: 72px; }
    .cart-item .item-end { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; }
}
