.dark .collection-template { color: var(--color-white, #fff); }
.collection-template__title { margin-bottom: 1rem; }
.collection-template__title h2 { font-weight: 700; font-size: 1.875rem; line-height: 1.2; }
.collection-template__short-description { margin-bottom: 1rem; }
@media (min-width: 1200px) {
  .collection-template__short-description { margin-bottom: 2rem; }
}
.collection-template__short-description-content {
  font-size: var(--font-base, 1rem);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}
@media (min-width: 1200px) {
  .collection-template__short-description-content { font-size: var(--font-lg, 1.125rem); }
}
.collection-template__wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px dotted currentColor;
}
@media (min-width: 1200px) {
  .collection-template__wrapper { grid-template-columns: 250px 1fr; gap: 2rem; align-items: start; }
}
.collection-template__mobile-filter-ctrl { display: block; margin-bottom: 1rem; }
@media (min-width: 1200px) {
  .collection-template__mobile-filter-ctrl { display: none; }
}
.collection-template__filter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-white, #fff);
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: var(--radius-sm, 4px);
  font-weight: 500;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.collection-template__filter-btn svg { width: 1.25rem; height: 1.25rem; }
.collection-template__facet-filter {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: var(--color-white, #fff);
  z-index: 1000;
  padding: calc(1rem + env(safe-area-inset-top)) calc(1rem + env(safe-area-inset-right)) calc(1rem + env(safe-area-inset-bottom)) calc(1rem + env(safe-area-inset-left));
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.collection-template__facet-filter.is-open { transform: translateX(0); box-shadow: var(--ivory-shadow, 0 18px 44px rgba(115, 92, 0, 0.04)); }
@media (min-width: 1200px) {
  .collection-template__facet-filter {
    display: block;
    position: sticky;
    top: 100px;
    bottom: auto;
    width: auto;
    max-width: none;
    background: transparent;
    z-index: auto;
    padding: 0;
    transform: none;
    box-shadow: none;
    overflow-y: visible;
    overscroll-behavior: auto;
  }
}
.collection-template__facet-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e5e5;
}
@media (min-width: 1200px) {
  .collection-template__facet-filter-header { display: none; }
}
.collection-template__facet-filter-header-title { font-size: 1.125rem; font-weight: 700; }
.collection-template__close-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.625rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.collection-template__close-filter svg { width: 1rem; height: 1rem; }
@media (min-width: 1200px) {
  .collection-template__close-filter svg { width: 1.5rem; height: 1.5rem; }
}
.collection-template__filter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.collection-template__filter-overlay.is-visible { opacity: 1; visibility: visible; }
@media (min-width: 1200px) {
  .collection-template__filter-overlay { display: none; }
}
.collection-template__facet-filter-title { margin-bottom: 0.5rem; }
@media (min-width: 768px) {
  .collection-template__facet-filter-title { margin-bottom: 1rem; }
}
@media (min-width: 1200px) {
  .collection-template__facet-filter-title { margin-bottom: 2rem; }
}
.collection-template__facet-filter-title strong { font-weight: 700; font-size: 1.25rem; }
@media (min-width: 768px) {
  .collection-template__facet-filter-title strong { font-size: 1.5rem; }
}
@media (min-width: 1200px) {
  .collection-template__facet-filter-title strong { font-size: 1.875rem; }
}
.collection-template__products-count { margin-bottom: 0.5rem; }
@media (min-width: 768px) {
  .collection-template__products-count { margin-bottom: 1rem; }
}
@media (min-width: 1200px) {
  .collection-template__products-count { margin-bottom: 2rem; }
}
.collection-template__products-count-text { text-align: right; font-weight: 700; font-size: 1.25rem; }
@media (min-width: 768px) {
  .collection-template__products-count-text { font-size: 1.5rem; }
}
@media (min-width: 1200px) {
  .collection-template__products-count-text { font-size: 1.875rem; }
}
.collection-template__products-count-text b { color: var(--color-primary, #735c00); }
.collection-template__products-count-text small { font-size: 1.125rem; }
.collection-template__pagination { margin-top: 1rem; }
@media (min-width: 1200px) {
  .collection-template__pagination { margin-top: 2rem; }
}
.collection-template__description { margin-top: 1rem; }
.collection-image { display: block; border-radius: var(--ivory-radius, var(--radius-md, 4px)); overflow: hidden; margin-bottom: 1rem; }
@media (min-width: 1200px) {
  .collection-image { margin-bottom: 2rem; }
}
.collection-image__img { width: 100%; height: auto; transition: transform 0.3s ease; }
.collection-image__img:hover { transform: scale(1.05); }
.facet-filters { display: block; }
.facet-filters__form { display: flex; flex-direction: column; gap: 0.5rem; }
@media (min-width: 768px) {
  .facet-filters__form { gap: 1rem; }
}
@media (min-width: 1200px) {
  .facet-filters__form { gap: 2rem; }
}
.collection-facet-filter__actions {
  z-index: 2;
  margin: -0.25rem 0 0;
  padding-bottom: 0.25rem;
  background: transparent;
}
.collection-facet-filter__clear-all {
  width: auto;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-gray, #635d5a);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.collection-facet-filter__clear-all.is-active {
  color: var(--color-primary, #79542e);
}
.collection-facet-filter__clear-all:not(:disabled):hover {
  color: var(--color-primary-hover, #5d4201);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.collection-facet-filter__clear-all:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}
.collection-facet-filter__clear-all:focus-visible {
  outline: 2px solid var(--color-primary, #79542e);
  outline-offset: 2px;
}
.facet-filter { display: block; }
.facet-filter__title { margin-bottom: 0.25rem; }
@media (min-width: 768px) {
  .facet-filter__title { margin-bottom: 0.375rem; }
}
@media (min-width: 1200px) {
  .facet-filter__title { margin-bottom: 0.5rem; }
}
.facet-filter__title-text { font-weight: 700; font-size: 0.875rem; }
@media (min-width: 768px) {
  .facet-filter__title-text { font-size: 1rem; }
}
@media (min-width: 1200px) {
  .facet-filter__title-text { font-size: 1.25rem; }
}
.facet-filter__content-list { display: flex; flex-direction: column; gap: 0.5rem; }
.facet-filter__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 0.625rem 0.75rem;
  margin-top: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--color-primary, #79542e);
  transition: opacity 0.2s;
}
.facet-filter__toggle:hover { opacity: 0.8; }
.facet-filter__toggle-text { font-weight: 500; }
.facet-filter__toggle-icon { font-size: 1rem; font-weight: 700; }
.facet-filter-item { display: block; }
.facet-filter-item--hidden { display: none; }
.facet-filter-item__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  cursor: pointer;
  transition: color 0.2s;
}
.facet-filter-item__label:hover { color: var(--color-primary, #79542e); }
.facet-filter-item__label input[type="checkbox"] { width: 1rem; height: 1rem; accent-color: var(--color-primary, #79542e); }
.facet-filter-item__label input[type="checkbox"]:focus-visible { outline: 2px solid var(--color-primary, #79542e); outline-offset: 2px; }
.collection-menu {
  width: min(1920px, 100%);
  margin: 0 auto;
  padding: 0 var(--ivory-gutter, clamp(20px, 4vw, 64px));
  background: var(--collection-bg, #faf9f9);
}

.collection-menu__list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  align-items: center;
  overflow-x: auto;
  padding-block: 16px;
  scrollbar-width: none;
  scroll-padding-inline: var(--ivory-gutter, clamp(20px, 4vw, 64px));
}

.collection-menu__list::-webkit-scrollbar {
  display: none;
}
@media (max-width: 768px) {
  .collection-menu__list { gap: 0.5rem; }
}
.collection-menu__item {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.625rem;
  min-height: 42px;
  padding: 0 12px 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-decoration: none;
  color: var(--color-gray-dark, #50453b);
  transition: color 0.2s, opacity 0.2s;
}
.collection-menu__item:hover { color: var(--color-primary, #79542e); opacity: 0.82; }
.dark .collection-menu__item { background: var(--color-black, #1a1c1a); border-color: var(--color-gray-dark, #50453b); color: var(--border-color, #e5e5e5); }
.dark .collection-menu__item:hover { background: var(--color-gray-dark, #50453b); border-color: var(--color-gray-dark, #50453b); }
@media (max-width: 991px) {
  .collection-menu__item { padding: 0.375rem 0.75rem; }
}
@media (max-width: 575px) {
  .collection-menu__item { padding: 0.25rem 0.5rem 0.25rem 0.25rem; }
}
.collection-menu__item-image {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--ivory-radius, var(--radius-md, 4px));
  overflow: hidden;
  background: var(--color-gray-light, #f4f3f1);
}
.dark .collection-menu__item-image { background: var(--color-gray-dark, #50453b); }
@media (max-width: 768px) {
  .collection-menu__item-image { width: 2rem; height: 2rem; }
}
.collection-menu__item-image img { width: 100%; height: 100%; object-fit: cover; }
.collection-menu__item-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray, #635d5a);
}
.dark .collection-menu__item-image-placeholder { color: var(--color-gray, #635d5a); }
.collection-menu__item-image-placeholder svg { width: 1.5rem; height: 1.5rem; }
.collection-menu__item-text { font-size: 0.875rem; font-weight: 500; white-space: nowrap; }
@media (max-width: 768px) {
  .collection-menu__item-text { font-size: 0.75rem; }
}
.collection-best {
  margin-bottom: 2rem;
  position: relative;
  border: 2px solid var(--color-primary, #79542e);
  border-radius: var(--ivory-radius, var(--radius-md, 4px));
  padding: 2rem 1rem 1rem;
  margin-top: 2.5rem;
  display: block;
}
.collection-best__header {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-secondary, #E6E1D6);
  border: 2px solid var(--color-primary, #79542e);
  border-radius: var(--ivory-radius, var(--radius-md, 4px));
  padding: 0.5rem 1.5rem;
  min-width: 200px;
  text-align: center;
}
.dark .collection-best__header { background: var(--color-gray-dark, #50453b); border-color: var(--color-primary, #79542e); }
.collection-best__title {
  margin: 0;
  font-size: var(--font-base, 1rem);
  font-weight: 700;
  color: var(--color-primary, #79542e);
  text-transform: uppercase;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .collection-best__title {
    font-size: var(--font-lg, 1.125rem);
  }
}
.dark .collection-best__title { color: var(--color-white, #fff); }
.collection-best__content { padding-top: 1rem; overflow: hidden; }
.collection-best__content .swiper-pagination { position: static; margin-top: 1rem; }
.collection-best__content .swiper-pagination .swiper-pagination-bullet-active { background: var(--color-primary, #79542e); }
.collection-sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ivory-border-soft, rgba(208, 197, 175, 0.58));
}
.collection-sort__count-text { font-size: 0.875rem; color: var(--color-gray, #635d5a); }
.collection-sort__count-text b { color: var(--color-primary, #735c00); }
.collection-sort__by { display: flex; align-items: center; gap: 0.5rem; }
.collection-sort__label { font-size: 0.875rem; color: var(--color-black, #1a1c1a); white-space: nowrap; }
.collection-sort__select-wrapper { position: relative; min-width: 180px; }
.collection-sort__select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 2rem 0.5rem 1rem;
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: var(--radius-sm, 4px);
  background-color: var(--color-white, #fff);
  font-size: 0.875rem;
  color: var(--color-black, #1a1c1a);
  cursor: pointer;
  transition: border-color 0.2s;
}
.collection-sort__select:focus { outline: none; border-color: var(--color-primary, #735c00); }
.collection-sort__select:focus-visible { outline: 2px solid var(--color-primary, #735c00); outline-offset: 2px; }
.collection-sort__icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  width: 12px;
  height: 12px;
  color: var(--color-gray, #635d5a);
}
.collection-sort__view { display: flex; gap: 0.5rem; }
.collection-sort__view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0.5rem;
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: var(--radius-sm, 4px);
  background-color: var(--color-white, #fff);
  cursor: pointer;
  transition: all 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.collection-sort__view-btn svg { width: 1.25rem; height: 1.25rem; color: var(--color-gray, #635d5a); }
.collection-sort__view-btn:hover { border-color: var(--color-primary, #735c00); }
.collection-sort__view-btn:hover svg { color: var(--color-primary, #735c00); }
.collection-sort__view-btn--active { border-color: var(--color-primary, #735c00); background-color: var(--color-primary, #735c00); }
.collection-sort__view-btn--active svg { color: var(--color-white, #fff); }
.collection-sort__view-btn--active:hover svg { color: var(--color-white, #fff); }
@media (max-width: 768px) {
  .collection-sort { flex-direction: column-reverse; align-items: flex-start; gap: 0.75rem; }
  .collection-sort__count { width: 100%; }
  .collection-sort__view { order: -1; margin-left: auto; }
  .collection-sort .collection-sort__by { width: 100%; justify-content: space-between; }
  .collection-sort .collection-sort__select-wrapper { flex-grow: 1; }
}
.product-cards--list {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2vw, 28px);
}

.collection-template .product-cards--list .product-cards__item {
  width: 100%;
}

.collection-template .product-cards--list .ivory-product-card__inner {
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(18px, 2.2vw, 28px);
  padding: 18px;
  border: 1px solid var(--collection-border);
  border-radius: var(--collection-radius-card, var(--ivory-radius, 4px));
  background: var(--collection-surface);
  text-align: left;
}

.collection-template .product-cards--list .ivory-product-card__media {
  height: 100%;
  min-height: 190px;
  aspect-ratio: auto;
}

.collection-template .product-cards--list .ivory-product-card__media img {
  object-fit: contain;
  padding: 14px;
}

.collection-template .product-cards--list .ivory-product-card__body,
.collection-template .product-cards--list .ivory-product-card__footer,
.collection-template .product-cards--list .ivory-product-card__price {
  justify-items: start;
  text-align: left;
}

.collection-template .product-cards--list .ivory-product-card__body {
  align-content: center;
  gap: 12px;
}

.collection-template .product-cards--list .ivory-product-card__title a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.collection-template .product-cards--list .ivory-product-card__actions {
  width: min(100%, 220px);
}

@media (max-width: 767px) {
  .collection-template .product-cards--list .ivory-product-card__inner {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
  }

  .collection-template .product-cards--list .ivory-product-card__media {
    min-height: 132px;
  }

  .collection-template .product-cards--list .ivory-product-card__media img {
    padding: 10px;
  }

  .collection-template .product-cards--list .ivory-product-card__button {
    min-height: 44px;
    padding-inline: 0.75rem;
    font-size: 10px;
  }
}
/* Infinite scroll */
.infinite-scroll-sentinel { display: flex; justify-content: center; padding: var(--space-xl, 1.25rem) 0; min-height: 60px; }
.infinite-scroll-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-color, #e5e5e5);
  border-top-color: var(--color-primary, #79542e);
  border-radius: var(--radius-rounded, 50%);
  animation: spin 0.8s linear infinite;
}
.infinite-scroll-end { text-align: center; padding: var(--space-lg, 1rem) 0; color: var(--color-gray, #635d5a); font-size: var(--font-sm, 0.875rem); }
.collection-template__pagination--hidden { display: none !important; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.product-cards__item--new { animation: fadeInUp 0.4s ease forwards; }

/* Ivory Gem collection restyle */
.collection-template {
  
  background: var(--collection-bg);
  color: var(--collection-text);
}

.collection-template .page-width {
  max-width: 1920px;
}

.collection-template__title,
.collection-template__hero {
  margin-bottom: clamp(28px, 4vw, 52px);
}

.collection-template__heading {
  color: var(--collection-text);
  font-family: var(--font-family-heading, "Playfair Display", serif);
  font-size: clamp(34px, 4.2vw, 60px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
}

.collection-template__short-description-content,
.collection-template__hero-desc {
  color: var(--collection-muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
}

.collection-template__wrapper {
  border-top-color: var(--collection-border);
  gap: clamp(24px, 2.6vw, 44px);
}

@media (min-width: 1200px) {
  .collection-template__wrapper {
    grid-template-columns: minmax(250px, 280px) minmax(0, 1fr);
  }
}

.collection-template__facet-filter {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--collection-border);
  box-shadow: 0 18px 44px rgba(119, 90, 25, 0.08);
}

@media (min-width: 1200px) {
  .collection-template__facet-filter {
    padding: 22px;
  }
}

.collection-template__facet-filter-title strong {
  color: var(--collection-text);
  font-family: var(--font-family-heading, "Playfair Display", serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
}

.facet-filter {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom-color: rgba(127, 118, 103, 0.14);
}

.facet-filter__title-text {
  color: var(--collection-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.facet-filter-item__label,
.collection-sort__count-text,
.collection-sort__label {
  color: var(--collection-muted);
  font-size: 13px;
}

.facet-filter-item__label:hover {
  color: var(--collection-gold);
}

.facet-filter-item__label input[type="checkbox"] {
  accent-color: var(--collection-gold);
}

.collection-sort {
  //border-bottom-color: rgba(127, 118, 103, 0.16);
}

.collection-sort__count-text b,
.collection-sort__select:focus {
  color: var(--collection-gold);
  border-color: var(--collection-gold);
}

.collection-sort__view-btn {
  border-radius: 0;
}

.collection-sort__view-btn--active {
  border-color: var(--collection-gold);
  background: var(--collection-gold);
}

.collection-template .product-cards {
  gap: clamp(18px, 2vw, 28px);
}

.collection-template .product-card {
  height: 100%;
}

.collection-template .ivory-product-card__media {
  border-color: var(--collection-border);
  background: var(--collection-surface);
}

.collection-template .ivory-product-card__vendor,
.collection-template .ivory-product-card__price {
  color: var(--collection-gold);
}

.collection-template .ivory-product-card__title {
  color: var(--collection-text);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.25;
}

.collection-template .ivory-product-card__button {
  border-color: var(--collection-gold);
  color: var(--collection-gold);
}

.collection-template .ivory-product-card__button:hover:not(:disabled) {
  border-color: var(--collection-text);
  background: var(--collection-text);
}

@media (max-width: 767px) {
  .collection-template__heading {
    font-size: 34px;
  }

  .collection-template .product-cards:not(.product-cards--list) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .collection-template .ivory-product-card__title {
    font-size: 16px;
  }
}

/* Collection hero */
.collection-template__hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: center;
  background: var(--color-gray-light, #f4f3f1);
}
@media (min-width: 768px) {
  .collection-template__hero {
    grid-template-columns: 2fr 3fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
  }
}
@media (min-width: 1200px) {
  .collection-template__hero {
    grid-template-columns: 5fr 7fr;
    gap: 3rem;
    margin-bottom: 3rem;
  }
}

/* Media (image) */
.collection-template__hero-media {
  aspect-ratio: 2 / 1;
  border-radius: var(--ivory-radius, var(--radius-md, 4px));
  overflow: hidden;
  background: var(--color-gray-light, #f4f3f1);
}
.collection-template__hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.collection-template__hero-media:hover .collection-template__hero-img {
  transform: scale(1.04);
}

/* Content (title + description) */
.collection-template__hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.collection-template__hero-content .collection-template__heading {
  margin: 0;
}
.collection-template__hero-desc {
  font-size: var(--font-base, 1rem);
  line-height: var(--line-height-base, 1.6);
  color: var(--color-paragraph, #6b6259);
  margin: 0;
}
@media (min-width: 1200px) {
  .collection-template__hero-desc { font-size: var(--font-lg, 1.125rem); }
}
.dark .collection-template__hero-desc {
  color: var(--color-gray-light, #f4f3f1);
}

/* Collection card polish aligned to the Ivory product-card markup */
.collection-template {
  --collection-radius-panel: var(--ivory-radius, var(--radius-md, 4px));
  --collection-radius-card: var(--ivory-radius, var(--radius-md, 4px));
  --collection-radius-control: var(--ivory-radius, var(--radius-md, 4px));
}

.collection-template .collection-filter,
.collection-template__hero,
.collection-template__facet-filter,
.collection-template .collection-best,
.collection-template .product-cards--list .ivory-product-card__inner {
  border-radius: var(--collection-radius-panel);
}

.collection-template .ivory-product-card__media,
.collection-template .ivory-product-card__media img,
.collection-template__hero-media,
.collection-template__hero-img {
  border-radius: var(--collection-radius-card);
}

.collection-template .ivory-product-card__button,
.collection-template .ivory-product-card__badge,
.collection-template .ivory-product-card__tool,
.collection-template .collection-sort__select,
.collection-template .collection-sort__view-btn,
.collection-template__filter-btn,
.collection-template .collection-best__header {
  border-radius: var(--collection-radius-control);
}

/* Collection listing aligned to the design reference */
.collection-template > .ivory-section:first-of-type {
  padding-block: 0;
}

.collection-template .section-breadcrumbs,
.collection-template .ivory-breadcrumbs {
  display: none;
}

.collection-template .ivory-shell {
  width: min(1920px, 100%);
}

.collection-template .ivory-collection__hero {
  position: relative;
  display: flex;
  min-height: clamp(360px, 45vh, 560px);
  align-items: center;
  justify-content: center;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: var(--collection-surface, #ffffff);
  text-align: center;
}

.collection-template .ivory-collection__hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--collection-border, rgba(127, 118, 103, 0.2));
}

.collection-template .ivory-collection__hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  opacity: 0.42;
}

.collection-template .ivory-collection__hero-media picture,
.collection-template .ivory-collection__hero-media img {
  width: 100%;
  height: 100%;
}

.collection-template .ivory-collection__hero-img {
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}

.collection-template .ivory-collection__hero-copy {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 40px));
  margin-inline: auto;
  padding: clamp(40px, 5vw, 56px) 0;
}

.collection-template .ivory-collection__hero-copy .ivory-title {
  font-size: clamp(44px, 5vw, 76px);
  line-height: 1.04;
}

.collection-template .ivory-collection__intro {
  max-width: 680px;
  margin: 18px auto 0;
  color: var(--collection-muted, #6f6658);
  font-size: clamp(15px, 1vw, 18px);
  line-height: 1.7;
}

.collection-template .collection-best {
  display: none;
}

.collection-template .ivory-section:has(.collection-template__wrapper) {
  padding-block: 0 clamp(36px, 3.8vw, 56px);
}

.collection-template .ivory-section:has(.collection-template__wrapper) > .ivory-shell {
  width: min(1920px, 100%);
}

.collection-template .ivory-collection__mobile-filter-ctrl,
.collection-template .collection-sort {
  width: min(1920px, 100%);
  box-sizing: border-box;
  margin: 0 auto;
  padding-inline: var(--ivory-gutter, clamp(20px, 4vw, 64px));
}

.collection-template .ivory-collection__mobile-filter-ctrl {
  position: sticky;
  top: var(--header-height, 80px);
  z-index: 38;
  display: flex;
  padding-block: 16px 0;
  background: rgba(251, 249, 245, 0.92);
  backdrop-filter: blur(12px);
}

.collection-template .collection-template__filter-btn {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--collection-text, #1b1c1a);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.collection-template .collection-sort {
  position: sticky;
  top: var(--header-height, 80px);
  min-height: 56px;
  z-index: 37;
  display: flex;
  width: auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-inline: calc(var(--ivory-gutter, clamp(20px, 4vw, 64px)) * -1);
  padding-block: 14px;
  border-bottom: 0;
  background: rgba(251, 249, 245, 0.92);
  backdrop-filter: blur(12px);
}

.collection-template .collection-sort__count {
  order: 3;
}

.collection-template .collection-sort__filter-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--collection-text, #1b1c1a);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.collection-template .collection-sort__filter-btn svg {
  width: 20px;
  height: 20px;
}

.collection-template .collection-sort__count-text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.collection-template .collection-sort__view {
  display: none;
}

.collection-template .collection-sort__by {
  display: flex;
  align-items: center;
  gap: 8px;
}

.collection-template .collection-sort__label {
  color: var(--collection-muted, #6f6658);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.collection-template .collection-sort__select-wrapper {
  min-width: 190px;
}

.collection-template .collection-sort__select {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--collection-text, #1b1c1a);
  font-size: 13px;
  font-weight: 700;
}

.collection-template .ivory-collection__layout.collection-template__wrapper {
  display: block;
  grid-template-columns: none;
  gap: 0;
  width: min(1920px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 2.6vw, 40px) var(--ivory-gutter, clamp(20px, 4vw, 64px)) 0;
  border-top: 0;
}

.collection-template .ivory-collection__filters.collection-template__facet-filter {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1000;
  width: 340px;
  max-width: 88vw;
  padding: calc(24px + env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom));
  border-radius: 0;
  background: #ffffff;
  transform: translateX(-100%);
  transition: transform 240ms ease;
  overflow-y: auto;
}

.collection-template .ivory-collection__filters.collection-template__facet-filter.is-open {
  transform: translateX(0);
}

.collection-template .ivory-collection__filter-header.collection-template__facet-filter-header {
  display: flex;
}

.collection-template .product-cards:not(.product-cards--list) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 52px) clamp(18px, 2.2vw, 32px);
}

.collection-template .ivory-product-card__inner {
  background: transparent;
  box-shadow: none;
}

.collection-template .ivory-product-card__body {
  text-align: center;
}

.collection-template .ivory-product-card__media {
  aspect-ratio: 1 / 1;
  border-color: transparent;
  background: #ffffff;
}

.collection-template .ivory-product-card__title {
  margin-top: 0;
  font-size: clamp(20px, 1.35vw, 26px);
  line-height: 1.2;
}

.collection-template .ivory-product-card__footer {
  justify-content: center;
}

.collection-template .ivory-product-card__actions {
  display: none;
}

.collection-template .collection-template__products.is-empty {
  display: block;
  min-height: clamp(140px, 20vh, 240px);
}

.collection-template__no-products {
  display: flex;
  min-height: clamp(140px, 20vh, 240px);
  align-items: flex-start;
  justify-content: center;
  grid-column: 1 / -1;
  padding: clamp(24px, 3.2vw, 48px) 20px;
  border: 0;
  background: transparent;
  color: var(--collection-muted, #6f6658);
  list-style: none;
  text-align: center;
}

.collection-template__no-products p {
  margin: 0;
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.6;
}

.collection-template__empty {
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--collection-muted, #6f6658);
  text-align: center;
}

.collection-template__empty p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 1199px) {
  .collection-template .product-cards:not(.product-cards--list) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .collection-template .ivory-collection__hero {
    min-height: 360px;
  }

  .collection-template .ivory-collection__hero-copy .ivory-title {
    font-size: 42px;
  }

  .collection-template .ivory-collection__mobile-filter-ctrl {
    position: static;
    top: auto;
    padding-inline: 0;
    padding-block: 10px 0;
  }

  .collection-template .collection-sort {
    position: static;
    top: auto;
    padding-inline: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding-block: 10px;
    margin-inline: 0;
  }

  .collection-template .collection-sort__filter-btn {
    order: 1;
  }

  .collection-template .collection-sort__count {
    order: 2;
  }

  .collection-template .collection-sort__by {
    order: 3;
    justify-content: space-between;
    width: 100%;
  }

  .collection-template .collection-sort__select-wrapper {
    min-width: 160px;
  }

  .collection-template .ivory-collection__layout.collection-template__wrapper {
    padding-top: 16px;
  }

  .collection-template .product-cards:not(.product-cards--list) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 14px;
  }

  .collection-template .ivory-product-card__title {
    font-size: 17px;
  }

  .collection-template__facet-filter-header {
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  .collection-template__facet-filter-header-title {
    font-size: 1rem;
  }

  .collection-template__close-filter {
    min-width: 44px;
    min-height: 44px;
    padding: 0.625rem;
  }

  .collection-template__close-filter svg {
    width: 1rem;
    height: 1rem;
  }
}

/* Boutique collection polish */
.collection-template .collection-sort {
  //background: rgba(251, 250, 247, 0.96);
}

.collection-template .collection-sort__filter-btn,
.collection-template .collection-sort__label,
.collection-template .collection-sort__count-text {
  font-weight: 500;
  letter-spacing: 0.03em;
}

.collection-template .collection-sort__select {
  font-weight: 500;
  letter-spacing: 0;
}

.collection-template__no-products p,
.collection-template__empty p {
  color: var(--collection-muted, #6f6658);
  font-family: var(--font-family-heading, "Playfair Display", serif);
  font-size: clamp(20px, 1.8vw, 30px);
  font-weight: 400;
}

.collection-template .ivory-collection__menu {
  padding-block: clamp(14px, 1.5vw, 22px);
  background: rgba(251, 250, 247, 0.9);
}

.collection-template .ivory-collection__menu-list {
  gap: 10px clamp(18px, 2vw, 34px);
}

.collection-template .ivory-collection__menu-link {
  min-height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(26, 28, 28, 0.82);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
}

.collection-template .ivory-collection__menu-link:hover,
.collection-template .ivory-collection__menu-link:focus-visible {
  color: var(--collection-gold, #735c00);
}

.collection-template .ivory-collection__menu-link.is-active {
  color: var(--collection-gold, #735c00);
}

.collection-template .ivory-collection__menu-link.is-active::after {
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 8px;
  background: currentColor;
  content: "";
}

.collection-template .ivory-collection__menu-image {
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(99, 79, 20, 0.08);
}

.collection-template .collection-template__products.is-empty {
  min-height: clamp(140px, 20vh, 240px);
}

.collection-template .ivory-collection__description.collection-template__description {
  width: min(1120px, calc(100% - (var(--ivory-gutter, clamp(20px, 4vw, 64px)) * 2)));
  margin: clamp(28px, 3vw, 44px) auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--collection-muted, #6f6658);
  box-shadow: none;
}

.collection-template .collection-template__description-content {
  max-width: 1120px;
  margin: 0 auto;
  font-size: clamp(14px, 0.95vw, 16px);
  line-height: 1.8;
}

.collection-template .collection-menu {
  margin: 0 auto;
  padding-block: clamp(10px, 1.4vw, 18px);
  background: rgba(251, 250, 247, 0.92);
}

.collection-template .collection-menu__list {
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px clamp(20px, 2vw, 36px);
  overflow: visible;
  padding-block: 8px;
}

.collection-template .collection-menu__item {
  min-height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(26, 28, 28, 0.84);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.collection-template .collection-menu__item:hover,
.collection-template .collection-menu__item:focus-visible {
  color: var(--collection-gold, #735c00);
  opacity: 1;
}

.collection-template .collection-menu__item-image {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f6f1e8;
  box-shadow: 0 14px 30px rgba(99, 79, 20, 0.04);
}

.collection-template .collection-menu__item-text {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
}

@media (max-width: 768px) {
  .collection-template .collection-menu {
    padding-inline: 20px;
  }

  .collection-template .collection-menu__list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
  }

  .collection-template .collection-menu__item {
    min-height: 44px;
    padding: 0;
  }

  .collection-template .collection-menu__item-image {
    width: 34px;
    height: 34px;
  }
}
