/* ── Product Page Layout ── */
.product-page {
  padding: 1.5rem 0 3rem;
  min-height: calc(100vh - 4rem);
}

.product-page__loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 0;
  color: var(--muted-foreground);
}

.product-page__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* ── Spinner ── */
.spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.spinner--large {
  width: 2.5rem;
  height: 2.5rem;
  border-width: 3px;
  color: var(--primary);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Product Gallery ── */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-gallery__main {
  position: relative;
  flex: 1;
}

.product-gallery__carousel {
  overflow: hidden;
  border-radius: calc(var(--radius) * 2);
  aspect-ratio: 1;
  background: var(--muted);
  position: relative;
}

.product-gallery__track {
  display: flex;
  height: 100%;
  transition: transform 0.3s ease;
}

.product-gallery__slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
}

.product-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

/* Badges */
.product-gallery__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  z-index: 5;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.product-gallery__badge--new {
  background: #10b981;
  color: white;
}
.product-gallery__badge--popular {
  background: var(--primary);
  color: white;
}
.product-gallery__badge--sale {
  background: #f43f5e;
  color: white;
}
.product-gallery__badge--limited {
  background: #f59e0b;
  color: white;
}

.product-gallery__discount {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #f43f5e;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  z-index: 5;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Navigation buttons */
.product-gallery__nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 5;
}

.product-gallery__main:hover .product-gallery__nav-btn {
  opacity: 1;
}

.product-gallery__nav-btn--prev {
  right: 0.75rem;
}
.product-gallery__nav-btn--next {
  left: 0.75rem;
}

.product-gallery__nav-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Dots (mobile) */
.product-gallery__dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.375rem;
  z-index: 5;
}

.product-gallery__dot {
  height: 0.5rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.product-gallery__dot--active {
  width: 1.5rem;
  background: white;
}

.product-gallery__dot:not(.product-gallery__dot--active) {
  width: 0.5rem;
  background: rgba(255, 255, 255, 0.5);
}

/* Counter (desktop) */
.product-gallery__counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  border-radius: 9999px;
  padding: 0.375rem 0.75rem;
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  z-index: 5;
  pointer-events: none;
}

/* Thumbnails */
.product-gallery__thumbnails {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.25rem;
}

.product-gallery__thumbnails::-webkit-scrollbar {
  display: none;
}

.product-gallery__thumb {
  width: 5rem;
  height: 5rem;
  border-radius: calc(var(--radius) * 1.2);
  overflow: hidden;
  border: 2px solid transparent;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.6;
  padding: 0;
  background: none;
}

.product-gallery__thumb:hover {
  opacity: 1;
  border-color: color-mix(in oklab, var(--primary) 50%, transparent);
}

.product-gallery__thumb--active {
  border-color: var(--primary);
  opacity: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* ── Product Lightbox ── */
.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.product-lightbox[hidden] {
  display: none;
}

.product-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
}

.product-lightbox__content {
  position: relative;
  z-index: 1;
  width: min(92vw, 56rem);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-lightbox__img {
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
  border-radius: calc(var(--radius) * 1.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  user-select: none;
}

.product-lightbox__close {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  z-index: 2;
  transition: transform 0.2s ease, background 0.2s ease;
}

.product-lightbox__close:hover {
  transform: scale(1.05);
  background: white;
}

.product-lightbox__close svg {
  width: 1.25rem;
  height: 1.25rem;
}

.product-lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  z-index: 2;
  transition: transform 0.2s ease, background 0.2s ease;
}

.product-lightbox__nav:hover {
  transform: translateY(-50%) scale(1.05);
  background: white;
}

.product-lightbox__nav--prev {
  right: 1rem;
}

.product-lightbox__nav--next {
  left: 1rem;
}

.product-lightbox__nav svg {
  width: 1.25rem;
  height: 1.25rem;
}

.product-lightbox__counter {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  z-index: 2;
}

body.product-lightbox-open {
  overflow: hidden;
}

/* ── Product Info ── */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.product-info__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-info__title-wrapper {
  flex: 1;
  min-width: 0;
}

.product-info__title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

/* Rating */
.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-rating__star {
  color: #f59e0b;
  fill: #f59e0b;
}

.product-rating__value {
  font-size: 0.875rem;
  font-weight: 700;
}

.product-rating__count {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Wishlist Button */
.wishlist-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.wishlist-btn:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

.wishlist-btn--active {
  color: #f43f5e;
  fill: #f43f5e;
  border-color: #f43f5e;
}

.wishlist-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Share Button */
.product-share {
  position: relative;
  flex-shrink: 0;
}

.share-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.share-btn:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

.share-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--muted-foreground);
}

.share-menu {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  right: 0;
  min-width: 11rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 0.375rem;
  z-index: 20;
}

.share-menu[hidden] {
  display: none;
}

.share-menu__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  border-radius: calc(var(--radius));
  font-size: 0.875rem;
  color: var(--foreground);
  text-decoration: none;
  transition: background 0.15s ease;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: right;
}

