/* Shop All — layout aligned with knesko.com/collections/all */
.shop-page-body {
  --shop-font: 'Montserrat', 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ── Hero (collection-view-hero) ── */
.shop-hero {
  background: #f2f2f2;
  position: relative;
}

.shop-hero__inner {
  position: relative;
  min-height: 50rem;
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0;
}

.shop-hero__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.shop-hero__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.shop-hero__img--mobile {
  display: none;
}

.shop-hero__text {
  position: relative;
  z-index: 2;
  width: 45.7%;
  max-width: 100%;
  padding: clamp(2rem, 4vw, 3rem) clamp(2rem, 6vw, 6rem);
  color: #000;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.shop-page-title {
  font-family: var(--shop-font);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.038em;
  margin: 0 0 clamp(1rem, 2vw, 2rem);
  color: inherit;
}

.shop-intro {
  font-family: var(--shop-font);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.3;
  letter-spacing: 0;
  color: inherit;
  margin: 0;
}

/* ── Collection section ── */
.shop-collection {
  background: #fff;
}

.shop-collection__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  box-sizing: border-box;
}

@media (min-width: 1300px) {
  .shop-collection__inner {
    padding-left: 3.4rem;
    padding-right: 3.4rem;
  }
}

/* ── Toolbar: single row — Filter + count | Sort By ── */
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.2rem 0 1.6rem;
  border-top: 1px solid #e5e5e5;
  margin-bottom: 0;
  position: relative;
  z-index: 5;
}

.shop-toolbar__left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.shop-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--shop-font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.shop-filter-toggle__label {
  text-transform: uppercase;
}

.shop-result-count {
  font-family: var(--shop-font);
  font-size: 0.875rem;
  color: #767676;
}

.shop-sort-wrap {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-shrink: 0;
  margin-left: auto;
}

