:root {
  --wine: #5e1224;
  --wine-dark: #420a18;
  --wine-light: #8a2b42;
  --gold: #c9a227;
  --gold-light: #e3c766;
  --cream: #faf6ef;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --muted: #6d5c4f;
  --shop-banner-height: 43px;
  --shop-bg-top: #e4d9cc;
  --shop-bg-mid: #d9cbb9;
  --shop-bg-bottom: #cfc0ad;
  --shop-card: #ebe1d4;
  --shop-card-soft: #e2d6c7;
  --shop-filter-bg: rgba(228, 217, 204, 0.96);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body.shop-page {
  font-family: Helvetica, Arial, sans-serif;
  color: #2b2018;
  background: linear-gradient(180deg, var(--shop-bg-top) 0%, var(--shop-bg-mid) 55%, var(--shop-bg-bottom) 100%);
  min-height: 100vh;
}

a { color: var(--wine); }

/* Banner spedizione gratuita — nav + carrello */
.shop-shipping-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  text-align: center;
  background: linear-gradient(90deg, var(--wine-dark), var(--wine));
  color: #fff;
}

.shop-shipping-banner--nav {
  /* Impilato nel wrapper sticky — non sticky da solo */
  box-shadow: none;
}

.shop-header-wrap {
  position: sticky;
  top: 0;
  z-index: 110;
  box-shadow: 0 2px 24px rgba(20, 5, 10, 0.35);
}

.shop-shipping-banner--cart {
  margin: 0;
  padding: 12px 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.shop-shipping-banner__icon {
  flex-shrink: 0;
  font-size: 1.1rem;
}

.shop-shipping-banner p {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1.45;
  font-weight: 500;
}

.shop-shipping-banner strong,
.shop-shipping-banner em {
  color: var(--gold-light);
  font-style: normal;
  font-weight: 700;
}

.shop-newsletter-banner {
  display: block;
  padding: 9px 16px;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(90deg, #c9a227, #e3c766, #c9a227);
  color: var(--wine-dark);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.shop-newsletter-banner strong {
  font-weight: 700;
}

.shop-newsletter-banner:hover,
.shop-newsletter-banner:focus-visible {
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 3px;
}

html {
  scroll-behavior: smooth;
}

.shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 5vw;
  background: rgba(45, 8, 18, 0.96);
  color: #fff;
  position: relative;
  z-index: 1;
  min-height: 74px;
}

.shop-header__logo {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  line-height: 0;
}

.shop-header__logo img { height: 52px; width: auto; display: block; }

.shop-header__nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 32px);
  flex-wrap: nowrap;
  z-index: 1;
  max-width: min(560px, calc(100vw - 360px));
}

.shop-header__actions {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 18px);
  flex-wrap: nowrap;
}

.shop-header__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  color: #fff;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1;
}

.shop-header__nav a:hover,
.shop-header__nav a.is-current { color: var(--gold-light); }

.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  overflow: hidden;
}

.lang-switch__btn {
  padding: 6px 12px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: #fff;
  background: transparent;
}

.lang-switch__btn.is-active {
  background: var(--gold);
  color: var(--wine-dark);
  font-weight: 600;
}

.btn-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--gold);
  background: transparent;
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.btn-cart__icon {
  flex-shrink: 0;
  display: block;
}

.btn-cart:hover { background: var(--gold); color: var(--wine-dark); }

.btn-cart:hover .shop-cart-badge {
  background: var(--wine-dark);
  color: #fff;
}

.snipcart-items-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--wine-dark);
  font-weight: 700;
  font-size: 0.72rem;
}

.shop-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 5vw 80px;
}

.section-head {
  text-align: center;
  margin: 0 auto 20px;
}

.section-head h1 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: var(--wine-dark);
  font-weight: 600;
}

.filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter {
  background: var(--shop-filter-bg);
  border: 1px solid rgba(201, 162, 39, 0.32);
  padding: 10px 26px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 0.8rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #6b5044;
  transition: 0.28s;
}

.filter.active,
.filter:hover {
  background: linear-gradient(135deg, var(--wine-dark), var(--wine-light));
  color: #fff;
  border-color: var(--wine);
}

.products--shop {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 32px;
}

.product--shop {
  background: linear-gradient(180deg, var(--shop-card) 0%, var(--shop-card-soft) 100%);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.28);
  box-shadow: 0 10px 28px rgba(94, 18, 36, 0.08);
  display: flex;
  flex-direction: column;
}

