/* PRODUCT PAGE STYLES */

/* ─── Hero Section ──────────────────────────────────────────────────────── */
.pdp-hero-immersive {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 80px;
  overflow: hidden;
}

.pdp-hero-grid {
  display: grid;
  grid-template-columns: 1fr 50%;
  gap: clamp(32px, 4vw, 64px);
}

/* ─── Gallery (right column now) ─────────────────────────────────────────────── */
.pdp-gallery-floating {
  order: 2;
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: row;
  gap: 16px;
}

/* Main image */
.pdp-main-image-wrapper {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #ffffff;
  aspect-ratio: 4 / 4;
  flex: 1;
  min-width: 0;
}
.pdp-main-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.pdp-main-image-wrapper:hover img {
  transform: scale(1.03);
}

/* Thumbnails (left of main image, vertical stack) */
.pdp-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: max-content;
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 16px;
  padding: 8px;
  align-items: center;
  overflow-y: auto;
  scrollbar-width: none;
  align-self: center;
  max-height: 100%;
}
.pdp-thumbnails::-webkit-scrollbar {
  display: none;
}

.thumb-btn {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  appearance: none;
  background: #ffffff;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    opacity 0.2s ease,
    box-shadow 0.2s ease;
  opacity: 0.55;
}
.thumb-btn:hover {
  opacity: 0.85;
  box-shadow: 0 4px 12px rgba(18, 20, 24, 0.1);
}
.thumb-btn.active {
  opacity: 1;
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(71, 112, 194, 0.25);
}
.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ─── Info Panel (left column now) ─────────────────────────────────────────── */
.pdp-info-panel-wrapper {
  order: 1;
  display: flex;
  flex-direction: column;
  padding-top: 8px;
  padding-left: 5%;
  max-width: 520px;
}

/* Breadcrumbs */
.mobile-breadcrumbs {
  display: none;
}
.desktop-breadcrumbs {
  display: block;
}
.pdp-breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-ink-light);
}
.pdp-breadcrumbs a {
  color: var(--color-ink-light);
  text-decoration: none;
  transition: color 0.15s ease;
}
.pdp-breadcrumbs a:hover {
  color: var(--color-primary);
}
.pdp-breadcrumbs .separator {
  opacity: 0.35;
}

/* Title */
.pdp-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 500;
  color: var(--color-ink-deep);
  line-height: 1.15;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

/* Rating row */
.pdp-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.pdp-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--color-primary);
}
.pdp-rating svg {
  width: 17px;
  height: 17px;
}

.pdp-stock-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #16a34a;
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.2);
  padding: 5px 12px;
  border-radius: 100px;
}
.pdp-stock-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
}

/* Divider */
.pdp-divider {
  height: 1px;
  background: rgba(18, 20, 24, 0.07);
  margin: 4px 0 20px;
}

/* SKU / Code row */
.pdp-sku-row {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.pdp-sku-row span {
  font-size: 13px;
  color: var(--color-ink-light);
  background: rgba(18, 20, 24, 0.04);
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(18, 20, 24, 0.07);
}
.pdp-sku-row strong {
  font-weight: 600;
  color: var(--color-ink-deep);
  margin-right: 4px;
}

/* Price block */
.pdp-price-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.pdp-price-old {
  font-size: 17px;
  text-decoration: line-through;
  color: var(--color-ink-light);
  opacity: 0.55;
}
.pdp-price-current {
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--color-ink-deep);
  line-height: 1;
  letter-spacing: -0.02em;
}
.pdp-price-badge {
  background: var(--color-primary);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  letter-spacing: 0.03em;
}

/* Short description */
.pdp-short-desc {
  color: var(--color-ink-light);
  line-height: 1.8;
  margin-bottom: 32px;
  font-size: 15px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(18, 20, 24, 0.07);
}

/* Variant options */
.pdp-options {
  margin-bottom: 40px;
}
.option-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink-light);
  margin-bottom: 12px;
}
.pdp-variant-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pdp-variant-btn input[type='radio'] {
  display: none;
}
.pdp-variant-btn .glass-btn {
  display: block;
  padding: 11px 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(18, 20, 24, 0.12);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink-deep);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.pdp-variant-btn input:checked + .glass-btn {
  background: var(--color-ink-deep);
  color: white;
  border-color: var(--color-ink-deep);
  box-shadow: 0 4px 16px rgba(2, 18, 58, 0.2);
}
.pdp-variant-btn .glass-btn:hover {
  border-color: var(--color-ink-deep);
}

/* Add to cart row */
.pdp-action-row {
  display: flex;
  gap: 14px;
  align-items: center;
  max-width: 440px;
}

