/* DyeLot Storefront: neutral styles that sit inside any theme. Accent colour comes from Settings. */
:root { --dlsf-accent: #5243D7; --dlsf-radius: 14px; --dlsf-line: rgba(0,0,0,.09); --dlsf-muted: rgba(0,0,0,.58); --dlsf-card: #fff; }
.dlsf-wrap { max-width: 1240px; margin: 0 auto; padding: var(--dlsf-content-top, 28px) 20px var(--dlsf-content-bottom, 56px); box-sizing: border-box; }
.dlsf-wrap *, .dlsf-block * { box-sizing: border-box; }
.dlsf-page-title { margin: 6px 0 18px; }
.dlsf-h2 { margin: 36px 0 14px; }
.dlsf-intro { max-width: 70ch; color: var(--dlsf-muted); margin-bottom: 18px; }
.dlsf-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--dlsf-muted); margin-bottom: 6px; }
.dlsf-crumbs a { color: inherit; text-decoration: none; }
.dlsf-crumbs a:hover { color: var(--dlsf-accent); text-decoration: underline; }
.dlsf-notice { padding: 12px 16px; border-radius: 10px; background: #FFF4E5; color: #7A4A00; margin: 12px 0; }
.dlsf-ok { padding: 14px 18px; border-radius: 10px; background: #E9F7EF; color: #1D6B3F; font-weight: 600; }
.dlsf-empty { color: var(--dlsf-muted); }

/* Search */
.dlsf-search { display: flex; gap: 8px; max-width: 560px; margin: 4px 0 22px; }
.dlsf-search input { flex: 1; padding: 12px 14px; border: 1px solid var(--dlsf-line); border-radius: 10px; font-size: 1rem; }
.dlsf-search button, .dlsf-btn { background: var(--dlsf-accent); color: #fff; border: 0; border-radius: 10px; padding: 12px 20px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; }
.dlsf-btn:hover, .dlsf-search button:hover { filter: brightness(1.08); color: #fff; }
.dlsf-btn-ghost { background: transparent; color: var(--dlsf-accent); box-shadow: inset 0 0 0 2px var(--dlsf-accent); }
.dlsf-btn-ghost:hover { color: var(--dlsf-accent); background: color-mix(in srgb, var(--dlsf-accent) 8%, transparent); }

/* Category tiles */
.dlsf-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin: 8px 0 24px; }
.dlsf-cat { position: relative; display: block; border-radius: var(--dlsf-radius); overflow: hidden; background: var(--dlsf-card); border: 1px solid var(--dlsf-line); text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.dlsf-cat:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgba(0,0,0,.35); }
.dlsf-cat-img { display: block; width: 100%; aspect-ratio: var(--dlsf-cat-ratio, 4 / 3); object-fit: cover; }
.dlsf-cat-ph { display: flex; align-items: center; justify-content: center; font-size: 2.6rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--dlsf-accent), color-mix(in srgb, var(--dlsf-accent) 55%, #000)); }
.dlsf-cat-body { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 12px 14px; }
.dlsf-cat-name { font-weight: 700; }
.dlsf-cat-count { font-size: .8rem; color: var(--dlsf-muted); white-space: nowrap; }

/* Product grid */
.dlsf-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 10px 0 14px; color: var(--dlsf-muted); font-size: .92rem; }
.dlsf-sort { display: flex; gap: 12px; align-items: center; }
.dlsf-sort a { color: inherit; }
.dlsf-grid { display: grid; grid-template-columns: repeat(var(--dlsf-cols, 4), minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1024px) { .dlsf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .dlsf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.dlsf-card { display: flex; flex-direction: column; border-radius: var(--dlsf-radius); overflow: hidden; background: var(--dlsf-card); border: 1px solid var(--dlsf-line); text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
a.dlsf-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgba(0,0,0,.35); }
.dlsf-card-media { position: relative; display: block; background: #F3F1F6; }
.dlsf-card-img, .dlsf-noimg { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.dlsf-noimg { background: repeating-linear-gradient(45deg, #EEE 0 10px, #F6F6F6 10px 20px); }
.dlsf-badge { position: absolute; top: 10px; left: 10px; background: var(--dlsf-accent); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.dlsf-badge-alt { background: #D99824; color: #241039; }
.dlsf-card-body { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; }
.dlsf-brand { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--dlsf-muted); }
.dlsf-name { font-weight: 700; line-height: 1.25; }
.dlsf-colour { font-size: .9rem; color: var(--dlsf-muted); }
.dlsf-size { font-size: .9rem; }
.dlsf-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 6px; }
.dlsf-price { font-weight: 800; color: var(--dlsf-accent); }
.dlsf-price-call { font-weight: 600; color: var(--dlsf-muted); }
.dlsf-unit { font-weight: 500; font-size: .85em; color: var(--dlsf-muted); }
.dlsf-stock { font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.dlsf-stock-in { background: #E9F7EF; color: #1D6B3F; }
.dlsf-stock-low { background: #FFF4E5; color: #8A5A0B; }
.dlsf-stock-order { background: #F0EEF4; color: #5C5470; }
.dlsf-link { margin-top: 6px; font-size: .88rem; color: var(--dlsf-accent); font-weight: 600; }

/* Pagination */
.dlsf-pages { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 26px 0 4px; }
.dlsf-page { min-width: 40px; text-align: center; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--dlsf-line); text-decoration: none; color: inherit; }
.dlsf-page.is-current { background: var(--dlsf-accent); color: #fff; border-color: var(--dlsf-accent); }
.dlsf-gap { padding: 8px 4px; }
.dlsf-more { margin-top: 26px; }

/* Product page */
.dlsf-product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; margin-top: 10px; }
@media (max-width: 860px) { .dlsf-product { grid-template-columns: 1fr; gap: 20px; } }
.dlsf-gallery-main { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--dlsf-radius); background: #F3F1F6; }
.dlsf-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dlsf-thumb { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; width: 74px; height: 74px; background: none; cursor: pointer; }
.dlsf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dlsf-thumb.is-on { border-color: var(--dlsf-accent); }
.dlsf-title { margin: 2px 0 4px; line-height: 1.15; }
.dlsf-colour-line { color: var(--dlsf-muted); margin: 0 0 8px; }
.dlsf-meta-lg { font-size: 1.25rem; margin: 10px 0 18px; }
.dlsf-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--dlsf-muted); font-weight: 700; margin-bottom: 8px; }
.dlsf-colours { margin: 6px 0 20px; }
.dlsf-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.dlsf-swatch { width: 78px; text-decoration: none; color: inherit; font-size: .74rem; text-align: center; }
.dlsf-swatch img, .dlsf-swatch .dlsf-noimg { width: 78px; height: 78px; border-radius: 10px; object-fit: cover; border: 1px solid var(--dlsf-line); }
.dlsf-swatch:hover img { outline: 2px solid var(--dlsf-accent); }
.dlsf-calc { padding: 16px; border-radius: var(--dlsf-radius); background: color-mix(in srgb, var(--dlsf-accent) 6%, #fff); border: 1px solid color-mix(in srgb, var(--dlsf-accent) 20%, transparent); margin: 6px 0 18px; }
.dlsf-calc-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.dlsf-calc input, .dlsf-calc select { padding: 8px 10px; border: 1px solid var(--dlsf-line); border-radius: 8px; width: 110px; margin-left: 6px; }
.dlsf-calc-out { margin: 10px 0 0; font-weight: 700; min-height: 1.4em; }
.dlsf-desc { margin-top: 22px; line-height: 1.6; }
.dlsf-specs { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--dlsf-line); }
.dlsf-specs dt { color: var(--dlsf-muted); }
.dlsf-specs dd { margin: 0; font-weight: 600; }

/* Quote form */
.dlsf-quote { margin-top: 44px; padding: 26px; border-radius: var(--dlsf-radius); background: var(--dlsf-card); border: 1px solid var(--dlsf-line); box-shadow: 0 16px 40px -28px rgba(0,0,0,.4); scroll-margin-top: 90px; }
.dlsf-quote h2 { margin-top: 0; }
.dlsf-quote-intro, .dlsf-small { color: var(--dlsf-muted); }
.dlsf-small { font-size: .85rem; }
.dlsf-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 14px 0; }
.dlsf-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; }
.dlsf-form input, .dlsf-form textarea { padding: 11px 12px; border: 1px solid var(--dlsf-line); border-radius: 10px; font: inherit; font-weight: 400; }
.dlsf-form input:focus, .dlsf-form textarea:focus, .dlsf-search input:focus { outline: 2px solid var(--dlsf-accent); outline-offset: 0; border-color: transparent; }
.dlsf-full { margin-bottom: 8px; }
.dlsf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Themes often centre text in the content area; the shop reads better left-aligned. */
.dlsf-wrap, .dlsf-block { text-align: left; }
.dlsf-wrap .dlsf-page-title, .dlsf-wrap .dlsf-h2 { text-align: left; }
.dlsf-wrap p, .dlsf-block p { margin-left: 0; margin-right: 0; }
.dlsf-calc label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.dlsf-calc input, .dlsf-calc select { margin-left: 0; }
.dlsf-info .dlsf-btn { margin: 4px 6px 4px 0; }
.dlsf-specs dd { text-align: left; }
.dlsf-block { margin: 18px 0; }

/* ---- 1.1: browse with filters ---- */
.dlsf-browse { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.dlsf-filters { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; padding: 4px 6px 12px 0; }
.dlsf-filters-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--dlsf-line); margin-bottom: 8px; }
.dlsf-filters-head a { color: var(--dlsf-accent); font-size: .88rem; }
.dlsf-facet { border-bottom: 1px solid var(--dlsf-line); padding: 10px 0; }
.dlsf-facet summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.dlsf-facet summary::-webkit-details-marker { display: none; }
.dlsf-facet summary::after { content: '+'; font-weight: 400; font-size: 1.2rem; }
.dlsf-facet[open] summary::after { content: '–'; }
.dlsf-facet-n { background: var(--dlsf-accent); color: #fff; font-size: .7rem; border-radius: 999px; padding: 1px 7px; margin-left: 6px; }
.dlsf-facet-body { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; max-height: 260px; overflow-y: auto; }
.dlsf-check { display: flex; align-items: center; gap: 8px; font-size: .92rem; cursor: pointer; }
.dlsf-check input { width: 17px; height: 17px; accent-color: var(--dlsf-accent); }
.dlsf-check span:first-of-type { flex: 1; }
.dlsf-n { color: var(--dlsf-muted); font-size: .8rem; }
.dlsf-instock { padding: 8px 0; font-weight: 600; }
.dlsf-filter-toggle { display: none; border: 1px solid var(--dlsf-line); background: var(--dlsf-card); border-radius: 10px; padding: 8px 14px; font-weight: 600; cursor: pointer; }
@media (max-width: 900px) {
  .dlsf-browse { grid-template-columns: 1fr; }
  .dlsf-filters { display: none; position: static; max-height: none; }
  .dlsf-filters.is-open { display: block; }
  .dlsf-filter-toggle { display: inline-block; }
}

/* Style cards */
.dlsf-style { position: relative; }
.dlsf-style .dlsf-name { color: inherit; text-decoration: none; }
.dlsf-style .dlsf-name:hover { color: var(--dlsf-accent); }
.dlsf-swatches-sm { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 2px; align-items: center; }
.dlsf-sw { width: 26px; height: 26px; border-radius: 6px; overflow: hidden; display: block; box-shadow: inset 0 0 0 1px var(--dlsf-line); background: #EEE; }
.dlsf-sw img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dlsf-sw.is-on { outline: 2px solid var(--dlsf-accent); outline-offset: 1px; }
.dlsf-sw-more { font-size: .78rem; color: var(--dlsf-muted); text-decoration: none; margin-left: 2px; }
.dlsf-count { font-size: .78rem; color: var(--dlsf-muted); margin-top: 2px; }
.dlsf-heart { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 12px -6px rgba(0,0,0,.4); }
.dlsf-heart svg { fill: none; stroke: #444; stroke-width: 1.8; }
.dlsf-heart.is-on svg { fill: #E0245E; stroke: #E0245E; }
.dlsf-title-row { display: flex; align-items: center; gap: 12px; }
.dlsf-title-row .dlsf-heart { position: static; }
.dlsf-swatch.is-on img { outline: 3px solid var(--dlsf-accent); outline-offset: 1px; }
.dlsf-swatch.is-on span { font-weight: 700; }
.dlsf-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.dlsf-actions .dlsf-btn { margin: 0; }
button.dlsf-btn { font: inherit; font-weight: 600; }

/* Brands we carry: scrolling logo strip */
.dlsf-logos { margin: 44px 0 10px; padding-top: 22px; border-top: 1px solid var(--dlsf-line); overflow: hidden; }
.dlsf-logos .dlsf-label { text-align: center; }
.dlsf-logos-track { display: flex; width: max-content; animation: dlsf-scroll calc(var(--dlsf-logo-count, 6) * var(--dlsf-logo-speed, 3.2s)) linear infinite; }
.dlsf-logos:hover .dlsf-logos-track { animation-play-state: paused; }
.dlsf-logos-row { display: flex; align-items: center; gap: 56px; padding-right: 56px; }
.dlsf-logo { display: flex; align-items: center; height: calc(var(--dlsf-logo-h, 54px) + 10px); }
.dlsf-logo img { max-height: var(--dlsf-logo-h, 54px); max-width: calc(var(--dlsf-logo-h, 54px) * 3); width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.dlsf-logo:hover img { filter: none; opacity: 1; }
@keyframes dlsf-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .dlsf-logos-track { animation: none; flex-wrap: wrap; width: auto; } .dlsf-logos-row[aria-hidden] { display: none; } }

.dlsf-mylist-grid .dlsf-card { position: relative; }
/* Keep the sidebar compact whatever the theme's heading sizes are. */
.dlsf-filters-head strong { font-size: 1.05rem; }
.dlsf-facet summary { font-size: .95rem; line-height: 1.3; }
.dlsf-filters, .dlsf-check { font-size: .9rem; }
.dlsf-calc-out:empty { display: none; }

/* ---------- 1.2: page header banner ---------- */
.dlsf-hero { position: relative; color: var(--dlsf-hero-text, #fff); background-color: #333; background-image: var(--dlsf-hero-img, none); background-size: cover; background-position: center;
  padding: var(--dlsf-hero-pt, 70px) 20px var(--dlsf-hero-pb, 70px); box-sizing: border-box; isolation: isolate; }
.dlsf-hero::before { content: ""; position: absolute; inset: 0; background: var(--dlsf-hero-overlay, rgba(0,0,0,.45)); z-index: -1; }
.dlsf-hero-full { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.dlsf-hero-inner { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.dlsf-hero-center .dlsf-hero-inner { align-items: center; text-align: center; }
.dlsf-hero-left .dlsf-hero-inner { align-items: flex-start; text-align: left; }
.dlsf-hero .dlsf-hero-title { margin: 0; color: inherit; line-height: 1.1; font-size: var(--dlsf-hero-size, inherit); }
.dlsf-hero .dlsf-crumbs { color: inherit; opacity: .9; margin: 0; }
.dlsf-hero-center .dlsf-crumbs { justify-content: center; }
.dlsf-hero .dlsf-crumbs a { color: inherit; }
.dlsf-hero .dlsf-crumbs a:hover { color: inherit; opacity: 1; text-decoration: underline; }
.dlsf-hero-compact .dlsf-crumbs { font-size: .95rem; }
.dlsf-wrap.dlsf-has-hero { padding-top: var(--dlsf-content-top, 28px); }
@media (max-width: 700px) {
  .dlsf-hero { padding-top: calc(var(--dlsf-hero-pt, 70px) * .6); padding-bottom: calc(var(--dlsf-hero-pb, 70px) * .6); }
  .dlsf-hero[style*="--dlsf-hero-size"] .dlsf-hero-title { font-size: calc(var(--dlsf-hero-size) * .62); }
}
/* Themes with overflow on wide wrappers: keep the full-width banner from causing side scroll. */
body.dlsf-page { overflow-x: clip; }

/* ---------- 1.2: category styles ---------- */
.dlsf-cats.dlsf-cats-fixed { grid-template-columns: repeat(var(--dlsf-cat-cols, 4), minmax(0, 1fr)); }
@media (max-width: 900px) { .dlsf-cats.dlsf-cats-fixed { grid-template-columns: repeat(min(var(--dlsf-cat-cols, 4), 3), minmax(0, 1fr)); } }
@media (max-width: 600px) { .dlsf-cats.dlsf-cats-fixed { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Photo tiles: name on the photo */
.dlsf-cats-overlay .dlsf-cat { border: 0; color: #fff; }
.dlsf-cats-overlay .dlsf-cat-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0)); align-items: flex-end; }
.dlsf-cats-overlay .dlsf-cat-name { font-size: 1.15rem; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.dlsf-cats-overlay .dlsf-cat-count { color: rgba(255,255,255,.85); }
.dlsf-cats-overlay .dlsf-cat .dlsf-cat-img { transition: transform .4s ease; }
.dlsf-cats-overlay .dlsf-cat:hover .dlsf-cat-img { transform: scale(1.05); }

/* Circles */
.dlsf-cats-circles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px; }
.dlsf-cats-circles .dlsf-cat { background: none; border: 0; text-align: center; overflow: visible; }
.dlsf-cats-circles .dlsf-cat:hover { transform: none; box-shadow: none; }
.dlsf-cats-circles .dlsf-cat-img { aspect-ratio: 1 / 1; border-radius: 50%; box-shadow: 0 8px 22px -12px rgba(0,0,0,.45); transition: transform .2s ease; }
.dlsf-cats-circles .dlsf-cat:hover .dlsf-cat-img { transform: scale(1.04); }
.dlsf-cats-circles .dlsf-cat-body { flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 0; }

/* Buttons (no photos) */
.dlsf-cats-list { display: flex; flex-wrap: wrap; gap: 10px; }
.dlsf-cats-list .dlsf-cat { border-radius: 999px; padding: 0; }
.dlsf-cats-list .dlsf-cat:hover { transform: none; box-shadow: none; border-color: var(--dlsf-accent); color: var(--dlsf-accent); }
.dlsf-cats-list .dlsf-cat-body { padding: 10px 18px; gap: 10px; }

/* ---------- 1.2: theme-style search box ---------- */
.dlsf-search-theme { margin: 4px 0 22px; max-width: 560px; }
.dlsf-search-block .dlsf-search-theme, .dlsf-search-block .dlsf-search { margin: 0; }

/* ---------- 1.2.1 ---------- */
.dlsf-crumb-home { display: inline-flex; align-items: center; }
.dlsf-crumb-home svg { display: block; }
/* Style / colour page name: sized here so big theme headings don't take over. */
.dlsf-wrap .dlsf-title { line-height: 1.1; overflow-wrap: anywhere; }
/* Favourite heart: undo theme button styles (padding, min sizes, backgrounds). */
.dlsf-wrap button.dlsf-heart, .dlsf-block button.dlsf-heart { padding: 0 !important; margin: 0; min-width: 0 !important; min-height: 0 !important; width: 38px !important; height: 38px !important;
  line-height: 1; flex: 0 0 38px; border: 1px solid var(--dlsf-line) !important; background: #fff !important; color: #444; text-transform: none; letter-spacing: 0; }
.dlsf-wrap button.dlsf-heart svg, .dlsf-block button.dlsf-heart svg { width: 20px !important; height: 20px !important; display: block; }
.dlsf-wrap button.dlsf-heart:hover, .dlsf-block button.dlsf-heart:hover { background: #fff !important; transform: scale(1.06); }
/* Themes that space out every child of <main> (e.g. ".site-main > * { margin: 90px auto }"): our spacing settings decide instead. */
.dlsf-main > .dlsf-wrap, .dlsf-main > .dlsf-hero { margin-top: 0 !important; margin-bottom: 0 !important; }
/* Line the banner text up with the shop content below it. */
.dlsf-hero { padding-left: 0; padding-right: 0; }
.dlsf-hero-inner { padding: 0 20px; box-sizing: border-box; }
/* Elementor-built themes reset the page margin only on Elementor pages; shop pages need it too (else an 8px browser frame shows). */
html body.dlsf-own-layout { margin: 0; }

/* ---------- 1.3: inside the theme's own page ---------- */
.dlsf-wrap.dlsf-in-page { max-width: none; padding: 0; margin: 0; }
.dlsf-in-page > .dlsf-crumbs { margin-bottom: 14px; }
.dlsf-wrap :where(p.dlsf-title) { font-size: 2.2rem; font-weight: 700; }
/* Wide: break out of a narrow page column, centred on the screen, up to 1240px. */
.dlsf-wrap.dlsf-in-page-wide { width: min(1240px, calc(100vw - 40px)) !important; max-width: none !important; position: relative; left: 50%; transform: translateX(-50%); }

/* ---------- 1.4: estimate cart ---------- */
.dlsf-cart-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: inherit; }
.dlsf-cart-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px;
  border-radius: 999px; background: var(--dlsf-accent); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
.dlsf-cart-count[hidden], .dlsf-cart-count:empty { display: none; }
.dlsf-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 99999;
  background: #1f1d24; color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: opacity .2s, transform .2s; font-size: .95rem; }
.dlsf-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.dlsf-toast a { color: #fff; font-weight: 700; margin-left: 8px; text-decoration: underline; }
[data-dlsf-add].is-added::after { content: " ✓"; }
.dlsf-cart-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.dlsf-cart-row { display: grid; grid-template-columns: 72px 1fr auto 36px; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--dlsf-line); border-radius: var(--dlsf-radius); background: var(--dlsf-card); }
.dlsf-cart-img img, .dlsf-cart-img .dlsf-noimg { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.dlsf-cart-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dlsf-cart-name a { font-weight: 700; color: inherit; text-decoration: none; }
.dlsf-cart-name span { color: var(--dlsf-muted); font-size: .92rem; }
.dlsf-cart-area { display: flex; align-items: center; gap: 6px; font-size: .9rem; white-space: nowrap; }
.dlsf-cart-area input { width: 96px; padding: 8px 10px; border: 1px solid var(--dlsf-line); border-radius: 8px; }
.dlsf-wrap button.dlsf-cart-remove { width: 36px; height: 36px; padding: 0 !important; min-width: 0; border-radius: 50%; border: 1px solid var(--dlsf-line); background: #fff; color: #555; font-size: 20px; line-height: 1; cursor: pointer; }
.dlsf-cart-more { margin: 4px 0 26px; }
.dlsf-project fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.dlsf-project legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.dlsf-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 14px; }
.dlsf-check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.dlsf-hint { font-size: .85rem; color: var(--dlsf-muted); margin: 6px 0 0; }
.dlsf-mylist-tools { margin: 0 0 16px; }
@media (max-width: 600px) {
  .dlsf-cart-row { grid-template-columns: 56px 1fr 36px; }
  .dlsf-cart-img img, .dlsf-cart-img .dlsf-noimg { width: 56px; height: 56px; }
  .dlsf-cart-area { grid-column: 2 / 4; }
}
.dlsf-form label.dlsf-check { flex-direction: row !important; align-items: center; justify-content: flex-start; text-align: left; gap: 8px; font-weight: 400; }
.dlsf-form label.dlsf-check input { width: auto; margin: 0; flex: 0 0 auto; }
.dlsf-project .dlsf-fields { margin-bottom: 4px; }

/* 1.4.1: [dyelot_cart] as an icon with hover text */
a.dlsf-cart-link, a.dlsf-cart-link:hover { text-decoration: none !important; position: relative; }
.dlsf-cart-ico { position: relative; display: inline-flex; line-height: 0; }
.dlsf-cart-icon .dlsf-cart-count { position: absolute; top: -7px; right: -10px; margin: 0; min-width: 18px; height: 18px; font-size: 11px; padding: 0 5px; }
.dlsf-cart-icon { padding: 6px; }
.dlsf-cart-icon::after { content: attr(data-dlsf-tip); position: absolute; top: calc(100% + 6px); left: 50%; transform: translate(-50%, -4px);
  background: #1f1d24; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; line-height: 1.2; white-space: nowrap;
  padding: 6px 9px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 1000; }
.dlsf-cart-icon:hover::after, .dlsf-cart-icon:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

/* 1.4.2: search box and estimate icon side by side (header) */
.dlsf-search-block { display: inline-flex; align-items: center; gap: 14px; vertical-align: middle; max-width: 100%; }
.dlsf-search-block .dlsf-search-theme, .dlsf-search-block .dlsf-search { margin: 0; flex: 1 1 auto; min-width: 0; }
.dlsf-search-block form { margin: 0; }
a.dlsf-cart-link { vertical-align: middle; flex: 0 0 auto; }

/* 1.6.0: under the product — why buy here (full-width gradient band), similar, same brand, recently viewed */
body:has(.dlsf-trust-band) { overflow-x: clip; }
.dlsf-trust-band { position: relative; width: 100vw; margin: 52px 0 8px calc(50% - 50vw); padding: 38px 24px; color: #fff;
  background: linear-gradient(115deg, color-mix(in srgb, var(--dlsf-accent) 70%, #0b0614) 0%, var(--dlsf-accent) 48%, color-mix(in srgb, var(--dlsf-accent) 45%, #E36D53) 100%); }
.dlsf-trust { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px 34px; }
.dlsf-trust-item { display: flex; gap: 14px; align-items: flex-start; }
.dlsf-trust-icon { flex: none; width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .95; }
.dlsf-trust-item strong { display: block; font-size: 1.05rem; line-height: 1.3; color: #fff; }
.dlsf-trust-item span { display: block; font-size: .9rem; color: rgba(255,255,255,.82); line-height: 1.5; margin-top: 3px; }
@media (max-width: 760px) { .dlsf-trust-band { padding: 28px 20px; } .dlsf-trust { gap: 18px; } }
.dlsf-related { margin-top: 48px; }
.dlsf-related[hidden] { display: none; }
.dlsf-related-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--dlsf-line); }
.dlsf-related-head h2 { margin: 0; font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.2; }
.dlsf-related-more { font-weight: 600; color: var(--dlsf-accent); text-decoration: none; white-space: nowrap; }
.dlsf-related-more:hover { text-decoration: underline; }
@media (max-width: 760px) {
  /* phones: swipe sideways through the cards instead of a long column */
  .dlsf-related .dlsf-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 6px; }
  .dlsf-related .dlsf-card { flex: 0 0 62%; scroll-snap-align: start; }
}

/* 1.7.0: [dyelot_brands] brand bar on any page */
.dlsf-logos.dlsf-logos-sc { margin: 0; padding: 18px 0; border-top: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.dlsf-logos.dlsf-logos-sc .dlsf-label { margin-bottom: 14px; }
.dlsf-logos-colour .dlsf-logo img { filter: none; opacity: 1; }
.dlsf-logo:focus-visible { outline: 2px solid var(--dlsf-accent); outline-offset: 4px; border-radius: 6px; }

/* 1.8.0: sale / special prices */
.dlsf-badge-sale { position: absolute; top: 10px; left: 10px; background: #D92D20; color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; box-shadow: 0 4px 10px -4px rgba(217,45,32,.6); }
.dlsf-badge-inline { position: static; display: inline-block; box-shadow: none; }
.dlsf-sale-line { margin: 4px 0 8px; font-size: .9rem; color: var(--dlsf-muted); }
.dlsf-price-sale { color: #D92D20; }
.dlsf-price-sale .dlsf-unit { color: #D92D20; opacity: .8; }
.dlsf-was { color: var(--dlsf-muted); font-weight: 500; font-size: .85em; margin-left: 4px; text-decoration-thickness: 1.5px; }
.dlsf-sw-sale { display: block; font-style: normal; font-size: .68rem; font-weight: 800; color: #D92D20; text-transform: uppercase; }
.dlsf-sale-block { margin: 10px 0 36px; }
.dlsf-sale-block .dlsf-related-head h2 { margin: 0; }
.dlsf-sale-text { margin: 4px 0 0; color: var(--dlsf-muted); }
.dlsf-sale-band { width: 100vw; margin-left: calc(50% - 50vw); padding: 44px 24px; background: linear-gradient(180deg, color-mix(in srgb, #D92D20 7%, #fff), #fff); }
body:has(.dlsf-sale-band) { overflow-x: clip; }
.dlsf-sale-band .dlsf-sale-inner { max-width: 1240px; margin: 0 auto; }

/* 1.8.0: filter sidebar toggles, "See all", promotions */
.dlsf-toggles { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--dlsf-line); }
.dlsf-toggle { display: flex; align-items: center; gap: 10px; font-size: .92rem; cursor: pointer; }
.dlsf-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dlsf-toggle > span:first-of-type { flex: none; position: relative; width: 36px; height: 20px; border-radius: 999px; background: rgba(0,0,0,.18); transition: background .15s; }
.dlsf-toggle > span:first-of-type::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.dlsf-toggle input:checked + span { background: var(--dlsf-accent); }
.dlsf-toggle input:checked + span::after { transform: translateX(16px); }
.dlsf-toggle input:focus-visible + span { outline: 2px solid var(--dlsf-accent); outline-offset: 2px; }
.dlsf-toggle-sale input:checked + span { background: #D92D20; }
.dlsf-deals { font-style: normal; font-weight: 800; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; background: #D92D20; color: #fff; padding: 2px 8px; border-radius: 4px; }
.dlsf-toggle .dlsf-n { margin-left: auto; }
.dlsf-facet-body { max-height: none; }
.dlsf-more-item { display: none; }
.dlsf-facet-body.is-expanded .dlsf-more-item { display: flex; }
.dlsf-see-more { align-self: flex-start; background: none; border: 0; padding: 2px 0; color: var(--dlsf-accent); font-weight: 600; font-size: .85rem; cursor: pointer; text-decoration: underline; }
.dlsf-promo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.dlsf-promo-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--dlsf-line); text-decoration: none; color: inherit; font-weight: 600; font-size: .9rem; background: var(--dlsf-card); }
.dlsf-promo-chips a span { font-weight: 700; color: #D92D20; font-size: .8rem; }
.dlsf-promo-chips a.is-on { background: #D92D20; border-color: #D92D20; color: #fff; }
.dlsf-promo-chips a.is-on span { color: #fff; opacity: .85; }
.dlsf-promo-line { margin: -6px 0 18px; color: var(--dlsf-muted); }
.dlsf-facet summary .dlsf-facet-n { margin-right: auto; }
