/* Catalog surfaces and density, shared by category and brand archives. */
body.lk-catalog-v2 #lk-store {
  background-color: var(--lk-catalog-surface);
}

body.lk-catalog-v2 #lk-store .breadcrumbs {
  min-height: 0;
  gap: 8px;
  padding-block: 12px 10px;
}

body.lk-catalog-v2 #lk-store .breadcrumbs [aria-current="page"] {
  color: var(--ink);
}

body.lk-catalog-v2 #lk-store .result-toolbar {
  align-items: center;
  margin-bottom: 14px;
}

body.lk-catalog-v2 #lk-store .result-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  min-width: 0;
}

body.lk-catalog-v2 #lk-store .result-heading h1 {
  font-size: clamp(20px, 2.5vw, 26px);
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

body.lk-catalog-v2 #lk-store .result-toolbar #result-count {
  margin: 0;
  font-size: 13px;
  white-space: nowrap;
}

body.lk-catalog-v2 #lk-store .sort-controls select {
  height: 40px;
  padding-block: 7px;
}

body.lk-catalog-v2 #lk-store .products {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.lk-catalog-v2 #lk-store .product {
  min-width: 0;
  border: 0;
  border-radius: 12px;
  background: #fff;
}

body.lk-catalog-v2 #lk-store .product-picture:focus-visible {
  outline-offset: -4px;
}

body.lk-catalog-v2 #lk-store .product-info {
  padding: 3px 12px 14px;
  border-top: 0;
}

body.lk-catalog-v2 #lk-store .product-brand {
  margin-bottom: 4px;
}

body.lk-catalog-v2 #lk-store .product-name {
  min-height: 0;
  overflow-wrap: anywhere;
}

body.lk-catalog-v2 #lk-store .product-meta {
  min-height: 0;
  margin: 6px 0 12px;
}

body.lk-catalog-v2 #lk-store .product-price {
  margin-bottom: 8px;
}

body.lk-catalog-v2 #lk-store .product .primary {
  width: auto;
  min-height: 44px;
  padding: 7px 12px;
  border-radius: 8px;
}

body.lk-catalog-v2 #lk-store .product .stock {
  margin-top: 6px;
}

body.lk-catalog-v2 #lk-store .product .stock.out {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0;
}

body.lk-catalog-v2 #lk-store .catalog-continuation.is-automatic {
  min-height: 40px;
}

body.lk-catalog-v2 #lk-store .catalog-load-status:not(:empty) {
  padding: 12px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

body.lk-catalog-v2 #lk-store .filter-category:is(:hover, .selected) {
  background: #eae9e7;
}

@media (min-width: 761px) {
  /* The shared header keeps its dimensions when entering the catalog. */
  body.lk-catalog-v2 :is(#lk-store, #lk-retail-header) .container {
    max-width: var(--lk-storefront-width, 1236px);
  }
  body.lk-catalog-v2 #lk-store .shop-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 24px;
  }
  body.lk-catalog-v2 #lk-store .filter-head {
    min-height: 40px;
    margin-bottom: 14px;
  }
  body.lk-catalog-v2 #lk-store .products { gap: 16px 14px; }
  body.lk-catalog-v2 #lk-store .product-info { padding: 4px 14px 14px; }
  body.lk-catalog-v2 #lk-store .product-name {
    font-size: 14px;
    line-height: 1.5;
  }
  body.lk-catalog-v2 #lk-store .product-meta {
    font-size: 11px;
    line-height: 1.5;
  }
  body.lk-catalog-v2 #lk-store .product-price {
    font-size: 21px;
    line-height: 1.4;
  }
  body.lk-catalog-v2 #lk-store .product .primary {
    min-height: 38px;
    font-size: 13px;
  }
  body.lk-catalog-v2 #lk-store .product .stock.out {
    min-height: 38px;
  }
}

@media (max-width: 760px) {
  body.lk-catalog-v2 #lk-store .result-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 10px;
  }
  body.lk-catalog-v2 #lk-store .sort-controls {
    flex: 1 1 235px;
    margin: 0;
    gap: 8px;
  }
  body.lk-catalog-v2 #lk-store .sort-controls select,
  body.lk-catalog-v2 #lk-store #filter-toggle {
    height: 44px;
  }
  body.lk-catalog-v2 #lk-store .sort-controls select {
    padding-right: 19px;
  }
}

@media (min-width: 900px) {
  body.lk-catalog-v2 #lk-store .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  body.lk-catalog-v2 #lk-store .products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  body.lk-catalog-v2 #lk-store .products { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Keep the sorting label readable beside mobile filters. */
@media(max-width:760px) {
  body.lk-catalog-v2 #lk-store .sort-controls { flex-basis: 100%; width: 100%; flex-wrap: wrap; }
  body.lk-catalog-v2 #lk-store .lk-sort-form { flex: 1 1 170px; min-width: 170px; }
}

body.lk-catalog-v2 #lk-store .lk-attribute-filters > summary {
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

body.lk-catalog-v2 #lk-store .lk-attribute-filter {
  margin-top: 10px;
}

body.lk-catalog-v2 #lk-store .lk-attribute-filter > summary {
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

body.lk-catalog-v2 #lk-store .lk-attribute-filter ul {
  list-style: none;
  margin: 4px 0 0;
  padding: 0 4px;
  max-height: 230px;
  overflow: auto;
}

body.lk-catalog-v2 #lk-store .lk-attribute-filter li {
  display: flex;
  gap: 6px;
  align-items: baseline;
  margin: 0;
  font-size: 13px;
}

body.lk-catalog-v2 #lk-store .lk-attribute-filter li a {
  flex: 1;
  padding: 6px 0;
  overflow-wrap: anywhere;
}

body.lk-catalog-v2 #lk-store .lk-attribute-filter li.chosen a,
body.lk-catalog-v2 #lk-store .lk-attribute-filter li a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.lk-catalog-v2 #lk-store .lk-attribute-filter .count {
  color: var(--muted);
}

@media (max-width: 760px) {
  body.lk-catalog-v2 #lk-store .product-picture {
    height: clamp(84px, 23vw, 128px);
    aspect-ratio: auto;
  }
}

@media (min-width: 375px) and (max-width: 760px) {
  body.lk-catalog-v2 #lk-store .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 8px;
  }

  body.lk-catalog-v2 #lk-store .product-info {
    padding: 4px 8px 10px;
  }

  body.lk-catalog-v2 #lk-store .product-name {
    font-size: 12px;
    line-height: 1.35;
  }

  body.lk-catalog-v2 #lk-store .product-meta {
    line-height: 1.4;
    margin: 5px 0 8px;
  }

  body.lk-catalog-v2 #lk-store .product-price {
    font-size: clamp(15px, 4vw, 19px);
    min-height: 0;
    margin-bottom: 6px;
  }

  body.lk-catalog-v2 #lk-store .product .primary {
    width: 100%;
    padding-inline: 3px;
    font-size: 11px;
  }
}
