/*
 * Theme Saj glue. Loaded after theme-saj/design.css (the design's stylesheet, kept as delivered).
 * This file only fits the design into the existing storefront: fonts, the shared master layout,
 * admin-driven content and bits the static design did not have (search panel, categories sheet,
 * sold-out state). Use the design variables (--plum, --rose, --r-card ...); no new colours.
 */
@import url('https://fonts.googleapis.com/css2?family=Domine:wght@400;700&family=Inter:wght@400;500;600;700&display=swap');

/* Fonts: global-font.css forces Poppins with !important, so override it the same way */
body[data-theme="theme-saj"],
body[data-theme="theme-saj"] button,
body[data-theme="theme-saj"] input,
body[data-theme="theme-saj"] select,
body[data-theme="theme-saj"] textarea { font-family: var(--sans) !important; }
body[data-theme="theme-saj"] h1, body[data-theme="theme-saj"] h2, body[data-theme="theme-saj"] h3,
body[data-theme="theme-saj"] h4, body[data-theme="theme-saj"] h5, body[data-theme="theme-saj"] h6 { font-family: var(--serif) !important; color: var(--ink); }
body[data-theme="theme-saj"] { background: var(--white); color: var(--ink); }

/* The master layout's old top strip (phone / track order) is not part of this design */
body[data-theme="theme-saj"] .marquee-item-wrap { display: none; }

/* Counts: empty when zero */
.count:empty { display: none; }

/* Header search panel (opens under the header bar) */
.sb-search { border-top: 1px solid var(--divider); background: var(--white); }
.sb-search__form { max-width: 880px; margin: 0 auto; padding: 16px var(--gutter); display: flex; align-items: center; gap: 10px; color: var(--muted); }
.sb-search__form input { flex: 1; min-width: 0; height: 50px; padding: 0 14px; border-radius: var(--r-input); border: 1.5px solid var(--divider); font: 400 15px var(--sans); color: var(--ink); outline: none; }
.sb-search__form input:focus { border: 2px solid var(--rose); }
.sb-search__results { max-width: 880px; margin: 0 auto; padding: 0 var(--gutter); }
.sb-search__results:empty { display: none; }
.sb-search__results .search_product ul { list-style: none; margin: 0 0 16px; padding: 0; max-height: 60vh; overflow: auto; border: 1px solid var(--card-border); border-radius: 16px; }
.sb-search__results .search_product a { display: block; text-decoration: none; color: var(--ink); }
.sb-search__results .search_product li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--divider); }
.sb-search__results .search_product a:last-child li { border-bottom: 0; }
.sb-search__results .search_product a:hover li { background: var(--tint); }
.sb-search__results .search_img img { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; background: var(--tint); mix-blend-mode: multiply; }
.sb-search__results .search_content p { margin: 0; font-size: 14px; }
.sb-search__results .search_content .name { font-weight: 600; }
.sb-search__results .search_content .price { color: var(--plum); font-weight: 600; }
.sb-search__results .search_content del { color: var(--muted); font-weight: 400; margin-left: 6px; }
@media (max-width: 820px) {
  .sb-search__form { padding: 12px 16px; }
  .sb-search__form .btn { display: none; }
  .sb-search__results { padding: 0 16px; }
}

/* Product card extras */
.card__name { color: inherit; text-decoration: none; }
.card__name:hover { color: var(--plum); }
.badge--out { background: var(--muted); }
.card.is-out .card__img { opacity: .55; }
.card__add--off { background: var(--divider); color: var(--muted); cursor: default; }
.card:hover .card__add--off { width: 40px; background: var(--divider); }

/* Old listing pages wrap each card in .product_item; let the card do the styling */
body[data-theme="theme-saj"] .product_item { border: 0; padding: 0; background: none; box-shadow: none; }
body[data-theme="theme-saj"] .product_item > .card { height: 100%; }

/* Sheets: chat sheet and categories sheet share the design's .sheet look but open separately */
.sheet__title { font-family: var(--serif); font-size: 18px; margin: 0 0 4px; }
.sheet__row i { width: 20px; text-align: center; font-size: 18px; color: var(--plum); }
.is-sheet-open .scrim--cats, .is-sheet-open .sheet--cats { opacity: 0; pointer-events: none; }
.is-cats-open .scrim--cats, .is-cats-open .sheet--cats { opacity: 1; transform: none; pointer-events: auto; }
.sheet--cats { max-height: 80vh; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; }
.sheet__head b { font-family: var(--serif); font-size: 18px; }
.sheet__list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.sheet__row img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; background: var(--white); }
.sheet__row--accent { color: var(--rose); }
@media (min-width: 821px) { .scrim--cats, .sheet--cats { display: none; } }

/* Footer */
.footer-pay__img { height: 32px; width: auto; max-width: 100%; }
.socials a i { margin-right: 6px; }
.footer-copy { color: var(--divider); }

/* Logo: admin logos often carry empty margins, so give the image the full bar height */
.site-header__logo img { height: 72px; max-width: 220px; object-fit: contain; }
@media (max-width: 1199px) { .site-header__logo img { height: 60px; } }
@media (max-width: 820px) { .site-header__logo img { height: 48px; } }

/* Old (not yet redesigned) pages leave room for the old fixed header; ours is in the flow */
body[data-theme="theme-saj"] .product-section,
body[data-theme="theme-saj"] .product-filter-page { padding-top: 24px; }
@media (max-width: 820px) {
  body[data-theme="theme-saj"] .product-section,
  body[data-theme="theme-saj"] .product-filter-page { padding-top: 12px; }
}

/* style.css gives #cart-qty position:relative (old header); keep it a corner badge */
.site-header #cart-qty { position: absolute; }

/* ===== Home page ===== */
/* The old home stylesheet (storefront-home.css) styles bare section/h1/h2; keep the design's spacing */
body[data-theme="theme-saj"] .section__title { margin: 0; }
body[data-theme="theme-saj"] .hero__title { margin: 12px 0 0; }
.section--tight { padding-top: 0; }
.chips--center { justify-content: center; margin-bottom: 22px; }
/* Offer tiles: the picture is pinned to the tile (a % height inside the grid drew it at full square height, cut off) */
.promo__img--contain { position: relative; background: var(--tint); }
.promo__img--contain img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 8px 0; object-fit: contain; mix-blend-mode: multiply; }
/* Homepage "Shop the offers" while a flash sale is live: the flash page's countdown on a light background */
.home-flash__timer { display: flex; align-items: center; gap: 12px; margin: -6px 0 18px; flex-wrap: wrap; }
.home-flash__label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--rose); }
.countdown--light { margin-left: 0; }
.countdown--light span { min-width: 54px; padding: 8px 6px; background: var(--blush); color: var(--plum); font-size: 22px; }
.countdown--light small { color: var(--rose); }
.brand-tile img { max-height: 56px; max-width: 80%; width: auto; object-fit: contain; }
.quotes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 880px); justify-content: center; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.quotes > .quote { margin: 0; scroll-snap-align: center; }
.quote__stars { font-style: normal; letter-spacing: 3px; font-size: 18px; color: var(--rose); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--plum); color: var(--white); display: grid; place-items: center; font-weight: 700; flex: none; }
@media (max-width: 820px) {
  .quotes { grid-auto-columns: 88%; justify-content: start; margin: 0 -16px; padding: 0 16px; }
  .chips--center { justify-content: flex-start; }
  .brand-tile img { max-height: 40px; }
}
/* Admin "Recommends" banners carry their own text, so show them whole instead of cropping to 4:3 */
.rec img { aspect-ratio: auto; height: auto; }

/* design.css has its own small ".row" helper; give Bootstrap rows (old pages) their grid back */
.row:has(> [class*="col-"]) { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; }

/* ===== Listing pages (category, brand, search, shop all, flash sale) ===== */
.wash { background: linear-gradient(180deg, var(--hero-top), var(--white) 320px); }
body[data-theme="theme-saj"] .page__title { margin: 0; }
.shop { margin-top: 24px; }
.shop--full { grid-template-columns: minmax(0, 1fr); }
.shop__main { min-width: 0; }
.toolbar { margin-top: 0; }
.toolbar__count { font-size: 14px; }
.sort-form { margin: 0; }

/* Product grid with the column switcher (--cols), list view and phone 2-up */
.listing-grid, .shop .listing-grid { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.shop--full .listing-grid { --cols: 5; }
.listing-grid > .product_item { min-width: 0; display: flex; }
.listing-grid > .product_item > .card { width: 100%; }
.listing-grid.is-list-view { grid-template-columns: minmax(0, 1fr); }
.listing-grid.is-list-view .card { flex-direction: row; align-items: center; gap: 16px; }
.listing-grid.is-list-view .card__tile { width: 160px; flex: none; }
.listing-grid.is-list-view .card__body { margin-top: 0; }
.listing-grid.is-list-view .card__name { min-height: 0; font-size: 16px; }
@media (max-width: 1199px) {
  .listing-grid, .shop .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .listing-grid[style*="--cols: 2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .listing-grid, .shop .listing-grid, .listing-grid.is-list-view { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing-grid.is-list-view .card { flex-direction: column; align-items: stretch; gap: 0; }
  .listing-grid.is-list-view .card__tile { width: auto; }
  .listing-grid.is-list-view .card__body { margin-top: 10px; }
  .view-switch { display: none; }
  .toolbar { top: 56px; }
}

/* Column switcher */
.view-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--blush); }
.view-switch button { width: 36px; height: 34px; border: 0; border-radius: 9px; background: none; color: var(--muted); display: grid; place-items: center; }
.view-switch button svg { height: 14px; width: auto; fill: currentColor; stroke: currentColor; stroke-width: 1.6; }
.view-switch button[data-column="list"] svg { fill: currentColor; stroke-linecap: round; }
.view-switch button:hover { color: var(--plum); }
.view-switch button.is-active { background: var(--white); color: var(--plum); box-shadow: 0 2px 8px -4px rgba(74, 20, 80, .4); }

/* Filters */
.filters__title { font-family: var(--serif); font-size: 20px; }
.filters .sheet__handle { display: none; }
.filters form { margin: 0; }
.check--link { color: var(--ink); text-decoration: none; }
.check--link:hover { color: var(--rose); }
.check__box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--dot); flex: none; }
.check--link.is-on { color: var(--plum); font-weight: 600; }
.check--link.is-on .check__box { background: var(--plum) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--plum); }
.price-apply { margin-top: 10px; }
.size-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.size-chip input { position: absolute; opacity: 0; pointer-events: none; }
.size-chip span { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 17px; border: 1.5px solid var(--divider); font-size: 13px; cursor: pointer; }
.size-chip input:checked + span { background: var(--plum); border-color: var(--plum); color: var(--white); }
.size-chip input:focus-visible + span { outline: 2px solid var(--rose); }
.filters__bar { display: none; }
.scrim--filters { z-index: 50; }
@media (max-width: 820px) {
  .filters .sheet__handle { display: block; }
  /* Pinned to the bottom of the scrolling sheet: Clear all + Show N results, always in reach */
  .filters__bar { display: flex; gap: 10px; position: sticky; bottom: 0; z-index: 2; margin: 12px -16px 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--divider);
    box-shadow: 0 -10px 24px -18px rgba(74,20,80,.45); }
  .filters__clear { flex: 0 0 auto; padding: 0 18px; }
  .filters__show { flex: 1; transition: opacity .15s; }
  .filters__show.is-counting { opacity: .7; }
  body[data-theme="theme-saj"] .filters { padding-bottom: 0; }
  .filters__close { margin-right: -10px; }
}
@media (min-width: 821px) { .scrim--filters { display: none; } }