.shop-sort-label {
  font-family: var(--shop-font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #767676;
  white-space: nowrap;
}

.shop-sort {
  font-family: var(--shop-font);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111;
  border: 1px solid #111;
  border-radius: 0;
  background: #fff;
  padding: 0.55rem 2.25rem 0.55rem 0.85rem;
  min-width: 148px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M17 9L12 14L7 9L6 10L12 16L18 10L17 9Z' fill='%230E1419'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1.25rem;
}

.shop-sort-toggle {
  display: none;
  align-items: center;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--shop-font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
}

/* ── Body: sidebar filters + product grid (no overlap) ── */
.shop-body {
  display: block;
}

@media (min-width: 750px) {
  .shop-body--filters-open {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }
}

.shop-filters {
  box-sizing: border-box;
}

.shop-filters[hidden] {
  display: none !important;
}

@media (min-width: 750px) {
  .shop-filters {
    position: static;
    width: auto;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    overflow-x: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    z-index: auto;
  }

  .shop-body--filters-open .shop-filters {
    position: sticky;
    top: 88px;
    align-self: start;
  }

  .shop-filters__apply {
    display: none !important;
  }
}

.shop-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.shop-filters__title {
  font-family: var(--shop-font);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

.shop-filters__close {
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: #111;
  padding: 0.35rem;
  margin: -0.35rem;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shop-selected {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #eee;
}

.shop-selected.is-empty {
  display: none;
}

.shop-selected__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  margin: 0 0 0.5rem;
}

.shop-selected__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.shop-selected__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  background: #f7f7f7;
  border: 1px solid #ddd;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}

.shop-selected__clear {
  font-size: 0.75rem;
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  color: #111;
  padding: 0;
}

.shop-filter-group {
  border-bottom: 1px solid #eee;
  padding: 0.85rem 0;
}

.shop-filter-group summary {
  font-family: var(--shop-font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.shop-filter-group summary::-webkit-details-marker {
  display: none;
}

.shop-filter-group__body {
  display: grid;
  gap: 0.65rem;
  padding-top: 0.85rem;
}

.shop-filter-group__body--scroll {
  max-height: 200px;
  overflow-y: auto;
}

.shop-filter__option {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-family: var(--shop-font);
  font-size: 0.875rem;
  font-weight: 500;
  color: #737373;
  cursor: pointer;
  line-height: 1.4;
}

.shop-filter__option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.shop-filter__option input:checked + span {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

.shop-filter__option span {
  transition: color 0.2s;
}

.shop-filters__apply {
  display: none;
}

.shop-main {
  min-width: 0;
  padding-top: 0;
  width: 100%;
}

#productListContent.product-list-grid,
#productListContent.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(158px, 1fr));
  gap: 20px;
  row-gap: 48px;
  padding: 0;
  max-width: none;
  margin: 0;
  justify-content: space-between;
}

.shop-body--filters-open #productListContent.shop-grid,
.shop-body--filters-open #productListContent.product-list-grid {
  grid-template-columns: repeat(2, minmax(158px, 1fr));
}

/* ── Product cards ── */
.shop-card {
  background: #fff;
  overflow: hidden;
}

.shop-card--hidden {
  display: none;
}

.shop-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.shop-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #fafafa;
}

.shop-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.shop-card__link:hover .shop-card__media img,
.shop-card__link:focus-visible .shop-card__media img {
  transform: scale(1.03);
}

.shop-card__quick {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  font-family: var(--shop-font);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: #000;
  color: #fff;
  border: none;
  white-space: nowrap;
  box-sizing: border-box;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.28s ease;
}

.shop-card__link:hover .shop-card__quick,
.shop-card__link:focus-visible .shop-card__quick {
  transform: translateY(0);
  opacity: 1;
  background: #000;
  color: #fff;
}

@media (hover: none) {
  .shop-card__quick {
    transform: translateY(0);
    opacity: 1;
  }
}

.shop-card__body {
  padding: 1.6rem 0 0;
  text-align: left;
}

.shop-card__vendor {
  font-family: var(--shop-font);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #737373;
  margin: 0 0 0.35rem;
}

.shop-card__title {
  font-family: var(--shop-font);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 0.4rem;
  color: #111;
}

.shop-card__rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  color: #767676;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.shop-card__stars {
  display: none;
}

.shop-card__rating-num {
  color: #767676;
}

.shop-card__reviews {
  color: #767676;
}

.shop-card__price-range {
  font-family: var(--shop-font);
  font-size: 0.875rem;
  font-weight: 400;
  color: #767676;
  margin: 0 0 0.1rem;
}

.shop-card__price-from {
  font-family: var(--shop-font);
  font-size: 0.875rem;
  font-weight: 400;
  color: #111;
  margin: 0;
}

.product-list-empty,
.product-list-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: #888;
  font-family: var(--shop-font);
}

.shop-show-more {
  display: block;
  width: 100%;
  max-width: none;
  margin: 5rem auto 0;
  font-family: var(--shop-font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  color: #111;
  border: none;
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
  padding: 1.4rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.shop-show-more:hover {
  background: #111;
  color: #fff;
}

.shop-show-more.is-hidden {
  display: none;
}

@media (min-width: 600px) {
  #productListContent.shop-grid,
  #productListContent.product-list-grid {
    grid-template-columns: repeat(3, minmax(158px, 1fr));
    row-gap: 56px;
  }

  .shop-body--filters-open #productListContent.shop-grid {
    grid-template-columns: repeat(2, minmax(158px, 1fr));
  }
}

@media (min-width: 1024px) {
  .shop-hero__inner {
    min-height: 60rem;
  }
}

@media (min-width: 980px) {
  #productListContent.shop-grid,
  #productListContent.product-list-grid {
    grid-template-columns: repeat(4, minmax(158px, 300px));
    row-gap: 70px;
  }

  .shop-body--filters-open #productListContent.shop-grid {
    grid-template-columns: repeat(3, minmax(158px, 300px));
  }

  .shop-show-more {
    width: auto;
    min-width: 200px;
    margin-top: 8rem;
    border: 2px solid #111;
    padding: 1.6rem 3rem;
  }
}

