:root {
  --bsv-ink: #1a2e1f;
  --bsv-gold: #c4a35a;
  --bsv-cream: #f7f1e6;
  --bsv-leaf: #2d5a3d;
  --bsv-mist: #e8efe9;
}

.bsv-page {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Be Vietnam Pro", system-ui, sans-serif;
  color: var(--bsv-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(196, 163, 90, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(45, 90, 61, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bsv-cream) 0%, #fff 45%, var(--bsv-mist) 100%);
}

.bsv-hero {
  padding: 1.19rem 1.4rem 1.05rem;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(18, 32, 24, 0.96) 0%, rgba(35, 74, 50, 0.92) 45%, rgba(26, 46, 31, 0.94) 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c4a35a' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color: #fff;
  border-bottom: 3px solid var(--bsv-gold);
}

.bsv-hero__inner {
  max-width: 72.8rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.19rem 1.4rem;
}

.bsv-hero__logo {
  display: block;
  width: auto;
  height: 2.8rem;
  max-width: min(15.4rem, 48vw);
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}

.bsv-hero__copy {
  min-width: 0;
  text-align: center;
}

.bsv-hero__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.49rem 0.7rem;
  margin: 0 0 0.28rem;
  font-size: clamp(1.15rem, 3.08vw, 1.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.bsv-hero__title-line {
  color: #fff;
}

.bsv-hero__title-line--partner {
  color: var(--bsv-gold);
  letter-spacing: 0.1em;
}

.bsv-hero__title-sep {
  color: rgba(196, 163, 90, 0.75);
  font-weight: 500;
}

.bsv-hero__sub {
  margin: 0;
  opacity: 0.82;
  font-size: 1.09rem;
  line-height: 1.35;
}

.bsv-main {
  padding: 1.5rem 1rem 3rem;
  max-width: 1100px;
}

.bsv-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(45, 90, 61, 0.12);
  border-radius: 1rem;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 8px 28px rgba(26, 46, 31, 0.06);
}

.bsv-order-columns > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

.bsv-order-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  min-height: 100%;
}

.bsv-order-panel--right {
  flex: 1;
}

.bsv-order-panel__hr {
  margin: 0.75rem 0;
}

.bsv-order-panel__checkout {
  display: flex;
  flex-direction: column;
  flex: 1;
}

@media (min-width: 992px) {
  .bsv-card--products {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .bsv-card--products .bsv-product-grid {
    flex: 1 1 auto;
  }

  .bsv-card--rules {
    flex: 0 0 auto;
  }

  .bsv-order-panel--right {
    display: flex;
    flex-direction: column;
  }

  .bsv-order-panel--right .bsv-order-panel__checkout {
    margin-top: auto;
  }
}

.bsv-section-title {
  font-size: 1.05rem;
  font-weight: 650;
  margin: 0 0 0.75rem;
  color: var(--bsv-leaf);
}

.bsv-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.bsv-section-head .bsv-section-title {
  margin-bottom: 0;
}

.bsv-catalogue-link {
  border: 0;
  background: none;
  padding: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bsv-leaf);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.bsv-catalogue-link:hover,
.bsv-catalogue-link:focus {
  color: #234a32;
}

.bsv-catalogue-link:focus-visible {
  outline: 2px solid rgba(45, 90, 61, 0.35);
  outline-offset: 2px;
  border-radius: 0.2rem;
}

.bsv-muted { color: #5c6b60; font-size: 0.9rem; }

.btn-bsv {
  background: var(--bsv-leaf);
  border-color: var(--bsv-leaf);
  color: #fff;
}
.btn-bsv:hover, .btn-bsv:focus {
  background: #234a32;
  border-color: #234a32;
  color: #fff;
}
.btn-bsv:disabled { opacity: 0.55; }

.bsv-member-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.65rem 1rem;
  background: rgba(45, 90, 61, 0.08);
  border-radius: 0.75rem;
}

.bsv-product-grid {
  display: grid;
  gap: 0.45rem;
}

.bsv-product {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(45, 90, 61, 0.12);
  border-radius: 0.5rem;
  background: #fff;
}

.bsv-product__info {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 0.5rem 0.75rem;
  min-width: 0;
  flex: 1;
}

.bsv-product__text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  flex: 1;
}

.bsv-product__name {
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.3;
  min-width: 0;
}

.bsv-product__pkg {
  font-size: 0.75rem;
  font-weight: 500;
  color: #5c6b60;
  line-height: 1.25;
}

.bsv-product__price {
  flex-shrink: 0;
  color: var(--bsv-leaf);
  font-weight: 600;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-top: 0.1rem;
}

.bsv-cart-line__text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.bsv-cart-line__pkg {
  font-size: 0.72rem;
  color: #5c6b60;
}

.bsv-product__note {
  flex: 1 0 100%;
  font-size: 0.75rem;
  color: #8a6d3b;
  font-weight: 500;
}

.bsv-product__ship {
  flex: 1 0 100%;
  font-size: 0.75rem;
  color: #2d5a3d;
  font-weight: 600;
}

.bsv-product--locked {
  opacity: 0.72;
  background: #f7f8f6;
}

.bsv-product--locked .bsv-qty button,
.bsv-product--locked .bsv-qty input {
  cursor: not-allowed;
  opacity: 0.55;
}

.bsv-delivery-note {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #5c6b60;
}

.bsv-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}
.bsv-qty button {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(45, 90, 61, 0.25);
  background: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0;
}
.bsv-qty input {
  width: 3.5rem; /* 2.5rem × 1.4 */
  text-align: center;
  border: 1px solid rgba(45, 90, 61, 0.2);
  border-radius: 0.3rem;
  padding: 0.15rem 0.2rem;
  font-size: 0.85rem;
}

