/* Sections */
.section { padding-block: clamp(56px, 6vw, 84px); }
.section--tight { padding-block: clamp(40px, 4vw, 56px); }
.section__head { margin-bottom: 32px; }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }

/* Carousel */
.carousel { position: relative; min-width: 0; }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 18px) / 3); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 12px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__btn {
  position: absolute; top: 40%; z-index: 3; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
  transform: translateY(-50%); transition: opacity .25s, background-color .25s;
}
.carousel__btn:hover { background: var(--cream); }
.carousel__btn[disabled] { opacity: 0; pointer-events: none; }
.carousel__btn--prev { left: -18px; }
.carousel__btn--prev .chev { margin-left: 3px; }
.carousel__btn--next { right: -18px; }
.carousel__btn--next .chev { margin-left: -3px; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.dots button { width: 6px; height: 6px; border-radius: 50%; background: #d9cdc2; transition: background-color .25s; }
.dots button.is-active { background: var(--ink); }

/* Cards */
.card { scroll-snap-align: start; }
.card--product { position: relative; }
.card a { display: block; }
.card:has(.card__meta) a { display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); background: var(--cream); box-shadow: var(--shadow); }
.card h3 { margin-top: 12px; text-align: center; font: 600 19px/1.3 var(--serif); color: var(--ink); }
.card:has(.card__meta) h3 { display: block; width: 100%; padding-inline: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card:has(.card__meta) h3.is-open { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; }

.card__media { position: relative; display: block; }
.card__tag {
  position: absolute; top: 10px; left: 0; z-index: 1; display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px 3px 8px; border-radius: 0 999px 999px 0; font-size: 11px; font-weight: 500; line-height: 1.4; pointer-events: none;
}
.card__tag--best { background: #712b13; color: #faece7; }
.card__tag--new { background: #0f6e56; color: #e1f5ee; }

.card__meta { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 12px; }
.card__price { font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.card__price strong { font: 600 18px/1 var(--serif); letter-spacing: 0; color: var(--ink); margin-left: 2px; }
.card__old { margin-left: 6px; font-size: 12px; color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(125, 109, 98, .6); }
.card__rating {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 99px;
  background: var(--cream); font-size: 11.5px; font-weight: 500; color: var(--ink);
}
.card__rating i { font-style: normal; font-size: 12px; color: var(--gold); }
.card__delivery { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; font-size: 11.5px; font-weight: 500; letter-spacing: .02em; color: #2f7d4f; }
.card__delivery::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.card__delivery--later { color: var(--wine); }

.card--boxed {
  display: flex; flex-direction: column; padding: 8px 8px 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .25s, box-shadow .25s;
}
.card--boxed:hover { border-color: #dcc9b8; box-shadow: var(--shadow); }
.card--boxed > a { flex: 1; height: 100%; }
.card--boxed img { box-shadow: none; }
.card--boxed h3 { margin-top: 10px; }

.card__actions { position: absolute; top: 16px; right: 16px; z-index: 2; display: flex; flex-direction: column; gap: 8px; }
.card__act {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 2px 8px rgba(60, 35, 20, .12);
  transition: background-color .2s, color .2s, transform .2s;
}
.card__act:hover { background: #fff; transform: scale(1.06); }
.card__act:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.card__act[disabled] { opacity: .6; cursor: progress; }
.card__act svg { width: 18px; height: 18px; stroke-width: 1.6; }
.card__act.is-active { background: var(--wine); color: #fff; }
.card__act.is-active svg { fill: currentColor; }
.card__act[data-cart].is-active svg { fill: none; }

@media (max-width: 767px) {
  .section { padding-block: 44px; }
  .section--tight { padding-block: 36px; }
  .section__head { margin-bottom: 20px; }
  .section__head--row { align-items: flex-start; }

  .carousel__track {
    grid-auto-columns: calc((100% - 3 * 8px) / 1.5); gap: 8px;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .carousel__btn { display: none; }

  .card img { aspect-ratio: 1 / 1.1; }
  .card h3 { font-size: 18px; margin-top: 8px; }
  .card:has(.card__meta) h3 { padding-inline: 2px; }
  .card__meta { flex-direction: column; gap: 4px; padding-top: 4px; }
  .card__rating { height: 20px; padding: 0 7px; font-size: 10px; }
  .card__rating i { font-size: 10px; }
  .card__old { margin-left: 4px; font-size: 10.5px; }
  .card__delivery { margin-top: 5px; font-size: 10px; gap: 5px; }
  .card__delivery::before { width: 5px; height: 5px; }

  .card--boxed { padding: 5px 5px 10px; border-radius: 12px; }
  .card--boxed h3 { margin-top: 6px; }
  .card__actions { top: 9px; right: 9px; gap: 5px; }
  .card__act { width: 32px; height: 32px; }
  .card__act svg { width: 14px; height: 14px; }
}

@media (max-width: 575px) {
  .card__tag { top: 6px; padding: 2px 8px 2px 6px; font-size: 10px; }
  .card__tag svg { width: 10px; height: 10px; }
}
/* Breadcrumb */
.crumbs { padding-block: 18px 6px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.crumbs a:hover { color: var(--brown); }
.crumbs [aria-current] { color: var(--ink); }

/* Layout */
.pdp {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr); gap: clamp(32px, 4.5vw, 72px);
  align-items: start; padding-block: 18px clamp(48px, 5vw, 72px);
}

/* Gallery */
.pdp__gallery { position: sticky; top: calc(var(--header-h) + 64px); min-width: 0; }
.pdp__stage { position: relative; border-radius: 22px; overflow: hidden; background: var(--cream); }
.pdp__slides {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth;
}
.pdp__slides::-webkit-scrollbar { display: none; }
.pdp__slides li { scroll-snap-align: start; }
.pdp__slides img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.pdp__slides img.is-contain,
.pdp__thumbs img.is-contain { object-fit: contain; background: var(--surface); }
.pdp__tag {
  position: absolute; top: 18px; left: 18px; padding: 6px 14px; border-radius: 99px;
  background: rgba(255, 255, 255, .92); box-shadow: 0 4px 14px rgba(60, 35, 20, .1); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--brown);
}
.pdp__dots { display: none; }

.pdp__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.pdp__thumbs button {
  display: block; width: 100%; border-radius: 12px; overflow: hidden; border: 1.5px solid transparent;
  opacity: .7; transition: opacity .2s, border-color .2s;
}
.pdp__thumbs button:hover { opacity: 1; }
.pdp__thumbs button.is-active { opacity: 1; border-color: var(--gold); }
.pdp__thumbs img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* Side thumbs */
@media (min-width: 768px) {
  .pdp__gallery { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 14px; align-items: start; }
  .pdp__stage { grid-column: 2; grid-row: 1; }
  .pdp__thumbs {
    grid-column: 1; grid-row: 1; align-self: stretch; grid-template-columns: 1fr; align-content: start; gap: 10px; margin-top: 0;
    height: 0; min-height: 100%; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain;
  }
  .pdp__thumbs::-webkit-scrollbar { display: none; }
}
@media (min-width: 768px) and (max-width: 1100px) {
  .pdp__gallery { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
  .pdp__thumbs { gap: 8px; }
}

/* Info */
.pdp__info { min-width: 0; }
.pdp__info .eyebrow { margin-bottom: 8px; }
.pdp__title { font: 600 clamp(34px, 3.4vw, 48px)/1.08 var(--serif); color: var(--ink); }

.pdp__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 14px; }
.pdp__eta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.pdp__eta svg { width: 17px; height: 17px; color: var(--gold); }
.pdp__eta strong { color: var(--wine); font-weight: 500; }
.pdp__eta strong.is-today { color: #2f7d4f; }

.pdp__price {
  display: flex; align-items: baseline; gap: 10px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line);
}
.pdp__price strong { font: 600 36px/1 var(--serif); color: var(--ink); }
.pdp__price span { font-size: 13px; color: var(--muted); }
.pdp__lede { margin-top: 14px; font-size: 14.5px; line-height: 1.75; color: var(--text); }

/* Options */
.pdp__form { margin-top: 26px; }
.opt { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.opt__label { display: block; margin-bottom: 10px; padding: 0; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.opt__hint { margin-left: 6px; font-weight: 400; letter-spacing: .04em; text-transform: none; color: var(--muted); }

.opt__pills { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.opt__pills--sm { grid-template-columns: repeat(2, max-content); }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; padding: 8px 18px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  font-size: 14px; font-weight: 500; color: var(--ink); text-align: center;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.opt__pills--sm .pill span { flex-direction: row; gap: 8px; min-height: 46px; border-radius: 99px; padding: 0 20px; }
.pill small { font-size: 11px; font-weight: 400; color: var(--muted); }
.pill:hover span { border-color: rgba(184, 138, 74, .6); }
.pill input:checked + span { border-color: var(--brown); background: #fffaf4; box-shadow: inset 0 0 0 1px var(--brown); }
.pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.veg { position: relative; width: 14px; height: 14px; border: 1.5px solid #3f8a3a; border-radius: 3px; flex: none; }
.veg::after { content: ""; position: absolute; inset: 2.5px; border-radius: 50%; background: #3f8a3a; }
.veg--egg { border-color: #a0522d; }
.veg--egg::after { background: #a0522d; }

.field { position: relative; }
.field input,
.field select {
  width: 100%; height: 50px; padding: 0 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  font: inherit; font-size: 14px; color: var(--ink); appearance: none; -webkit-appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #a39488; }
.field input:focus,
.field select:focus { outline: none; border-color: rgba(90, 55, 32, .5); box-shadow: 0 0 0 4px rgba(184, 138, 74, .12); }
.field input[maxlength] { padding-right: 64px; }
.field__count { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 11.5px; color: var(--muted); }
.field--select select { padding-right: 40px; cursor: pointer; }
.field--select:has(select)::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); pointer-events: none;
}
.field.is-invalid input,
.field.is-invalid select { border-color: var(--wine); }

.opt--delivery { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--cream); }
.opt__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.opt__head .opt__label { margin: 0; }
.pdp__pin { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink); border-bottom: 1px solid var(--gold); padding-bottom: 1px; }
.pdp__pin svg { width: 15px; height: 15px; color: var(--gold); }
.pdp__pin.is-set { border-color: transparent; }
.pdp__pin.is-set strong { font-weight: 500; }
.pdp__pin.is-set em { font-style: normal; color: var(--muted); border-bottom: 1px solid var(--gold); margin-left: 4px; }
.opt__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt__error { min-height: 0; margin-top: 8px; font-size: 12.5px; color: var(--wine); }
.opt__error:empty { display: none; }

/* Weight extras */
.opt__more { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.opt__more a { color: var(--ink); border-bottom: 1px solid var(--gold); }
.opt__more a:hover { color: var(--brown); }

/* Deliver to */
.pdp__deliver {
  display: flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--cream); font-size: 13px; color: var(--muted);
}
.pdp__deliver > svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.pdp__deliver .pdp__pin { margin-left: auto; }

/* Buy */
.pdp__buy { display: flex; gap: 12px; margin-top: 6px; }
.qty {
  flex: none; display: flex; align-items: center; height: 54px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface);
}
.qty button { width: 44px; height: 100%; font-size: 18px; color: var(--ink); border-radius: 99px; }
.qty button:hover { background: var(--cream); }
.qty input { width: 34px; height: 100%; border: 0; background: none; text-align: center; font: 500 15px var(--sans); color: var(--ink); }
.qty input:focus { outline: none; }
.pdp__add { flex: 1; min-height: 54px; font-size: 12.5px; }
.pdp__now { width: 100%; min-height: 52px; margin-top: 10px; }

.pdp__wa {
  display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 14px;
  background: #f1f6ee; color: var(--text); font-size: 13px; line-height: 1.45;
}
.pdp__wa svg { flex: none; width: 24px; height: 24px; color: #2f7d4a; }
.pdp__wa strong { font-weight: 500; color: #2f7d4a; }

.pdp__trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.pdp__trust li {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; text-align: center;
  border: 1px solid var(--line); border-radius: 14px; font-size: 12px; color: var(--muted);
}
.pdp__trust svg { width: 24px; height: 24px; color: var(--gold); }

/* Info boxes */
.pdp__acc { display: grid; gap: 12px; margin-top: 28px; }
.pdp__box { padding: 20px 22px; border-radius: 16px; background: var(--cream); }
.pdp__box-title {
  margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
  font: 600 21px/1.25 var(--serif); color: var(--ink);
}
.pdp__acc-body { font-size: 14px; line-height: 1.75; color: var(--text); }
.pdp__acc-body h3 { margin: 14px 0 4px; font: 600 17px/1.3 var(--serif); color: var(--ink); }
.pdp__acc-body > h3:first-child { margin-top: 0; }
.pdp__acc-body strong { font-weight: 500; color: var(--ink); }
.pdp__acc-body p + p { margin-top: 10px; }
.pdp__acc-body ul { padding-left: 18px; list-style: disc; }
.pdp__acc-body li::marker { color: var(--gold); }
.pdp__acc-body li + li { margin-top: 6px; }

/* Related */
.related { background: var(--cream); border-top: 1px solid var(--line); }
.carousel--related .carousel__track { grid-auto-columns: calc((100% - 3 * 18px) / 4); }
.related .card__rating { background: var(--surface); }

/* Sticky bar */
.pdp-bar { display: none; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 90; padding: 14px 22px; border-radius: 99px;
  background: var(--brown-dark); color: #fff; font-size: 13.5px; box-shadow: 0 14px 34px rgba(43, 26, 18, .25);
  opacity: 0; visibility: hidden; transform: translate(-50%, 12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.toast.is-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* Tablet */
@media (max-width: 1100px) {
  .carousel--related .carousel__track { grid-auto-columns: calc((100% - 2 * 18px) / 3); }
}

@media (max-width: 960px) {
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .pdp__gallery { position: static; }
}

/* Mobile */
@media (max-width: 767px) {
  .crumbs { display: none; }
  .pdp { padding-top: 0; gap: 22px; }

  .pdp__gallery { margin-inline: calc(var(--gutter) * -1); }
  .pdp__stage { border-radius: 0; }
  .pdp__thumbs { display: none; }
  .pdp__tag { top: 14px; left: 16px; }
  .pdp__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; }
  .pdp__dots span { width: 6px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .7); transition: width .25s, background-color .25s; }
  .pdp__dots span.is-active { width: 18px; background: #fff; }

  .pdp__title { font-size: 32px; }
  .pdp__price strong { font-size: 30px; }
  .pdp__lede { font-size: 13.5px; }
  
  .pdp__acc { gap: 10px; margin-top: 22px; }
  .pdp__box { padding: 16px; border-radius: 14px; }
  .pdp__box-title { font-size: 19px; }
  .pdp__acc-body { font-size: 13.5px; }

  .opt__pills { gap: 8px; }
  .pill span { padding: 8px 6px; font-size: 13.5px; }
  .opt--delivery { padding: 16px 14px; }
  .opt__row { grid-template-columns: 1fr; }

  .pdp__trust { gap: 8px; }
  .pdp__trust li { font-size: 11px; padding: 12px 4px; }

  .carousel--related .carousel__track { grid-auto-columns: calc((100% - 3 * 8px) / 1.4); }

  .pdp-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(60, 35, 20, .08);
    transform: translateY(110%); transition: transform .35s var(--ease);
  }
  .pdp-bar.is-show { transform: none; }
  .pdp-bar__price { display: flex; flex-direction: column; line-height: 1.15; }
  .pdp-bar__price strong { font: 600 24px/1 var(--serif); color: var(--ink); }
  .pdp-bar__price span { font-size: 11.5px; color: var(--muted); }
  .pdp-bar .btn { flex: 1; max-width: 220px; min-height: 48px; }
  .toast { bottom: 90px; }
  .page-product { padding-bottom: 72px; }
}
/* Dynamic product additions */
.pdp__head { display: flex; align-items: flex-start; gap: 14px; }
.pdp__head .pdp__title { flex: 1; min-width: 0; }
.pdp__wish { position: static; flex: none; margin-top: 6px; border: 1px solid var(--line); box-shadow: none; }

.pdp__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pdp__badges img { height: 24px; width: auto; }

.pdp__old { margin-left: 4px; font-size: 15px; color: var(--muted); text-decoration: line-through; }
.pdp__tax { margin-top: 2px; font-size: 11.5px; color: var(--muted); }

.opt__fixed { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 14px; color: var(--ink); }
.opt__fixed .opt__label { margin: 0; }
.opt__req { color: var(--wine); }
.opt__row .opt__error { grid-column: 1 / -1; }
.pill--fixed { cursor: default; }
.pill--fixed:hover span { border-color: var(--brown); }

/* Photo upload */
.upload {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 12px 16px;
  border: 1.5px dashed rgba(184, 138, 74, .6); border-radius: 14px; background: #fffaf4; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.upload:hover { border-color: var(--brown); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.upload__preview[hidden] { display: none; }
.upload__preview { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; flex: none; }
.upload__text { font-size: 13px; color: var(--muted); line-height: 1.4; }
.upload__text strong { display: block; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }

/* Busy buttons */
.pdp__add[disabled],
.pdp__now[disabled],
#pdpBarAdd[disabled] { opacity: .7; cursor: progress; }

/* Specs */
.pdp__specs { display: grid; gap: 10px; margin: 0; }
.pdp__specs div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.pdp__specs dt { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pdp__specs dd { margin: 0; color: var(--text); }
.pdp__acc-body > * + * { margin-top: 10px; }
.pdp__acc-body ul { padding-left: 18px; }

/* Add-ons dialog */
.addons {
  width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 28px 28px 22px;
  border: 0; border-radius: 20px; background: var(--bg); color: var(--text); box-shadow: 0 30px 80px rgba(43, 26, 18, .25);
}
.addons::backdrop { background: rgba(43, 26, 18, .45); backdrop-filter: blur(2px); }
.addons__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.addons__close:hover { background: var(--cream); }
.addons__close svg { width: 18px; height: 18px; }
.addons__title { font: 600 clamp(24px, 2.6vw, 30px)/1.2 var(--serif); color: var(--ink); }
.addons__list {
  display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 12px; margin-top: 18px; padding-bottom: 6px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.addon {
  display: flex; flex-direction: column; gap: 4px; padding: 8px 8px 12px; scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, box-shadow .2s;
}
.addon.is-on { border-color: var(--brown); box-shadow: inset 0 0 0 1px var(--brown); }
.addon img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--cream); }
.addon__name { margin-top: 4px; font: 600 16px/1.25 var(--serif); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.addon__price { font-size: 12px; color: var(--muted); }
.addon__btn {
  margin-top: auto; height: 34px; border-radius: 99px; border: 1px solid var(--brown);
  font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--brown);
  transition: background-color .2s, color .2s;
}
.addon__btn[aria-pressed="true"] { background: var(--brown); color: #fff; }
.addons__foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

@media (max-width: 767px) {
  .pdp__wish { width: 34px; height: 34px; margin-top: 2px; }
  .pdp__specs div { grid-template-columns: 90px 1fr; }
  .addons {
    width: 100vw; max-width: none; margin: auto 0 0; padding: 22px 16px calc(16px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
  }
  .addons__list { grid-auto-columns: 140px; }
  .addons__foot .btn { flex: 1; }
}
.card__weight {
    margin-top: 2px;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}
/* Weight toggle */
.weights:not(.is-open) .pill.is-extra:not(:has(input:checked)) { display: none; }
.weights:not(.is-open):has(.is-extra input:checked) .pill:nth-child(4) { display: none; }
.weights.is-open .pill.is-extra { animation: weights-in .25s var(--ease) both; }
@keyframes weights-in { from { opacity: 0; transform: translateY(-4px); } }

.weights__toggle {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; padding: 8px 6px;
  border: 1px dashed rgba(184, 138, 74, .7); border-radius: 14px; background: transparent;
  font: 500 13px/1.3 var(--sans); color: var(--brown); text-align: center;
  transition: border-color .2s, background-color .2s;
}
.weights__toggle:hover { border-color: var(--brown); background: #fffaf4; }
.weights__toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.weights__toggle span { white-space: nowrap; }
.weights__toggle small { font-size: 10.5px; font-weight: 400; color: var(--muted); }
.weights__toggle i {
  display: inline-block; width: 6px; height: 6px; margin-left: 6px;
  border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg) translateY(-2px);
}
.weights.is-open .weights__toggle i { transform: rotate(-135deg) translate(-2px, 0); }

.weights[data-weights]:not(.is-open) .weights__more { display: none; }

@media (max-width: 767px) {
  .weights__toggle { padding: 6px 2px; font-size: 11.5px; }
  .weights__toggle i { margin-left: 4px; }
}
/* Small phones */
@media (max-width: 374px) {
  .weights .opt__pills { gap: 6px; }
  .weights .pill span { padding: 8px 3px; font-size: 12.5px; white-space: nowrap; }
  .weights .pill small { font-size: 10.5px; }
  .weights__toggle { font-size: 11px; }
  .weights__toggle small { font-size: 10px; }
}
/* Add-ons strip */
.pdp-addons__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.pdp-addons__all { flex: none; padding-bottom: 3px; border-bottom: 1px solid var(--gold); }
.pdp-addons {
  margin-top: 22px; padding: 18px 16px 16px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
}
.pdp-addons .eyebrow { margin-bottom: 2px; }
.pdp-addons__title { font: 600 22px/1.2 var(--serif); color: var(--ink); }
.pdp-addons__list {
  display: grid; grid-auto-flow: column; grid-auto-columns: 140px; gap: 10px; margin-top: 14px; padding-bottom: 6px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.pdp-addons .addon { padding: 6px 6px 10px; border-radius: 12px; }
.pdp-addons .addon__name { font-size: 15px; min-height: 2.5em; }
.pdp-addons .addon__btn { height: 32px; }

.addon__btn[hidden],
.addon__step[hidden] { display: none; }
.addon__step {
  display: flex; align-items: center; justify-content: space-between; height: 32px; margin-top: auto; padding: 0 2px;
  border-radius: 99px; background: var(--brown); color: #fff; font-size: 13px; font-weight: 500;
}
.addon__step button { width: 30px; height: 28px; border-radius: 99px; color: #fff; font-size: 16px; line-height: 1; }
.addon__step button:hover { background: rgba(255, 255, 255, .14); }

.pdp-addons__sum {
  display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted);
}
.pdp-addons__sum strong { color: var(--ink); font-weight: 500; white-space: nowrap; }

/* All add-ons */
.addons__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; padding: 2px;
  max-height: calc(100vh - 260px); overflow-y: auto; overscroll-behavior: contain;
}
.addons__grid .addon { padding: 6px 6px 10px; border-radius: 12px; scroll-snap-align: none; }
.addons__grid .addon__name { font-size: 15px; min-height: 2.5em; }
.addons__grid .addon__btn { height: 32px; }
.addons--all .addons__foot { align-items: center; }
.addons__sum { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-right: auto; font-size: 12.5px; color: var(--muted); }
.addons__sum strong { color: var(--ink); font-weight: 500; }

@media (max-width: 767px) {
  .addons__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: calc(100vh - 230px); }
  .addons--all .addons__foot .btn { flex: none; min-width: 120px; }
  .pdp-addons { padding: 16px 12px 14px; }
  .pdp-addons__title { font-size: 20px; }
  .pdp-addons__list { grid-auto-columns: 128px; gap: 8px; }
}
/* Related meta row */
@media (max-width: 767px) {
  .related .card__meta { flex-direction: row; justify-content: center; gap: 4px 8px; padding-top: 6px; }
  .related .card__price strong { margin-left: 0; }
}