/* ==========================================================================
   PRODUCT DETAIL PAGE (PDP) SCOPED STYLES (Behest Of Nature)
   Pixel-Perfect Match for Editorial Farm-to-Table Brand Identity
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Page Background & Breadcrumbs
   -------------------------------------------------------------------------- */
body {
  background-color: #FAF7F2 !important;
}

.pdp-breadcrumbs-bar {
  padding: 1.25rem 0 0.5rem;
  background: transparent;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: #738075;
}

.crumbs a {
  color: var(--olive, #253D2A);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.crumbs a:hover {
  color: #C15C25;
}

.crumbs .crumb-sep {
  color: rgba(37, 61, 42, 0.25);
  font-size: 0.75rem;
}

.crumbs .cur {
  color: #7D4A1A;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   1. PDP Hero Section Layout (2-Column Grid)
   -------------------------------------------------------------------------- */
.pdp-ot-section {
  max-width: 1140px !important;
  margin: 0 auto !important;
  padding: 1.75rem 1.5rem 4rem !important;
  box-sizing: border-box;
}

.pdp-ot-grid {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: 2.25rem;
  align-items: start;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  .pdp-ot-grid {
    grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
    gap: 1.75rem;
  }
}

@media (max-width: 991px) {
  .pdp-ot-section {
    padding: 1.5rem 1rem 2.5rem !important;
  }
  .pdp-ot-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --------------------------------------------------------------------------
   2. Left Gallery Column (Compact, Polished Focal Gallery & Thumbnails)
   -------------------------------------------------------------------------- */
.pdp-ot-gallery {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 88px !important;
  display: flex !important;
  flex-direction: column !important;
  z-index: 10 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 991px) {
  .pdp-ot-gallery {
    position: static !important;
  }
}

/* Gallery Flex Layout (Thumbnails positioned at the left side of the main image slider) */
.pdp-gallery-layout {
  display: flex !important;
  flex-direction: row !important;
  gap: 16px !important;
  align-items: flex-start !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 767px) {
  .pdp-gallery-layout {
    flex-direction: column-reverse !important;
    gap: 12px !important;
  }
}

/* Main Image Container Card */
.pdp-ot-main-card {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  position: relative !important;
  background: #FFFDF9 !important;
  border: 1px solid #EAE4D9 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 20px rgba(37, 61, 42, 0.04) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px !important;
  aspect-ratio: 1 / 1 !important;
  max-height: 520px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.pdp-ot-main-card:hover {
  border-color: rgba(37, 61, 42, 0.16) !important;
  box-shadow: 0 6px 24px rgba(37, 61, 42, 0.07) !important;
}

@media (max-width: 991px) {
  .pdp-ot-main-card {
    aspect-ratio: 1 / 1 !important;
    max-height: 480px !important;
    padding: 8px !important;
    border-radius: 16px !important;
  }
}

@media (max-width: 576px) {
  .pdp-ot-main-card {
    max-height: 390px !important;
    padding: 6px !important;
    border-radius: 14px !important;
  }
}

.pdp-slider-track-wrap {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.pdp-slider-track {
  position: relative !important;
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
  align-items: center !important;
  justify-content: center !important;
}

.pdp-slide {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 1 !important;
  overflow: hidden !important;
  cursor: default;
}

.pdp-slide.is-active {
  position: relative !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 2 !important;
}

@media (hover: hover) and (pointer: fine) {
  .pdp-slide.is-active {
    cursor: zoom-in;
  }
  .pdp-slide.is-active.is-zoomed {
    cursor: crosshair;
  }
}

.pdp-slide-img,
.pdp-ot-main-image {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  border-radius: 12px !important;
  transform-origin: 50% 50%;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  will-change: transform, transform-origin;
  pointer-events: none !important;
  display: block !important;
  margin: auto !important;
}

/* Beautiful Luxury Zoom State on Active Slide */
.pdp-slide.is-active.is-zoomed .pdp-slide-img,
.pdp-slide.is-active.is-zoomed .pdp-ot-main-image {
  transform: scale(2.2) !important;
  transition: transform 0.16s ease-out !important;
}

/* Elegant Luxury Zoom Badge */
.pdp-zoom-hint {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(37, 61, 42, 0.82);
  color: #FFFDF9;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 30px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.88;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.pdp-slider-track-wrap.is-zoomed .pdp-zoom-hint {
  opacity: 0;
  transform: scale(0.92);
}

@media (hover: none) or (pointer: coarse) {
  .pdp-zoom-hint {
    display: none !important;
  }
}

/* Mobile Touch Pinch Zoom Styles */
.pdp-slider-track-wrap.is-touch-zooming {
  touch-action: none !important;
}

.pdp-slide.is-touch-zooming {
  z-index: 10 !important;
  overflow: hidden !important;
}

.pdp-slide.is-touch-zooming .pdp-slide-img,
.pdp-slide.is-touch-zooming .pdp-ot-main-image {
  will-change: transform, transform-origin;
  pointer-events: none !important;
}

/* Slider Nav Arrows (Subtle circular floating buttons) */
.pdp-slider-nav-btn {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  border: 1px solid rgba(37, 61, 42, 0.12) !important;
  color: #253D2A !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 10 !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  padding: 0 !important;
}

.pdp-slider-nav-btn:hover {
  background: #FFFFFF !important;
  color: #C15C25 !important;
  border-color: rgba(193, 92, 37, 0.3) !important;
  transform: translateY(-50%) scale(1.08) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
}

.pdp-slider-nav-btn.prev {
  left: 12px !important;
}

.pdp-slider-nav-btn.next {
  right: 12px !important;
}

@media (max-width: 576px) {
  .pdp-slider-nav-btn {
    width: 30px !important;
    height: 30px !important;
  }
  .pdp-slider-nav-btn.prev {
    left: 8px !important;
  }
  .pdp-slider-nav-btn.next {
    right: 8px !important;
  }
}

/* Thumbnails Strip (Vertical carousel on the left side of main slider) */
.pdp-ot-thumbs {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  width: 76px !important;
  min-width: 76px !important;
  max-width: 76px !important;
  flex-shrink: 0 !important;
  max-height: 520px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  justify-content: flex-start !important;
  align-items: center !important;
  padding: 2px !important;
  margin: 0 !important;
  scrollbar-width: none !important;
  box-sizing: border-box !important;
}

.pdp-ot-thumbs::-webkit-scrollbar {
  display: none !important;
}

@media (max-width: 767px) {
  .pdp-ot-thumbs {
    flex-direction: row !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 10px !important;
    padding: 4px 2px 6px !important;
  }
}

.pdp-ot-thumb-btn {
  width: 76px !important;
  height: 76px !important;
  min-width: 76px !important;
  min-height: 76px !important;
  border-radius: 12px !important;
  border: 1.5px solid #E6DFD5 !important;
  background: #FAF7F2 !important;
  padding: 4px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  opacity: 0.72 !important;
}

.pdp-ot-thumb-btn:hover {
  opacity: 1 !important;
  border-color: #253D2A !important;
  transform: translateY(-1px) !important;
}

.pdp-ot-thumb-btn.is-active,
.pdp-ot-thumb-btn[aria-current="true"] {
  opacity: 1 !important;
  border: 2px solid #253D2A !important;
  background: #FFFDF9 !important;
  box-shadow: 0 0 0 2px rgba(37, 61, 42, 0.18), 0 3px 10px rgba(0, 0, 0, 0.06) !important;
  transform: scale(1.02) !important;
}

@media (max-width: 991px) {
  .pdp-ot-thumb-btn {
    width: 68px !important;
    height: 68px !important;
    min-width: 68px !important;
    min-height: 68px !important;
  }
}

@media (max-width: 576px) {
  .pdp-ot-thumb-btn {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    border-radius: 10px !important;
  }
}

.pdp-ot-thumb-btn img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  display: block !important;
}

/* --------------------------------------------------------------------------
   3. Right Info Column & Visual Hierarchy
   -------------------------------------------------------------------------- */
.pdp-ot-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.pdp-ot-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4A574C;
  background: rgba(37, 61, 42, 0.06);
  padding: 4px 10px;
  border-radius: 4px;
  width: fit-content;
}

.pdp-ot-title {
  font-family: var(--font-display, "Playfair Display", Georgia, serif);
  font-size: clamp(2.2rem, 3.8vw, 2.9rem);
  font-weight: 700;
  color: #253D2A;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0.65rem 0 0.5rem;
}

@media (max-width: 768px) {
  .pdp-ot-title {
    font-size: 1.95rem;
    margin-top: 0.85rem;
  }
}

.pdp-ot-subtitle {
  font-size: 0.92rem;
  color: #556055;
  line-height: 1.5;
  margin: 0 0 2px;
  text-align: justify;
}

.pdp-ot-rating-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.pdp-ot-stars {
  color: #E5A855;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.pdp-ot-rating-score {
  font-weight: 700;
  color: #253D2A;
  font-size: 0.92rem;
}

.pdp-ot-reviews-link {
  color: #556055;
  text-decoration: underline;
  font-size: 0.86rem;
}

.pdp-ot-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #2D7D46;
  background: rgba(45, 125, 70, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 8px;
}

/* Integrated Price Area */
.pdp-ot-price-area {
  background: transparent;
  border: none;
  padding: 0;
  margin: 4px 0 6px;
}

.pdp-ot-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.pdp-ot-current-price {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
  font-size: 2.25rem;
  font-weight: 700;
  color: #253D2A;
  letter-spacing: 0 !important;
  line-height: 1;
}

.pdp-ot-mrp {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
  font-size: 1.15rem;
  color: #888888;
  text-decoration: line-through;
  font-weight: 500;
  letter-spacing: 0 !important;
}

.pdp-ot-save-badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: #7D4A1A;
  background: rgba(125, 74, 26, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
}

.pdp-ot-tax-info {
  font-size: 0.8rem;
  color: #738075;
  margin-top: 3px;
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   4. Quantity Selector & Dual CTAs
   -------------------------------------------------------------------------- */
.pdp-bulk-orders-btn:hover {
  background: rgba(37, 211, 102, 0.16) !important;
  border-color: #25D366 !important;
  color: #14532D !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.2);
}

.pdp-ot-qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 6px 0 10px;
}

.pdp-ot-qty-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #253D2A;
}

.pdp-ot-qty-box {
  display: inline-flex;
  align-items: center;
  background: #FAF7F2;
  border: 1px solid rgba(37, 61, 42, 0.18);
  border-radius: 999px;
  height: 36px;
  padding: 0 8px;
  gap: 8px;
}

.pdp-ot-qty-btn {
  background: transparent;
  border: none;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #253D2A;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s ease;
}

.pdp-ot-qty-btn:hover {
  background: rgba(37, 61, 42, 0.08);
}

.pdp-ot-qty-val {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #253D2A;
}

.pdp-ot-btns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

@media (max-width: 576px) {
  .pdp-ot-btns-grid {
    grid-template-columns: 1fr;
  }
}

.pdp-ot-btn-cart,
.pdp-ot-btn-buynow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  text-decoration: none;
}

.pdp-ot-btn-cart {
  background: #253D2A;
  color: #FFFFFF;
}

.pdp-ot-btn-cart:hover {
  background: #1B2D1F;
  color: #FFFFFF;
}

.pdp-ot-btn-buynow {
  background: #C15C25;
  color: #FFFFFF;
}

.pdp-ot-btn-buynow:hover {
  background: #A84C1C;
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   5. Clean Minimal Trust Strip (4 Columns)
   -------------------------------------------------------------------------- */
.pdp-ot-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(37, 61, 42, 0.1);
  border-radius: 10px;
  background: transparent;
  padding: 10px 4px;
  margin: 8px 0 12px;
}

@media (max-width: 768px) {
  .pdp-ot-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pdp-ot-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 2px 6px;
  border-right: 1px solid rgba(37, 61, 42, 0.1);
}

.pdp-ot-trust-item:last-child {
  border-right: none;
}

@media (max-width: 768px) {
  .pdp-ot-trust-item:nth-child(2) {
    border-right: none;
  }
}

.pdp-ot-trust-icon {
  color: #253D2A;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp-ot-trust-txt {
  font-size: 0.74rem;
  font-weight: 600;
  color: #253D2A;
  line-height: 1.25;
}

/* --------------------------------------------------------------------------
   6. Editorial Product Accordions
   -------------------------------------------------------------------------- */
.pdp-ot-accordions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.pdp-ot-acc-item {
  border: 1px solid rgba(37, 61, 42, 0.12);
  border-radius: 10px;
  background: #FFFDF9;
  padding: 14px 18px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.pdp-ot-acc-item:hover {
  border-color: rgba(37, 61, 42, 0.25);
}

.pdp-ot-acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  color: #253D2A;
  cursor: pointer;
  user-select: none;
}

.pdp-ot-acc-icon-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #253D2A;
}

