/* Server-rendered product pages (/products/<slug>/) */
.pd-wrap { max-width: 1180px; }
.pd-crumb-title { font-size: clamp(30px, 4vw, 52px); margin: 0; }

.pd-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: start; }
@media (max-width: 991px) { .pd-top { grid-template-columns: 1fr; gap: 28px; } }

/* product photo gallery (swipe = CSS scroll-snap; arrows/dots/autoplay = product-gallery.js) */
.pd-gallery { position: relative; min-width: 0; }
.pd-gallery__viewport { position: relative; border: 1px solid #ededf2; border-radius: 16px; overflow: hidden; background: #f7f6f9; }
.pd-gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none; }
.pd-gallery__track::-webkit-scrollbar { display: none; }
.pd-gallery__track:focus-visible { box-shadow: inset 0 0 0 3px rgba(80, 38, 107, .35); }
.pd-gallery__slide { flex: 0 0 100%; margin: 0; aspect-ratio: 1 / 1; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; }
.pd-gallery__slide img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.pd-gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--rs-theme-orange, #50266b); font-size: 28px; line-height: 1; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(31, 31, 31, .18); cursor: pointer; opacity: 0; transition: opacity .2s, background .2s; z-index: 2; }
.pd-gallery__nav--prev { left: 12px; }
.pd-gallery__nav--next { right: 12px; }
.pd-gallery:hover .pd-gallery__nav, .pd-gallery__nav:focus-visible { opacity: 1; }
.pd-gallery__nav:hover { background: var(--rs-theme-orange, #50266b); color: #fff; }
@media (hover: none) { .pd-gallery__nav { opacity: 1; width: 38px; height: 38px; font-size: 24px; } }
.pd-gallery__nav[hidden], .pd-gallery__dots[hidden] { display: none !important; }
.pd-gallery__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 7px; z-index: 2; }
.pd-gallery__dots button { width: 9px; height: 9px; padding: 0; border-radius: 999px; border: 0; background: rgba(80, 38, 107, .3); cursor: pointer; transition: width .25s, background .25s; }
.pd-gallery__dots button[aria-current="true"] { width: 24px; background: var(--rs-theme-orange, #50266b); }
.pd-gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.pd-gallery__thumb { flex: 0 0 76px; display: block; border: 2px solid #ededf2; border-radius: 10px; overflow: hidden; aspect-ratio: 1 / 1; background: #f7f6f9; transition: border-color .2s, opacity .2s; opacity: .75; }
.pd-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-gallery__thumb:hover { opacity: 1; }
.pd-gallery__thumb.is-active { border-color: var(--rs-theme-orange, #50266b); opacity: 1; }

.pd-eyebrow { color: var(--rs-theme-orange, #50266b); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; margin: 0 0 8px; }
.pd-title { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; margin: 0 0 8px; color: var(--rs-title-primary, #1f1f1f); }
.pd-subtitle { color: var(--rs-title-secondary, #152a40); font-weight: 600; margin: 0 0 16px; }
.pd-answer { font-size: 16.5px; line-height: 1.7; color: var(--rs-text-primary, #555); background: #f7f4fa; border-left: 4px solid var(--rs-theme-orange, #50266b); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 0 0 24px; }

.pd-h2 { font-size: clamp(20px, 2.2vw, 26px); margin: 0 0 14px; color: var(--rs-title-primary, #1f1f1f); }
.pd-facts { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; margin: 0 0 24px; border: 1px solid #dee2e6; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .1); background: #fff; }
.pd-facts th, .pd-facts td { padding: 12px 15px; text-align: left; vertical-align: top; line-height: 1.55; border-bottom: 1px solid #dee2e6; }
.pd-facts tr:last-child th, .pd-facts tr:last-child td { border-bottom: 0; }
.pd-facts th { width: 38%; background-color: #50266b; color: #fff; font-weight: 600; text-transform: uppercase; font-size: 13px; letter-spacing: .5px; border-bottom-color: rgba(255, 255, 255, .15); }
.pd-facts td { color: #666; background: #fff; }
.pd-facts tbody tr:nth-of-type(even) td { background: #f8f9fa; }
.pd-facts a { color: var(--rs-theme-orange, #50266b); }
@media (max-width: 575px) { .pd-facts th { width: 42%; font-size: 12px; padding: 10px 12px; } .pd-facts td { padding: 10px 12px; } }

.pd-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.pd-section { margin-top: 56px; }
.pd-apps { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pd-apps li { background: #f1edf5; color: var(--rs-theme-orange, #50266b); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 14px; }

.pd-content { line-height: 1.75; color: var(--rs-text-primary, #555); }
.pd-content h2 { font-size: clamp(20px, 2.2vw, 26px); margin: 36px 0 14px; color: var(--rs-title-primary, #1f1f1f); }
.pd-content h2:first-child { margin-top: 0; }
.pd-content hr { display: none; }
.pd-content ul { padding-left: 20px; }
.pd-content li { margin-bottom: 6px; }
.pd-content li p { margin: 0; }
/* tables: same look as the original product page (shop-details.css) */
.pd-content table { width: 100%; margin: 20px 0; border-collapse: collapse; background-color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .1); border-radius: 8px; overflow: hidden; }
.pd-content th, .pd-content td { padding: 15px; text-align: left; border: 1px solid #dee2e6; vertical-align: top; }
.pd-content th { background-color: #50266b; color: #fff !important; font-weight: 600; text-transform: uppercase; font-size: 14px; letter-spacing: .5px; }
.pd-content th p { color: #fff !important; margin-bottom: 0; }
.pd-content tbody tr { transition: background-color .3s ease; }
.pd-content tbody tr:nth-of-type(odd) { background-color: #f8f9fa; }
.pd-content tbody tr:hover { background-color: #fff5f0; }
.pd-content td { color: #666; font-size: 14px; line-height: 1.6; }
.pd-content td p { margin-bottom: 0; }
@media (max-width: 767px) { .pd-content table { display: block; overflow-x: auto; white-space: normal; } }

/* shade colour swatches (dyes & pigments) */
.pd-content td.ac-swatch-cell { padding: 8px; min-width: 70px; }
.ac-swatch { display: block; width: 100%; min-width: 30px; min-height: 30px; height: 100%; border-radius: 4px; box-shadow: 0 2px 4px rgba(0, 0, 0, .1); }

/* FAQ uses the same accordion template as faq.html (rs-faq-area / rs-accordion-one) */
.pd-faq .section-title-space { margin-bottom: 0; }
.pd-faq__title { font-size: 24px; line-height: 30px; font-weight: 700; color: var(--rs-title-primary, #1f1f1f); } /* matches faq.html group heading */
.pd-faq .accordion-header { margin: 0; }
.pd-faq .accordion-body { line-height: 1.7; }

.pd-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.pd-related__card { display: block; border: 1px solid #ededf2; border-radius: 12px; overflow: hidden; background: #fff; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.pd-related__card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(31, 31, 31, .1); }
.pd-related__card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.pd-related__card span { display: block; padding: 10px 12px; font-weight: 600; font-size: 14px; color: var(--rs-title-primary, #1f1f1f); }

.pd-updated { margin: 28px 0 0; font-size: 13px; color: #8a8594; }

/* shared buttons + CTA band (same look as the catalogue pages) */
.ac-btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; border-radius: 9px; font-size: 14.5px; font-weight: 600; text-decoration: none; transition: .2s; border: 1px solid transparent; }
.ac-btn--primary { background: var(--rs-theme-orange, #50266b); color: #fff; }
.ac-btn--primary:hover { background: var(--rs-theme-orange-hover, #84569f); color: #fff; }
.ac-btn--ghost { background: #fff; border-color: #e0e0e8; color: var(--rs-title-primary, #1f1f1f); }
.ac-btn--ghost:hover { border-color: var(--rs-theme-orange, #50266b); color: var(--rs-theme-orange, #50266b); }
.ac-btn--whatsapp { background: #25d366; color: #fff; }
.ac-btn--whatsapp:hover { background: #1ebe5a; color: #fff; }
.ac-cta { margin: 56px 0 0; padding: 40px 24px; text-align: center; background: linear-gradient(135deg, #50266b, #84569f); border-radius: 18px; color: #fff; }
.ac-cta h2 { color: #fff; margin: 0 0 10px; font-size: clamp(22px, 2.6vw, 30px); }
.ac-cta p { color: rgba(255, 255, 255, .9); max-width: 680px; margin: 0 auto 22px; line-height: 1.65; }
.ac-cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ac-cta .ac-btn--primary { background: #fff; color: var(--rs-theme-orange, #50266b); }
.ac-cta .ac-btn--primary:hover { background: #f3eef8; }
