/* Public-facing shop styles */
:root {
    --shop-bg: #f6f5f1;
    --shop-ink: #1f1f23;
    --shop-muted: #6b6b72;
    --shop-gold: #d0a764;
    --shop-gold-dark: #b18545;
    --shop-card: #ffffff;
    --shop-border: #e5e7eb;
}

body { background: #fff; }
.main-content { background: var(--shop-bg); }

.shop-announcement { background: var(--shop-ink); color: #fff; text-align: center; padding: 10px 16px; font-size: 0.92rem; letter-spacing: 0.02em; }
.shop-hero { background: linear-gradient(135deg, #1f1f23 0%, #3a342a 60%, #4a3b25 100%); background-size: cover; background-position: center; color: #fff; padding: 80px 16px; }
.shop-hero .shop-hero-inner { text-align: center; max-width: 800px; margin: 0 auto; }
.shop-hero-title { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 0 0 12px; font-weight: 700; letter-spacing: -0.01em; }
.shop-hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.88); margin: 0 0 26px; }
.shop-hero-cta { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.btn { appearance: none; border: 0; cursor: pointer; font-weight: 600; padding: 12px 22px; border-radius: 12px; display: inline-flex; align-items: center; gap: 8px; transition: transform .12s ease, box-shadow .15s ease, background .15s ease; text-decoration: none; font-size: 1rem; }
.btn:focus-visible { outline: 3px solid #d0a76466; outline-offset: 2px; }
.btn-primary { background: var(--shop-gold); color: #1f1f23; box-shadow: 0 12px 28px rgba(208,167,100,0.32); }
.btn-primary:hover { background: var(--shop-gold-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.08); }
.btn-ghost { background: transparent; color: var(--shop-ink); border: 1px solid var(--shop-border); }
.btn-ghost:hover { background: #f3f4f6; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn:disabled, .btn[aria-disabled='true'] { opacity: 0.55; cursor: not-allowed; transform: none; }

.shop-section { padding: 60px 0; }
.shop-section-header { text-align: center; margin-bottom: 36px; }
.shop-section-header h2 { font-size: 2rem; margin: 0 0 8px; color: var(--shop-ink); }
.shop-section-header p { color: var(--shop-muted); margin: 0; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.product-card { display: block; background: var(--shop-card); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--shop-ink); box-shadow: 0 4px 14px rgba(15,15,18,0.05); transition: transform .15s ease, box-shadow .15s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(15,15,18,0.1); }
.product-card-image { aspect-ratio: 1; background: #f3f4f6; display: flex; align-items: center; justify-content: center; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; }
.product-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #f3f4f6, #e5e7eb); }
.product-card-body { padding: 16px; }
.product-card-body h3 { font-size: 1.05rem; margin: 0 0 6px; }
.product-card-price { color: var(--shop-muted); margin: 0; font-weight: 600; }

.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.category-card { background: var(--shop-card); border-radius: 16px; padding: 24px; text-decoration: none; color: var(--shop-ink); border: 1px solid var(--shop-border); display: flex; flex-direction: column; gap: 6px; transition: border-color .15s ease, transform .12s ease; }
.category-card:hover { border-color: var(--shop-gold); transform: translateY(-2px); }
.category-name { font-weight: 700; font-size: 1.05rem; }
.category-count { color: var(--shop-muted); font-size: 0.92rem; }

.shop-empty { text-align: center; padding: 60px 16px; color: var(--shop-muted); }
.shop-empty i { font-size: 2.4rem; margin-bottom: 10px; color: var(--shop-gold); }

.shop-error { background: #fee2e2; color: #7f1d1d; padding: 12px 16px; border-radius: 12px; margin: 24px 0; }

.shop-cta-card { background: linear-gradient(135deg, #1f1f23, #2e2a23); color: #fff; border-radius: 24px; padding: 40px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: center; }
.shop-cta-card h2 { margin: 0 0 12px; font-size: 1.8rem; }
.shop-cta-card p { color: rgba(255,255,255,0.84); margin: 0 0 22px; }
.shop-cta-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: rgba(255,255,255,0.9); }
.shop-cta-side li i { color: var(--shop-gold); margin-right: 8px; }
@media (max-width: 760px) { .shop-cta-card { grid-template-columns: 1fr; padding: 28px; } }

.shop-page-header { padding: 36px 0 20px; background: #fff; border-bottom: 1px solid var(--shop-border); }
.shop-page-header h1 { margin: 10px 0 0; font-size: 2rem; }
.shop-breadcrumbs { display: flex; gap: 6px; align-items: center; color: var(--shop-muted); font-size: 0.92rem; }
.shop-breadcrumbs a { color: var(--shop-muted); text-decoration: none; }
.shop-breadcrumbs a:hover { color: var(--shop-ink); }

.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; } }
.product-gallery-main { background: #fff; border-radius: 18px; overflow: hidden; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(15,15,18,0.05); }
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.product-thumb { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #fff; cursor: pointer; padding: 0; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb.is-active { border-color: var(--shop-gold); }
.product-info h1 { margin: 0 0 12px; font-size: 1.9rem; }
.product-price { font-size: 1.6rem; font-weight: 700; color: var(--shop-ink); margin: 0 0 14px; }
.product-description { color: var(--shop-muted); margin: 0 0 22px; line-height: 1.7; }
.product-options { margin: 0 0 18px; padding: 0; border: 0; }
.product-options legend { font-weight: 600; padding: 0 0 8px; font-size: 0.92rem; color: var(--shop-ink); }
.option-row { display: flex; flex-wrap: wrap; gap: 10px; }
.option-chip { cursor: pointer; }
.option-chip input { position: absolute; opacity: 0; }
.option-chip span { display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border: 1px solid var(--shop-border); border-radius: 999px; background: #fff; font-weight: 600; transition: border-color .12s ease, background .12s ease; }
.option-chip input:checked + span { border-color: var(--shop-ink); background: var(--shop-ink); color: #fff; }
.option-chip small { font-size: 0.78rem; color: inherit; opacity: 0.7; }
.option-swatch { cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.option-swatch input { position: absolute; opacity: 0; }
.option-swatch span { display: block; width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent; box-shadow: 0 0 0 1px var(--shop-border); transition: border-color .12s ease; }
.option-swatch input:checked + span { border-color: var(--shop-gold); box-shadow: 0 0 0 1px var(--shop-gold-dark); }
.option-swatch small { font-size: 0.78rem; color: var(--shop-muted); }
.quantity-input { display: inline-flex; align-items: center; gap: 4px; }
.quantity-input button { width: 36px; height: 36px; border: 1px solid var(--shop-border); background: #fff; border-radius: 10px; font-size: 1.2rem; cursor: pointer; }
.quantity-input button:hover { background: #f3f4f6; }
.quantity-input input { width: 60px; height: 36px; text-align: center; border: 1px solid var(--shop-border); border-radius: 10px; font-weight: 600; }
.product-meta { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; color: var(--shop-muted); font-size: 0.92rem; }
.product-meta i { color: var(--shop-gold); margin-right: 8px; }

.form-error { background: #fee2e2; color: #7f1d1d; padding: 10px 14px; border-radius: 10px; margin: 12px 0 0; }
.muted { color: var(--shop-muted); }

.cart-button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); color: #fff; text-decoration: none; font-weight: 600; }
.cart-button:hover { background: rgba(255,255,255,0.12); }
.cart-count { background: var(--shop-gold); color: #1f1f23; border-radius: 999px; padding: 2px 8px; font-size: 0.78rem; font-weight: 700; }
.cart-count[data-count='0'] { display: none; }

.cart-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: start; }
.cart-main { background: #fff; border-radius: 18px; padding: 22px; box-shadow: 0 4px 14px rgba(15,15,18,0.05); }
.cart-sidebar { position: sticky; top: 20px; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } .cart-sidebar { position: static; } }

.cart-line { display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--shop-border); align-items: center; }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; background: #f3f4f6; }
.cart-line .line-meta { color: var(--shop-muted); font-size: 0.92rem; }
.cart-line .line-actions { display: flex; gap: 8px; align-items: center; }
.cart-summary { background: #fff; border-radius: 18px; padding: 22px; box-shadow: 0 4px 14px rgba(15,15,18,0.05); }
.cart-summary h2 { margin: 0 0 14px; font-size: 1.15rem; }
.totals-table { width: 100%; border-collapse: collapse; }
.totals-table td { padding: 6px 0; font-size: 0.95rem; }
.totals-table td:last-child { text-align: right; }
.totals-table .grand td { border-top: 1px solid var(--shop-border); padding-top: 10px; font-weight: 700; font-size: 1.05rem; }
.promo-input { display: flex; gap: 8px; margin: 14px 0 0; }
.promo-input input { flex: 1; border: 1px solid var(--shop-border); border-radius: 10px; padding: 10px 12px; text-transform: uppercase; }

.checkout-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.checkout-main { background: #fff; border-radius: 18px; padding: 24px; box-shadow: 0 4px 14px rgba(15,15,18,0.05); }
.checkout-sidebar { position: sticky; top: 20px; }
@media (max-width: 880px) { .checkout-layout { grid-template-columns: 1fr; } .checkout-sidebar { position: static; } }

.checkout-steps { list-style: none; display: flex; gap: 14px; padding: 0; margin: 0 0 22px; flex-wrap: wrap; }
.checkout-steps li { display: flex; align-items: center; gap: 10px; color: var(--shop-muted); font-size: 0.92rem; }
.checkout-steps li span { width: 28px; height: 28px; border-radius: 50%; background: #f1f5f9; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.checkout-steps li.active { color: var(--shop-ink); }
.checkout-steps li.active span { background: var(--shop-ink); color: #fff; }
.checkout-steps li.done span { background: var(--shop-gold); color: #1f1f23; }

.checkout-step h2 { margin: 0 0 14px; font-size: 1.15rem; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 12px; }
.checkout-main label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; color: #374151; }
.checkout-main input, .checkout-main select, .checkout-main textarea { border: 1px solid var(--shop-border); border-radius: 10px; padding: 10px 12px; font-size: 0.95rem; background: #fff; }
.checkout-main input:focus { outline: 2px solid #d0a76466; border-color: var(--shop-gold); }
.step-actions { display: flex; gap: 12px; justify-content: space-between; margin-top: 18px; }
.fulfillment-choices { display: grid; gap: 12px; margin-bottom: 16px; }
.fulfillment-choice { border: 1px solid var(--shop-border); border-radius: 14px; padding: 14px; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; }
.fulfillment-choice input { margin-top: 4px; }
.fulfillment-choice.is-active { border-color: var(--shop-gold); background: #fff8eb; }
.rates-list { display: grid; gap: 10px; margin-top: 16px; }
.rate-option { border: 1px solid var(--shop-border); border-radius: 12px; padding: 12px; display: flex; gap: 10px; align-items: center; cursor: pointer; }
.rate-option.is-active { border-color: var(--shop-gold); background: #fff8eb; }
.rate-option.is-disabled { opacity: 0.5; cursor: not-allowed; }
.payment-element { background: #fff; padding: 16px; border-radius: 12px; border: 1px solid var(--shop-border); margin-top: 10px; }

.confirmation-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.confirmation-main, .confirmation-sidebar { display: grid; gap: 16px; }
.confirmation-sidebar { position: sticky; top: 20px; }
@media (max-width: 860px) { .confirmation-layout { grid-template-columns: 1fr; } .confirmation-sidebar { position: static; } }
.info-card { background: #fff; border-radius: 16px; padding: 22px; box-shadow: 0 4px 14px rgba(15,15,18,0.05); }
.info-card h2 { margin: 0 0 12px; font-size: 1.1rem; }
.info-card-warning { background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; }
.order-line-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.order-line-list li { padding-bottom: 12px; border-bottom: 1px solid var(--shop-border); }
.order-line-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.order-line-list small { color: var(--shop-muted); display: block; font-size: 0.85rem; margin-top: 2px; }
.order-line-list .line-price { float: right; font-weight: 700; }
.player-list { list-style: none; padding: 8px 0 0; margin: 0; color: var(--shop-muted); font-size: 0.85rem; display: grid; gap: 4px; }

/* Jersey configurator */
.configurator-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.configurator-card { background: #fff; border-radius: 18px; padding: 22px; box-shadow: 0 4px 14px rgba(15,15,18,0.05); }
.configurator-card h2 { margin: 0 0 12px; font-size: 1.1rem; }
.configurator-sidebar { position: sticky; top: 20px; }
@media (max-width: 880px) { .configurator-layout { grid-template-columns: 1fr; } .configurator-sidebar { position: static; } }
.style-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.style-card { border: 2px solid var(--shop-border); border-radius: 14px; padding: 16px; cursor: pointer; display: grid; gap: 8px; background: #fff; }
.style-card.is-active { border-color: var(--shop-gold); background: #fff8eb; }
.style-card h3 { margin: 0; font-size: 1.05rem; }
.style-card .price { color: var(--shop-muted); font-size: 0.92rem; }
.color-row { display: flex; gap: 10px; flex-wrap: wrap; }
.color-pick { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.color-pick input { position: absolute; opacity: 0; }
.color-pick .swatch { display: block; width: 44px; height: 44px; border-radius: 50%; border: 2px solid transparent; box-shadow: 0 0 0 1px var(--shop-border); }
.color-pick input:checked + .swatch { border-color: var(--shop-gold); box-shadow: 0 0 0 1px var(--shop-gold-dark); }
.addon-row { display: flex; flex-direction: column; gap: 10px; }
.addon-pick { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--shop-border); border-radius: 12px; }
.addon-pick input { margin-top: 4px; }
.addon-pick.is-active { border-color: var(--shop-gold); background: #fff8eb; }
.roster-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.roster-table th { text-align: left; font-size: 0.78rem; text-transform: uppercase; color: var(--shop-muted); padding: 8px 6px; }
.roster-table td { padding: 6px; }
.roster-table input, .roster-table select { width: 100%; border: 1px solid var(--shop-border); border-radius: 8px; padding: 8px; font-size: 0.95rem; }
.logo-uploader { border: 2px dashed var(--shop-border); border-radius: 12px; padding: 16px; text-align: center; cursor: pointer; color: var(--shop-muted); }
.logo-uploader.has-logo { padding: 10px; }
.logo-uploader img { max-width: 160px; max-height: 160px; border-radius: 10px; }

.merch-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.merch-card { border: 1px solid var(--shop-border); border-radius: 16px; padding: 16px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.merch-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #f3f4f6; }
.merch-card .merch-row { display: flex; gap: 6px; align-items: center; }
.merch-card select, .merch-card input { border: 1px solid var(--shop-border); border-radius: 8px; padding: 6px; font-size: 0.92rem; flex: 1; }

.muted-small { font-size: 0.85rem; color: var(--shop-muted); }