.pdp-ot-acc-chevron {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  flex-shrink: 0 !important;
  color: #253D2A !important;
  transition: transform 0.2s ease !important;
  display: block !important;
}

.pdp-ot-acc-item.is-open .pdp-ot-acc-chevron {
  transform: rotate(180deg) !important;
}

.pdp-ot-acc-content {
  display: none;
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid rgba(37, 61, 42, 0.08);
  font-size: 0.92rem;
  color: #556055;
  line-height: 1.6;
  text-align: justify;
}

.pdp-ot-acc-content > *:first-child,
.pdp-ot-acc-content > div:first-child > *:first-child,
.pdp-ot-acc-content p:first-child,
.pdp-ot-acc-content h1:first-child,
.pdp-ot-acc-content h2:first-child,
.pdp-ot-acc-content h3:first-child,
.pdp-ot-acc-content h4:first-child,
.pdp-ot-acc-content h5:first-child,
.pdp-ot-acc-content h6:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.pdp-ot-acc-content p {
  text-align: justify;
  margin-bottom: 0.65rem;
}

.pdp-ot-acc-content p:last-child {
  margin-bottom: 0 !important;
}

.pdp-ot-acc-item.is-open .pdp-ot-acc-content {
  display: block;
}

/* Specification & Nutritional Tables */
.pdp-ot-spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
  font-size: 0.88rem;
}

