/* ═══ SAAiFA SHOP ═══════════════════════════════════════════ */
.shop-hero { padding-bottom: 3rem; }
.shop-hero p { max-width: 640px; }
.shop-page--top { padding-top: calc(var(--nav-height) + 3rem); }
.shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.shop-head h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin-top: 0.4rem; }
.shop-empty { text-align: center; max-width: 560px; margin: 0 auto; padding: 4rem 0; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.shop-empty p { color: var(--cream-muted); }
.section.shop-page:first-child .shop-empty { padding-top: calc(var(--nav-height) + 4rem); }

/* Filmmaker grid */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.shop-card { display: flex; flex-direction: column; background: var(--black-card); border: 1px solid rgba(201,168,76,0.12); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: border-color var(--transition), transform var(--transition); }
.shop-card:hover { border-color: rgba(201,168,76,0.5); transform: translateY(-2px); }
.shop-card__img { aspect-ratio: 2/3; background: #111; overflow: hidden; }
.shop-card__img img { width: 100%; height: 100%; object-fit: cover; }
.shop-card__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.25rem; }
.shop-card__body strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--cream); font-weight: 600; }
.shop-card__body span { font-size: 0.8rem; color: var(--cream-muted); }
.shop-card__from { color: var(--gold) !important; font-size: 0.78rem !important; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.35rem; }

