@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* === NAVBAR OVERRIDES (for nav-new.php integration) === */
.navbar,
.navbar-nav>li>a,
.navbar-brand {
  font-family: "Times New Roman", Times, serif !important;
}

:root {
  --pw-accent: #8B1A2B;
  --pw-accent-light: #a82040;
  --pw-dark: #1a1a2e;
  --pw-text: #3a3a4a;
  --pw-text-light: #7a7a8a;
  --pw-bg: #ffffff;
  --pw-bg-alt: #f8f8fa;
  --pw-border: #e8e8ee;
  --pw-green: #2f8d46;
  --pw-radius: 12px;
  --pw-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --pw-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* ── Page Layout ── */
.pw-product-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 20px 0;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--pw-text);
}

/* ── Hero Section ── */
.pw-hero-section {
  background: var(--pw-bg);
  border-radius: var(--pw-radius);
  box-shadow: var(--pw-shadow);
  padding: 0;
  margin-bottom: 24px;
  overflow: hidden;
}

.pw-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ── Gallery with Thumbs ── */
.pw-gallery {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pw-gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.pw-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #f5f5f7;
}

.pw-thumb:hover {
  border-color: var(--pw-border);
}

.pw-thumb.active {
  border-color: var(--pw-dark);
}

.pw-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pw-gallery-main {
  flex: 1;
  border-radius: 0;
  overflow: hidden;
  background: #f5f5f7;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pw-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--pw-radius);
  transition: transform 0.5s ease;
}

.pw-gallery-main:hover img {
  transform: scale(1.03);
}

/* ── Product Info ── */
.pw-product-info {
  padding: 40px 48px 40px 0;
}

.pw-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.pw-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pw-badge-outline {
  border: 1.5px solid #e8e8e8;
  color: var(--pw-text);
  background: #f8f8f8;
}

.pw-badge-accent {
  background: rgba(139, 26, 43, 0.1);
  color: var(--pw-accent);
  border: 1.5px solid transparent;
}

.pw-product-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.2rem;
  font-weight: 600;
  color: var(--pw-dark);
  line-height: 1.1;
  margin: 0 0 8px;
}

.pw-product-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--pw-text-light);
  margin-bottom: 12px;
}

.pw-divider {
  width: 40px;
  height: 2px;
  background: var(--pw-accent);
  border-radius: 2px;
  margin-bottom: 20px;
}

.pw-description {
  font-size: 1.5rem;
  line-height: 1.7;
  color: var(--pw-text);
  margin-bottom: 24px;
  max-width: 90%;
}

/* ── Pricing ── */
.pw-pricing {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.pw-price-main {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--pw-dark);
}

.pw-price-unit {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--pw-text-light);
  margin-right: 12px;
}

.pw-price-sep {
  width: 1px;
  height: 20px;
  background: var(--pw-border);
  margin: 0 12px;
}

.pw-price-kg {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--pw-text-light);
}

/* ── Cart Actions ── */
.pw-cart-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.add-to-cart {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 40px;
  border: none;
  border-radius: 30px;
  background: #008d4c;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.add-to-cart::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s ease;
}

.add-to-cart:hover::before {
  left: 100%;
}

.add-to-cart:hover {
  background: #00723d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 141, 76, 0.35);
}

.add-to-cart:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 141, 76, 0.25);
}

.add-to-cart .fa-shopping-cart {
  font-size: 1.5rem;
}

.pw-wishlist-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--pw-border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--pw-text-light);
  font-size: 1.2rem;
}

.pw-wishlist-btn:hover {
  border-color: var(--pw-accent);
  color: var(--pw-accent);
  background: rgba(139, 26, 43, 0.04);
}

.pw-wishlist-btn i.fa-heart-o {
  font-weight: 400;
}

.btn-out-of-stock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border: none;
  border-radius: 6px;
  background: #9ca3af;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: not-allowed;
  opacity: 0.85;
}

/* ── Trust Indicators ── */
.pw-trust-row {
  display: flex;
  gap: 32px;
  padding-top: 0;
  border-top: none;
  margin-top: 8px;
}

.pw-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pw-trust-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pw-dark);
  font-size: 2.0rem;
  flex-shrink: 0;
  border: 1.5px solid var(--pw-border);
}

.pw-trust-text strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--pw-dark);
}

.pw-trust-text span {
  font-size: 1.5rem;
  color: var(--pw-text-light);
}