.pdp-ot-spec-table tr {
  border-bottom: 1px solid rgba(37, 61, 42, 0.06);
}

.pdp-ot-spec-table tr:last-child {
  border-bottom: none;
}

.pdp-ot-spec-table td {
  padding: 8px 2px;
}

.pdp-ot-spec-table td:first-child {
  color: #546052;
  font-weight: 500;
  width: 55%;
}

.pdp-ot-spec-table td:last-child {
  color: #253D2A;
  font-weight: 700;
  text-align: right;
}

/* Nutritional Label Multi-column Table */
.pdp-nutri-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  font-size: 0.84rem;
}

.pdp-nutri-table th {
  padding: 6px 4px;
  font-weight: 700;
  color: #253D2A;
  border-bottom: 1.5px solid rgba(37, 61, 42, 0.15);
}

.pdp-nutri-table td {
  padding: 6px 4px;
  border-bottom: 1px solid rgba(37, 61, 42, 0.06);
}

.pdp-nutri-table tr:last-child td {
  border-bottom: none;
}

.pdp-nutri-table th:first-child,
.pdp-nutri-table td:first-child {
  text-align: left;
  color: #546052;
  font-weight: 500;
  width: 44%;
}

.pdp-nutri-table th:not(:first-child),
.pdp-nutri-table td:not(:first-child) {
  text-align: right;
  color: #253D2A;
  font-weight: 600;
  width: 18.6%;
}

.pdp-nutri-footer {
  font-size: 0.75rem;
  color: #788476;
  margin-top: 8px;
  line-height: 1.4;
  border-top: 1px dashed rgba(37, 61, 42, 0.12);
  padding-top: 6px;
}
