/* ---------------------------------------------------------------------------
   Online gift shop (/Shop). Loaded after site.css by the shop pages only; uses its tokens.
   --------------------------------------------------------------------------- */

/* Bar under the hero: the shop and the basket */
.shop-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem;
  margin: 1rem 0; padding: .55rem .85rem; background: var(--gl-surface); border: 1px solid var(--gl-border); border-radius: .75rem; }
.shop-bar a { display: inline-flex; align-items: center; gap: .45rem; color: var(--gl-text); text-decoration: none; font-weight: 600; }
.shop-bar a:hover { color: #fff; }
.shop-bar svg { color: var(--gl-accent); flex: 0 0 auto; }
.shop-bar-cart { color: var(--gl-muted) !important; font-weight: 500 !important; }
.shop-bar-cart.has-items { color: var(--gl-text) !important; }
.shop-bar-cart strong { color: #fff; }

.shop-crumbs { --bs-breadcrumb-divider-color: var(--gl-muted); --bs-breadcrumb-item-active-color: var(--gl-muted); margin-bottom: .75rem; font-size: .9rem; }
.shop-crumbs a { color: var(--gl-text); text-decoration: none; }
.shop-crumbs a:hover { color: var(--gl-accent); }

.shop-intro-box { margin-bottom: 1.25rem; padding: 1rem 1.1rem; background: var(--gl-surface); border: 1px solid var(--gl-border); border-radius: .75rem; }

/* Front and category pages */
.shop-section { margin-bottom: 1.75rem; }
.shop-section-title { font-weight: 800; font-size: 1.35rem; margin: 0 0 .6rem; padding-bottom: .4rem; border-bottom: 2px solid var(--gl-accent); }
.shop-section-title a { color: #fff; text-decoration: none; }
.shop-section-title a:hover { color: var(--gl-accent); }
.shop-section-intro { color: var(--gl-text); margin-bottom: .8rem; }
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
@media (min-width: 768px) { .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 1200px) { .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.shop-card { display: flex; flex-direction: column; background: var(--gl-surface); border: 1px solid var(--gl-border); border-radius: .75rem;
  overflow: hidden; color: var(--gl-text); text-decoration: none; transition: border-color .15s, transform .15s; }
.shop-card:hover, .shop-card:focus-visible { border-color: var(--gl-accent); transform: translateY(-2px); color: var(--gl-text); }
.shop-card-img { display: block; aspect-ratio: 4 / 3; background: var(--gl-surface-2); overflow: hidden; }
.shop-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-card-img .poster-placeholder { height: 100%; }
.shop-card-body { display: flex; flex-direction: column; gap: .2rem; padding: .7rem .8rem .8rem; }
.shop-card-name { color: #fff; font-weight: 700; line-height: 1.25; }
.shop-card-price { color: var(--gl-accent); font-weight: 700; }
.shop-footnote { margin-top: 1.5rem; padding: 1rem 1.1rem; background: var(--gl-surface); border: 1px solid var(--gl-border); border-radius: .75rem; }

/* Product page */
.shop-product { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .shop-product { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; align-items: start; } }
.shop-product-img { background: var(--gl-surface-2); border: 1px solid var(--gl-border); border-radius: .75rem; overflow: hidden; }
.shop-product-img img { display: block; width: 100%; height: auto; }
.shop-product-img .poster-placeholder { aspect-ratio: 4 / 3; }
.shop-product-info { min-width: 0; }
.shop-options { display: flex; flex-direction: column; gap: .5rem; }
.shop-option { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .75rem;
  padding: .6rem .75rem; background: var(--gl-surface); border: 1px solid var(--gl-border); border-radius: .6rem; }
.shop-option-name { color: #fff; font-weight: 600; margin: 0; }
.shop-option-note { display: block; color: var(--gl-muted); font-size: .82rem; font-weight: 400; }
.shop-option-price { color: #fff; font-weight: 800; white-space: nowrap; }
.shop-qty { background: var(--gl-surface-2); color: #fff; text-align: center; padding: .45rem .4rem; }
.shop-qty:focus { background: var(--gl-surface-2); color: #fff; }
@media (max-width: 420px) {
  .shop-option { grid-template-columns: minmax(0, 1fr) auto; }
  .shop-option .qty-stepper { grid-column: 1 / -1; justify-self: end; }
}


/* Basket */
.shop-cart { background: var(--gl-surface); border: 1px solid var(--gl-border); border-radius: .75rem; padding: .25rem 1rem .9rem; }
.shop-cart-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "img name total" "img qty qty";
  gap: .35rem .9rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--gl-border); }
@media (min-width: 768px) { .shop-cart-line { grid-template-columns: 84px minmax(0, 1fr) 13rem 7rem; grid-template-areas: "img name qty total"; } }
.shop-cart-img { grid-area: img; display: block; aspect-ratio: 4 / 3; border-radius: .4rem; overflow: hidden; background: var(--gl-surface-2); }
.shop-cart-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-cart-img .poster-placeholder { height: 100%; font-size: .6rem; }
.shop-cart-name { grid-area: name; min-width: 0; }
.shop-cart-name a { color: #fff; font-weight: 700; text-decoration: none; }
.shop-cart-name a:hover { color: var(--gl-accent); }
.shop-cart-qty { grid-area: qty; display: flex; align-items: center; gap: .4rem; }
.shop-remove { color: var(--gl-muted); padding: .2rem .3rem; }
.shop-remove:hover { color: #fff; }
.shop-cart-total { grid-area: total; text-align: right; color: #fff; font-weight: 700; white-space: nowrap; }
.shop-cart-sum { display: flex; justify-content: space-between; align-items: baseline; padding: .9rem 0 .25rem; font-size: 1.1rem; }
.shop-cart-sum strong { color: #fff; font-size: 1.35rem; }

/* Checkout summary */
.shop-summary-line { display: flex; justify-content: space-between; gap: .75rem; padding: .3rem 0; font-size: .92rem; border-bottom: 1px solid var(--gl-border); }
.shop-summary-line span:last-child { white-space: nowrap; color: #fff; }
.shop-summary-total { border-bottom: 0; padding-top: .55rem; font-size: 1.1rem; font-weight: 800; color: #fff; }

@media print {
  .shop-bar, .shop-crumbs { display: none !important; }
}
