/* Shop: toolbar, product grid, quantity steppers, cart, header badge */
.site-nav__cart { position: relative; }
.cart-badge { position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #c0392b; color: #fff; font: 700 0.7rem/18px 'Inter', sans-serif; text-align: center; }
.cart-badge[hidden] { display: none; }
.shop-category-item.is-active h4 { color: var(--gold-dark, #b9791a); }
.shop-category-item.is-active .shop-category-item__image { outline: 3px solid var(--gold); outline-offset: 3px; }
.shop-toolbar { display: grid; gap: 14px; margin: 0 0 18px; padding: 18px 20px; background: #fff; border: 1px solid rgba(13, 60, 102, 0.14); border-radius: 16px; box-shadow: 0 10px 28px rgba(13, 60, 102, 0.06); }
.shop-toolbar__row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.shop-toolbar__row--end { justify-content: flex-end; align-items: center; }
.shop-field { display: flex; flex-direction: column; gap: 5px; min-width: 150px; font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.shop-field--search { flex: 1 1 240px; }
.shop-field input, .shop-field select { height: 44px; padding: 0 12px; border: 1px solid rgba(13, 60, 102, 0.25); border-radius: 10px; background: #fff; font: inherit; font-weight: 400; color: var(--ink, #193049); }
.shop-price-range { display: flex; align-items: center; gap: 6px; }
.shop-price-range input { width: 92px; }
.shop-check { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; font-weight: 600; color: var(--navy); }
.shop-count { margin: 0 0 16px; color: var(--muted, #66778a); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.shop-grid--small { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.shop-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(13, 60, 102, 0.12); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 26px rgba(13, 60, 102, 0.07); transition: transform 0.25s, box-shadow 0.25s; }
.shop-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(13, 60, 102, 0.14); }
.shop-card__link { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 0 0 12px; color: inherit; text-decoration: none; }
.shop-card__thumb { position: relative; display: block; aspect-ratio: 1 / 1; background: #f4efe6; overflow: hidden; }
.shop-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-card h4 { margin: 8px 16px 0; color: var(--navy); font-size: 1.05rem; line-height: 1.35; }
.shop-card__price { display: flex; align-items: baseline; gap: 8px; margin: 0 16px; }
.shop-card__price strong { color: var(--navy); font-size: 1.15rem; }
.shop-card__price del { color: #8a97a5; font-size: 0.9rem; }
.shop-card__rating { margin: 0 16px; color: #e5a21a; letter-spacing: 1px; }
.shop-card__rating .is-empty { color: #c9cdd1; }
.shop-card__rating small { color: var(--muted, #66778a); letter-spacing: 0; }
.shop-card__low { margin: 0 16px; color: #b45309; font-size: 0.85rem; font-weight: 600; }
.shop-badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; background: var(--gold); color: #3b2a05; font-size: 0.78rem; font-weight: 800; }
.shop-badge--out { background: #4b5563; color: #fff; }
.shop-card.is-soldout .shop-card__thumb img { opacity: 0.55; filter: grayscale(0.6); }
.shop-card__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0 16px 16px; }
.shop-card__add { flex: 1 1 auto; justify-content: center; text-align: center; min-height: 42px; }
.shop-card__add.is-disabled { margin: 0 16px 16px; cursor: not-allowed; opacity: 0.7; display: flex; align-items: center; }
.shop-card__incart { flex-basis: 100%; color: #15803d; font-weight: 600; }
.qty-stepper { display: inline-flex; align-items: stretch; border: 1px solid rgba(13, 60, 102, 0.3); border-radius: 10px; overflow: hidden; background: #fff; }
.qty-stepper button { width: 36px; border: 0; background: #f4efe6; color: var(--navy); font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.qty-stepper button:hover { background: var(--gold-soft); }
.qty-stepper input { width: 46px; height: 40px; border: 0; border-inline: 1px solid rgba(13, 60, 102, 0.15); text-align: center; font: 600 1rem 'Inter', sans-serif; -moz-appearance: textfield; appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.shop-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 34px 0 0; }
.shop-pager a { min-width: 40px; padding: 9px 14px; border: 1px solid rgba(13, 60, 102, 0.25); border-radius: 10px; background: #fff; color: var(--navy); font-weight: 700; text-align: center; text-decoration: none; }
.shop-pager a.is-current { background: var(--navy); border-color: var(--navy); color: #fff; }
.shop-toast { position: fixed; left: 50%; bottom: 28px; z-index: 1200; max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 999px; background: #08243f; color: #fff; font-weight: 600; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; }
.shop-toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.shop-toast a { color: var(--gold-soft); margin-left: 6px; }
.product-buy { flex-wrap: wrap; align-items: center; gap: 12px; }
.product-viewcart { color: var(--navy); font-weight: 700; }
.product-incart { margin: 10px 0 0; color: #15803d; font-weight: 600; }
.product-related { padding-top: 10px; }
.cart-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
[data-no-js][hidden] { display: none !important; }
.cart-clear { border: 0; background: none; color: #b91c1c; font-weight: 600; cursor: pointer; text-decoration: underline; }
.cart-product { align-items: center; }
.cart-product a { color: inherit; text-decoration: none; }
.cart-warn { display: block; color: #b91c1c; font-weight: 600; }
.cart-summary h3 { margin: 0 0 14px; color: var(--navy); }
.cart-summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; color: var(--ink, #193049); }
.cart-summary-row--total { margin-top: 6px; border-top: 1px solid rgba(13, 60, 102, 0.15); padding-top: 14px; font-size: 1.15rem; }
.cart-free { margin: 14px 0 6px; font-size: 0.92rem; }
.cart-free__bar { height: 8px; border-radius: 999px; background: #e7e1d5; overflow: hidden; }
.cart-free__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #e8b95c); transition: width 0.3s; }
.cart-free p { margin: 8px 0 0; }
.cart-free p[hidden] { display: none; }
.cart-note { color: var(--muted, #66778a); font-size: 0.85rem; }
.cart-checkout { display: flex; justify-content: center; width: 100%; margin-top: 8px; }
.cart-secure { margin: 10px 0 0; text-align: center; color: var(--muted, #66778a); font-size: 0.85rem; }
@media (max-width: 640px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .shop-card h4 { font-size: 0.95rem; margin-inline: 12px; }
  .shop-card__price, .shop-card__rating, .shop-card__low { margin-inline: 12px; }
  .shop-card__buy { padding: 0 12px 14px; }
  .shop-toolbar__row { flex-direction: column; align-items: stretch; }
  .shop-price-range input { width: 100%; }
  .shop-check { margin-right: 0; }
}