/* ── Features Strip ── */
.pw-features-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--pw-bg);
  border-radius: var(--pw-radius);
  box-shadow: var(--pw-shadow);
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--pw-border);
}

.pw-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 20px;
  border-right: 1px solid var(--pw-border);
  transition: background 0.2s;
}

.pw-feature:last-child {
  border-right: none;
}

.pw-feature:hover {
  background: var(--pw-bg-alt);
}

.pw-feature-icon {
  width: 44px;
  height: 44px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.0rem;
  color: var(--pw-dark);
  flex-shrink: 0;
  border: none;
}

.pw-feature-text strong {
  display: block;
  font-size: 1.0rem;
  font-weight: 600;
  color: var(--pw-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.pw-feature-text span {
  font-size: 1.2rem;
  color: var(--pw-text-light);
}

/* ── Olfactory Section ── */
.pw-olfactory-card {
  background: var(--pw-bg);
  border-radius: var(--pw-radius);
  box-shadow: var(--pw-shadow);
  margin-bottom: 24px;
  border: 1px solid var(--pw-border);
  overflow: hidden;
}

.pw-olfactory-main {
  padding: 32px;
}

.pw-olfactory-footer {
  display: grid;
  grid-template-columns: auto 1fr repeat(3, auto);
  align-items: center;
  gap: 40px;
  background: #fafafa;
  padding: 20px 32px;
  font-size: 0.75rem;
  border-top: 1px solid var(--pw-border);
}

.pw-olfactory-card .pw-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.0rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--pw-dark);
  margin: 0 auto 32px;
  padding-bottom: 8px;
  border-bottom: none;
  position: relative;
  display: block;
  text-align: center;
  width: fit-content;
}

.pw-olfactory-card .pw-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--pw-accent);
}

.pw-olfactory-grid {
  /*display: flex;*/
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-top: 20px;
}

.pw-olfactory-left {
  flex: 0 0 600px;
  min-width: 600px;
}

.pw-olfactory-right {
  flex: 1;
  min-width: 0;
}


/* Accord Toggles */
.accord-toggles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
}

.toggle-group {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #f5f5f5;
  border-radius: 25px;
  padding: 4px;
}

.btn-modern-toggle {
  background: transparent;
  border: none;
  color: #666;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 1.0rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
  white-space: nowrap;
}

.btn-modern-toggle:hover {
  color: var(--pw-dark);
}

.btn-modern-toggle.active {
  background: #008d4c;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 141, 76, 0.3);
  font-weight: 600;
}

.t-help {
  opacity: 0.5;
  transition: opacity 0.2s;
  margin-left: 6px;
}

.t-help:hover {
  opacity: 1;
}

/* Kaleidoscope button image thumbnail */
.btn-kal-img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 6px;
  vertical-align: middle;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: all 0.25s ease;
}

#btn-show-kal {
  display: inline-flex;
  align-items: center;
}

#btn-show-kal.active .btn-kal-img {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

/* Accord Bars — Fragrantica-style stacked bars */
.accord-bars-wrapper {
  max-height: 450px;
  overflow-y: auto;
  padding: 10px 0;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.accord-bars-wrapper::-webkit-scrollbar {
  width: 5px;
}

.accord-bars-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.accord-bars-wrapper::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 10px;
}

.accord-bars-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: #666;
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.accord-bar-row {
  margin-bottom: 4px;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
  animation: barGrow 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.accord-bar-fill {
  padding: 9px 16px;
  border-radius: 3px;
  transition: filter 0.2s ease;
}

.accord-bar-fill:hover {
  filter: brightness(1.08);
}

.accord-bar-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

@keyframes barGrow {
  from {
    max-width: 0;
    opacity: 0;
  }

  to {
    max-width: 100%;
    opacity: 1;
  }
}

/* Circle Accord */
.accord-circle-wrapper {
  width: 100%;
  max-height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0;
  /*background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);*/
  border-radius: 50%;
  aspect-ratio: 1;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.circle-svg {
  width: 100%;
  height: 100%;
  max-height: 780px;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.12));
  overflow: visible;
}

.pie-slice {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  opacity: 0.92;
}

.pie-slice:hover {
  opacity: 1;
  filter: brightness(1.1);
}

.note-segment {
  transition: all 0.3s ease;
  cursor: pointer;
  stroke-linecap: round;
}

