body[data-page="products"] .inner-page-hero {
  background:
    linear-gradient(180deg, rgba(26, 25, 25, 0.6) 30.5%, rgba(102, 102, 102, 0.6) 100%),
    linear-gradient(
      90deg,
      rgba(56, 56, 56, 0.7) 0%,
      rgba(56, 56, 56, 0.4) 60%,
      rgba(56, 56, 56, 0.7) 100%
    ),
    url("../assets/images/product-hero.jpg") lightgray 0 -188.805px / 100% 186.77% no-repeat;
}

/* Products: hero title + filters/grid share a wider shell than default .page-shell (1120px) */
body[data-page="products"] .inner-page-hero__content.page-shell {
  width: min(1360px, calc(100% - 32px));
}

@media (max-width: 1034px) {
  body[data-page="products"] .inner-page-hero {
    background: linear-gradient(180deg, rgba(26, 25, 25, 0.6) 30.5%, rgba(102, 102, 102, 0.6) 100%),
      linear-gradient(90deg, rgba(56, 56, 56, 0.7) 0%, rgba(56, 56, 56, 0.4) 60%, rgba(56, 56, 56, 0.7) 100%),
      url("../assets/images/product-hero.jpg") lightgray center / cover no-repeat;
  }
}

.page-shell-products {
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding: 24px 40px;
  padding-bottom: 80px;
}

@media (max-width: 992px) {
  .page-shell-products{
    padding: 24px 24px !important;
    padding-bottom: 40px !important;
  }

}

@media (max-width: 575px) {
  .page-shell-products{
    padding: 24px 16px !important;
    padding-bottom: 40px !important;
  }
}

body[data-page="products"] .products-search:focus {
  outline: none;
  border-color: #b42a2c;
  box-shadow: 0 0 0 3px rgba(180, 42, 44, 0.1);
}

/* Ensure iOS does not auto-zoom the page when focusing the search input. */
@media (max-width: 767px) {
  .products-search {
    font-size: 16px !important;
    line-height: 1.4;
  }
  /* Make the filter toggle match the search input height on mobile */
  .products-toolbar__filter-toggle {
    height: 40px;
    min-height: 40px;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
  }
}

/* // product styles // */
.products-page {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.products-sidebar {
  position: sticky;
  top: 24px;
  padding: 0px 0 0;
}

@media (max-width: 992px) {
  .products-sidebar {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
}

.products-sidebar__header {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 16px;
  border-bottom: 1px solid #e6e0d7;
  margin-bottom: 20px;
}

.products-sidebar__title {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--black-cusanos);;
}

.products-sidebar__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #2f2f2f;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.products-sidebar__actions {
  display: block;
  margin-top: 20px;
  padding-top: 0;
  border-top: none;
}

.products-filter-grid > .products-sidebar__actions {
  width: 100%;
}

@media (min-width: 993px) {
  .products-filter-grid > .products-sidebar__actions {
    display: block;
  }

  .products-sidebar__button[data-apply-filters] {
    display: none;
  }
}

.products-sidebar__button {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d2c9bc;
  background: #ffffff;
  color: #4d4641;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.products-sidebar__button:hover,
.products-sidebar__button:focus-visible {
  border-color: #b42a2c;
  color: #b42a2c;
}

.products-toolbar__filter-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #e0d8cc;
  background: #ffffff;
  color: #3b3531;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 2px;
}

.products-toolbar__filter-toggle:hover,
.products-toolbar__filter-toggle:focus-visible {
  border-color: #b42a2c;
  color: #b42a2c;
}

.products-toolbar__filter-count {
  font-weight: 700;
  color: #3b3531;
  text-transform: none;
}

.products-sidebar.is-open {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  background: #ffffff;
  padding: 0;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
  opacity: 1;
  visibility: visible;
  animation: slideInSidebar 0.3s ease;
}