.glass-qty-selector {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(18, 20, 24, 0.12);
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
}
.qty-btn {
  width: 44px;
  height: 52px;
  background: transparent;
  border: none;
  font-size: 22px;
  font-weight: 300;
  cursor: pointer;
  color: var(--color-ink-deep);
  transition: background 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover {
  background: rgba(18, 20, 24, 0.05);
}
.qty-input {
  width: 48px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-ink-deep);
  -moz-appearance: textfield;
}
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.pdp-add-cart {
  flex: 1;
  height: 52px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  min-width: 0;
  max-width: 280px;
}

/* Trust badges row */
.pdp-trust-row {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.pdp-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-ink-light);
  font-weight: 500;
}
.pdp-trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ─── Specs Strip ───────────────────────────────────────────────────────── */
.pdp-specs-strip {
  padding: 0;
  background: var(--color-canvas);
  border-top: 1px solid rgba(18, 20, 24, 0.06);
  border-bottom: 1px solid rgba(18, 20, 24, 0.06);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid rgba(18, 20, 24, 0.06);
  transition: background 0.2s ease;
}
.spec-item:last-child {
  border-right: none;
}
.spec-item:hover {
  background: rgba(18, 20, 24, 0.015);
}

.spec-icon {
  width: 40px;
  height: 40px;
  background: rgba(71, 112, 194, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  color: var(--color-primary);
}
.spec-icon svg {
  width: 20px;
  height: 20px;
}
.spec-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink-light);
}
.spec-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink-deep);
}

/* ─── WooCommerce Tabs ──────────────────────────────────────────────────── */
.pdp-tabs-section {
  padding: var(--spacing-section) 5%;
  padding-bottom: 0;
}

.wc-tabs-wrapper {
  background: linear-gradient(135deg, #f0f4f8 0%, #dce4ea 100%);
  border-radius: 32px;
  border: none;
  overflow: hidden;
  position: relative;
  z-index: 2;
  box-shadow:
    0 24px 48px rgba(18, 20, 24, 0.06),
    inset 0 2px 0 rgba(255, 255, 255, 0.8),
    inset 0 0 24px rgba(255, 255, 255, 0.4);
}

.wc-tabs-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% -20%, rgba(255, 255, 255, 0.8) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}
.wc-tabs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  border-bottom: 1px solid rgba(18, 20, 24, 0.07);
  background: transparent;
  position: relative;
  z-index: 2;
  overflow-x: auto;
  scrollbar-width: none;
}
.wc-tabs::-webkit-scrollbar {
  display: none;
}
.wc-tabs li {
  margin: 0;
  flex-shrink: 0;
}
.wc-tabs a {
  display: block;
  padding: 18px 32px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-ink-light);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.wc-tabs a:hover {
  color: var(--color-primary);
}
.wc-tabs li.active a {
  color: var(--color-ink-deep);
  border-bottom-color: var(--color-ink-deep);
  background: rgba(255, 255, 255, 0.5);
}
.wc-tab-panels {
  padding: 48px;
  position: relative;
  z-index: 2;
}
.wc-tab-panel {
  animation: pdp-fade-in 0.25s ease-out;
  position: relative;
  z-index: 2;
}

.wc-tab-panel .shop_attributes {
  width: 100%;
  border-collapse: collapse;
  position: relative;
  z-index: 2;
}
.wc-tab-panel .shop_attributes th {
  font-weight: 600;
  padding: 14px 0;
  width: 28%;
  vertical-align: top;
  color: var(--color-ink-deep);
}
.wc-tab-panel .shop_attributes td {
  padding: 14px 0;
  color: var(--color-ink-light);
}
.wc-tab-panel .shop_attributes tr {
  border-bottom: 1px solid rgba(18, 20, 24, 0.06);
}
.wc-tab-panel .shop_attributes tr:last-child {
  border-bottom: none;
}

@keyframes pdp-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Floating Sticky Cart (Desktop/Tablet) ─────────────────────────────── */
.pdp-floating-cart-card {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 360px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 16px 40px rgba(18, 20, 24, 0.08), 0 0 0 1px rgba(18, 20, 24, 0.05);
  border-radius: 20px;
  padding: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(40px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.pdp-floating-cart-card.visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.floating-cart-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.floating-cart-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(18, 20, 24, 0.05);
  padding: 4px;
}

.floating-cart-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-ink-deep);
  margin: 0 0 4px;
}

.floating-cart-info p {
  font-size: 13px;
  color: var(--color-ink-light);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.floating-cart-options {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(18, 20, 24, 0.06);
  padding-top: 16px;
}

.floating-option-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink-light);
}

.floating-variant-select {
  flex: 1;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(18, 20, 24, 0.1);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--color-ink-deep);
  outline: none;
}

.floating-cart-action {
  display: flex;
  align-items: center;
  gap: 10px;
}

.floating-qty {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(18, 20, 24, 0.1);
  border-radius: 10px;
  overflow: hidden;
  height: 44px;
}

.f-qty-btn {
  width: 32px;
  height: 100%;
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--color-ink-deep);
}

