/* ===== Product page ===== */
.product-page {
  padding: 20px 0 80px;
  background: #fff;
}

.product-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 18px;
}
.product-crumbs a { color: #6b7280; }
.product-crumbs a:hover { color: #f5a623; }
.product-crumbs span:last-child { color: #111827; }

.product-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 28px;
}
.product-tabs__item {
  position: relative;
  padding: 12px 0 14px;
  font-size: 15px;
  font-weight: 500;
  color: #6b7280;
}
.product-tabs__item b {
  font-weight: 700;
  margin-left: 2px;
}
.product-tabs__item:hover { color: #111827; }
.product-tabs__item.is-active {
  color: #111827;
  font-weight: 700;
}
.product-tabs__item.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: #f5a623;
  border-radius: 2px 2px 0 0;
}

/* Top: gallery + buy — left narrower, buy takes the rest */
.product-top {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
  margin-bottom: 48px;
}

/* Gallery: thumbs vertical left | main photo (height = thumbs column) */
.product-gallery {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  min-width: 0;
  width: 100%;
  position: sticky;
  top: 90px;
  justify-self: start;
}
.product-gallery__main {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #f5f6f8;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: auto;
  align-self: stretch;
}
/* Img absolute so thumbs column alone sets gallery height */
.product-gallery__main > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.product-gallery__sale {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: #e53935;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
}
.product-gallery__actions {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-gallery__action {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #374151;
  transition: color 0.2s, border-color 0.2s;
}
.product-gallery__action:hover { color: #e53935; border-color: #e53935; }
.product-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #111827;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.product-gallery__nav:hover { border-color: #f5a623; }
.product-gallery__nav--prev { left: 12px; }
.product-gallery__nav--next { right: 12px; }

.product-gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  overflow: visible;
  height: fit-content;
}
.product-gallery__thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #f5f6f8;
  padding: 0;
}
.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-gallery__thumb.is-active { border-color: #f5a623; }
.product-gallery__thumb--video {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #f5a623;
  background: #fff7e6;
}

/* Buy panel */
.product-buy__title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.4px;
  color: #111827;
  margin-bottom: 14px;
}
.product-buy__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.product-buy__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.product-buy__rating .stars { color: #f5a623; letter-spacing: 1px; }
.product-buy__rating a { color: #6b7280; }
.product-buy__rating a:hover { color: #f5a623; }
.product-buy__sku {
  font-size: 13px;
  color: #9ca3af;
}

.product-variants {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}
.product-variant-form {
  margin: 0;
  padding: 0;
  display: block;
}
.product-variant {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
  cursor: pointer;
}
.product-variant__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.product-variant:hover,
.product-variant.is-active {
  background: #fafafa;
  border-color: #eee;
}
.product-variant__size {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: #f3f4f6;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
a.product-variant__size:hover {
  color: #111827;
}
.product-variant.is-active .product-variant__size {
  background: #fff;
  border: 1.5px solid #f5a623;
  color: #111827;
}
.product-variant__prices { min-width: 0; }
.product-variant__top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}
.product-variant__old {
  font-size: 13px;
  color: #9ca3af;
  text-decoration: line-through;
}
.product-variant__badge {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #e53935;
  padding: 1px 6px;
  border-radius: 4px;
}
.product-variant__current {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
}
.product-variant__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  background: #f5a623;
  color: #141414;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.product-variant__btn:hover {
  background: #e09010;
  transform: translateY(-1px);
}
.product-variant__btn i { font-size: 15px; }

/* Mobile compact CTA — hidden on desktop */
.product-buy__cta { display: none; }

/* Mid: specs + shipping */
.product-mid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.product-specs h2,
.product-ship h2,
.product-descr h2,
.product-reviews-block h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 18px;
  color: #111827;
}
.product-ship h2 i {
  font-size: 16px;
  color: #9ca3af;
  margin-left: 6px;
  vertical-align: middle;
}
.product-specs__list {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}
.product-specs__list > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 16px;
  font-size: 14px;
}
.product-specs__list > div:nth-child(odd) { background: #f9fafb; }
.product-specs__list dt { color: #6b7280; }
.product-specs__list dd { color: #111827; font-weight: 500; }
.product-specs__list a { color: #2563eb; }

.product-ship__city {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 14px;
}
.product-ship__city .bi-geo-alt { color: #f5a623; }
.product-ship__city .bi-chevron-right { margin-left: auto; color: #9ca3af; }

.product-ship__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}
.product-ship__list li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid #f3f4f6;
}
.product-ship__list li:last-child { border-bottom: none; }
.product-ship__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.product-ship__icon--courier { background: #fff7e6; color: #f5a623; }
.product-ship__icon--np { background: #fee2e2; color: #e53935; }
.product-ship__icon--store { background: #fff7e6; color: #f5a623; }
.product-ship__list strong {
  display: block;
  font-size: 14px;
  color: #111827;
  margin-bottom: 2px;
}
.product-ship__list span {
  font-size: 13px;
  color: #6b7280;
}
.product-ship__list a { color: #2563eb; }
.product-ship__list b {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  text-align: right;
  max-width: 150px;
}
.product-ship__free { color: #16a34a !important; }

.product-pay {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.product-pay__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  background: #f5f6f8;
  font-size: 13px;
  color: #374151;
  font-weight: 500;
}
.product-pay__item i { color: #6b7280; font-size: 16px; }

/* Description */
.product-descr {
  max-width: 760px;
  margin-bottom: 48px;
}
.product-descr h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 10px;
}
.product-descr p {
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 12px;
}
.product-descr ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 8px;
}
.product-descr li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.55;
  color: #4b5563;
}
.product-descr li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f5a623;
}

/* Reviews */
.product-reviews-block h2 span {
  color: #9ca3af;
  font-weight: 600;
}
.product-reviews-block__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.product-review-item {
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}
.product-review-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.product-review-item__head strong {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}
.product-review-item__head .stars { color: #f5a623; font-size: 14px; letter-spacing: 1px; }
.product-review-item p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #4b5563;
}
.product-reviews-block__empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed #e5e7eb;
  border-radius: 12px;
  color: #9ca3af;
  font-size: 14px;
}
.product-reviews-block__pager {
  margin-top: 16px;
  text-align: right;
}
.product-tabs__item b {
  font-weight: 700;
  color: #9ca3af;
}

.product-review-form-wrap {
  margin-top: 20px;
}
.product-review-form-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: #f5a623;
  color: #141414;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.product-review-form-toggle:hover { background: #e09010; }
.product-review-form {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}
.product-review-form h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
  color: #111827;
}
.product-review-form__row {
  margin-bottom: 14px;
}
.product-review-form__row label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
}
.product-review-form__row input[type="text"],
.product-review-form__row textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: #111827;
  background: #fff;
  box-shadow: none;
}
.product-review-form__row textarea { resize: vertical; min-height: 96px; }
.product-review-form__row input:focus,
.product-review-form__row textarea:focus {
  outline: none;
  border-color: #f5a623;
}
.product-review-form__stars {
  display: inline-flex;
  gap: 4px;
}
.product-review-form__star {
  position: relative;
  margin: 0;
  cursor: pointer;
}
.product-review-form__star input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.product-review-form__star span {
  font-size: 22px;
  line-height: 1;
  color: #d1d5db;
}
.product-review-form__star.is-active span,
.product-review-form__star:hover span {
  color: #f5a623;
}
.product-review-form__actions {
  display: flex;
  justify-content: flex-end;
}
.product-review-form__actions button {
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.product-review-form__actions button:hover { background: #1f2937; }
.product-review-form__actions button:disabled { opacity: 0.6; cursor: wait; }
.product-review-form__error {
  margin-top: 4px;
  font-size: 12px;
  color: #dc2626;
}
.product-review-form__alert {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
}
.product-review-form__alert.is-success {
  background: #ecfdf5;
  color: #047857;
}
.product-review-form__alert.is-error {
  background: #fef2f2;
  color: #b91c1c;
}
.product-review-form__login {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
}

/* Sticky card */
.product-sticky {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  width: 300px;
  padding: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.18);
}
.product-sticky[hidden] { display: none !important; }
.product-sticky__media {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #f5f6f8;
  margin-bottom: 12px;
}
.product-sticky__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-sticky__sale {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  background: #e53935;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}
.product-sticky__actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-sticky__actions button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #374151;
}
.product-sticky__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-sticky__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 12px;
}
.product-sticky__rating .stars { color: #f5a623; font-size: 13px; }
.product-sticky__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.product-sticky__sizes button {
  min-width: 36px;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}
.product-sticky__sizes button.is-active {
  border-color: #f5a623;
  box-shadow: 0 0 0 1px #f5a623;
  color: #111827;
}
.product-sticky__price { margin-bottom: 12px; }
.product-sticky__price-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}
.product-sticky__old {
  font-size: 12.5px;
  color: #9ca3af;
  text-decoration: line-through;
}
.product-sticky__discount {
  font-size: 11.5px;
  font-weight: 700;
  background: #fef3c7;
  color: #92400e;
  padding: 1px 6px;
  border-radius: 4px;
}
.product-sticky__price strong {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
}
.product-sticky__btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border-radius: 8px;
  background: #f5a623;
  color: #141414;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s;
}
.product-sticky__btn:hover { background: #e09010; }

/* Mobile bottom buy bar */
.product-mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  align-items: center;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -8px 28px rgba(17, 24, 39, 0.12);
}
.product-mobile-bar[hidden] { display: none !important; }
.product-mobile-bar__info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.product-mobile-bar__size {
  flex: 0 0 auto;
  min-width: 40px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1.5px solid #f5a623;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}
.product-mobile-bar__prices {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}
.product-mobile-bar__old {
  font-size: 12px;
  color: #9ca3af;
  text-decoration: line-through;
}
.product-mobile-bar__prices strong {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  white-space: nowrap;
}
.product-mobile-bar__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  background: #f5a623;
  color: #141414;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

/* ===== Responsive: laptop ===== */
@media (max-width: 1280px) {
  .product-top {
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
    gap: 24px;
  }
  .product-gallery {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
  }
  .product-gallery__thumb {
    width: 64px;
    height: 64px;
  }
  .product-buy__title { font-size: 24px; }
  .product-mid { gap: 28px; }
}

/* ===== Responsive: tablet landscape ===== */
@media (max-width: 1100px) {
  .product-page { padding: 16px 0 64px; }
  .product-top {
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
    gap: 20px;
    margin-bottom: 36px;
  }
  .product-gallery {
    position: static;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 8px;
  }
  .product-gallery__thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
  }
  .product-gallery__thumb--video { font-size: 22px; }
  .product-gallery__nav {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .product-gallery__action {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  .product-buy__title { font-size: 22px; }
  .product-variant {
    grid-template-columns: 48px 1fr auto;
    gap: 10px;
    padding: 10px;
  }
  .product-variant__current { font-size: 18px; }
  .product-variant__btn {
    height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }
  .product-mid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 36px;
  }
  .product-sticky { display: none !important; }
}

/* ===== Responsive: tablet portrait — stack ===== */
@media (max-width: 900px) {
  .product-crumbs {
    font-size: 12px;
    margin-bottom: 10px;
    gap: 6px;
    overflow: hidden;
  }
  .product-tabs {
    gap: 8px 14px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 16px;
    margin-left: -4px;
    margin-right: -4px;
    padding: 0 4px;
  }
  .product-tabs::-webkit-scrollbar { display: none; }
  .product-tabs__item {
    white-space: nowrap;
    font-size: 13px;
    padding: 8px 0 10px;
  }

  .product-top {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 28px;
  }

  .product-gallery {
    grid-template-columns: 1fr;
    position: static;
    width: 100%;
    max-width: 100%;
  }
  .product-gallery__main {
    order: 1;
    aspect-ratio: 1 / 1;
    max-height: 52vh;
    border-radius: 12px;
  }
  .product-gallery__main > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .product-gallery__thumbs {
    order: 2;
    flex-direction: row;
    flex-wrap: nowrap;
    height: auto;
    gap: 8px;
    margin-top: 10px;
    padding-bottom: 2px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .product-gallery__thumb {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
  }

  .product-buy {
    min-width: 0;
    max-width: 100%;
  }
  .product-buy__title {
    font-size: 20px;
    margin-bottom: 10px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .product-buy__meta {
    margin-bottom: 14px;
    gap: 8px;
  }

  .product-variants {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    border: none;
    background: transparent;
    margin-bottom: 14px;
  }
  .product-variant {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    min-width: 52px;
    padding: 0;
    margin: 0;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
  }
  .product-variant:hover,
  .product-variant.is-active {
    background: #fff;
    border-color: #f5a623;
    box-shadow: 0 0 0 1px #f5a623;
  }
  .product-variant__size {
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border-radius: 8px;
    background: transparent;
    border: none !important;
    font-size: 14px;
  }
  .product-variant.is-active .product-variant__size {
    background: transparent;
    color: #111827;
  }
  .product-variant__prices,
  .product-variant__btn {
    display: none !important;
  }

  .product-buy__cta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
  }
  .product-buy__cta-price { flex: 1; min-width: 0; }
  .product-buy__cta-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
  }
  .product-buy__cta-old {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
  }
  .product-buy__cta-badge {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #e53935;
    padding: 1px 6px;
    border-radius: 4px;
  }
  .product-buy__cta-price strong {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
  }
  .product-buy__cta-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    padding: 0 22px;
    border-radius: 10px;
    background: #f5a623;
    color: #141414;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
  }

  .product-mid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .product-reviews-block__list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .product-mobile-bar:not([hidden]) {
    display: flex;
  }
}

/* ===== Responsive: phone ===== */
@media (max-width: 768px) {
  .product-page {
    padding: 8px 0 calc(80px + env(safe-area-inset-bottom, 0px));
    overflow-x: clip;
  }
  .product-page > .container {
    max-width: 100%;
    overflow-x: clip;
    padding-left: 14px;
    padding-right: 14px;
  }

  .product-crumbs {
    display: none;
  }

  .product-gallery__main {
    aspect-ratio: 1 / 1;
    max-height: 46vh;
    border-radius: 10px;
  }
  .product-gallery__sale {
    top: 10px;
    left: 10px;
    font-size: 12px;
    padding: 4px 8px;
  }
  .product-gallery__actions {
    top: 10px;
    right: 10px;
    gap: 6px;
  }
  .product-gallery__action {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
  .product-gallery__nav {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .product-gallery__nav--prev { left: 8px; }
  .product-gallery__nav--next { right: 8px; }
  .product-gallery__thumb {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 8px;
  }

  .product-buy__title {
    font-size: 18px;
    letter-spacing: -0.2px;
    line-height: 1.3;
  }
  .product-buy__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .product-buy__sku { font-size: 12px; }

  /* Size chips + one CTA */
  .product-variants {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    border: none;
    background: transparent;
    margin-bottom: 14px;
  }
  .product-variant {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    padding: 0;
    margin: 0;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
  }
  .product-variant:hover,
  .product-variant.is-active {
    background: #fff;
    border-color: #f5a623;
    box-shadow: 0 0 0 1px #f5a623;
  }
  .product-variant__size {
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border-radius: 8px;
    background: transparent;
    border: none !important;
    font-size: 14px;
  }
  .product-variant.is-active .product-variant__size {
    background: transparent;
    color: #111827;
  }
  .product-variant__prices,
  .product-variant__btn {
    display: none !important;
  }

  .product-buy__cta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
  }
  .product-buy__cta-price {
    flex: 1;
    min-width: 0;
  }
  .product-buy__cta-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
  }
  .product-buy__cta-old {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
  }
  .product-buy__cta-badge {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #e53935;
    padding: 1px 6px;
    border-radius: 4px;
  }
  .product-buy__cta-price strong {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
  }
  .product-buy__cta-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 18px;
    border-radius: 10px;
    background: #f5a623;
    color: #141414;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
  }

  .product-specs h2,
  .product-ship h2,
  .product-descr h2,
  .product-reviews-block h2 {
    font-size: 18px;
    margin-bottom: 12px;
  }
  .product-specs__list > div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 12px;
    font-size: 13px;
  }
  .product-ship__list li {
    grid-template-columns: 36px 1fr;
    gap: 10px;
  }
  .product-ship__list b {
    grid-column: 2;
    text-align: left;
    max-width: none;
    margin-top: -2px;
    font-size: 12.5px;
  }
  .product-pay { grid-template-columns: 1fr; }

  .product-descr {
    max-width: none;
    margin-bottom: 28px;
  }
  .product-descr p,
  .product-descr li { font-size: 14px; }

  .product-reviews-block__list {
    grid-template-columns: 1fr;
  }

  .product-sticky { display: none !important; }
}

/* ===== Responsive: small phone ===== */
@media (max-width: 480px) {
  .product-page { padding: 6px 0 calc(84px + env(safe-area-inset-bottom, 0px)); }
  .product-page > .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .product-buy__title { font-size: 17px; }
  .product-gallery__main {
    max-height: 42vh;
  }
  .product-gallery__thumb {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }
  .product-variant {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
  .product-buy__cta {
    flex-wrap: wrap;
  }
  .product-buy__cta-btn {
    width: 100%;
    height: 46px;
  }
  .product-mobile-bar {
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    gap: 10px;
  }
  .product-mobile-bar__btn {
    height: 44px;
    padding: 0 14px;
    font-size: 14px;
  }
  .product-mobile-bar__prices strong { font-size: 16px; }
}

/* ===== Large desktop ===== */
@media (min-width: 1400px) {
  .product-top {
    grid-template-columns: 480px minmax(0, 1fr);
    gap: 36px;
  }
  .product-gallery {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .product-gallery__thumb {
    width: 72px;
    height: 72px;
  }
}

/* Product page header fixes for phone */
@media (max-width: 768px) {
  .page-product {
    overflow-x: clip;
  }
  .page-product .header__contact { display: none; }
  .page-product .header__actions { margin-left: auto; }
  .page-product .logo { flex: 0 1 auto; }
  .page-product .header__search {
    margin: 8px 10px 10px;
    width: auto;
    max-width: calc(100% - 20px);
    box-sizing: border-box;
  }
  .page-product .header .container {
    padding: 0 10px;
    max-width: 100%;
  }
}