@keyframes slideInSidebar {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Filter sidebar overlay (set via .products-sidebar-backdrop on a div; no inline styles) */
.products-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1039;
  background: rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.3s ease;
}

.products-filter-group + .products-filter-group {
  margin-top: 28px;
}

.products-filter-title {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e6e0d7;
  font-family: "Open Sans", sans-serif;
  font-size: 20px;
  font-weight: bold;
  line-height: 2.5;

  text-transform: uppercase;
  color: #1a1919;
  background: transparent;
}

.products-filter-options {
  display: grid;
  gap: 12px;
}

.products-filter-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  line-height: 1.3;
  color: #4d4641;
  cursor: pointer;
}

.products-filter-option input {
  margin: 0;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  accent-color: #b42a2c;
}

.products-filter-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  position: relative;
  border: 2px solid #d2c9bc;
  border-radius: 0;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.products-filter-option input[type="checkbox"]::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 7px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='7' viewBox='0 0 9 7' fill='none'%3E%3Cpath d='M0.75 3L3.1875 5.8125L8.0625 0.75' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat center / contain;
  opacity: 0;
  transition: opacity 0.12s ease-in-out;
  pointer-events: none;
}

.products-filter-option input[type="checkbox"]:checked {
  border-color: #b42a2c;
  background: #b42a2c;
}

.products-filter-option input[type="checkbox"]:checked::after {
  opacity: 1;
}

.products-filter-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  position: relative;
  border: 1.5px solid #383838;
  border-radius: 50%;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, border-width 0.15s ease;
}

/* Selected: red outer ring, white ring gap, solid red center (see design) */
.products-filter-option input[type="radio"]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b42a2c;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
  transition: opacity 0.12s ease-in-out, transform 0.12s ease-in-out;
  pointer-events: none;
}

.products-filter-option input[type="radio"]:checked {
  border-width: 2px;
  border-color: #b42a2c;
  background: #ffffff;
}

.products-filter-option input[type="radio"]:checked::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.products-filter-option input:focus-visible {
  outline: 2px solid #b42a2c;
  outline-offset: 2px;
}

.products-main {
  min-width: 0;
  position: relative;
}

.products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.products-toolbar__count {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #6f675d;
}

.products-toolbar__search {
  flex: 0 1 320px;
  min-width: 0;
}

.products-search {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid #e0d8cc;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  background-color: #ffffff;
  color: #3b3531;
  font-size: 13px;
  line-height: 1.4;
  font-family: "Open Sans", sans-serif;
}

/* iOS Safari: remove default rounded “search field” chrome */
.products-search::-webkit-search-decoration,
.products-search::-webkit-search-cancel-button,
.products-search::-webkit-search-results-button,
.products-search::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.products-search::placeholder {
  color: #9a9288;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  align-items: start;
  gap: 28px 18px;
  overflow-anchor: none;
}

body[data-page="products"] .products-grid {
  scroll-margin-top: 100px;
}

.products-grid.is-loading {
  display: none;
}

.products-loader {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.products-loader[hidden] {
  display: none !important;
}

.products-loader__spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(180, 42, 44, 0.24);
  border-top-color: var(--Red--Cusanos);
  animation: productsSpin 0.8s linear infinite;
}

@keyframes productsSpin {
  to {
    transform: rotate(360deg);
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  align-self: start;
  width: 100%;
  min-height: 0;
  background: #2b2b2b;
  color: #ffffff;
  height: 100%;
}

.product-card__media {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  overflow: hidden;
  background: #1a1919;
}

/* Shimmer skeleton while product image loads */
.product-card__media.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    90deg,
    #1a1919 0%,
    #2a2a2a 42%,
    #3d3d3d 50%,
    #2a2a2a 58%,
    #1a1919 100%
  );
  background-size: 200% 100%;
  animation: product-card-skeleton 1.35s ease-in-out infinite;
}

