/* ═══════════════════════════════════════
   PRODUCT DETAILS PAGE
═══════════════════════════════════════ */

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.breadcrumb-sep {
  font-size: 8px;
  color: #cbd5e1;
}

/* Product Section Layout */
.product-detail-section {
  display: flex;
  gap: 32px;
  margin-bottom: 48px;
  align-items: flex-start;
}

/* ═══════════════════════════════════════
   LEFT: IMAGE GALLERY
═══════════════════════════════════════ */
.product-gallery {
  flex: 1 1 50%;
  display: flex;
  gap: 14px;
  max-width: 50%;
  min-width: 0;
}

.gallery-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 70px;
  flex-shrink: 0;
  max-height: 440px;
  overflow-y: auto;
  padding-right: 4px;
}

.gallery-thumbnails::-webkit-scrollbar {
  width: 4px;
}
.gallery-thumbnails::-webkit-scrollbar-track {
  background: transparent;
}
.gallery-thumbnails::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 10px;
}

.thumbnail-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 2px solid transparent;
  background-color: #f8fafc;
  padding: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumbnail-item img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.thumbnail-item:hover img {
  transform: scale(1.1);
}

.thumbnail-item.active, .thumbnail-item:hover {
  border-color: var(--primary-color);
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.gallery-main {
  flex: 1;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 18px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  aspect-ratio: 1 / 1;
  max-height: 480px;
  box-shadow: inset 0 2px 10px rgba(255,255,255,0.5);
  border: 1px solid #f1f5f9;
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
  display: block;
}

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

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background-color: rgba(255,255,255,0.9);
  backdrop-filter: blur(5px);
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dark);
  transition: all 0.3s ease;
  opacity: 0;
}

.gallery-main:hover .gallery-nav {
  opacity: 1;
}

.gallery-nav:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav--prev { left: 20px; }
.gallery-nav--next { right: 20px; }