.product--shop .bottle-wrap {
  position: relative;
  height: 260px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
}

.product--shop .bottle-wrap.red { background: linear-gradient(180deg, #e6d0c8 0%, #d9bdb4 100%); }
.product--shop .bottle-wrap.white { background: linear-gradient(180deg, #e0d5c6 0%, #d3c5b0 100%); }
.product--shop .bottle-wrap.rose { background: linear-gradient(180deg, #e6cfd4 0%, #d9bdc3 100%); }

.product--shop .bottle-link { display: block; line-height: 0; }

.product--shop .bottle-img {
  max-height: 210px;
  width: auto;
  object-fit: contain;
}

.product--shop .tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--wine);
  color: #fff;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.product--shop .tag.gold { background: var(--gold); color: var(--wine-dark); }

.product--shop .product-info {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product--shop .type {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.product--shop h3 {
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.28;
  margin-bottom: 10px;
}

.product--shop h3 a {
  color: var(--wine-dark);
  text-decoration: none;
}

.product--shop h3 a:hover { color: var(--wine-light); }

.product--shop .desc {
  font-size: 0.9rem;
  color: #716055;
  line-height: 1.55;
  flex: 1;
}

.product-price {
  margin: 16px 0 14px;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--wine-dark);
  font-weight: 600;
}

.product-price__label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 500;
  margin-right: 6px;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-qty__label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6d5c4f;
  font-weight: 600;
}

.product-qty__controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(94, 18, 36, 0.18);
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff;
}

.product-qty__btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(94, 18, 36, 0.08);
  color: var(--wine);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.product-qty__btn:hover { background: var(--wine); color: #fff; }

.product-qty__input {
  width: 42px;
  border: none;
  background: transparent;
  text-align: center;
  font: inherit;
  font-weight: 600;
  color: var(--wine-dark);
  -moz-appearance: textfield;
}

.product-qty__input::-webkit-outer-spin-button,
.product-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-in-cart {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--wine);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: 0.25s;
  font-weight: 600;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--wine-dark);
}

.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201, 162, 39, 0.35); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--wine);
  color: var(--wine);
}

.btn-outline:hover { background: var(--wine); color: #fff; }

.shop-catalog-link {
  text-align: center;
  margin-top: 48px;
}

.shop-catalog-link a {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

.shop-notes {
  text-align: center;
  max-width: 52rem;
  margin: 36px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(90, 45, 55, 0.22);
}

.shop-included {
  text-align: center;
  margin-bottom: 22px;
  padding: 22px 24px 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--shop-card) 0%, var(--shop-card-soft) 100%);
  border: 1px solid rgba(201, 162, 39, 0.28);
  box-shadow: 0 8px 22px rgba(94, 18, 36, 0.06);
}

.shop-included__heading {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--wine-dark);
}

.shop-included__list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  text-align: left;
}

.shop-included__list li {
  position: relative;
  padding: 14px 14px 14px 2.35rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #4a3d32;
  background: rgba(255, 255, 255, 0.42);
  border-radius: 14px;
  border: 1px solid rgba(201, 162, 39, 0.18);
}

.shop-included__list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 1.05rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.22);
}

.shop-included__tagline {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-style: italic;
  color: var(--wine);
}

.shop-newsletter {
  text-align: left;
  margin: 0 0 28px;
  padding: 22px 24px 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(94, 18, 36, 0.12);
  scroll-margin-top: 180px;
}

.shop-newsletter__title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 600;
  color: var(--wine-dark);
  text-align: center;
}

.shop-newsletter__lead {
  margin: 0 0 16px;
  font-size: 0.92rem;
  color: #4a3d32;
  line-height: 1.55;
  text-align: center;
}

.shop-newsletter__form {
  display: grid;
  gap: 12px;
  max-width: 28rem;
  margin: 0 auto;
}

.shop-newsletter__field span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.shop-newsletter__field input[type=email] {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid rgba(94, 18, 36, 0.18);
  font: inherit;
}

.shop-newsletter__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.shop-newsletter__consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: #4a3d32;
  line-height: 1.4;
}

.shop-newsletter__consent input {
  margin-top: 3px;
  flex: 0 0 auto;
}

.shop-newsletter__status,
.shop-newsletter__flash {
  margin: 0;
  font-size: 0.88rem;
  min-height: 1.2em;
  text-align: center;
}

.shop-newsletter__flash {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 10px;
}

