:root {
  --cv-radius: 18px;
  --cv-card-shadow: 0 18px 55px rgba(32, 35, 31, 0.08);
  --cv-soft-shadow: 0 10px 28px rgba(32, 35, 31, 0.05);
}

body {
  font-family: Inter, "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  letter-spacing: -0.01em;
}

/* Calmer, clearer display type for large headings (hero) */
.hero-copy h1,
.hero-copy .hero-brand-title {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  letter-spacing: -0.02em;
}
.hero-copy .hero-brand-title {
  font-weight: 780;
}
.hero-copy h1 {
  font-weight: 760;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.prison-filters {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.prison-filters select {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
  padding: 0 12px;
  font-weight: 740;
  color: #20271f;
}

.with-action {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.text-link {
  color: var(--green);
  font-weight: 800;
}

.products-one { margin-top: 46px; }
.products-subhead { margin-top: 22px; }

.shop-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.shop-head span,
.checkout-summary-head span {
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
}
.shop-head h2 {
  max-width: 820px;
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
}
.shop-head p {
  max-width: 860px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}
.shop-head-link,
.shop-small-link {
  color: var(--green);
  font-weight: 850;
}
.shop-layout {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}
.shop-main {
  min-width: 0;
}
.category-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.category-card {
  min-height: 86px;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  color: #172018;
  text-align: left;
  box-shadow: 0 10px 28px rgba(32, 35, 31, 0.045);
}
.category-card.is-active {
  border-color: rgba(16, 77, 51, 0.42);
  background: var(--green-soft);
}
.category-card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--soft);
  overflow: hidden;
  color: var(--green);
  font-weight: 900;
}
.category-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-card-copy {
  display: grid;
  gap: 5px;
}
.category-card-copy strong {
  font-size: 14px;
  line-height: 1.2;
}
.category-card-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}
.shop-toolbar {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.shop-toolbar div {
  display: grid;
  gap: 4px;
}
.shop-toolbar strong {
  font-size: 20px;
}
.shop-toolbar span {
  color: var(--muted);
  font-size: 13px;
}
.home-shop-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.home-products-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 4px;
}
.home-products-more[hidden],
.home-products-more:empty {
  display: none;
}
.home-more-button {
  min-width: 220px;
}
.home-shop-card {
  min-width: 0;
  display: grid;
  grid-template-rows: 150px 1fr;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(32, 35, 31, 0.055);
}
.home-shop-image {
  background: var(--soft);
}
.home-shop-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-shop-image span {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 22px;
  font-weight: 900;
}
.home-shop-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}
.home-shop-top {
  display: grid;
  gap: 8px;
}
.home-shop-top h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}
.stock-pill {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}
.stock-pill.is-in {
  color: var(--green);
  background: var(--green-soft);
}
.stock-pill.is-out {
  color: #7a2030;
  background: #fff0f3;
}
.home-shop-body p {
  margin: 0;
  min-height: 40px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.home-shop-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12.5px;
}
.home-shop-meta strong {
  color: #172018;
  font-size: 15px;
}
.add-to-cart,
.cart-checkout,
.checkout-submit {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--green);
  color: white;
  font-weight: 900;
}
.add-to-cart.is-added {
  background: #243128;
}
.cart-panel,
.checkout-summary {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: var(--cv-card-shadow);
}
.cart-panel-head,
.checkout-summary-head,
.cart-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.cart-panel-head div,
.checkout-summary-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.cart-panel-head button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}
.cart-items,
.checkout-items {
  display: grid;
  gap: 10px;
  max-height: 330px;
  overflow: auto;
}
.cart-item,
.checkout-item {
  display: grid;
  grid-template-columns: 44px 1fr auto 28px;
  gap: 9px;
  align-items: center;
}
.cart-item div,
.checkout-item > span {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--soft);
  overflow: hidden;
}
.cart-item img,
.checkout-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item span,
.checkout-item strong {
  font-size: 13px;
  line-height: 1.25;
}
.checkout-item small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.cart-item button,
.checkout-item button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: var(--soft);
  color: #7a2030;
  font-size: 18px;
  line-height: 1;
}
.cart-empty {
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}
.cart-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-checkout.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.trust-photo {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--soft);
}
.trust-photo img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}
.trust-note .trust-photo {
  flex: 0 1 360px;
}
.trust-note > div {
  flex: 1 1 420px;
}

.home-category-grid,
.home-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.cv-product-card { padding: 18px; display: grid; gap: 10px; }
.cv-product-compact { grid-template-columns: 42px 1fr; gap: 12px; align-items: start; }

.products-disclaimer {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 860px;
  line-height: 1.65;
}