.shop-promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid rgba(201,168,76,0.15); }
.shop-promise div { display: flex; flex-direction: column; gap: 0.25rem; }
.shop-promise strong { color: var(--gold); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.shop-promise span { color: var(--cream-muted); font-size: 0.88rem; }

/* Filmmaker store header */
.shop-hero--fm { padding-bottom: 2.5rem; }
.shop-fm-head { display: flex; align-items: center; gap: 1.5rem; }
.shop-fm-head h1 { margin: 0.3rem 0; }
.shop-fm-head p { margin: 0; color: var(--cream-muted); }
.shop-fm-head .eyebrow a { color: inherit; }
.shop-fm-avatar { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 1px solid rgba(201,168,76,0.4); background: rgba(201,168,76,0.12); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.8rem; color: var(--gold); }
.shop-fm-avatar img { width: 100%; height: 100%; object-fit: cover; }

.shop-added { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.2rem; margin-bottom: 2rem; border: 1px solid rgba(39,174,96,0.4); background: rgba(39,174,96,0.08); border-radius: var(--radius); color: var(--cream); flex-wrap: wrap; }

/* Product blocks */
.shop-product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3rem; align-items: start; padding: 2rem; background: var(--black-card); border: 1px solid rgba(201,168,76,0.12); border-radius: var(--radius-lg); margin-bottom: 2rem; scroll-margin-top: calc(var(--nav-height) + 1rem); }
.shop-product__img { display: block; background: #ECE7DC; border-radius: var(--radius); overflow: hidden; }
.shop-product__img img { width: 100%; height: 100%; object-fit: contain; }
.shop-product__img--print { background: #111; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.shop-product__form { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.shop-product__form h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin: -0.4rem 0 0; }
.shop-product__lead { color: var(--cream-muted); margin: 0; }
.shop-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.shop-product--small { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 0; }
.shop-product--small .shop-product__img { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; }

.shop-opt { border: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.shop-opt[hidden] { display: none; }
.shop-opt legend { width: 100%; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-muted); margin-bottom: 0.5rem; padding: 0; }
.shop-sizes { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.shop-chip { position: relative; cursor: pointer; }
.shop-chip input { position: absolute; opacity: 0; pointer-events: none; }
.shop-chip span { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; padding: 0.55rem 0.9rem; border: 1px solid rgba(191,184,158,0.3); border-radius: var(--radius-sm); font-size: 0.85rem; color: var(--cream); transition: all var(--transition); }
.shop-chip span small { font-size: 0.72rem; color: var(--cream-muted); }
.shop-chip:hover span { border-color: rgba(201,168,76,0.6); }
.shop-chip input:checked + span { border-color: var(--gold); background: rgba(201,168,76,0.12); color: var(--gold); }
.shop-chip input:checked + span small { color: var(--gold-light); }
.shop-chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.shop-chip.is-disabled { cursor: not-allowed; }
.shop-chip.is-disabled span { opacity: 0.35; }

.shop-buy { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1rem; border-top: 1px solid rgba(201,168,76,0.12); }
.shop-price { font-family: var(--font-display); font-size: 2rem; color: var(--gold); font-weight: 600; min-width: 7ch; }
.shop-qty { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream-muted); }
.shop-qty input { width: 64px; padding: 0.55rem; background: var(--black); border: 1px solid rgba(191,184,158,0.3); border-radius: var(--radius-sm); color: var(--cream); font-size: 0.95rem; text-align: center; }
.shop-buy .btn { margin-left: auto; }
.shop-note { font-size: 0.8rem; color: var(--cream-muted); margin: 0; }

/* Cart */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2.5rem; align-items: start; }
.cart-lines { display: flex; flex-direction: column; gap: 1rem; }
.cart-line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto auto; gap: 1.25rem; align-items: center; padding: 1rem; background: var(--black-card); border: 1px solid rgba(201,168,76,0.12); border-radius: var(--radius); }
.cart-line__img { width: 88px; aspect-ratio: 2/3; background: #ECE7DC; border-radius: var(--radius-sm); overflow: hidden; display: flex; align-items: center; }
.cart-line__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__info { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.cart-line__info strong { color: var(--cream); font-size: 1rem; }
.cart-line__info span { color: var(--cream-muted); font-size: 0.82rem; line-height: 1.45; }
.cart-line__by a { color: var(--gold); }
.cart-line__qty { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.cart-line__price { text-align: right; display: flex; flex-direction: column; min-width: 90px; }
.cart-line__price strong { color: var(--gold); font-size: 1.05rem; }
.cart-line__price span { color: var(--cream-muted); font-size: 0.72rem; }
.btn--text { background: none; border: none; color: var(--cream-muted); cursor: pointer; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font-body); padding: 0.3rem; }
.btn--text:hover { color: #E74C3C; }

.cart-summary { position: sticky; top: calc(var(--nav-height) + 1.5rem); background: var(--black-card); border: 1px solid rgba(201,168,76,0.2); border-radius: var(--radius-lg); padding: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; }
.cart-summary h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.cart-sum-row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.92rem; color: var(--cream-muted); }
.cart-sum-row span:last-child { color: var(--cream); white-space: nowrap; }
.cart-sum-row--total { padding-top: 0.9rem; margin-top: 0.25rem; border-top: 1px solid rgba(201,168,76,0.2); font-size: 1.05rem; color: var(--cream); font-weight: 600; }
.cart-sum-row--total span:last-child { color: var(--gold); font-family: var(--font-display); font-size: 1.6rem; }
.cart-sum-note { font-size: 0.78rem; color: var(--cream-muted); margin: 0; line-height: 1.5; }
.cart-checkout, .checkout-pay { width: 100%; justify-content: center; margin-top: 0.5rem; }
.cart-secure { display: flex; align-items: center; gap: 0.4rem; justify-content: center; }
.shop-alert { padding: 0.9rem 1.2rem; margin-bottom: 1.5rem; border: 1px solid rgba(230,160,60,0.4); background: rgba(230,160,60,0.08); border-radius: var(--radius); color: var(--cream); }
.shop-alert--error { border-color: rgba(192,57,43,0.5); background: rgba(192,57,43,0.1); }

/* Checkout */
.checkout-form { display: flex; flex-direction: column; gap: 0.25rem; background: var(--black-card); border: 1px solid rgba(201,168,76,0.12); border-radius: var(--radius-lg); padding: 2rem; }
.checkout-form h2 { font-size: 1.5rem; margin: 0.5rem 0 1rem; }
.checkout-form h2:not(:first-of-type) { margin-top: 1.5rem; }
.checkout-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkout-form .opt { text-transform: none; letter-spacing: 0; color: var(--cream-muted); }
.checkout-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.checkout-item img { width: 48px; height: 64px; object-fit: cover; border-radius: 3px; background: #ECE7DC; }
.checkout-item div { display: flex; flex-direction: column; min-width: 0; }
.checkout-item strong { font-size: 0.88rem; color: var(--cream); font-weight: 500; }
.checkout-item span { font-size: 0.74rem; color: var(--cream-muted); line-height: 1.4; }
.checkout-item__price { font-size: 0.88rem; color: var(--cream) !important; white-space: nowrap; }

/* Order complete */
.shop-done { max-width: 640px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.shop-done h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.shop-done p { color: var(--cream-muted); }
.shop-done p strong { color: var(--cream); }
.shop-done__icon { color: var(--gold); }
.shop-receipt { width: 100%; text-align: left; background: var(--black-card); border: 1px solid rgba(201,168,76,0.15); border-radius: var(--radius); padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; margin: 0.5rem 0; }
.shop-done__thanks { font-size: 0.85rem; }
.shop-done__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin-top: 0.5rem; }

/* Nav cart */
.nav-cart { display: inline-flex !important; align-items: center; gap: 0.35rem; }
.nav-cart__count { background: var(--gold); color: var(--black); font-size: 0.65rem; font-weight: 700; border-radius: 10px; padding: 0.05rem 0.45rem; letter-spacing: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 1000px) {
    .shop-product { grid-template-columns: 1fr; gap: 2rem; padding: 1.5rem; }
    .shop-product__img--print { max-width: 440px; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
}
@media (max-width: 700px) {
    .shop-pair { grid-template-columns: 1fr; }
    .shop-promise { grid-template-columns: 1fr; }
    .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
    .shop-card__body strong { font-size: 1.1rem; }
    .cart-line { grid-template-columns: 64px minmax(0, 1fr); }
    .cart-line__img { width: 64px; }
    .cart-line__qty { flex-direction: row; grid-column: 2; justify-content: flex-start; }
    .cart-line__price { grid-column: 2; text-align: left; }
    .checkout-form { padding: 1.25rem; }
    .checkout-form .form-row { grid-template-columns: 1fr; gap: 0; }
    .shop-buy .btn { margin-left: 0; width: 100%; justify-content: center; }
    .shop-fm-avatar { width: 64px; height: 64px; font-size: 1.3rem; }
}
.shop-hero + .shop-page { padding-top: 2.5rem; }
