.product-page {
  padding-top: calc(var(--header-h) + 1.5rem);
  padding-bottom: 3rem;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.gallery {
  position: static;
}

@media (min-width: 768px) {
  .gallery {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }
}

.gallery-main {
  aspect-ratio: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 0.75rem;
  max-height: 350px;
}

@media (min-width: 768px) {
  .gallery-main {
    max-height: none;
  }
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

.gallery-main.zoomed img {
  transform: scale(1.5);
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.gallery-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--transition);
}

@media (min-width: 768px) {
  .gallery-thumb {
    width: 72px;
    height: 72px;
  }
}

.gallery-thumb.active {
  border-color: var(--accent);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  color: var(--text-muted);
}

.product-info h1 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.product-rating .stars svg {
  width: 18px;
  height: 18px;
  fill: var(--promo);
}

.rating-text {
  font-size: 14px;
  color: var(--text-secondary);
}

.rating-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.price-box {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.price-current-lg {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.price-old-lg {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-discount {
  padding: 3px 8px;
  background: rgba(255, 68, 68, 0.12);
  color: var(--danger);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.price-installment-lg {
  font-size: 14px;
  color: var(--text-secondary);
}

.stock-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--btn-buy);
  font-weight: 500;
  margin-top: 0.5rem;
}

.stock-info svg {
  width: 16px;
  height: 16px;
}

.option-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.option-values {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.option-btn {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  transition: border-color var(--transition), color var(--transition);
}

.option-btn:hover {
  border-color: var(--border-light);
  color: var(--text-primary);
}

.option-btn.active {
  border-color: var(--accent);
  color: var(--accent);
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.qty-label {
  font-size: 14px;
  font-weight: 600;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn-buy-lg {
  width: 100%;
  height: 52px;
  background: var(--btn-buy);
  color: white;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background var(--transition);
}

.btn-buy-lg:hover {
  background: var(--btn-buy-hover);
}

.btn-buy-lg svg {
  width: 20px;
  height: 20px;
}

.btn-fav-lg {
  width: 100%;
  height: 48px;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 15px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: border-color var(--transition);
}

.btn-fav-lg:hover {
  border-color: var(--danger);
}

.btn-fav-lg svg {
  width: 20px;
  height: 20px;
}

.shipping-box {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}

.shipping-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.shipping-title svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.shipping-form {
  display: flex;
  gap: 0.5rem;
}

.shipping-input {
  flex: 1;
  height: 44px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 1rem;
  color: var(--text-primary);
  font-size: 14px;
}

.shipping-input::placeholder {
  color: var(--text-muted);
}

.shipping-input:focus {
  outline: none;
  border-color: var(--accent);
}

.shipping-calc-btn {
  height: 44px;
  padding: 0 1rem;
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.3);
  color: var(--accent);
  font-weight: 500;
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.shipping-calc-btn:hover {
  background: rgba(0, 102, 255, 0.15);
}

.shipping-result {
  margin-top: 0.75rem;
  font-size: 14px;
}

.shipping-result.visible {
  display: block;
}

.guarantee-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(0, 102, 255, 0.04);
  border: 1px solid rgba(0, 102, 255, 0.1);
  border-radius: var(--radius-md);
}

.guarantee-box svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
}

.guarantee-title {
  font-size: 14px;
  font-weight: 600;
}

.guarantee-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.tabs {
  margin-top: 3rem;
}

.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 0.875rem 1.25rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--accent);
  border-color: var(--accent);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-desc {
  color: var(--text-secondary);
  line-height: 1.7;
}

.tab-desc ul {
  padding-left: 1.25rem;
  margin-top: 0.75rem;
}

.tab-desc li {
  list-style: disc;
  margin-bottom: 0.375rem;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--border);
}

.specs-table td {
  padding: 0.875rem 0;
  font-size: 14px;
}

.specs-table td:first-child {
  font-weight: 500;
  width: 40%;
  color: var(--text-primary);
}

.specs-table td:last-child {
  color: var(--text-secondary);
}
