/**
 * Claue V2 — Category / search listing page styles
 *
 * Reference: https://claue.arrowtheme.com/women/dresses.html
 * Layout: 2-column left, sidebar filters, 4-column product grid at desktop.
 *
 * Scope: .cl-listing body class — a shared marker added by BOTH the category
 * layout (catalog_category_view.xml) and the search-results layout
 * (catalogsearch_result_index.xml) via <attribute name="class">. Both pages
 * render the identical .cl-product-card grid markup (Magento_Catalog::product/
 * list.phtml is a theme-wide template override), so they share one stylesheet
 * here instead of duplicating it. Category-only rules (the Women landing) stay
 * gated by the .cl-listing.category-women compound so they never leak to search.
 *
 * iter-2 token map (hardcoded hex → CSS custom property to swap):
 *   #222  → --cl-heading   (primary text / headings / active backgrounds)
 *   #444  → --cl-text      (body text)
 *   #555  → --cl-text-muted
 *   #888, #999 → --cl-text-subtle
 *   #ddd, #eee, #e8e8e8 → --cl-border
 *   #f5f5f5 → --cl-surface-subtle (card image background)
 *   #e74c3c → --cl-sale    (sale badge)
 *   #fff    → --cl-surface (button / card surface)
 */

/* ── Category title moved into column.main via layout XML ────────────────────
   The page.main.title block is moved by catalog_category_view.xml from its
   default position (above .columns, full-width) into cl.category.title container
   inside column.main. This makes it appear within the content column, matching
   the reference where the category heading is in the right column.

   cl-category-title wraps the Magento page-title-wrapper so we style the inner
   element rather than the wrapper. */
.cl-listing .cl-category-title {
  /* No additional wrapper styling needed — the inner page-title-wrapper styles apply */
}

.cl-listing .cl-category-title .page-title-wrapper {
  padding: 0;
  margin-bottom: 16px;
}

.cl-listing .cl-category-title .page-title {
  font-size: 24px;
  font-weight: 600;
  color: #222;
  margin: 0;
  line-height: 1.2;
}

.cl-listing .cl-category-title .page-title .base {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

/* ── Toolbar row: category title left + sort right ──────────────────────── */
.cl-listing .cl-toolbar {
  display: block;
  padding: 0 0 16px 0;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 24px;
}

.cl-listing .cl-toolbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
}

/* Category title inside toolbar — mirrors reference .arrow-topbar-page-title */
.cl-listing .cl-toolbar__title {
  flex: 1 1 auto;
}

.cl-listing .cl-toolbar__category-title {
  font-size: 24px;
  font-weight: 600;
  color: #222;
  margin: 0;
  line-height: 1.2;
  text-transform: none;
}

/* Right side: sort + view-mode icons */
.cl-listing .cl-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Sort-by label (hide the verbose label — reference shows just the select) */
.cl-listing .cl-toolbar__sorter .sorter-label {
  display: none;
}

.cl-listing .cl-toolbar__sorter .sorter-options,
.cl-listing .cl-toolbar__sorter select {
  border: 1px solid #ddd;
  padding: 6px 32px 6px 10px;
  font-size: 13px;
  color: #444;
  background: #fff;
  cursor: pointer;
  appearance: auto;
  border-radius: 0;
}

.cl-listing .cl-toolbar__sorter .action.sorter-action {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: #888;
  margin-left: 4px;
}

.cl-listing .cl-toolbar__sorter .action.sorter-action span {
  /* Hide the text, keep the arrow character or icon */
  font-size: 0;
  width: 0;
  overflow: hidden;
}

.cl-listing .cl-toolbar__sorter .action.sorter-action::after {
  content: "\2195";
  font-size: 14px;
  color: #888;
}

/* View mode buttons (grid / list) */
.cl-listing .cl-toolbar__mode {
  display: flex;
  gap: 4px;
}

.cl-listing .cl-toolbar__mode-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  color: #999;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}

.cl-listing .cl-toolbar__mode-btn--active,
.cl-listing .cl-toolbar__mode-btn:hover {
  background: #222;
  color: #fff;
  border-color: #222;
}

/* ── Sidebar filters — matches reference accordion style ─────────────────── */

/* Sidebar container padding */
.cl-listing .sidebar.sidebar-main,
.cl-listing .sidebar.sidebar-additional {
  padding-right: 24px;
}

/* "Shop By" title — hide default, the accordion handles headings */
.cl-listing .block.filter > .block-title {
  display: none;
}

