.product-detail {
  padding-block: var(--space-4) var(--space-12);
}

.product-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.product-gallery__main {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-surface-alt);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-3);
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

.product-gallery__thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
}

.product-gallery__thumb.is-active {
  border-color: var(--color-brand);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.product-info__category {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
}

.product-info__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: var(--space-2);
}

.product-info__region {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-green-dark);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.product-info__region i {
  font-size: 13px;
  color: var(--color-brand);
}

.product-info__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
}

.product-info__stars {
  display: flex;
  gap: 2px;
  color: var(--color-star);
}

.product-info__stars i {
  font-size: 14px;
}

.product-info__stars svg { width: 16px; height: 16px; }

.product-info__review-link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.product-info__sku {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.product-info__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.product-info__price-current {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-brand);
}

.product-info__price-old {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.product-info__price-discount {
  font-size: var(--text-xs);
  font-weight: 700;
  color: white;
  background-color: var(--color-pink);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}

.product-info__delivery {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background-color: var(--color-green-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
}

.product-info__delivery i {
  font-size: 22px;
  color: var(--color-green);
  flex-shrink: 0;
}

.product-info__delivery svg {
  width: 22px;
  height: 22px;
  color: var(--color-green);
  flex-shrink: 0;
}

.product-info__delivery strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-green-dark);
}

.product-info__delivery span {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

.product-option { margin-bottom: var(--space-4); }

.product-option__label {
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.product-option__choices {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.product-option .time-slots {
  width: 100%;
}

.option-btn {
  height: 38px;
  padding: 0 var(--space-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  background-color: white;
}

.option-btn.is-active {
  border-color: var(--color-brand);
  color: var(--color-brand);
  background-color: var(--color-brand-light);
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  width: fit-content;
}

.quantity-selector__btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
}

.quantity-selector__value {
  width: 44px;
  text-align: center;
  font-weight: 700;
  border-left: 2px solid var(--color-border);
  border-right: 2px solid var(--color-border);
  height: 40px;
  line-height: 40px;
}

.product-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.product-actions .btn--brand {
  flex: 1;
}

.product-actions .btn--icon {
  flex: 0 0 auto;
  width: 50px;
  padding: 0;
}

.product-actions .btn--icon i {
  font-size: 18px;
}

.product-tabs {
  margin-top: var(--space-10);
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.product-tabs__nav {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border-light);
}

.product-tabs__btn {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}

.product-tabs__btn.is-active {
  color: var(--color-brand);
  border-bottom-color: var(--color-brand);
}

.product-tabs__panel {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.tab-block + .tab-block {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border-light);
}

.tab-block__title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.tab-block p {
  margin: 0;
}

.tab-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-2);
}

.tab-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.tab-list i {
  color: var(--color-green);
  font-size: 12px;
  margin-top: 4px;
  flex-shrink: 0;
}

/* Delivery info tab */
.delivery-info-grid {
  display: grid;
  gap: var(--space-4);
}

.delivery-info-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
}

.delivery-info-item__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--color-brand-light);
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.delivery-info-item strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.delivery-info-item p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* Reviews tab */
.reviews-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-8);
  padding: var(--space-5);
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
}

.reviews-summary__score {
  text-align: center;
  min-width: 100px;
}

.reviews-summary__number {
  display: block;
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
}

.reviews-summary__stars {
  color: var(--color-star);
  font-size: 14px;
  margin: var(--space-2) 0;
}

.reviews-summary__count {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.reviews-bars {
  display: grid;
  gap: var(--space-2);
  align-self: center;
}

.reviews-bar {
  display: grid;
  grid-template-columns: 12px 1fr 32px;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.reviews-bar__track {
  height: 6px;
  background-color: var(--color-border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.reviews-bar__fill {
  height: 100%;
  background-color: var(--color-star);
  border-radius: var(--radius-full);
}

.reviews-list {
  display: grid;
  gap: var(--space-4);
}

.review-card {
  padding: var(--space-4);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
}

.review-card__header {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.review-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-brand), #ff8c42);
  color: white;
  font-size: var(--text-xs);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-card__name {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: 2px;
}

.review-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.review-card__stars {
  color: var(--color-star);
  font-size: 11px;
}

.review-card__text {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.product-tabs__content {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.product-tabs__content h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  margin: var(--space-4) 0 var(--space-2);
}

.product-tabs__content ul {
  list-style: disc;
  padding-left: var(--space-5);
}

.related-products { margin-top: var(--space-10); }

.related-products .products-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
  .product-detail__grid { grid-template-columns: 1fr; }
  .product-actions { flex-direction: column; }
  .product-tabs__nav { overflow-x: auto; flex-wrap: nowrap; }
  .product-tabs__btn { white-space: nowrap; flex-shrink: 0; }
  .reviews-summary { grid-template-columns: 1fr; gap: var(--space-4); }
  .related-products .products-grid { grid-template-columns: repeat(2, 1fr); }
}
