.fs-collection {
  background: #f3ede5;
  color: #493022;
  padding-bottom: clamp(28px, 4vw, 60px);
}
.fs-collection__inner { max-width: 1560px; margin-inline: auto; padding-inline: clamp(16px, 3.5vw, 48px); }
.fs-collection__masthead {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(260px, 34vw, 490px);
  overflow: hidden;
  background: #1a1a1a;
  color: #fff8ee;
}
.fs-collection__masthead > .fs-collection__inner {
  width: 100%;
  box-sizing: border-box;
  padding-block: clamp(24px, 4vw, 48px);
}
.fs-collection__masthead > .fs-collection__campaign {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
}
.fs-collection__masthead::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, #190e1199, transparent 65%),
              rgba(25, 14, 17, var(--fs-banner-overlay, .45));
}
.fs-collection__label {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, .84);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.fs-collection__masthead h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.03em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .32);
}
.fs-collection__description { max-width: 56ch; margin-top: 12px; color: inherit; }
.fs-collection__description p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .86);
}
@media (max-width: 749px) {
  .fs-collection__label { margin-bottom: 8px; font-size: 10px; }
  .fs-collection__masthead h1 { font-size: clamp(24px, 7vw, 32px); }
  .fs-collection__description p { font-size: 13px; }
}
.fs-collection__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding-block: 22px 26px;
}
.fs-collection__categories { display: flex; flex-wrap: wrap; gap: 7px; }
.fs-collection__categories a {
  padding: 10px 14px;
  border-radius: 6px;
  background: #eae0d6;
  color: #493022;
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
}
.fs-collection__categories a:hover { background: #e3d3c6; }
.fs-collection__categories a[aria-current] { background: #d70104; color: #fff8ee; }
.fs-collection .collection-filters { margin: 0; }
.fs-collection .collection-filters__item { padding: 0; }
.fs-collection .collection-filters__label { margin-right: 8px; font-size: 12px; }
.fs-collection .collection-filters__sort {
  min-height: 38px;
  padding: 7px 28px 7px 10px;
  border: 0;
  border-radius: 6px;
  background: #fffaf5;
  color: #493022;
  font: inherit;
  font-size: 12px;
}
.fs-collection .collection-filters__sort + .icon-caret { right: 9px; }
.fs-collection #main-collection-product-grid,
.fs-collection__skeleton {
  display: grid;
  grid-template-columns: repeat(var(--fs-collection-columns, 4), minmax(0, 1fr));
  gap: clamp(26px, 3vw, 44px) clamp(14px, 1.8vw, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.fs-collection #main-collection-product-grid > li { width: auto; max-width: none; min-width: 0; padding: 0; }
.fs-collection .product-card-wrapper { background: transparent; }
.fs-collection .card--product {
  overflow: hidden;
  border-radius: 7px;
  background: #eae0d6;
}
.fs-collection .card-information { padding: 13px 2px 0; }
.fs-collection .card-information__text {
  display: block;
  padding: 0;
  color: #302321;
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.fs-collection .card-information .price {
  margin: 5px 0 0;
  color: #d70104;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.fs-collection a:focus-visible, .fs-collection select:focus-visible { outline: 2px solid #d70104; outline-offset: 3px; }
body:has(.fs-collection) .fs-footer.fs-b-footer { margin-top: 0; }
@media (max-width: 990px) {
  .fs-collection #main-collection-product-grid,
.fs-collection__skeleton { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 749px) {
  .fs-collection #main-collection-product-grid,
.fs-collection__skeleton { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.fs-collection-preview__photo { aspect-ratio: 1; }
.fs-collection-preview__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fs-collection .fs-product-card > a > add-to-cart-button { display: none; }
.fs-collection .fs-product-plus {
  display: grid;
  place-items: center;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: #fff8ee;
  color: #d70104;
  box-shadow: 0 2px 8px #2112111a;
}
.fs-collection .fs-product-plus svg { width: 19px; height: 19px; }
.fs-collection .fs-product-plus:hover,
.fs-collection .fs-product-plus:focus-visible { background: #d70104; color: #fff8ee; }
.fs-collection__toolbar { row-gap: 16px; }
.fs-collection .collection-filters__field { display: flex; align-items: center; gap: 10px; }
.fs-collection .collection-filters__label { margin: 0; color: #745546; white-space: nowrap; }
.fs-collection__sort-control { position: relative; color: #d70104; }
.fs-collection__sort-control svg { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.fs-collection .collection-filters__sort,
.fs-collection__sort-control select {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: none !important;
  min-height: 40px;
  padding: 8px 34px 8px 13px;
  border: 1px solid #ded0c2;
  cursor: pointer;
}
.fs-collection__pagebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: clamp(28px, 4vw, 50px);
  padding: 14px clamp(12px, 2vw, 22px);
  border-radius: 7px;
  background: #eae0d6;
}
.fs-collection__pagebar-label {
  color: #604841;
  font-size: 12px;
  font-weight: 600;
}
.fs-collection .pagination-wrapper { margin: 0 0 0 auto; }
.fs-collection .fs-collection__preview-pagination { margin-left: auto; }
.fs-collection .pagination__list, .fs-collection__preview-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
}
.fs-collection .pagination__list > li { flex: 0 0 auto; max-width: none; margin: 0; }
.fs-collection .pagination__item,
.fs-collection__preview-pagination > :is(a, span) {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: auto;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 6px;
  background: #fffaf5;
  color: #d70104;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
}
.fs-collection .pagination__item::after { content: none; }
.fs-collection .pagination__item[aria-current="page"],
.fs-collection__preview-pagination > [aria-current="page"] { background: #d70104; color: #fff8ee; }
.fs-collection a.pagination__item:hover, .fs-collection__preview-pagination > a:hover { background: #e5d7ca; }
@media (max-width: 749px) {
  .fs-collection__masthead > .fs-collection__campaign { object-position: 65% center; }
  .fs-collection .fs-product-plus { top: 8px; right: 8px; width: 34px; height: 34px; }
}

.fs-collection .card--product { position: relative; }
.fs-collection .card__badge:is(.card__badge-on_sale, .card__badge-sold_out),
.fs-collection .fs-collection-preview__badge {
  position: absolute;
  z-index: 2;
  inset: 0 auto auto 0;
  margin: 0;
  pointer-events: none;
}
.fs-collection .card__inner:has(.card__badge-sold_out) .card__badge-on_sale { display: none; }
.fs-collection .card__badge:is(.card__badge-on_sale, .card__badge-sold_out) .badge,
.fs-collection .fs-collection-preview__badge {
  display: inline-block;
  padding: 8px 13px;
  border: 0;
  border-radius: 0 0 8px 0;
  background: #d70104;
  color: #fff8ee;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.fs-collection .card__badge-sold_out .badge,
.fs-collection .fs-collection-preview__badge.card__badge-sold_out { background: #312526; }
.fs-collection .card__badge .badge-ribbon::before,
.fs-collection .card__badge .badge-ribbon::after { content: none; }
.fs-collection .card-information { padding-top: 15px; }
.fs-collection .card-information .price { margin-top: 6px; }


.fs-collection__skeleton-item::before,
.fs-collection__skeleton-item::after {
  content: '';
  display: block;
  background: #e8ddd2;
}
.fs-collection__skeleton-item::before {
  aspect-ratio: 1;
  border-radius: 7px;
}
.fs-collection__skeleton-item::after {
  width: 62%;
  height: 11px;
  margin: 15px 0 22px;
  border-radius: 4px;
}
@media (min-width: 750px) and (max-width: 990px) {
  .fs-collection__skeleton-item:nth-child(4) { display: none; }
}

/* Neutralise native theme image insets and ribbon dimensions to match the preview cards. */
.fs-collection .product-card-wrapper.card-wrapper { border:0; border-radius:0; box-shadow:none; background:transparent; overflow:visible; }
.fs-collection .card.card--product { border-radius:7px; overflow:hidden; }
.fs-collection .card__inner { position:relative; }
.fs-collection .card__inner .media > img { inset:0 !important; width:100% !important; height:100% !important; max-width:none; margin:0; object-fit:cover; border-radius:0; }
.fs-collection .card__badge:is(.card__badge-on_sale,.card__badge-sold_out) { top:0; left:0; right:auto; bottom:auto; width:auto; height:auto; transform:none; }
.fs-collection .card__badge .badge.badge-ribbon { position:static; display:inline-flex; align-items:center; justify-content:center; width:auto; min-width:0; max-width:none; height:auto; min-height:30px; padding:8px 13px; margin:0; transform:none; clip-path:none; writing-mode:horizontal-tb; text-indent:0; border:0; border-radius:0 0 8px 0; box-sizing:border-box; line-height:1.3; }
.fs-collection .card-information__text a { text-decoration:none; color:inherit; }
.fs-collection .card-information { padding:15px 0 0; }

/* Keep sale and comparison amounts on a shared baseline, without native DD offsets. */
.fs-collection .price--on-sale .price__sale { display:flex; flex-wrap:wrap; align-items:baseline; gap:5px 9px; }
.fs-collection .price__sale>dt { display:none; }
.fs-collection .price__sale>dd { margin:0; padding:0; line-height:1.35; }
.fs-collection .price--on-sale:not(.price--no-compare) .price__sale>dd { display:flex; align-items:baseline; }
.fs-collection .price__sale .price-item { display:inline-block; margin:0; font-size:13px; line-height:1.35; vertical-align:baseline; }
.fs-collection .price__sale .price-item--regular { font-size:12px; color:#92735e; text-decoration-thickness:1px; }

/* Sold out is always black; it must outrank the shared sale-ribbon rule. */
.fs-collection .card__badge.card__badge-sold_out .badge.badge-ribbon,
.fs-collection .fs-collection-preview__badge.card__badge-sold_out { background:#1a1a1a; color:#fffaf5; }

/* Sale and comparison prices share weight, size and baseline. */
.fs-collection .price__sale .price-item,
.fs-collection .price__sale .price-item--regular,
.fs-collection .price__regular .price-item { font-family:var(--font-body-family); font-size:13px; font-weight:700; line-height:1.4; }
.fs-collection .price .price-item .money { font:inherit; }

/* Mobile-native Shop / Collection page polish (strictly max-width: 749px; desktop 100% untouched). */
@media (max-width: 749px) {
  .fs-collection {
    padding-bottom: 36px;
  }
  .fs-collection__inner {
    padding-inline: 16px;
  }
  .fs-collection__masthead {
    min-height: 270px;
  }
  .fs-collection__masthead > .fs-collection__inner {
    padding: 26px 16px 24px;
  }
  .fs-collection__masthead::before {
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.14) 18%, rgba(26, 26, 26, 0.82) 100%);
  }

  /* Single-row swipeable category pills + clean sort utility bar */
  .fs-collection__toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-block: 16px 18px;
  }
  .fs-collection__categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-padding-left: 16px;
    margin: 0 -16px;
    padding: 2px 16px 4px;
    gap: 8px;
  }
  .fs-collection__categories::-webkit-scrollbar {
    display: none;
  }
  .fs-collection__categories a {
    flex: 0 0 auto;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 500;
  }
  .fs-collection .collection-filters {
    margin: 0 -16px;
    width: calc(100% + 32px);
    padding: 12px 16px 0;
    border-top: 1px solid #e4d8cc;
    box-sizing: border-box;
  }
  .fs-collection .collection-filters__field {
    width: 100%;
    justify-content: space-between;
  }
  .fs-collection__sort-control {
    flex: 0 1 200px;
  }
  .fs-collection .collection-filters__sort,
  .fs-collection__sort-control select {
    width: 100%;
    min-height: 40px;
    border-radius: 8px;
    background: #fff;
  }

  /* 2-column mobile product grid with crisp rounded cards & aligned 2-line titles */
  .fs-collection #main-collection-product-grid,
  .fs-collection__skeleton {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
  }
  .fs-collection .card.card--product,
  .fs-collection .card--product {
    border-radius: 12px;
    border: 1px solid rgba(73, 48, 34, 0.07);
    background: #eae0d6;
  }
  .fs-collection .fs-product-plus {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(255, 250, 245, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .fs-collection .card__badge:is(.card__badge-on_sale, .card__badge-sold_out) .badge,
  .fs-collection .card__badge .badge.badge-ribbon,
  .fs-collection .fs-collection-preview__badge {
    min-height: 26px;
    padding: 5px 10px;
    border-radius: 0 0 10px 0;
  }
  .fs-collection .card-information {
    padding: 10px 2px 0;
  }
  .fs-collection .card-information__text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .fs-collection .card-information .price {
    margin-top: 5px;
  }

  /* Touch-friendly centered pagination bar */
  .fs-collection__pagebar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin-top: 28px;
    padding: 14px 12px;
    border-radius: 12px;
  }
  .fs-collection .pagination-wrapper,
  .fs-collection .fs-collection__preview-pagination {
    margin-left: 0;
    width: 100%;
  }
  .fs-collection .pagination__list,
  .fs-collection__preview-pagination {
    justify-content: center;
    gap: 6px;
  }
  .fs-collection .pagination__item,
  .fs-collection__preview-pagination > :is(a, span) {
    min-width: 40px;
    height: 40px;
    border-radius: 8px;
  }

  /* Mobile-only Sort By bottom-sheet drawer */
  .fs-sort-backdrop {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(26, 26, 26, 0.52);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .24s ease;
    will-change: opacity;
  }
  .fs-sort-backdrop.is-open {
    opacity: 1;
  }
  .fs-sort-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #fff;
    border-radius: 12px 12px 0 0;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    box-shadow: 0 -14px 40px rgba(26, 26, 26, 0.22);
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.22, 1, .36, 1);
    overscroll-behavior: contain;
    will-change: transform;
  }
  .fs-sort-sheet.is-open {
    transform: translateY(0);
  }
  .fs-sort-sheet__handle {
    display: block !important;
    width: 36px;
    height: 4px;
    margin: 10px auto 6px;
    border-radius: 99px;
    background: #ddd4cb;
  }
  .fs-sort-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px 14px;
    border-bottom: 1px solid #ede6df;
  }
  .fs-sort-sheet__title {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #493022;
  }
  .fs-sort-sheet__close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #ede6df;
    border-radius: 8px;
    background: #fff;
    color: #493022;
    cursor: pointer;
  }
  .fs-sort-sheet__list {
    list-style: none;
    margin: 0;
    padding: 4px 0 0;
    max-height: 62dvh;
    overflow-y: auto;
  }
  .fs-sort-sheet__list li {
    border-bottom: 1px solid #f2ece6;
  }
  .fs-sort-sheet__list li:last-child {
    border-bottom: 0;
  }
  .fs-sort-sheet__opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 14px 20px;
    border: 0;
    background: transparent;
    color: #30221e;
    font: 500 15px/1.3 var(--font-body-family, Chronica, sans-serif);
    text-align: left;
    cursor: pointer;
  }
  .fs-sort-sheet__opt:active {
    background: #faf6f2;
  }
  .fs-sort-sheet__opt.is-selected {
    color: #d70104;
    font-weight: 600;
  }
  .fs-sort-sheet__opt svg {
    flex: none;
    color: #d70104;
  }
}
