/* ========================================
   PRODUCT DETAILS MODERN — Dribbble-inspired
   ======================================== */

/* ========== ANIMATIONS ========== */
@keyframes pdFadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pdFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pdBounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes pdPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes pdPulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(69, 87, 99, 0.3); }
  50% { box-shadow: 0 0 0 10px rgba(69, 87, 99, 0); }
}
@keyframes pdFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes pdGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes pdSlideIndicator {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ========== SCROLL REVEAL ========== */
.pd-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}
.pd-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.pd-reveal-delay-1 { transition-delay: 0.1s; }
.pd-reveal-delay-2 { transition-delay: 0.2s; }
.pd-reveal-delay-3 { transition-delay: 0.3s; }
.pd-reveal-delay-4 { transition-delay: 0.4s; }
.pd-reveal-delay-5 { transition-delay: 0.5s; }

/* ========== BREADCRUMB ========== */
.pd-breadcrumb {
  border-bottom: 1px solid rgba(69, 87, 99, 0.06);
  animation: pdFadeIn 0.5s ease-out;
}

.pd-breadcrumb-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(69, 87, 99, 0.5);
}

.pd-breadcrumb a {
  color: rgba(69, 87, 99, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}
.pd-breadcrumb a:hover { color: var(--puramane-navy); }

.pd-breadcrumb-current {
  color: var(--puramane-navy);
  font-weight: 500;
}

/* ========== PRODUCT SECTION ========== */
.pd-section {
  padding: 3rem 0;
}

.pd-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

/* ========== IMAGE GALLERY ========== */
.pd-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: pdFadeInUp 0.7s ease-out;
}

.pd-main-image {
  position: relative;
  aspect-ratio: 1;
  border-radius: 1.25rem;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(188, 227, 201, 0.15) 0%, rgba(211, 218, 220, 0.15) 100%);
  cursor: zoom-in;
}

.pd-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.pd-main-image:hover img {
  transform: scale(1.08);
}

/* Promo badge */
.pd-promo-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #D6C9B4 0%, #C6B79D 100%);
  color: #2E3F47;
  padding: 0.5rem 1.125rem;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(214, 201, 180, 0.5);
  animation: pdPulse 2.5s ease-in-out infinite;
  z-index: 2;
}

.pd-bestseller-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(69, 87, 99, 0.85);
  backdrop-filter: blur(8px);
  color: white;
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  z-index: 2;
}

/* Thumbnails */
.pd-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.875rem;
}

.pd-thumb {
  aspect-ratio: 1;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.3s ease;
  background: none;
  padding: 0;
}

.pd-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(69, 87, 99, 0.1);
}

.pd-thumb.active {
  border-color: var(--puramane-navy);
  box-shadow: 0 0 0 3px rgba(69, 87, 99, 0.12);
}

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

/* ========== PRODUCT INFO ========== */
.pd-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: pdFadeInUp 0.7s ease-out 0.15s both;
}

/* Brand badge */
.pd-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: transparent;
  background: linear-gradient(135deg, var(--puramane-navy) 0%, #D6C9B4 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.pd-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--puramane-navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Rating */
.pd-rating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pd-stars {
  display: flex;
  gap: 0.125rem;
}

.pd-star {
  transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: default;
}

.pd-star:hover {
  transform: scale(1.2);
}

.pd-rating-text {
  font-size: 0.9375rem;
  color: rgba(69, 87, 99, 0.6);
}

/* Price */
.pd-price-block {
  margin-bottom: 0.25rem;
}

.pd-price-old {
  font-size: 1.5rem;
  color: rgba(69, 87, 99, 0.4);
  text-decoration: line-through;
  margin-right: 0.75rem;
}

.pd-price-discount-badge {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, #D6C9B4 0%, #C6B79D 100%);
  color: #2E3F47;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 700;
  animation: pdPulse 2.5s ease-in-out infinite;
}

.pd-price-main {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 0.375rem;
}

.pd-price-value {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--puramane-navy);
  letter-spacing: -0.03em;
  line-height: 1;
}

.pd-price-vat {
  font-size: 0.9375rem;
  color: rgba(69, 87, 99, 0.5);
}

/* Promo countdown */
.pd-promo-alert {
  padding: 0.875rem 1rem;
  background: rgba(214, 201, 180, 0.20);
  border-left: 4px solid #D6C9B4;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #2E3F47;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Description */
.pd-description {
  color: rgba(69, 87, 99, 0.7);
  line-height: 1.7;
  font-size: 1rem;
}

/* ========== KEY BENEFITS ========== */
.pd-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(69, 87, 99, 0.06);
  border-bottom: 1px solid rgba(69, 87, 99, 0.06);
}

.pd-benefit {
  text-align: center;
  padding: 1.25rem 0.75rem;
  border-radius: 1rem;
  background: #F0EBE4;
  border: 1px solid rgba(69, 87, 99, 0.04);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.4s ease;
}

.pd-benefit:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(69, 87, 99, 0.06);
}

