/* ============================================================
   Shop Design Build, Shopify storefront UI
   (cart drawer, product grids, catalog, product page)
   ============================================================ */

/* ---------- header tools (search + cart) ---------- */
.sf-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sf-icon-btn {
  position: relative; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0;
  background: rgba(255,255,255,0.1); color: #fff;
  border: 1px solid rgba(255,255,255,0.3); border-radius: 50%; cursor: pointer;
  transition: background .18s ease;
}
.sf-icon-btn:hover, .sf-search-btn[aria-expanded="true"] { background: rgba(255,255,255,0.24); }
.sf-cart-btn__count {
  position: absolute; top: -4px; right: -4px; min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: 11px; background: var(--ember); color: var(--navy);
  font-size: 0.72rem; font-weight: 800; line-height: 21px; text-align: center;
}
.sf-tools + .menu-toggle { margin-left: 0; }
@media (max-width: 1180px) { .site-header .header-cta { margin-left: auto; } }
@media (max-width: 640px) { .sf-tools { margin-left: auto; gap: 8px; } .sf-icon-btn { width: 42px; height: 42px; } }

/* header search panel */
.sf-searchbar { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: 0 32px 48px -28px rgba(16,34,47,0.45); z-index: 95; }
.sf-searchbar .wrap { display: block !important; padding-top: 18px !important; padding-bottom: 18px !important; }
.sf-searchbar__form { display: flex; align-items: center; gap: 12px; }
.sf-searchbar__form > svg { color: var(--ink-soft); flex-shrink: 0; }
.sf-searchbar__form input { flex: 1; min-width: 0; font: inherit; font-size: 1.1rem; padding: 14px 4px; border: 0; border-bottom: 2px solid var(--line); background: transparent; outline: none; }
.sf-searchbar__form input:focus { border-bottom-color: var(--blue); }
.sf-searchbar__form .btn { padding: 13px 22px; }
@media (max-width: 640px) { .sf-searchbar__form .btn { display: none; } }

/* predictive suggestions */
.sf-suggest { margin-top: 12px; max-height: min(70vh, 560px); overflow-y: auto; }
.sf-shop-search .sf-suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; box-shadow: var(--shadow-block); color: var(--ink); text-align: left; }
.sf-suggest__label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin: 12px 0 8px; }
.sf-suggest__row { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-suggest__item { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: var(--r); font-size: 0.93rem; line-height: 1.3; }
.sf-suggest__item:hover { background: var(--ground); }
.sf-suggest__item small { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.sf-suggest__img { width: 52px; height: 52px; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; }
.sf-suggest__img img { width: 100%; height: 100%; object-fit: contain; }
.sf-suggest__all { margin-top: 12px; font-size: 0.93rem; }

/* ---------- cart drawer ---------- */
html.sf-lock { overflow: hidden; }
.sf-drawer { position: fixed; inset: 0; z-index: 400; visibility: hidden; }
.sf-drawer.is-open { visibility: visible; }
.sf-drawer__scrim { position: absolute; inset: 0; background: rgba(16,34,47,0.5); opacity: 0; transition: opacity .2s ease; }
.sf-drawer.is-open .sf-drawer__scrim { opacity: 1; }
.sf-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .25s ease;
  box-shadow: -20px 0 50px -20px rgba(16,34,47,0.45);
}
.sf-drawer.is-open .sf-drawer__panel { transform: none; }
.sf-drawer.is-busy .sf-drawer__lines { opacity: .5; pointer-events: none; }
.sf-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.sf-drawer__head h3 { font-size: 1.4rem; }
.sf-x { background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--ink-soft); padding: 0 4px; }
.sf-drawer__lines { flex: 1; overflow-y: auto; padding: 8px 24px; transition: opacity .15s ease; }
.sf-drawer__foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.sf-drawer__foot:empty { display: none; }
.sf-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); align-items: start; }
.sf-line__img { width: 72px; height: 72px; background: var(--ground); border-radius: var(--r); overflow: hidden; }
.sf-line__img img { width: 100%; height: 100%; object-fit: contain; }
.sf-line__title { display: block; font-weight: 600; font-size: 0.95rem; line-height: 1.35; }
.sf-line__title:hover { color: var(--blue); }
.sf-line__variant { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-top: 2px; }
.sf-line__price { font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.sf-line__remove { margin-left: 10px; background: none !important; border: 0 !important; width: auto !important; font-size: 0.82rem; color: var(--ink-soft); text-decoration: underline; cursor: pointer; }
.sf-subtotal { display: flex; justify-content: space-between; font-size: 1.1rem; margin-bottom: 8px; }
.sf-note { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 16px; }

.sf-qty { display: inline-flex; align-items: center; gap: 0; margin-top: 10px; }
.sf-qty button { width: 30px; height: 30px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 1rem; color: var(--ink); }
.sf-qty button:first-child { border-radius: var(--r) 0 0 var(--r); }
.sf-qty > span { min-width: 34px; height: 30px; line-height: 28px; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.sf-qty > span + button { border-radius: 0 var(--r) var(--r) 0; }
.sf-qty--lg { margin: 0; }
.sf-qty--lg button { width: 44px; height: 56px; font-size: 1.2rem; }
.sf-qty--lg input { width: 56px; height: 56px; border: 1px solid var(--line); border-left: 0; border-right: 0; text-align: center; font: inherit; font-weight: 600; -moz-appearance: textfield; }
.sf-qty--lg input::-webkit-inner-spin-button { -webkit-appearance: none; }
.sf-qty--lg button:last-child { border-radius: 0 var(--r) var(--r) 0; }

.sf-empty { color: var(--ink-soft); padding: 24px 0; }
.sf-empty h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--ink); margin-bottom: 12px; }