/* Hide "Shopping Options" subtitle */
.cl-listing .block-subtitle.filter-subtitle {
  display: none;
}

/* Filter accordion item titles */
.cl-listing .filter-options-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #222;
  padding: 12px 0;
  border-top: 1px solid #eee;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
}

.cl-listing .filter-options-item:last-child .filter-options-title {
  border-bottom: 1px solid #eee;
}

/* Filter content (price slider, color swatches, links) */
.cl-listing .filter-options-content {
  padding-bottom: 12px;
}

/* Filter option links */
.cl-listing .filter-options-content .items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cl-listing .filter-options-content .item {
  padding: 4px 0;
}

.cl-listing .filter-options-content .item a {
  font-size: 13px;
  color: #555;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.cl-listing .filter-options-content .item a:hover {
  color: #222;
}

/* Count badge — hide the verbose "item" label, show just the number in parens */
.cl-listing .filter-options-content .count {
  color: #999;
  font-size: 12px;
}

.cl-listing .filter-options-content .count::before {
  content: "(";
}

.cl-listing .filter-options-content .count::after {
  content: ")";
}

/* Hide "item" / "items" label inside count badge */
.cl-listing .filter-options-content .filter-count-label {
  display: none;
}

/* The sidebar uses <dl> not <ul> — style dt/dd */
.cl-listing .filter-options {
  margin: 0;
  padding: 0;
}

.cl-listing .filter-options dt.filter-options-title {
  /* Handled above via .filter-options-title selector */
}

.cl-listing .filter-options dd.filter-options-content {
  margin: 0;
  padding: 0 0 4px 0;
}

/* Compare Products sidebar block */
.cl-listing .block.block-compare .block-title strong,
.cl-listing .block.block-wishlist .block-title strong {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #222;
}