@media (max-width: 1023px) {
  .shop-hero__inner {
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .shop-hero__image {
    position: relative;
    height: auto;
    min-height: 200px;
  }

  .shop-hero__img--desktop {
    display: none;
  }

  .shop-hero__img--mobile {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
  }

  .shop-hero__text {
    width: 100%;
    padding: 2rem;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .shop-page-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 749px) {
  .shop-page-body {
    background: #faf8f5;
  }

  .shop-page-body .knesko-nav__hamburger,
  .shop-page-body .knesko-nav__icon-btn[href="/pages/account"] {
    display: none !important;
  }

  .shop-hero {
    background: #faf8f5;
  }

  .shop-collection {
    background: #faf8f5;
  }

  .shop-hero__text {
    text-align: left;
    padding: 1.25rem 0 1.5rem;
  }

  .shop-page-title {
    text-align: left;
    font-size: 1.625rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
  }

  .shop-intro {
    text-align: left;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #333;
  }

  .shop-hero__image {
    min-height: 0;
  }

  .shop-collection__inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .shop-body--filters-open {
    display: block;
  }

  .shop-toolbar {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 1rem 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
  }

  .shop-toolbar__left {
    width: auto;
    gap: 0;
  }

  .shop-filter-toggle__icon {
    display: none;
  }

  .shop-result-count {
    display: none;
  }

  .shop-sort-wrap {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
    position: relative;
  }

  .shop-sort-label {
    display: none;
  }

  .shop-sort-toggle {
    display: inline-flex;
  }

  .shop-sort {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: none;
    padding: 0;
    min-width: 0;
    pointer-events: none;
  }

  #productListContent.shop-grid,
  #productListContent.product-list-grid {
    gap: 16px;
    row-gap: 40px;
  }

  .shop-card {
    background: transparent;
  }

  .shop-card__quick {
    display: none !important;
  }

  .shop-card__body {
    padding-top: 1rem;
  }

  .shop-card__title {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.35;
  }

  .shop-card__rating {
    text-transform: none;
    letter-spacing: 0;
  }

  .shop-card__stars {
    display: inline;
    color: #c9a227;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
  }

  .shop-card__rating-num {
    display: none;
  }

  .shop-card__price-from {
    display: none;
  }

  .shop-card__body:not(:has(.shop-card__price-range)) .shop-card__price-from {
    display: block;
    color: #111;
    font-size: 0.875rem;
    margin: 0;
  }

  .shop-card__price-range {
    color: #111;
    font-size: 0.875rem;
    margin: 0;
  }

  .shop-filters {
    position: fixed;
    inset: 0;
    z-index: 9500;
    width: 100%;
    max-width: none;
    max-height: none;
    border: none;
    box-shadow: none;
    padding: 0;
    background: rgba(0, 0, 0, 0.45);
  }

  .shop-filters:not([hidden]) {
    display: block !important;
  }

  .shop-filters__panel {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(320px, 88vw);
    overflow-y: auto;
    background: #fff;
    padding: 0 1.25rem 2rem;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
  }

  .shop-filters__head {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    padding: 1rem 0 0.75rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
  }

  .shop-filters__title {
    font-size: 0.8125rem;
  }

  .shop-filters__apply {
    display: block;
    width: 100%;
    margin-top: auto;
    position: sticky;
    bottom: 0;
    font-family: var(--shop-font);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #111;
    color: #fff;
    border: none;
    padding: 1rem;
    cursor: pointer;
  }
}

body.shop-filters-open {
  overflow: hidden;
}

.shop-filter-toggle[aria-expanded="true"] .shop-filter-toggle__label {
  text-decoration: underline;
}

@media (min-width: 750px) {
  .shop-filter-toggle {
    display: inline-flex;
  }
}

@media (max-width: 749px) {
  .shop-filter-toggle {
    display: inline-flex;
  }
}