.shop-newsletter__status.is-ok,
.shop-newsletter__flash.is-ok { color: #1f6b3a; }
.shop-newsletter__status.is-err,
.shop-newsletter__flash.is-err { color: #8a1f1f; }
.shop-newsletter__flash.is-ok { background: rgba(31, 107, 58, 0.08); }
.shop-newsletter__flash.is-err { background: rgba(138, 31, 31, 0.08); }

.shop-notes__visit {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

.shop-notes a { color: var(--wine); text-decoration: underline; text-underline-offset: 2px; }
.shop-notes a:hover { color: var(--wine-dark); }

@media (max-width: 720px) {
  .shop-included__list {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .shop-included__list li {
    padding-left: 14px;
    padding-top: 28px;
    text-align: center;
  }

  .shop-included__list li::before {
    left: 50%;
    top: 14px;
    transform: translateX(-50%);
  }
}

.shop-footer {
  text-align: center;
  padding: 28px 5vw 36px;
  margin-top: 40px;
  background: #1d050c;
  color: #caa9b1;
  font-size: 0.78rem;
  line-height: 1.55;
}

.shop-footer p { margin: 0 0 8px; }
.shop-footer p:last-child { margin-bottom: 0; }

.shop-footer a { color: var(--gold-light); text-decoration: none; }
.shop-footer a:hover { text-decoration: underline; }

.shop-footer__legal { opacity: 0.9; }
.shop-footer__links { font-size: 0.8rem; }

.product--shop.is-hidden { display: none; }

/* ---------- cart drawer ---------- */
body.shop-cart-open { overflow: hidden; }

.shop-cart {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.shop-cart.is-open { pointer-events: auto; }

.shop-cart__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 5, 10, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.shop-cart.is-open .shop-cart__backdrop { opacity: 1; }

.shop-cart__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100%;
  background: #fffdfb;
  box-shadow: -12px 0 40px rgba(20, 5, 10, 0.2);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.shop-cart.is-open .shop-cart__panel { transform: translateX(0); }

.shop-cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
  background: rgba(45, 8, 18, 0.96);
  color: #fff;
}

.shop-cart__head h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
}

.shop-cart__close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.shop-cart__close:hover { color: var(--gold-light); }

.shop-cart__toast {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  z-index: 5;
  background: var(--wine-dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.shop-cart__toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.shop-cart__meta {
  margin: 0;
  padding: 16px 20px 10px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

/* Progress bar spedizione gratuita (da €99) */
.shop-cart__status {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(180, 120, 20, 0.35);
}

.shop-cart__status-text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #7a5a20;
}

.shop-cart__status .shop-cart__progress {
  padding: 0 0 10px;
}

.shop-cart__footer-note {
  margin: 0 0 14px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
}

.shop-cart__progress {
  padding: 0 20px 16px;
}

.shop-cart__progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(94, 18, 36, 0.12);
  overflow: hidden;
}

.shop-cart__progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--wine), var(--wine-light));
  transition: width 0.35s ease, background 0.35s ease;
}

.shop-cart__progress-fill.is-complete {
  background: linear-gradient(90deg, #2f6b3b, #4a9b5a);
}

.shop-cart__progress-text {
  margin: 10px 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #6d5c4f;
}

.shop-cart__progress-text.is-complete {
  color: #2f6b3b;
  font-weight: 600;
}

.shop-cart__progress-text.is-success {
  color: #2f6b3b;
}

/* Widget casse da 6 bottiglie */
.shop-case-widget {
  margin: 0 20px 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(201, 162, 39, 0.28);
}

.shop-case-widget.is-warn {
  border-color: rgba(180, 120, 20, 0.4);
  background: #fffaf2;
}

.shop-case-widget.is-complete {
  border-color: rgba(47, 107, 59, 0.35);
  background: #f4fbf5;
}

.shop-case-widget__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.shop-case-widget__title {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6d5c4f;
  font-weight: 600;
}

.shop-case-widget__count {
  font-size: 0.88rem;
  color: var(--wine-dark);
}

.shop-case-widget__count.is-complete {
  color: #2f6b3b;
}

.shop-case-widget__slots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.shop-case-widget__slot {
  height: 28px;
  border-radius: 6px;
  background: rgba(94, 18, 36, 0.08);
  border: 1px dashed rgba(94, 18, 36, 0.2);
  position: relative;
}

.shop-case-widget__slot.is-filled {
  background: linear-gradient(180deg, var(--wine-light), var(--wine));
  border: 1px solid var(--wine-dark);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15);
}

.shop-case-widget__slot.is-filled::after {
  content: '';
  position: absolute;
  inset: 4px 6px auto;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.shop-case-widget__msg {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #7a5a20;
}

.shop-case-widget.is-complete .shop-case-widget__msg {
  color: #2f6b3b;
  font-weight: 600;
}

.shop-cart__checkout-hint {
  margin: 10px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #7a5a20;
  text-align: center;
}

.shop-cart__shipping-note {
  margin: 0 20px 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 246, 236, 0.95);
  border: 1px solid rgba(201, 162, 39, 0.28);
  font-size: 0.78rem;
  line-height: 1.4;
  color: #6d5c4f;
}

/* Modalità consegna — rimosso ritiro in cantina */
.shop-delivery {
  margin: 0 20px 12px;
  padding: 0;
  border: none;
  display: grid;
  gap: 8px;
}

.shop-delivery legend {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6d5c4f;
  font-weight: 600;
  margin-bottom: 6px;
}

.shop-delivery__option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.shop-delivery__option:has(input:checked) {
  border-color: var(--wine);
  background: rgba(255, 246, 236, 0.9);
}

.shop-delivery__option input { margin-top: 4px; flex-shrink: 0; }

.shop-delivery__option strong {
  display: block;
  font-size: 0.88rem;
  color: var(--wine-dark);
  margin-bottom: 2px;
}

.shop-delivery__option small {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.shop-cart__alert {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.shop-cart__alert--info {
  background: #fff;
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: #6d5c4f;
}

.shop-cart__alert--warn {
  background: #fff8ec;
  border: 1px solid rgba(180, 120, 20, 0.35);
  color: #7a5a20;
}

.shop-cart__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 20px;
}

.shop-cart__empty,
.shop-cart__items,
.shop-checkout__lead,
.shop-checkout,
.shop-cart__summary {
  padding-left: 0;
  padding-right: 0;
}

.shop-cart__empty {
  padding-top: 28px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.shop-cart__items {
  list-style: none;
  margin: 0;
  padding-top: 8px;
  padding-bottom: 12px;
}

[data-checkout-view] .shop-checkout__lead,
[data-checkout-view] .shop-checkout {
  padding-left: 20px;
  padding-right: 20px;
}

.shop-cart-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(201, 162, 39, 0.18);
}

.shop-cart-item__img {
  width: 56px;
  height: 72px;
  object-fit: contain;
}

.shop-cart-item__name {
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--wine-dark);
  margin-bottom: 6px;
}

.shop-cart-item__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.shop-cart-item__meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.shop-cart-item__total {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--wine-dark);
  white-space: nowrap;
}