.note-segment:hover {
  stroke-width: 35;
  filter: brightness(1.1);
}

.segment-text {
  pointer-events: none;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* ── Right Column: Notes + Docs ── */
.pw-olfactory-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pw-notes-columns {
  display: flex;
  flex: 1;
  justify-content: space-between;
}

.pw-note-column {
  flex: 1;
  text-align: center;
  padding: 0 20px;
  border-right: 1px solid var(--pw-border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pw-note-column:last-child {
  border-right: none;
}

.pw-note-card:hover {
  transform: none;
  box-shadow: none;
}

.pw-note-column h5 {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--pw-dark);
  margin: 0 0 12px;
}

.pw-note-column p {
  font-size: 1.2rem;
  color: var(--pw-text-light);
  line-height: 1.4;
  margin: 0 0 20px;
  min-height: 40px;
}

.pw-note-column-images {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pw-note-column-images img {
  width: 55px;
  height: 55px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--pw-border);
  background: #f8f8fa;
}

/* Documentation CTA - styled as 4th card in notes grid */
.pw-docs-cta {
  background: #f9f9fb;
  border-radius: 12px;
  padding: 20px 24px;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: none;
  margin-top: 10px;
}

.pw-docs-cta-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
}

.pw-docs-cta-icon {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  background: rgba(139, 26, 43, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pw-accent);
  font-size: 2rem;
  flex-shrink: 0;
}

.pw-docs-cta-header h5 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--pw-dark);
  margin: 0;
  text-transform: uppercase;
}

.pw-docs-cta p {
  font-size: 1.7rem;
  color: var(--pw-text-light);
  margin: 0;
  flex: 1;
  line-height: 1.5;
}

.pw-docs-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--pw-border);
  border-radius: 6px;
  background: #fff;
  color: var(--pw-dark);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.pw-docs-cta-btn:hover {
  background: var(--pw-bg-alt);
  border-color: var(--pw-text-light);
}

.pw-docs-cta-btn .fa-chevron-right {
  font-size: 0.65rem;
}

/* ── Documents Section ── */
.pw-documents-section {
  background: var(--pw-bg);
  border-radius: var(--pw-radius);
  box-shadow: var(--pw-shadow);
  padding: 32px;
  margin-bottom: 24px;
}

.pw-documents-section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--pw-dark);
  margin: 0 0 20px;
}

.pw-documents-section .nav-tabs {
  border-bottom: 2px solid var(--pw-border);
  margin-bottom: 16px;
}

.pw-documents-section .nav-link {
  border: 1px solid var(--pw-border);
  border-radius: 6px 6px 0 0;
  padding: 8px 20px;
  color: var(--pw-text-light);
  font-size: 0.8rem;
  font-weight: 600;
}

.pw-documents-section .nav-link.active {
  background: var(--pw-accent);
  color: #fff;
  border-color: var(--pw-accent);
}

.pw-documents-section .pdf-container {
  height: 500px;
  width: 100%;
  border: 1px solid var(--pw-border);
  border-radius: 8px;
  overflow: hidden;
}

.pw-documents-section .tab-pane {
  display: none;
}

.pw-documents-section .tab-pane.show {
  display: block;
}


.pw-bottom-sku {
  font-weight: 500;
  color: var(--pw-text-light);
}

.pw-bottom-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pw-bottom-rating .fa-star {
  color: #8B1A2B;
  font-size: 0.85rem;
}

.pw-bottom-rating span {
  font-weight: 600;
  color: var(--pw-dark);
  margin-left: 4px;
}

.pw-bottom-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--pw-text-light);
  font-weight: 500;
}

.pw-bottom-item i {
  color: var(--pw-text-light);
  font-size: 2.2rem;
}

.pw-bottom-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pw-dark);
  text-transform: uppercase;
}

.pw-bottom-item span {
  font-size: 0.9rem;
  color: var(--pw-text-light);
}

/* ── Pyramid View ── */
.pyramid-layout-wrapper {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 30px 0 20px;
}

.pyramid-canvas-container {
  position: relative;
  width: 62%;
  margin: 0 auto;
}

.pyramid-canvas-container canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  background: transparent !important;
}

/* Dashed horizontal dividers — full width of wrapper */
.pyramid-divider {
  position: absolute;
  left: -50%;
  right: -50%;
  height: 0;
  border-top: 2.5px dashed #c0c0c0;
  pointer-events: none;
  z-index: 2;
}