/* ═══════════════════════════════════════
   RIGHT: PRODUCT INFO
═══════════════════════════════════════ */
.product-info {
  flex: 1 1 50%;
  min-width: 0;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.badge-sale,
.badge-new,
.badge-featured,
.badge-bestseller {
  padding: 4px 9px;
  border-radius: 14px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.4;
}

.badge-sale     { background-color: #ffe4e6; color: #e11d48; }
.badge-new      { background-color: #dcfce7; color: #166534; }
.badge-featured { background-color: #fef3c7; color: #92400e; }
.badge-bestseller { background-color: #e0e7ff; color: #3730a3; }

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 8px;
}

.product-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
  letter-spacing: -0.2px;
  margin: 0;
}

.btn-wishlist-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #f1f5f9;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.btn-wishlist-circle:hover, .btn-wishlist-circle.active {
  background-color: #ffe4e6;
  color: #e11d48;
  transform: scale(1.08);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.product-rating .stars {
  color: #fbbf24;
  font-size: 12px;
  letter-spacing: 1px;
}

.product-rating .reviews-count {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.product-pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e2e8f0;
}

.price-current {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.4px;
  line-height: 1.1;
}

.price-old {
  font-size: 14px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}

.price-discount {
  background-color: #fef08a;
  color: #854d0e;
  padding: 3px 8px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 800;
}

/* Variations */
.product-variation {
  margin-bottom: 16px;
}

.variation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.variation-label {
  font-weight: 800;
  color: var(--text-dark);
  font-size: 13px;
}

.variation-label span {
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}

.size-chart-link {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dashed var(--text-muted);
  transition: all 0.3s ease;
}

.size-chart-link:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.color-options, .size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 3px;
  background-color: #f8fafc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.color-btn.active {
  border-color: var(--primary-color);
  background-color: #fff;
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.color-btn img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.size-btn {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background-color: var(--white);
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 32px;
}

.size-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background-color: #f8fafc;
}

.size-btn.active {
  background-color: var(--text-dark);
  color: var(--white);
  border-color: var(--text-dark);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Actions */
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e2e8f0;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  height: 40px;
  padding: 0 5px;
  background-color: var(--white);
  transition: border-color 0.3s ease;
  flex-shrink: 0;
}

.quantity-selector:focus-within {
  border-color: var(--primary-color);
}

.qty-btn {
  width: 28px;
  height: 28px;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.qty-btn:hover {
  background: #e2e8f0;
}

.qty-input {
  width: 36px;
  text-align: center;
  border: none;
  font-weight: 800;
  font-size: 13px;
  color: var(--text-dark);
  background: transparent;
}

.qty-input:focus {
  outline: none;
}

.btn-buy-now,
.btn-add-cart {
  border: none;
  border-radius: 22px;
  height: 40px;
  padding: 0 18px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-buy-now {
  background-color: #f1f5f9;
  color: var(--text-dark);
  flex: 1;
  min-width: 110px;
}

.btn-buy-now:hover {
  background-color: #e2e8f0;
}

.btn-add-cart {
  background: linear-gradient(135deg, var(--primary-color) 0%, #064e3b 100%);
  color: var(--white);
  flex: 1.4;
  min-width: 130px;
  box-shadow: 0 6px 14px rgba(6, 78, 59, 0.18);
}

.btn-add-cart:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(6, 78, 59, 0.26);
}

.btn-buy-now:disabled,
.btn-add-cart:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: grayscale(0.2);
}

/* Meta */
.product-meta-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.meta-link {
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.meta-link i {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.meta-link:hover, .meta-link:hover i {
  color: var(--primary-color);
}

.product-info-table {
  width: 100%;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
  border-collapse: separate;
  border-spacing: 0;
}

.product-info-table td {
  padding: 7px 12px;
  font-size: 12px;
  border-bottom: 1px dashed #e2e8f0;
}

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

.product-info-table td:first-child {
  font-weight: 700;
  color: var(--text-dark);
  width: 30%;
}

.product-info-table td:last-child {
  color: var(--text-muted);
  font-weight: 500;
}

/* ═══════════════════════════════════════
   WHATSAPP ORDER + COMPACT PRODUCT META
═══════════════════════════════════════ */
.product-order-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 14px;
}

.product-order-meta .btn-whatsapp-order {
  margin-bottom: 0;
}

.product-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  font-size: 12px;
}

.product-info-grid .info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-info-grid .info-label {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 11px;
}

.product-info-grid .info-value {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .product-order-meta {
    grid-template-columns: 1fr;
  }

  .product-order-meta .btn-whatsapp-order {
    width: 100%;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════
   COMPARE BADGE on meta-link
═══════════════════════════════════════ */
.meta-link {
  position: relative;
}

.compare-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: 9px;
  background: var(--primary-color);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

/* ═══════════════════════════════════════
   SHARE MODAL
═══════════════════════════════════════ */
.share-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .22s ease;
}

.share-modal.is-open { opacity: 1; }

.share-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.share-modal__panel {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px 20px 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transform: translateY(10px) scale(0.98);
  transition: transform .22s ease;
}

.share-modal.is-open .share-modal__panel {
  transform: translateY(0) scale(1);
}

.share-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: var(--text-dark);
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease, transform .2s ease;
}

.share-modal__close:hover { background: #e2e8f0; transform: rotate(90deg); }

.share-modal__header h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
}

.share-modal__header p {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.share-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 6px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: var(--text-dark);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  font-family: inherit;
}

.share-option:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  border-color: transparent;
}

.share-option i {
  font-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.share-option--whatsapp i  { background: #25d366; }
.share-option--facebook i  { background: #1877f2; }
.share-option--twitter i   { background: #000; }
.share-option--telegram i  { background: #0088cc; }
.share-option--linkedin i  { background: #0a66c2; }
.share-option--pinterest i { background: #e60023; }
.share-option--email i     { background: #64748b; }
.share-option--native i    { background: var(--primary-color); }

.share-link {
  display: flex;
  gap: 6px;
  align-items: stretch;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 4px;
}

.share-link input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0 8px;
  font-size: 12px;
  color: var(--text-dark);
  font-family: inherit;
}

.share-link input:focus { outline: none; }

.share-link button {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background-color .2s ease;
  font-family: inherit;
}

.share-link button:hover { filter: brightness(1.05); }
.share-link button.is-copied { background: #16a34a; }

/* ═══════════════════════════════════════
   TOAST
═══════════════════════════════════════ */
.product-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  z-index: 10001;
  background: var(--text-dark, #111827);
  color: #fff;
  padding: 10px 18px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
  max-width: calc(100vw - 32px);
}

.product-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.product-toast[data-variant="error"] { background: #dc2626; }

@media (max-width: 480px) {
  .share-options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .share-modal__panel { padding: 18px 16px 14px; }
  .product-toast { bottom: 18px; font-size: 12px; padding: 9px 14px; }
}

/* ═══════════════════════════════════════
   PRODUCT DESCRIPTION TABS
═══════════════════════════════════════ */
.product-tabs {
  margin: 8px 0 56px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
}

.product-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 0 8px;
}

.product-tab {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
  font-family: inherit;
}

.product-tab:hover { color: var(--text-dark); }

.product-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.product-tab-panel {
  padding: 22px 24px 24px;
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.65;
  animation: qvFade .2s ease;
}

@keyframes qvFade {
  from { opacity: 0; transform: translateY(2px); }
  to   { opacity: 1; transform: translateY(0); }
}

.product-tab-lead {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  padding-bottom: 14px;
  border-bottom: 1px dashed #e2e8f0;
}

.product-rich-text {
  font-size: 13px;
  line-height: 1.7;
  color: #334155;
  white-space: normal;
}

.product-rich-text p   { margin: 0 0 12px; }
.product-rich-text ul,
.product-rich-text ol  { margin: 0 0 12px 22px; padding: 0; }
.product-rich-text li  { margin: 4px 0; }
.product-rich-text h1,
.product-rich-text h2,
.product-rich-text h3,
.product-rich-text h4  { margin: 16px 0 8px; color: var(--text-dark); font-weight: 800; }
.product-rich-text h1  { font-size: 18px; }
.product-rich-text h2  { font-size: 16px; }
.product-rich-text h3,
.product-rich-text h4  { font-size: 14px; }
.product-rich-text strong { color: var(--text-dark); font-weight: 700; }
.product-rich-text a   { color: var(--primary-color); text-decoration: none; }
.product-rich-text a:hover { text-decoration: underline; }
.product-rich-text img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; }
.product-rich-text table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.product-rich-text table td,
.product-rich-text table th { border: 1px solid #e2e8f0; padding: 6px 10px; font-size: 12px; }
.product-rich-text table th { background: #f8fafc; font-weight: 700; }
.product-rich-text blockquote {
  margin: 12px 0;
  padding: 10px 14px;
  border-left: 3px solid var(--primary-color);
  background: #f8fafc;
  border-radius: 0 6px 6px 0;
  color: var(--text-muted);
  font-style: italic;
}

.product-tab-empty {
  text-align: center;
  padding: 30px 16px;
  color: var(--text-muted);
}

.product-tab-empty i {
  font-size: 28px;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.product-tab-empty p {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--text-dark);
  font-weight: 600;
}

.product-tab-empty small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.product-tab-section-title {
  margin: 14px 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-tab-section-title:first-child { margin-top: 0; }

.product-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.product-spec-table th,
.product-spec-table td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}

.product-spec-table th {
  width: 30%;
  background: #f8fafc;
  font-weight: 700;
  color: var(--text-dark);
}

.product-spec-table td { color: var(--text-muted); }

.product-spec-table tr:last-child th,
.product-spec-table tr:last-child td { border-bottom: none; }

.product-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
}

.product-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 12px;
  background: #f1f5f9;
  color: var(--text-dark);
  font-size: 11px;
  font-weight: 600;
}

.product-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #e2e8f0;
  color: var(--text-dark);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.product-tab.active .product-tab__count {
  background: var(--primary-color);
  color: #fff;
}

/* ── Reviews summary ─────────────────────────── */
.reviews-summary {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: 10px;
  margin-bottom: 18px;
}

.reviews-summary__score {
  text-align: center;
}

.reviews-summary__score .score {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  letter-spacing: -1px;
}

.reviews-summary__score .stars {
  margin: 6px 0 4px;
  letter-spacing: 1px;
  font-size: 13px;
}

.reviews-summary__score .count {
  font-size: 11px;
  color: var(--text-muted);
}

.reviews-summary__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}

.rating-row {
  display: grid;
  grid-template-columns: 32px 1fr 36px;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.rating-row__label { font-weight: 700; color: var(--text-dark); }

.rating-row__bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.rating-row__fill {
  height: 100%;
  background: #fbbf24;
  border-radius: 3px;
  transition: width .3s ease;
}

.rating-row__count { text-align: right; font-weight: 600; }

/* ── Review form ─────────────────────────────── */
.review-flash {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-flash--success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.review-flash--info    { background: #f0f9ff; color: #075985; border: 1px solid #bae6fd; }

.review-form-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 18px;
}

.review-form-wrap summary {
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.review-form-wrap summary::-webkit-details-marker { display: none; }
.review-form-wrap summary i { color: var(--primary-color); }

.review-form-wrap[open] summary {
  border-bottom: 1px solid #e2e8f0;
}

.review-form {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-form__label,
.review-form__field > span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.review-form__field input,
.review-form__field textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  color: var(--text-dark);
  resize: vertical;
}

.review-form__field input:focus,
.review-form__field textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.08);
}

.review-form .error {
  display: block;
  color: #dc2626;
  font-size: 11px;
  margin-top: 4px;
}

/* Star rating input (reversed row for hover fill) */
.star-input {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 2px;
}

.star-input input { display: none; }

.star-input label {
  cursor: pointer;
  font-size: 22px;
  color: #e2e8f0;
  transition: color .15s ease;
  line-height: 1;
}

.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
  color: #fbbf24;
}

.review-submit-btn {
  align-self: flex-start;
  background: linear-gradient(135deg, var(--primary-color, #10b981) 0%, #064e3b 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: filter .2s ease, box-shadow .2s ease;
  font-family: inherit;
}

.review-submit-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 4px 12px rgba(6, 78, 59, 0.2);
}

/* ── Review items ────────────────────────────── */
.review-list { display: flex; flex-direction: column; gap: 12px; }

.review-item {
  padding: 14px;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  background: #fff;
}

.review-item__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.review-item__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.review-item__meta { flex: 1; min-width: 0; }
.review-item__author { font-weight: 700; font-size: 12px; color: var(--text-dark); }
.review-item__date { font-size: 11px; color: var(--text-muted); }
.review-item__stars i { font-size: 11px; }

.review-item__title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-dark);
}

.review-item__body {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #334155;
  white-space: pre-line;
}

/* ── Vendor card ─────────────────────────────── */
.vendor-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  align-items: flex-start;
}

.vendor-card__logo {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.vendor-card__logo img { width: 100%; height: 100%; object-fit: cover; }

.vendor-card__fallback {
  font-size: 30px;
  font-weight: 800;
  color: var(--primary-color);
}

.vendor-card__info { flex: 1; min-width: 0; }

.vendor-card__name {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vendor-card__verified { color: var(--primary-color); font-size: 14px; }

.vendor-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.vendor-card__stats i { margin-right: 3px; }

.vendor-card__bio {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.55;
  color: #334155;
}

.vendor-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.vendor-card__link:hover { gap: 10px; }

/* ── Related grid ────────────────────────────── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.related-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color);
  box-shadow: 0 6px 16px rgba(15,23,42,0.08);
}

.related-card__image {
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.related-card__name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 4px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 28px;
}

.related-card__price {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-dark);
  margin-top: auto;
}

@media (max-width: 576px) {
  .product-tab { padding: 10px 14px; font-size: 12px; }
  .product-tab-panel { padding: 16px 14px; }
  .product-spec-table th { width: 40%; }
  .reviews-summary { grid-template-columns: 1fr; gap: 14px; }
  .vendor-card { flex-direction: column; }
  .vendor-card__logo { width: 60px; height: 60px; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ═══════════════════════════════════════
   WHATSAPP ORDER BUTTON
═══════════════════════════════════════ */
.btn-whatsapp-order {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 6px 12px 6px 8px;
  margin-bottom: 14px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  box-shadow: 0 3px 8px rgba(37, 211, 102, 0.20);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  max-width: 100%;
}

.btn-whatsapp-order:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(37, 211, 102, 0.30);
  filter: brightness(1.04);
}

.btn-whatsapp-order:active { transform: translateY(0); }

.btn-whatsapp-order i {
  font-size: 14px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.18);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-whatsapp-order span {
  font-weight: 700;
  font-size: 11px;
  line-height: 1.2;
}

.btn-whatsapp-order small {
  display: block;
  font-weight: 500;
  font-size: 9px;
  opacity: 0.85;
  margin-top: 1px;
}

/* ═══════════════════════════════════════
   SIZE CHART MODAL
═══════════════════════════════════════ */
.size-chart-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .22s ease;
}

.size-chart-modal.is-open { opacity: 1; }

.size-chart-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.size-chart-modal__panel {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px 22px 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transform: translateY(10px) scale(0.98);
  transition: transform .22s ease;
}

.size-chart-modal.is-open .size-chart-modal__panel {
  transform: translateY(0) scale(1);
}

.size-chart-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: var(--text-dark);
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease, transform .2s ease;
}

.size-chart-modal__close:hover {
  background: #e2e8f0;
  transform: rotate(90deg);
}

.size-chart-modal__header h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
}

.size-chart-modal__header p {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.size-chart-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.size-chart-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}

.size-chart-tab:hover { color: var(--text-dark); }

.size-chart-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.size-chart-unit-toggle {
  display: inline-flex;
  gap: 0;
  background: #f1f5f9;
  border-radius: 18px;
  padding: 3px;
  margin-bottom: 10px;
}

.size-chart-unit-toggle button {
  background: transparent;
  border: none;
  padding: 5px 14px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-muted);
  transition: background-color .2s ease, color .2s ease;
}

.size-chart-unit-toggle button.active {
  background: #fff;
  color: var(--text-dark);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.size-chart-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.size-chart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 460px;
}

.size-chart-table thead th {
  background: #f8fafc;
  color: var(--text-dark);
  font-weight: 700;
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.size-chart-table tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-dark);
}

.size-chart-table tbody tr:last-child td { border-bottom: none; }

.size-chart-table tbody tr:hover td { background: #f8fafc; }

.size-chart-table tbody td:first-child {
  font-weight: 800;
  color: var(--primary-color);
}

.size-chart-howto {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: var(--text-dark);
  line-height: 1.6;
}

.size-chart-howto li {
  margin-bottom: 6px;
}

.size-chart-tip {
  margin-top: 12px;
  padding: 10px 12px;
  background: #f0fdf4;
  border-left: 3px solid #16a34a;
  border-radius: 6px;
  font-size: 11px;
  color: #166534;
  line-height: 1.5;
}

.size-chart-tip i { margin-right: 6px; }

@media (max-width: 480px) {
  .size-chart-modal { padding: 10px; }
  .size-chart-modal__panel { padding: 18px 16px 14px; max-height: 95vh; }
  .size-chart-tab { padding: 6px 10px; font-size: 11px; }
  .btn-whatsapp-order { padding: 5px 10px 5px 6px; }
  .btn-whatsapp-order i { width: 22px; height: 22px; font-size: 12px; }
  .btn-whatsapp-order span { font-size: 10px; }
  .btn-whatsapp-order small { font-size: 8px; }
}

/* ═══════════════════════════════════════
   RESPONSIVE BREAKPOINTS
═══════════════════════════════════════ */

/* Tablet & small laptop */
@media (max-width: 1024px) {
  .product-detail-section {
    gap: 24px;
  }
  .product-title  { font-size: 18px; }
  .price-current  { font-size: 20px; }
  .gallery-main   { max-height: 420px; }
}

/* Stack columns */
@media (max-width: 900px) {
  .product-detail-section {
    flex-direction: column;
    gap: 20px;
  }
  .product-gallery {
    max-width: 100%;
    flex: 1 1 auto;
  }
  .gallery-main {
    max-height: 460px;
    aspect-ratio: 4 / 3;
  }
  .product-info {
    flex: 1 1 auto;
  }
}

/* Mobile portrait */
@media (max-width: 576px) {
  .product-gallery {
    flex-direction: column-reverse;
    gap: 10px;
  }
  .gallery-thumbnails {
    flex-direction: row;
    width: 100%;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 0;
    padding-bottom: 4px;
  }
  .thumbnail-item {
    width: 56px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
  }
  .gallery-main {
    aspect-ratio: 1 / 1;
    max-height: 340px;
    border-radius: 14px;
    padding: 12px;
  }

  .product-title   { font-size: 17px; }
  .price-current   { font-size: 19px; }
  .price-old       { font-size: 12px; }

  .product-actions {
    gap: 8px;
  }
  .quantity-selector {
    flex: 1 1 100%;
    justify-content: space-between;
    height: 40px;
  }
  .btn-buy-now,
  .btn-add-cart {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    padding: 0 12px;
  }
}

/* Extra small phones */
@media (max-width: 380px) {
  .product-title  { font-size: 16px; }
  .price-current  { font-size: 18px; }
  .size-btn       { padding: 6px 12px; font-size: 11px; }
  .btn-buy-now,
  .btn-add-cart   { flex: 1 1 100%; }
}


/* ═══════════════════════════════════════
   PRODUCT PAGE — enhanced interactions
═══════════════════════════════════════ */

/* Gallery main image zoom cursor */
.gallery-main {
  cursor: zoom-in;
  overflow: hidden;
}
.gallery-main img {
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.gallery-main:hover img { transform: scale(1.07); }

/* Thumbnail active ring */
.thumbnail-item {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.thumbnail-item.active {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(11,112,119,0.15);
}
.thumbnail-item:not(.active) { opacity: 0.72; }
.thumbnail-item:not(.active):hover { opacity: 1; }

/* Color swatch focus ring */
.color-swatch:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
}

/* Size button active state */
.size-btn.active {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}
.size-btn { transition: all 0.18s ease; }

/* Quantity stepper */
.qty-btn {
  transition: background-color 0.18s ease, transform 0.12s ease;
}
.qty-btn:active { transform: scale(0.92); }

/* Add to cart — loading state */
.btn-add-cart.is-loading {
  pointer-events: none;
  opacity: 0.75;
  position: relative;
}
.btn-add-cart.is-loading::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
}
@keyframes btnSpin { to { transform: translateY(-50%) rotate(360deg); } }

/* Tab transitions */
.product-tab-content { transition: opacity 0.22s ease; }
.product-tab-content.is-hidden { opacity: 0; pointer-events: none; }
.product-tab-content.is-visible { opacity: 1; }

/* Review stars interactive */
.star-rating-input label {
  transition: color 0.12s ease;
  cursor: pointer;
}

/* Related products — stagger scroll reveal */
.related-products .product-card:nth-child(1) { --reveal-delay: 0ms; }
.related-products .product-card:nth-child(2) { --reveal-delay: 60ms; }
.related-products .product-card:nth-child(3) { --reveal-delay: 120ms; }
.related-products .product-card:nth-child(4) { --reveal-delay: 180ms; }
.related-products .product-card.reveal-ready {
  transition-delay: var(--reveal-delay, 0ms);
}

/* Stock badge pulse when low */
@keyframes stockPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}
.badge-low-stock { animation: stockPulse 2s ease infinite; }
