﻿/* ─── PRODUCT DETAIL ─────────────────────────────────────── */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px
}

@media(min-width:768px) {
  .product-detail-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start
  }
}

@media(min-width:1024px) {
  .product-detail-layout {
    grid-template-columns: 480px 1fr
  }
}

.product-gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-100);
  aspect-ratio: var(--product-img-ratio, 4/3)
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.product-gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto
}

.gallery-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
  flex-shrink: 0
}

.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: var(--primary)
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.product-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 6px
}

.product-inline-breadcrumb .breadcrumbs {
  margin-bottom: 0
}

.product-inline-breadcrumb .breadcrumbs ol {
  font-size: 13px
}

.product-price-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px
}

.product-price-big {
  font-size: 25px;
  line-height: 1.1;
  font-weight: 900;
  color: var(--primary)
}

.product-price-old-big {
  font-size: 16px;
  color: var(--gray-400);
  text-decoration: line-through
}

.product-short-desc {
  color: var(--gray-600);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px
}

.product-attrs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 700px;
  margin-bottom: 20px
}

.product-attr-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: .5rem;
  border: 1px solid hsl(220deg 13% 87% / 18%);
  background: #f9fafb
}

.product-attr-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f4aa8;
  background: linear-gradient(135deg, #e0ecff, #c7dcff);
  flex-shrink: 0
}

.product-attr-icon svg {
  width: 18px;
  height: 18px
}

.product-attr-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px
}

.product-attr-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .4px
}

.product-attr-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.35;
  word-break: break-word
}

/* Variation Selector */
.variation-group {
  margin-bottom: 20px
}

.variation-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 8px
}

.variation-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.var-btn {
  padding: 8px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--transition);
  background: #fff
}

.var-btn:hover {
  border-color: var(--primary);
  color: var(--primary)
}

.var-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff
}

.var-btn.disabled {
  opacity: .4;
  pointer-events: none;
  text-decoration: line-through
}

/* Add to Cart area */
.product-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px
}

.product-actions .btn {
  flex: 1;
  min-width: 140px
}

.var-pricing-wrap {
  margin-top: 10px;
  max-width: none;
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0
}

.var-pricing-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .2px;
  color: #0f172a;
  margin: 0 0 14px
}

.var-pricing-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  cursor: copy;
  user-select: none
}

.var-pricing-card:focus {
  outline: 2px solid #93c5fd;
  outline-offset: 2px
}

.var-pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 12px
}

.var-pricing-table th,
.var-pricing-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  font-size: 14px
}

.var-pricing-table th {
  font-weight: 900;
  background: #f8fafc;
  color: #334155
}

.var-pricing-table tr:last-child td {
  border-bottom: 0
}

.var-pricing-table td.plan {
  font-weight: 800
}

.var-pricing-table td.price {
  font-weight: 900;
  white-space: nowrap
}

.var-pricing-table tr.outstock {
  opacity: .58
}

.product-tabs-shell {
  margin-top: 34px;
  max-width: none;
  width: 100%;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 18px 22px
}

.product-tabs-head {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 14px;
  justify-content: center;
  gap: 8px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid #dbeafe;
  background: #f8fbff
}

.product-tab-btn {
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 9px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease
}

.product-tab-btn.is-active {
  background: #fff;
  color: #0f4aa8;
  box-shadow: inset 0 0 0 1px #bfdbfe
}

.product-tab-panel {
  display: none;
  padding-top: 6px
}

.product-tab-panel.is-active {
  display: block
}

.product-description-wrap {
  margin-top: 28px;
  width: 100%;
  background: transparent;
  border: 0;
  border-top: 1px solid #e2e8f0;
  border-radius: 0;
  padding: 22px 0 0
}

.product-description-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 16px
}

.product-description {
  font-size: 15px;
  line-height: 1.8;
  color: #334155;
  word-break: break-word
}

.product-pricing-details {
  margin-top: 22px
}

.product-pricing-details-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 16px
}

.product-tabs-shell .table-wrap {
  box-shadow: none;
  border: 1px solid #e2e8f0
}

.product-tabs-shell .pricing-table {
  box-shadow: none
}

.reviews-lazy-wrap {
  margin-top: 22px
}

.reviews-loading,
.reviews-empty {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  color: #64748b;
  background: #fff
}

.reviews-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  background: #fff
}

.reviews-summary-score {
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  color: #0f4aa8
}

.reviews-summary-stars {
  color: #f59e0b;
  font-size: 16px;
  letter-spacing: 1px
}

.reviews-summary-text {
  color: #64748b;
  font-size: 13px
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px
}

.review-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  background: #fff
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px
}

.review-customer {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a
}

.review-source {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px
}

.review-source.google {
  background: #e8f1ff;
  color: #1d4ed8
}

.review-source.trustpilot {
  background: #dcfce7;
  color: #166534
}

.review-rating {
  color: #f59e0b;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px
}

.review-rating span {
  color: #64748b;
  margin-left: 4px
}

.review-content {
  color: #334155;
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 10px
}

.review-link {
  color: #0f4aa8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700
}

.review-link:hover {
  text-decoration: underline
}

.product-desc-template {
  margin-top: 18px;
  border-top: 1px solid var(--gray-200);
  padding-top: 16px
}

.product-desc-template h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.35;
  color: #0f172a
}

.product-desc-template p {
  margin: 0;
  color: var(--gray-700)
}

.product-desc-template a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700
}

.product-desc-template a:hover {
  text-decoration: underline
}

.whatsapp-order-btn {
  margin-top: 8px;
  width: min(100%, 360px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #0f6a5b;
  background: linear-gradient(135deg, #12806f, #0e6a5d);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
  transition: background .2s ease, border-color .2s ease, filter .2s ease
}

.whatsapp-order-btn:hover {
  background: linear-gradient(135deg, #0f7465, #0c5e52);
  border-color: #0b4f45;
  filter: brightness(1.01)
}

.whatsapp-order-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0
}

.whatsapp-order-icon svg {
  width: 100%;
  height: 100%
}

.whatsapp-order-text {
  letter-spacing: .2px
}

