:root {
  --purple: #4B3D75;
  --purple-dark: #3D3260;
  --lav: #F5F3FA;
  --lav2: #EFEBF7;
  --gold: #FFB347;
  --gray: #6b7280;
  --border: #e5e7eb;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #374151; background: #fff; line-height: 1.5; }
img, video { display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }

/* Announcement */
.announcement { background: #E6E6FA; color: var(--purple); padding: 10px 0; overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track span { font-size: 14px; font-weight: 600; letter-spacing: 0.02em; padding-right: 8px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid #f3f4f6; }
.header-inner { max-width: 1180px; margin: 0 auto; padding: 0 16px; height: 64px; display: flex; align-items: center; justify-content: space-between; position: relative; }
.main-nav { display: flex; gap: 28px; font-size: 14px; font-weight: 500; color: var(--purple); flex: 1; }
.main-nav a:hover { opacity: .6; }
.logo { font-size: 24px; font-weight: 800; color: var(--purple); position: absolute; left: 50%; transform: translateX(-50%); }
.header-actions { display: flex; align-items: center; gap: 16px; color: var(--purple); flex: 1; justify-content: flex-end; }
.icon-btn { color: var(--purple); display: flex; align-items: center; gap: 5px; position: relative; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { opacity: .6; }
.cart-badge { position: absolute; top: -6px; right: -10px; background: var(--purple); color: #fff; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 99px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.lang-wrap { position: relative; }
.lang-btn span { font-size: 12px; font-weight: 700; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); min-width: 150px; padding: 6px; z-index: 60; }
.lang-menu button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 8px 12px; border-radius: 7px; font-size: 14px; color: #333; }
.lang-menu button:hover { background: var(--lav); }
.lang-menu button.active { font-weight: 700; color: var(--purple); }

/* Product */
.product-section { padding: 32px 0 48px; }
.product-grid { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.gallery { position: sticky; top: 84px; }
.gallery-main { position: relative; aspect-ratio: 1/1; border-radius: 16px; overflow: hidden; background: var(--purple); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gal-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--purple); font-size: 22px; line-height: 1; }
.gal-arrow:hover { background: #fff; }
.gal-prev { left: 12px; } .gal-next { right: 12px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.thumbs button { width: 62px; height: 62px; border-radius: 9px; overflow: hidden; border: 2px solid transparent; opacity: .7; flex: none; }
.thumbs button.active { border-color: var(--purple); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.review-card { margin-top: 16px; background: #F9F9F9; border-radius: 12px; padding: 16px; }
.stars { color: var(--gold); letter-spacing: 1px; }
.stars-lg { font-size: 16px; margin-bottom: 8px; }
.stars-xl { font-size: 26px; }
.review-quote { font-size: 14px; font-style: italic; color: #4b5563; }
.review-who { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; color: var(--gray); }
.review-who svg { width: 16px; height: 16px; }
.review-who strong { color: var(--purple); }

.product-info h1 { font-size: 30px; color: var(--purple); margin: 8px 0 12px; }
.rating-row { display: flex; align-items: center; gap: 8px; }
.rating-row a { font-size: 14px; color: var(--gray); }
.rating-row a:hover { text-decoration: underline; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.price { font-size: 30px; font-weight: 800; color: var(--purple); }
.price-old { font-size: 18px; color: #9ca3af; text-decoration: line-through; }
.savings-note { font-size: 12px; color: var(--gray); margin-bottom: 20px; }
.link-btn { color: var(--purple); text-decoration: underline; font-size: 12px; }
.option-label { font-size: 14px; font-weight: 600; color: var(--purple); margin: 16px 0 8px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border); }
.swatch.active { border-color: var(--purple); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--purple); }
.size-btns { display: flex; gap: 8px; }
.size-btn { padding: 8px 20px; border-radius: 9px; border: 1px solid #d1d5db; color: var(--purple); font-size: 14px; font-weight: 500; }
.size-btn.active { background: var(--purple); color: #fff; border-color: var(--purple); }
.feature-list { list-style: none; margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.feature-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #4b5563; }
.feature-list img { width: 20px; height: 20px; }
.size-guide { background: #F9F9F9; border-radius: 10px; padding: 12px; font-size: 14px; color: #4b5563; margin-bottom: 20px; }
.size-guide strong { color: var(--purple); display: block; }
.buy-more-divider { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.buy-more-divider::before, .buy-more-divider::after { content: ""; flex: 1; height: 1px; background: #e5e7eb; }
.buy-more-divider span { font-size: 14px; font-weight: 700; color: var(--purple); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.bundles { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.bundle { position: relative; width: 100%; text-align: left; border: 2px solid #e5e7eb; border-radius: 12px; padding: 14px; display: flex; align-items: center; gap: 12px; }
.bundle:hover { border-color: #d1d5db; }
.bundle.active { border-color: var(--purple); background: var(--lav); }
.bundle .radio { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #9ca3af; flex: none; display: flex; align-items: center; justify-content: center; }
.bundle.active .radio { border-color: var(--purple); background: var(--purple); }
.bundle.active .radio::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.bundle-txt { flex: 1; }
.bundle-txt strong { display: block; font-size: 14px; color: var(--purple); }
.bundle-txt em { font-style: normal; font-size: 12px; color: var(--gold); font-weight: 600; }
.bundle-price { font-weight: 700; color: var(--purple); font-size: 16px; }
.bundle-price s { color: #9ca3af; font-size: 12px; font-weight: 400; margin-left: 4px; }
.bundle-badge { position: absolute; top: -9px; right: 12px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 99px; }
.badge-pop { background: var(--gold); color: var(--purple); }
.badge-best { background: var(--purple); color: #fff; }
.add-to-cart { width: 100%; background: var(--purple); color: #fff; padding: 16px; border-radius: 12px; font-weight: 700; font-size: 16px; }
.add-to-cart:hover { background: var(--purple-dark); }
.units-sold { text-align: center; font-size: 14px; color: var(--gray); margin-top: 16px; }
.units-sold strong { color: var(--purple); }

/* Trust badges */
.trust-badges { border-top: 1px solid #f3f4f6; border-bottom: 1px solid #f3f4f6; padding: 32px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 32px 64px; }
.trust-badge { display: flex; align-items: center; gap: 12px; }
.trust-badge img { width: 48px; height: 48px; object-fit: contain; }
.trust-badge span { font-size: 14px; font-weight: 500; color: var(--purple); }

/* Tabs */
.tabs-section { max-width: 768px; margin: 0 auto; padding: 40px 16px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid #e5e7eb; margin-bottom: 24px; }
.tab { padding: 12px 20px; font-size: 14px; font-weight: 600; color: #9ca3af; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.active { color: var(--purple); border-color: var(--purple); }
.tab-panel p { font-size: 14px; color: #4b5563; margin-bottom: 12px; }
.tab-panel .note { color: #9ca3af; font-style: italic; }
.tab-panel .purple { color: var(--purple); }

/* Features */
.features-section { max-width: 1180px; margin: 0 auto; padding: 48px 16px; }
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.features-grid > img { width: 100%; border-radius: 16px; background: var(--lav2); }
.features-txt h2 { font-size: 28px; color: var(--purple); margin-bottom: 12px; }
.features-txt > p { font-size: 15px; color: #4b5563; margin-bottom: 24px; }
.dd { border-top: 1px solid #e5e7eb; }
.dd:last-child { border-bottom: 1px solid #e5e7eb; }
.dd-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; font-size: 15px; font-weight: 600; color: var(--purple); text-align: left; }
.dd-btn::after { content: "+"; font-size: 20px; font-weight: 400; transition: transform .2s; }
.dd.open .dd-btn::after { content: "−"; }
.dd-body { display: none; padding: 0 4px 16px; font-size: 14px; color: #4b5563; }
.dd.open .dd-body { display: block; }

/* Reviews */
.reviews-section { background: #F9F9F9; padding: 48px 0; }
.reviews-head { text-align: center; margin-bottom: 40px; }
.reviews-head h2 { font-size: 28px; color: var(--purple); margin: 12px 0 4px; }
.reviews-head p { font-size: 14px; color: var(--gray); }
.reviews-grid { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-tile { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06); display: flex; flex-direction: column; }
.review-photo { aspect-ratio: 1/1; background: var(--lav); overflow: hidden; }
.review-photo img { width: 100%; height: 100%; object-fit: cover; }
.review-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.review-body .stars { font-size: 15px; }
.review-text { font-size: 14px; color: #4b5563; flex: 1; }
.review-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #f3f4f6; padding-top: 12px; }
.review-name { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 14px; color: var(--gray); }
.review-name svg { width: 16px; height: 16px; flex: none; }
.review-name strong { color: var(--purple); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-date { font-size: 12px; color: #9ca3af; flex: none; }
.reviews-more { text-align: center; margin-top: 40px; }
.outline-btn { border: 2px solid var(--purple); color: var(--purple); padding: 10px 24px; border-radius: 9px; font-size: 14px; font-weight: 600; }
.outline-btn:hover { background: var(--purple); color: #fff; }

/* Chiro */
.chiro-section { max-width: 1180px; margin: 0 auto; padding: 48px 16px; }
.chiro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.chiro-grid video { width: 100%; border-radius: 16px; background: var(--lav2); }
.chiro-txt h2 { font-size: 28px; color: var(--purple); margin-bottom: 12px; }
.chiro-txt > p { font-size: 15px; color: #4b5563; margin-bottom: 20px; }

/* Materials */
.materials-section { max-width: 1180px; margin: 0 auto; padding: 48px 16px; }
.materials-section h2 { font-size: 28px; color: var(--purple); text-align: center; margin-bottom: 32px; }
.materials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.material-card { border-radius: 16px; overflow: hidden; background: var(--lav2); }
.material-card img { width: 100%; }
.material-txt { background: #fff; padding: 20px; }
.material-txt h3 { font-size: 18px; color: var(--purple); margin-bottom: 4px; }
.material-txt p { font-size: 14px; color: #4b5563; }

/* FAQ */
.faq-section { max-width: 768px; margin: 0 auto; padding: 48px 16px; }
.faq-section h2 { font-size: 28px; color: var(--purple); text-align: center; margin-bottom: 24px; }
.faq-item { border-bottom: 1px solid #e5e7eb; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; text-align: left; font-size: 15px; font-weight: 600; color: var(--purple); }
.faq-q::after { content: "›"; font-size: 22px; transform: rotate(90deg); transition: transform .2s; flex: none; }
.faq-item.open .faq-q::after { transform: rotate(-90deg); }
.faq-a { display: none; padding: 0 0 16px; font-size: 14px; color: #4b5563; }
.faq-item.open .faq-a { display: block; }

/* Footer */
.site-footer { background: var(--purple); color: #fff; }
.newsletter { border-bottom: 1px solid rgba(255,255,255,.1); padding: 40px 16px; text-align: center; }
.newsletter h3 { font-size: 24px; margin-bottom: 8px; }
.newsletter p { font-size: 14px; color: rgba(255,255,255,.7); margin-bottom: 16px; }
.newsletter-form { display: flex; gap: 8px; max-width: 420px; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: 10px 16px; border-radius: 9px; border: none; font: inherit; font-size: 14px; outline: none; }
.newsletter-form button { background: #fff; color: var(--purple); padding: 10px 20px; border-radius: 9px; font-weight: 700; font-size: 14px; }
.footer-links { max-width: 1180px; margin: 0 auto; padding: 40px 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer-logo { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.footer-blurb { font-size: 14px; color: rgba(255,255,255,.7); }
.footer-links h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.7); }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom > div { max-width: 1180px; margin: 0 auto; padding: 20px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.6); }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,.6); }
.footer-legal a:hover { color: #fff; }

/* Cart drawer */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 90; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(100%, 430px); background: #fff; z-index: 100; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; }
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #f3f4f6; }
.cart-head h3 { font-size: 18px; color: var(--purple); }
.cart-count { font-size: 14px; color: var(--gray); font-weight: 400; }
.cart-close { color: #9ca3af; font-size: 16px; padding: 4px; }
.cart-close:hover { color: var(--purple); }
.cart-body { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 16px; }
.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 24px; }
.cart-empty svg { width: 56px; height: 56px; color: var(--purple); }
.cart-empty p { font-weight: 600; color: var(--purple); }
.cart-item { display: flex; gap: 12px; }
.cart-item img { width: 80px; height: 80px; border-radius: 9px; object-fit: cover; background: var(--lav2); flex: none; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.cart-item-top strong { font-size: 14px; color: var(--purple); }
.cart-remove { color: #9ca3af; flex: none; padding: 2px; }
.cart-remove:hover { color: var(--purple); }
.cart-item-variant { font-size: 12px; color: var(--gray); margin-top: 2px; }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.qty { display: flex; align-items: center; border: 1px solid #e5e7eb; border-radius: 9px; }
.qty button { width: 28px; height: 28px; color: var(--purple); font-size: 16px; }
.qty button:hover { background: var(--lav); }
.qty span { width: 32px; text-align: center; font-size: 14px; font-weight: 600; color: var(--purple); }
.cart-item-price { text-align: right; }
.cart-item-price p { font-size: 14px; font-weight: 700; color: var(--purple); }
.cart-item-price small { font-size: 11px; color: #9ca3af; }
.cart-foot { border-top: 1px solid #f3f4f6; padding: 16px 20px; background: #fff; }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cart-total span { font-size: 14px; color: #4b5563; }
.cart-total strong { font-size: 18px; color: var(--purple); }
.cart-note { font-size: 11px; color: #9ca3af; margin-bottom: 12px; }
.checkout-btn { width: 100%; background: var(--purple); color: #fff; padding: 14px; border-radius: 12px; font-weight: 700; font-size: 14px; }
.checkout-btn:hover { background: var(--purple-dark); }
.checkout-btn:disabled { opacity: .6; cursor: default; }
.continue-btn { width: 100%; margin-top: 12px; color: var(--purple); font-weight: 600; font-size: 14px; }
.continue-btn:hover { opacity: .7; }

/* Toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #1f2937; color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 14px; z-index: 200; max-width: 90vw; }

/* Responsive */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .logo { position: static; transform: none; }
  .product-grid { grid-template-columns: 1fr; gap: 24px; }
  .gallery { position: static; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .features-grid, .chiro-grid, .materials-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .product-info h1 { font-size: 24px; }
  .features-txt h2, .reviews-head h2, .chiro-txt h2, .materials-section h2, .faq-section h2 { font-size: 22px; }
}
@media (max-width: 480px) {
  .reviews-grid { grid-template-columns: 1fr; }
}