/* ── Left Note Labels ── */
.pyramid-note-labels {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100px;
  z-index: 3;
  pointer-events: none;
}

.pyramid-note-label {
  position: absolute;
  left: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #b8b8b8;
  white-space: nowrap;
  transform: translateY(-50%);
}

/* ── Ingredient Groups (photos + labels) ── */
.pyramid-ingredient-group {
  position: absolute;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.pyramid-group-photos {
  display: flex;
  gap: 5px;
  flex-wrap: nowrap;
}

.pyramid-photo {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  border: 1.5px solid #e0e0e0;
  background: #f8f8fa;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pyramid-photo:hover {
  transform: scale(1.08);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* Label + underline row */
.pyramid-group-label-line {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  margin-top: 2px;
}

.pyramid-group-line {
  flex: 1;
  height: 2px;
  background: #8B1A2B;
  min-width: 30px;
}

.pyramid-group-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #3a3a4a;
  white-space: nowrap;
  padding-left: 8px;
}

/* ── Group positioning ── */

/* Blender — upper-left, diagonal annotation style */
.pyramid-group-blender {
  top: 2%;
  left: 3%;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}


/* Diagonal line + label wrapper */
.pyramid-blender-line-wrapper {
  position: relative;
  width: 220px;
  height: 120px;
  margin-top: 0;
  margin-left: 0;
}

/* The diagonal thin line */
.pyramid-blender-diagonal-line {
  position: absolute;
  top: 0;
  left: 110%;
  width: 170px;
  height: 0;
  border-top: 1px solid #444;
  transform-origin: 0 0;
  transform: rotate(121deg);
}

/* Photos — positioned above label on the diagonal */
.pyramid-blender-photos {
  position: absolute;
  top: 25px;
  left: 78%;
  display: flex;
  flex-direction: row;
  gap: 3px;
  transform: translate(-50%, -50%) rotate(-59deg);
  transform-origin: center center;
}

.pyramid-blender-photos .pyramid-photo {
  width: 42px;
  height: 42px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* "Blender" label along the diagonal — reversed & centered */
.pyramid-blender-label {
  position: absolute;
  top: 70px;
  left: 85%;
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  font-style: italic;
  color: #444;
  white-space: nowrap;
  letter-spacing: 2px;
  transform: translate(-50%, -50%) rotate(-59deg);
}

/* Modify — upper-right */
.pyramid-group-modify {
  top: 12%;
  right: 0;
  align-items: flex-start;
}

/* Heart — middle-right */
.pyramid-group-heart {
  top: 48%;
  right: 0;
  align-items: flex-start;
}

/* Fixative — bottom-right */
.pyramid-group-fixative {
  top: 70%;
  right: 0;
  align-items: flex-start;
}

/* ── Kaleidoscope ── */
#kaleidoscope-circle {
  margin: auto;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 140px;
  height: 140px;
  border-radius: 70px;
  z-index: 10;
  background-color: #fff;
  font-size: 28px;
  color: #000;
  text-align: center;
  vertical-align: middle;
  line-height: 140px;
  font-weight: 700;
}

#title {
  position: absolute;
  top: 5px;
  left: 10px;
  color: #e0e0e0;
  font-size: 27px;
}

#loading {
  position: absolute;
  top: 200px;
  left: 0;
  width: 100%;
  color: #e0e0e0;
  font-size: 27px;
  text-align: center;
}

.triangle {
  position: absolute;
  width: 294px;
  height: 250px;
  top: 0;
  left: 103px;
  -webkit-clip-path: polygon(100% 0, 0 0, 50% 100%);
  clip-path: polygon(100% 0, 0 0, 50% 100%);
  transform-origin: 50% 100%;
  background-image: url();
  background-position: 0 0;
}

.assets {
  background-image: url(images/wvoaSGm.png);
}

#outershape {
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  margin: auto;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  overflow: hidden;
}

input[type=text] {
  width: 20%;
}

input[type=number] {
  width: 30%;
  text-align: center;
  border-radius: 5px;
}

img {
  border-radius: 8px;
}

/* ── Rating Tooltip ── */
.pw-rating-tooltip-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  cursor: help;
}

.pw-rating-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: #ffffff;
  color: #fff;
  width: 260px;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: 'Inter', sans-serif;
  text-transform: none;
  font-weight: normal;
  pointer-events: none;
}