.share-menu__item:hover {
  background: var(--muted);
}

.share-menu__item svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--muted-foreground);
}

.share-menu__item[data-share-action="whatsapp"]:hover svg {
  color: #25d366;
}

.share-menu__item[data-share-action="telegram"]:hover svg {
  color: #0088cc;
}

/* ── Product Price ── */
.product-price {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.product-price__original {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-price__original--hidden {
  display: none;
}

.product-price__original-value {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: line-through;
}

.product-price__discount-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: #f43f5e;
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: calc(var(--radius) * 0.5);
}

.product-price__final {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
}

.product-price__final-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

.product-price__currency {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ── Divider ── */
.product-divider {
  height: 1px;
  background: var(--border);
}

/* ── Color Selector ── */
.color-selector {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.color-selector__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.color-selector__label {
  font-size: 1rem;
  font-weight: 700;
}

.color-selector__selected-name {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.color-selector__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.color-selector__item {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.color-selector__item:hover {
  transform: scale(1.1);
}

.color-selector__item--active {
  border-color: var(--primary);
  transform: scale(1.1);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 20%, transparent);
}

.color-selector__item svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1rem;
  height: 1rem;
}

/* ── Size Selector ── */
.size-selector {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.size-selector__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.size-selector__label {
  font-size: 1rem;
  font-weight: 700;
}

.size-selector__guide-btn {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.size-selector__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.size-selector__item {
  min-width: 3.25rem;
  height: 2.75rem;
  padding: 0 1rem;
  border-radius: calc(var(--radius) * 0.8);
  border: 2px solid var(--border);
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--background);
  cursor: pointer;
  transition: all 0.2s ease;
}

.size-selector__item:hover:not(:disabled) {
  border-color: color-mix(in oklab, var(--primary) 50%, transparent);
}

.size-selector__item--selected {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.size-selector__item:disabled {
  background: color-mix(in oklab, var(--muted) 50%, transparent);
  border-color: color-mix(in oklab, var(--border) 50%, transparent);
  color: var(--muted-foreground);
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ── Quantity Selector ── */
.quantity-selector {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quantity-selector__label {
  font-size: 1rem;
  font-weight: 700;
}

.quantity-selector__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-selector__btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: calc(var(--radius) * 0.8);
  border: 1px solid var(--border);
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quantity-selector__btn:hover:not(:disabled) {
  border-color: var(--primary);
}

.quantity-selector__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.quantity-selector__btn svg {
  width: 1rem;
  height: 1rem;
}

.quantity-selector__value {
  min-width: 4rem;
  height: 2.75rem;
  padding: 0 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  border-radius: calc(var(--radius) * 0.8);
  font-weight: 700;
  font-size: 1rem;
}

/* ── Action Buttons ── */
.product-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

/* Add to Cart */
.add-to-cart-btn {
  flex: 1;
  height: 3rem;
  border-radius: calc(var(--radius) * 1.2);
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.add-to-cart-btn:hover {
  background: var(--primary-dark);
}

.add-to-cart-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.add-to-cart-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* In Cart State */
.in-cart-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.in-cart-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in oklab, #10b981 10%, transparent);
  border: 2px solid color-mix(in oklab, #10b981 20%, transparent);
  border-radius: calc(var(--radius) * 1.2);
  padding: 0.75rem 1rem;
}

.in-cart-banner__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #047857;
}

.in-cart-banner__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.in-cart-banner__controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.in-cart-banner__btn {
  width: 2rem;
  height: 2rem;
  border-radius: calc(var(--radius) * 0.5);
  border: 1px solid color-mix(in oklab, #10b981 30%, transparent);
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.in-cart-banner__btn:hover {
  background: color-mix(in oklab, #10b981 10%, transparent);
}

.in-cart-banner__btn svg {
  width: 0.875rem;
  height: 0.875rem;
}

.in-cart-banner__qty {
  min-width: 2.5rem;
  text-align: center;
  font-weight: 700;
  color: #047857;
}

.view-cart-btn {
  width: 100%;
  height: 3rem;
  border-radius: calc(var(--radius) * 1.2);
  border: 1px solid var(--primary);
  background: var(--background);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.view-cart-btn:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* ── Product Description ── */
.product-description {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-description__title {
  font-size: 1rem;
  font-weight: 700;
}

.product-description__text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.8;
}

/* ── Product Guarantees ── */
.product-guarantees {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.product-guarantee {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem;
  background: color-mix(in oklab, var(--muted) 30%, transparent);
  border: 1px solid color-mix(in oklab, var(--border) 50%, transparent);
  border-radius: calc(var(--radius) * 1.2);
  text-align: center;
}

.product-guarantee__icon {
  width: 2.25rem;
  height: 2.25rem;
  background: color-mix(in oklab, var(--primary) 10%, transparent);
  border-radius: calc(var(--radius) * 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-guarantee__icon svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

.product-guarantee__label {
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.3;
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 299;
  animation: fade-in 0.3s ease;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 32rem;
  background: var(--background);
  border-radius: calc(var(--radius) * 2);
  z-index: 300;
  animation: modal-in 0.3s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translate(-50%, -48%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.modal__header-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.modal__icon {
  width: 2.5rem;
  height: 2.5rem;
  background: color-mix(in oklab, var(--primary) 10%, transparent);
  border-radius: calc(var(--radius) * 1.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal__icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}

.modal__title {
  font-size: 1rem;
  font-weight: 700;
}

.modal__subtitle {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.modal__close {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal__close:hover {
  background: var(--accent);
}

.modal__close svg {
  width: 1.25rem;
  height: 1.25rem;
}

.modal__body {
  padding: 1.25rem;
}

.size-guide-table {
  overflow-x: auto;
  margin-bottom: 1rem;
}

.size-guide-table table {
  width: 100%;
  font-size: 0.875rem;
  text-align: right;
  border-collapse: collapse;
}

.size-guide-table th,
.size-guide-table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 50%, transparent);
}

.size-guide-table th {
  font-weight: 700;
}

.size-guide-table tbody tr:nth-child(even) {
  background: color-mix(in oklab, var(--muted) 30%, transparent);
}

.size-guide-table td:first-child {
  font-weight: 700;
  color: var(--primary);
}

.modal__tips {
  padding: 1rem;
  background: color-mix(in oklab, var(--muted) 30%, transparent);
  border-radius: calc(var(--radius) * 1.2);
}

.modal__tips h4 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.modal__tips ul {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  list-style: disc;
  padding-right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* ── Responsive ── */
@media (min-width: 1024px) {
  .product-page__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .product-gallery {
    flex-direction: column;
    gap: 1rem;
  }

  .product-gallery__carousel {
    aspect-ratio: 4/5;
  }

  .product-gallery__thumbnails {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    width: 100%;
    padding-bottom: 0.25rem;
  }

  .product-gallery__thumb {
    width: 5.5rem;
    height: 5.5rem;
  }

  .product-info__title {
    font-size: 1.875rem;
  }

  .product-price__final-value {
    font-size: 2rem;
  }
}

@media (max-width: 1023px) {
  .product-gallery__nav-btn {
    display: none;
  }

  .product-gallery__counter {
    display: none;
  }

  .product-gallery__carousel {
    aspect-ratio: 1;
  }
}

@media (max-width: 480px) {
  .product-info__title {
    font-size: 1.25rem;
  }

  .product-guarantees {
    grid-template-columns: 1fr;
  }

  .product-guarantee {
    flex-direction: row;
  }
}

/* ── Product Reviews ── */
.product-reviews {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.product-reviews__header {
  margin-bottom: 1.5rem;
}

.product-reviews__title {
  font-size: 1.375rem;
  font-weight: 700;
}

.product-reviews__subtitle {
  margin-top: 0.25rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.product-review-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.2);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.product-review-form__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.product-review-form__rating {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-review-form__star {
  cursor: pointer;
}

.product-review-form__star input {
  display: none;
}

.product-review-form__star span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 0.6);
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.product-review-form__star input:checked + span,
.product-review-form__star:hover span {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.product-review-form .form-textarea {
  width: 100%;
  min-height: 6rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 0.8);
  font-family: inherit;
  font-size: 0.875rem;
  resize: vertical;
}

.product-review-form .form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.product-review-form .form-error {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.product-review-notice {
  background: color-mix(in oklab, var(--muted) 50%, transparent);
  border-radius: calc(var(--radius) * 0.8);
  padding: 0.875rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.product-review-notice a {
  color: var(--primary);
  font-weight: 600;
}

.product-reviews__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-review-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.2);
  padding: 1rem 1.25rem;
}

.product-review-item__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.product-review-item__author {
  display: block;
  font-size: 0.9375rem;
}

.product-review-item__rating {
  display: inline-block;
  margin-top: 0.125rem;
  font-size: 0.75rem;
  color: #f59e0b;
  font-weight: 700;
}

.product-review-item__date {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  white-space: nowrap;
}

.product-review-item__body {
  line-height: 1.8;
  white-space: pre-wrap;
}

.product-review-item__reply {
  margin-top: 0.875rem;
  padding: 0.875rem;
  background: color-mix(in oklab, var(--primary) 8%, transparent);
  border-radius: calc(var(--radius) * 0.8);
  border-right: 3px solid var(--primary);
}

.product-review-item__reply strong {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
}

.product-review-item__reply p {
  line-height: 1.7;
  white-space: pre-wrap;
}

.product-reviews__empty {
  text-align: center;
  color: var(--muted-foreground);
  padding: 2rem 1rem;
}

.web-alert {
  padding: 0.875rem 1rem;
  border-radius: calc(var(--radius) * 0.8);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.web-alert--success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.web-alert--error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ── Related Products ── */
.related-products {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.related-products__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.products-grid .product-card {
  flex: none;
  width: 100%;
  min-width: 0;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