.shop-cart-item__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shop-cart-item__unit {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.shop-cart-item__count {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--wine);
  margin-bottom: 8px;
}

.shop-cart-item__line {
  margin-top: 10px;
  font-size: 0.88rem;
  color: #6d5c4f;
}

.shop-cart-item__line strong {
  color: var(--wine-dark);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.shop-cart-qty__input {
  width: 42px;
  border: none;
  background: transparent;
  text-align: center;
  font: inherit;
  font-weight: 600;
  color: var(--wine-dark);
  -moz-appearance: textfield;
}

.shop-cart-qty__input::-webkit-outer-spin-button,
.shop-cart-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.shop-cart-item__price {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.shop-cart-item__qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(94, 18, 36, 0.15);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.9rem;
}

.shop-cart-qty {
  border: none;
  background: transparent;
  color: var(--wine);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.shop-cart-item__remove {
  border: none;
  background: transparent;
  color: var(--wine-light);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.shop-cart-item__remove:hover { text-decoration: underline; }

.shop-cart__summary {
  padding: 16px 20px 24px;
  border-top: 1px solid rgba(201, 162, 39, 0.25);
  background: #fff6ec;
  flex-shrink: 0;
}

.shop-cart__min {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: #6d5c4f;
  font-size: 0.85rem;
  line-height: 1.45;
}

.shop-cart__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--muted);
}

.shop-cart__row--total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  font-size: 1.05rem;
  color: var(--wine-dark);
}

.shop-cart__checkout {
  width: 100%;
  margin-top: 16px;
}

.shop-cart__checkout:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.shop-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--wine-dark);
  font-weight: 700;
  font-size: 0.72rem;
}

[data-cart-view][hidden],
[data-confirm-view][hidden],
[data-checkout-view][hidden] {
  display: none !important;
}

