/* =========================================================
   Product listing (shop / sale / category) — scoped under .lcs
   ========================================================= */
.lcs {
  --lcs-ink: #111827;
  --lcs-body: #374151;
  --lcs-muted: #6b7280;
  --lcs-line: #e7e8f0;
  --lcs-soft: #f6f6fb;
  --lcs-brand: #0b1f5c;            /* base background colour */
  --lcs-brand-dark: #081747;
  --lcs-accent: var(--primary, #5eead4); /* site primary teal */
  --lcs-accent-ink: #0f766e;
  --lcs-grad: #0b1f5c;
  --lcs-brand-soft: #e6fbf7;
  --lcs-sale: var(--primary, #5eead4);
  --lcs-star: #f59e0b;
  --lcs-radius: 14px;
  --lcs-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 6px 18px -8px rgba(17, 24, 39, .10);
  --lcs-shadow-hover: 0 18px 40px -18px rgba(11, 31, 92, .28);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--lcs-body);
  background: var(--lcs-soft);
  padding: 20px 0 64px;
}
.lcs a { text-decoration: none; }
.lcs :focus-visible { outline: 2px solid var(--lcs-brand); outline-offset: 2px; border-radius: 6px; }
.lcs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Breadcrumb */
.lcs-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; font-size: 13px; color: var(--lcs-muted); }
.lcs-crumbs a { color: var(--lcs-muted); }
.lcs-crumbs a:hover { color: var(--lcs-brand); }
.lcs-crumbs li[aria-current] { color: var(--lcs-ink); font-weight: 500; }
.lcs-crumbs .bi { font-size: 11px; }

/* Layout */
.lcs-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }

/* Sidebar */
.lcs-sidebar { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 16px; }
.lcs-panel { background: #fff; border: 1px solid var(--lcs-line); border-radius: var(--lcs-radius); padding: 16px; box-shadow: var(--lcs-shadow); }
.lcs-panel > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--lcs-ink); }
.lcs-panel > summary::-webkit-details-marker { display: none; }
.lcs-panel > summary .bi { transition: transform .2s; font-size: 12px; color: var(--lcs-muted); }
.lcs-panel:not([open]) > summary .bi { transform: rotate(180deg); }
.lcs-panel-body { margin-top: 12px; }
.lcs-panel-title { font-weight: 700; font-size: 14px; color: var(--lcs-ink); margin: 0 0 10px; }

.lcs-input { width: 100%; height: 38px; border: 1px solid var(--lcs-line); border-radius: 10px; padding: 0 12px; font-size: 13px; color: var(--lcs-ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.lcs-input:focus { outline: none; border-color: var(--lcs-brand); box-shadow: 0 0 0 3px var(--lcs-brand-soft); }
.lcs-search-wrap { position: relative; }
.lcs-search-wrap .bi { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--lcs-muted); font-size: 13px; }
.lcs-search-wrap .lcs-input { padding-left: 32px; }

.lcs-cats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.lcs-cats ul { list-style: none; padding: 0 0 0 10px; margin: 2px 0 0; display: flex; flex-direction: column; gap: 2px; }
.lcs-cat { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; font-size: 13px; color: var(--lcs-body); border-left: 3px solid transparent; }
.lcs-cat:hover { background: var(--lcs-soft); color: var(--lcs-ink); }
.lcs-cat.is-active { background: var(--lcs-brand-soft); color: var(--lcs-brand); font-weight: 600; }
.lcs-cat.is-parent { font-weight: 600; color: var(--lcs-ink); }
.lcs-count { font-size: 12px; color: var(--lcs-muted); font-variant-numeric: tabular-nums; }
.lcs-empty-note { font-size: 12px; color: var(--lcs-muted); margin: 6px 0 0; }

.lcs-check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 13px; cursor: pointer; color: var(--lcs-body); }
.lcs-check input { width: 16px; height: 16px; accent-color: var(--lcs-brand); margin: 0; flex: none; cursor: pointer; }
.lcs-check .lcs-count { margin-left: auto; }
.lcs-check .lc-stars { flex: none; }

/* Price range: two overlaid range inputs */
.lcs-range { position: relative; height: 22px; margin: 4px 4px 8px; }
.lcs-range-track { position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 4px; background: var(--lcs-line); }
.lcs-range-fill { position: absolute; top: 9px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #007e8d, var(--lcs-accent)); }
.lcs-range input[type=range] { position: absolute; left: 0; top: 0; width: 100%; height: 22px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.lcs-range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--lcs-brand); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--lcs-brand); cursor: pointer; }
.lcs-range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 12px; height: 12px; border-radius: 50%; background: var(--lcs-brand); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--lcs-brand); cursor: pointer; }
.lcs-range input[type=range]::-moz-range-track { background: none; }
.lcs-price-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--lcs-muted); margin-bottom: 10px; }
.lcs-price-inputs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.lcs-price-inputs span { color: var(--lcs-muted); }