.f-qty-input {
  width: 36px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  -moz-appearance: textfield;
}

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

.f-add-cart {
  flex: 1;
  height: 44px;
  border-radius: 10px;
  font-size: 14px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
}

.f-wishlist-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(18, 20, 24, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-ink-light);
  transition: all 0.2s ease;
}

.f-wishlist-btn:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ─── Related Products ──────────────────────────────────────────────────── */
.pdp-cross-sell {
  padding: var(--spacing-section) 0 0;
}

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pdp-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .desktop-breadcrumbs {
    display: none;
  }
  .mobile-breadcrumbs {
    display: block;
  }
  .pdp-breadcrumbs ol {
    margin-bottom: 0;
  }
  .pdp-title {
    margin-top: 16px;
  }
  .pdp-gallery-floating {
    order: 1;
    position: static;
    flex-direction: column;
  }
  .pdp-info-panel-wrapper {
    order: 2;
    padding-left: 0;
    max-width: 100%;
  }
  .pdp-main-image-wrapper {
    aspect-ratio: 4 / 3;
  }
  .pdp-thumbnails {
    flex-direction: row;
    width: fit-content;
    max-width: 100%;
    align-self: center;
    overflow-x: auto;
    border-radius: 24px;
    padding: 12px;
  }
  .pdp-action-row {
    flex-direction: column;
    max-width: 100%;
    align-items: stretch;
  }
  .glass-qty-selector {
    justify-content: space-between;
  }
  .qty-input {
    flex: 1;
    width: auto;
  }
  .pdp-add-cart {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .pdp-floating-cart-card {
    display: none !important;
  }
  .wc-tab-panels {
    padding: 24px;
  }
  .specs-grid {
    grid-template-columns: 1fr 1fr;
  }
  .spec-item:nth-child(2) {
    border-right: none;
  }
  .spec-item:nth-child(3) {
    grid-column: span 2;
    border-right: none;
    border-top: 1px solid rgba(18, 20, 24, 0.06);
  }
  .pdp-action-row {
    flex-direction: column;
  }
  .pdp-add-cart {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .specs-grid {
    grid-template-columns: 1fr;
  }
  .spec-item {
    border-right: none;
    border-bottom: 1px solid rgba(18, 20, 24, 0.06);
  }
  .spec-item:nth-child(3) {
    grid-column: auto;
    border-top: none;
  }
  .spec-item:last-child {
    border-bottom: none;
  }
}

/* ==========================================================================
   Trust & Benefits Section (Copied from home.css)
   ========================================================================== */

#trust-benefits {
  /* Fully transparent wrapper */
}

#trust-benefits .card-icon-feature {
  background: linear-gradient(135deg, #f0f4f8 0%, #dce4ea 100%);
  border-radius: 32px;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease,
    background 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 2;
  height: 100%;
  box-shadow:
    0 24px 48px rgba(18, 20, 24, 0.06),
    inset 0 2px 0 rgba(255, 255, 255, 0.8),
    inset 0 0 24px rgba(255, 255, 255, 0.4);
}

#trust-benefits .card-icon-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% -20%, rgba(255, 255, 255, 0.8) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

#trust-benefits .card-icon-feature:hover {
  background: #ffffff;
  transform: translateY(-8px);
  box-shadow:
    0 32px 64px rgba(18, 20, 24, 0.1),
    inset 0 2px 0 rgba(255, 255, 255, 0.8),
    inset 0 0 24px rgba(255, 255, 255, 0.4);
}

#trust-benefits .card-icon-feature svg {
  color: var(--color-primary);
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 2;
}

#trust-benefits .card-icon-feature:hover svg {
  transform: scale(1.1);
}

#trust-benefits .card-icon-feature h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--color-ink-deep);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
}

#trust-benefits .card-icon-feature p {
  color: var(--color-ink-light);
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 2;
}

@media (max-width: 660px) {
  #trust-benefits .grid-4 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ─── Product Page Marquee Override ─────────────────────────────────────── */
.marquee-wrapper {
  padding: 0;
}
.marquee-section {
  transform: none;
  width: 100%;
  margin-left: 0;
}

/* ── Inline Style Migrations ── */

/* PDP review count span */
.pdp-review-count { margin-left: 6px; }

/* Trust benefits on PDP */
.trust-benefits-section {
  padding: var(--spacing-section) 5%;
  padding-top: 48px;
}

/* Related products section subtitle */
.product-section-title .mt-xs { margin-top: 8px; }

/* Floating cart bar */
.floating-cart-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.floating-cart-left { display: flex; align-items: center; gap: 16px; }
.floating-cart-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
}
.floating-cart-name { margin: 0; font-size: 15px; }
.floating-cart-price { margin: 0; font-size: 13px; opacity: 0.7; }
.floating-cart-actions { display: flex; align-items: center; gap: 12px; }
