/* صفحه جزئیات محصول — چیدمان فروشگاهی */

.page-product-detail main#main {
  padding-bottom: 0;
}

.pdp {
  padding-bottom: 48px;
}

.pdp-hero {
  padding: 16px 0 28px;
}

.pdp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

/* گالری */
.pdp-gallery-layout {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
}

.pdp-gallery-main {
  position: relative;
  flex: 1;
  min-width: 0;
}

.pdp-gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  max-height: min(520px, 70vw);
  overflow-y: auto;
  padding: 2px;
  scrollbar-width: thin;
}

.pdp-gallery-thumb {
  display: block;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pdp-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pdp-gallery-thumb:hover {
  border-color: var(--border, #e5e7eb);
}

.pdp-gallery-thumb.is-active {
  border-color: var(--primary, #81b061);
  box-shadow: 0 0 0 1px rgba(129, 176, 97, 0.35);
}

.pdp-gallery-frame {
  position: relative;
  width: 100%;
  background: linear-gradient(145deg, #f8faf8 0%, #eef5ef 100%);
  border: 1px solid var(--border-light, #f3f4f6);
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: zoom-in;
}

.pdp-gallery-zoom-trigger {
  appearance: none;
  font: inherit;
  color: inherit;
}

.pdp-gallery-zoom-hint {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted, #6b7280);
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.06));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.pdp-gallery-frame:hover .pdp-gallery-zoom-hint,
.pdp-gallery-frame:focus-visible .pdp-gallery-zoom-hint {
  opacity: 1;
}

.pdp-gallery-frame picture,
.pdp-gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pdp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp-lightbox[hidden] {
  display: none !important;
}

.pdp-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: zoom-out;
}

.pdp-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(96vw, 1100px);
  height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  background: var(--surface-strong, #fff);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.32),
    0 8px 24px rgba(0, 0, 0, 0.16);
}

.pdp-lightbox-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line, #dfe8e2);
  background: linear-gradient(180deg, #f8fbf9 0%, #f3f7f4 100%);
}

.pdp-lightbox-toolbar-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted, #5c6560);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.pdp-lightbox-zoom {
  display: inline-flex;
  align-items: stretch;
  padding: 3px;
  border-radius: 12px;
  background: var(--surface-strong, #fff);
  border: 1px solid var(--line, #dfe8e2);
  box-shadow: 0 2px 8px rgba(26, 31, 28, 0.05);
}

.pdp-lightbox-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text, #1a1f1c);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.15s ease,
    box-shadow 0.18s ease;
}

.pdp-lightbox-btn--reset {
  min-width: 52px;
  padding-inline: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--brand, #81b061);
}

.pdp-lightbox-btn + .pdp-lightbox-btn {
  box-shadow: inset 1px 0 0 var(--line, #dfe8e2);
}

.pdp-lightbox-btn:hover {
  background: rgba(129, 176, 97, 0.12);
  color: var(--brand-hover, #719552);
}

.pdp-lightbox-btn:active {
  transform: scale(0.96);
}

.pdp-lightbox-btn:focus-visible {
  outline: 2px solid var(--brand, #81b061);
  outline-offset: 1px;
}

.pdp-lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-inline-start: auto;
  padding: 0;
  border: 1px solid var(--line, #dfe8e2);
  border-radius: 50%;
  background: var(--surface-strong, #fff);
  color: var(--text-muted, #5c6560);
  font-family: inherit;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(26, 31, 28, 0.06);
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.15s ease;
}

.pdp-lightbox-close span {
  display: block;
  margin-top: -2px;
}

.pdp-lightbox-close:hover {
  background: #fff5f5;
  border-color: #fecaca;
  color: #b91c1c;
}

.pdp-lightbox-close:active {
  transform: scale(0.94);
}

.pdp-lightbox-close:focus-visible {
  outline: 2px solid var(--brand, #81b061);
  outline-offset: 2px;
}

.pdp-lightbox-stage {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8faf8;
  cursor: default;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.pdp-lightbox-stage.is-pannable {
  cursor: grab;
}

.pdp-lightbox-stage.is-dragging {
  cursor: grabbing;
}

.pdp-lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .pdp-lightbox-btn,
  .pdp-lightbox-close {
    transition: none;
  }

  .pdp-lightbox-btn:active,
  .pdp-lightbox-close:active {
    transform: none;
  }
}

.pdp-gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-light, #9ca3af);
  font-size: 0.875rem;
}

.pdp-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  max-width: 70%;
}

.pdp-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text, #1a1a1a);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.06));
  backdrop-filter: blur(6px);
}

.pdp-badge--sale {
  background: #fef2f2;
  color: #b91c1c;
}

.pdp-badge--diet {
  background: rgba(129, 176, 97, 0.12);
  color: var(--primary, #81B061);
}

.pdp-badge--organic {
  background: rgba(76, 140, 74, 0.15);
  color: #2f6b2e;
}

/* باکس خرید */
.pdp-buybox {
  position: sticky;
  top: calc(72px + env(safe-area-inset-top, 0px));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pdp-category {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary, #81B061);
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--primary-light, #e8f2ea);
  transition: background 0.2s;
}

.pdp-category:hover {
  background: #d4edd6;
}

.pdp-title {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text, #1a1a1a);
  margin: 0;
}

.pdp-lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted, #6b7280);
}

.pdp-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pdp-rating-stars {
  display: inline-flex;
  gap: 2px;
  color: #e5e7eb;
  font-size: 1rem;
}

.pdp-star.is-on {
  color: #f59e0b;
}

.pdp-rating-val {
  font-weight: 700;
  font-size: 0.95rem;
}

.pdp-rating-count {
  font-size: 0.8rem;
  color: var(--text-muted, #6b7280);
}

.pdp-price-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  padding: 16px 18px;
  background: var(--bg-alt, #fafafa);
  border: 1px solid var(--border-light, #f3f4f6);
  border-radius: var(--radius, 12px);
}

.pdp-price-old {
  font-size: 0.85rem;
  color: var(--text-light, #9ca3af);
  text-decoration: line-through;
}

.pdp-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary, #81B061);
}

.pdp-price-note {
  width: 100%;
  font-size: 0.78rem;
  color: var(--text-muted, #6b7280);
}

.pdp-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted, #6b7280);
}

.pdp-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdp-trust .deliche-icon {
  color: var(--primary, #81B061);
  flex-shrink: 0;
}

.pdp-qty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(129, 176, 97, 0.18);
  border-radius: var(--radius-sm, 8px);
  background: rgba(232, 245, 233, 0.35);
}

.pdp-qty-label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text, #1a2e22);
}

.pdp-qty-select {
  min-width: 120px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid rgba(129, 176, 97, 0.25);
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
}

.pdp-qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(129, 176, 97, 0.22);
}

.pdp-qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--primary, #81B061);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
}

.pdp-qty-btn:hover {
  background: var(--primary-light, #e8f2ea);
}

.pdp-qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pdp-qty-val {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
}

.pdp-qty-unit,
.pdp-qty-hint {
  font-size: 0.85rem;
  color: var(--text-muted, #5a6b62);
}

.pdp-qty-hint {
  flex: 1 1 100%;
}

.pdp-pack-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1rem;
}

.pdp-pack-picker-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.pdp-pack-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdp-pack-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border, #e3ebe5);
  border-radius: var(--radius-sm, 8px);
  background: var(--surface-muted, #f6faf7);
}

.pdp-pack-row.is-disabled {
  opacity: 0.55;
}

.pdp-pack-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pdp-pack-row-info strong {
  font-size: 0.95rem;
}

.pdp-pack-row-info span {
  font-size: 0.85rem;
  color: var(--text-muted, #5a6b62);
}

.pdp-pack-stepper {
  flex-shrink: 0;
}

.pdp-pack-summary {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted, #5a6b62);
}

.pdp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pdp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-sm, 8px);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: none;
}

.pdp-btn--primary {
  flex: 1 1 180px;
  background: var(--brand);
  color: #fff;
  transition: background 0.2s ease, transform 0.25s cubic-bezier(0.33, 0.92, 0.28, 1);
}

.pdp-btn--primary:hover {
  background: var(--brand-hover);
}

.pdp-btn--disabled,
.pdp-btn[disabled] {
  background: #d1d5db !important;
  color: #6b7280 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.pdp-btn--ghost {
  flex: 0 1 auto;
  background: transparent;
  color: var(--primary, #81B061);
  border: 1px solid var(--primary, #81B061);
}

.pdp-btn--ghost:hover {
  background: var(--primary-light, #e8f2ea);
}

.pdp-nutrition {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pdp-chip {
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--bg-alt, #fafafa);
  border: 1px solid var(--border-light, #f3f4f6);
  color: var(--text-muted, #6b7280);
}

.pdp-chip strong {
  color: var(--text, #1a1a1a);
}

.pdp-chip--tag {
  background: rgba(129, 176, 97, 0.08);
  color: var(--primary, #81B061);
}

.pdp-quick-specs {
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--border-light, #f3f4f6);
  display: grid;
  gap: 8px;
}

.pdp-quick-spec {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px;
  font-size: 0.82rem;
}

.pdp-quick-spec dt {
  color: var(--text-muted, #6b7280);
  font-weight: 500;
}

.pdp-quick-spec dd {
  margin: 0;
  color: var(--text, #1a1a1a);
}

/* تب‌ها */
.pdp-body {
  padding: 8px 0 32px;
}

.pdp-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border, #e5e7eb);
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pdp-tabs::-webkit-scrollbar {
  display: none;
}

.pdp-tab {
  flex-shrink: 0;
  padding: 12px 18px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted, #6b7280);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.pdp-tab.is-active {
  color: var(--primary, #81B061);
  border-bottom-color: var(--primary, #81B061);
}

.pdp-panel {
  display: none;
  animation: pdpFade 0.25s ease;
}

.pdp-panel.is-active {
  display: block;
}

@keyframes pdpFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.pdp-content,
.pdp-content-plain {
  line-height: 1.85;
  font-size: 0.95rem;
  color: var(--text, #1a1a1a);
  max-width: 72ch;
}

.pdp-specs-table {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border-light, #f3f4f6);
  border-radius: var(--radius, 12px);
  overflow: hidden;
}

.pdp-spec-row {
  display: grid;
  grid-template-columns: minmax(120px, 35%) 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light, #f3f4f6);
  font-size: 0.9rem;
}

.pdp-spec-row:last-child {
  border-bottom: 0;
}

.pdp-spec-row:nth-child(even) {
  background: var(--bg-alt, #fafafa);
}

.pdp-spec-row dt {
  font-weight: 600;
  color: var(--text-muted, #6b7280);
}

.pdp-spec-row dd {
  margin: 0;
  color: var(--text, #1a1a1a);
}

.pdp-panel .product-reviews {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* مرتبط */
.pdp-related {
  padding: 32px 0 24px;
  border-top: 1px solid var(--border-light, #f3f4f6);
}

.pdp-related-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 20px;
}

.pdp-related-head h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}

.pdp-related-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary, #81B061);
  text-decoration: none;
}

.pdp-related-more:hover {
  text-decoration: underline;
}

/* کارت‌های یکسان: components/products-grid-uniform.css */

/* بلوک سئو */
.pdp-seo {
  padding: 36px 0 8px;
  border-top: 1px solid var(--border-light, #f3f4f6);
}

.pdp-seo-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--text, #1a1a1a);
}

.pdp-seo-body {
  max-width: 72ch;
  line-height: 1.85;
  font-size: 0.9rem;
  color: var(--text-muted, #6b7280);
}

.pdp-faq {
  margin-top: 32px;
  width: 100%;
  max-width: none;
}

.pdp-faq-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--text, #1a1a1a);
  text-align: center;
}

.pdp-faq-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdp-faq-item {
  width: 100%;
  border: 1px solid var(--border-light, #f3f4f6);
  border-radius: var(--radius, 12px);
  overflow: hidden;
  background: var(--bg, #fff);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.pdp-faq-item[open] {
  border-color: color-mix(in srgb, var(--primary, #81b061) 35%, var(--border-light, #f3f4f6));
}

.pdp-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.55;
  cursor: pointer;
  list-style: none;
  text-align: start;
}

.pdp-faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg-alt, #f5f5f5);
  color: var(--text-muted, #6b7280);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.pdp-faq-item[open] summary::after {
  content: '−';
}

.pdp-faq-item summary::-webkit-details-marker {
  display: none;
}

.pdp-faq-item p {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-muted, #6b7280);
}

.pdp-gallery-frame .badge-sale {
  top: 12px;
  inset-inline-start: 12px;
  z-index: 4;
}

/* ریسپانسیو */
@media (max-width: 900px) {
  .page-product-detail main .container {
    padding-inline: max(16px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  }

  .pdp-grid {
    grid-template-columns: 1fr;
  }

  .pdp-gallery {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  .pdp-gallery-layout {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .pdp-gallery-thumbs {
    flex-direction: row;
    flex-wrap: nowrap;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
  }

  .pdp-gallery-thumb {
    flex-shrink: 0;
  }

  .pdp-buybox {
    position: static;
  }
}

@media (max-width: 600px) {
  .page-product-detail main .container {
    padding-inline: max(18px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  }

  .pdp-hero {
    padding-top: 8px;
  }

  .pdp-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .pdp-btn {
    width: auto;
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.875rem;
    font-weight: 600;
  }

  .pdp-btn--primary {
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
  }

  .pdp-actions:has(.pdp-btn--ghost) .pdp-btn--primary {
    flex: 1 1 140px;
  }

  .pdp-btn--ghost {
    flex: 1 1 120px;
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .pdp-qty {
    padding: 10px 12px;
    margin-bottom: 10px;
  }

  .pdp-qty-select {
    min-height: 38px;
    font-size: 0.88rem;
  }

  .pdp-qty-btn {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .pdp-price-block {
    padding: 12px 14px;
  }

  .pdp-spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .pdp-quick-spec {
    grid-template-columns: 1fr;
  }

  .pdp-lightbox-panel {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: 0;
  }

  .pdp-lightbox-toolbar {
    gap: 8px;
    padding: max(10px, env(safe-area-inset-top, 0px)) 12px 10px;
  }

  .pdp-lightbox-toolbar-label {
    display: none;
  }

  .pdp-lightbox-zoom {
    flex: 1;
    justify-content: center;
  }

  .pdp-lightbox-btn {
    flex: 1;
    min-width: 0;
    height: 36px;
  }

  .pdp-lightbox-btn--reset {
    flex: 1.2;
    min-width: 0;
  }

  .pdp-lightbox-close {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

}

.pdp-shipping-hint {
  margin: 0 0 12px;
  padding: 10px 12px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted, #5c6b62);
  background: var(--surface-soft, #f4f7f5);
  border-radius: 10px;
  border: 1px solid var(--border-subtle, #e2ebe6);
}

.pdp-complement {
  margin: 14px 0 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0faf4 0%, #f8fcf9 100%);
  border: 1px solid var(--border-subtle, #dce8e0);
}

.pdp-complement__title {
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-green-dark, #1a5c38);
}

.pdp-complement__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdp-complement__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdp-complement__link {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  font-size: 0.85rem;
  padding: 6px 8px;
  margin: -6px -8px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.pdp-complement__link:hover {
  background: rgba(255, 255, 255, 0.65);
}

.pdp-complement__thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-alt, #eef2ef);
  border: 1px solid var(--border-subtle, #e2ebe6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp-complement__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdp-complement__thumb-fallback {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted, #8a9690);
}

.pdp-complement__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pdp-complement__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: var(--text, #1a1f1c);
}

.pdp-complement__price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-green, #2d8a5c);
}

.pdp-btn--whatsapp {
  border-color: #25d366;
  color: #128c7e;
}

.pdp-complement__add {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 0;
  background: var(--brand-green, #2d8a5c);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.pdp-sticky-bar {
  display: none;
}

@media (max-width: 768px) {
  .pdp-sticky-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--bottom-nav-h, 64px) + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--border-subtle, #e2ebe6);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
  }

  .pdp-sticky-bar[hidden] {
    display: none;
  }

  body.page-product-detail.pdp-sticky-visible {
    padding-bottom: calc(var(--bottom-nav-h, 64px) + 72px + env(safe-area-inset-bottom, 0px));
  }

  .pdp-sticky-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .pdp-sticky-bar__price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.95rem;
  }

  .pdp-sticky-bar__label {
    font-size: 0.72rem;
    color: var(--text-muted, #5c6b62);
  }

  .pdp-sticky-bar__cta {
    flex: 1;
    max-width: 200px;
    min-height: 44px;
  }
}
