/* ========= Product page ========= */
.product-page {
  padding-bottom: 40px;
}

.product-gallery {
  width: 100%;
  background: #eee;
}

.product-gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.product-gallery__track::-webkit-scrollbar {
  display: none;
}

.product-gallery__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 3/4;
  background: #f1f1f1;
}

.product-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.product-gallery__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 10px;
  background: #fff;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  border: 0;
  background: rgba(0, 0, 0, .20);
  cursor: pointer;
}

.dot.is-active {
  background: rgba(0, 0, 0, .55);
}

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

.product-kicker {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: 8px;
}

.product-title {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
}

.product-price {
  font-size: 14px;
  letter-spacing: .06em;
  opacity: .75;
  margin-bottom: 10px;
}

.product-note {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .55;
  margin-bottom: 22px;
}

.product-desc {
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 26px;
  max-width: 60ch;
}

/* selectors */
.product-selectors {
  margin: 10px 0 14px;
  display: grid;
  gap: 14px;
}

.selector__label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: 8px;
}

.selector__value {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .55;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid rgba(0, 0, 0, .16);
  background: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.chip.is-active {
  border-color: rgba(0, 0, 0, .55);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

/* readonly size chip */
.chips--readonly {
  gap: 8px;
}

.chip--static {
  display: inline-flex;
  align-items: center;
  cursor: default;
  opacity: .9;
}

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

.swatch {
  width: 22px;
  height: 22px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, .18);
  background: var(--swatch, #ddd);
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.swatch::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255, 255, 255, .25);
  opacity: .25;
}

.swatch.is-active {
  outline: 2px solid rgba(0, 0, 0, .55);
  outline-offset: 2px;
}

/* Accordion */
.accordion {
  border-top: 1px solid rgba(0, 0, 0, .10);
}

.accordion__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0, 0, 0, .10);
}

.accordion__plus {
  font-size: 18px;
  opacity: .6;
}

.accordion__btn.is-open .accordion__plus {
  transform: rotate(45deg);
}

.accordion__panel {
  padding: 14px 0 18px;
  border-bottom: 1px solid rgba(0, 0, 0, .10);
}

.accordion__content {
  font-size: 14px;
  line-height: 1.65;
  opacity: .9;
}

/* Specs */
.specs {
  display: grid;
  gap: 12px;
}

.spec {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding: 2px 0;
}

.spec__k {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .55;
}

.spec__v {
  font-size: 14px;
  line-height: 1.55;
  opacity: .95;
}

/* Bedding set */
.product-set {
  margin: 18px 0 10px;
  border-top: 1px solid rgba(0, 0, 0, .10);
  padding-top: 16px;
}

.product-set__title {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: .85;
}

.product-set__list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 14px;
  line-height: 1.6;
  opacity: .9;
}

.share-btn {
  border: 1px solid rgba(0, 0, 0, .18);
  background: transparent;
  padding: 10px 12px;
  cursor: pointer;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 11px;
}


.product-actions {
  margin: 14px 0 8px;
}

.add-to-cart-btn {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);

  background: #111;
  color: #fff;

  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;

  cursor: pointer;
  transition: transform .12s ease, opacity .12s ease;
}

.add-to-cart-btn:hover {
  opacity: .92;
}

.add-to-cart-btn:active {
  transform: translateY(1px);
}

.buybox {
  margin-top: 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(0, 0, 0, .08);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.buybox__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.buybox__meta {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .55;
  margin-bottom: 10px;
}

.buybox__price {
  font-size: 20px;
  /* было 14px */
  font-weight: 500;
  letter-spacing: .02em;
  margin-bottom: 14px;
  /* чтобы перед кнопкой было “воздух” */
  color: #111;
}

.buybox__btn{
  width:auto;              /* важно: убираем full-width */
  flex:0 0 auto;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.buybox__note {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: .10em;
  text-transform: uppercase;
  opacity: .55;
}


.buybox__btn{
  background:#111;
  color:#fff;
  border: 1px solid rgba(0,0,0,.14);
}
.buybox__btn:hover{ transform: translateY(-1px); }

.product-desc {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(0, 0, 0, .80);
}

.buybox__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}


.accordion__btn,
.share-btn {
  color: #111 !important;
  -webkit-text-fill-color: #111;
  /* iOS иногда игнорит color */
  text-decoration: none;
}

.accordion__btn * {
  color: inherit !important;
  -webkit-text-fill-color: inherit;
}

@media (max-width: 380px){
  .buybox__row{ flex-direction:column; align-items:stretch; }
  .buybox__btn{ width:100%; }
}

/* ===== Sticky bar (mobile) ===== */
.stickybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;

  display: none;

  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
}

.stickybar__inner{
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.stickybar__meta{
  flex: 1;
  min-width: 0;
}

.stickybar__title{
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(0,0,0,.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stickybar__price{
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(0,0,0,.88);
}

.stickybar__btn{
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: #111;
  color: #fff;

  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.stickybar__btn:active{
  transform: translateY(1px);
}

/* Mobile behavior */
@media (max-width: 860px){
  .stickybar{ display: block; }

  /* чтобы контент не прятался под панелью */
  .product-page{ padding-bottom: 92px; }

  /* убираем огромную кнопку в середине на мобиле */
  .buybox__btn{ display: none; }
}

button,
a {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  /* не обязательно, но помогает не "скруглять по iOS" */
}

.product-page * {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

.product-page .chip {
  color: rgba(0,0,0,0.86) !important;
  -webkit-text-fill-color: rgba(0,0,0,0.86) !important;
}

.product-page .chip * {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}

.product-page .chip.is-active,
.product-page .chip[aria-pressed="true"],
.product-page .chip[aria-selected="true"] {
  color: rgba(0,0,0,0.86) !important;
  -webkit-text-fill-color: rgba(0,0,0,0.86) !important;
}


.product-page a,
.product-page a:visited {
  color: inherit;
}

.buybox__promo-note{
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #b00020;
}



