/* ==============================
   Products Layout
   ============================== */
.products-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--spacing-6);
  padding: var(--spacing-8) 0;
}

/* ==============================
   Filter Sidebar
   ============================== */
.filters-sidebar {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-4);
}

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-4);
  padding-bottom: var(--spacing-3);
  border-bottom: 1px solid var(--color-border);
}

.filters-title {
  font-size: var(--text-base);
  font-weight: 600;
}

.filters-clear {
  font-size: var(--text-sm);
  color: var(--color-brand);
  cursor: pointer;
  border: none;
  background: none;
  font-weight: 500;
}

.filters-clear:hover {
  text-decoration: underline;
}

.filter-section {
  margin-bottom: var(--spacing-4);
  padding-bottom: var(--spacing-4);
  border-bottom: 1px solid var(--color-border);
}

.filter-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-section-title {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--spacing-2);
}

.filter-options label {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  padding: 0.35rem 0;
  font-size: var(--text-sm);
  cursor: pointer;
  color: var(--color-text-soft);
}

.filter-options label:hover {
  color: var(--color-text);
}

.filter-options input[type="checkbox"],
.filter-options input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-brand);
}

/* ==============================
   Filter Drawer (Mobile)
   ============================== */
.filter-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: var(--z-overlay);
  display: none;
}

.filter-drawer-overlay.active {
  display: block;
}

.filter-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: white;
  z-index: calc(var(--z-overlay) + 1);
  overflow-y: auto;
  transition: left var(--transition-base);
  padding: var(--spacing-4);
}

.filter-drawer.active {
  left: 0;
}

/* ==============================
   Product Toolbar
   ============================== */
.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-3);
  margin-bottom: var(--spacing-4);
}

.product-count {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.sort-select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  background: white;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238892A8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
  color: var(--color-text);
}

.sort-select:focus {
  border-color: var(--color-brand);
  outline: none;
}

.view-toggle {
  display: flex;
  gap: 4px;
}

.view-toggle-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
  background: white;
  cursor: pointer;
}

.view-toggle-btn svg {
  width: 18px;
  height: 18px;
}

.view-toggle-btn:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

.view-toggle-btn.active {
  border-color: var(--color-brand);
  color: var(--color-brand);
  background: var(--color-brand-light);
}

/* ==============================
   List View
   ============================== */
.products-list-view .product-card {
  flex-direction: row;
}

.products-list-view .product-card-image {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
}

.products-list-view .product-card-body {
  flex: 1;
}

/* ==============================
   Product Detail Layout
   ============================== */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-8);
  padding: var(--spacing-8) 0;
}

/* ==============================
   Product Gallery
   ============================== */
.product-gallery {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--spacing-3);
}

.product-gallery-main {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: zoom-in;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-gallery-main img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.product-gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
}

.product-gallery-thumb {
  width: 72px;
  height: 72px;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  overflow: hidden;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast);
}

.product-gallery-thumb img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

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

.product-gallery-thumb:hover {
  border-color: var(--color-brand);
}

/* ==============================
   Product Info
   ============================== */
.product-info-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--spacing-3);
}

.product-info-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-3);
  margin-bottom: var(--spacing-4);
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

.product-info-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-info-price {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--spacing-3);
}

.product-info-desc {
  font-size: var(--text-base);
  color: var(--color-text-soft);
  margin-bottom: var(--spacing-4);
  line-height: 1.7;
}

/* Variants */
.variant-group {
  margin-bottom: var(--spacing-4);
}

.variant-label {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--spacing-2);
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-2);
}

.variant-btn {
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: white;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--color-text-soft);
}

.variant-btn:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.variant-btn.active {
  border-color: var(--color-brand);
  background: var(--color-brand-light);
  color: var(--color-brand);
  font-weight: 600;
}

/* Quantity */
.qty-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  width: fit-content;
}

.qty-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: none;
  cursor: pointer;
  color: var(--color-text);
  transition: background var(--transition-fast);
}

.qty-btn:hover {
  background: var(--color-surface-dark);
}

.qty-btn svg {
  width: 16px;
  height: 16px;
}

.qty-input {
  width: 56px;
  height: 40px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  -moz-appearance: textfield;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Product Actions */
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-2);
  margin-bottom: var(--spacing-4);
}

.product-actions .btn {
  flex: 1;
  min-width: 140px;
}

/* ==============================
   Specs Table
   ============================== */
.specs-table {
  width: 100%;
}

.specs-table tr td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}