.pd-benefit-value {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--puramane-navy);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.pd-benefit-label {
  font-size: 0.8125rem;
  color: rgba(69, 87, 99, 0.55);
  font-weight: 500;
}

/* ========== QUANTITY + ADD TO CART ========== */
.pd-quantity-label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: var(--puramane-navy);
  font-size: 0.9375rem;
}

.pd-quantity-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pd-quantity-selector {
  display: flex;
  align-items: center;
  border: 2px solid rgba(69, 87, 99, 0.1);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.pd-quantity-selector:hover {
  border-color: rgba(69, 87, 99, 0.2);
}

.pd-qty-btn {
  padding: 0.875rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--puramane-navy);
  transition: background 0.2s ease, transform 0.1s ease;
}

.pd-qty-btn:hover { background: rgba(69, 87, 99, 0.04); }
.pd-qty-btn:active { transform: scale(0.9); }

.pd-qty-value {
  padding: 0 1.5rem;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--puramane-navy);
  min-width: 2rem;
  text-align: center;
}

/* Add to cart button */
.pd-add-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1rem 1.5rem;
  background: var(--puramane-navy);
  color: white;
  border: none;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1.0625rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 14px rgba(69, 87, 99, 0.25);
  animation: pdPulseGlow 3s ease-in-out infinite;
}

.pd-add-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(69, 87, 99, 0.3);
}

.pd-add-btn:active {
  transform: scale(0.97);
}

/* ========== WISHLIST / SHARE ========== */
.pd-actions {
  display: flex;
  gap: 0.75rem;
}

.pd-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  background: white;
  color: var(--puramane-navy);
  border: 2px solid rgba(69, 87, 99, 0.1);
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.pd-action-btn:hover {
  background: var(--puramane-navy);
  color: white;
  border-color: var(--puramane-navy);
  transform: translateY(-2px);
}

.pd-action-btn:active { transform: scale(0.97); }

/* ========== TRUST BADGES ========== */
.pd-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding-top: 1.5rem;
}

.pd-trust-item {
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.pd-trust-item:hover {
  transform: translateY(-4px);
}

.pd-trust-item:hover .pd-trust-icon {
  animation: pdFloat 1s ease-in-out;
}

.pd-trust-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgba(69, 87, 99, 0.05);
  color: var(--puramane-navy);
}

.pd-trust-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--puramane-navy);
  margin-bottom: 0.125rem;
}

.pd-trust-sub {
  font-size: 0.75rem;
  color: rgba(69, 87, 99, 0.5);
}

/* ========== TABS SECTION ========== */
.pd-tabs-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, #ffffff 0%, #F0EBE4 100%);
}

.pd-tabs-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Tab headers */
.pd-tab-headers {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  background: #F0EBE4;
  border-radius: 100px;
  padding: 0.3125rem;
  border: 1px solid rgba(69, 87, 99, 0.06);
  position: relative;
}

.pd-tab-btn {
  flex: 1;
  padding: 0.875rem 1.5rem;
  background: transparent;
  color: rgba(69, 87, 99, 0.6);
  border: none;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.pd-tab-btn.active {
  background: var(--puramane-navy);
  color: white;
  box-shadow: 0 4px 12px rgba(69, 87, 99, 0.15);
  animation: pdSlideIndicator 0.3s ease-out;
}

.pd-tab-btn:hover:not(.active) {
  color: var(--puramane-navy);
}

/* Tab content */
.pd-tab-content {
  background: white;
  border-radius: 1.25rem;
  border: 1px solid rgba(69, 87, 99, 0.06);
  padding: 2rem;
  animation: pdFadeInUp 0.4s ease-out;
  box-shadow: 0 2px 12px rgba(69, 87, 99, 0.04);
}

.pd-tab-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--puramane-navy);
  margin-bottom: 1.5rem;
}

/* Features list */
.pd-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.pd-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.pd-feature-check {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(107, 142, 90, 0.1);
  color: #6B8E5A;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.pd-feature-text {
  color: rgba(69, 87, 99, 0.75);
  line-height: 1.5;
  font-size: 0.9375rem;
}

.pd-feature-empty {
  color: rgba(69, 87, 99, 0.6);
  font-size: 0.9375rem;
}

/* Spec rows */
.pd-specs-list {
  display: flex;
  flex-direction: column;
}

.pd-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  transition: background 0.2s ease;
}

.pd-spec-row:nth-child(odd) {
  background: rgba(69, 87, 99, 0.02);
}

.pd-spec-row:hover {
  background: rgba(69, 87, 99, 0.04);
}

.pd-spec-label {
  color: rgba(69, 87, 99, 0.55);
  font-size: 0.9375rem;
}

.pd-spec-value {
  font-weight: 600;
  color: var(--puramane-navy);
  font-size: 0.9375rem;
}

/* Installation tab */
.pd-install-text {
  color: rgba(69, 87, 99, 0.7);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 1rem;
}

.pd-install-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--puramane-navy);
  color: white;
  text-decoration: none;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(69, 87, 99, 0.2);
}