.pw-rating-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -8px;
  border-width: 8px;
  border-style: solid;
  border-color: #1a1a2e transparent transparent transparent;
}

.pw-rating-tooltip-wrapper:hover .pw-rating-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

.pw-rating-tooltip strong {
  display: block;
  font-size: 1.5rem;
  font-family: 'Playfair Display', serif;
  margin-bottom: 12px;
  color: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.pw-rating-tooltip ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.pw-rating-tooltip li {
  font-size: 1.1rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  color: #000000;
}

.pw-rating-tooltip li span {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: var(--pw-accent);
  color: white;
  border-radius: 4px;
  text-align: center;
  line-height: 20px;
  font-weight: 700;
  margin-right: 10px;
  font-size: 0.9rem;
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal-content {
  background-color: #fff;
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  width: 95%;
  max-width: 800px;
  position: relative;
  text-align: left;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f5f5f7;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--pw-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.modal-close:hover {
  background: var(--pw-accent);
  color: #fff;
  transform: rotate(90deg);
}

.modal-body-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.modal-image-col {
  background: #f8f8fa;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  margin: 0;
}

.modal-product-image:hover {
  transform: scale(1.05);
}

.modal-product-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--pw-dark);
  margin-bottom: 24px;
  line-height: 1.1;
  text-align: left;
}

.modal-options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.modal-option {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border: 1.5px solid var(--pw-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fff;
}

.modal-option:hover {
  border-color: var(--pw-accent-light);
  background: #fff9fa;
}

.modal-option input[type="radio"] {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.checkbox-visual {
  height: 24px;
  width: 24px;
  border: 2px solid var(--pw-border);
  border-radius: 50%;
  margin-right: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.checkbox-visual::after {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transform: scale(0);
  transition: transform 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46);
}

.modal-option input[type="radio"]:checked+.checkbox-visual {
  border-color: var(--pw-accent);
  background: var(--pw-accent);
}

.modal-option input[type="radio"]:checked+.checkbox-visual::after {
  transform: scale(1);
}

.option-text {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.option-title {
  font-weight: 700;
  color: var(--pw-dark);
  font-size: 1.25rem;
}

.option-description {
  font-size: 1.1rem;
  color: var(--pw-text-light);
  font-weight: 500;
}

.option-quantity {
  width: 90px;
  text-align: center;
  border: 1.5px solid var(--pw-border);
  border-radius: 10px;
  padding: 12px 8px;
  margin-left: 16px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--pw-dark);
  outline: none;
  transition: all 0.2s;
}

.option-quantity:focus {
  border-color: var(--pw-accent);
  box-shadow: 0 0 0 3px rgba(139, 26, 43, 0.1);
}

.modal-footer-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 20px;
}

.addCart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px 48px;
  border: none;
  border-radius: 40px;
  background: var(--pw-green);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.addCart i {
  font-size: 1.4rem;
}

.addCart:hover {
  background: #26753a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(47, 141, 70, 0.3);
}

.addCart:active {
  transform: translateY(0);
}

/* ── Details Sections ── */
.pw-details-section {
  margin-bottom: 32px;
}

.pw-details-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

.pw-card {
  background: var(--pw-bg);
  border-radius: var(--pw-radius);
  box-shadow: var(--pw-shadow);
  border: 1px solid var(--pw-border);
  padding: 32px;
  height: 100%;
}

.pw-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pw-dark);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pw-border);
  position: relative;
}

.pw-card-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--pw-accent);
}

.pw-card p {
  line-height: 1.6;
  color: var(--pw-text);
  font-size: 1.5rem;
}

/* Spec List */
.pw-spec-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pw-spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px dotted var(--pw-border);
}

.pw-spec-item:last-child {
  border-bottom: none;
}

.pw-spec-label {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--pw-text-light);
}

.pw-spec-value {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--pw-dark);
}

/* Suitability Bars */
.pw-suitability-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pw-suit-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pw-suit-info {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 600;
}

.pw-suit-name {
  color: var(--pw-dark);
  font-size: 1.1rem;
  font-weight: 700;
}

.pw-suit-label-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pw-suit-desc {
  font-size: 0.9rem;
  color: var(--pw-text-light);
  font-weight: 500;
  font-style: italic;
}

.pw-suit-val {
  color: var(--pw-text-light);
}

.pw-suit-bar-bg {
  height: 6px;
  background: #f0f0f2;
  border-radius: 3px;
  overflow: hidden;
}