.specs-table tr td:first-child {
  font-weight: 600;
  color: var(--color-text);
  width: 35%;
  background: var(--color-surface);
}

.specs-table tr:last-child td {
  border-bottom: none;
}

/* ==============================
   Recently Viewed
   ============================== */
.recently-viewed {
  overflow-x: auto;
  padding-bottom: var(--spacing-4);
}

.recently-viewed-inner {
  display: flex;
  gap: var(--spacing-4);
  min-width: min-content;
}

.recently-viewed-inner .product-card {
  min-width: 220px;
  max-width: 220px;
}

.recently-viewed-inner .product-card-image {
  height: 160px;
}

/* ==============================
   Responsive
   ============================== */
@media (max-width: 1023px) {
  .products-layout {
    grid-template-columns: 1fr;
  }

  .filters-sidebar {
    display: none;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    grid-template-columns: 1fr;
  }

  .product-gallery-thumbs {
    flex-direction: row;
    overflow-x: auto;
  }

  .product-gallery-thumb {
    flex-shrink: 0;
  }

  .product-gallery-main {
    height: 360px;
  }
}

@media (max-width: 767px) {
  .products-list-view .product-card {
    flex-direction: column;
  }

  .products-list-view .product-card-image {
    width: 100%;
    height: 180px;
  }

  .product-gallery-main {
    height: 280px;
  }

  .product-info-title {
    font-size: var(--text-xl);
  }

  .product-actions {
    flex-direction: column;
  }

  .product-actions .btn {
    min-width: 0;
  }
}

/* ==============================
   Premium Products Grid
   ============================== */
.products-premium {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-background) 100%);
}

.products-premium .section-header {
  text-align: center;
  margin-bottom: var(--spacing-10);
}

.products-premium .section-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-brand);
  background: var(--color-brand-light);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-4);
}

.products-premium .section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--spacing-4);
  font-family: var(--font-heading);
  line-height: 1.2;
}

.products-premium .section-text {
  font-size: var(--text-md);
  color: var(--color-text-soft);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.products-premium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-6);
}

@media (max-width: 1023px) {
  .products-premium-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-5);
  }
}

@media (max-width: 600px) {
  .products-premium-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-4);
  }
}

/* ==============================
   Product Detail - Hero
   ============================== */
.pd-hero {
  padding: var(--spacing-8) 0 var(--spacing-12);
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-background) 100%);
}

.pd-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  margin-bottom: var(--spacing-6);
  font-size: var(--text-sm);
}

.pd-breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.pd-breadcrumb svg {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.pd-breadcrumb span {
  color: var(--color-text);
  font-weight: 500;
}

.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-10);
  align-items: start;
}

/* ==============================
   Product Detail - Gallery
   ============================== */
.pd-gallery {
  position: sticky;
  top: 100px;
}

.pd-gallery-main {
  position: relative;
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border-light);
  margin-bottom: var(--spacing-3);
}

.pd-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pd-gallery-main:hover img {
  transform: scale(1.05);
}

.pd-gallery-discount {
  position: absolute;
  top: var(--spacing-4);
  left: var(--spacing-4);
  background: var(--color-error);
  color: white;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  z-index: 2;
  letter-spacing: 0.5px;
}

.pd-gallery-zoom {
  position: absolute;
  bottom: var(--spacing-4);
  right: var(--spacing-4);
  width: 44px;
  height: 44px;
  background: white;
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
  transition: all var(--transition-fast);
  z-index: 2;
}

.pd-gallery-zoom:hover {
  background: var(--color-brand);
  color: white;
  transform: scale(1.1);
}

.pd-gallery-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 var(--spacing-3);
  pointer-events: none;
  z-index: 2;
}

.pd-gallery-prev,
.pd-gallery-next {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: all;
  box-shadow: var(--shadow-md);
  color: var(--color-text);
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
}

.pd-gallery-prev:hover,
.pd-gallery-next:hover {
  background: var(--color-brand);
  color: white;
}

.pd-gallery-counter {
  position: absolute;
  bottom: var(--spacing-4);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

.pd-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-2);
}

.pd-gallery-thumb {
  aspect-ratio: 1;
  border: 2px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: white;
  padding: 0;
  transition: all var(--transition-fast);
}

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

.pd-gallery-thumb:hover,
.pd-gallery-thumb.active {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px var(--color-brand-light);
}

/* ==============================
   Product Detail - Info
   ============================== */
.pd-info {
  display: flex;
  flex-direction: column;
}