/* ---------- product cards / grids ---------- */
.sf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
@media (max-width: 1024px) { .sf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .sf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.sf-card {
  display: flex; flex-direction: column; background: var(--paper);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-block);
  transition: transform .18s ease, box-shadow .18s ease;
}
a.sf-card:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(22,33,44,0.04), 0 24px 44px -22px rgba(16,34,47,0.45); }
.sf-card__img { position: relative; aspect-ratio: 1 / 1; background: #fff; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line-soft); }
.sf-card__img img { width: 100%; height: 100%; object-fit: contain; padding: 10%; }
.sf-card__noimg { font-size: 0.85rem; color: var(--ink-soft); }
.sf-card__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 18px; flex: 1; }
.sf-card__vendor { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.sf-card__title { font-weight: 600; font-size: 0.95rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sf-card__price { margin-top: auto; padding-top: 8px; font-weight: 800; font-family: var(--font-display); font-size: 1.05rem; }
.sf-card__price s, .sf-pdp__price s { color: var(--ink-soft); font-weight: 500; font-size: 0.85em; margin-left: 6px; }
.sf-badge { position: absolute; top: 10px; left: 10px; background: var(--ember); color: var(--navy); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 9px; border-radius: var(--r); }
.sf-badge--muted { background: var(--ground-dim); color: var(--ink-soft); }

.sf-card--skel .sf-card__img { background: linear-gradient(90deg, var(--ground) 0%, var(--ground-dim) 50%, var(--ground) 100%); background-size: 200% 100%; animation: sf-shimmer 1.2s linear infinite; }
.sf-card--skel .sf-card__body span { display: block; height: 12px; border-radius: 3px; background: var(--ground); }
.sf-card--skel .sf-card__body span + span { width: 60%; }
@keyframes sf-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sf-card--skel .sf-card__img { animation: none; } a.sf-card:hover { transform: none; } }

.sf-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.sf-section-head .section-head { margin-bottom: 0; }

/* ---------- catalog ---------- */
.sf-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.sf-search { flex: 1 1 320px; display: flex; min-width: 0; max-width: 100%; }
.sf-search input {
  flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: 15px 18px;
  border: 1px solid var(--line); border-right: 0; border-radius: var(--r) 0 0 var(--r); background: var(--paper);
}
.sf-search .btn { border-radius: 0 var(--r) var(--r) 0; padding: 15px 24px; }
.sf-toolbar select { font: inherit; font-size: 0.95rem; padding: 15px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.sf-check { display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; font-weight: 500; white-space: nowrap; cursor: pointer; }
.sf-check input { width: 18px; height: 18px; accent-color: var(--blue); }
.sf-status { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 18px; min-height: 1.5em; }
.sf-facets { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.sf-facet { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sf-facet__label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-right: 6px; }
.sf-chip { font: inherit; font-size: 0.88rem; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.sf-chip small { color: var(--ink-soft); margin-left: 3px; }
.sf-chip:hover { border-color: var(--blue); }
.sf-chip.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }
.sf-chip.is-on small { color: rgba(255,255,255,0.75); }
.sf-more { display: flex; margin: 36px auto 0; }

/* ---------- product page ---------- */
.sf-pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .sf-pdp { grid-template-columns: minmax(0, 1fr); } }
.sf-pdp__media { position: sticky; top: 110px; min-width: 0; }
@media (max-width: 900px) { .sf-pdp__media { position: static; } }
.sf-pdp__main { aspect-ratio: 1 / 1; background: var(--ground); isolation: isolate; border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sf-pdp__main img { width: 100%; height: 100%; object-fit: contain; padding: 4%; mix-blend-mode: multiply; }
.sf-pdp__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.sf-pdp__thumbs button { flex: 0 0 72px; height: 72px; padding: 4px; background: var(--ground); isolation: isolate; border: 2px solid var(--line); border-radius: var(--r); cursor: pointer; }
.sf-pdp__thumbs button img { mix-blend-mode: multiply; }
.sf-pdp__thumbs button.is-on { border-color: var(--blue); }
.sf-pdp__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.sf-pdp__title { font-size: clamp(1.8rem, 3.2vw, 2.7rem); margin: 10px 0 16px; }
.sf-pdp__price { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; margin-bottom: 24px; }
.sf-opt { border: 0; padding: 0; margin: 0 0 20px; }
.sf-opt legend { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.sf-opt button { font: inherit; font-size: 0.92rem; padding: 10px 16px; margin: 0 8px 8px 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); cursor: pointer; color: var(--ink); }
.sf-opt button.is-on { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); color: var(--blue); font-weight: 600; }
.sf-buy { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 14px; }
.sf-buy .sf-add { flex: 1 1 200px; justify-content: center; }
.sf-add:disabled { opacity: .55; cursor: not-allowed; }
.sf-pdp__meta { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- stock / ship ETA / backorder (same rules as buildersfixtures.com) ---------- */
.sf-highlights { margin: 18px 0 4px; }
.sf-highlights ul { margin: 6px 0 0; padding-left: 1.2em; font-size: 0.95rem; }
.sf-highlights li + li { margin-top: 4px; }
.sf-avail { margin: 16px 0 4px; font-size: 0.95rem; line-height: 1.5; }
.sf-avail strong { font-weight: 700; }
.sf-avail.is-in strong { color: #2f7a3b; }
.sf-avail.is-back strong { color: #8F5214; }
.sf-avail__qty { color: #2f7a3b; font-weight: 600; }
.sf-avail__note { color: var(--ink-soft); font-size: 0.88rem; }
.sf-avail a { color: var(--blue); font-weight: 600; }
.sf-countdown { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; padding: 10px 12px; background: #eaf6ec; border: 1px solid #b9dfc0; border-radius: var(--r); color: #1f5f2c; font-size: 0.9rem; line-height: 1.4; }
.sf-countdown svg { flex: none; margin-top: 1px; }
.sf-countdown__time { font-variant-numeric: tabular-nums; }
.sf-countdown__note { display: block; font-size: 0.78rem; color: #3d6b47; }
.sf-ship { display: flex; margin: 12px 0 4px; border: 2px solid var(--line); border-radius: var(--r); background: var(--paper); }
.sf-ship__panel { position: relative; flex: 1; padding: 12px 16px; }
.sf-ship__panel + .sf-ship__panel { border-left: 2px solid var(--line); }
.sf-ship__tag { position: absolute; top: 10px; right: 12px; background: var(--ember-dark); color: #fff; padding: 2px 8px; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.sf-ship__sub { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 6px; }
.sf-ship__title { font-weight: 700; font-size: 0.9rem; }
.sf-ship__range { font-weight: 600; font-size: 0.85rem; }
.sf-ship__qty, .sf-ship__free { font-size: 0.78rem; color: #2f7a3b; margin-top: 3px; }
.sf-ship__free { font-weight: 700; }
@media (max-width: 420px) { .sf-ship { flex-direction: column; } .sf-ship__panel + .sf-ship__panel { border-left: 0; border-top: 2px solid var(--line); } }
.sf-card__stock { display: block; margin-top: 4px; font-size: 0.78rem; font-weight: 600; color: #2f7a3b; }
.sf-card__stock.is-back { color: #8F5214; }
.sf-details { margin-top: 24px; border-top: 1px solid var(--line); }
.sf-details details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.sf-details summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style-position: outside; }
.sf-details ul { padding-left: 1.2em; margin: 0 0 10px; font-size: 0.93rem; }
.sf-details li + li { margin-top: 4px; }
.sf-details .link-arrow { display: inline-block; margin-bottom: 14px; font-size: 0.9rem; }
.sf-specs { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin-bottom: 12px; }
.sf-specs th, .sf-specs td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.sf-specs th { width: 42%; font-weight: 600; color: var(--ink-soft); }
.sf-docs__label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin: 8px 0 6px; }
.sf-docs { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.sf-docs a { color: var(--blue); font-weight: 600; font-size: 0.92rem; }
.sf-pdp__install { background: var(--sky); border-radius: var(--r-lg); padding: 18px 20px; font-size: 0.95rem; margin: 20px 0 28px; }
.sf-pdp__install a { color: var(--blue); font-weight: 700; }
.sf-pdp__desc { font-size: 0.98rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 24px; overflow-wrap: anywhere; }
.sf-pdp__desc img { height: auto; }
.sf-pdp__desc table { width: 100%; border-collapse: collapse; font-size: 0.9rem; display: block; overflow-x: auto; }
.sf-pdp__desc td, .sf-pdp__desc th { border-bottom: 1px solid var(--line-soft); padding: 8px 10px 8px 0; text-align: left; }
.sf-pdp__desc h1, .sf-pdp__desc h2, .sf-pdp__desc h3, .sf-pdp__desc h4, .sf-pdp__desc h5, .sf-pdp__desc h6 { font-size: 1.15rem; line-height: 1.3; letter-spacing: 0; color: var(--ink); margin: 1.4em 0 .6em; max-width: none; }
.sf-pdp__desc ul { padding-left: 1.2em; }
.sf-page-crumb { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 28px; }
.sf-page-crumb a:hover { color: var(--blue); }

/* ---------- shop page ---------- */
.sf-shop-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.sf-shop-hero .page-hero__bg { position: absolute; inset: 0; z-index: -1; }
.sf-shop-hero .page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.sf-shop-hero .wrap { padding-top: clamp(44px, 6vw, 84px); padding-bottom: clamp(44px, 6vw, 84px); }
.sf-shop-hero h1 { max-width: 18ch; }
.sf-shop-hero p { color: rgba(255,255,255,0.82); font-size: 1.15rem; max-width: 56ch; margin-top: 1rem; }
.sf-shop-search { position: relative; max-width: 760px; margin-top: 28px; }
.sf-shop-search form { display: flex; background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }
.sf-shop-search input { flex: 1; min-width: 0; border: 0; font: inherit; font-size: 1.1rem; padding: 20px 22px; color: var(--ink); outline: none; }
.sf-shop-search .btn { border-radius: 0; padding: 0 30px; }
@media (max-width: 640px) { .sf-shop-search input { padding: 16px 14px; } .sf-shop-search .btn { padding: 0 18px; } }
.sf-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sf-quick a { font-size: 0.88rem; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.35); color: #fff; }
.sf-quick a:hover { background: #fff; color: var(--navy); }

.sf-depts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
@media (max-width: 900px) { .sf-depts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sf-dept { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-block); transition: transform .18s ease; }
.sf-dept:hover { transform: translateY(-3px); }
.sf-dept__img { aspect-ratio: 16 / 9; background: #fff; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.sf-dept__img img { width: 100%; height: 100%; object-fit: cover; }
.sf-dept__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1rem, 1.8vw, 1.45rem); letter-spacing: -0.02em; padding: 16px 18px 4px; }
.sf-dept__subs { font-size: 0.86rem; color: var(--ink-soft); padding: 0 18px 18px; }
@media (max-width: 560px) { .sf-dept__subs { display: none; } }
[data-sf-shop].is-browsing .sf-depts-wrap { display: none; }

.sf-catalog-top { scroll-margin-top: 110px; }
.sf-catalog-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.sf-catalog-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.sf-catalog-head [data-sf-desc] { color: var(--ink-soft); max-width: 70ch; margin: 10px 0 0; font-size: 1rem; }
.sf-subs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: thin; }
.sf-subs .sf-chip { white-space: nowrap; flex-shrink: 0; }
.sf-facets details.sf-facet { display: block; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.sf-facets summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sf-facets summary::-webkit-details-marker { display: none; }
.sf-facets summary::after { content: '+'; font-size: 1rem; color: var(--ink-soft); }
.sf-facets details[open] summary::after { content: "\2212"; }
.sf-facet__vals { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-chip--more { display: none; }
.sf-facet__vals.is-expanded .sf-chip--more { display: inline-block; }
.sf-chip--toggle { background: transparent; border-style: dashed; }
.sf-clear { align-self: flex-start; background: none; border: 0; padding: 0; font: inherit; font-size: 0.9rem; color: var(--blue); text-decoration: underline; cursor: pointer; }

/* while browsing a collection or search, collapse the shop hero to just the search box */
[data-sf-shop].is-browsing .sf-shop-hero .wrap { padding-top: 22px; padding-bottom: 22px; }
[data-sf-shop].is-browsing .sf-shop-hero h1,
[data-sf-shop].is-browsing .sf-shop-hero .wrap > p,
[data-sf-shop].is-browsing .sf-quick { display: none; }
[data-sf-shop].is-browsing .sf-shop-search { margin-top: 0; }

/* ---------- finish / size swatches on cards + "Also available in" (same as buildersfixtures.com) ---------- */
.sf-swatches { position: relative; display: flex; align-items: center; gap: 6px; min-height: 28px; margin-bottom: 6px; }
.sf-swatch { flex: none; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 4px; background: #fff center / contain no-repeat; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.sf-swatch.is-color { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15); }
.sf-swatch:hover { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.sf-swatch-more { font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); }
@media (max-width: 640px) { .sf-swatch { width: 24px; height: 24px; } .sf-swatches { gap: 4px; min-height: 24px; } }
.sf-siblings { margin: 16px 0 6px; }
.sf-siblings__label { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 8px; }
.sf-siblings__label span { color: var(--ink-soft); font-weight: 600; text-transform: none; letter-spacing: 0; }
.sf-siblings__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.sf-siblings__item { display: grid; justify-items: center; gap: 4px; padding: 8px 6px; height: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); text-align: center; }
.sf-siblings__item:hover { border-color: var(--blue); }
.sf-siblings__item.is-current { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.sf-siblings__item img, .sf-siblings__noimg { width: 64px; height: 64px; object-fit: contain; background: #fff; }
.sf-siblings__name { font-size: 0.75rem; font-weight: 700; line-height: 1.25; }
.sf-siblings__price { font-size: 0.75rem; color: var(--ink-soft); }


/* ---------- recently viewed + compare ---------- */
.sf-compare-toggle { border: 0; background: none; padding: 4px 0; font: inherit; font-size: 0.9rem; font-weight: 700; color: var(--blue); cursor: pointer; }
.sf-compare-toggle.is-on { color: #2f7a3b; }
.sf-compare-tray { position: fixed; left: 16px; bottom: 16px; z-index: 900; display: flex; align-items: center; gap: 4px; background: var(--ink); color: #fff; border-radius: 999px; padding: 6px 6px 6px 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); font-weight: 700; font-size: 0.92rem; }
.sf-compare-tray a { color: #fff; }
.sf-compare-tray button { border: 0; background: rgba(255,255,255,0.15); color: #fff; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; line-height: 1; }
@media (max-width: 940px) { .sf-compare-tray { bottom: 66px; } }
#sf-recent .sf-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
#sf-recent h2 { margin: 0; font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
.sf-compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-block); }
.sf-compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.92rem; }
.sf-compare th, .sf-compare td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.sf-compare tbody th { width: 150px; color: var(--ink-soft); font-weight: 600; background: var(--ground); position: sticky; left: 0; }
.sf-compare thead th { vertical-align: bottom; }
.sf-compare__prod { display: grid; gap: 8px; font-weight: 700; line-height: 1.3; }
.sf-compare__prod img { width: 100%; max-width: 180px; aspect-ratio: 1; object-fit: contain; background: #fff; }
.sf-compare__note { color: var(--ink-soft); font-size: 0.88rem; margin-top: 14px; }

.sf-rating { display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 2px; font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.sf-rating__stars { color: #e0a100; letter-spacing: 1px; font-size: 1rem; }
.sf-rating__count { color: var(--ink-soft); font-weight: 500; }


/* ---------- showroom clearance special offer (same flow as poshhaus.com) ---------- */
.sf-offer-line { margin: 12px 0 4px; padding: 10px 12px; border: 2px dashed #F58426; background: #fffbe6; border-radius: 6px; font-size: 0.9rem; }
.sf-offer-line a { color: var(--blue); font-weight: 700; }
.sf-offer { position: fixed; right: 16px; bottom: 16px; z-index: 1100; width: min(420px, calc(100vw - 32px)); max-height: 80vh; overflow: auto;
  border: 2px dashed #F58426; padding: 16px 20px; background: #fffbe6; border-radius: 6px; box-shadow: 0 10px 30px rgba(245,132,38,0.35); color: #333;
  font-size: 0.9rem; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s ease, transform .3s ease; }
.sf-offer.is-on { opacity: 1; transform: none; pointer-events: auto; }
.sf-offer__title { display: block; font-size: 1.05rem; margin: 0 24px 8px 0; color: #b45309; }
.sf-offer p { margin: 0 0 8px; }
.sf-offer small { display: block; color: #555; line-height: 1.45; }
.sf-offer__x { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: #555; }
@media (max-width: 940px) { .sf-offer { bottom: 70px; } }
.sf-quick--light { margin: 0 0 18px; }
.sf-quick--light a { color: var(--ink); border-color: var(--line); background: var(--paper); }
.sf-quick--light a:hover { background: var(--ink); color: #fff; }

/* ---------- free-shipping progress in the cart ---------- */
.sf-freeship { margin: 0 0 12px; padding: 10px 12px; background: var(--sky); border-radius: 8px; font-size: 0.86rem; }
.sf-freeship p { margin: 0 0 6px; }
.sf-freeship__bar { display: block; height: 6px; background: #fff; border-radius: 3px; overflow: hidden; }
.sf-freeship__bar i { display: block; height: 100%; background: var(--ok); border-radius: 3px; transition: width .4s ease; }

/* ---------- sticky add to cart (phones) ---------- */
.sf-sticky-buy { display: none; }
@media (max-width: 760px) {
  .sf-sticky-buy { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 56px; z-index: 900; padding: 10px 16px;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 20px rgba(16,34,47,0.12); transform: translateY(140%); transition: transform .25s ease; }
  .sf-sticky-buy.is-on { transform: none; }
  .sf-sticky-buy__info { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 0.82rem; }
  .sf-sticky-buy__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-soft); }
  .sf-sticky-buy__info b { font-size: 1rem; color: var(--ink); }
  .sf-sticky-buy__info s { font-weight: 400; color: var(--ink-soft); font-size: 0.8rem; }
  .sf-sticky-buy .btn { flex: none; padding: 10px 18px; }
  html.has-sticky-buy .sf-offer { bottom: 140px; }
}

/* ---------- PDP polish ---------- */
.sf-pdp__title { font-size: clamp(1.45rem, 2.1vw, 1.95rem); line-height: 1.2; margin: 8px 0 10px; }
.sf-pdp__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 18px; }
.sf-save { font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; color: #fff; background: #B42318; padding: 3px 8px; border-radius: 4px; }
.sf-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 4px; padding: 0; font-size: 0.84rem; color: var(--ink-soft); }
.sf-trust li { position: relative; padding-left: 18px; }
.sf-trust li::before { content: ''; position: absolute; left: 0; top: 0.35em; width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.sf-pdp__thumbs { scrollbar-width: thin; }
.sf-pdp__thumbs::-webkit-scrollbar { height: 4px; }
.sf-pdp__thumbs::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }

/* ---------- catalog: filter sidebar on desktop ---------- */
.sf-subs { scrollbar-width: none; }
.sf-subs::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) {
  .sf-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
  .sf-layout:has(.sf-facets[hidden]) { grid-template-columns: minmax(0, 1fr); }
  .sf-side { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
  .sf-side .sf-facets { margin-bottom: 0; }
  .sf-side .sf-facets::before { content: 'Filter by'; display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; margin-bottom: 4px; }
  .sf-layout .sf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sf-layout:has(.sf-facets[hidden]) .sf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1400px) { .sf-layout .sf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* sidebar facets read as a checklist on desktop */
@media (min-width: 1024px) {
  .sf-side .sf-facet__vals { flex-direction: column; flex-wrap: nowrap; gap: 0; }
  .sf-side .sf-facet__vals .sf-chip { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; border-radius: 6px;
    background: transparent; padding: 6px 6px; font-size: 0.9rem; line-height: 1.3; }
  .sf-side .sf-facet__vals .sf-chip::before { content: ''; flex: 0 0 16px; height: 16px; border: 1.5px solid var(--ink-soft); border-radius: 4px; background: #fff; }
  .sf-side .sf-facet__vals .sf-chip:hover { background: var(--sky); }
  .sf-side .sf-facet__vals .sf-chip.is-on { background: transparent; color: var(--ink); font-weight: 700; }
  .sf-side .sf-facet__vals .sf-chip.is-on::before { background: var(--blue); border-color: var(--blue); box-shadow: inset 0 0 0 3px #fff; }
  .sf-side .sf-facet__vals .sf-chip small { margin-left: auto; color: var(--ink-soft); font-weight: 400; }
  .sf-side .sf-facet__vals .sf-chip.is-on small { color: var(--ink-soft); }
  .sf-side .sf-facet__vals .sf-chip--toggle { border: 0; color: var(--blue); font-weight: 700; }
  .sf-side .sf-facet__vals .sf-chip--toggle::before { display: none; }
}

/* ---------- product reviews (Judge.me, rendered by product.php) ---------- */
.sf-reviews { background: var(--paper); }
.sf-reviews .sf-section-head { align-items: baseline; gap: 14px; margin-top: 8px; }
.sf-reviews .sf-section-head h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.sf-rev__summary { margin: 0; color: var(--ink-soft); }
.sf-rev__summary b { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); }
.sf-rev__note { color: var(--ink-soft); font-size: 0.88rem; margin: -6px 0 14px; }
.sf-revs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 28px; }
.sf-rev { border: 1px solid var(--line-soft); border-radius: 12px; padding: 18px 18px 14px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.sf-rev__stars { margin: 0; color: #e0a100; letter-spacing: 2px; font-size: 1rem; }
.sf-rev__title { margin: 0; font-size: 1rem; font-family: var(--font-display); }
.sf-rev__body { margin: 0; color: var(--ink); font-size: 0.93rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.sf-rev__product { margin: 2px 0 0; font-size: 0.82rem; color: var(--ink-soft); }
.sf-rev__product a { color: var(--blue); font-weight: 600; }
.sf-rev__meta { margin: auto 0 0; padding-top: 8px; font-size: 0.8rem; color: var(--ink-soft); }
a.sf-rating { text-decoration: none; }
a.sf-rating:hover .sf-rating__count { text-decoration: underline; }
.sf-pdp__tools { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.sf-mb-add { font: inherit; font-size: 0.9rem; font-weight: 700; color: var(--blue); background: none; border: 0; padding: 6px 0; cursor: pointer; }
.sf-mb-add:hover { text-decoration: underline; }
.sf-mb-add.is-added { color: var(--ok); cursor: default; text-decoration: none; }
.sf-mb-add a { color: var(--blue); }

.sf-pdp__desc img, .sf-pdp__desc video, .sf-pdp__desc table { max-width: 100%; }
.sf-pdp__desc iframe { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 10px; margin: 12px 0; }
.sf-pdp__desc * { max-width: 100%; box-sizing: border-box; }

/* ---------- brand logo + about the brand ---------- */
.sf-pdp__brand { display: inline-flex; align-items: center; gap: 12px; min-height: 40px; margin-bottom: 6px; text-decoration: none; color: var(--ink); }
.sf-pdp__brand img { max-height: 40px; max-width: 140px; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.sf-pdp__brand span { font-weight: 800; font-size: 0.95rem; letter-spacing: 0.02em; padding-left: 12px; border-left: 1px solid var(--line); }
.sf-pdp__brand:hover span { color: var(--blue); text-decoration: underline; }
.sf-brand__card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: center; background: #fff; border-radius: 16px; padding: 24px 28px; box-shadow: var(--shadow-block); }
.sf-brand__logo { display: grid; place-items: center; height: 140px; background: var(--ground); border-radius: 12px; padding: 18px; }
.sf-brand__logo img { max-width: 100%; max-height: 100px; object-fit: contain; }
.sf-brand__kicker { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ember-dark); margin: 0 0 4px; }
.sf-brand__body h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin: 0 0 8px; }
.sf-brand__body p { color: var(--ink-soft); margin: 0 0 14px; max-width: 75ch; }
@media (max-width: 700px) { .sf-brand__card { grid-template-columns: 1fr; padding: 18px; } .sf-brand__logo { height: 110px; } }

/* ---------- product photo zoom + lightbox ---------- */
.sf-zoomable { overflow: hidden; cursor: zoom-in; }
.sf-zoomable img { transition: transform .25s ease; }
.sf-zoomable.is-zoom img { transform: scale(2); }
.sf-lb { position: fixed; inset: 0; z-index: 4000; background: rgba(10,18,25,0.94); display: grid; place-items: center; }
.sf-lb img { max-width: 92vw; max-height: 86vh; object-fit: contain; background: #fff; border-radius: 10px; }
.sf-lb__x { position: absolute; top: 14px; right: 18px; font-size: 2.2rem; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; }
.sf-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.92); font-size: 2rem; line-height: 1; cursor: pointer; padding-bottom: 4px; }
.sf-lb__prev { left: 18px; } .sf-lb__next { right: 18px; }
.sf-lb__count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,0.8); font-weight: 700; margin: 0; }
#sf-also .sf-rail .sf-grid { grid-auto-columns: calc((100% - 4 * 18px) / 5); }
@media (max-width: 900px) { #sf-also .sf-rail .sf-grid { grid-auto-columns: calc((100% - 14px) / 2.3); } }

/* mobile: small labels stay readable */
@media (max-width: 760px) {
  .sf-ship__tag, .sf-badge, .sf-card__vendor { font-size: 12px; }
}
@media (max-width: 760px) {
  .sf-facet__label { min-height: 40px; display: flex; align-items: center; font-size: 13px; }
  .sf-facet__label input { width: 20px; height: 20px; }
}

/* "See it in real rooms" on product pages */
.sf-rooms__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sf-rooms__grid--1 { grid-template-columns: minmax(0, 520px); }
.sf-rooms__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sf-rooms__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sf-rooms__cell { display: block; border-radius: 14px; overflow: hidden; background: #E6E3DC; aspect-ratio: 4 / 3; }
.sf-rooms__cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.sf-rooms__cell:hover img { transform: scale(1.04); }
.sf-rooms__note { margin: 10px 2px 0; font-size: 0.86rem; color: var(--ink-soft); }
@media (max-width: 760px) { .sf-rooms__grid, .sf-rooms__grid--3, .sf-rooms__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.sf-rooms__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.sf-rooms__row .sf-rooms__cell { scroll-snap-align: start; }
@media (max-width: 760px) { .sf-rooms__row { grid-auto-columns: 70%; gap: 8px; } }

/* header account button: a small green dot once signed in; hidden only on the very narrowest phones */
.sf-acct-btn { position: relative; }
.sf-acct-btn.is-in::after { content: ""; position: absolute; right: 7px; bottom: 7px; width: 9px; height: 9px; border-radius: 50%; background: #7FE3AF; box-shadow: 0 0 0 2px var(--blue); }
@media (max-width: 349px) { .sf-acct-btn { display: none; } }
