/* ---------- Product card ---------- */
.product-card {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow .2s, transform .2s;
}

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.product-card__media {
  position: relative;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: #fff;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.product-card__grade {
  position: absolute;
  left: 8px;
  top: 8px;
}

.product-card__badge {
  position: absolute;
  right: 8px;
  top: 8px;
}

.product-card__wish {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--c-line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-green);
  opacity: 0;
  transition: opacity .2s;
}

.product-card:hover .product-card__wish,
.product-card__wish.is-active {
  opacity: 1;
}

.product-card__wish.is-active {
  color: var(--c-wine);
  border-color: var(--c-wine);
}

.product-card__wish svg {
  width: 16px;
  height: 16px;
}

.product-card__rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 11px;
  color: var(--c-body);
}

.product-card h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--c-green);
  margin-top: 14px;
  line-height: 1.3;
}

.product-card__sub {
  font-size: 13px;
  color: var(--c-body);
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--c-body);
  margin-top: 12px;
}

.product-card__meta strong {
  color: var(--c-ink);
  font-weight: 700;
}

.product-card__price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 16px 0 12px;
}

.product-card__price strong {
  font-size: 19px;
  font-weight: 700;
  color: var(--c-green);
  letter-spacing: -.01em;
}

.product-card__price s {
  font-size: 12px;
  color: var(--c-muted);
  margin-left: 6px;
  font-weight: 500;
}

.product-card__price span {
  font-size: 12px;
  color: var(--c-body);
}

.product-card .btn {
  margin-top: auto;
  height: 38px;
  font-size: 12px;
}

/* ---------- Product detail ---------- */
.pdp {
  padding: 48px 0 40px;
}

.pdp__grid {
  display: grid;
  grid-template-columns: 1fr 492px;
  gap: 64px;
  align-items: start;
}

.gallery__main {
  border: 1px solid var(--c-line-2);
  border-radius: var(--radius-lg);
  background: #fff;
  aspect-ratio: 605 / 545;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: opacity .2s;
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 34px;
}

.gallery__thumbs button {
  border: 1px solid var(--c-line-2);
  border-radius: 10px;
  background: #fff;
  aspect-ratio: 1;
  padding: 6px;
  overflow: hidden;
}

.gallery__thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery__thumbs button.is-active {
  border: 2px solid var(--c-green);
}

.pdp__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pdp h1 {
  font-size: 40px;
  line-height: 1.1;
  margin: 22px 0 8px;
}

.pdp__botanical {
  font-size: 17px;
  font-style: italic;
  color: var(--c-body);
}

.pdp__botanical b {
  color: var(--c-ink);
}

.pdp__rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--c-body);
  flex-wrap: wrap;
}

.pdp__rating strong {
  font-size: 16px;
  color: var(--c-ink);
}

.pdp__rating .rec {
  color: #2f8a3a;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pdp__rating .sep {
  width: 4px;
  height: 4px;
  background: var(--c-muted);
  border-radius: 50%;
}

.price-box {
  border: 1px solid var(--c-line-2);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 26px;
  background: #fff;
}

.price-box__row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.price-box__row strong {
  font-size: 34px;
  font-weight: 700;
  color: var(--c-green);
  letter-spacing: -.02em;
}

.price-box__row s {
  font-size: 14px;
  color: var(--c-muted);
}

.price-box p {
  font-size: 11px;
  color: var(--c-body);
  margin-top: 10px;
  line-height: 1.6;
}

.variants__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0 20px;
}

.variants__head h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--c-green);
}

.variants__head a {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-blue);
}

.variants {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.variant {
  position: relative;
  border: 1px solid var(--c-line-2);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}

.variant:hover {
  border-color: var(--c-sage);
}

.variant.is-selected {
  border: 2px solid var(--c-green);
  box-shadow: 0 0 0 4px #eef3ee;
  padding: 11px 13px;
}

.variant.is-disabled {
  opacity: .45;
  cursor: not-allowed;
}

.variant span {
  display: block;
  font-size: 12px;
  color: var(--c-body);
}

.variant strong {
  display: block;
  font-size: 15px;
  color: var(--c-ink);
  margin-top: 2px;
}

.variant .pill {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--c-orange);
  border: 0;
  color: #fff;
  font-size: 10px;
  height: 22px;
  padding: 0 8px;
}

.pdp__buy {
  display: grid;
  grid-template-columns: 1fr 66px;
  gap: 12px;
  margin-top: 30px;
}