/* Buttons */
.lcs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; font-size: 13px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .15s; white-space: nowrap; }
.lcs-btn-primary { background: var(--lcs-brand); color: #fff; }
.lcs-btn-primary:hover { background: var(--lcs-brand-dark); color: #fff; box-shadow: 0 8px 18px -8px rgba(11, 31, 92, .5); }
.lcs-btn-outline { background: #fff; color: var(--lcs-brand); border-color: #c7c5e6; }
.lcs-btn-outline:hover { border-color: var(--lcs-brand); color: var(--lcs-brand-dark); background: var(--lcs-brand-soft); }
.lcs-btn-ghost { background: #fff; color: var(--lcs-ink); border-color: var(--lcs-line); }
.lcs-btn-ghost:hover { border-color: var(--lcs-brand); color: var(--lcs-brand); }
.lcs-btn:disabled, .lcs-btn[aria-disabled=true] { background: #e5e7eb; color: #9ca3af; border-color: #e5e7eb; cursor: not-allowed; box-shadow: none; }
.lcs-btn-block { width: 100%; }

/* Toolbar */
.lcs-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.lcs-title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; color: var(--lcs-ink); letter-spacing: -.02em; margin: 0 0 4px; line-height: 1.15; }
.lcs-sub { margin: 0; font-size: 14px; color: var(--lcs-muted); }
.lcs-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lcs-result { font-size: 13px; color: var(--lcs-muted); margin: 0; }
.lcs-select { height: 38px; border: 1px solid var(--lcs-line); border-radius: 10px; padding: 0 34px 0 12px; font-size: 13px; color: var(--lcs-ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%236b7280' d='M8 11 3 6h10z'/%3E%3C/svg%3E") no-repeat right 12px center; -webkit-appearance: none; appearance: none; cursor: pointer; }
.lcs-select:focus { outline: none; border-color: var(--lcs-brand); box-shadow: 0 0 0 3px var(--lcs-brand-soft); }
.lcs-views { display: inline-flex; gap: 4px; }
.lcs-view-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--lcs-line); background: #fff; color: var(--lcs-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lcs-view-btn[aria-pressed=true] { background: var(--lcs-brand); border-color: var(--lcs-brand); color: #fff; }
.lcs-filter-toggle { display: none; }

.lcs-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.lcs-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--lcs-line); font-size: 12px; color: var(--lcs-ink); }
.lcs-chip:hover { border-color: var(--lcs-brand); color: var(--lcs-brand); }
.lcs-chip-clear { font-size: 12px; font-weight: 600; color: var(--lcs-brand); }

/* Sale hero */
.lcs-hero { border-radius: var(--lcs-radius); padding: 24px 28px; margin-bottom: 20px; color: #fff; background: var(--lcs-brand); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.lcs-hero h2 { color: #fff; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; margin: 4px 0; }
.lcs-hero p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 14px; }
.lcs-hero-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.lcs-hero-stats { display: flex; gap: 28px; text-align: center; }
.lcs-hero-stats strong { display: block; font-size: 24px; font-weight: 800; }
.lcs-hero-stats span { font-size: 12px; opacity: .8; }

/* Grid */
.lcs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; transition: opacity .2s; }
.lcs-grid.is-loading { opacity: .45; pointer-events: none; }

/* Card */
.lcs-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--lcs-line); border-radius: var(--lcs-radius); padding: 12px; box-shadow: var(--lcs-shadow); transition: transform .2s, box-shadow .2s, border-color .2s; min-width: 0; }
.lcs-card:hover { transform: translateY(-3px); box-shadow: var(--lcs-shadow-hover); border-color: var(--lcs-accent); }
.lcs-media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; background: #f7f7fb; overflow: hidden; }
.lcs-media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .35s ease, opacity .25s; }
.lcs-media .lcs-img-hover { position: absolute; inset: 0; opacity: 0; }
.lcs-card:hover .lcs-media .lcs-img-hover { opacity: 1; }
.lcs-card:hover .lcs-media img:only-of-type { transform: scale(1.04); }
.lcs-badge { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--lcs-sale); color: var(--lcs-brand); letter-spacing: .02em; }
.lcs-badge.is-out { background: #6b7280; color: #fff; }
.lcs-badge + .lcs-badge { top: 38px; }
.lcs-heart { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--lcs-line); background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 6px rgba(17, 24, 39, .08); transition: transform .15s, border-color .15s; }
.lcs-heart:hover { transform: scale(1.08); border-color: var(--lcs-accent); }
.lcs-heart .icon { font-size: 15px; color: var(--lcs-ink); }