.pw-suit-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease-out;
}

/* Documentation Link */
.pw-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1.5px solid var(--pw-border);
  border-radius: 30px;
  background: transparent;
  color: var(--pw-dark);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.pw-btn-secondary:hover {
  background: var(--pw-bg-alt);
  border-color: var(--pw-dark);
  transform: translateY(-1px);
}

/* ── Recommendations Section ── */
.pw-recommendations {
  margin-top: 48px;
  margin-bottom: 60px;
}

.pw-section-header {
  margin-bottom: 24px;
}

.pw-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--pw-dark);
  margin-bottom: 4px;
}

.pw-section-subtitle {
  color: var(--pw-text-light);
  font-size: 1.2rem;
}

.pw-recommendations-slider {
  overflow-x: auto;
  padding-bottom: 20px;
  margin: 0 -20px;
  padding-left: 20px;
  scrollbar-width: none;
  /* Firefox */
}

.pw-recommendations-slider::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.pw-recommendations-track {
  display: flex;
  gap: 20px;
}

.pw-rec-card {
  min-width: 260px;
  background: var(--pw-bg);
  border-radius: 16px;
  border: 1px solid var(--pw-border);
  overflow: hidden;
  transition: all 0.3s ease;
}

.pw-rec-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--pw-shadow-lg);
}

.pw-rec-image {
  height: 200px;
  background: #f8f8fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pw-rec-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pw-rec-card:hover .pw-rec-image img {
  transform: scale(1.05);
}

.pw-rec-info {
  padding: 20px;
}

.pw-rec-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  height: 2.8em;
  overflow: hidden;
}

.pw-rec-name a {
  color: var(--pw-dark);
  text-decoration: none;
}