/* Active filter chips */
.filter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 18px; }
.filter-chips .chip--remove { text-decoration: none; }
.filter-chips .chip--remove span { margin-left: 6px; font-size: 15px; }

/* Load more: the noscript fallback links */
.load-more nav { font-size: 14px; }

/* Brand banner and search bar on listing pages */
.flash-hero--soft { background: linear-gradient(180deg, var(--hero-top), var(--hero-bottom)); color: var(--ink); }
.flash-hero--soft h1 { color: var(--plum); }
.flash-hero__logo { width: 88px; height: 88px; border-radius: 20px; background: var(--white); display: grid; place-items: center; padding: 10px; flex: none; }
.flash-hero__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.flash-hero__sub { margin: 6px 0 0; color: #F3E3EF; }
.countdown span[hidden] { display: none; }
.search-bar--page { display: flex; align-items: center; gap: 10px; max-width: 720px; height: 56px; margin-top: 18px; padding: 0 8px 0 16px; border: 2px solid var(--rose); border-radius: 16px; background: var(--white); color: var(--muted); }
.search-bar--page input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; font: 400 16px var(--sans); color: var(--ink); background: none; }
.check .check__box { margin-left: 0; }
/* Light text on the plum flash-sale banner (the theme's heading colour is ink) */
body[data-theme="theme-saj"] .flash-hero h1 { color: var(--white); }
body[data-theme="theme-saj"] .flash-hero--soft h1 { color: var(--plum); }
@media (max-width: 820px) {
  /* design.css keeps the desktop "top: 20px" on the phone sheet, which pins it to the top; anchor it to the bottom */
  .filters { top: auto; }
  /* phones always show two per row, so no column switcher */
  .view-switch { display: none; }
}

/* ==== Product page (design: static/product.html) ==== */
body[data-theme="theme-saj"] .danger{color:var(--rose)}
body[data-theme="theme-saj"] .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pdp__info{min-width:0}
.pdp .rating a{color:inherit}
.pdp__price s{display:inline}
.pdp__short{color:var(--muted);font-size:15px;line-height:1.7;margin:-4px 0 18px}
.pdp__short p{margin:0 0 8px}

