/* Design tokens */
:root {
  --primary: #7132a8;
  --primary-dark: #572581;
  --secondary: #167568;
  --background: #ffffff;
  --surface: #f6f7f9;
  --text: #242833;
  --border: #e3e6eb;
  --radius: 8px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Sarabun, Tahoma, sans-serif; font-size: 16px; line-height: 1.6; color: var(--text); background: var(--background); }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 4px; }
.container { width: min(100% - 32px, 1280px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 20; padding: 12px; background: white; color: var(--primary); }
.skip-link:focus { top: 8px; }
/* Header */
.site-header { background: var(--primary); color: white; }
.header-main { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding-block: 22px; }
.brand { font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: .5px; }
.brand span { display: block; font-size: 16px; margin-top: 5px; letter-spacing: 2px; }
.menu-toggle, .contact-button { border: 1px solid #ffffff70; background: transparent; color: white; border-radius: var(--radius); padding: 10px 14px; min-height: 44px; }
.contact-button { display: none; }
.search-form { grid-column: 1 / -1; display: flex; min-width: 0; border-radius: var(--radius); background: white; padding: 4px; }
.search-form input { width: 100%; min-width: 0; border: 0; padding: 10px 12px; color: var(--text); background: white; border-radius: var(--radius); }
.search-form button { border: 0; border-radius: 6px; padding: 10px 16px; background: var(--primary); color: white; min-height: 44px; }
.search-form button:hover { background: var(--primary-dark); }
/* Navigation and categories */
.navigation { display: none; background: white; color: var(--text); border-bottom: 1px solid var(--border); }
.navigation.is-open { display: block; }
.nav-inner { display: flex; flex-direction: column; padding-block: 8px; }
.nav-link { display: block; border: 0; background: transparent; color: var(--text); padding: 12px 16px; min-height: 48px; text-align: left; font-weight: 600; }
.nav-link:hover, .nav-link.is-active { color: var(--primary); background: var(--surface); }
.category-menu { position: relative; }
.category-toggle { width: 100%; display: flex; justify-content: space-between; gap: 10px; }
.category-list { padding: 8px; background: var(--surface); border-radius: var(--radius); }
.category-list button { display: block; width: 100%; border: 0; background: transparent; color: var(--text); text-align: left; padding: 12px; min-height: 44px; }
.category-list button:hover { color: var(--primary); background: white; }
/* Phase 5 review area only */
.preview-content { padding-block: 56px; }
.preview-content h1 { font-size: clamp(24px, 4vw, 32px); margin: 0 0 12px; }
.preview-status { padding: 16px; border-left: 3px solid var(--secondary); background: var(--surface); overflow-wrap: anywhere; }
@media (min-width: 768px) {
  .header-main { grid-template-columns: 210px minmax(0, 1fr) auto; gap: 24px; padding-block: 28px; }
  .search-form { grid-column: auto; }
  .menu-toggle { display: none; }
  .contact-button { display: block; }
  .navigation { display: block; }
  .nav-inner { flex-direction: row; align-items: center; padding-block: 0; flex-wrap: wrap; }
  .category-list { position: absolute; top: 100%; left: 0; width: 340px; max-width: calc(100vw - 32px); z-index: 10; background: white; border: 1px solid var(--border); box-shadow: 0 10px 30px #24283318; }
  .category-list button:hover { background: var(--surface); }
}

/* Phase 6: homepage hero */
.home-content { padding-block: 24px; }
.hero-layout { display: grid; gap: 16px; }
.hero-feature { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; border-radius: 12px; background: #f0e9f7; }
.hero-copy { padding: 28px; position: relative; z-index: 1; }
.hero-eyebrow { color: var(--primary); font-size: 13px; font-weight: 700; letter-spacing: 1px; }
.hero-copy h2 { margin: 12px 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.35; }
.hero-copy p { margin-block: 12px 20px; }
.hero-button { padding: 12px 18px; border: 0; border-radius: 8px; background: var(--primary); color: white; min-height: 44px; }
.hero-button:hover { background: var(--primary-dark); }
.hero-image { margin: 0; padding: 0 20px 20px; text-align: center; }
.hero-image img { display: block; width: 100%; max-height: 280px; object-fit: contain; border-radius: 8px; }
.hero-image figcaption { margin-top: 8px; color: var(--primary); font-weight: 600; }
.hero-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hero-tile { border: 0; border-radius: 12px; padding: 16px; text-align: left; color: var(--text); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hero-tile strong { display: block; font-size: 18px; overflow-wrap: anywhere; }
.hero-tile small { display: block; font-size: 13px; margin-top: 6px; }
.hero-tile img { display: block; width: 100%; height: 140px; object-fit: contain; border-radius: 6px; }
.hero-tile:hover { box-shadow: inset 0 0 0 2px var(--primary); }
.tile-mint { background: #e9f3ef; }
.tile-peach { background: #fbede5; }
.tile-lilac { background: #f0edf8; }
.tile-sand { background: #f6f1df; }
@media (min-width: 768px) {
  .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-feature { min-height: 440px; }
  .hero-copy { padding: 28px 28px 0; }
  .hero-image img { max-height: 240px; }
  .hero-tile img { height: 145px; }
}
@media (min-width: 1200px) {
  .hero-feature { grid-template-columns: 1fr 1fr; align-items: center; }
  .hero-copy { padding: 32px 0 32px 28px; }
  .hero-copy h2 { font-size: 32px; }
  .hero-image { padding: 20px; }
  .hero-image img { max-height: 340px; }
}

/* Center desktop navigation; keep mobile navigation stacked. */
@media (min-width: 768px) {
  .nav-inner { justify-content: center; }
}

/* Phase 6: one-row category navigation */
.shop-categories { margin-top: 40px; padding-block: 32px; border-block: 1px solid var(--border); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: 24px; }
.category-controls { display: flex; gap: 8px; flex-shrink: 0; }
.category-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: white; color: var(--primary); font-size: 28px; }
.category-arrow:disabled { opacity: .35; cursor: default; }
.category-track { display: flex; gap: 16px; overflow-x: auto; padding: 6px 4px 16px; scroll-snap-type: x proximity; }
.category-card { flex: 1 0 160px; min-width: 160px; border: 0; background: transparent; padding: 8px; text-align: center; color: var(--text); scroll-snap-align: start; }
.category-icon { display: flex; justify-content: center; align-items: center; width: 112px; height: 112px; margin: 0 auto 16px; border-radius: 50%; background: #eef5f2; color: var(--secondary); font-size: 60px; line-height: 1; }
.category-card:hover .category-icon { background: #e5dbee; color: var(--primary); }
.category-card:hover { color: var(--primary); }
@media (max-width: 767px) {
  .section-heading h2 { font-size: 20px; }
  .category-card { flex: 0 0 145px; min-width: 145px; }
  .shop-categories { margin-top: 28px; }
}

/* PRIMAVITZ information strip below the hero */
.store-intro { display: grid; gap: 24px; margin-top: 24px; padding: 28px 24px; background: #eaf3ee; border-radius: 12px; }
.store-intro h2 { margin: 0 0 10px; color: var(--secondary); font-size: 24px; line-height: 1.4; }
.store-intro-copy p { margin: 0; line-height: 1.7; }
.store-intro-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.store-intro-item { display: flex; align-items: center; gap: 12px; background: white; border-radius: 12px; padding: 16px; min-width: 0; }
.store-intro-item>span { color: var(--secondary); font-size: 28px; flex-shrink: 0; }
.store-intro-item p { margin: 0; font-size: 14px; }
@media (min-width: 1024px) {
  .store-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); align-items: center; }
  .store-intro-items { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .store-intro-item { padding: 14px 10px; gap: 8px; }
}
@media (max-width: 479px) {
  .store-intro { padding: 22px 16px; }
  .store-intro h2 { font-size: 21px; }
  .store-intro-item { flex-direction: column; align-items: flex-start; padding: 14px; gap: 8px; }
}

/* Phase 6: product row before category navigation */
.home-products { margin-top: 40px; padding-block: 24px; }
.view-all { border: 0; background: transparent; color: var(--primary); min-height: 44px; padding: 8px; flex-shrink: 0; }
.home-product-track { display: flex; gap: 20px; overflow-x: auto; padding: 4px 4px 16px; scroll-snap-type: x proximity; }
.home-product-card { flex: 1 0 160px; min-width: 160px; scroll-snap-align: start; }
.product-image-button { display: block; width: 100%; padding: 12px; border: 0; border-radius: 8px; background: var(--surface); }
.product-image-button img { display: block; width: 100%; height: 180px; object-fit: contain; mix-blend-mode: multiply; }
.home-product-card h3 { font-size: 16px; font-weight: 600; margin: 16px 0 8px; min-height: 26px; overflow-wrap: anywhere; }
.product-detail-button { background: transparent; border: 0; color: var(--primary); min-height: 44px; padding: 8px 0; text-align: left; }
.product-image-button:hover { box-shadow: inset 0 0 0 1px var(--primary); }
@media (max-width: 767px) {
  .home-product-card { flex: 0 0 calc((100% - 16px) / 2); min-width: 145px; }
  .home-product-track { gap: 16px; }
  .product-image-button img { height: 160px; }
  .home-products .section-heading { flex-wrap: wrap; }
}

/* Requested new-arrivals cards: larger images, source prices and actions. */
.home-product-card { flex: 0 0 calc((100% - 60px) / 4); min-width: 220px; }
.product-image-button img { height: 250px; }
.product-summary { margin: 0 0 12px; font-size: 14px; }
.product-prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 16px; }
.product-price { font-size: 22px; font-weight: 700; color: var(--primary); }
.product-regular { font-size: 13px; color: #565d69; }
.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.product-actions button { border-radius: 8px; padding: 10px 6px; min-height: 44px; text-align: center; }
.product-actions .product-detail-button { border: 1px solid var(--primary); background: white; }
.product-order-button { border: 1px solid var(--primary); background: var(--primary); color: white; }
.product-order-button:hover { background: var(--primary-dark); }
@media (max-width: 767px) {
  .home-product-card { flex: 0 0 calc((100% - 16px) / 2); min-width: 155px; }
  .product-image-button { padding: 8px; }
  .product-image-button img { height: 200px; }
  .product-actions { grid-template-columns: 1fr; }
}

/* Five cards fit the desktop row; retain large images and aligned actions. */
.home-product-track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; overflow: visible; }
.home-product-card { min-width: 0; display: flex; flex-direction: column; }
.product-image-button { padding: 4px; }
.product-image-button img { height: 260px; }
.product-benefit { margin: 0 0 12px; font-size: 14px; line-height: 1.65; min-height: 70px; }
.product-prices { margin-top: auto; min-height: 54px; }
.product-actions button { font-size: 14px; }
@media (min-width: 768px) and (max-width: 1023px) {
  .product-image-button img { height: 200px; }
  .product-actions { grid-template-columns: 1fr; }
  .product-benefit { min-height: 115px; }
}
@media (max-width: 767px) {
  .home-product-track { display: flex; overflow-x: auto; }
  .home-product-card { flex: 0 0 calc((100% - 16px) / 2); min-width: 155px; }
  .product-image-button img { height: 220px; }
  .product-benefit { min-height: 95px; }
}

/* Requested product presentation: full image area and compact two-line copy. */
.home-products { margin-top: 24px; padding-block: 24px; }
.product-image-button { padding: 0; overflow: hidden; aspect-ratio: 1 / 1; }
.product-image-button img { width: 100%; height: 100%; object-fit: contain; }
.home-product-card h3 { margin: 16px 0 8px; }
.product-benefit { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 46.2px; height: 46.2px; margin: 0 0 10px; }
.product-summary { margin: 0 0 12px; }
.product-prices { min-height: 62px; margin-bottom: 14px; gap: 4px 8px; }
.product-actions { margin-top: 0; }

/* Correct the image fill and remove excess vertical spacing in product cards. */
.home-product-track { gap: 12px; }
.product-image-button { padding: 0; aspect-ratio: 1 / 1; }
.product-image-button img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; mix-blend-mode: normal; }
.home-product-card h3 { margin: 10px 0 4px; min-height: 0; line-height: 1.4; }
.product-benefit { display: block; min-height: 44px; height: 44px; font-size: 13px; line-height: 22px; margin: 0 0 6px; overflow: hidden; }
.product-summary { margin: 0 0 6px; font-size: 13px; }
.product-prices { margin-top: 0; margin-bottom: 8px; min-height: 0; display: flex; flex-direction: column; gap: 0; line-height: 1.4; }
.product-price { font-size: 21px; }
.product-regular { font-size: 12px; }
.product-actions { gap: 6px; margin-top: 0; }
.product-actions button { padding: 8px 4px; }
@media (max-width: 767px) {
 .home-product-track { gap: 12px; }
 .home-product-card { flex-basis: calc((100% - 12px) / 2); }
 .product-benefit { font-size: 12px; }
}

/* Let verified source excerpts wrap naturally across the full card width. */
.product-benefit { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; width: 100%; height: 44px; min-height: 44px; font-size: 13px; line-height: 22px; overflow: hidden; text-align: left; word-break: normal; }
@media (max-width: 767px) { .product-benefit { font-size: 13px; } }

/* Match the white-background D3 image to the other product tiles. */
.home-products img[src$="bio-vitamin-d3.webp"] { mix-blend-mode: multiply; }
.home-products .product-image-button:has(img[src$="bio-vitamin-d3.webp"]) { background: #edf0f6; }

.recommended-products { border-top: 1px solid var(--border); padding-top: 32px; margin-top: 32px; }

/* Match the white source backgrounds in the recommendation row. */
.recommended-products .product-image-button { background: #edf0f6; }
.recommended-products .product-image-button img { mix-blend-mode: multiply; }

/* Phase 6: footer */
.site-footer { margin-top: 32px; border-top: 1px solid var(--border); background: #f6f3fa; padding-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-bottom: 32px; }
.footer-brand { display: block; color: var(--primary); font-size: 24px; font-weight: 700; line-height: 1.3; }
.footer-brand span { display: block; font-size: 16px; letter-spacing: 2px; margin-top: 4px; }
.site-footer h2 { font-size: 17px; color: var(--primary); margin: 0 0 14px; }
.site-footer p { font-size: 14px; line-height: 1.7; margin: 12px 0; }
.footer-domain { overflow-wrap: anywhere; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a, .footer-links button { display: inline-block; padding: 7px 0; font-size: 14px; color: var(--text); background: transparent; border: 0; text-align: left; }
.footer-links a:hover, .footer-links button:hover { color: var(--primary); text-decoration: underline; }
.footer-contact { border: 1px solid var(--primary); padding: 10px 18px; min-height: 44px; border-radius: 8px; color: var(--primary); background: white; }
.footer-bottom { border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding-block: 20px; font-size: 13px; }
.footer-bottom a { color: var(--primary); padding: 4px 0; }
@media(max-width: 1023px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }
@media(max-width: 479px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } .footer-links button,.footer-links a { min-height: 44px; } }

/* Brand information banner before the footer: verified content only. */
.brand-information { margin-top: 36px; padding: 32px; border-radius: 12px; color: white; background: linear-gradient(115deg, #572581, #7132a8 60%, #167568); }
.brand-information-top { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 24px; }
.brand-information-label { margin: 0 0 8px; font-size: 13px; letter-spacing: 1px; }
.brand-information h2 { margin: 0 0 12px; font-size: 30px; line-height: 1.4; }
.brand-information-top p { line-height: 1.7; }
.brand-information-button { background: white; border: 0; border-radius: 24px; color: var(--primary); padding: 10px 20px; min-height: 44px; }
.brand-information-art { display: flex; align-items: center; justify-content: center; gap: 12px; }
.brand-information-art img { width: calc(50% - 6px); height: 180px; object-fit: cover; border-radius: 12px; }
.brand-information-points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.brand-information-points>div { display: flex; align-items: center; gap: 12px; background: white; color: var(--text); padding: 18px; border-radius: 12px; }
.brand-information-points span { color: var(--primary); font-size: 28px; }
.brand-information-points p { margin: 0; font-size: 14px; }
@media(max-width: 1023px) { .brand-information-points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width: 767px) { .brand-information { padding: 24px 18px; } .brand-information-top { grid-template-columns: 1fr; } .brand-information h2 { font-size: 24px; } .brand-information-points>div { flex-direction: column; align-items: flex-start; padding: 14px; } }

/* Best sellers reuse the approved new-arrivals card layout. */
.best-sellers { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 32px; }

/* Contact callout, using the supplied store channels. */
.contact-callout { position: relative; isolation: isolate; overflow: hidden; margin-top: 40px; padding: 52px 28px; border-radius: 28px; border: 1px solid #e4d8ee; text-align: center; background: linear-gradient(120deg, #f8f4fc, #eee4f6); }
.contact-callout::before { content: ''; position: absolute; z-index: -1; width: 420px; height: 420px; top: -290px; right: -80px; border: 55px solid #ffffff45; border-radius: 50%; }
.contact-eyebrow { font-size: 13px; color: var(--primary); letter-spacing: 2px; margin: 0 0 18px; }
.contact-callout h2 { font-size: clamp(26px, 3.5vw, 40px); color: var(--primary-dark); line-height: 1.4; margin: 0 0 18px; }
.contact-description { margin: 0 auto 28px; max-width: 760px; line-height: 1.7; }
.contact-callout-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.contact-pill { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 10px; background: var(--primary); color: white; border-radius: 40px; font-size: 18px; font-weight: 600; min-height: 64px; }
.contact-pill>span { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: white; color: var(--primary); font-size: 25px; flex-shrink: 0; }
.contact-pill .line-mark { font-size: 12px; font-weight: 700; }
.contact-pill-light { color: var(--primary); background: white; }
.contact-pill-light>span { background: var(--primary); color: white; }
.contact-pill:hover { box-shadow: 0 4px 16px #7132a820; }
.contact-website { display: inline-block; margin-top: 24px; color: var(--primary); text-decoration: underline; overflow-wrap: anywhere; }
.product-actions .product-order-button { display: block; border-radius: 8px; padding: 8px 4px; min-height: 44px; text-align: center; font-size: 14px; }
.footer-contact { display: inline-block; }
@media(max-width: 767px) { .contact-callout { padding: 36px 18px; } .contact-pill { font-size: 16px; } }
@media(max-width: 479px) { .contact-callout-actions { flex-direction: column; } .contact-pill { justify-content: center; padding-inline: 12px; font-size: 15px; } }

/* Dark footer and supplied designer credit. */
.site-footer { background: #261535; color: #f3edf8; border-top-color: #463151; }
.site-footer .footer-brand, .site-footer h2 { color: #e2c5fa; }
.site-footer .footer-links a, .site-footer .footer-links button { color: #f3edf8; }
.site-footer .footer-links a:hover, .site-footer .footer-links button:hover { color: #e2c5fa; }
.site-footer .footer-contact { color: #f3edf8; background: transparent; border-color: #ba8cda; }
.site-footer .footer-bottom { border-top-color: #584064; }
.site-footer .footer-bottom a { color: #e2c5fa; }
.site-footer .design-credit a { text-decoration: underline; }

/* Link and dialog completion; preserve homepage layout. */
a.nav-link, a.category-card, .category-list a { cursor: pointer; }
.category-list a { display: block; padding: 12px; min-height: 44px; }
.category-list a:hover { color: var(--primary); background: var(--surface); }
.hero-tile { font: inherit; }
.product-dialog { width: min(480px, calc(100% - 32px)); max-height: 85vh; overflow-y: auto; border: 1px solid var(--border); border-radius: 16px; padding: 28px; color: var(--text); }
.product-dialog::backdrop { background: #24182b99; }
.dialog-close { float: right; width: 44px; height: 44px; border: 0; border-radius: 8px; font-size: 28px; background: var(--surface); }
#dialog-content>img { display: block; width: 100%; height: 250px; object-fit: contain; }
#dialog-content .product-benefit { display: block; height: auto; min-height: 0; overflow: visible; margin-top: 16px; }
.product-dialog .hero-button { display: inline-block; margin-top: 12px; }

/* Phase 7: grouped catalog and individual product link shells. */
.catalog-main { padding-block: 28px 48px; }
.breadcrumb { font-size: 14px; color: #565d69; }
.breadcrumb a { color: var(--primary); }
.catalog-main h1 { font-size: 32px; margin: 20px 0 12px; }
.catalog-categories { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 24px 36px; }
.catalog-categories a { background: #f0e9f7; border-radius: 24px; padding: 10px 16px; min-height: 44px; color: var(--primary); }
.catalog-section { border-top: 1px solid var(--border); padding-block: 28px; scroll-margin-top: 20px; }
.catalog-section h2 { font-size: 24px; margin: 0 0 24px; }
.catalog-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 16px; }
.catalog-card { min-width: 0; display: flex; flex-direction: column; }
.catalog-photo { display: block; background: #edf0f6; border-radius: 8px; overflow: hidden; aspect-ratio: 1; }
.catalog-photo img { display: block; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.catalog-no-image { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 180px; color: #565d69; }
.catalog-card h3 { font-size: 16px; margin: 12px 0 6px; overflow-wrap: anywhere; }
.catalog-size { font-size: 14px; margin: 0 0 8px; }
.catalog-card .product-price { margin: auto 0 4px; font-size: 20px; }
.catalog-card .product-regular { margin: 0 0 8px; }
.catalog-card .product-actions { margin-top: 10px; }
.catalog-card .product-detail-button { display: block; border: 1px solid var(--primary); border-radius: 8px; padding: 8px 4px; text-align: center; min-height: 44px; font-size: 14px; }
.product-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-block: 28px; }
.product-shell .hero-button { display: inline-block; }
.detail-phase-note { color: #565d69; font-size: 14px; margin-top: 24px; }
@media(max-width: 1023px) { .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media(max-width: 767px) { .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; } .product-shell { grid-template-columns: 1fr; gap: 20px; } .catalog-main h1 { font-size: 28px; } .catalog-section h2 { font-size: 22px; } .catalog-card .product-actions { grid-template-columns: 1fr; } }

/* Refined catalog only: image, product name and price. */
.catalog-listing-page .catalog-main { padding-top: 20px; }
.catalog-heading-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 20px 0 24px; padding: 32px; border-radius: 18px; background: linear-gradient(110deg, #f0e9f7, #f8f6fb); }
.catalog-heading-banner .catalog-eyebrow { margin: 0; font-size: 12px; letter-spacing: 2px; color: var(--primary); }
.catalog-heading-banner h1 { color: var(--primary-dark); margin: 8px 0; font-size: 36px; }
.catalog-heading-banner p { margin: 0; }
.catalog-total { white-space: nowrap; padding: 12px 20px; background: white; border-radius: 30px; color: var(--primary); }
.catalog-listing-page .catalog-categories { gap: 10px; margin-block: 0 32px; }
.catalog-listing-page .catalog-categories a { background: white; border: 1px solid #ddd1e7; font-size: 14px; }
.catalog-listing-page .catalog-categories a:hover { background: var(--primary); color: white; border-color: var(--primary); }
.catalog-listing-page .catalog-section { padding-block: 32px 40px; }
.catalog-listing-page .catalog-section h2 { border-left: 4px solid var(--secondary); padding-left: 12px; font-size: 23px; margin-bottom: 24px; }
.catalog-listing-page .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 22px; }
.catalog-product-link { display: block; height: 100%; border-radius: 12px; }
.catalog-listing-page .catalog-photo { border-radius: 12px; background: #edf0f6; }
.catalog-listing-page .catalog-card h3 { font-size: 16px; font-weight: 600; margin: 14px 0 6px; line-height: 1.5; }
.catalog-listing-page .catalog-card .product-price { margin: 0; font-size: 20px; line-height: 1.5; }
.catalog-product-link:hover h3 { color: var(--primary); }
.catalog-product-link:hover .catalog-photo { box-shadow: inset 0 0 0 1px #7132a850; }
@media(max-width: 1023px) { .catalog-listing-page .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; } }
@media(max-width: 767px) { .catalog-heading-banner { padding: 24px 20px; flex-wrap: wrap; gap: 16px; } .catalog-heading-banner h1 { font-size: 30px; } .catalog-listing-page .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; } .catalog-listing-page .catalog-section h2 { font-size: 20px; } .catalog-listing-page .catalog-card .product-price { font-size: 18px; } }

/* Restore requested box prices and card actions in the listing. */
.catalog-listing-page .catalog-product-link { height: auto; }
.catalog-listing-page .catalog-card .product-regular { margin: 4px 0 0; min-height: 20px; line-height: 1.5; }
.catalog-listing-page .catalog-card .product-actions { margin-top: 12px; }

/* Current category state, scoped to category pages. */
.catalog-listing-page .catalog-categories a.is-selected { background: var(--primary); color: white; border-color: var(--primary); }

/* Phase 8: product gallery, source details and related products. */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; margin-top: 30px; }
.detail-main-photo { border-radius: 16px; background: #edf0f6; aspect-ratio: 1; overflow: hidden; }
.detail-main-photo>img { width: 100%; height: 100%; display: block; object-fit: contain; mix-blend-mode: multiply; }
.detail-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 14px 3px; }
.detail-thumb { width: 76px; height: 76px; flex: 0 0 76px; padding: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #edf0f6; }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumb[aria-pressed="true"] { border: 2px solid var(--primary); }
.detail-summary { padding: 12px 0; }
.detail-category { display: inline-block; color: var(--secondary); font-size: 14px; }
.product-detail-page .detail-summary h1 { margin-top: 12px; line-height: 1.4; font-size: 34px; }
.detail-size { margin: 16px 0; }
.detail-price { color: var(--primary); font-size: 30px; font-weight: 700; margin: 20px 0 4px; }
.detail-variant-label { display: block; margin-top: 24px; margin-bottom: 8px; }
.detail-variant { display: block; padding: 12px; border: 1px solid var(--border); border-radius: 8px; width: 100%; font: inherit; background: white; }
.detail-order { display: block; margin-top: 28px; text-align: center; }
.detail-call { display: block; text-align: center; color: var(--primary); padding: 12px; margin-top: 8px; border: 1px solid var(--primary); border-radius: 8px; }
.detail-review-note { margin-top: 20px; padding: 14px; border-left: 3px solid var(--secondary); background: var(--surface); font-size: 14px; }
.detail-information { margin-top: 40px; border-top: 1px solid var(--border); padding-top: 28px; }
.detail-information h2,.detail-related h2 { font-size: 26px; }
.detail-text-section { padding-block: 14px; border-bottom: 1px solid var(--border); }
.detail-text-section h3 { font-size: 18px; color: var(--primary); margin: 0 0 12px; }
.detail-source-text { white-space: pre-line; line-height: 1.9; overflow-wrap: anywhere; margin: 0; }
.detail-related { padding-top: 28px; margin-top: 28px; }
.detail-related .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.detail-related .catalog-product-link { height: auto; }
.detail-related .product-actions { margin-top: 12px; }
@media(max-width: 767px) { .detail-layout { grid-template-columns: 1fr; gap: 20px; } .product-detail-page .detail-summary h1 { font-size: 28px; } .detail-related .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Informational pages share the approved brand system. */
.info-main { padding-block: 24px 48px; max-width: 1120px; }
.info-page-heading { margin: 24px 0 32px; padding: 36px; border-radius: 18px; background: linear-gradient(115deg,#f0e9f7,#f9f6fc); }
.info-page-heading>p { color: var(--primary); font-size: 13px; letter-spacing: 2px; margin: 0; }
.info-page-heading h1 { color: var(--primary-dark); font-size: 36px; margin: 8px 0 12px; }
.info-section { padding: 28px 0; border-bottom: 1px solid var(--border); }
.info-section h2 { font-size: 25px; color: var(--primary-dark); margin: 0 0 20px; }
.info-section h3 { font-size: 18px; margin: 0 0 8px; }
.info-section p { line-height: 1.8; }
.order-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.order-steps li { display: flex; gap: 16px; padding: 24px; border: 1px solid var(--border); border-radius: 12px; }
.order-steps li>span { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; color: white; background: var(--primary); border-radius: 50%; }
.order-steps p { margin: 0 0 8px; }
.order-steps a { color: var(--primary); }
.bank-grid,.shipping-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bank-box,.shipping-grid>div { padding: 24px; background: var(--surface); border-radius: 12px; }
.bank-number { font-size: 26px; color: var(--primary); margin: 10px 0 0; }
.info-note { color: #565d69; font-size: 14px; }
.delivery-promotion { margin-block: 24px; padding: 20px; border-radius: 12px; color: var(--secondary); background: #eaf3ee; font-size: 22px; }
.delivery-promotion small { font-size: 14px; }
.about-intro>p { font-size: 19px; max-width: 850px; }
.about-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.about-actions .hero-button,.about-actions .detail-call { display: inline-block; margin: 0; }
.about-category-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.about-category-links a { padding: 24px; background: var(--surface); border-radius: 12px; color: var(--primary); }
.contact-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-page-grid>a { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.contact-page-grid span { color: var(--secondary); }
.contact-page-grid strong { color: var(--primary-dark); font-size: 22px; overflow-wrap: anywhere; }
.contact-page-grid small { color: var(--primary); font-size: 14px; }
@media(max-width:767px) { .info-page-heading { padding: 26px 22px; } .info-page-heading h1 { font-size: 30px; } .order-steps,.bank-grid,.shipping-grid,.contact-page-grid { grid-template-columns: 1fr; } .about-category-links { grid-template-columns: repeat(2,minmax(0,1fr)); } .contact-page-grid strong { font-size: 20px; } }