.pd-install-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(69, 87, 99, 0.25);
}

/* ========== TOAST ========== */
.pd-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--puramane-navy);
  color: white;
  padding: 0.875rem 1.5rem;
  border-radius: 100px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 9000;
  font-size: 0.9375rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  animation: pdBounceIn 0.5s ease-out;
}

.pd-toast svg { flex-shrink: 0; }

/* ========== RESPONSIVE — 1280px+ ========== */
@media (min-width: 1280px) {
  .pd-title { font-size: 2.5rem; }
  .pd-grid { gap: 4rem; }
  .pd-price-value { font-size: 3rem; }
}

/* ========== RESPONSIVE — 1024–1279px ========== */
@media (min-width: 1024px) and (max-width: 1279px) {
  .pd-grid { gap: 2.5rem; }
  .pd-title { font-size: 2rem; }
  .pd-price-value { font-size: 2.5rem; }
  .pd-benefit-value { font-size: 1.375rem; }
}

/* ========== RESPONSIVE — 769–1023px (Tablet) ========== */
@media (min-width: 769px) and (max-width: 1023px) {
  .pd-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pd-main-image { max-width: 560px; margin: 0 auto; }
  .pd-thumbnails { max-width: 560px; margin: 0 auto; }
  .pd-title { font-size: 2rem; }
  .pd-price-value { font-size: 2.25rem; }

  .pd-tabs-container { max-width: 680px; }
}

/* ========== RESPONSIVE — 768px and below (Mobile) ========== */
@media (max-width: 768px) {
  .pd-breadcrumb-inner { padding: 0.75rem 1.25rem; font-size: 0.8125rem; }

  .pd-section { padding: 0; }
  .pd-container { padding: 0; }

  .pd-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Full-width image */
  .pd-main-image {
    border-radius: 0;
    aspect-ratio: 1 / 1;
  }

  .pd-thumbnails {
    padding: 0.75rem 1.25rem 0;
    gap: 0.625rem;
  }

  /* Info section with padding */
  .pd-info {
    padding: 1.5rem 1.25rem;
    gap: 1.25rem;
  }

  .pd-title { font-size: 1.75rem; }
  .pd-price-value { font-size: 2.25rem; }
  .pd-price-old { font-size: 1.25rem; }

  /* Benefits stack */
  .pd-benefits {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .pd-benefit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 1rem 1.25rem;
  }

  .pd-benefit-value { font-size: 1.375rem; margin-bottom: 0; }
  .pd-benefit-label { font-size: 0.8125rem; }

  /* Full-width add to cart */
  .pd-quantity-row { flex-direction: column; gap: 0.75rem; }
  .pd-quantity-selector { width: 100%; justify-content: center; }
  .pd-add-btn { width: 100%; padding: 1.125rem; }

  /* Actions stack */
  .pd-actions { gap: 0.5rem; }
  .pd-action-btn { padding: 0.75rem; font-size: 0.875rem; }

  /* Trust badges */
  .pd-trust { gap: 0.75rem; }
  .pd-trust-icon { width: 2.5rem; height: 2.5rem; }
  .pd-trust-title { font-size: 0.75rem; }
  .pd-trust-sub { font-size: 0.6875rem; }

  /* Tabs */
  .pd-tabs-section { padding: 2rem 0; }
  .pd-tabs-container { padding: 0 1.25rem; }

  .pd-tab-headers {
    border-radius: 0.75rem;
    padding: 0.25rem;
  }

  .pd-tab-btn {
    padding: 0.75rem 0.5rem;
    font-size: 0.8125rem;
    border-radius: 0.625rem;
  }

  .pd-tab-content {
    padding: 1.5rem;
    border-radius: 1rem;
  }

  .pd-tab-title { font-size: 1.125rem; }

  .pd-features-grid { grid-template-columns: 1fr; }

  .pd-spec-row { padding: 0.75rem; }
  .pd-spec-label, .pd-spec-value { font-size: 0.875rem; }

  /* Toast */
  .pd-toast {
    bottom: 1.5rem;
    left: 1rem;
    right: 1rem;
    transform: none;
    justify-content: center;
  }

  /* Padding bottom for sticky elements */
  .pd-info { padding-bottom: 2rem; }
}

/* ========== RESPONSIVE — 480px and below (Small mobile) ========== */
@media (max-width: 480px) {
  .pd-breadcrumb-inner { font-size: 0.75rem; gap: 0.375rem; }
  .pd-title { font-size: 1.5rem; }
  .pd-price-value { font-size: 2rem; }
  .pd-price-old { font-size: 1.125rem; }
  .pd-benefit-value { font-size: 1.25rem; }
  .pd-rating-text { font-size: 0.8125rem; }
  .pd-tab-btn { font-size: 0.75rem; padding: 0.625rem 0.375rem; }
  .pd-trust { grid-template-columns: 1fr; gap: 0.5rem; }
  .pd-trust-item { display: flex; gap: 0.75rem; text-align: left; }
  .pd-trust-icon { margin: 0; }
}