.cv-pillbar {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  overflow-x: visible;
  padding: 6px 2px 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.cv-pilltab {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: #20271f;
  font-weight: 820;
  font-size: 12.5px;
  line-height: 1;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.cv-pilltab:hover { border-color: rgba(16, 77, 51, 0.22); transform: translateY(-1px); }
.cv-pilltab.is-active {
  background: var(--green);
  color: white;
  border-color: rgba(16, 77, 51, 0.35);
}

.cv-products-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.cv-productline {
  padding: 14px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
}
.cv-thumb {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  color: #2b332c;
  font-size: 16px;
}
.cv-thumb-media {
  overflow: hidden;
}
.cv-thumb-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cv-thumb-media span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.cv-producttext { display: grid; gap: 8px; }
.cv-producttop { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cv-productname { font-size: 15px; font-weight: 860; line-height: 1.25; }
.cv-productmeta { display: flex; gap: 8px; flex-wrap: wrap; }
.cv-productdesc { color: var(--muted); font-size: 13px; line-height: 1.55; }
.cv-productactions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cv-mini.link {
  background: transparent;
  border-color: transparent;
  color: var(--green);
  padding: 0;
  min-height: auto;
}

.cv-empty {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fffdf8;
}
.cv-empty strong { display: block; margin-bottom: 6px; }
.cv-empty p { margin: 0; color: var(--muted); line-height: 1.6; }

.cv-packages {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cv-packageline {
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}
.cv-packagedesc { color: var(--muted); font-size: 13px; line-height: 1.55; margin-top: 6px; }
.cv-packageleft { display: grid; gap: 8px; }
.cv-packageright { display: flex; align-items: center; justify-content: flex-end; }
.package-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.package-preview span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--soft);
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.package-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cv-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--cv-radius);
  background: white;
  box-shadow: var(--cv-soft-shadow);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.cv-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 77, 51, 0.22);
  box-shadow: var(--cv-card-shadow);
}
.cv-card:focus-visible {
  outline: 3px solid rgba(16, 77, 51, 0.22);
  outline-offset: 3px;
}

.prison-results-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.prison-result-card {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--cv-radius);
  background: white;
  box-shadow: var(--cv-soft-shadow);
  color: inherit;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.prison-result-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 77, 51, 0.22);
  box-shadow: var(--cv-card-shadow);
}
.prison-result-card:focus-visible {
  outline: 3px solid rgba(16, 77, 51, 0.22);
  outline-offset: 3px;
}
.prison-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.prison-result-head div {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.prison-result-head strong {
  font-size: 17px;
  line-height: 1.25;
  font-weight: 850;
  color: #172018;
}
.prison-result-head span:not(.cv-pill) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.prison-result-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}
.prison-result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.prison-result-meta > span:last-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}
.prison-result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 2px;
}
.prison-result-actions span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fffdf8;
  color: #263027;
  font-size: 12.5px;
  font-weight: 850;
}
.prison-result-actions span:last-child {
  background: var(--green);
  border-color: rgba(16, 77, 51, 0.35);
  color: white;
}

.cv-category-card {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.cv-category-left { display: flex; align-items: center; gap: 12px; }
.cv-category-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  border: 1px solid rgba(16, 77, 51, 0.18);
  color: var(--green);
  font-weight: 920;
}
.cv-category-card h3 { margin: 0; font-size: 18px; }
.cv-category-card p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.cv-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: #2b332c;
  font-size: 13px;
  font-weight: 820;
}