.pw-rec-price {
  color: var(--pw-green);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.pw-rec-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.pw-rec-qty {
  width: 60px !important;
  padding: 8px !important;
  border: 1px solid var(--pw-border);
  border-radius: 8px;
  font-size: 0.9rem;
}

.pw-rec-add {
  flex: 1;
  background: var(--pw-dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.pw-rec-add:hover {
  background: var(--pw-accent);
}

.pw-doc-cta {
  margin-top: 24px;
  padding: 20px;
  background: #f9f9fb;
  border-radius: 12px;
  border: 1px solid var(--pw-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.pw-doc-cta .pw-btn-secondary {
  width: 100%;
  justify-content: center;
}

/* ── Pyramid View Layout ── */
.pyramid-layout-wrapper {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 30px 100px 30px 100px;
  min-height: 400px;
}

.pyramid-note-labels {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 90px;
  z-index: 2;
}

.pyramid-note-label {
  position: absolute;
  left: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #b8b8b8;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.pyramid-canvas-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  flex-shrink: 0;
}

.pyramid-canvas-container canvas {
  display: block;
  width: 100%;
  height: auto;
}

.pyramid-divider {
  position: absolute;
  left: 1%;
  right: 1%;
  height: 0;
  border-top: 2px dashed rgba(180, 180, 180, 0.5);
  pointer-events: none;
  z-index: 1;
}

/* Ingredient groups positioned around the pyramid */
.pyramid-ingredient-group {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 3;
}

.pyramid-group-photos {
  display: flex;
  gap: 6px;
}

.pyramid-photo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.pyramid-photo:hover {
  transform: translateY(-5px) scale(1.12);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.pyramid-group-label {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #2d3436;
  letter-spacing: 1.2px;
  text-transform: capitalize;
}

.pyramid-group-label-rotated {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-style: italic;
}

.pyramid-group-label-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.pyramid-group-line {
  display: inline-block;
  width: 160px;
  height: 2px;
  background: #888;
}

/* Blender - left side, near top-middle */
.pyramid-group-blender {
  top: 20%;
  left: 10%;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

/* Modify - top right */
.pyramid-group-modify {
  top: 15%;
  right: 0;
  align-items: flex-start;
}

.pyramid-group-modify .pyramid-group-label-line {
  justify-content: flex-start;
}

/* Heart - middle right */
.pyramid-group-heart {
  top: 42%;
  right: 0;
  align-items: flex-start;
}

.pyramid-group-heart .pyramid-group-label-line {
  justify-content: flex-start;
}

/* Fixative - bottom right */
.pyramid-group-fixative {
  bottom: 6%;
  right: 0;
  align-items: flex-start;
}

.pyramid-group-fixative .pyramid-group-label-line {
  justify-content: flex-start;
}




/* ── Olfactory Notes Columns ── */
.pw-notes-columns {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  border-top: 1px solid var(--pw-border);
  padding-top: 32px;
}

.pw-note-column {
  flex: 1;
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid var(--pw-border);
}

.pw-note-column:last-child {
  border-right: none;
}

.pw-note-column h5 {
  font-family: 'Inter', sans-serif;
  font-size: 1.0rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--pw-dark);
  margin-bottom: 12px;
}

.pw-note-column p {
  font-size: 0.95rem;
  color: var(--pw-text-light);
  line-height: 1.5;
  margin-bottom: 16px;
  min-height: 3em;
}

.pw-note-column-images {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pw-note-column-images img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--pw-border);
  transition: transform 0.2s;
}

.pw-note-column-images img:hover {
  transform: scale(1.1);
}

/* ── Odour & Impact Specifics ── */
.pw-odour-description {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--pw-text);
  margin-bottom: 24px;
  padding: 20px;
  background: #fcfcfd;
  border-radius: 8px;
  border-left: 3px solid var(--pw-accent);
}

.pw-impact-value {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(139, 26, 43, 0.05);
  color: var(--pw-accent);
  border-radius: 4px;
  font-weight: 700;
  font-size: 1.0rem;
}

/* ── Responsive Mobile Layout ── */

@media (max-width: 991px) {
  .pw-product-page {
    padding: 90px 15px 0;
  }

  .pw-hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .pw-product-info {
    padding: 20px 24px 40px 24px;
  }

  .pw-features-strip {
    grid-template-columns: 1fr 1fr;
  }

  .pw-details-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }


  .pw-olfactory-grid {
    flex-direction: column !important;
    gap: 30px;
  }

  .pw-olfactory-left {
    flex: 1 1 100%;
    min-width: 100%;
    width: 100%;
  }

  .pw-notes-columns {
    flex-direction: column;
    gap: 20px;
  }

  .pw-note-column {
    border-right: none;
    border-bottom: 1px solid var(--pw-border);
    padding-bottom: 20px;
  }

  .pw-note-column:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .toggle-group {
    flex-wrap: wrap;
    justify-content: center;
  }

  .pw-docs-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .pw-docs-cta p {
    text-align: left;
  }

  /* Keep Pyramid layout exactly the same, just scale it down to fit */
  .pyramid-layout-wrapper {
    width: 700px !important;
    min-width: 700px !important;
    max-width: 700px !important;
    padding: 30px 100px 30px 100px !important;
    min-height: 400px !important;
    zoom: 0.9;
    margin-left: auto;
    margin-right: auto;
  }

  /* Keep Kaleidoscope same */
  #kaleidoscope {
    zoom: 0.8;
  }

  .pw-trust-row {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    margin-top: 24px;
  }
}

@media (max-width: 768px) {
  .pyramid-layout-wrapper {
    zoom: 0.75;
  }

  #kaleidoscope {
    zoom: 0.7;
  }
}

@media (max-width: 576px) {
  .pw-features-strip {
    grid-template-columns: 1fr;
  }

  /* Dosage Grid Mobile Adjustments */
  .pw-card .pw-dosage-grid,
  .pw-card div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Spec List Mobile Stack */
  .pw-spec-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-bottom: 12px;
  }

  .pyramid-layout-wrapper {
    zoom: 0.65;
  }

  #kaleidoscope {
    zoom: 0.6;
  }
}

@media (max-width: 480px) {
  .pyramid-layout-wrapper {
    zoom: 0.55;
  }

  #kaleidoscope {
    zoom: 0.5;
  }
}

@media (max-width: 400px) {
  .pyramid-layout-wrapper {
    zoom: 0.45;
  }

  #kaleidoscope {
    zoom: 0.4;
  }
}

@media (max-width: 350px) {
  .pyramid-layout-wrapper {
    zoom: 0.4;
  }

  #kaleidoscope {
    zoom: 0.35;
  }
}

/* Modal still needs to be responsive since it's fixed/overlay */
@media (max-width: 768px) {
  .modal-body-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .modal-content {
    padding: 40px 24px 24px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-product-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 16px;
  }

  .modal-image-col {
    max-width: 200px;
    margin: 0 auto;
  }
}