[data-cart-view],
[data-confirm-view],
[data-checkout-view] {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

[data-checkout-view] { overflow-y: auto; }

.shop-confirm__lead {
  padding: 16px 20px 8px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.shop-confirm__items {
  list-style: none;
  margin: 0;
  padding: 8px 20px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.shop-confirm__item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(201, 162, 39, 0.18);
}

.shop-confirm__item img {
  width: 52px;
  height: 68px;
  object-fit: contain;
}

.shop-confirm__name {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.25;
  color: var(--wine-dark);
  margin-bottom: 4px;
}

.shop-confirm__meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.shop-confirm__line {
  font-family: var(--serif);
  color: var(--wine-dark);
  white-space: nowrap;
}

.shop-confirm__summary {
  padding: 12px 20px 24px;
  border-top: 1px solid rgba(201, 162, 39, 0.25);
  background: #fff6ec;
  flex-shrink: 0;
  display: grid;
  gap: 10px;
}

.shop-confirm__edit,
.shop-confirm__continue {
  width: 100%;
}

.shop-checkout__lead {
  padding-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.shop-checkout {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 28px;
}

.shop-checkout label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6d5c4f;
}

.shop-checkout input:not([type="checkbox"]),
.shop-checkout textarea {
  font: inherit;
  text-transform: none;
  letter-spacing: normal;
  border: 1px solid rgba(94, 18, 36, 0.18);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}

.shop-checkout__grid {
  display: grid;
  grid-template-columns: 1fr 88px 72px;
  gap: 10px;
}

.shop-checkout label.shop-checkout__check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.85rem;
  line-height: 1.45;
}

.shop-checkout__check a { color: var(--wine); }
.shop-checkout__check input { margin-top: 3px; }

.shop-checkout__back {
  border: none;
  background: transparent;
  color: var(--wine);
  cursor: pointer;
  text-align: left;
  padding: 0;
  font-size: 0.85rem;
}

.shop-checkout__field-error {
  display: block;
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: #9b2c2c;
}

.shop-checkout label.is-invalid input,
.shop-checkout label.is-invalid textarea {
  border-color: #9b2c2c;
}

.shop-checkout__privacy {
  margin: 4px 0 8px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #6d5c4f;
}

.shop-cart__paid {
  margin: 0 20px 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f4fbf5;
  border: 1px solid rgba(47, 107, 59, 0.35);
  color: #2f6b3b;
  font-size: 0.9rem;
  line-height: 1.45;
}

.shop-cart__status.is-ok .shop-cart__status-text {
  color: #2f6b3b;
  font-weight: 600;
}

.shop-checkout__status {
  min-height: 1.2em;
  font-size: 0.88rem;
  line-height: 1.45;
}

.shop-checkout__status.is-ok { color: #2f6b3b; }
.shop-checkout__status.is-err { color: #9b2c2c; }
.shop-checkout__status.is-pending { color: var(--wine); font-weight: 600; }

.shop-checkout .btn[aria-busy="true"] {
  cursor: wait;
  opacity: 1;
}

@media (max-width: 720px) {
  .shop-checkout__grid { grid-template-columns: 1fr 1fr; }
  .shop-checkout__grid label:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .shop-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 0;
    padding: 8px 40px;
    column-gap: 8px;
    row-gap: 0;
  }

  .shop-header__logo {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .shop-header__logo img { height: 38px; }

  .shop-header__actions { display: contents; }

  .shop-header .lang-switch { display: none; }

  .shop-header__nav a.is-current,
  .shop-header__nav a[href="index.html#visita"] { display: none; }

  .shop-header .btn-cart { justify-self: end; }

  .shop-header__nav { display: contents; }

  .shop-header__nav a {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: center;
    min-height: 0;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }

  .lang-switch__btn { padding: 5px 10px; }

  .btn-cart {
    grid-column: 3;
    grid-row: 1;
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    gap: 0;
  }

  .btn-cart > span:not(.shop-cart-badge) { display: none; }

  .btn-cart .shop-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    font-size: 0.62rem;
    letter-spacing: 0;
  }
}

@media (max-width: 560px) {
  .filters {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .filter {
    padding: 8px 8px;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }
}

@media (max-width: 720px) {
  .shop-shipping-banner { padding: 8px 12px; }
  .shop-shipping-banner p { font-size: 0.72rem; }
  .shop-case-widget__slot { height: 22px; }
  .shop-newsletter-banner { font-size: 0.74rem; padding: 8px 12px; }
  .shop-newsletter { scroll-margin-top: 120px; }
}
