/* Online shop. Uses the site palette from style.css (:root variables). */
.shop-preview-banner { background: #fff4d6; color: #6b4e00; text-align: center; padding: .6rem 1rem; font-size: .9rem; }
.shop-section { padding: 2rem 0 3rem; }

.shop-categories { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.shop-categories a { padding: .45rem .9rem; border: 1px solid var(--border-color); border-radius: 999px; color: var(--text-color); text-decoration: none; font-size: .95rem; }
.shop-categories a.active, .shop-categories a:hover { background: var(--primary-color); border-color: var(--primary-color); color: var(--white); }

.shop-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.shop-toolbar input[type=search] { flex: 1 1 240px; padding: .6rem .8rem; border: 1px solid var(--border-color); border-radius: 6px; font-size: 1rem; }
.shop-toolbar select { padding: .6rem; border: 1px solid var(--border-color); border-radius: 6px; font-size: 1rem; background: var(--white); }
.shop-check { display: flex; align-items: center; gap: .35rem; font-size: .95rem; }

.shop-models { display: flex; flex-wrap: wrap; gap: .4rem .75rem; align-items: center; margin: 0 0 1.5rem; font-size: .9rem; color: var(--text-light); }
.shop-models a { color: var(--primary-color); }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }
.shop-card { display: flex; flex-direction: column; background: var(--white); border-radius: 10px; box-shadow: var(--shadow); color: var(--text-color); text-decoration: none; overflow: hidden; transition: var(--transition); }
.shop-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.shop-card.is-sold-out { opacity: .6; }
.shop-card-image { position: relative; aspect-ratio: 1 / 1; background: var(--bg-light); }
.shop-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-card-noimage { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 200px; color: var(--text-light); background: var(--bg-light); }
.shop-card-body { padding: .8rem 1rem 1rem; }
.shop-card-body h3 { font-size: 1rem; line-height: 1.35; margin: 0 0 .5rem; }
.shop-card-meta { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.shop-price { font-weight: 700; color: var(--primary-dark); }
.shop-price-lg { font-size: 1.8rem; margin: .25rem 0 .5rem; }
.shop-badge { position: absolute; left: .5rem; top: .5rem; background: var(--accent-color); color: var(--white); font-size: .75rem; padding: .2rem .5rem; border-radius: 4px; }
.shop-badge-muted { background: #555; }
.shop-tag { font-size: .75rem; color: var(--text-light); border: 1px solid var(--border-color); border-radius: 4px; padding: .1rem .4rem; }

.shop-empty { text-align: center; padding: 3rem 1rem; color: var(--text-light); }
.shop-pagination { display: flex; justify-content: center; gap: 1.25rem; margin-top: 2rem; }

.shop-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; margin-top: 1rem; }
.shop-gallery img#shop-main-image { width: 100%; height: auto; border-radius: 10px; background: var(--bg-light); }
.shop-thumbs { display: flex; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.shop-thumbs button { border: 1px solid var(--border-color); border-radius: 6px; padding: 0; background: none; cursor: pointer; width: 72px; height: 72px; overflow: hidden; }
.shop-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.shop-info h1 { font-size: 1.7rem; margin: 0 0 .25rem; }
.shop-condition { color: var(--text-light); margin: 0; }
.shop-stock .in { color: #1e7d45; }
.shop-stock .out { color: #a33; }
.shop-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0; }
.shop-cta .btn[disabled] { opacity: .55; cursor: not-allowed; }
.shop-specs { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.shop-specs th, .shop-specs td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--border-color); }
.shop-specs th { width: 40%; color: var(--text-light); font-weight: 600; }
.shop-assurance { margin-top: 1rem; padding-left: 1.2rem; color: var(--text-light); list-style: disc; }

@media (max-width: 768px) {
  .shop-product { grid-template-columns: 1fr; gap: 1.25rem; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .shop-card-body { padding: .6rem .7rem .8rem; }
  .shop-card-body h3 { font-size: .92rem; }
}

/* Variant picker (grouped listings) */
.shop-variants-note { font-size: .8rem; color: var(--text-light); margin: -.25rem 0 .4rem; }
.shop-picker { margin: 1rem 0 .25rem; }
.shop-picker-label { font-weight: 600; margin-bottom: .4rem; }
.shop-picker-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.shop-swatch { display: flex; flex-direction: column; align-items: center; gap: .25rem; width: 84px; padding: .35rem; border: 2px solid var(--border-color); border-radius: 8px; text-decoration: none; color: var(--text-color); font-size: .75rem; text-align: center; line-height: 1.2; }
.shop-swatch img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.shop-swatch:hover { border-color: var(--secondary-color); }
.shop-swatch.is-current { border-color: var(--primary-color); }
.shop-swatch.is-sold-out { opacity: .45; }
.shop-swatch.is-sold-out span { text-decoration: line-through; }

/* Cart & checkout */
.shop-narrow { max-width: 820px; }
.shop-messages { margin: 1rem 0; }
.shop-msg { padding: .7rem 1rem; border-radius: 6px; margin-bottom: .5rem; background: var(--bg-light); }
.shop-msg-error { background: #fdecec; color: #8a1f1f; }
.shop-msg-success { background: #e8f6ee; color: #1e5f3a; }
.shop-cart { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.shop-cart th, .shop-cart td { padding: .6rem .5rem; border-bottom: 1px solid var(--border-color); text-align: left; vertical-align: top; }
.shop-cart .num { text-align: right; white-space: nowrap; }
.shop-qty { width: 4.5rem; padding: .4rem; border: 1px solid var(--border-color); border-radius: 6px; font-size: 1rem; }
.shop-hint { color: var(--text-light); font-size: .9rem; }
.shop-tag-note { color: var(--text-light); font-size: .8rem; }
.shop-add { display: flex; gap: .5rem; align-items: center; }
.shop-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
.shop-checkout fieldset { border: 1px solid var(--border-color); border-radius: 8px; padding: 1rem 1.1rem; margin: 0 0 1rem; }
.shop-checkout legend { font-weight: 700; padding: 0 .3rem; }
.shop-field { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .75rem; }
.shop-field > span { font-size: .9rem; font-weight: 600; }
.shop-field input, .shop-field select { padding: .6rem .7rem; border: 1px solid var(--border-color); border-radius: 6px; font-size: 1rem; background: var(--white); }
.shop-field em, .shop-err { color: #a33; font-style: normal; font-size: .85rem; }
.shop-field small { color: var(--text-light); }
.shop-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.shop-choice { display: flex; gap: .6rem; align-items: flex-start; padding: .5rem 0; cursor: pointer; }
.shop-choice.is-disabled { opacity: .55; cursor: not-allowed; }
.shop-choice input { margin-top: .25rem; }
.shop-terms { margin: .5rem 0 1rem; }
.shop-pay { width: 100%; font-size: 1.05rem; padding: .85rem; }
.shop-summary { background: var(--bg-light); border-radius: 10px; padding: 1.1rem 1.2rem; position: sticky; top: 1rem; }
.shop-summary ul { list-style: none; padding: 0; margin: .5rem 0; }
.shop-summary li, .shop-summary-total { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; }
.shop-summary-total { border-top: 1px solid var(--border-color); margin-top: .4rem; padding-top: .6rem; }
.shop-pickup-code { font-size: 1.4rem; }
@media (max-width: 768px) {
  .shop-checkout { grid-template-columns: 1fr; }
  .shop-summary { position: static; order: -1; }
}