.product-tabs { margin-top: 16px; }
.product-grid { margin-top: 16px; }
.product-card {
  padding: 18px;
  display: grid;
  gap: 10px;
  border-radius: var(--cv-radius);
}
.product-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.product-head h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.product-card p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 13px; }
.product-meta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
/* moved to .product-card */
.cv-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  font-size: 12px;
  font-weight: 860;
  white-space: normal;
  text-align: center;
  max-width: 150px;
}
.cv-status.ok { color: var(--green); border-color: rgba(16, 77, 51, 0.25); background: var(--green-soft); }
.cv-status.warn { color: #6a4a00; border-color: rgba(154, 110, 0, 0.28); background: #fff6e6; }
.cv-status.bad { color: #7a2030; border-color: rgba(122, 32, 48, 0.25); background: #fff0f3; }

.cv-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.cv-mini {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
  font-weight: 860;
}
.cv-mini.primary { background: var(--green); border-color: rgba(16, 77, 51, 0.35); color: white; }

/* package card styles unused on the single-products home */

.cv-modal {
  border: 0;
  padding: 0;
  width: min(720px, calc(100% - 24px));
  border-radius: 22px;
  box-shadow: 0 32px 120px rgba(16, 20, 18, 0.28);
  background: white;
}
.cv-modal::backdrop { background: rgba(10, 12, 10, 0.52); backdrop-filter: blur(6px); }
.cv-modal-inner { position: relative; margin: 0; padding: 22px; }
.cv-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.cv-modal-content h3 { margin: 0 0 6px; font-size: 22px; }
.cv-modal-content p { margin: 0; color: var(--muted); line-height: 1.65; }

.products-page { margin-top: 46px; }
.products-toolbar {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.products-cats { align-items: center; }
.products-cats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.product-tab,
.product-tab-help {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: white;
  color: #20271f;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 10px 26px rgba(32, 35, 31, 0.045);
}
.product-tab {
  cursor: pointer;
}
.product-tab.is-active {
  background: var(--green);
  border-color: rgba(16, 77, 51, 0.35);
  color: white;
}
.product-tab-help {
  color: var(--green);
}
.products-search {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.products-search-field {
  flex: 1 1 320px;
}
.products-search-field input {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0 14px;
  background: white;
}
.products-to-order { white-space: nowrap; }

.products-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.product-card-compact {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: start;
}
.product-icon {
  width: 92px;
  height: 92px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  border: 1px solid rgba(16, 77, 51, 0.18);
  font-size: 18px;
}
.product-icon-media {
  overflow: hidden;
}
.product-icon-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-main { display: grid; gap: 10px; }
.product-card-compact .cv-actions {
  margin-top: 2px;
}
.products-empty {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fffdf8;
}
.products-empty strong { display: block; margin-bottom: 6px; }
.products-empty p { margin: 0; color: var(--muted); line-height: 1.6; }
.products-more {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}
.products-more:empty {
  display: none;
}
.cv-packageline-page {
  align-items: center;
}

.product-detail-meta {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}
.product-detail-meta strong { font-size: 13px; }
.product-detail-meta .muted { color: var(--muted); line-height: 1.55; }

.checkout-shell {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}
.checkout-form {
  display: grid;
  gap: 14px;
}
.checkout-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: var(--cv-soft-shadow);
}
.checkout-step > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-weight: 900;
}
.checkout-step h3 {
  margin: 0 0 12px;
  font-size: 20px;
}
.checkout-step label,
.checkout-fields label {
  display: grid;
  gap: 7px;
}
.checkout-step input,
.checkout-step select,
.checkout-product-search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fffdf8;
  padding: 0 13px;
}
.checkout-fields {
  display: grid;
  gap: 12px;
}
.checkout-product-search {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.checkout-product-search label {
  flex: 1 1 280px;
}
.checkout-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.checkout-product-card {
  display: grid;
  grid-template-columns: auto 52px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf8;
}
.checkout-product-image {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--soft);
  overflow: hidden;
  color: var(--green);
  font-weight: 900;
}
.checkout-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.checkout-product-copy {
  display: grid;
  gap: 4px;
}
.checkout-product-copy strong {
  font-size: 13px;
  line-height: 1.25;
}
.checkout-product-copy small {
  color: var(--muted);
  font-size: 12px;
}
.checkout-accept {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #263027;
  line-height: 1.45;
}
.checkout-back,
.checkout-submit {
  width: 100%;
}

.cv-toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(23, 32, 24, 0.92);
  color: white;
  font-weight: 760;
  font-size: 13px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}
.cv-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.products-page {
  margin-top: 0;
  padding-top: 34px;
}
.products-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  padding: 28px 0 18px;
  border-bottom: 1px solid rgba(38, 48, 39, 0.1);
}
.products-hero .eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
}
.products-hero h1 {
  max-width: 720px;
  margin: 0;
  color: #172018;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 0.98;
  letter-spacing: 0;
}
.products-hero p {
  max-width: 670px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}
