/* ==========================================================
   BELVIDA — PRODUCT PAGE
========================================================== */

:root {
  --ink: #163c2e;
  --green: #287456;
  --sage: #dcecdf;
  --mint: #edf6ef;
  --cream: #fffdf8;
  --sand: #f7f2e8;
  --muted: #61796c;
  --line: #d6e2d7;
  --white: #ffffff;
  --black: #101311;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* ==========================================================
   ANNOUNCEMENT
========================================================== */

.notice {
  padding: 8px 20px;
  background: var(--ink);
  color: var(--white);
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.notice a {
  margin-left: 12px;
  color: var(--white);
  text-decoration: underline;
}

/* ==========================================================
   HEADER
========================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 253, 248, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--mint);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
}

.brand b {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.18em;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 13px;
}

.nav nav a {
  position: relative;
}

.nav nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 1px;
  background: var(--green);
  transition: width 0.2s ease;
}

.nav nav a:hover::after {
  width: 100%;
}

.cartnav {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.cartnav::after {
  display: none;
}

.cart-count {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  margin-left: 4px;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 10px;
}

.menu {
  display: none;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

/* ==========================================================
   PRODUCT PAGE
========================================================== */

.product-page {
  padding: 42px 0 76px;
}

.breadcrumbs {
  margin-bottom: 24px;
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 62px;
  align-items: start;
}

.product-stage {
  min-height: 610px;
  padding: 34px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: var(--mint);
}

.product-stage img {
  width: auto;
  height: 520px;
  max-width: 82%;
  max-height: 520px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 22px 26px rgba(22, 60, 46, 0.14));
}

.product-info {
  padding-top: 20px;
}

.eyebrow {
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product-info h1 {
  margin: 9px 0 14px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(42px, 5.4vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0;
}

.product-info h1 .product-volume {
  white-space: nowrap;
}


.product-price {
  font-size: 24px;
  font-weight: 700;
}

.product-description {
  max-width: 600px;
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.research-boundary {
  margin-top: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--sand);
}

.research-boundary strong {
  font-size: 13px;
}

.research-boundary p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

/* ==========================================================
   CART CONTROLS
========================================================== */

.purchase-row {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(250px, max-content) 150px;
  column-gap: 72px;
  align-items: end;
  justify-content: start;
}

.purchase-row.no-variants {
  grid-template-columns: 150px;
  column-gap: 0;
}

.purchase-label {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.variant-picker {
  min-width: 0;
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.variant-pill {
  min-width: 118px;
  height: 48px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.variant-pill small {
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
}

.variant-pill:hover {
  border-color: var(--green);
  transform: translateY(-1px);
}

.variant-pill.is-selected,
.variant-pill[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.variant-pill.is-selected small,
.variant-pill[aria-pressed="true"] small {
  color: rgba(255,255,255,.8);
}

.quantity-field {
  width: 150px;
}

.quantity-control {
  width: 150px;
  height: 48px;
  padding: 0 12px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.quantity-value {
  display: block;
  min-width: 22px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-align: left;
}

.quantity-arrows {
  width: 20px;
  height: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  flex: 0 0 20px;
}

.quantity-arrow {
  width: 20px;
  height: 14px;
  min-width: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 7px;
  line-height: 1;
  cursor: pointer;
}

.quantity-arrow:hover {
  color: var(--green);
}

.product-add-button {
  margin-top: 14px;
  min-width: 150px;
  padding: 0 22px;
}

.primary-button {
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
}

.primary-button:hover {
  background: var(--green);
}

.cart-message {
  min-height: 22px;
  margin: 9px 0 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

/* ==========================================================
   PRODUCT METADATA
========================================================== */

.product-details {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.product-details div {
  padding: 15px 8px 15px 0;
  border-bottom: 1px solid var(--line);
}

.product-details div:nth-child(odd) {
  padding-right: 20px;
}

.product-details span,
.product-details strong {
  display: block;
}

.product-details span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-details strong {
  margin-top: 5px;
  font-size: 12px;
}

.back-link {
  display: inline-block;
  margin-top: 25px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

/* ==========================================================
   RELATED PRODUCTS
========================================================== */

.related-section {
  padding: 64px 0 76px;
  background: var(--sand);
}

.related-heading {
  margin-bottom: 24px;
}

.related-heading h2 {
  margin: 6px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 38px;
  line-height: 1;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.related-card {
  min-width: 0;
}

.related-image {
  height: 310px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  background: var(--mint);
}

.related-image img {
  width: auto;
  height: 94%;
  max-width: 88%;
  max-height: 94%;
  object-fit: contain;
  object-position: center;
}

.related-card h3 {
  margin: 10px 0 3px;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.3;
}

.related-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

/* ==========================================================
   FOOTER
========================================================== */

footer {
  padding: 48px 0 18px;
  background: var(--ink);
  color: var(--white);
}

.footergrid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 34px;
}

.footergrid h4 {
  margin: 0 0 11px;
  font-size: 13px;
}

.footergrid a:not(.brand) {
  display: block;
  margin: 6px 0;
  color: #d4e3da;
  font-size: 12px;
}

.footergrid p {
  max-width: 310px;
  color: #bfd0c5;
  font-size: 12px;
}

.footbrand .mark {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.copyright {
  margin-top: 28px;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #9fb7a8;
  font-size: 11px;
}

/* ==========================================================
   DESKTOP NAV — CENTER WORDS / CART RIGHT
========================================================== */

@media (min-width: 901px) {
  .nav nav {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    transform: none;
    pointer-events: none;
  }

  .nav nav a {
    pointer-events: auto;
  }

  .nav nav .cartnav {
    position: absolute;
    right: 0;
  }
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .product-stage {
    min-height: 460px;
  }

  .product-stage img {
    height: 420px;
    max-height: 420px;
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footergrid {
    grid-template-columns: 1fr 1fr;
  }

  .nav nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 20px;
    right: 20px;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
  }

  .nav nav.open {
    display: flex;
  }

  .menu {
    display: block;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 24px, 1180px);
  }

  .product-page {
    padding-top: 25px;
  }

  .product-stage {
    min-height: 380px;
    padding: 20px;
  }

  .product-stage img {
    height: 345px;
    max-height: 345px;
  }

  .purchase-row,
  .purchase-row.no-variants {
    grid-template-columns: 1fr;
    row-gap: 18px;
    column-gap: 0;
  }

  .quantity-field {
    width: 150px;
  }

  .product-details {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .related-image {
    height: 190px;
  }

  .footergrid {
    grid-template-columns: 1fr;
  }
}

.footer-admin-link{color:inherit;text-decoration:none;opacity:.75;margin-left:10px}.footer-admin-link:hover{opacity:1}


/* Quantity arrows: preserve positioning, remove all button chrome/lines */
.quantity-arrows,
.quantity-arrow,
.quantity-arrow:hover,
.quantity-arrow:focus,
.quantity-arrow:focus-visible,
.quantity-arrow:active {
  border: none !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  border-left: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.quantity-arrow {
  appearance: none !important;
  -webkit-appearance: none !important;
}
