/* Site B: a quiet violet storefront. One spacing system across every surface. */
:root {
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px;
  --gutter: 16px; --panel-padding: 24px; --section-gap: 32px;
  --page-start: 24px; --shell-max: 1360px;
  --accent: #6539b5; --accent-hover: #512c94; --accent-active: #43217c;
  --accent-soft: #f2ecfb; --accent-soft-2: #e8ddf7; --accent-border: #cfc0e8; --accent-text: #59309d;
  --bg: #fcfbfe; --surface-2: #f7f4fb; --border: #e8e3ee;
  --text-strong: #292334; --text: #50495b; --text-muted: #655e70; --text-subtle: #716a7c;
  --r-card: 14px; --r-control: 8px; --dur: 140ms; --dur-slow: 140ms;
  --font-sans: 'Segoe UI', system-ui, sans-serif;
}
[hidden] { display: none !important; }
html { scroll-behavior: auto; }
body { font-variant-numeric: tabular-nums; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
*, *::before, *::after { animation: none !important; }
.reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
.btn:active, .cartbtn:active, .cartbtn__count.is-bump { transform: none; }
.btn, .cartbtn, .filterbtn, .search, .header__search, .select, .segmented { border-radius: var(--r-control); }
.btn, .cartbtn { box-shadow: none; }
.utility { background: #f2ecfa; color: #594571; }
.utility__row { height: 32px; }
.utility__item .icon { color: var(--accent); }
.header { box-shadow: none; background: #fff; }
.header__bar { min-height: 80px; gap: 24px; }
.brand { min-width: 0; }
.brand__name { font-size: 16px; letter-spacing: -.025em; }
.brand__mark { border-radius: 10px; }
.header__search { height: 46px; background: #f6f4f8; border-color: #e8e3ee; padding-inline: 14px 8px; min-width: 0; }
.header__search input { min-width: 0; font-size: 14px; }
.header__search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.header__actions > #openFiltersTop { display: none; }
.head-clear { width: 32px; height: 32px; display: grid; place-items: center; flex: none; border-radius: 6px; }
.head-clear:hover { background: var(--accent-soft); color: var(--accent); }
.cartbtn { height: 44px; }
.page { padding-bottom: 48px; }
.hero { margin-top: var(--page-start); }
.hero__stage { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 0; background: #f0e9f8; border: 1px solid #e5d9f1; border-radius: 16px; }
.hero__copy { max-width: none; padding: 32px; gap: 0; }
.hero__eyebrow { margin: 0 0 12px; padding: 0; color: var(--accent-text); border: 0; border-radius: 0; background: none; backdrop-filter: none; font-size: 12px; }
.hero__eyebrow .icon { color: inherit; }
.hero__title { max-width: none; color: var(--text-strong); font-size: clamp(32px, 3.5vw, 48px); line-height: 1.12; letter-spacing: -.045em; font-weight: 750; text-wrap: initial; }
.hero__title em { color: var(--accent); }
.hero__sub { margin-top: 16px; color: var(--text-muted); font-size: 14px; line-height: 1.6; max-width: 46ch; }
.hero__ctas { margin-top: 24px; gap: 16px; align-items: center; }
.hero__local { font-size: 11px; color: var(--text-muted); }
.hero-shelf { align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; padding: 24px; background: #e8dff1; }
.hero-shelf__label { font-size: 10px; font-weight: 700; letter-spacing: .18em; color: #684b87; }
.hero-shelf__products { display: flex; justify-content: center; align-items: end; width: 100%; gap: 12px; margin-block: 16px; }
.hero-shelf__products img { width: 29%; height: 168px; object-fit: contain; mix-blend-mode: multiply; }
.hero-shelf__products img:nth-child(2) { height: 138px; }
.hero-shelf__caption { font-size: 12px; color: #684b87; }
.hero__facts { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 32px; background: #faf7fe; border-top: 1px solid #e5d9f1; backdrop-filter: none; }
.hero__facts > span { display: flex; align-items: center; gap: 6px; color: #655574; font-size: 12px; }
.hero__facts .icon { color: var(--accent); }
.hero__facts b { font-weight: 650; }
.catbar { position: static; margin-top: 24px; padding: 0; background: none; }
.catbar::after { display: none; }
.aisle-title { font-size: 16px; font-weight: 700; color: var(--text-strong); margin-bottom: 12px; letter-spacing: -.02em; }
.catbar .rail { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding: 0; }
.chip { display: flex; flex-direction: row; gap: 8px; justify-content: flex-start; padding: 12px; min-height: 64px; background: #fff; border: 1px solid var(--border); border-radius: 10px; font-size: 12px; box-shadow: none; }
.chip__icon { width: 32px; height: 32px; border-radius: 8px; background: var(--surface-2); color: var(--accent); }
.chip__n { margin-left: auto; background: var(--surface-2); color: var(--text-subtle); }
.chip[aria-selected='true'] { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent-text); box-shadow: none; }
.chip[aria-selected='true'] .chip__icon { background: var(--accent); color: #fff; }
.chip[aria-selected='true'] .chip__n { background: #e3d7f3; color: var(--accent-text); }
.sec { margin-top: var(--section-gap); }
.sec__head { margin-bottom: 16px; gap: 16px; align-items: center; }
.sec__title { font-size: 21px; letter-spacing: -.035em; font-weight: 700; }
.sec__sub { margin-top: 4px; font-size: 13px; }
.sec__link { font-size: 12px; white-space: nowrap; }
.grid-products { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.grid-rail { grid-auto-columns: calc((100% - 64px) / 5); gap: 16px; padding: 0 0 4px; margin: 0; scrollbar-width: none; }
.grid-rail::-webkit-scrollbar { display: none; }
.pcard__frame { border-radius: 12px; box-shadow: none; }
.pcard:hover .pcard__frame, .pcard:focus-within .pcard__frame { box-shadow: none; border-color: var(--accent-border); }
.pcard__img { padding: 28px 16px 12px; }
.pcard__media { aspect-ratio: 1.2; }
.pcard__body { padding: 12px; }
.pcard__eyebrow { margin-bottom: 8px; }
.pcard__cat { font-size: 10px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.pcard__rating small { display: none; }
.pcard__name { font-size: 14px; font-weight: 650; line-height: 1.4; height: 2.8em; }
.pcard__desc { display: none; }
.pcard__pack { margin-top: 8px; padding: 4px 6px; height: 28px; background: #f7f5fa; border-radius: 5px; font-size: 11px; }
.pcard__pack svg { margin-left: auto; }
.pcard__foot { padding-top: 16px; }
.pcard__price { flex-direction: column; gap: 0; }
.pcard__now { font-family: var(--font-sans); font-size: 17px; letter-spacing: -.02em; }
.pcard__was { font-family: var(--font-sans); font-size: 11px; display: block; }
.addbtn, .stepper { border-radius: 7px; height: 36px; }
.addbtn { border-color: var(--accent-border); background: #fff; min-width: 68px; }
.pcard__quick { opacity: 1; }
.pcard__quick [data-share] { display: none; }
.quickbtn { border: 0; box-shadow: none; width: 28px; height: 28px; background: #fff; }
.pcard__flag { background: var(--accent-soft); border: 0; color: var(--accent-text); font-family: var(--font-sans); font-size: 10px; }
.toolbar { padding: 12px 0; margin-bottom: 16px; border: 0; border-radius: 0; background: none; gap: 12px; }
.toolbar__left > .search { display: none; }
.toolbar__right { gap: 8px; }
.filterbtn { display: inline-flex !important; }
.resultcount { font-size: 12px; }
.is-searching .hero, .is-searching .catbar { display: none; }
.is-searching #allProducts { margin-top: 24px; }
#catalog, #allProducts, #allTitle { scroll-margin-top: 104px; }
.suggest { border-radius: 10px; padding: 8px; }
.suggest__item { min-height: 60px; padding: 8px; }
.suggest__name { white-space: normal; }
.suggest__thumb { border: 0; }
.footer { margin-top: 0; padding-top: 32px; background: #f4f1f8; }
.footer__top { gap: 32px; padding-bottom: 32px; }
.footer__bottom { padding-block: 16px; }
.drawer__head, .drawer__body, .drawer__foot { padding: var(--panel-padding); }
.modal__panel { max-height: calc(100dvh - 32px); }
.modal__info { padding: 24px; gap: 12px; }
.modal__media { padding: 24px; background: #fff; }
.modal__media img { max-height: 340px; object-fit: contain; }
.pack-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pack-choice { padding: 8px 12px; }
.modal__panel, .modal.is-open .modal__panel { transform: none; }
.grid-products.is-list .pcard__frame { padding: 16px; gap: 16px; }
.grid-products.is-list .pcard__body { padding: 0; }
.grid-products.is-list .pcard__desc { display: block; }
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }
@media (max-width: 1100px) {
  .header__bar { gap: 16px; }
  .header__actions #waTop { display: none; }
  .catbar .rail { gap: 8px; }
  .chip { padding: 10px 8px; }
  .chip__n { display: none; }
}
@media (max-width: 899px) {
  :root { --top-offset: 128px; }
  .header__bar { padding-block: 12px; gap: 12px; }
  .header__search { flex-basis: 100%; width: 100%; order: 3; }
  .hero__copy { padding: 24px; }
  .hero__facts { padding: 12px 24px; }
  .hero-shelf { padding: 16px; }
  .hero-shelf__products img { height: 140px; }
  .hero-shelf__products img:nth-child(2) { height: 120px; }
  .hero__local { display: none; }
  .catbar .rail { display: flex; }
  .chip { flex: 0 0 auto; min-height: 52px; padding: 8px 12px; }
  .chip__n { display: inline-grid; }
  .grid-products { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .grid-rail { grid-auto-columns: calc((100% - 32px)/3); }
  #catalog, #allProducts, #allTitle { scroll-margin-top: 152px; }
}
@media (max-width: 599px) {
  :root { --panel-padding: 16px; --page-start: 16px; --section-gap: 24px; }
  .utility__row { height: 28px; justify-content: center; }
  .utility__item:not(:first-child) { display: none; }
  .brand__name { max-width: 230px; font-size: 14px; }
  .brand__mark { width: 36px; height: 36px; }
  .brand__meta { font-size: 10px; }
  .cartbtn { width: 44px; padding: 0; justify-content: center; }
  .cartbtn__label { display: none; }
  .cartbtn__count { position: absolute; top: -5px; right: -5px; background: #fff; color: var(--accent); border: 1px solid var(--accent-border); }
  .hero__stage { grid-template-columns: 1fr; border-radius: 12px; }
  .hero__copy { padding: 20px; }
  .hero__title { font-size: 34px; }
  .hero__sub { font-size: 13px; margin-top: 12px; }
  .hero__ctas { margin-top: 16px; }
  .hero-shelf { padding: 12px 20px; }
  .hero-shelf__label { display: none; }
  .hero-shelf__products { margin: 0; gap: 24px; }
  .hero-shelf__products img { width: 24%; height: 110px; }
  .hero-shelf__products img:nth-child(2) { height: 90px; }
  .hero-shelf__caption { margin-top: 8px; font-size: 11px; }
  .hero__facts { padding: 12px 20px; gap: 8px; }
  .hero__facts > span { font-size: 10px; }
  .hero__facts > span:last-child { display: none; }
  .catbar { margin-top: 24px; }
  .aisle-title { font-size: 15px; }
  .sec__title { font-size: 19px; }
  .sec__sub { font-size: 12px; }
  .sec__head { margin-bottom: 12px; }
  .grid-products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .grid-rail { grid-auto-columns: calc((100% - 12px)/2.15); gap: 12px; }
  .pcard__body { padding: 12px; }
  .pcard__media { aspect-ratio: 1.05; }
  .pcard__img { padding: 28px 12px 8px; }
  .pcard__cat { display: none; }
  .pcard__eyebrow { margin-bottom: 6px; }
  .pcard__name { font-size: 13px; }
  .pcard__foot { gap: 4px; padding-top: 12px; }
  .addbtn { min-width: 60px; padding: 0 8px; }
  .pcard__now { font-size: 16px; }
  .stepper { gap: 0; padding: 0; }
  .stepper__btn { width: 24px; }
  .stepper__n { min-width: 16px; }
  .toolbar { flex-direction: column; align-items: stretch; padding: 0; }
  .toolbar__right { justify-content: space-between; flex-wrap: wrap; }
  .toolbar__right .select { flex: 1; }
  .toolbar__right .select select { min-width: 0; }
  .modal { padding: 8px; }
  .modal__panel { max-height: calc(100dvh - 16px); }
  .modal__media { min-height: 220px; padding: 24px 24px 40px; }
  .modal__media img { width: 100%; height: 180px; max-height: 180px; }
  .modal__info { padding: 16px; }
  .modal__title { font-size: 22px; }
  .modal__close { width: 32px; height: 32px; }
  .product-photo-caption { display: none; }
  .pack-choices { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer { padding-top: 24px; }
  .page { padding-bottom: 32px; }
  .grid-products.is-list .pcard__frame { padding: 12px; gap: 12px; }
}
@media (max-width: 359px) {
  .brand__name { max-width: 195px; font-size: 12px; }
  .pcard__foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .pcard__price { flex-direction: row; gap: 6px; }
  .pcard__act, .pcard__act .addbtn, .pcard__act .stepper { width: 100%; justify-content: space-between; }
  .pcard__act .addbtn { justify-content: center; }
}
/* Keep the primary search available at every breakpoint. */
.header__search { display: flex; }
.modal { background: rgb(27 19 40 / .42); }
.hero-shelf__products { overflow: hidden; padding-block: 8px; }
.hero-shelf__products img:first-child { object-fit: cover; }
.hero-shelf__products img:nth-child(3) { object-fit: cover; transform: scale(1.7); }
.pcard__media:has(img[src*='oil-product']) .pcard__img { object-fit: cover; padding: 0; transform: scale(1.6); }
.modal__media:has(img[src*='oil-product']) { overflow: hidden; }
.modal__media img[src*='oil-product'] { transform: scale(1.5); }
@media (max-width: 899px) {
  .header__search { max-width: none; margin: 0; }
  .header__bar { flex-wrap: wrap; }
}
.header__bar { height: auto; }
@media (max-width: 899px) { .header__bar { min-height: 128px; } }
@media (max-width: 599px) {
  .hero__sub { font-size: 12px; }
  .hero__title { font-size: 30px; }
  .hero__copy { padding: 16px; }
  .hero__eyebrow { font-size: 11px; margin-bottom: 8px; }
  .hero-shelf__products img { height: 90px; }
  .hero-shelf__products img:nth-child(2) { height: 78px; }
  .hero-shelf__caption { display: none; }
  .hero-shelf { padding: 8px 16px; }
  .hero__facts { padding: 12px 16px; }
  .footer { padding-bottom: 80px; }
}
.order-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.order-rail::-webkit-scrollbar { display: none; }
.order-card { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 16px; text-align: left; border: 1px solid var(--border); background: #fff; border-radius: 10px; scroll-snap-align: start; }
.order-card:hover { border-color: var(--accent-border); }
.order-card__top { display: flex; gap: 8px; align-items: center; }
.order-card__top strong { font-size: 13px; color: var(--text-strong); }
.order-card__icon { display: grid; place-items: center; width: 32px; height: 32px; background: var(--accent-soft); color: var(--accent); border-radius: 6px; }
.order-card__status { margin-left: auto; color: var(--ok-text); background: var(--ok-bg); padding: 3px 6px; border-radius: 4px; font-size: 10px; }
.order-card__meta { color: var(--text-muted); font-size: 12px; }
.order-card__bottom { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--border); font-size: 11px; color: var(--text-subtle); }
.order-card__bottom b { margin-left: auto; color: var(--text-strong); font-size: 20px; }
.order-card__bottom svg { color: var(--accent); }
.order-arrows { display: flex; gap: 8px; }
.order-arrows .iconbtn { width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 7px; background: #fff; }
.order-panel { width: min(540px,100%); padding: 24px; scrollbar-width: none; }
.order-panel::-webkit-scrollbar { display: none; }
.order-kicker { color: var(--accent); font-size: 11px; margin: 0 40px 8px 0; }
.order-panel h2 { font-size: 24px; color: var(--text-strong); }
.order-summary { font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.order-lines { margin-top: 24px; }
.order-line { display: flex; align-items: center; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--border); }
.order-line img { object-fit: contain; width: 48px; height: 48px; }
.order-line > div { flex: 1; min-width: 0; }
.order-line strong { font-size: 13px; font-weight: 600; color: var(--text-strong); }
.order-line small { display: block; color: var(--text-muted); font-size: 11px; margin-top: 4px; }
.order-line > b { font-size: 13px; }
.order-total { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; font-size: 13px; }
.order-total > b { font-size: 22px; color: var(--text-strong); }
.order-reorder { margin-top: 20px; }
.order-reorder .btn { width: 100%; }
.order-reorder p { margin-top: 8px; font-size: 11px; color: var(--text-muted); text-align: center; }
.is-searching .order-history { display: none; }
@media (max-width: 899px) { .order-rail { grid-auto-columns: 280px; } }
@media (max-width: 599px) {
  .order-rail { grid-auto-columns: 265px; gap: 12px; }
  .order-panel { padding: 20px 16px; }
  .modal__media img[src*='colgate-product'] { object-fit: cover; }
}
/* Order history uses a violet ledger edge and a preview of each basket. */
.order-card { border-left: 3px solid var(--accent); gap: 12px; padding: 16px; background: #fff; }
.order-card__identity { display: flex; flex-direction: column; gap: 2px; }
.order-card__identity small { font-size: 10px; color: var(--text-subtle); }
.order-card__status { display: flex; align-items: center; gap: 4px; }
.order-card__meta { display: flex; align-items: center; gap: 6px; }
.order-card__meta > span { margin-left: auto; }
.order-card__items { display: flex; gap: 8px; }
.order-card__items > span { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border-faint); background: #fff; border-radius: 6px; }
.order-card__items img { object-fit: contain; width: 38px; height: 38px; }
.order-card__items .order-card__more { color: var(--accent-text); background: var(--accent-soft); font-size: 12px; }
.order-card__open { display: grid; place-items: center; width: 28px; height: 28px; background: var(--accent-soft); border-radius: 6px; }
/* A horizontal flex basis must not become a tall block in mobile toolbars. */
.toolbar__left { flex: 1 1 auto; min-width: 0; }
@media (max-width: 599px) { .toolbar__left { flex: 0 0 auto; } }
@media (max-width: 899px) {
  .header__bar > .brand { flex: 1 1 0; }
  .header__bar > .header__actions { margin-left: 0; }
}
@media (max-width: 359px) {
  .toolbar__right .select { flex: 0 0 100%; }
  .toolbar__right .segmented { margin-left: auto; }
  .brand__name { max-width: 100%; }
}
/* Category tiles: a browseable shelf rather than a row of filter pills. */
.aisle-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.aisle-title { margin-bottom: 0; }
.aisle-hint { margin-top: 4px; font-size: 12px; color: var(--text-subtle); }
.aisle-controls { display: none; gap: 8px; flex: none; }
.aisle-controls .iconbtn { width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.catbar .rail { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; overflow-y: hidden; touch-action: pan-x pan-y; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scroll-padding-inline: 0; }
.catbar .chip { position: relative; height: auto; min-height: 68px; flex-direction: column; justify-content: flex-start; align-items: center; gap: 4px; padding: 4px 2px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font-size: 11px; line-height: 1.2; font-weight: 600; white-space: normal; text-align: center; }
.catbar .chip__icon { width: 36px; height: 36px; border-radius: 10px; background: #f0ebf7; color: var(--accent); }
.catbar .chip__icon svg { width: 20px; height: 20px; }
.catbar .chip__n { position: absolute; top: 3px; right: calc(50% - 23px); display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 3px; margin: 0; background: #fff; border: 1px solid #e4d9f0; color: var(--accent-text); font-family: var(--font-sans); font-size: 9px; }
.catbar .chip[aria-selected='true'] { background: transparent; color: var(--accent-text); border-color: transparent; }
.catbar .chip[aria-selected='true'] .chip__icon { color: #fff; background: var(--accent); }
.catbar .chip[aria-selected='true'] .chip__n { background: #fff; }
.catbar .chip:hover { background: transparent; }
.catbar .chip:hover .chip__icon { background: var(--accent-soft-2); }
.catbar .chip[aria-selected="true"]:hover .chip__icon { background: var(--accent-hover); }
.catbar .rail.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
@media (max-width: 899px) {
  .aisle-controls { display: flex; }
  .catbar .rail { display: flex; gap: 6px; scroll-snap-type: x proximity; cursor: grab; }
  .catbar .chip { flex: 0 0 68px; min-width: 68px; scroll-snap-align: start; }
  .aisle-hint { font-size: 11px; }
}
.header__actions #waTop { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; flex: none; border-radius: 8px; border: 1px solid #cde3d4; color: #197242; background: #f0f8f3; }
.header__actions #waTop .icon { width: 21px; height: 21px; }
.header__actions #waTop:hover { background: #e2f1e8; border-color: #a8cdb6; }
@media (max-width: 599px) { .header__actions { gap: 8px; } }
#top { scroll-margin-top: 100px; }
#ordTitle { scroll-margin-top: 104px; }
@media (max-width: 899px) {
  #top { scroll-margin-top: 144px; }
  #ordTitle { scroll-margin-top: 152px; }
}
@media (max-width: 599px) {
  .brand__name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; max-width: none; }
}
.catbar { scroll-margin-top: 104px; }
@media (max-width: 899px) { .catbar { scroll-margin-top: 152px; } }