.bsv-sticky { position: sticky; top: 1rem; }
.bsv-cart-lines { min-height: 2rem; margin-bottom: 0.75rem; }
.bsv-cart-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.bsv-quote { font-size: 0.92rem; }
.bsv-quote__row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}
.bsv-quote__total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bsv-leaf);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(45, 90, 61, 0.15);
}

.bsv-perks { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.5rem 0 0.25rem; }
.bsv-perk {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.bsv-perk--card { background: #e7f1ff; color: #1a4d8c; border-color: #b6d0f7; }
.bsv-perk--logo { background: #fff3d6; color: #7a5a12; border-color: #e6c86a; }
.bsv-perk--decor { background: #e9f7ef; color: #1b5e35; border-color: #95d5a8; }

.bsv-rules-table {
  font-size: 0.82rem;
  table-layout: fixed;
  width: 100%;
}
.bsv-rules-table th { color: #5c6b60; font-weight: 600; }
.bsv-rules-col--tier { width: 3.25rem; }
.bsv-rules-col--disc { width: 2.75rem; }
.bsv-rules-col--perks { width: 7.25rem; }
.bsv-rules-table th:nth-child(4),
.bsv-rules-table td:nth-child(4) {
  white-space: nowrap;
}
.bsv-rules-th-perks {
  white-space: nowrap;
}

.bsv-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: #6b7a6e;
}

.bsv-success-popup {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(26, 46, 31, 0.48);
}

.bsv-success-popup.is-open {
  display: flex;
}

.bsv-success-popup__card {
  width: 100%;
  max-width: 28rem;
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(45, 90, 61, 0.16);
  box-shadow: 0 24px 60px rgba(26, 46, 31, 0.22);
}

.bsv-success-popup__head {
  padding: 0.9rem 1rem;
  text-align: center;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(145deg, rgba(18, 32, 24, 0.98) 0%, rgba(45, 90, 61, 0.95) 100%);
  border-bottom: 2px solid var(--bsv-gold);
}

.bsv-success-popup__body {
  padding: 1.15rem 1.2rem 1.25rem;
  text-align: center;
  color: var(--bsv-ink);
}

.bsv-success-popup__emoji {
  font-size: 2.1rem;
  line-height: 1;
  margin-bottom: 0.55rem;
}

.bsv-success-popup__message {
  background: var(--bsv-cream);
  border: 1px solid rgba(45, 90, 61, 0.14);
  border-radius: 0.75rem;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
  text-align: left;
}

.bsv-success-popup__message strong {
  color: var(--bsv-leaf);
}

.bsv-success-popup__sub {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  color: #5c6b60;
}

.bsv-catalogue-popup {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(26, 46, 31, 0.55);
}

.bsv-catalogue-popup.is-open {
  display: flex;
}

.bsv-catalogue-popup__card {
  width: 100%;
  max-width: min(56rem, 96vw);
  max-height: min(92vh, 52rem);
  border-radius: 0.85rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(45, 90, 61, 0.16);
  box-shadow: 0 24px 60px rgba(26, 46, 31, 0.24);
  display: flex;
  flex-direction: column;
}

.bsv-catalogue-popup__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.98rem;
  color: #fff;
  background: linear-gradient(145deg, rgba(18, 32, 24, 0.98) 0%, rgba(45, 90, 61, 0.95) 100%);
  border-bottom: 2px solid var(--bsv-gold);
}

.bsv-catalogue-popup__close {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 0.4rem;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.bsv-catalogue-popup__close:hover,
.bsv-catalogue-popup__close:focus {
  background: rgba(255, 255, 255, 0.22);
}

.bsv-catalogue-popup__body {
  padding: 0.75rem;
  overflow: auto;
  background: #f7f8f5;
}

.bsv-catalogue-popup__img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

@media (max-width: 575px) {
  .bsv-hero__inner {
    flex-direction: column;
    align-items: center;
    gap: 0.77rem;
  }

  .bsv-hero__logo {
    height: 2.31rem;
  }

  .bsv-product__info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }
}

@media (max-width: 991px) {
  .bsv-sticky { position: static; }
}