@keyframes product-card-skeleton {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Product image overlay: Figma — linear top → bottom; #292929 full at 0%, 60% at 5%, fade out by 19% */
.product-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    0deg,
    rgba(41, 41, 41, 1) 0%,
    rgba(41, 41, 41, 0.6) 5%,
    rgba(19, 16, 15, 0) 19%
  );
  pointer-events: none;
}

.product-card__image {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .product-card__media.is-loading::before {
    animation: none;
    background: #252525;
  }
}

.product-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 18px 16px 18px;
  text-align: center;
}

.product-card__title {
  margin: 0 0 12px;

  font-family: "Open Sans", sans-serif;
  font-size: 17px;

  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffffff;
}

.product-card__slogan {
  margin: 0;
  max-width: 100%;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;

  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--white-cusanos);
}

/* Min 40px between title/slogan block and buttons; grows on equal-height rows */
.product-card__spacer {
  flex: 1 1 auto;
  min-height: 40px;
  width: 100%;
}

@media (max-width: 992px) {
  .product-card__title {
    min-height: 0;
  }
}

.product-card__actions {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
  justify-content: center;
}

.product-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 40px;
  padding: 0 16px;
  border: 1px solid #FFBC53;
  background: transparent;
  color: #f0ddc1;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255, 188, 83, 0.35);
  touch-action: manipulation;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* iOS: no :hover on tap — use :active + .is-pressed */
.product-card__button:active,
.product-card__button.is-pressed {
  background: #FFBC53;
  color: #1a1919;
}

@media (hover: hover) and (pointer: fine) {
  .product-card__button:hover {
    background: #FFBC53;
    color: #1a1919;
  }
}

.product-card__button:focus-visible {
  background: #FFBC53;
  color: #1a1919;
}

.product-card__button--secondary {
  border-color: #7a7a7a;
  color: #ffffff;
}

.product-card__button--secondary:active,
.product-card__button--secondary.is-pressed {
  border-color: #DBDBDB;
  background: #DBDBDB;
  color: #1a1919;
}

@media (hover: hover) and (pointer: fine) {
  .product-card__button--secondary:hover {
    border-color: #DBDBDB;
    background: #DBDBDB;
    color: #1a1919;
  }
}

.product-card__button--secondary:focus-visible {
  border-color: #DBDBDB;
  background: #DBDBDB;
  color: #1a1919;
}

@media (max-width: 736px) {
  .product-card__body {
    padding: 20px 10px 20px;
  }

  .product-card__title {
    margin-bottom: 6px;
  }

  .product-card__spacer {
    min-height: 24px;
  }

  .product-card__button {
    font-size: 13px;
    padding: 0 12px;
  }
}

.products-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: min(48vh, 320px);
  padding: 40px 24px;
  margin: 0;
  border: none;
  background: transparent;
}

.products-empty__title {
  margin: 0 0 8px;
  max-width: 28rem;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #3b3531;
}

.products-empty__hint {
  margin: 0;
  max-width: 28rem;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #6f675d;
}

.products-empty--error .products-empty__title {
  color: #b42a2c;
}

.products-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}

.products-pagination[hidden] {
  display: none;
}

.products-pagination__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #ddd4c9;
  background: #ffffff;
  color: #5a5550;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.products-pagination__button:hover,
.products-pagination__button:focus-visible {
  border-color: #b42a2c;
  color: #b42a2c;
}