.pd-info-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-3);
}

.pd-info-category {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-1);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-brand);
  background: var(--color-brand-light);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.pd-info-actions-top {
  display: flex;
  gap: var(--spacing-2);
}

.pd-action-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-soft);
  transition: all var(--transition-fast);
}

.pd-action-btn:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
  background: var(--color-brand-light);
}

.pd-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--spacing-3);
  line-height: 1.3;
  font-family: var(--font-heading);
}

.pd-rating {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  margin-bottom: var(--spacing-4);
  flex-wrap: wrap;
}

.pd-rating-stars {
  display: flex;
  gap: 2px;
  color: var(--color-accent);
}

.pd-rating-value {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
}

.pd-rating-count {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.pd-rating-link {
  font-size: var(--text-sm);
  color: var(--color-brand);
  text-decoration: none;
  font-weight: 500;
}

.pd-rating-link:hover {
  text-decoration: underline;
}

/* Price Block */
.pd-price-block {
  background: linear-gradient(135deg, var(--color-brand-light) 0%, rgba(21, 94, 239, 0.05) 100%);
  border-radius: var(--radius-lg);
  padding: var(--spacing-5);
  margin-bottom: var(--spacing-5);
  border-left: 4px solid var(--color-brand);
}

.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-1);
  margin-bottom: var(--spacing-2);
}

.pd-price-currency {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-brand);
}

.pd-price-main {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--color-brand);
  font-family: var(--font-heading);
  line-height: 1;
}

.pd-price-unit {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-left: var(--spacing-2);
}

.pd-price-original {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  margin-bottom: var(--spacing-2);
}

.pd-price-original span:first-child {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.pd-price-save {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-success);
}

.pd-price-note {
  display: flex;
  align-items: center;
  gap: var(--spacing-1);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--spacing-2);
}

.pd-price-note svg {
  flex-shrink: 0;
}

/* Meta Grid */
.pd-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-3);
  margin-bottom: var(--spacing-5);
}

.pd-meta-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  padding: var(--spacing-3);
  background: white;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
}

.pd-meta-icon {
  width: 40px;
  height: 40px;
  background: var(--color-brand-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand);
  flex-shrink: 0;
}

.pd-meta-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  font-weight: 600;
}

.pd-meta-value {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

/* Variants */
.pd-variants {
  margin-bottom: var(--spacing-4);
}

.pd-variants-title {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--spacing-2);
  color: var(--color-text);
}

.pd-variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-2);
}

.pd-variant-btn {
  padding: 0.6rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 500;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: white;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--color-text-soft);
}

.pd-variant-btn:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.pd-variant-btn.active {
  border-color: var(--color-brand);
  background: var(--color-brand);
  color: white;
}

/* Quantity */
.pd-quantity {
  margin-bottom: var(--spacing-5);
}

.pd-qty-selector {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.pd-qty-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: none;
  cursor: pointer;
  color: var(--color-text);
  transition: all var(--transition-fast);
}

.pd-qty-btn:hover {
  background: var(--color-brand);
  color: white;
}

.pd-qty-input {
  width: 72px;
  height: 48px;
  text-align: center;
  border: none;
  border-left: 2px solid var(--color-border);
  border-right: 2px solid var(--color-border);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  -moz-appearance: textfield;
}

.pd-qty-input::-webkit-inner-spin-button,
.pd-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pd-qty-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--spacing-2);
}

/* Actions */
.pd-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
  margin-bottom: var(--spacing-5);
}

.pd-actions .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-2);
}

/* Trust */
.pd-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-4);
  padding-top: var(--spacing-4);
  border-top: 1px solid var(--color-border-light);
}

.pd-trust-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}

.pd-trust-item svg {
  color: var(--color-success);
}

/* ==============================
   Product Detail - Tabs
   ============================== */
.pd-tabs-section {
  padding: var(--spacing-12) 0;
  background: white;
}

.pd-tabs-header {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border-light);
  margin-bottom: var(--spacing-8);
  overflow-x: auto;
}

.pd-tab-btn {
  padding: var(--spacing-4) var(--spacing-6);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  margin-bottom: -2px;
}

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

.pd-tab-btn.active {
  color: var(--color-brand);
  border-bottom-color: var(--color-brand);
  font-weight: 700;
}

.pd-tabs-content {
  min-height: 300px;
}

.pd-tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.pd-tab-panel.active {
  display: block;
}

.pd-tab-panel h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--spacing-4);
  color: var(--color-text);
}