.lcs-info { display: flex; flex-direction: column; gap: 6px; padding: 12px 2px 0; flex: 1; min-width: 0; }
.lcs-tag { align-self: flex-start; padding: 3px 9px; border-radius: 6px; background: var(--lcs-brand-soft); color: var(--lcs-accent-ink); font-size: 11px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcs-tag:hover { background: var(--lcs-accent); color: var(--lcs-brand); }
.lcs-name { font-size: 15px; font-weight: 700; color: var(--lcs-ink); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.lcs-name:hover { color: var(--lcs-brand); }
.lcs-rating { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--lcs-muted); min-height: 18px; }
.lcs-rating b { color: var(--lcs-ink); font-weight: 600; }
.lcs-rating .bi-star-fill { color: var(--lcs-star); }
.lcs-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 2px 0 0; }
.lcs-price .now { font-size: 20px; font-weight: 800; color: var(--lcs-ink); letter-spacing: -.01em; }
.lcs-price .was { font-size: 13px; color: var(--lcs-muted); text-decoration: line-through; }
.lcs-price .save { font-size: 12px; font-weight: 600; color: var(--lcs-accent-ink); }
.lcs-desc { display: none; font-size: 13px; line-height: 1.55; color: var(--lcs-muted); margin: 0; }
.lcs-stock-low { font-size: 12px; color: #b45309; font-weight: 500; }
.lcs-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.lcs-actions .lcs-btn { padding: 0 10px; }
.lcs-actions form { display: contents; }

/* List view */
.lcs-grid.is-list { grid-template-columns: minmax(0, 1fr); }
.lcs-grid.is-list .lcs-card { flex-direction: row; gap: 20px; align-items: stretch; }
.lcs-grid.is-list .lcs-media { width: 240px; flex: none; aspect-ratio: 4 / 3; }
.lcs-grid.is-list .lcs-info { padding-top: 4px; }
.lcs-grid.is-list .lcs-name { min-height: 0; font-size: 17px; }
.lcs-grid.is-list .lcs-desc { display: block; }
.lcs-grid.is-list .lcs-actions { max-width: 340px; margin-top: auto; padding-top: 12px; }

/* Empty state */
.lcs-empty { grid-column: 1 / -1; text-align: center; background: #fff; border: 1px dashed #d4d6e3; border-radius: var(--lcs-radius); padding: 56px 20px; }
.lcs-empty .bi { font-size: 40px; color: var(--lcs-accent); }
.lcs-empty h3 { font-size: 18px; color: var(--lcs-ink); margin: 12px 0 6px; font-weight: 700; }
.lcs-empty p { margin: 0 0 18px; color: var(--lcs-muted); font-size: 14px; }

/* Pagination */
.lcs-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; }
.lcs-pager a, .lcs-pager span { min-width: 38px; height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--lcs-line); background: #fff; font-size: 13px; color: var(--lcs-ink); }
.lcs-pager a:hover { border-color: var(--lcs-brand); color: var(--lcs-brand); }
.lcs-pager [aria-current] { background: var(--lcs-brand); border-color: var(--lcs-brand); color: #fff; font-weight: 600; }
.lcs-pager .is-disabled { color: #c0c3cf; }
.lcs-pager .is-gap { border: 0; background: none; min-width: 20px; }

/* Off-canvas filters (tablet / mobile) */
.lcs-drawer-head, .lcs-drawer-foot { display: none; }
.lcs-backdrop { display: none; }

@media (max-width: 1399px) { .lcs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1199px) {
  .lcs-layout { grid-template-columns: minmax(0, 1fr); }
  .lcs-filter-toggle { display: inline-flex; }
  .lcs-sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 1060; width: min(340px, 88vw); overflow-y: auto; background: var(--lcs-soft); padding: 0 14px 14px; transform: translateX(-105%); transition: transform .25s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .2); }
  .lcs.is-filters-open .lcs-sidebar { transform: none; }
  .lcs.is-filters-open .lcs-backdrop { display: block; position: fixed; inset: 0; z-index: 1055; background: rgba(17, 24, 39, .45); }
  .lcs-drawer-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1; background: var(--lcs-soft); padding: 14px 0 10px; font-weight: 700; color: var(--lcs-ink); }
  .lcs-drawer-head button { border: 0; background: none; font-size: 20px; color: var(--lcs-ink); }
  .lcs-drawer-foot { display: block; position: sticky; bottom: 0; background: var(--lcs-soft); padding-top: 6px; }
}
@media (max-width: 991px) { .lcs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .lcs-top { align-items: flex-start; }
  .lcs-tools { width: 100%; }
  .lcs-select { flex: 1; min-width: 0; }
  .lcs-grid.is-list .lcs-card { flex-direction: column; }
  .lcs-grid.is-list .lcs-media { width: 100%; }
  .lcs-grid.is-list .lcs-actions { max-width: none; }
}
@media (max-width: 575px) {
  .lcs-grid { gap: 10px; }
  .lcs-card { padding: 8px; }
  .lcs-name { font-size: 13px; }
  .lcs-price .now { font-size: 16px; }
  .lcs-actions { grid-template-columns: 1fr; }
  .lcs-actions .lcs-btn { height: 36px; font-size: 12px; }
  .lcs-hero { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .lcs *, .lcs *::before, .lcs *::after { transition: none !important; }
}

/* Brand accents: solid #0b1f5c base */
.lcs-btn-primary { background: var(--lcs-brand); }
.lcs-btn-primary:hover { background: var(--lcs-brand-dark); }
.lcs-view-btn[aria-pressed=true], .lcs-pager [aria-current] { background: var(--lcs-brand); border-color: var(--lcs-brand); }
.lcs-title { background: linear-gradient(90deg, #08006c, #5d008d 60%, #007e8d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lcs-hero .lcs-hero-stats strong { color: var(--lcs-accent); }
.lcs-hero .lcs-btn-ghost { color: var(--lcs-brand); }
.lcs-chip-clear, .lcs-crumbs a:hover, .lcs-name:hover { color: #007e8d; }

/* =========================================================
   Polish (2026-10): aligned card actions, calmer meta, brand title
   ========================================================= */

/* Header + toolbar sit in one white bar */
.lcs-title { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--lcs-ink); }
.lcs-top { background: #fff; border: 1px solid var(--lcs-line); border-radius: var(--lcs-radius); padding: 16px 18px; box-shadow: var(--lcs-shadow); align-items: center; }
.lcs-sub { margin-top: 2px; }
.lcs-result { padding-right: 4px; }
.lcs-result b, .lcs-result strong { color: var(--lcs-ink); }

/* Sidebar */
.lcs-panel { padding: 16px 16px 14px; }
.lcs-panel > summary, .lcs-panel-title { font-size: 13px; letter-spacing: .01em; }
.lcs-cat.is-active { border-left-color: var(--lcs-accent-ink); }
.lcs-cat { transition: background .15s, color .15s; }
.lcs-sidebar a.lcs-btn-outline.lcs-btn-block { border-style: dashed; color: var(--lcs-muted); }
.lcs-sidebar a.lcs-btn-outline.lcs-btn-block:hover { color: var(--lcs-brand); border-style: solid; }

/* Card: equal-height rows with actions pinned to the bottom */
.lcs-grid { gap: 20px; }
.lcs-card { padding: 14px; border-radius: 16px; }
.lcs-media { border-radius: 12px; background: linear-gradient(180deg, #f8f9fc, #f1f3f8); }
.lcs-heart { width: 32px; height: 32px; }
.lcs-badge { top: 12px; left: 12px; box-shadow: 0 4px 10px -4px rgba(15, 118, 110, .45); }
.lcs-info { gap: 7px; padding-top: 14px; }
.lcs-name { font-size: 15px; min-height: 2.7em; }
.lcs-rating { font-size: 11.5px; }
.lcs-rating > span:only-child { color: #9ca3af; }           /* "No reviews yet" */
.lcs-price { margin-top: 0; }
.lcs-price .now { font-size: 21px; }
.lcs-price .save { padding: 1px 7px; border-radius: 6px; background: var(--lcs-brand-soft); font-size: 11.5px; }
.lcs-stock-low { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; }
.lcs-stock-low::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #f59e0b; }
.lcs-actions { margin-top: auto; padding-top: 12px; }
.lcs-btn { height: 40px; border-radius: 10px; }
.lcs-btn-outline { border-color: #d5d8e3; }

/* "Add to compare": a centred footer row under the buttons (beats the tw: utilities on the partial) */
.lcs-info > .js-compare { align-self: stretch; justify-content: center; margin-top: 10px; padding: 10px 0 0; border-top: 1px dashed var(--lcs-line); border-radius: 0; }

/* List view keeps the compare row compact */
.lcs-grid.is-list .lcs-info > .js-compare { align-self: flex-start; max-width: 340px; width: 100%; }

@media (max-width: 575px) {
  .lcs-top { padding: 12px; }
  .lcs-card { padding: 9px; }
  .lcs-price .now { font-size: 16px; }
  .lcs-price .save { display: none; }
  .lcs-info > .js-compare { font-size: 12px; }
}