.products-pagination__button[disabled] {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.products-pagination__button.is-active {
  border-color: #b42a2c;
  background: #b42a2c;
  color: #ffffff;
}

.products-pagination__button--ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.products-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.products-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.products-modal__dialog {
  width: min(100%, 398px);
  background: #ffffff;
  padding: 32px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.products-modal__header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-right: 0;
}

.products-modal__title {
  margin: 0;
  padding-right: 8px;
  font-family: "Open Sans", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: #1a1919;
  flex: 1 1 auto;
  min-width: 0;
}

.products-modal__close {
  position: relative;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
  line-height: 0;
}

.products-modal__close:hover svg path,
.products-modal__close:focus-visible svg path {
  stroke: #1a1919;
}

.products-modal__close:focus-visible {
  outline: 2px solid rgba(180, 42, 44, 0.45);
  outline-offset: 4px;
  border-radius: 0;
}

.products-modal__close svg {
  display: block;
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.products-modal__copy {
  margin: 25px 0 30px;
  max-width: 360px;
  font-size: 16px;
  line-height: 1.45;
  color: #1A1919;
}

.products-modal__actions {
  display: grid;
  gap: 16px;
}

.products-modal__button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
 padding: 8px 12px;
  border: 1px solid #d8d8d8;
  background: #ffffff;
  color: #444444;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.products-modal__button:hover,
.products-modal__button:focus-visible {
  border-color: #b42a2c;
  color: #b42a2c;
}

.products-modal__button--primary {
  border-color: #b42a2c;
  background: #b42a2c;
  color: #ffffff;
}

.products-modal__button--primary:hover,
.products-modal__button--primary:focus-visible {
  background: #972123;
  border-color: #972123;
  color: #ffffff;
}

body.products-modal-open {
  overflow: hidden;
}

html.page-scroll-lock,
body.page-scroll-lock {
  overflow: hidden;
  overscroll-behavior: none;
}

body.products-sidebar-open {
  overflow: hidden;
  overscroll-behavior: none;
}

html.detail-modal-scroll-lock,
body.detail-modal-scroll-lock {
  overflow: hidden;
  overscroll-behavior: none;
}

/* Product Detail Modal */
.product-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.product-detail-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.product-detail-modal__dialog {
  position: relative;
  width: min(100%, 1122px);
  margin: auto;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  display: grid;
  /* 494px image column + content */
  grid-template-columns: 494px minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  height: auto;
}

.product-detail-modal__close {
  position: relative;
  top: auto;
  right: auto;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: -10px -10px -10px auto;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  flex-shrink: 0;
  box-sizing: border-box;
}

.product-detail-modal__close svg {
  display: block;
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.product-detail-modal__close:hover svg path,
.product-detail-modal__close:focus-visible svg path {
  stroke: #1a1919;
}

.product-detail-modal__close:focus-visible {
  outline: 2px solid rgba(180, 42, 44, 0.45);
  outline-offset: 4px;
  border-radius: 0;
}

/* Desktop: close on content panel; mobile: close over image */
.product-detail-modal__close--content {
  display: none;
}

@media (min-width: 993px) {
  .product-detail-modal__close--image {
    display: none;
  }

  .product-detail-modal__close--content {
    display: inline-flex;
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 6;
    margin: 0;
  }

  .product-detail-modal__body {
    position: relative;
    min-height: 0;
    overflow: hidden;
  }

  .product-detail-modal__body-scroll {
    padding-top: 56px;
  }

  .product-detail-modal__category-tag {
    max-width: 100%;
  }
}

/* iPad / narrow tablet: scale image column so the dialog fits and centers */
@media (min-width: 993px) and (max-width: 1100px) {
  .product-detail-modal__dialog {
    width: min(100%, calc(100vw - 48px));
    grid-template-columns: min(40%, 494px) minmax(0, 1fr);
  }

  .product-detail-modal__image-wrapper {
    width: 100%;
    max-width: none;
  }
}

/* Stacked modal: close sits over photo — white stroke for contrast */
@media (max-width: 992px) {
  .product-detail-modal__close--image {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65)) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
    -webkit-filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65)) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
  }

  .product-detail-modal__close--image svg path {
    stroke: #ffffff;
  }

  .product-detail-modal__close--image:hover svg path,
  .product-detail-modal__close--image:focus-visible svg path {
    stroke: rgba(255, 255, 255, 0.85);
  }

  .product-detail-modal__close--image:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.55);
    outline-offset: 4px;
  }

  .products-pagination{
    margin-top: 28px;
  }
}

