.product-page {
  padding: 20px 0 70px 0;
}

.breadcrumbs {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs-sep {
  color: #cbd5e1;
}

.breadcrumbs-current {
  color: var(--text-main);
  font-weight: 600;
}

.product-main-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  display: grid;
  grid-template-columns: 500px minmax(0, 1fr);
  gap: 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 50px;
  align-items: start;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gallery-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f1f5f9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.thumb-item {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: #f1f5f9;
  transition: var(--transition);
  flex-shrink: 0;
}

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

.thumb-item:hover {
  border-color: rgba(36, 199, 187, 0.6);
  transform: translateY(-1px);
}

.thumb-item:active {
  transform: scale(0.95);
}

.thumb-item.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(36, 199, 187, 0.35);
}

.product-summary {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.single-product-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
}

.single-product-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.in-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-weight: 600;
  font-size: 13px;
}

.in-stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success);
}

.single-price-box {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 20px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.single-price-current {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-main);
}

.single-price-old {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.single-price-discount {
  font-size: 12px;
  font-weight: 700;
  background: #ef4444;
  color: #fff;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.single-actions-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
  height: 48px;
}

.qty-btn {
  width: 40px;
  height: 100%;
  border: none;
  background: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.qty-btn:hover {
  background: #f1f5f9;
  color: var(--text-main);
}

.qty-input {
  width: 44px;
  height: 100%;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
}

.single-cart-btn-wrap {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
}

.btn-single-add-cart {
  width: 100%;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
}

.btn-single-add-cart:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 16px rgba(36, 199, 187, 0.35);
}

.btn-single-add-cart:active {
  transform: scale(0.97);
}

.btn-single-add-cart.is-loading {
  opacity: 0.8;
  transform: scale(0.98);
  pointer-events: none;
}

.btn-single-add-cart.is-added {
  background-color: #10b981 !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.45), 0 0 0 4px rgba(16, 185, 129, 0.15) !important;
  cursor: pointer !important;
}

.btn-single-add-cart.is-added:hover {
  background-color: #059669 !important;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.55), 0 0 0 4px rgba(16, 185, 129, 0.25) !important;
  transform: translateY(-1px);
}

.btn-single-add-cart.is-added:active {
  transform: scale(0.97);
}

.btn-single-add-cart.is-added.is-pulse {
  animation: checkPulse 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-single-add-cart.is-added > * {
  display: none !important;
}

.btn-single-add-cart.is-added::after {
  content: '';
  display: block;
  width: 26px;
  height: 26px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23ffffff%27%20stroke-width%3D%273.5%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpolyline%20points%3D%2720%206%209%2017%204%2012%27/%3E%3C/svg%3E") no-repeat center / contain;
  animation: checkPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.btn-single-add-cart.is-added.is-reverting::after {
  animation: checkFadeOut 0.28s ease-in forwards;
}

.single-in-cart-note {
  font-size: 12px;
  font-weight: 500;
  color: #059669;
  opacity: 0.85;
  line-height: 1.2;
  text-align: center;
  display: none;
  letter-spacing: -0.01em;
  user-select: none;
}

.single-in-cart-note.is-active {
  display: block;
  animation: noteFadeIn 0.25s ease-out;
}

@keyframes noteFadeIn {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 0.85;
    transform: translateY(0);
  }
}

.btn-single-wish {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-single-wish:hover {
  border-color: #ef4444;
  color: #ef4444;
}

.btn-single-wish.is-active {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

.btn-single-wish.is-active svg {
  fill: #ef4444;
}

.product-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.perk-item i {
  color: var(--primary);
  flex-shrink: 0;
}

.product-tabs-section {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 50px;
}

.tabs-nav {
  display: flex;
  gap: 24px;
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 24px;
}

.tab-btn {
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 10px 0;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

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

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

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

.tab-pane {
  display: none;
  font-size: 14.5px;
  line-height: 1.7;
  color: #334155;
}

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

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

.product-specs-table tr {
  border-bottom: 1px solid #f1f5f9;
}

.product-specs-table td {
  padding: 12px 0;
  font-size: 14px;
}

.product-specs-table td:first-child {
  color: var(--text-muted);
  width: 35%;
}

.product-specs-table td:last-child {
  font-weight: 600;
  color: var(--text-main);
}

.related-section {
  margin-top: 50px;
}

.related-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}

.related-section .products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px;
}

@media (max-width: 992px) {
  .product-main-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px;
  }

  .related-section .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .product-page {
    padding: 12px 0 50px 0;
  }

  .breadcrumbs {
    margin-bottom: 14px;
    font-size: 12px;
  }

  .product-main-card {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 30px;
    gap: 20px;
  }

  .gallery-main {
    border-radius: var(--radius-md);
  }

  .gallery-thumbs {
    gap: 8px;
  }

  .thumb-item {
    width: 60px;
    height: 60px;
  }

  .single-product-title {
    font-size: 20px;
  }

  .single-product-meta {
    gap: 10px;
    font-size: 12px;
    flex-wrap: wrap;
  }

  .single-price-box {
    background: var(--bg-white);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
  }

  .single-price-current {
    font-size: 24px;
  }

  .single-actions-row {
    gap: 10px;
  }

  .quantity-control {
    height: 44px;
  }

  .btn-single-add-cart {
    height: 44px;
    font-size: 13.5px;
    padding: 0 16px;
  }

  .btn-single-wish {
    width: 44px;
    height: 44px;
  }

  .product-perks {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .product-tabs-section {
    padding: 20px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 36px;
  }

  .tabs-nav {
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 18px;
  }

  .tab-btn {
    font-size: 13.5px;
    white-space: nowrap;
    padding: 8px 0;
  }

  .related-section {
    margin-top: 36px;
  }

  .related-title {
    font-size: 18px;
    margin-bottom: 16px;
  }
}