.pdp__buy2 {
  display: grid;
  grid-template-columns: 128px 1fr 66px;
  gap: 20px;
  margin-top: 20px;
}

.pdp__buy .btn,
.pdp__buy2 .btn {
  height: 48px;
}

.pdp__buy .btn-icon,
.pdp__buy2 .btn-icon {
  width: 100%;
  height: 48px;
  border-radius: 10px;
}

.qty {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  height: 48px;
  border: 1px solid var(--c-line-2);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.qty button {
  border: 0;
  background: transparent;
  height: 100%;
  font-size: 20px;
  font-weight: 700;
}

.qty button.minus {
  color: #c0392b;
}

.qty button.plus {
  color: #22a547;
}

.qty input {
  border: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  -moz-appearance: textfield;
  outline: 0;
}

.qty input::-webkit-inner-spin-button,
.qty input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.trust-box {
  border: 1px solid var(--c-line-2);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
}

.trust-box div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--c-ink);
}

.trust-box svg {
  width: 16px;
  height: 16px;
  color: var(--c-green);
  flex: none;
}

.pdp__stock {
  font-size: 12px;
  margin-top: 8px;
  color: var(--c-muted);
}

.pdp__stock.low {
  color: var(--c-danger);
  font-weight: 600;
}

.pdp__sku {
  font-size: 12px;
  color: var(--c-muted);
  margin-top: 12px;
}

.tabs {
  margin-top: 28px;
  max-width: 605px;
}

.tabs__nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--c-line-2);
}

.tabs__nav button {
  background: transparent;
  border: 0;
  padding: 10px 0 14px;
  margin-right: 64px;
  font-size: 18px;
  white-space: nowrap;
  font-weight: 500;
  color: var(--c-muted);
  position: relative;
}

.tabs__nav button.is-active {
  color: var(--c-green);
  font-weight: 600;
}

.tabs__nav button.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: -22px;
  bottom: -1px;
  height: 4px;
  background: var(--c-green);
}

.tabs__panel {
  display: none;
  padding-top: 36px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-body);
}

.tabs__panel.is-active {
  display: block;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
}

.spec-table th {
  width: 40%;
  color: var(--c-ink);
  font-weight: 600;
}

.review-form {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 24px;
}

.rating-input {
  display: flex;
  gap: 4px;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.rating-input input {
  display: none;
}

.rating-input label {
  cursor: pointer;
  color: #d9ddd6;
}

.rating-input label svg {
  width: 24px;
  height: 24px;
}

.rating-input input:checked~label,
.rating-input label:hover,
.rating-input label:hover~label {
  color: var(--c-star);
}

/* ---------- Product listing ---------- */
.listing {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
  align-items: start;
}

.filters {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.filters h4 {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-terracotta);
  margin: 24px 0 12px;
}

.filters h4:first-child {
  margin-top: 0;
}

.filters a,
.filters label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--c-body);
  padding: 6px 0;
}

.filters a.is-active {
  color: var(--c-green);
  font-weight: 700;
}

.filters a span {
  color: var(--c-muted);
  font-size: 12px;
}

.listing__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 12px;
  flex-wrap: wrap;
}

.listing__toolbar p {
  font-size: 13px;
  color: var(--c-body);
}

.select {
  height: 40px;
  border: 1px solid var(--c-line-2);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  font-size: 13px;
}

.listing .grid-4 {
  grid-template-columns: repeat(3, 1fr);
}

.page-head {
  padding: 56px 0 8px;
}

.page-head h1 {
  font-size: 44px;
  margin-top: 10px;
}

.page-head p {
  font-size: 15px;
  color: var(--c-body);
  margin-top: 10px;
  max-width: 640px;
}

.empty {
  text-align: center;
  padding: 64px 24px;
  background: #fff;
  border: 1px dashed var(--c-line-2);
  border-radius: var(--radius-lg);
  color: var(--c-body);
}

.empty svg {
  width: 40px;
  height: 40px;
  color: var(--c-sage);
  margin: 0 auto 12px;
}

/* =====================================================================
   Product detail — v2 layout (Product Page.pdf)
   ===================================================================== */