.product-detail-modal__image-wrapper {
  position: relative;
  width: 494px;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  align-self: stretch;
}

.product-detail-modal__image-toolbar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  pointer-events: none;
}

.product-detail-modal__image-toolbar > * {
  pointer-events: auto;
}

.product-detail-modal__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-detail-modal__category-tag {
  position: relative;
  top: auto;
  left: auto;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: calc(100% - 56px);
  padding: 8px 14px 8px 10px;
  border: 0.5px solid #383838;
  border-radius: 9999px;
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-detail-modal__category-tag--frozen {
  background: var(--Red--Cusanos, #b42a2c);
  color: var(--white-cusanos, #ffffff);
}

.product-detail-modal__category-tag--fresh {
  background: #ffbc53;
  color: #1a1919;
}

.product-detail-modal__category-tag-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  align-items: center;
  justify-content: center;
}

.product-detail-modal__category-tag-svg {
  display: block;
  line-height: 0;
}

.product-detail-modal__category-tag-svg svg {
  display: block;
  width: 12px;
  height: 12px;
}

.product-detail-modal__category-tag-label {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-detail-modal__content {
  display: contents;
}

.product-detail-modal__body {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: #ffffff;
}

.product-detail-modal__body-scroll {
  padding: 40px 36px 24px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  gap: 0;
}

.product-detail-modal__type {
  margin: 0 0 10px;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--Red--Cusanos, #b42a2c);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-detail-modal__title {
  margin: 0 0 10px;
  font-family: "Open Sans", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--black-cusanos);
  text-transform: uppercase;
}

.product-detail-modal__slogan {
  
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.4;
  color: #6d6d6d;
  margin: 0 0 14px;
}

.product-detail-modal__specs {
  margin: 32px 0 28px;
  padding: 16px 18px;
  border: 1px solid #F7EAEA;
  background: rgba(180, 42, 44, 0.02);
}

.product-detail-modal__specs-heading {
  margin: 0 0 12px;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #292929;
}

.product-detail-modal__specs-list {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 20px;
  margin: 0;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  line-height: 1.35;
}

.product-detail-modal__specs-term {
  color: #6D6D6D;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
}

.product-detail-modal__specs-value {
  color:  #292929;
text-align: right;
font-family: "Open Sans", sans-serif;
font-size: 14px;
font-style: normal;
font-weight: 600;
line-height: 1.2;
  text-align: right;
}

.product-detail-modal__features {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  margin: 14px 0 18px;
  padding: 0;
  list-style: none;
}

/* Frozen: five features — auto gap (space-between) */
.product-detail-modal__features--frozen {
  justify-content: space-between;
}

/* Fresh: three features — auto gap (space-between) */
.product-detail-modal__features--fresh {
  justify-content: space-between;
}

.product-detail-modal__feature {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 65px;
  text-align: center;
}

.product-detail-modal__feature-icon {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.product-detail-modal__feature-icon--svg {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-detail-modal__feature-icon--svg svg {
  display: block;
  width: 100%;
  height: 100%;
}

.product-detail-modal__feature-label {
  max-width: 70px;
  font-family: "Open Sans", sans-serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--black-cusanos);
  text-transform: uppercase;
}

.product-detail-modal__button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  width: calc(100% - 72px);
  min-height: 48px;
  margin: 0 36px 36px;
  margin-top: auto;
  padding: 12px 24px;
  border: 0;
  background: #b42a2c;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  align-self: center;
  flex-shrink: 0;
}

.product-detail-modal__button:hover,
.product-detail-modal__button:focus-visible {
  background: #972123;
}

@media (max-width: 992px) {
  .products-page {
    grid-template-columns: 1fr;
    gap: 28px;
  }
    .product-detail-modal__specs-list{
    gap: 8px 12px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
  }

  .product-card__media {
    aspect-ratio: auto;
    height: auto;
  }

  .product-card__image {
    width: 100%;
    height: auto;
    object-fit: unset;
  }

  .product-detail-modal {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: max(10px, env(safe-area-inset-top, 0px)) 12px max(12px, env(safe-area-inset-bottom, 0px));
  }

  .product-detail-modal__dialog {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    flex: 0 0 auto;
    /* Center when content is shorter than the viewport; still scrolls when taller */
    margin-block: auto;
    max-height: none;
    overflow-x: hidden;
    overflow-y: visible;
    min-height: 0;
    min-width: 0;
  }

  /* iOS Safari: avoid display:contents + grid (broken sizing); use a real flex stack */
  .product-detail-modal__content {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    min-height: 0;
  }

  .product-detail-modal__image-wrapper {
    display: block;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    align-self: stretch;
    aspect-ratio: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    flex-shrink: 0;
    overflow: hidden;
  }

  .product-detail-modal__image {
    display: block;
    width: 100%;
    height: auto;
    min-width: 0;
    min-height: 0;
    max-height: none;
    object-fit: unset;
    object-position: center;
  }

  .product-detail-modal__body {
    width: 100%;
    min-width: 0;
  }

  .product-detail-modal__body-scroll {
    padding: 20px 18px 14px;
    max-height: none;
    overflow-y: visible;
    flex: 0 0 auto;
  }

  .product-detail-modal__type {
    margin-bottom: 9px;
  }

  .product-detail-modal__title {
    margin-bottom: 10px;
  }

  .product-detail-modal__specs {
    margin: 22px 0;
    padding: 12px 14px;
  }

  .product-detail-modal__specs-heading {
    margin-bottom: 10px;
  }

  .product-detail-modal__features {
    margin-top: 10px;
    margin-bottom: 14px;
  }

  .product-detail-modal__features--frozen {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .product-detail-modal__features--fresh {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .product-detail-modal__feature {
    flex: 0 1 auto;
    width: auto;
    max-width: 65px;
  }

  .product-detail-modal__button {
    width: calc(100% - 40px);
    min-height: 44px;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: max(24px, env(safe-area-inset-bottom, 0px));
    font-size: 14px;
    padding: 10px 16px;
    flex-shrink: 0;
  }
}

/* Tablet stacked modal: cap image height so the card stays proportional */
@media (min-width: 737px) and (max-width: 992px) {
  .product-detail-modal__image-wrapper {
    height: min(42dvh, 400px);
    max-height: min(42dvh, 400px);
  }

  .product-detail-modal__image {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

/* Short viewport (e.g. phone landscape): top-align + smaller image so details stay scrollable */
@media (max-width: 992px) and (max-height: 520px) {
  .product-detail-modal__dialog {
    margin-block: 0;
  }
}

/* After the ≤992px 2-column rule: single column from 736px down */
@media (max-width: 736px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 12px 10px;
  }

  .product-detail-modal__body-scroll {
    padding: 18px 14px 12px;
  }
}

@media (max-width: 992px) {
  .products-toolbar {
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
  }

  .products-toolbar__count {
    width: 100%;
    order: -2;
  }

  .products-toolbar__filter-toggle {
    display: inline-flex;
    order: -1;
  }

  .products-toolbar__search {
    flex: 1 1 auto;
    min-width: 160px;
    max-width: none;
  }

  .products-search {
    min-width: 0;
  }

  /* Flex column avoids iOS Safari stretching the first grid row inside a flex sidebar */
  .products-filter-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    flex: 1 1 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 12px 20px 8px;
  }

  .products-filter-grid > .products-filter-group {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
  }

  body[data-page="products"] .products-sidebar .products-filter-title {
    border-bottom: none;
    padding-bottom: 8px;
  }

  .product-card__actions {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    min-width: 0;
    gap: 8px;
  }

  .product-card__button {
    width: 100%;
    flex: 0 0 auto;
    min-width: 0;
    white-space: nowrap;
    padding: 0 10px;
    font-size: 14px;
  }

  .products-modal {
    padding: 16px;
  }

  .products-modal__dialog {
    padding: 20px   ;
  }

  .products-modal__copy {
    margin: 20px 0 28px;
    font-size: 16px;
  }

  .products-modal__button {
    font-size: 16px;
  }

  .product-detail-modal__image-toolbar {
    top: 12px;
    left: 12px;
    right: 12px;
  }

  .product-detail-modal__title {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .product-detail-modal__type {
    font-size: 12px;
    margin-bottom: 7px;
  }

  .product-detail-modal__button {
    width: calc(100% - 32px);
    min-height: 42px;
    margin-left: 16px;
    margin-right: 16px;
    margin-bottom: max(24px, env(safe-area-inset-bottom, 0px));
    font-size: 14px;
    padding: 10px 16px;
    flex-shrink: 0;
  }

  .products-sidebar {
    display: none;
  }

  .products-sidebar.is-open {
    display: flex;
  }

  .products-sidebar__header {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 2;
    flex: 0 0 auto;
    padding: max(16px, env(safe-area-inset-top, 0px)) 20px 16px;
    background: #ffffff;
  }

  .products-filter-grid > .products-sidebar__actions {
    margin-top: 16px;
    padding: 0;
  }

  .products-filter-group + .products-filter-group {
    margin-top: 0;
  }

  .products-sidebar.is-open .products-filter-title {
    color: #1a1919;
    position: relative;
    z-index: 1;
    font-size: 16px;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .product-detail-modal {
    padding: max(6px, env(safe-area-inset-top, 0px)) 8px max(10px, env(safe-area-inset-bottom, 0px));
  }

  .product-detail-modal__body-scroll {
    padding: 14px 12px 10px;
  }

  .product-detail-modal__specs {
    margin: 8px 0;
    padding: 10px 12px;
  }

  .product-detail-modal__specs-heading {
    margin-bottom: 8px;
  }

  .product-detail-modal__title {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .product-detail-modal__type {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .product-detail-modal__features {
    margin-top: 8px;
    margin-bottom: 12px;
  }

  .product-detail-modal__button {
    width: calc(100% - 24px);
    min-height: 40px;
    margin-left: 12px;
    margin-right: 12px;
    margin-bottom: max(20px, env(safe-area-inset-bottom, 0px));
    font-size: 13px;
    padding: 8px 12px;
  }

  .product-detail-modal__image-toolbar {
    top: 8px;
    left: 8px;
    right: 8px;
  }

  .products-sidebar.is-open {
    max-width: 100%;
  }

  .products-sidebar__header {
    padding: 12px 16px;
  }

  .products-sidebar__title {
    font-size: 16px;
  }

  .products-sidebar__close {
    width: 28px;
    height: 28px;
    font-size: 20px;
  }

  .products-filter-grid {
    padding: 10px 16px 8px;
  }

  .products-filter-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.03em;
    color: #1a1919;
  }

  .products-filter-option {
    font-size: 14px;
  }

  .products-filter-option input {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
  }

  .products-filter-option input[type="radio"]::after {
    width: 8px;
    height: 8px;
  }

  .products-filter-grid > .products-sidebar__actions {
    margin-top: 12px;
  }

  .products-sidebar__button {
    padding: 10px 14px;
    font-size: 12px;
  }

  .products-toolbar {
    gap: 12px;
  }

  .products-toolbar__filter-toggle {
    padding: 6px 10px;
    font-size: 12px;
  }

  
.product-detail-modal__feature-icon {

  width:24px;
  height: 24px;

}
.product-detail-modal__specs-term {
 
  line-height: 1;
}

.product-detail-modal__specs-value {

line-height: 1;
  
}

}

@media (max-width: 480px) and (max-height: 520px) {
  .product-detail-modal__dialog {
    margin-block: 0;
  }
}
