/* PDP buy bar — qty + Add to bag + wishlist on one row. */

.pd-c .hero__buy-home,
.pd-c .pdp-buy-slot {
  background: transparent;
  background-color: transparent;
}

/* Match section.hero base ground (var(--stage-dark) → #e6d7bf). */
.pd-c .hero__buy,
.pd-c .hero__buy.is-docked,
.hero__buy,
.hero__buy.is-docked {
  background: var(--stage-dark) !important;
  background-color: var(--stage-dark) !important;
}

.pd-c .hero__buy {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
}

.pd-c .hero__buy .qty {
  flex: 0 0 auto;
  height: 46px;
}

.pd-c .hero__buy .qty__btn {
  width: 40px;
  height: 46px;
}

.pd-c .hero__buy .hero__add {
  flex: 1 1 auto;
  flex-basis: auto;
  min-width: 0;
  width: auto;
  height: 46px;
  min-height: 46px;
}

.pd-c .hero__buy .hero__wish {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
}

@media (max-width: 767px) {
  .pd-c .hero__add {
    flex-basis: auto;
  }
}

/* Original Variant C gallery + composition tabs (from backup zip). */

.pd-c .hero__stage,
.pd-c .hero__stage[data-gallery] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  min-width: 0;
  width: 100%;
}

/* Fixed gallery viewport — all slides share one box so thumb swaps never shift layout. */
.pd-c [data-gallery] .hero__product {
  position: relative;
  width: min(100%, calc(var(--bottle-h) * 0.85));
  height: var(--bottle-h);
  min-height: 320px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.pd-c [data-gallery] .hero__bottle {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.pd-c .hero__thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  max-width: min(100%, 28rem);
  z-index: 3;
}

.pd-c .hero__thumb {
  display: block;
  width: 52px;
  height: 52px;
  padding: 0;
  overflow: hidden;
  background: #f4ead8;
  border: 1px solid rgb(36 31 27 / 0.14);
  border-radius: 6px;
  cursor: pointer;
}

.pd-c .hero__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-c .hero__thumb.is-active {
  border-color: #8c4435;
  box-shadow: 0 0 0 1px #8c4435;
}

.pd-c .hero__thumb:focus-visible {
  outline: 2px solid #8c4435;
  outline-offset: 2px;
}

.pd-c .hero__product.is-photo .hero__bottle {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  filter: none;
  border-radius: 10px;
  background: #f7f0e4;
}

.pd-c .hero__product.is-photo .hero__mist,
.pd-c .hero__product.is-photo .hero__glow,
.pd-c .hero__product.is-photo .hero__floor {
  display: none;
}

.pd-c .composition[data-comp-tabs] .composition__title {
  margin-block-end: 1.25rem;
}

.pd-c .comp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.35rem;
  margin-block-end: 1.5rem;
  border-block-end: 1px solid rgb(36 31 27 / 0.12);
}

.pd-c .comp-tabs__tab {
  appearance: none;
  background: none;
  border: 0;
  padding: 0.65rem 0 0.7rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #241f1b;
  cursor: pointer;
  border-block-end: 2px solid transparent;
  margin-block-end: -1px;
}

.pd-c .comp-tabs__tab:hover {
  color: #241f1b;
}

.pd-c .comp-tabs__tab.is-active {
  color: #241f1b;
  border-block-end-color: #241f1b;
}

.pd-c .comp-acc__heading {
  display: none;
  margin: 0;
}

.pd-c .comp-panel {
  display: block;
  max-width: 42rem;
}

.pd-c .comp-panel[hidden] {
  display: none !important;
}

html[dir="rtl"] .pd-c .comp-tabs {
  flex-direction: row-reverse;
}

@media (max-width: 767px) {
  .pd-c [data-gallery] .hero__product {
    width: min(100%, calc(var(--bottle-h) * 0.92));
    min-height: 360px;
  }

  .pd-c .hero__thumbs {
    display: flex;
  }

  .pd-c .hero__thumb {
    width: 52px;
    height: 52px;
  }

  .pd-c .comp-tabs {
    display: none;
  }

  .pd-c .comp-panels {
    border-block-start: 1px solid rgb(36 31 27 / 0.12);
  }

  .pd-c .comp-item {
    border-block-end: 1px solid rgb(36 31 27 / 0.12);
  }

  .pd-c .comp-acc__heading {
    display: block;
  }

  .pd-c .comp-acc__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    min-height: 48px;
    padding: 0.85rem 0;
    appearance: none;
    background: none;
    border: 0;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: start;
    color: #241f1b;
    cursor: pointer;
  }

  .pd-c .comp-acc__btn:focus-visible {
    outline: 2px solid #241f1b;
    outline-offset: 2px;
  }

  .pd-c .comp-acc__mark {
    flex: none;
    width: 1em;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1;
    color: #241f1b;
  }

  .pd-c .comp-acc__mark::before {
    content: "+";
  }

  .pd-c .comp-acc__btn[aria-expanded="true"] .comp-acc__mark::before {
    content: "\2212";
  }

  .pd-c .comp-panel {
    max-width: none;
    padding-block-end: 1rem;
  }

  .pd-c .comp-panel:not([hidden]) {
    display: block;
  }

  .pdp-buy-slot {
    display: block;
    min-height: var(--pdp-buy-h, 4.5rem);
  }

  .pd-c .pdp-buy-slot .hero__buy,
  .pd-c .hero__buy.is-docked {
    margin-block-start: 0;
    padding: 0.65rem 1rem;
    padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
    border-block-start: 1px solid rgb(36 31 27 / 0.12);
    box-shadow: none;
    z-index: 40;
  }

  /* In-flow buy bar: break out of .hero gutter so width matches docked (full viewport). */
  .pd-c .pdp-buy-slot .hero__buy:not(.is-docked) {
    box-sizing: border-box;
    width: calc(100% + 2 * var(--gutter));
    max-width: 100vw;
    margin-inline: calc(-1 * var(--gutter));
  }

  .pd-c .hero__buy.is-docked {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
  }

  .hero__buy.is-docked {
    box-shadow: none;
  }
}

@media (min-width: 768px) {
  .pdp-buy-slot {
    display: none;
  }
}