.pd-tab-panel p {
  color: var(--color-text-soft);
  line-height: 1.8;
  margin-bottom: var(--spacing-4);
}

/* Description Features */
.pd-desc-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-3);
  margin-top: var(--spacing-5);
}

.pd-desc-feature {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  padding: var(--spacing-3);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
}

.pd-desc-feature svg {
  color: var(--color-success);
  flex-shrink: 0;
}

/* Specs */
.pd-specs-grid {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pd-spec-row {
  display: flex;
  border-bottom: 1px solid var(--color-border-light);
}

.pd-spec-row:last-child {
  border-bottom: none;
}

.pd-spec-label {
  width: 40%;
  padding: var(--spacing-3) var(--spacing-4);
  background: var(--color-surface);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.pd-spec-value {
  width: 60%;
  padding: var(--spacing-3) var(--spacing-4);
  font-size: var(--text-sm);
  color: var(--color-text-soft);
}

/* Reviews */
.pd-reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-6);
}

.pd-reviews-summary {
  display: flex;
  gap: var(--spacing-8);
  padding: var(--spacing-6);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-6);
}

.pd-reviews-score {
  text-align: center;
  min-width: 160px;
}

.pd-reviews-number {
  display: block;
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-text);
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: var(--spacing-2);
}

.pd-reviews-stars {
  display: flex;
  justify-content: center;
  gap: 2px;
  color: var(--color-accent);
  margin-bottom: var(--spacing-2);
}

.pd-reviews-score span:last-child {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.pd-reviews-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
}

.pd-review-bar {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.pd-review-bar span:first-child {
  width: 30px;
  text-align: right;
}

.pd-review-bar span:last-child {
  width: 30px;
}

.pd-review-bar-fill {
  flex: 1;
  height: 8px;
  background: var(--color-border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.pd-review-bar-fill::after {
  content: '';
  display: block;
  height: 100%;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  width: inherit;
}

.pd-reviews-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

.pd-review-item {
  padding: var(--spacing-5);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
}

.pd-review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--spacing-3);
}

.pd-review-head strong {
  display: block;
  font-size: var(--text-sm);
  margin-bottom: 2px;
}

.pd-review-stars {
  display: flex;
  gap: 1px;
  color: var(--color-accent);
}

.pd-review-date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.pd-review-text {
  font-size: var(--text-sm);
  color: var(--color-text-soft);
  line-height: 1.7;
  margin-bottom: var(--spacing-3);
}

.pd-review-verified {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-1);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-success);
}

/* Shipping */
.pd-shipping-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-4);
  margin-bottom: var(--spacing-6);
}

.pd-shipping-card {
  padding: var(--spacing-5);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  text-align: center;
}

.pd-shipping-icon {
  width: 56px;
  height: 56px;
  background: var(--color-brand-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand);
  margin: 0 auto var(--spacing-3);
}

.pd-shipping-card h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--spacing-2);
}

.pd-shipping-card p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==============================
   Product Detail - Related
   ============================== */
.pd-related {
  padding: var(--spacing-12) 0;
  background: var(--color-surface);
}

.pd-related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-6);
}

.pd-related-header h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
  font-family: var(--font-heading);
}

.pd-related-viewall {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-1);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-brand);
  text-decoration: none;
  transition: gap var(--transition-fast);
}

.pd-related-viewall:hover {
  gap: var(--spacing-2);
}

.pd-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-6);
}

/* ==============================
   Responsive - Product Detail
   ============================== */
@media (max-width: 1023px) {
  .pd-layout {
    grid-template-columns: 1fr;
    gap: var(--spacing-6);
  }
  
  .pd-gallery {
    position: static;
  }
  
  .pd-gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  .pd-title {
    font-size: var(--text-xl);
  }
  
  .pd-meta-grid {
    grid-template-columns: 1fr;
  }
  
  .pd-desc-features {
    grid-template-columns: 1fr;
  }
  
  .pd-shipping-grid {
    grid-template-columns: 1fr;
  }
  
  .pd-reviews-summary {
    flex-direction: column;
    gap: var(--spacing-4);
  }
  
  .pd-reviews-score {
    min-width: auto;
  }
  
  .pd-tabs-header {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .pd-tab-btn {
    padding: var(--spacing-3) var(--spacing-4);
    font-size: var(--text-xs);
  }
  
  .pd-related-grid {
    grid-template-columns: 1fr;
  }
  
  .pd-gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .pd-gallery-thumb {
    aspect-ratio: 1;
  }
}