.products-hero-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.products-hero-stats span {
  min-width: 128px;
  padding: 13px 14px;
  border: 1px solid rgba(38, 48, 39, 0.12);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--muted);
  font-size: 13px;
}
.products-hero-stats strong {
  display: block;
  color: #172018;
  font-size: 22px;
}
.catalog-shell {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 22px;
}
.catalog-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}
.catalog-panel,
.catalog-cart {
  border: 1px solid rgba(38, 48, 39, 0.1);
  border-radius: 8px;
  background: #fffdf8;
}
.catalog-panel {
  padding: 14px;
}
.catalog-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.catalog-panel-head span {
  color: #172018;
  font-weight: 850;
}
.catalog-panel-head a {
  color: var(--green);
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}
.catalog-shell .products-cats {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 260px);
  overflow: auto;
  padding-right: 4px;
}
.catalog-shell .product-tab {
  width: 100%;
  min-height: 46px;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #ffffff;
  color: #263027;
  text-align: left;
}
.catalog-shell .product-tab span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog-shell .product-tab strong {
  min-width: 34px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(16, 77, 51, 0.08);
  color: var(--green);
  font-size: 12px;
  text-align: center;
}
.catalog-shell .product-tab.is-active strong {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}
.catalog-cart {
  display: grid;
  gap: 12px;
  padding: 14px;
}
.catalog-cart span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.catalog-cart strong {
  color: #172018;
  font-size: 18px;
}
.catalog-main {
  min-width: 0;
}
.catalog-main .products-toolbar {
  position: sticky;
  top: 80px;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(38, 48, 39, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.95);
  backdrop-filter: blur(12px);
}
.products-result-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
}
.catalog-main .products-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.product-tile {
  display: grid;
  grid-template-rows: 188px 1fr;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(38, 48, 39, 0.1);
  border-radius: 8px;
  background: #ffffff;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.product-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 77, 51, 0.22);
  box-shadow: 0 16px 35px rgba(32, 35, 31, 0.07);
}
.product-tile-media {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f5f4ed;
}
.product-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-tile-media span {
  color: var(--green);
  font-size: 26px;
  font-weight: 850;
}
.product-tile-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}
.product-tile-top,
.product-tile-meta,
.product-tile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.product-tile-top {
  justify-content: space-between;
}
.product-tile-top span,
.product-rating {
  color: var(--muted);
  font-size: 12px;
}
.product-tile-top strong {
  color: #172018;
  font-size: 15px;
}
.product-tile h3 {
  margin: 0;
  color: #172018;
  font-size: 16px;
  line-height: 1.25;
}
.product-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.product-tile-meta span:not(.cv-status) {
  padding: 6px 8px;
  border-radius: 999px;
  background: #f6f4ec;
  color: #526052;
  font-size: 12px;
  font-weight: 720;
}
.product-tile-actions {
  margin-top: auto;
}
.product-tile-actions .button {
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
}
.product-add {
  flex: 1 1 120px;
}
.product-detail-button {
  flex: 0 0 auto;
}

.legal-body {
  max-width: 860px;
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(38, 48, 39, 0.1);
  border-radius: 8px;
  background: #fffdf8;
}
.legal-body h3 {
  margin: 10px 0 0;
  color: #172018;
  font-size: 18px;
}
.legal-body h3:first-child {
  margin-top: 0;
}
.legal-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-shell {
    grid-template-columns: 1fr;
  }
  .catalog-sidebar,
  .catalog-main .products-toolbar {
    position: static;
  }
  .catalog-shell .products-cats {
    display: flex;
    max-height: none;
    overflow-x: auto;
    padding: 0 0 8px;
  }
  .catalog-shell .product-tab {
    width: auto;
    min-width: 180px;
  }
  .catalog-cart {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .catalog-main .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .prison-results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-layout,
  .checkout-shell {
    grid-template-columns: 1fr;
  }
  .cart-panel,
  .checkout-summary {
    position: static;
  }
  .checkout-summary {
    order: -1;
  }
  .category-cards,
  .home-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-category-grid,
  .home-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv-packages { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .products-hero {
    grid-template-columns: 1fr;
    padding-top: 18px;
  }
  .products-hero h1 {
    font-size: 36px;
  }
  .products-hero-stats {
    justify-content: stretch;
  }
  .products-hero-stats span {
    flex: 1 1 130px;
  }
  .catalog-main .products-toolbar,
  .catalog-cart {
    grid-template-columns: 1fr;
  }
  .catalog-main .products-grid {
    grid-template-columns: 1fr;
  }
  .product-tile {
    grid-template-rows: 168px 1fr;
  }
  .with-action { align-items: flex-start; flex-direction: column; }
  .shop-head,
  .shop-toolbar,
  .checkout-product-search {
    align-items: stretch;
    flex-direction: column;
  }
  .category-cards,
  .home-shop-grid,
  .checkout-product-grid {
    grid-template-columns: 1fr;
  }
  .category-card {
    min-height: 74px;
  }
  .home-shop-card {
    grid-template-columns: 104px 1fr;
    grid-template-rows: none;
  }
  .home-shop-image {
    min-height: 100%;
  }
  .cart-panel {
    margin-top: 4px;
  }
  .product-grid { grid-template-columns: 1fr; }
  .product-head { align-items: center; }
  .products-grid { grid-template-columns: 1fr; }
  .product-card-compact { grid-template-columns: 72px 1fr; }
  .product-icon { width: 72px; height: 72px; border-radius: 16px; }
  .products-search { flex-direction: column; align-items: stretch; }
  .prison-results-grid { grid-template-columns: 1fr; }
  .prison-result-head,
  .prison-result-meta {
    align-items: flex-start;
    flex-direction: column;
  }
  .home-category-grid,
  .home-product-grid { grid-template-columns: 1fr; }
  .cv-products-grid { grid-template-columns: 1fr; }
  .cv-productline { grid-template-columns: 1fr; }
  .cv-thumb { width: 46px; height: 46px; border-radius: 16px; }
  .cv-pillbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
  }
}