.crumbs { font-size: 12px; color: var(--c-muted); padding: 22px 0 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--c-green); }
.crumbs b { color: var(--c-terracotta); font-weight: 600; }
.pdp2 { padding: 8px 0 40px; }
.pdp2__grid { display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: 48px; align-items: start; }
.gallery2 { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 16px; }
.gallery2__thumbs { display: flex; flex-direction: column; gap: 12px; }
.gallery2__thumbs button { border: 1px solid var(--c-line-2); border-radius: 8px; background: #fff; aspect-ratio: 1; padding: 6px; overflow: hidden; }
.gallery2__thumbs button.is-active { border: 2px solid var(--c-green); }
.gallery2__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.gallery2__main { position: relative; background: #f6f7f4; border-radius: 10px; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gallery2__main img { width: 60%; height: 60%; object-fit: contain; transition: opacity .2s; }
.gallery2__main .pill { position: absolute; left: 16px; top: 16px; background: #e9efe6; border-color: transparent; font-weight: 700; }
.spec-list { margin-top: 28px; }
.spec-list div { display: grid; grid-template-columns: 148px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--c-line); font-size: 13px; }
.spec-list b { color: var(--c-ink); font-weight: 700; }
.spec-list span { color: var(--c-body); }
.about-item { margin-top: 28px; }
.about-item h3 { font-family: var(--font-body); font-size: 17px; font-weight: 600; color: var(--c-ink); margin-bottom: 10px; }
.about-item li { position: relative; padding-left: 18px; font-size: 13px; color: var(--c-body); line-height: 1.6; margin-bottom: 8px; }
.about-item li::before { content: "•"; position: absolute; left: 4px; color: var(--c-ink); }

.buy2 .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.buy2 .tags span { background: #e9efe6; color: var(--c-green); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.buy2 h1 { font-size: 40px; line-height: 1.12; margin: 16px 0 10px; }
.buy2__rating { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--c-body); flex-wrap: wrap; }
.buy2__rating strong { color: var(--c-ink); }
.buy2__rating .pill { background: #e9efe6; border-color: transparent; font-size: 11px; }
.buy2__checks { margin: 16px 0 24px; display: flex; flex-direction: column; gap: 8px; }
.buy2__checks li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--c-ink); }
.buy2__checks svg { width: 15px; height: 15px; color: #2e8b57; flex: none; }
.buy2__price { display: flex; align-items: center; gap: 12px; }
.buy2__price strong { font-size: 34px; font-weight: 700; color: var(--c-green); letter-spacing: -.02em; }
.buy2__price s { color: var(--c-muted); font-size: 16px; }
.buy2__ship { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--c-terracotta); margin: 10px 0 24px; }
.buy2__ship svg { width: 16px; height: 16px; }
.sizes__label { font-size: 13px; color: var(--c-body); margin-bottom: 10px; }
.sizes__label b { color: var(--c-ink); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size { border: 1px solid var(--c-line-2); border-radius: 8px; padding: 8px 12px; background: #fff; cursor: pointer; min-width: 112px; }
.size span { display: block; font-size: 11px; color: var(--c-ink); font-weight: 600; }
.size small { display: block; font-size: 11px; color: var(--c-body); margin-top: 2px; }
.size.is-selected { border: 2px solid var(--c-green); padding: 7px 11px; box-shadow: 0 0 0 3px #eef3ee; }
.size.is-disabled { opacity: .45; cursor: not-allowed; }
.purchase { border: 1px solid var(--c-line-2); border-radius: 12px; margin-top: 22px; overflow: hidden; background: #fff; }
.purchase__opt { display: block; padding: 16px 20px; cursor: pointer; }
.purchase__opt + .purchase__opt { border-top: 1px solid var(--c-line); }
.purchase__opt.is-selected { background: #f6f8f4; }
.purchase__row { display: flex; align-items: center; gap: 12px; }
.purchase__row input { accent-color: var(--c-green); width: 16px; height: 16px; }
.purchase__row strong { font-size: 14px; flex: 1; }
.purchase__row s { color: var(--c-muted); font-size: 13px; }
.purchase__row b { font-size: 15px; color: var(--c-ink); }
.purchase__body { margin: 10px 0 0 28px; display: none; }
.purchase__opt.is-selected .purchase__body { display: block; }
.purchase__body select { width: 100%; height: 36px; border: 1px solid var(--c-line-2); border-radius: 8px; padding: 0 10px; font-size: 13px; background: #fff; }
.purchase__body small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--c-body); margin-top: 8px; }
.purchase__body small svg { width: 12px; height: 12px; color: #2e8b57; }
.promo-note { margin-top: 14px; background: #eef5ec; border: 1px solid #d9e8d8; border-radius: 10px; padding: 12px 16px; text-align: center; font-size: 13px; color: var(--c-green); }
.buy2 .pdp__buy { margin-top: 26px; }
.buy2 .pdp__buy2 { margin-top: 18px; }

.badges { background: #f6f7f4; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); padding: 28px 0; }
.badges__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; text-align: center; }
.badge { font-size: 11px; color: var(--c-muted); }
.badge i { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: #e9efe6; align-items: center; justify-content: center; font-style: normal; font-size: 18px; margin-bottom: 8px; }
.badge b { display: block; font-size: 13px; color: var(--c-ink); font-weight: 700; }

.pbanner { background: #f6f7f4; }
.pbanner__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 56px 0; }
.pbanner__text { padding-left: 48px; }
.pbanner h2 { font-size: 52px; line-height: 1.1; margin: 14px 0 32px; color: #8fb299; }
.pbanner h2 em { display: block; font-style: italic; color: var(--c-green); }
.pbanner li { position: relative; padding-left: 24px; font-size: 16px; color: var(--c-ink); margin-bottom: 18px; }
.pbanner li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: #5fa47c; }
.pbanner__img img { max-height: 420px; width: auto; margin: 0 auto; object-fit: contain; }
.ribbon { background: #2f5a3b; color: #fff; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 12px; border-radius: 6px; margin: 28px 0 24px; }
.usecases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.usecase { text-align: center; }
.usecase__media { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 388 / 320; }
.usecase__media img { width: 100%; height: 100%; object-fit: cover; }
.usecase__media span { position: absolute; left: 16px; right: 16px; bottom: 0; background: #2f5a3b; color: #fff; font-size: 12px; font-weight: 600; padding: 8px 10px; border-radius: 4px 4px 0 0; }
.usecase p { font-size: 12px; color: var(--c-body); margin-top: 14px; padding: 0 16px; line-height: 1.5; }
.essential { background: #f6f7f4; padding: 56px 0; margin-top: 56px; }
.essential__grid { display: grid; grid-template-columns: 220px 1fr; gap: 60px; align-items: center; padding-left: 120px; }
.essential__img { background: #fff; border-radius: 8px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.essential__img img { width: 80%; height: 80%; object-fit: contain; }
.essential h2 { color: var(--c-green); font-size: 34px; text-transform: uppercase; letter-spacing: .02em; margin: 8px 0 10px; }
.essential p { font-size: 16px; color: var(--c-ink); margin-bottom: 14px; }
.essential .buy2__rating { font-size: 14px; }

.acc { max-width: 1120px; margin: 0 auto; padding: 20px var(--gutter) 0; }
.acc details { border-bottom: 1px solid var(--c-line); }
.acc summary { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-ink); cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 18px; color: var(--c-green); }
.acc details[open] summary::after { content: "−"; }
.acc .body { padding: 0 0 22px; font-size: 13px; color: var(--c-body); line-height: 1.7; max-width: 1060px; }
.acc .body ul { list-style: disc; padding-left: 18px; }

.action { text-align: center; padding: 56px 0; border-top: 1px solid var(--c-line); }
.action h2 { font-size: 32px; }
.action .eyebrow { display: block; margin-top: 6px; color: var(--c-muted); }
.action .story { max-width: 864px; margin: 28px auto 0; }
.action .story__media { aspect-ratio: 864 / 380; }
.also { text-align: center; padding-top: 56px; }
.also h2 { font-size: 40px; }
.also p { font-size: 13px; color: var(--c-body); margin: 6px 0 36px; }
.also .grid-4 { text-align: left; }

@media (max-width: 1200px) { .pdp2__grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 32px; } .pbanner__text { padding-left: 0; } .essential__grid { padding-left: 0; } }
@media (max-width: 1024px) {
  .pdp2__grid { grid-template-columns: minmax(0, 1fr); }
  .badges__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; }
  .pbanner__grid { grid-template-columns: 1fr; text-align: center; }
  .pbanner li { text-align: left; }
  .usecases { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
  .essential__grid { grid-template-columns: 180px 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .gallery2 { grid-template-columns: minmax(0, 1fr); }
  .gallery2__thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .gallery2__thumbs button { width: 64px; flex: none; }
  .buy2 h1 { font-size: 30px; }
  .buy2__price strong { font-size: 28px; }
  .size { min-width: calc(50% - 4px); }
  .spec-list div { grid-template-columns: 110px 1fr; }
  .badges__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pbanner h2 { font-size: 34px; }
  .essential__grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .essential__img { max-width: 200px; margin: 0 auto; }
  .essential .buy2__rating { justify-content: center; }
  .also h2 { font-size: 30px; }
}