/* Gallery: one picture at a time on a scroll-snap track */
.gallery__main{display:block}
.gallery__track{display:flex;width:100%;height:100%;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.gallery__track::-webkit-scrollbar{display:none}
.gallery__slide{flex:0 0 100%;height:100%;display:grid;place-items:center;scroll-snap-align:center}
.gallery__slide img{max-width:78%;max-height:82%;object-fit:contain;mix-blend-mode:multiply}
.gallery__thumb{cursor:pointer}
.gallery__thumb img{width:100%;height:100%;object-fit:contain}
.gallery__thumbs{max-height:560px;overflow-y:auto;scrollbar-width:none}
.gallery__zoom{position:absolute;right:16px;bottom:16px;z-index:2}
.gallery__zoom .icon{width:18px;height:18px}
.gallery .dot{width:7px;height:7px;border-radius:50%;background:rgba(74,20,80,.25)}
.gallery .dot.is-active{background:var(--plum);width:18px;border-radius:4px}
@media (max-width:1199px){.gallery__thumbs{max-height:none;overflow-x:auto}.gallery__thumb{flex:none}}

/* Colour and size: radios inside chips */
.option-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.option-chip{position:relative;cursor:pointer;gap:6px;margin:0}
.option-chip input{position:absolute;opacity:0;pointer-events:none}
.option-chip img{width:22px;height:22px;border-radius:50%;object-fit:cover}
.option-chip:has(input:checked){background:var(--plum);border-color:var(--plum);color:var(--white);font-weight:600}
.option-chip:has(input:focus-visible){outline:2px solid var(--rose);outline-offset:2px}
.option-chip:has(input:disabled){opacity:.4;cursor:not-allowed}

/* Buy row: qty, add, buy now, heart */
.pdp .buy-row{grid-template-columns:auto 1fr 1fr auto;align-items:center}
.pdp .buy-row .btn{height:48px}
.pdp .buy-row .btn:disabled{opacity:.55;cursor:not-allowed}
.pdp__wish{width:48px;height:48px;border:1.5px solid var(--divider);box-shadow:none}
.pdp__wish .icon{width:20px;height:20px}
.pdp__wish.is-on{color:var(--rose)}.pdp__wish.is-on path{fill:var(--rose)}
.qty input{background:transparent}
.pdp__links{display:flex;align-items:center;gap:16px;margin-top:16px;font-size:13px}
.pdp__links .link-btn{display:inline-flex;align-items:center;gap:6px;text-decoration:none;color:var(--plum);font-weight:600}
.pdp__links .icon{width:16px;height:16px}
@media (max-width:1199px){.pdp .buy-row{grid-template-columns:auto 1fr auto}.pdp .buy-row .order_now_btn{grid-column:1/-1;order:5}}

/* Description and policy text from admin (rich text) */
.accordion .rich-text{margin-top:12px;line-height:1.7;color:var(--muted);font-size:15px;overflow-wrap:anywhere}
.accordion .rich-text img{max-width:100%;height:auto}
.accordion .rich-text table{max-width:100%;display:block;overflow-x:auto}
.pdp__video{margin-top:12px;aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:var(--tint)}
.pdp__video iframe{width:100%;height:100%;border:0}

/* Reviews */
.review .row{display:flex;align-items:center;gap:12px}
.reviews-empty{padding:24px;border-radius:var(--r-card);background:var(--white);text-align:center}
.reviews-empty p{margin:0}

/* Phone: sticky buy bar replaces the tab bar and chat button on this page */
@media (max-width:820px){
  body:has(.sticky-buy) .tabbar,body:has(.sticky-buy) .chat-fab{display:none}
  body[data-theme="theme-saj"]:has(.sticky-buy){padding-bottom:calc(72px + env(safe-area-inset-bottom))}
  .sticky-buy .round-btn .icon{width:20px;height:20px}
  .gallery__zoom{bottom:auto;top:16px;right:16px}
  .pdp .card__badges{top:16px!important;left:16px!important}
}

/* Pop-ups: share, picture viewer, review form */
.details-modal-backdrop{background:rgba(42,16,48,.5)}
.saj-modal{background:var(--white);border-radius:24px;padding:20px;box-shadow:var(--shadow-pop)}
.saj-modal__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.saj-modal__title{font-family:var(--serif);font-size:20px}
.saj-modal__head .round-btn{width:36px;height:36px;box-shadow:none;background:var(--blush)}
.saj-modal__head .icon{width:16px;height:16px}
.share-list{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:14px}
.share-list a{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 4px;border-radius:14px;background:var(--tint);color:var(--plum);font-size:12px;font-weight:600;text-decoration:none}
.share-list a:hover{background:var(--blush)}
.share-list i,.share-x{font-size:18px;font-weight:700;line-height:1}
.share-copy{display:flex;gap:8px}.share-copy .input{flex:1;height:42px;font-size:13px;min-width:0}
.details-image-lightbox{background:#1d0a21}
.details-lightbox-thumbs button{border-radius:10px;border-color:rgba(255,255,255,.4);background:#fff}
.details-lightbox-thumbs button.active{border-color:var(--rose)}
.details-lightbox-thumbs img{object-fit:contain}
@media (max-width:820px){
  .details-lightbox-stage{inset:62px 12px 104px}
  .details-lightbox-prev{left:4px}.details-lightbox-next{right:4px}
  .details-lightbox-thumbs{left:12px;right:12px}
  .details-lightbox-toolbar{left:12px;right:12px;justify-content:flex-end;flex-wrap:wrap}
  .details-lightbox-counter{display:none}
}
.saj-review-modal .modal-content{border:0;border-radius:24px;padding:20px;box-shadow:var(--shadow-pop)}
.form-stack{display:flex;flex-direction:column;gap:14px}
.field__label{font-size:13px;font-weight:600}
.textarea{height:auto;min-height:110px;padding:12px 14px;resize:vertical}
.star-input{display:flex;flex-direction:row-reverse;justify-content:flex-end;gap:4px}
.star-input label{cursor:pointer;font-size:30px;line-height:1;color:var(--divider);margin:0}
.star-input input{position:absolute;opacity:0}
.star-input label:hover,.star-input label:hover~label,.star-input label:has(input:checked),.star-input label:has(input:checked)~label{color:var(--rose)}
.star-input label:has(input:focus-visible){outline:2px solid var(--rose);outline-offset:2px;border-radius:4px}
/* style.css gives .rating the old review-form layout (right-to-left); undo it on the product page */
body[data-theme="theme-saj"] .pdp .rating{flex-direction:row;justify-content:flex-start;flex-wrap:wrap}
/* One picture: no thumbnail column */
.gallery:not(:has(.gallery__thumbs)){grid-template-columns:minmax(0,1fr)}
body[data-theme="theme-saj"] .pdp .rating{direction:ltr;unicode-bidi:normal}
/* Bootstrap's .row makes every child full width; review header is a plain flex row */
.review .row{flex-wrap:nowrap;margin:0}
.review .row>*{width:auto;padding:0;margin:0}
.review .row>.spacer{flex:1}
.review .row>.avatar{width:40px;height:40px}
/* Phone: the design hides the whole buy row; keep quantity and the heart, the buttons live in the bottom bar */
@media (max-width:820px){
  .pdp .buy-row{display:flex;justify-content:space-between;align-items:center;margin:4px 0 18px}
  .pdp .buy-row>.btn{display:none}
}

/* "Choose an option" pop-up from product cards (#variable-modal in layouts/master) */
body[data-theme="theme-saj"] #page-overlay{background:rgba(42,16,48,.5)}
#variable-modal .modal-view.saj-variable{width:min(620px,calc(100vw - 32px));border-radius:24px;padding:20px;background:var(--white);box-shadow:var(--shadow-pop)}
.saj-variable__body{display:grid;grid-template-columns:180px minmax(0,1fr);gap:20px}
.saj-variable__img{border-radius:18px;background:var(--tint);aspect-ratio:1;display:grid;place-items:center;overflow:hidden}
.saj-variable__img img{max-width:82%;max-height:82%;object-fit:contain;mix-blend-mode:multiply}
.saj-variable__name{display:block;font-family:var(--serif);font-size:17px;line-height:1.35;color:var(--ink);text-decoration:none}
.saj-variable__price{display:flex;align-items:baseline;gap:10px;margin:8px 0 14px}
.saj-variable__price b{font-size:22px;color:var(--plum)}.saj-variable__price s{color:var(--muted)}
.saj-variable__buy{display:flex;gap:10px;align-items:center;margin-top:6px}
.saj-variable__buy .btn{flex:1;height:44px}
.saj-variable .close-variable-button{position:static;width:36px;height:36px;background:var(--blush);color:var(--plum);box-shadow:none}
@media (max-width:820px){
  #variable-modal{align-items:flex-end!important}
  #variable-modal .modal-view.saj-variable{width:100%;border-radius:24px 24px 0 0;padding:16px 16px calc(20px + env(safe-area-inset-bottom))}
  .saj-variable__body{grid-template-columns:96px minmax(0,1fr);gap:14px}
}
/* Colour chips with a picture: picture and name side by side (style.css stacks .selector-item content) */
body[data-theme="theme-saj"] .option-chip{display:inline-flex;flex-direction:row;align-items:center;height:40px;width:auto;padding:0 14px 0 6px}
body[data-theme="theme-saj"] .option-chip:not(:has(img)){padding:0 16px}
body[data-theme="theme-saj"] .option-chip img{display:block;width:28px;height:28px;border-radius:50%;object-fit:cover;background:var(--white);margin:0}
body[data-theme="theme-saj"] .option-chip span{white-space:nowrap}
/* Lists and headings in admin-written text */
.rich-text ul,.rich-text ol{margin:8px 0;padding-left:20px}
.rich-text ul{list-style:disc}.rich-text ol{list-style:decimal}
.rich-text li{margin:2px 0}
.rich-text p{margin:0 0 10px}
.rich-text h1,.rich-text h2,.rich-text h3,.rich-text h4{font-family:var(--serif);color:var(--ink);font-size:17px;margin:14px 0 6px}
/* style.css hides these radios with display:none, which removes them from keyboard use; keep them focusable but invisible */
body[data-theme="theme-saj"] .option-chip .selector-item_radio{display:block;appearance:auto;position:absolute;opacity:0;width:1px;height:1px;margin:0}
body[data-theme="theme-saj"] .rich-text li{display:list-item}
body[data-theme="theme-saj"] .rich-text ul>li{list-style:disc}body[data-theme="theme-saj"] .rich-text ol>li{list-style:decimal}

/* ==== Bag (theme-saj/ajax/cart) — bag page, checkout summary and slide-out bag ==== */
.bag-page .bag{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:32px;align-items:start;margin-top:20px}
.bag-page .bag:has(.bag-empty){display:block}
.bag-page .bag__summary,.cartlist[data-bag-context="checkout"] .bag__summary{padding:24px;border-radius:var(--r-card);background:var(--tint)}
.bag-page .bag__summary{position:sticky;top:20px}
.bag .panel__title{margin:0 0 12px;font-family:var(--serif);font-size:20px}
.bag .line__info{min-width:0}
.bag .line__img img{max-width:100%;max-height:100%;object-fit:contain}
.bag .line__meta s{color:var(--muted)}
.bag .line__remove{margin-top:8px;display:inline-block}
.bag .qty button:disabled{opacity:.35;cursor:not-allowed}
.bag .coupon{margin:14px 0}
.bag .coupon .input{flex:1;min-width:0}
.bag .coupon .btn{height:44px;flex:none}
.bag__continue{margin-top:16px}
.bag__cta{display:flex;flex-direction:column;gap:10px;margin-top:16px}
.bag__pay{font-size:13px;margin:2px 0 0;text-align:center}
/* What each place shows */
.sum-row__bag-only{display:none}
.bag-page .sum-row__bag-only,.cartlist[data-bag-context="drawer"] .sum-row__bag-only{display:inline}
.bag-page .sum-row__checkout-only,.cartlist[data-bag-context="drawer"] .sum-row__checkout-only{display:none}
.bag-page .bag__cta-view{display:none}
.cartlist[data-bag-context="checkout"] .bag__cta,.cartlist[data-bag-context="checkout"] .bag__continue{display:none}
.cartlist[data-bag-context="drawer"] .bag__continue,
.cartlist[data-bag-context="drawer"] .sum-row--delivery,
.cartlist[data-bag-context="drawer"] .coupon,
.cartlist[data-bag-context="drawer"] .panel__title{display:none}
@media (max-width:1199px){.bag-page .bag{grid-template-columns:minmax(0,1fr) 340px;gap:24px}}
@media (max-width:820px){
  .bag-page .bag{grid-template-columns:minmax(0,1fr)}
  .bag-page .bag__summary{position:static}
  .bag-page .bag__cta{display:none}
  body:has([data-mobile-total]:not([hidden])) .tabbar,body:has([data-mobile-total]:not([hidden])) .chat-fab{display:none}
  body[data-theme="theme-saj"]:has(.mobile-total:not([hidden])){padding-bottom:calc(72px + env(safe-area-inset-bottom))}
}
.mobile-total[hidden]{display:none!important}

/* Slide-out bag */
.scrim--bag{z-index:60}
.bag-drawer{position:fixed;z-index:61;top:0;right:0;bottom:0;width:min(420px,100vw);background:var(--white);box-shadow:var(--shadow-pop);display:flex;flex-direction:column;transform:translateX(100%);transition:transform .25s ease;visibility:hidden}
.is-bag-open .bag-drawer{transform:none;visibility:visible}
.is-bag-open .scrim--bag{opacity:1;pointer-events:auto}
.bag-drawer .sheet__handle{display:none}
.bag-drawer__head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid var(--divider)}
.bag-drawer__title{font-family:var(--serif);font-size:20px}
.bag-drawer__head .round-btn{width:36px;height:36px;box-shadow:none;background:var(--blush)}
.bag-drawer__head .icon{width:16px;height:16px}
.bag-drawer__body{flex:1;overflow-y:auto;padding:0 20px}
.bag-drawer__body .bag{display:flex;flex-direction:column;min-height:100%}
.bag-drawer__body .bag__lines{flex:1}
.bag-drawer__body .line{grid-template-columns:64px minmax(0,1fr);gap:12px}
.bag-drawer__body .line__img{width:64px;height:64px;border-radius:12px;padding:6px}
.bag-drawer__body .line__end{grid-column:2;flex-direction:row;align-items:center;justify-content:space-between}
.bag-drawer__body .line__name{font-size:14px}
.bag-drawer__body .bag__summary{position:sticky;bottom:0;background:var(--white);padding:14px 0 calc(16px + env(safe-area-inset-bottom));border-top:1px solid var(--divider)}
.bag-drawer__body .sum-row--total{margin-top:0;padding-top:6px;border-top:0}
.bag-drawer__body .empty{padding:40px 8px}
.bag-drawer__loading{padding:24px 0;text-align:center}
@media (max-width:820px){
  .bag-drawer{top:auto;left:0;width:auto;max-height:86vh;border-radius:24px 24px 0 0;transform:translateY(100%)}
  .bag-drawer .sheet__handle{display:block;margin:8px auto 0}
  .bag-drawer__head{padding:10px 16px 12px}
  .bag-drawer__body{padding:0 16px}
}
body.is-bag-open{overflow:hidden}
.is-sheet-open:not(.is-bag-open) .scrim--bag{opacity:0;pointer-events:none}
body:not(.is-bag-open) .scrim--bag{opacity:0!important;pointer-events:none!important}
/* Old style.css widens text inputs, which squeezed the line price; keep the stepper its own size */
.bag .qty{flex:none}
.bag .qty input{width:34px;flex:none;padding:0}
.bag .line__price{flex:none;white-space:nowrap}
/* Undo the old checkout styles (style.css .cartlist span / img, .checkout-coupon-form) inside the new bag */
body[data-theme="theme-saj"] .cartlist span{height:auto;width:auto;border-radius:0}
body[data-theme="theme-saj"] .cartlist img{height:auto;width:auto;border:0;border-radius:0;padding:0}
body[data-theme="theme-saj"] .bag .checkout-coupon-form{padding:0;background:none;border:0;height:auto;border-radius:0;overflow:visible}

/* ==== Checkout ==== */
.checkout .panel__title{margin:0 0 14px;font-family:var(--serif);font-size:20px}
.checkout .field{font-size:13px;font-weight:600;margin:0}
.checkout .field .input{font-weight:400}
.field__hint{font-size:12px;font-weight:400;color:var(--muted)}
.field__error{font-size:12px;font-weight:500;color:var(--rose)}
.checkout .input.is-invalid,.checkout .input.parsley-error{border-color:var(--rose)}
.checkout .parsley-errors-list{list-style:none;margin:2px 0 0;padding:0;font-size:12px;font-weight:500;color:var(--rose)}
.checkout .option-card{margin:0}
.checkout .option-card input{flex:none}
.checkout .pay-logo img{height:18px;width:auto;max-width:60px;object-fit:contain}
.checkout__side{position:sticky;top:20px}
.checkout__side .btn--checkout{height:52px;font-size:16px}
.checkout__side .btn--checkout:disabled{opacity:.7}
.checkout__note{font-size:12px;text-align:center;margin:0}
.cartlist[data-bag-context="checkout"] .line{grid-template-columns:56px minmax(0,1fr);gap:12px;padding:12px 0}
.cartlist[data-bag-context="checkout"] .line__img{width:56px;height:56px;border-radius:12px;padding:4px}
.cartlist[data-bag-context="checkout"] .line__end{grid-column:2;flex-direction:row;align-items:center;justify-content:space-between}
.cartlist[data-bag-context="checkout"] .line__name{font-size:14px}
.cartlist[data-bag-context="checkout"] .bag{padding:20px 20px 4px;border-radius:var(--r-card);background:var(--tint)}
.cartlist[data-bag-context="checkout"] .bag__summary{padding:12px 0 0;background:none;border-radius:0}
.cartlist[data-bag-context="checkout"] .bag__summary .panel__title{display:none}
.cartlist[data-bag-context="checkout"] .bag__lines{border-bottom:0}
/* Wallet instructions and transaction boxes */
.pm-panel{display:none;margin-top:12px;padding:14px 16px;border-radius:16px;background:var(--tint);font-size:14px;line-height:1.55}
.pm-panel.show{display:block}
.pm-header{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.pm-number{font-size:18px;font-weight:700;color:var(--plum);letter-spacing:.02em}
.pm-steps{margin:10px 0 6px;padding-left:20px}
.pm-steps li{list-style:decimal}
.pm-note{margin:0;font-size:13px;color:var(--muted)}
.transaction-part{margin-top:14px}
.advance-note{margin-top:14px;padding:14px 16px;border-radius:16px;background:var(--blush);font-size:14px;line-height:1.55}
.advance-note p{margin:4px 0 0}
.advance-note__bn{color:var(--muted);font-size:13px}
.order-loader{display:inline-block;width:16px;height:16px;border:2px solid rgba(255,255,255,.5);border-top-color:#fff;border-radius:50%;animation:saj-spin .8s linear infinite;vertical-align:-3px}
@keyframes saj-spin{to{transform:rotate(360deg)}}
@media (max-width:820px){
  .checkout__side{position:static}
  .checkout__side .btn--checkout{display:none}
  body:has([data-checkout-total]) .tabbar,body:has([data-checkout-total]) .chat-fab{display:none}
  body[data-theme="theme-saj"]:has([data-checkout-total]){padding-bottom:calc(72px + env(safe-area-inset-bottom))}
}
/* Undo the old checkout look (style.css .payment_method, .area-item, .shipping-area-box, .order_place) */
body[data-theme="theme-saj"] .checkout .payment-methods{display:flex;flex-direction:column;gap:12px}
body[data-theme="theme-saj"] .checkout .payment_method{text-align:left;padding:14px 16px;border-radius:16px;border:1.5px solid var(--divider);box-shadow:none;transition:none}
body[data-theme="theme-saj"] .checkout .payment_method.active{border-color:var(--plum);background:var(--tint);box-shadow:none}
body[data-theme="theme-saj"] .checkout .payment_method.active::before{content:none}
body[data-theme="theme-saj"] .checkout .payment_method img{height:18px}
body[data-theme="theme-saj"] .checkout .shipping-area-box{border:0;border-radius:0}
body[data-theme="theme-saj"] .checkout .area-item{border-bottom:1.5px solid var(--divider);padding:14px 16px}
body[data-theme="theme-saj"] .checkout .area-item input[type="radio"]{position:static;opacity:1}
body[data-theme="theme-saj"] .checkout .area-item.active{border-color:var(--plum);background:var(--tint)}
body[data-theme="theme-saj"] .order_place{display:flex;margin-top:0;padding:0 16px;border-radius:var(--r-btn);background:var(--plum);text-transform:none;font-family:var(--sans);font-weight:600}
body[data-theme="theme-saj"] .order_place:hover{background:var(--plum-2,var(--plum))}

/* ==== Order success ==== */
.success-card__actions{margin-top:12px;flex-wrap:wrap;justify-content:center;gap:10px}
.order-done{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:24px;max-width:960px;margin:40px auto 0;align-items:start}
.order-done .panel__title{margin:0 0 14px;font-family:var(--serif);font-size:20px}
.order-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 16px;padding:0 0 16px;border-bottom:1px solid var(--divider)}
.order-facts dt{font-size:12px;color:var(--muted);font-weight:500}
.order-facts dd{margin:2px 0 0;font-weight:600}
.order-line small{display:block;font-size:12px}
.order-lines{padding-bottom:8px;margin-bottom:8px;border-bottom:1px solid var(--divider)}
.order-address{margin:0;line-height:1.7}
@media (max-width:820px){.order-done{grid-template-columns:minmax(0,1fr);margin-top:28px}.success-card h1{font-size:26px}}
.success-card__actions{display:flex}
@media (max-width:820px){body[data-theme="theme-saj"] .checkout__side .order_place{display:none}}
body[data-theme="theme-saj"] .cartlist .empty img{width:120px;height:auto}
.order-line{gap:12px;align-items:flex-start}.order-line>span:last-child{white-space:nowrap}

/* ==== Shop messages (toastr) ====
   toastr's items also carry the class .toast, which the design uses for its phone "Added" toast (hidden on desktop,
   fixed at the bottom). Reset that inside #toast-container and give the messages the new look. */
body[data-theme="theme-saj"] #toast-container{z-index:100000}
body[data-theme="theme-saj"] #toast-container.toast-top-right{top:88px;right:16px}
body[data-theme="theme-saj"] #toast-container > .toast{position:relative;left:auto;right:auto;bottom:auto;display:block;opacity:1;transform:none;pointer-events:auto;
  width:340px;max-width:calc(100vw - 32px);margin:0 0 10px;padding:14px 40px 14px 52px;border-radius:16px;background-color:var(--white);background-position:16px 16px;background-size:22px;
  color:var(--ink);font-family:var(--sans);font-size:14px;line-height:1.45;box-shadow:var(--shadow-pop);border:1px solid var(--card-border);border-left:4px solid var(--plum)}
body[data-theme="theme-saj"] #toast-container > .toast:hover{box-shadow:var(--shadow-pop);opacity:1}
body[data-theme="theme-saj"] #toast-container > .toast-success{border-left-color:var(--success);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E9E6A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M7.5 12.5l3 3 6-6.5'/%3E%3C/svg%3E")!important}
body[data-theme="theme-saj"] #toast-container > .toast-error{border-left-color:var(--rose);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D6336C' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 7v6M12 16.5v.5'/%3E%3C/svg%3E")!important}
body[data-theme="theme-saj"] #toast-container > .toast-warning{border-left-color:var(--warning);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B26A00' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 3l10 18H2z'/%3E%3Cpath d='M12 10v4M12 17v.5'/%3E%3C/svg%3E")!important}
body[data-theme="theme-saj"] #toast-container > .toast-info{border-left-color:var(--info)}
body[data-theme="theme-saj"] #toast-container .toast-title{font-weight:700;margin-bottom:2px}
body[data-theme="theme-saj"] #toast-container .toast-message,body[data-theme="theme-saj"] #toast-container .toast-message a{color:var(--ink)}
body[data-theme="theme-saj"] #toast-container .toast-close-button{position:absolute;right:12px;top:10px;color:var(--muted);text-shadow:none;opacity:.8}
body[data-theme="theme-saj"] #toast-container .toast-progress{background:var(--plum);opacity:.25;height:3px;bottom:0;left:0}
@media (max-width:820px){body[data-theme="theme-saj"] #toast-container.toast-top-right{top:72px;left:16px;right:16px}body[data-theme="theme-saj"] #toast-container > .toast{width:auto;max-width:none}}

/* ==== Login, sign-up, code and password pages ==== */
.auth__art img{max-width:100%;height:auto;mix-blend-mode:multiply}
.auth__fields{display:flex;flex-direction:column;gap:16px;margin:0}
.auth__box .field{margin:0}
.auth__forgot{align-self:flex-end;font-size:14px;font-weight:600;color:var(--rose);text-decoration:none;margin-top:-6px}
.auth__switch{margin:0}
.auth__switch .auth__link{font-size:14px;font-weight:600;color:var(--rose);text-decoration:none}
.input-group.is-error,.otp.is-error input{border-color:var(--rose)}
.field__ok{font-size:12px;font-weight:500;color:var(--success)}
.input-group input{background:transparent;height:100%}
.otp input{background:var(--white)}
@media (max-width:820px){.otp{gap:10px}.otp input{width:56px;height:58px}}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ==== Track order ==== */
.track-page{max-width:980px}
.track-head{text-align:center;margin-bottom:20px}
.track-form{display:grid;grid-template-columns:1fr 1fr auto;gap:14px;align-items:end;max-width:760px;margin:0 auto}
.track-form .field{margin:0}
.track-form__btn{height:50px}
.track-help{text-align:center;font-size:13px;margin:12px 0 0}
.track-result{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:24px;align-items:start;margin-bottom:24px}
.track-result .panel__title{margin:0 0 12px;font-family:var(--serif);font-size:20px}
.track-result__head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}
.track-result__id{font-family:var(--serif);font-size:24px}
.track-courier{margin:-6px 0 16px;font-size:14px;color:var(--muted)}
.timeline__note{margin:4px 0 0;font-size:13px;color:var(--ink);line-height:1.5}
.track-facts{margin:16px 0 0;padding:16px 0 0;border-top:1px solid var(--divider);border-bottom:0}
.track-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:16px}
@media (max-width:820px){.track-form{grid-template-columns:1fr}.track-result{grid-template-columns:1fr;gap:16px}}

/* ==== Account area ==== */
.side-nav__avatar{width:48px;height:48px;background:var(--plum);color:var(--white)}
.side-nav b{display:block}
.panel__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.account .panel__title{margin:0;font-family:var(--serif);font-size:20px}
.order__top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.order__actions{display:flex;gap:6px;align-items:center}
.order[hidden]{display:none}
.account-facts{grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:0;padding:0;margin:0}
.account-facts .full{grid-column:1/-1}
.profile-photo{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:20px}
.profile-photo__img{width:72px;height:72px;border-radius:50%;object-fit:cover;background:var(--tint)}
.account .select{height:50px;width:100%}
.password-form{max-width:520px}
@media (max-width:820px){.order__actions{justify-content:flex-start}.account-facts{grid-template-columns:1fr}}

/* ==== Wishlist ==== */
.wishlist-main{min-width:0}
.wishlist-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px}
.wishlist-head .page__title{margin:0}
.wishlist-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.account .wishlist-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
a.card__wish{display:grid;place-items:center;text-decoration:none}
.pager{display:flex;justify-content:center;align-items:center;gap:6px;flex-wrap:wrap;margin-top:28px}
.pager__btn,.pager__n{min-width:40px;height:40px;padding:0 12px;border-radius:12px;display:grid;place-items:center;font-size:14px;font-weight:600;color:var(--plum);text-decoration:none;border:1.5px solid var(--divider);background:var(--white)}
.pager__n.is-current{background:var(--plum);border-color:var(--plum);color:var(--white)}
.pager__btn.is-off{opacity:.4}
@media (max-width:1199px){.wishlist-grid,.account .wishlist-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:820px){.wishlist-grid,.account .wishlist-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ==== Info pages and contact ==== */
.info{align-items:start}
.info .prose{max-width:none;padding:32px}
.info .prose .page__title{margin:0}
.prose__date{font-size:13px;margin:6px 0 20px}
.prose.rich-text h2,.prose.rich-text h3{font-family:var(--serif);color:var(--ink);font-size:21px;margin:28px 0 8px}
.prose.rich-text p,.prose.rich-text li{color:var(--muted);font-size:16px;line-height:1.75}
.prose.rich-text a{color:var(--rose)}
.prose.rich-text img{max-width:100%;height:auto}
.contact-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.contact-card{display:flex;flex-direction:column;gap:4px;padding:16px 18px;border-radius:18px;background:var(--white);border:1px solid var(--card-border);color:var(--ink);text-decoration:none}
a.contact-card:hover{border-color:var(--rose);color:var(--ink)}
.contact-card b{font-size:13px;color:var(--muted);font-weight:600}
.contact-card span{font-size:16px;font-weight:600;color:var(--plum);overflow-wrap:anywhere}
.contact-form .panel__title{margin:0 0 14px;font-family:var(--serif);font-size:20px}
.contact-form .field{margin:0}
.contact-map{padding:0;overflow:hidden}
.contact-map iframe{display:block;width:100%;height:380px;border:0}
@media (max-width:820px){.info .prose{padding:20px}.contact-cards{grid-template-columns:1fr}.contact-map iframe{height:280px}}

/* ==== 404 (same look as the empty states) ==== */
.notfound-empty h1{margin:0;font-family:var(--serif);font-size:24px;font-weight:500}
/* The page title sits inside .rich-text; keep the design's title size rather than the smaller rich-text heading */
.info .prose > .page__title{font-size:36px;line-height:1.15;margin:0}
@media (max-width:820px){.info .prose > .page__title{font-size:26px}}

/* ==== Header live search (theme-saj/ajax/search) ==== */
.sb-search__results .search-suggest{margin:0 0 16px;max-height:60vh;overflow:auto;border:1px solid var(--card-border);border-radius:16px;background:var(--white)}
.search-suggest a{padding:10px 14px}
.search-suggest a:last-child{border-bottom:0}
.search-suggest .suggest__img img{width:100%;height:100%;object-fit:contain}
.suggest__text{flex:1;min-width:0;line-height:1.35}
.suggest__out{display:inline-block;margin-left:8px;padding:1px 8px;border-radius:10px;background:var(--blush);color:var(--muted);font-size:11px;font-weight:600;vertical-align:1px}
.suggest__price{display:flex;flex-direction:column;align-items:flex-end;flex:none;line-height:1.2}
.suggest__price b{color:var(--plum);font-size:15px}
.suggest__price s{color:var(--muted);font-size:12px}
.suggest__none{margin:0;padding:16px;color:var(--muted);font-size:14px}
.search-suggest a.suggest__all{justify-content:center;font-weight:600;color:var(--rose);background:var(--tint)}
.search-suggest mark{padding:0;margin:0;background:none;color:var(--rose);font-weight:700}
/* Search results float over the page under the search box (like theme 4) instead of pushing the page down */
.sb-search{position:relative}
body[data-theme="theme-saj"] .sb-search__results{position:absolute;left:0;right:0;top:100%;z-index:45;margin:0 auto;max-width:880px;padding:0 var(--gutter)}
body[data-theme="theme-saj"] .sb-search__results .search-suggest{margin:6px 0 0;box-shadow:var(--shadow-pop)}
@media (max-width:820px){body[data-theme="theme-saj"] .sb-search__results{padding:0 12px}}

/* ==== Chatbot carry-over (phones) ==== */
/* Page dimming behind the ¾ chat sheet; tapping it closes the chat */
.scrim--chatbot{z-index:59}
@media (max-width:600px){.is-chat-open .scrim--chatbot{opacity:1;pointer-events:auto}}
/* Strip with the assistant's last reply, beside the chat button (or above a page's bottom bar) */
.chat-strip{position:fixed;z-index:31;left:16px;right:76px;bottom:112px;height:52px;display:flex;align-items:center;border-radius:26px;background:var(--white);
  border:1px solid var(--card-border);box-shadow:var(--shadow-pop);overflow:hidden}
.chat-strip[hidden]{display:none}
.chat-strip__open{flex:1;min-width:0;height:100%;display:flex;align-items:center;gap:10px;padding:0 4px 0 6px;border:0;background:none;text-align:left;color:var(--ink)}
.chat-strip__avatar{width:38px;height:38px;flex:none;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,var(--rose),#761C81);color:var(--white);font:600 15px var(--serif)}
.chat-strip__text{flex:1;min-width:0;font-size:13px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-strip__text b{color:var(--plum)}
.chat-strip__go{flex:none;font-size:13px;font-weight:700;color:var(--rose);padding:0 4px}
.chat-strip__close{flex:none;width:40px;height:100%;border:0;background:none;color:var(--muted);display:grid;place-items:center}
.chat-strip__close .icon{width:16px;height:16px}
body:has(.sticky-buy) .chat-strip,body:has([data-checkout-total]) .chat-strip,body:has([data-mobile-total]:not([hidden])) .chat-strip{right:16px;bottom:calc(80px + env(safe-area-inset-bottom))}
@media (min-width:601px){.chat-strip{display:none!important}}

/* ==== Back-sticky header: hides while scrolling down, comes back on scroll up (all screen sizes) ====
   theme-saj.js toggles body.saj-head-hidden / body.saj-head-scrolled and sets --saj-head to the header's height
   while it shows, so other sticky parts (filters, gallery, summaries, account menu) sit below it instead of under it. */
:root{--saj-head:0px}
body[data-theme="theme-saj"] .site-header{position:sticky;top:0;transition:transform .28s ease,box-shadow .2s ease;will-change:transform}
body[data-theme="theme-saj"].saj-head-hidden .site-header{transform:translateY(-100%)}
body[data-theme="theme-saj"].saj-head-scrolled .site-header{box-shadow:0 8px 24px -16px rgba(74,20,80,.45)}
@media (prefers-reduced-motion:reduce){body[data-theme="theme-saj"] .site-header{transition:none}}
@media (min-width:821px){
  body[data-theme="theme-saj"] .filters,body[data-theme="theme-saj"] .gallery,body[data-theme="theme-saj"] .summary,
  body[data-theme="theme-saj"] .side-nav,body[data-theme="theme-saj"] .bag-page .bag__summary,body[data-theme="theme-saj"] .checkout__side{
    top:calc(var(--saj-head) + 20px);transition:top .28s ease}
}
@media (max-width:820px){body[data-theme="theme-saj"] .toolbar{top:var(--saj-head);transition:top .28s ease}}

/* Old responsive.css forces each .payment_method to a quarter of the row on phones; Saj cards are full-width rows */
body[data-theme="theme-saj"] .checkout .payment-methods{flex-wrap:nowrap}
body[data-theme="theme-saj"] .checkout .payment_method{width:auto !important}
.profile-photo__initials{display:grid;place-items:center;background:var(--plum);color:var(--white);font-size:24px;font-weight:700}
.profile-photo__img[hidden]{display:none}


/* Phones: the wishlist lives in the header only, so its count shows there (the design hid it next to a tab bar heart) */
@media (max-width:820px){
  body[data-theme="theme-saj"] .site-header .js-wish .count{display:grid}
  body[data-theme="theme-saj"] .site-header .js-wish .count:empty{display:none}
}

/* ===== Bela: the chat bubble with her photo (chatbot on), hello, and motion =====
   Phones: just above the tab bar, 52px; desktop: bottom-right, 58px. Only transform/opacity animate. */
.chat-fab{transition:transform .35s cubic-bezier(.2,.8,.2,1),opacity .3s ease}
.chat-fab__face,.chat-fab__close{display:none}
.has-chatbot .chat-fab{padding:0;background:var(--tint);box-shadow:0 0 0 3px var(--white),0 0 0 5px var(--rose),0 14px 30px -12px rgba(118,28,129,.7)}
.has-chatbot .chat-fab__icon{display:none}
.has-chatbot .chat-fab__face{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover;transition:opacity .2s}
.has-chatbot .chat-fab__close{display:block;position:absolute;width:24px;height:24px;color:var(--white);opacity:0;transition:opacity .2s}
.has-chatbot.is-chat-open .chat-fab{background:linear-gradient(135deg,var(--rose),#761C81)}
.has-chatbot.is-chat-open .chat-fab__face{opacity:0}
.has-chatbot.is-chat-open .chat-fab__close{opacity:1}
.chat-fab__dot{position:absolute;top:1px;right:1px;width:13px;height:13px;border-radius:50%;background:var(--rose);border:2px solid var(--white);transform:scale(0);transition:transform .25s cubic-bezier(.34,1.56,.64,1)}
.chat-fab.has-dot .chat-fab__dot{transform:scale(1)}
.chat-fab::before{content:"";position:absolute;inset:-5px;border-radius:50%;border:2px solid var(--rose);opacity:0;pointer-events:none}
.chat-fab.is-landing{animation:bela-pop .7s cubic-bezier(.34,1.56,.64,1) .9s both}
.chat-fab.is-landing::before{animation:bela-ripple 1.6s ease-out 1.5s 3}
.chat-fab.is-pulse::before{animation:bela-ripple 1.6s ease-out 1}
.chat-fab.is-wiggle{animation:bela-wiggle .8s ease-in-out}
@keyframes bela-pop{0%{transform:scale(.3);opacity:0}100%{transform:scale(1);opacity:1}}
@keyframes bela-ripple{0%{transform:scale(1);opacity:.7}100%{transform:scale(1.6);opacity:0}}
@keyframes bela-wiggle{0%,100%{transform:rotate(0)}20%{transform:rotate(-12deg)}40%{transform:rotate(10deg)}60%{transform:rotate(-6deg)}80%{transform:rotate(3deg)}}
@keyframes bela-wave{0%,100%{transform:rotate(0)}25%{transform:rotate(18deg)}50%{transform:rotate(-8deg)}75%{transform:rotate(14deg)}}

/* Bela's welcome (partials/contact_fab). The card is the same in both forms: × top-right, a title with a waving hand,
   the message and a pill "let's talk" button. Small form: the card sits beside her bubble. */
.bela-hello{position:fixed;z-index:31;right:calc(max(24px,calc((100vw - 1440px)/2 + var(--gutter))) + 70px);bottom:30px}
.bela-hello[hidden]{display:none}
.bela-hello__card{position:relative;width:min(280px,calc(100vw - 110px));padding:16px 16px 14px;background:var(--white);border:1px solid var(--card-border);
  border-radius:20px 20px 4px 20px;box-shadow:0 18px 40px -16px rgba(74,20,80,.45);color:var(--ink);animation:bela-hello-in .45s cubic-bezier(.34,1.56,.64,1) both}
.bela-hello__close{position:absolute;top:6px;right:6px;width:32px;height:32px;border:0;background:none;color:var(--muted);display:grid;place-items:center;cursor:pointer;border-radius:50%}
.bela-hello__close:hover{background:var(--tint)}
.bela-hello__close .icon{width:15px;height:15px}
.bela-hello__title{display:block;padding-right:26px;font-size:16px;line-height:1.3;font-weight:700;color:var(--plum)}
.bela-hello__wave{display:inline-block;margin-right:5px;transform-origin:70% 80%;animation:bela-wave 1.1s ease-in-out .6s 2}
.bela-hello__msg{margin:8px 0 14px;font-size:14px;line-height:1.55;color:var(--ink)}
.bela-hello__cta{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 18px;border:0;border-radius:999px;cursor:pointer;
  background:linear-gradient(135deg,var(--rose),#761C81);color:var(--white);font-size:14px;font-weight:600;box-shadow:0 10px 22px -10px rgba(118,28,129,.7)}
.bela-hello__cta .icon{width:16px;height:16px;stroke:currentColor}
.bela-hello__cta:hover{filter:brightness(1.06)}
@keyframes bela-hello-in{0%{transform:translateY(10px) scale(.92);opacity:0}100%{transform:none;opacity:1}}

/* Big form: Bela waving at the bottom-right corner, the card speaking from her left. Her round bubble steps aside
   while she is out (body.is-bela-big) and comes back when she leaves. */
.bela-hello--big{right:max(8px,calc((100vw - 1440px)/2 + 8px));bottom:0;display:flex;align-items:flex-end;pointer-events:none;
  animation:bela-big-in .6s cubic-bezier(.2,.8,.2,1) both}
.bela-hello--big.is-leaving{animation:bela-big-out .32s ease-in both}
.bela-hello__figure{display:block;flex:none;width:clamp(200px,36vh,290px);padding:0;border:0;background:none;cursor:pointer;pointer-events:auto}
.bela-hello__figure img{display:block;width:100%;height:auto;filter:drop-shadow(0 12px 28px rgba(118,28,129,.18))}
.bela-hello--big .bela-hello__card{order:-1;z-index:1;flex:none;width:290px;margin:0 -34px clamp(110px,19vh,160px) 0;border-radius:22px;pointer-events:auto;
  animation-delay:.3s}
.bela-hello--big .bela-hello__card::after{content:"";position:absolute;right:-9px;bottom:30px;width:16px;height:16px;background:var(--white);
  border-top:1px solid var(--card-border);border-right:1px solid var(--card-border);transform:rotate(45deg)}
.bela-hello--big .bela-hello__title{font-size:17px}
.bela-hello--big .bela-hello__msg{font-size:14.5px}
.is-bela-big .chat-fab{opacity:0;transform:scale(.5) translateY(12px);pointer-events:none}
@keyframes bela-big-in{0%{transform:translateY(60px);opacity:0}100%{transform:none;opacity:1}}
@keyframes bela-big-out{0%{transform:none;opacity:1}100%{transform:translateY(60px);opacity:0}}

/* Product page buy bar: the same Bela bubble */
.has-chatbot .sticky-buy .bela-btn{padding:0;overflow:hidden;background:var(--tint);box-shadow:0 0 0 2px var(--white),0 0 0 4px var(--rose)}
.bela-btn__face{display:none}
.has-chatbot .bela-btn__face{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover}
.has-chatbot .bela-btn>.icon{display:none}

@media (max-width:820px){
  .chat-fab{bottom:calc(80px + env(safe-area-inset-bottom))}
  .chat-strip{bottom:calc(80px + env(safe-area-inset-bottom))}
  .bela-hello{right:84px;bottom:calc(84px + env(safe-area-inset-bottom))}
  /* Big form on phones: smaller Bela standing on the tab bar, a compact card */
  .bela-hello--big{right:0;bottom:calc(64px + env(safe-area-inset-bottom))}
  .bela-hello--big .bela-hello__figure{width:124px}
  .bela-hello--big .bela-hello__card{width:min(236px,calc(100vw - 144px));margin:0 6px 64px 0;padding:12px 14px 12px;border-radius:18px}
  .bela-hello--big .bela-hello__card::after{bottom:22px}
  .bela-hello--big .bela-hello__title{font-size:14.5px}
  .bela-hello--big .bela-hello__msg{margin:6px 0 10px;font-size:13px;line-height:1.45}
  .bela-hello__cta{height:38px;padding:0 14px;font-size:13.5px}
}
@media (prefers-reduced-motion:reduce){
  .chat-fab,.chat-fab::before,.bela-hello,.bela-hello__card,.bela-hello__wave,.chat-fab__dot{animation:none!important;transition:none!important}
}

/* ===== Categories page (phone tab bar "Categories"; also /categories on desktop) ===== */
.cats-quick{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 22px}
.chip--accent{border-color:var(--rose);color:var(--rose);font-weight:600}
.cats-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}
.cat-tile{display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px 8px 12px;border-radius:18px;background:var(--white);border:1px solid var(--card-border);
  text-decoration:none;color:var(--ink);text-align:center;transition:transform .2s,box-shadow .2s}
@media (hover:hover){.cat-tile:hover{transform:translateY(-3px);box-shadow:var(--shadow-lift);color:var(--ink)}}
.cat-tile__img{width:72px;height:72px;border-radius:50%;overflow:hidden;background:var(--tint);display:grid;place-items:center}
.cat-tile__img img{width:72%;height:72%;object-fit:contain;mix-blend-mode:multiply}
.cat-tile__initial{font:600 28px var(--serif);color:var(--rose)}
.cat-tile__name{font-size:14px;font-weight:600;line-height:1.25;max-width:100%;overflow-wrap:break-word}
.cat-tile__count{font-size:12px;color:var(--muted)}
.cats-section{margin-top:28px}
.cats-section__title{margin:0 0 12px;font-family:var(--serif);font-size:22px;font-weight:500}
.cats-section .chips{display:flex;flex-wrap:wrap;gap:8px}
.cats-concern{margin-bottom:12px}
.cats-concern b{display:block;font-size:13px;color:var(--muted);font-weight:600;margin-bottom:8px}
.cats-brands{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.cats-brand{height:72px;border-radius:16px;background:var(--white);border:1px solid var(--card-border);display:grid;place-items:center;padding:10px;text-decoration:none;color:var(--plum);font-weight:600;font-size:14px}
.cats-brand img{max-width:100%;max-height:48px;object-fit:contain}
@media (max-width:820px){
  .cats-quick{margin:12px 0 16px}
  .cats-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  .cat-tile{padding:12px 6px 10px;border-radius:16px}
  .cat-tile__img{width:58px;height:58px}
  .cat-tile__name{font-size:12.5px}
  .cat-tile__count{font-size:11px}
  .cats-section{margin-top:24px}
  .cats-section__title{font-size:20px}
  .cats-brands{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  .cats-brand{height:60px}
}

/* ===== Account on phones: app-style menu rows (guest "Me" screen and the signed-in overview) ===== */
.only-phone,.account-back{display:none}
.menu-list{display:flex;flex-direction:column;background:var(--white);border:1px solid var(--card-border);border-radius:18px;overflow:hidden;margin-top:14px}
.menu-list__row{display:flex;align-items:center;gap:14px;min-height:54px;padding:0 16px;border:0;border-top:1px solid var(--divider);background:none;width:100%;
  text-align:left;text-decoration:none;color:var(--ink);font-size:15px;font-weight:500;cursor:pointer}
.menu-list__row:first-child{border-top:0}
.menu-list__row .icon{width:20px;height:20px;color:var(--plum);flex:none}
.menu-list__row span{flex:1}
.menu-list__row::after{content:"›";color:var(--muted);font-size:20px;line-height:1}
.menu-list__badge{font-style:normal;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:var(--rose);color:var(--white);font-size:12px;font-weight:700;display:grid;place-items:center}
.menu-list__row--out{color:var(--rose)}.menu-list__row--out .icon{color:var(--rose)}.menu-list__row--out::after{content:none}
.me-page{max-width:560px}
.me-welcome{padding:22px 18px;border-radius:20px;background:var(--white);border:1px solid var(--card-border)}
.me-welcome .page__title{font-size:26px}
.me-welcome p{margin:8px 0 16px;font-size:14px}
.me-welcome__actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media (max-width:820px){
  .only-phone{display:block}
  body[data-theme="theme-saj"] .side-nav{display:none}
  .account-back{display:inline-flex;align-items:center;margin-bottom:4px;font-size:14px;font-weight:600;color:var(--rose);text-decoration:none}
}

/* Old stylesheets fight the outline buttons: Bootstrap's .btn:hover makes the border transparent and the old
   style.css "button:focus, button:active { border: 0 }" removes it after a tap. Keep the border in every state. */
body[data-theme="theme-saj"] .btn--outline:is(:hover,:focus,:active){border:1.5px solid var(--plum);color:var(--plum)}
body[data-theme="theme-saj"] .btn--outline:hover{background:var(--tint)}
body[data-theme="theme-saj"] .btn--outline:is(:focus,:active):not(:hover){background:none}
body[data-theme="theme-saj"] button.chip:is(:hover,:focus,:active){border:1.5px solid var(--divider)}
body[data-theme="theme-saj"] button.chip.is-active:is(:hover,:focus,:active){border-color:var(--plum)}
body[data-theme="theme-saj"] .pdp__wish:is(:hover,:focus,:active){border:1.5px solid var(--divider)}

/* Bela's photo with a small gradient chat badge on the top-right edge (option A). The badge also carries the
   "Bela has a message" dot; it pops in just after the photo on the first page of a visit. */
.chat-fab__badge,.bela-btn__badge{display:none}
.has-chatbot .chat-fab__badge{display:grid;place-items:center;position:absolute;top:-7px;right:-7px;z-index:2;width:22px;height:22px;border-radius:50%;
  border:2px solid var(--white);background:linear-gradient(135deg,var(--rose),#761C81);color:var(--white);transition:opacity .2s,transform .2s}
.has-chatbot .chat-fab__badge .icon{width:12px;height:12px;stroke-width:2.4}
@media (min-width:821px){.has-chatbot .chat-fab__badge{width:24px;height:24px;top:-6px;right:-6px}.has-chatbot .chat-fab__badge .icon{width:13px;height:13px}}
.has-chatbot .chat-fab__dot{top:-10px;right:-10px;z-index:3;width:11px;height:11px}
.has-chatbot.is-chat-open .chat-fab__badge,.has-chatbot.is-chat-open .chat-fab__dot{opacity:0;transform:scale(.5)}
.chat-fab.is-landing .chat-fab__badge{animation:bela-badge-pop .45s cubic-bezier(.34,1.56,.64,1) 1.55s both}
.chat-fab.has-dot .chat-fab__badge{animation:bela-badge-bounce .7s ease-in-out}
@keyframes bela-badge-pop{0%{transform:scale(0);opacity:0}100%{transform:scale(1);opacity:1}}
@keyframes bela-badge-bounce{0%,100%{transform:none}30%{transform:translateY(-4px) scale(1.12)}60%{transform:translateY(0) scale(.96)}}
.has-chatbot .sticky-buy .bela-btn{overflow:visible;position:relative}
@media (prefers-reduced-motion:reduce){.chat-fab__badge{animation:none!important}}

/* The old style.css sets "button { box-shadow: 0 0 !important }", which wipes the design's button shadows.
   Put them back for this theme (same values as design.css / above). */
body[data-theme="theme-saj"] button.btn--primary{box-shadow:0 10px 24px -10px rgba(74,20,80,.6)!important}
body[data-theme="theme-saj"] button.btn:disabled,body[data-theme="theme-saj"] button.btn.is-disabled{box-shadow:none!important}
body[data-theme="theme-saj"] button.round-btn{box-shadow:0 4px 12px -6px rgba(74,20,80,.4)!important}
body[data-theme="theme-saj"] button.pdp__wish{box-shadow:none!important}
body[data-theme="theme-saj"] .chat-fab{box-shadow:0 14px 30px -12px rgba(118,28,129,.7)!important}
body[data-theme="theme-saj"].has-chatbot .chat-fab{box-shadow:0 0 0 3px var(--white),0 0 0 5px var(--rose),0 14px 30px -12px rgba(118,28,129,.7)!important}
body[data-theme="theme-saj"].has-chatbot .sticky-buy .bela-btn{box-shadow:0 0 0 2px var(--white),0 0 0 4px var(--rose)!important}

/* Product page on phones: the tab bar (with the bag) is replaced by the buy bar, so the header shows the bag
   with its count next to the heart. The buy bar's "Add to bag" confirms ("Added ✓"), then reads "View bag". */
@media (max-width:820px){
  body[data-theme="theme-saj"]:has(.sticky-buy) .site-header__actions>[data-bag-open]{display:grid}
  /* Two icons on the right (heart, bag): widen both side columns so the logo stays centred */
  body[data-theme="theme-saj"]:has(.sticky-buy) .site-header__bar{grid-template-columns:88px 1fr 88px}
  body[data-theme="theme-saj"]:has(.sticky-buy) .site-header__actions{justify-content:flex-end;gap:0}
}
body[data-theme="theme-saj"] .sticky-buy .btn--outline.is-added{border-color:var(--success);color:var(--success);background:none}

/* Phones: Bela's bubble is always visible above the tab bar, so the page ends a bubble-height lower and its
   last lines (footer) can scroll clear of her */
@media (max-width:820px){
  body[data-theme="theme-saj"].has-chatbot .site-footer{padding-bottom:72px}
}

/* Bag: line actions (Remove · Move to wishlist) and the "You save" row */
.line__actions{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:4px}
.line__actions .link-btn{margin:0}
.line__wish{color:var(--plum)}
.sum-row--save{font-size:14px;font-weight:600}
.sum-row--save .success{color:var(--success)}
.card__left{font-size:12px;font-weight:600;color:var(--rose);margin-top:2px}

/* Search panel suggestions (empty box) and the "Try one of these" chips when nothing matches */
.sb-search__suggest{max-width:880px;margin:0 auto;padding:4px var(--gutter) 18px}
.sb-search__suggest[hidden]{display:none}
.sb-search__group{margin-top:12px}
.sb-search__group[hidden]{display:none}
.sb-search__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.sb-search__head b{font-size:13px;color:var(--muted);font-weight:600}
.sb-search__group .chips{display:flex;flex-wrap:wrap;gap:8px}
.empty__try{margin:22px 0 10px;font-size:14px;color:var(--muted)}
.empty .chips--center{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;overflow:visible}

/* Account on phones: profile card above the menu; text counts on menu rows ("2 active") */
.me-card{display:flex;align-items:center;gap:12px;padding:14px 16px;background:var(--white);border:1px solid var(--card-border);border-radius:18px}
.me-card__avatar{width:46px;height:46px;flex:none;background:var(--plum);color:var(--white);font-weight:700;display:grid;place-items:center;border-radius:50%}
.me-card__who{flex:1;min-width:0}
.me-card__who b{display:block;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.me-card__who span{font-size:13px;color:var(--muted)}
.me-card__edit{font-size:14px;font-weight:600;color:var(--rose);text-decoration:none}
.menu-list__meta{font-style:normal;font-size:13px;color:var(--muted)}
.auth-terms{margin:10px 0 0;font-size:12.5px;line-height:1.5;color:var(--muted);text-align:center}
.auth-terms a{color:var(--plum);font-weight:600}

/* Listing quick chips: phones only (desktop has the filter column) */
.quick-chips{display:none}
@media (max-width:820px){.quick-chips{display:flex;margin:10px -16px 4px;padding:0 16px}}

/* Info pages on phones: the page menu stays, as a row of tabs (the account menu next to it is hidden on phones) */
@media (max-width:820px){
  body[data-theme="theme-saj"] .side-nav.info-nav{display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding:6px;margin:0 -16px;border-radius:0}
  body[data-theme="theme-saj"] .side-nav.info-nav a{flex:none;white-space:nowrap;height:38px}
}
.info-ask{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:baseline;margin-top:28px;padding:16px 18px;border-radius:16px;background:var(--tint);font-size:14px}
.info-ask b{color:var(--plum)}
.info-ask .link-btn{padding:0;margin:0;color:var(--rose);font-weight:600;font-size:14px}
.info-ask a{color:var(--rose);font-weight:600}

/* Contact form: the old style.css ".contact-form input" (square, grey) outranks .input; use the theme's field style */
body[data-theme="theme-saj"] .contact-form .input{border:1.5px solid var(--divider);border-radius:var(--r-input)}
body[data-theme="theme-saj"] .contact-form .input:focus{border:2px solid var(--rose)}

/* The chat widget draws its own round launcher; keep the widget hidden until theme-saj.js has replaced it with
   Bela's bubble (data-saj-ready), so the two never show side by side on load */
body[data-theme="theme-saj"] #chat-core-root:not([data-saj-ready]){visibility:hidden}

/* Each dark overlay belongs to one panel. design.css turns on every .scrim for the filters and the contact sheet,
   which also lit the chat overlay (z-index 59, above the filter sheet) and made the filter sheet untappable. */
body[data-theme="theme-saj"].is-filters-open .scrim:not(.scrim--filters),
body[data-theme="theme-saj"].is-sheet-open .scrim--filters,
body[data-theme="theme-saj"].is-sheet-open .scrim--chatbot{opacity:0;pointer-events:none}

/* Phone filter sheet: options as wrapping chips (2-3 per row) instead of one checkbox per line.
   Same form fields; the checkbox stays in the chip for keyboards and screen readers. Desktop keeps the list. */
@media (max-width:820px){
  body[data-theme="theme-saj"] .filters details > .check{display:inline-flex;align-items:center;gap:0;width:auto;height:36px;
    margin:8px 6px 0 0;padding:0 14px;border-radius:18px;border:1.5px solid var(--divider);background:var(--white);
    color:var(--plum);font-size:13px;font-weight:500;line-height:1;position:relative;vertical-align:top}
  body[data-theme="theme-saj"] .filters details > .check input[type="checkbox"]{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
  body[data-theme="theme-saj"] .filters details > .check .check__box{display:none}
  body[data-theme="theme-saj"] .filters details > .check:has(input:checked),
  body[data-theme="theme-saj"] .filters details > .check--link.is-on{background:var(--plum);border-color:var(--plum);color:var(--white);font-weight:600}
  body[data-theme="theme-saj"] .filters details > .check:has(input:focus-visible){outline:2px solid var(--rose);outline-offset:2px}
  body[data-theme="theme-saj"] .filters details > summary{margin-bottom:2px}
}

/* Phone listing toolbar: Filters and sort on one row, the product count small underneath; even gaps to the chip rows.
   Quick-chip filters are not repeated in the "×" row (the highlighted quick chip already shows them). */
@media (max-width:820px){
  body[data-theme="theme-saj"] .toolbar{flex-wrap:wrap;row-gap:4px;column-gap:10px}
  body[data-theme="theme-saj"] .toolbar .filter-btn{order:1}
  body[data-theme="theme-saj"] .toolbar .sort-form{order:2;margin-left:auto}
  body[data-theme="theme-saj"] .toolbar .sort-form .select{height:40px;max-width:168px}
  body[data-theme="theme-saj"] .toolbar .spacer{display:none}
  body[data-theme="theme-saj"] .toolbar .toolbar__count{order:3;flex-basis:100%;font-size:13px}
  body[data-theme="theme-saj"] .quick-chips{margin:12px -16px 0}
  body[data-theme="theme-saj"] .filter-chips{margin-top:10px}
  body[data-theme="theme-saj"] .filter-chips .chip--quick,
  body[data-theme="theme-saj"] .filter-chips--quick-only{display:none}
}

/* Homepage: sections that follow another closely on desktop (section--follow) keep the normal gap on phones,
   where the sections stack; offer captions on two lines; category names held to two centred lines */
@media (min-width:821px){ .section--follow{padding-top:0} }
.promo__name{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis}
.circle__name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-width:100%;overflow-wrap:anywhere}
@media (max-width:820px){
  body[data-theme="theme-saj"] .promo__label{flex-direction:column;align-items:flex-start;gap:2px;white-space:nowrap;padding:0 2px;font-size:14px}
  body[data-theme="theme-saj"] .promo__label .promo__name{display:block;max-width:100%}
  body[data-theme="theme-saj"] .promo__label span{font-size:13px}
  body[data-theme="theme-saj"] .circle{font-size:12px;line-height:1.25}
  body[data-theme="theme-saj"] .circle__name{width:100%}
}

/* Shop by concern on phones: the group switch fits its buttons (Skin | Hair | Body as there are groups),
   centred, instead of a full-width three-column track with empty space */
@media (max-width:820px){
  body[data-theme="theme-saj"] [data-concern] .concern__bar{align-items:center}
  body[data-theme="theme-saj"] [data-concern] .tabs{display:inline-flex;width:auto;max-width:100%;margin:0 auto 14px!important}
  body[data-theme="theme-saj"] [data-concern] .tab{padding:0 22px;min-width:76px}
  body[data-theme="theme-saj"] [data-concern] .concern__bar > .chips{align-self:stretch}
}
/* Offer and recommends rows on phones: snap to the 16px page edge like the product rails (they snapped to 0,
   so the first tile sat flush against the screen while the heading above was indented) */
@media (max-width:820px){ body[data-theme="theme-saj"] .promos, body[data-theme="theme-saj"] .recs{scroll-padding-inline:16px} }
@media (max-width:820px){ body[data-theme="theme-saj"] .quick-chips{margin-bottom:12px} }

/* ===== Phones: slightly smaller pills and buttons, and one spacing rhythm =====
   Pills 12.5px / 32px, group switch 13px / 34px, buttons 14px / 44px (cards' round bag button unchanged).
   Sections: 32px above each heading; rows keep only 6px under them (room for the card shadow), so every
   section starts ~36px after the last content. The tinted baby block sits 24px clear of its neighbours. */
@media (max-width:820px){
  body[data-theme="theme-saj"] .chip{font-size:12.5px;height:32px;padding:0 12px}
  body[data-theme="theme-saj"] .filters details > .check{font-size:12.5px;height:32px;padding:0 12px}
  body[data-theme="theme-saj"] .tab{font-size:13px;height:34px}
  body[data-theme="theme-saj"] .btn:not(.btn--sm):not(.btn--text){font-size:14px;height:44px;padding:0 18px}
  /* "View all" beside a section title is a text link: no button height, so one-line titles start at the top too */
  body[data-theme="theme-saj"] .section__tools .btn--text{height:auto;padding:0}
  body[data-theme="theme-saj"] .quick-chips{margin-bottom:16px}
  body[data-theme="theme-saj"] .section{padding-top:32px}
  body[data-theme="theme-saj"] .section--tight{padding-top:32px}
  body[data-theme="theme-saj"] .rail,
  body[data-theme="theme-saj"] .promos,
  body[data-theme="theme-saj"] .recs,
  body[data-theme="theme-saj"] .circles{padding-bottom:6px}
  body[data-theme="theme-saj"] .section--baby{margin-top:24px;padding:24px 0}
  body[data-theme="theme-saj"] .section--baby + .section{padding-top:24px}
}

/* ===== Chat with Bela: the pill (chatbot on), with Bela leaning on it =====
   Replaces the round photo bubble. The same button (.chat-fab), so the chat window, the welcome hand-over and the
   "Bela has a message" dot work as before. Bela sits centred in a "perch" that ends just inside the pill's top edge.
   Scrolling down (body.is-bela-tucked) she slides down behind the pill and her round photo replaces the chat icon
   (green dot kept); scrolling up or near the top she leans on it again. Phones: smaller. Chat open: she slides down
   (she peeks over the chat window instead, .bela-peek) and the pill shows ×. She doesn't take clicks, so she never
   blocks the page behind her. */
.chat-fab__online,.chat-fab__label,.chat-fab__perch{display:none}
body[data-theme="theme-saj"].has-chatbot .chat-fab{width:auto;height:56px;padding:0 18px 0 8px;display:flex;align-items:center;gap:10px;border-radius:999px;
  background:linear-gradient(135deg,var(--rose),#761C81);color:var(--white);box-shadow:0 0 0 3px var(--white),0 16px 32px -12px rgba(118,28,129,.75)!important}
.has-chatbot .chat-fab::before{border-radius:999px}
.has-chatbot .chat-fab .chat-fab__face,.has-chatbot .chat-fab .chat-fab__badge{display:none}
.has-chatbot .chat-fab .chat-fab__icon{display:block;flex:none;width:40px!important;height:40px!important;padding:9px;border-radius:50%;background:rgba(255,255,255,.18);stroke:currentColor}
.has-chatbot .chat-fab__online{display:block;position:absolute;left:38px;bottom:9px;width:11px;height:11px;border-radius:50%;background:#22c55e;border:2px solid var(--white)}
.has-chatbot .chat-fab__label{display:block;max-width:220px;overflow:hidden;white-space:nowrap;font-size:16px;font-weight:500;line-height:1;
  transition:max-width .3s ease,opacity .2s ease}
.chat-fab__label b{font-size:19px;font-weight:700}
/* Sized from the pill (80% of its width; the pill's width follows the assistant's name). Her elbows, the highest
   point of her arms, sit 6.6% of the picture's height above its bottom: the perch is pushed down by that much so they
   touch the pill's top edge, and her hands rest over it in front of the pill. Only the last 3px, where the artwork is
   cut straight at the fingertips, are softened. */
.has-chatbot .chat-fab__perch{display:block;position:absolute;left:50%;bottom:100%;width:80%;aspect-ratio:480/361;transform:translate(-50%,6.6%);overflow:hidden;pointer-events:none}
/* Clicks: only her figure (not the empty corners of the picture) opens the chat; the perch is inside the button */
.chat-fab__perch::after{content:"";position:absolute;left:24%;right:24%;top:6%;bottom:0;pointer-events:auto;cursor:pointer}
.is-bela-tucked .chat-fab__perch::after,.is-chat-open .chat-fab__perch::after{display:none}
.chat-fab__perch img{position:absolute;left:0;bottom:0;-webkit-mask-image:linear-gradient(#000 calc(100% - 3px),transparent);mask-image:linear-gradient(#000 calc(100% - 3px),transparent);width:100%;height:auto;transition:transform .45s cubic-bezier(.2,.8,.2,1)}
.has-chatbot .chat-fab__dot{top:-4px;right:10px}
.has-chatbot.is-chat-open .chat-fab__perch img,.is-bela-tucked .chat-fab__perch img{transform:translateY(105%)}
/* Chat open: the pill shrinks to a round ×, and her size follows the pill, so she leaves at once (she peeks over the chat window instead) */
.has-chatbot.is-chat-open .chat-fab__perch{visibility:hidden}
body.is-bela-tucked.has-chatbot .chat-fab .chat-fab__icon{display:none}
body.is-bela-tucked.has-chatbot .chat-fab .chat-fab__face{display:block;flex:none;width:40px;height:40px;border-radius:50%;object-fit:cover;
  box-shadow:0 0 0 2px var(--white);animation:bela-badge-pop .35s cubic-bezier(.34,1.56,.64,1) both}
body.is-bela-tucked.has-chatbot.is-chat-open .chat-fab .chat-fab__face{display:none}
/* Chat open: a round × button where the pill was */
body[data-theme="theme-saj"].has-chatbot.is-chat-open .chat-fab{width:56px;padding:0;justify-content:center}
.has-chatbot.is-chat-open .chat-fab .chat-fab__icon,.has-chatbot.is-chat-open .chat-fab__label,.has-chatbot.is-chat-open .chat-fab__online{display:none}
.has-chatbot.is-chat-open .chat-fab .chat-fab__close{position:static}
@media (max-width:820px){
  body[data-theme="theme-saj"].has-chatbot .chat-fab{height:48px;padding:0 14px 0 6px;gap:8px}
  .has-chatbot .chat-fab .chat-fab__icon{width:36px!important;height:36px!important;padding:8px}
  .has-chatbot .chat-fab__online{left:32px;bottom:6px;width:10px;height:10px}
  .has-chatbot .chat-fab__label{font-size:14px}
  .chat-fab__label b{font-size:16px}
  .has-chatbot .chat-fab__perch{width:73%}
  body.is-bela-tucked.has-chatbot .chat-fab .chat-fab__face{width:36px;height:36px}
  body[data-theme="theme-saj"].has-chatbot.is-chat-open .chat-fab{width:48px}
}
@media (prefers-reduced-motion:reduce){.chat-fab__perch img,.chat-fab__label{transition:none}}

/* Chat open: Bela peeking over the chat window's top edge (placed by theme-saj.js from the window's position; she
   only shows when there is room above the window, so not over a full-height phone chat while typing) */
.bela-peek{position:fixed;z-index:2147483002;left:0;top:0;width:240px;pointer-events:none;opacity:0;transform:translateY(18px);
  transition:opacity .3s ease,transform .5s cubic-bezier(.2,.8,.2,1)}
.bela-peek[hidden]{display:none}
.bela-peek.is-in{opacity:1;transform:none}
/* Chat closing: out with the window's own 0.2 s fade and drop */
.bela-peek.is-leaving{opacity:0;transform:translateY(12px);transition:opacity .2s ease-out,transform .2s ease-out}
.bela-peek img{display:block;width:100%;height:auto}
@media (max-width:600px){.bela-peek{width:160px}}
@media (prefers-reduced-motion:reduce){.bela-peek,.bela-peek.is-leaving{transition:none;transform:none}}

/* "Welcome back" card: Bela's photo, a title, the chat's own welcome-back text and a "continue" button, above Bela
   (above the pill while she is tucked away). Placed by theme-saj.js (right edge with the pill; --back-bottom*). */
.bela-back{position:fixed;z-index:31;right:24px;bottom:var(--back-bottom,140px);width:min(290px,calc(100vw - 32px));padding:14px 16px 14px;
  background:var(--white);border:1px solid var(--card-border);border-radius:20px;box-shadow:0 18px 40px -16px rgba(74,20,80,.45);color:var(--ink);
  transition:bottom .4s cubic-bezier(.2,.8,.2,1);animation:bela-hello-in .45s cubic-bezier(.34,1.56,.64,1) both}
.bela-back[hidden]{display:none}
.bela-back::after{content:"";position:absolute;right:34%;bottom:-9px;width:16px;height:16px;background:var(--white);
  border-right:1px solid var(--card-border);border-bottom:1px solid var(--card-border);transform:rotate(45deg)}
.is-bela-tucked .bela-back{bottom:var(--back-bottom-tucked,100px)}
.is-bela-tucked .bela-back::after{right:24px}
.bela-back__head{display:flex;align-items:center;gap:10px;padding-right:26px}
.bela-back__head img{flex:none;width:40px;height:40px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px var(--white),0 0 0 4px var(--rose)}
.bela-back .bela-hello__msg{margin:10px 0 12px}
@media (max-width:820px){.bela-back .bela-hello__msg{font-size:13.5px}}

/* The pill's glow: a light travelling round its white outline (3 rounds, ~6.6s, then it fades). Needs @property for
   the movement; without it the outline just glows. */
@property --saj-glow{syntax:'<angle>';inherits:false;initial-value:0deg}
.has-chatbot .chat-fab::after{content:"";position:absolute;inset:-4px;border-radius:999px;padding:4px;pointer-events:none;opacity:0;
  background:conic-gradient(from var(--saj-glow),transparent 0 58%,rgba(255,255,255,.95) 70%,#ff7cc8 80%,#fff 86%,transparent 96%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude}
.has-chatbot .chat-fab.is-glow::after{animation:saj-glow-spin 2.2s linear 3,saj-glow-fade 6.6s ease both}
.has-chatbot.is-chat-open .chat-fab::after{display:none}
@keyframes saj-glow-spin{to{--saj-glow:360deg}}
@keyframes saj-glow-fade{0%{opacity:0}8%,90%{opacity:1}100%{opacity:0}}
/* "Reduce motion": nothing travels; the outline glows softly three times */
@keyframes saj-glow-soft{0%,100%{opacity:0}50%{opacity:1}}
@media (prefers-reduced-motion:reduce){
  .has-chatbot .chat-fab::after{background:linear-gradient(90deg,#ff7cc8,#fff,#ff7cc8)}
  .has-chatbot .chat-fab.is-glow::after{animation:saj-glow-soft 1.6s ease-in-out 3}
  .bela-back{animation:none;transition:none}
}

/* Phones, chatbot on. Product page: the buy bar drops its Bela button, the "Chat with Bela" pill (shown on every page)
   sits just above the bar. Bag and checkout: no pill; their totals bar stays alone (the pill's display rule above is
   more specific than the older "no chat button here" rules, so they are repeated for it). */
.has-chatbot .sticky-buy .bela-btn{display:none!important}
@media (max-width:820px){
  .has-chatbot .sticky-buy{grid-template-columns:1fr 1fr}   /* the two buttons share the bar ("Sold out" spans both) */
  body[data-theme="theme-saj"].has-chatbot.has-mobile-total .chat-fab,
  body[data-theme="theme-saj"].has-chatbot:has([data-mobile-total]:not([hidden])) .chat-fab,
  body[data-theme="theme-saj"].has-chatbot:has([data-checkout-total]) .chat-fab{display:none}
}

/* Phones: the "continue chat" strip in the pill's look (gradient, Bela's photo with the green dot, white "Open").
   While it shows (body.has-chat-strip) it takes the pill's place; × brings the pill back. */
.chat-strip__avatar img{display:block;width:38px;height:38px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px var(--white)}
.chat-strip__online{position:absolute;right:-1px;bottom:-1px;width:11px;height:11px;border-radius:50%;background:#22c55e;border:2px solid var(--white)}
.has-chatbot .chat-strip{right:16px;border:0;background:linear-gradient(135deg,var(--rose),#761C81);
  box-shadow:0 0 0 3px var(--white),0 16px 32px -12px rgba(118,28,129,.75)}
.has-chatbot .chat-strip__avatar{position:relative;background:none}
.has-chatbot .chat-strip__open{color:var(--white)}
.has-chatbot .chat-strip__text b{color:var(--white)}
.has-chatbot .chat-strip__go{padding:6px 12px;border-radius:999px;background:var(--white);color:#761C81;font-size:12.5px}
.has-chatbot .chat-strip__close{color:rgba(255,255,255,.85)}
.has-chatbot.has-chat-strip .chat-fab{visibility:hidden;opacity:0;pointer-events:none}
.has-chatbot.has-chat-strip .bela-back{display:none}

/* Task D: customer account. Order details page, photo avatars, tab counts, the shop's note. Account pages only. */
[data-order-tabs] .chip small{margin-left:4px;font-size:12px;opacity:.7}
.side-nav__avatar,.me-card__avatar{overflow:hidden}
.avatar__img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.order-detail__title{font-size:22px;margin:0}
.order-detail__grid{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:20px;align-items:start}
.order-detail .timeline{margin-top:16px}
.order-items{list-style:none;margin:0;padding:0}
.order-items__row{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--divider)}
.order-items__img{width:56px;height:56px;border-radius:12px;background:var(--tint);display:grid;place-items:center;overflow:hidden}
.order-items__img img{max-width:100%;max-height:100%;mix-blend-mode:multiply}
.order-items__text{display:flex;flex-direction:column;gap:2px;min-width:0}
.order-items__text b{font-size:14px;line-height:1.35}
.order-items__text small{font-size:12.5px}
.order-items__total{font-size:14px;white-space:nowrap}
.order-totals{margin-top:12px}
.order-totals__note{margin:-4px 0 8px;font-size:12.5px}
.order-detail__facts{grid-template-columns:1fr;border-bottom:0;margin:0;padding:0}
.order-detail__actions{display:flex;flex-wrap:wrap;gap:8px}
.order-note{white-space:normal;line-height:1.6;overflow-wrap:anywhere}
@media (max-width:820px){
  .order-detail__grid{grid-template-columns:1fr}
  .order-detail__actions .btn{flex:1 1 100%;justify-content:center}
}

/* Task E: the order progress path (customer/order_path): done = white tick on green, current = highlighted, upcoming = grey,
   closed (cancelled / returned) = red; "On hold" is a tag on the step the order is held at. */
.timeline .is-upcoming .timeline__dot{background:var(--white);border-color:var(--divider)}
.timeline .is-upcoming b{color:var(--muted);font-weight:500}
.timeline .is-closed .timeline__dot{background:#C62828;border-color:#C62828}
.timeline .is-closed b{color:#C62828}
.timeline__tag{display:inline-block;margin:2px 0 0 6px;padding:1px 8px;border-radius:10px;background:#FFF4E0;color:var(--warning);font-size:12px;font-weight:600;vertical-align:middle}
.timeline__note--hold{color:var(--warning)}
.timeline__note--hold small{margin-right:6px}
.path-dots{list-style:none;margin:0 0 14px;padding:4px 0 2px;display:flex;overflow-x:auto;-webkit-overflow-scrolling:touch}
.path-dots__step{position:relative;flex:1 0 76px;min-width:76px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px}
.path-dots__step::before{content:"";position:absolute;top:11px;left:-50%;width:100%;height:2px;background:var(--divider);z-index:0}
.path-dots__step:first-child::before{display:none}
.path-dots__step.is-done::before,.path-dots__step.is-current::before,.path-dots__step.is-closed::before{background:var(--success)}
.path-dots__dot{position:relative;z-index:1;width:24px;height:24px;border-radius:50%;border:2px solid var(--dot);background:var(--white);display:grid;place-items:center;color:var(--white);font-size:12px}
.path-dots__step.is-done .path-dots__dot{background:var(--success);border-color:var(--success)}
.path-dots__step.is-current .path-dots__dot{border-color:var(--rose);box-shadow:0 0 0 4px var(--blush)}
.path-dots__step.is-closed .path-dots__dot{background:#C62828;border-color:#C62828}
.path-dots__label{font-size:12px;line-height:1.3;color:var(--ink)}
.path-dots__step.is-upcoming .path-dots__label{color:var(--muted)}
.path-dots__step.is-current .path-dots__label{font-weight:700}
.path-dots .timeline__tag{margin:0}