.cl-listing .block.block-compare,
.cl-listing .block.block-wishlist {
  margin-bottom: 24px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.cl-listing .block.block-compare .block-content,
.cl-listing .block.block-wishlist .block-content {
  font-size: 13px;
  color: #888;
  margin-top: 8px;
}

/* ── Breadcrumbs in content column ──────────────────────────────────────── */
.cl-listing .cl-breadcrumbs {
  padding: 8px 0 16px 0;
}

.cl-listing .cl-breadcrumbs .breadcrumbs {
  font-size: 12px;
  color: #999;
}

.cl-listing .cl-breadcrumbs .breadcrumbs a {
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
}

.cl-listing .cl-breadcrumbs .breadcrumbs a:hover {
  color: #222;
}

.cl-listing .cl-breadcrumbs .breadcrumbs .item:not(:last-child)::after {
  content: "/";
  margin: 0 6px;
  color: #ccc;
}

.cl-listing .cl-breadcrumbs .breadcrumbs strong {
  color: #444;
  font-weight: 400;
}

/* ── Category description (shown above toolbar on reference) ─────────────── */
.cl-listing .category-view,
.cl-listing .category-description {
  font-size: 13px;
  color: #777;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ── Product Grid — 4 columns at desktop ─────────────────────────────────── */
.cl-listing .cl-products {
  width: 100%;
}

.cl-listing .cl-products__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cl-listing .cl-products__item {
  position: relative;
}

/* List view override */
.cl-listing .cl-products--list .cl-products__list {
  grid-template-columns: 1fr;
  gap: 24px;
}

.cl-listing .cl-products--list .cl-product-card {
  display: flex;
  gap: 24px;
}

.cl-listing .cl-products--list .cl-product-card__image {
  flex: 0 0 260px;
}

.cl-listing .cl-products--list .cl-product-card__info {
  flex: 1;
  text-align: left;
  padding-top: 8px;
}

/* ── Product card — matches reference card layout ────────────────────────── */
.cl-listing .cl-product-card {
  position: relative;
}

/* Image container: padding-bottom aspect-ratio technique (3:4 portrait = 133.33%).
 * The __image-link block holds the padding; imgs are absolute-positioned inside.
 * iter-2 token map: #f5f5f5 → --cl-surface-subtle */
.cl-listing .cl-product-card__image {
  position: relative;
  overflow: hidden;
  background: #f5f5f5; /* iter-2: --cl-surface-subtle */
}

.cl-listing .cl-product-card__image-link {
  display: block;
  position: relative;
  padding-bottom: 133.33%; /* 3:4 portrait — matches claue.arrowtheme.com reference */
  overflow: hidden;
}

.cl-listing .cl-product-card__image-link img.cl-product-card__image--main,
.cl-listing .cl-product-card__image-link img.cl-product-card__image--hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Magento's getImage() helper wraps the main photo in
 * span.product-image-container > span.product-image-wrapper > img.product-image-photo,
 * where the container is position:static with its own height — in normal flow it
 * stacks BELOW the padding-bottom aspect box and doubles the card height. Pull the
 * container out of flow so it fills the aspect box (matches the reference card height). */
.cl-listing .cl-product-card__image-link .product-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100%;
  display: block;
}

.cl-listing .cl-product-card__image-link .product-image-wrapper {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  padding-bottom: 0 !important;
}

.cl-listing .cl-product-card__image-link img.product-image-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hover image — hidden by default, fades in on card hover */
.cl-listing .cl-product-card__image--hover {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cl-listing .cl-product-card:hover .cl-product-card__image--hover {
  opacity: 1;
}

/* Action buttons (wishlist, compare, add-to-cart) */
.cl-listing .cl-product-card__actions {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cl-listing .cl-product-card:hover .cl-product-card__actions {
  opacity: 1;
}

.cl-listing .cl-product-card__action-btn {
  width: 36px;
  height: 36px;
  background: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #444;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  transition: background 0.2s, color 0.2s;
  padding: 0;
}

.cl-listing .cl-product-card__action-btn:hover {
  background: #222;
  color: #fff;
}

.cl-listing .cl-product-card__action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cl-listing .cl-product-card__action-svg {
  display: block;
}

/* Sale / New badge */
.cl-listing .cl-product-card__label {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 2px;
  z-index: 1;
}

.cl-listing .cl-product-card__label--sale {
  background: #e74c3c;
  color: #fff;
}

.cl-listing .cl-product-card__label--new {
  background: #222;
  color: #fff;
}

/* Color swatches row */
.cl-listing .cl-product-card__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.cl-listing .cl-product-card__swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  cursor: pointer;
}

.cl-listing .cl-product-card__swatch-more {
  font-size: 11px;
  color: #999;
  line-height: 16px;
}

/* Card info block */
.cl-listing .cl-product-card__info {
  padding-top: 10px;
  text-align: left;
}

.cl-listing .cl-product-card__name {
  font-size: 13px;
  font-weight: 400;
  margin: 0 0 4px 0;
  line-height: 1.4;
}

.cl-listing .cl-product-card__link {
  color: #222;
  text-decoration: none;
  transition: color 0.2s;
}

.cl-listing .cl-product-card__link:hover {
  color: #888;
}

.cl-listing .cl-product-card__price {
  font-size: 14px;
  font-weight: 500;
  color: #222;
}

/* Rating stars */
.cl-listing .cl-product-card__rating {
  margin-top: 4px;
}

/* ── Responsive ──────────────────────────────────────────────────────────────
 * Breakpoint scheme (matches claue.arrowtheme.com reference at each width):
 *
 *  > 1280px  : sidebar left (24px pad-right) + 4-column product grid  [default]
 *  1025–1280px: sidebar left + 3-column product grid (narrower viewport)
 *  ≤ 1024px  : sidebar STACKS above grid (full-width, 100%); grid = 2 columns
 *              (reference collapses sidebar at tablet — no cramped 3-col+sidebar)
 *  ≤ 768px   : toolbar wraps; grid = 2 columns, smaller gap
 *  ≤ 480px   : grid = 1 column for portrait mobile
 * ──────────────────────────────────────────────────────────────────────────── */

/* 1025–1280px: sidebar stays left, grid drops to 3 columns */
@media (max-width: 1280px) {
  .cl-listing .cl-products__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ≤ 1024px: sidebar collapses to full-width above the grid (stack layout).
 * The .columns container is normally display:flex (Luma 2-col-left).
 * Switching to block makes sidebar-main and column-main stack vertically.
 * iter-2: consider a collapsible drawer/toggle instead of always-visible stack. */
@media (max-width: 1024px) {
  /* Stack sidebar above content (removes side-by-side 2-column layout) */
  .cl-listing .columns {
    display: block;
  }

  .cl-listing .sidebar.sidebar-main,
  .cl-listing .sidebar.sidebar-additional {
    width: 100%;
    max-width: 100%;
    padding-right: 0;
    margin-bottom: 24px;
  }

  .cl-listing .column.main {
    width: 100%;
    max-width: 100%;
  }

  /* Grid drops to 2 columns now that sidebar is not beside it */
  .cl-listing .cl-products__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .cl-listing .cl-toolbar__inner {
    flex-wrap: wrap;
  }

  .cl-listing .cl-products__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .cl-listing .cl-products--list .cl-product-card {
    flex-direction: column;
  }

  .cl-listing .cl-products--list .cl-product-card__image {
    flex: 0 0 auto;
  }
}

@media (max-width: 480px) {
  .cl-listing .cl-products__list {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ── Pagination ──────────────────────────────────────────────────────────── */
.cl-listing .pages {
  display: flex;
  justify-content: flex-end;
  margin: 24px 0 0 0;
}

.cl-listing .pages .items {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 4px;
}

.cl-listing .pages .item a,
.cl-listing .pages .item .page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  font-size: 13px;
  color: #444;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.cl-listing .pages .item a:hover,
.cl-listing .pages .item.current .page {
  background: #222;
  color: #fff;
  border-color: #222;
}

/* Next / previous pagination action links */
.cl-listing .pages .action.next,
.cl-listing .pages .action.previous {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  font-size: 13px;
  color: #444;
  text-decoration: none;
  transition: background 0.2s;
}

.cl-listing .pages .action.next:hover,
.cl-listing .pages .action.previous:hover {
  background: #222;
  color: #fff;
  border-color: #222;
}

/* "Show X per page" link below pagination */
.cl-listing .toolbar-products .limiter {
  display: none;
}

/* ── Women Landing Page (iter-1) ─────────────────────────────────────────── */
/* Reference: https://claue.arrowtheme.com/women.html
 * Women is a landing/subcategory page — no sidebar, full-width 1-column layout.
 * The body class .category-women is set by Magento's core layout handle via
 * the categorypath-women navigation block. We use it to hide the sidebar and
 * switch to 1-column when on the Women parent category page.
 * In iter-2, set display_mode = PAGE in Magento admin and use layout 1column via
 * catalog_category_view_id_{women_id}.xml — remove this CSS-only override then.
 */
.cl-listing.category-women .sidebar.sidebar-main,
.cl-listing.category-women .sidebar.sidebar-additional {
  display: none;
}

.cl-listing.category-women .column.main {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
}

/* Hide the toolbar on the Women landing — no products to sort/filter */
.cl-listing.category-women .cl-toolbar,
.cl-listing.category-women .toolbar-products,
.cl-listing.category-women .toolbar-amount,
.cl-listing.category-women #toolbar-amount,
.cl-listing.category-women .modes {
  display: none;
}

/* ── Women landing grid (.landing-categories) ───────────────────────────── */
/* Mirrors the Claue theme's landing-categories component used on
 * claue.arrowtheme.com/women.html. The grid container uses .row-3 for
 * 3 columns at desktop (≥1200px), .row-tablet-2 at tablet, .row-mobile-1 mobile.
 */
.cl-listing.category-women .cl-women-landing {
  padding: 20px 0 40px 0;
}

/* Reference /women.html has no page title above the tile grid (only the
 * breadcrumb). The page.main.title block is hidden via the id_20 layout;
 * collapse its now-empty container so the grid starts right after the
 * breadcrumb, matching the reference. */
.cl-listing.category-women .cl-category-title {
  display: none;
}

/* Row/col flex grid — matches Claue theme's row-N / col system */
.landing-categories {
  width: 100%;
}

.landing-categories-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

/* Default (mobile-first): 1 column */
.landing-grid-item.col {
  box-sizing: border-box;
  padding: 0 15px;
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
  margin-bottom: 30px;
}

/* ≥572px (tablet): 2 columns */
@media (min-width: 572px) and (max-width: 1199.98px) {
  .landing-categories.row-tablet-2 .landing-grid-item.col {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* ≥1200px (desktop): 3 columns */
@media (min-width: 1200px) {
  .landing-categories.row-3 .landing-grid-item.col {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
  }
}

/* ── Tile component ───────────────────────────────────────────────────────── */
.landing-categories-item {
  margin-bottom: 40px;
}

.landing-categories-thumb {
  position: relative;
  overflow: hidden;
}

.landing-categories-thumb img.img-responsive {
  width: 100%;
  display: block;
  min-width: 100%;
}

/* Product count badge — hidden until hover, slides up */
.landing-categories-count {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.4);
  font-weight: 600;
  color: #fff;
  font-size: 14px;
  padding: 10px;
  transition: transform 0.3s;
  transform: translateY(100%);
}

.landing-categories-item:hover .landing-categories-count {
  transform: translateY(0);
}

/* Category name + description + CTA */
.landing-categories-detail {
  padding-top: 20px;
}

.landing-categories-detail h2 {
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 8px 0;
}

.landing-categories-detail h2 a {
  color: #000;
  text-decoration: none;
}

.landing-categories-detail h2 a:hover {
  color: #cf9683; /* Claue accent color from reference hover */
}

.landing-categories-shortdes {
  padding-top: 0;
}

.landing-categories-shortdes .category-description {
  margin: 0;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

/* "Shop Now" button — matches Claue .btn.btn-primary (reference:
 * 145x40, padding 0 36px, font 14px, bg #000, title-case "Shop Now"). */
.landing-categories-detail .btn.btn-primary {
  display: inline-block;
  margin-top: 12px;
  padding: 0 36px;
  line-height: 38px;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.02em;
  border: 1px solid #000;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.landing-categories-detail .btn.btn-primary.margin-top10 {
  margin-top: 10px;
}

.landing-categories-detail .btn.btn-primary:hover {
  background: #fff;
  color: #000;
}

/* ── ITER-1: Static fixture additions ────────────────────────────────────── */
/* Guard: .cl-fixture-grid and .cl-filter-fixture only exist in iter-1.
   Remove alongside list.phtml fixture block in iter-2 cleanup. */

/* Fixture grid pagination */
.cl-listing .cl-fixture-pages {
  display: flex;
  justify-content: flex-end;
  margin: 24px 0 0 0;
}

.cl-listing .cl-fixture-pages .items {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 4px;
}

.cl-listing .cl-fixture-pages .item a,
.cl-listing .cl-fixture-pages .item .page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  font-size: 13px;
  color: #444;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.cl-listing .cl-fixture-pages .item.current .page {
  background: #222;
  color: #fff;
  border-color: #222;
}

.cl-listing .cl-fixture-pages .item a:hover {
  background: #222;
  color: #fff;
  border-color: #222;
}

/* Fixture sidebar filter: accordion chevron */
.cl-listing .cl-filter-chevron {
  font-style: normal;
  font-weight: 400;
  color: #888;
  flex-shrink: 0;
}

/* Fixture sidebar: price range slider — minimal styling matching reference */
.cl-listing .cl-fixture-range .slider-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cl-listing .cl-fixture-range .cl-range-label {
  font-size: 13px;
  color: #444;
}

.cl-listing .cl-fixture-range .ui-slider {
  position: relative;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin: 8px 0;
}

.cl-listing .cl-fixture-range .ui-slider-range {
  position: absolute;
  height: 100%;
  background: #222;
  border-radius: 2px;
}

.cl-listing .cl-fixture-range .ui-slider-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: #fff;
  border: 2px solid #222;
  border-radius: 50%;
  cursor: pointer;
  display: inline-block;
}

.cl-listing .cl-fixture-range .actions-primary {
  margin-top: 12px;
}

.cl-listing .cl-fixture-range .range-slider-action {
  display: inline-block;
  padding: 6px 18px;
  background: #222;
  color: #fff;
  font-size: 12px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}

.cl-listing .cl-fixture-range .range-slider-action:hover {
  background: #444;
}

.cl-listing .cl-fixture-range [data-role="message-box"] {
  margin-top: 6px;
  font-size: 12px;
  color: #888;
}

/* Fixture sidebar: color filter swatches */
.cl-listing .cl-fixture-color-filter .swatch-attribute-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
}

.cl-listing .cl-fixture-color-filter .swatch-option-link-layered {
  text-decoration: none;
  display: inline-block;
}

.cl-listing .cl-fixture-color-filter .swatch-option.color {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  cursor: pointer;
  display: inline-block;
  transition: transform 0.15s, box-shadow 0.15s;
}

.cl-listing .cl-fixture-color-filter .swatch-option.color:hover {
  transform: scale(1.2);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.2);
}

/* ── Men Category (L1, 1-column layout) ─────────────────────────────────── */
/* Reference: https://claue.arrowtheme.com/men.html
 * Men is a top-level category — no sidebar, full-width product grid.
 * The body class .category-men is set by Magento core per category URL key.
 * In iter-2, use catalog_category_view_id_{men_id}.xml with layout 1column.
 */
.cl-listing.category-men .sidebar.sidebar-main,
.cl-listing.category-men .sidebar.sidebar-additional {
  display: none;
}

.cl-listing.category-men .column.main {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
}

/* ── Sale Category (L1, 1-column layout) ────────────────────────────────── */
/* Reference pattern matches men — top-level sale category, no sidebar. */
.cl-listing.category-sale .sidebar.sidebar-main,
.cl-listing.category-sale .sidebar.sidebar-additional {
  display: none;
}

.cl-listing.category-sale .column.main {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
}
