.yes-category-products {
  --yes-category-accent: #B7A49C;
  --yes-category-ink: #5C4336;
  box-sizing: border-box;
  width: 100%;
  padding: clamp(56px, 7vw, 110px) clamp(18px, 4vw, 64px);
  overflow: hidden;
  color: var(--yes-category-ink);
  background: #F9F5EF;
  font-family: var(--body-font, "Montserrat", sans-serif);
}

.yes-category-products *,
.yes-category-products *::before,
.yes-category-products *::after { box-sizing: border-box; }

.yes-category-products button,
.yes-category-products a,
.yes-category-products h2,
.yes-category-products p { font-family: inherit; }

.yes-category-products__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  max-width: 1600px;
  margin: 0 auto 34px;
}

.yes-category-products__eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
}

.yes-category-products__title {
  margin: 0;
  color: inherit;
  font-size: clamp(28px, 3.4vw, 54px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.045em;
}

.yes-category-products__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yes-category-products__arrow {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #B7A49C;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  cursor: pointer;
  place-items: center;
}

.yes-category-products__arrow svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.yes-category-products__arrow:disabled {
  color: #B7A49C;
  cursor: default;
  opacity: .55;
}

.yes-category-products__view-all {
  margin-left: 12px;
  padding: 9px 0 7px;
  border-bottom: 1px solid currentColor;
  color: inherit;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.yes-category-products__tabs {
  display: flex;
  max-width: 1600px;
  margin: 0 auto 36px;
  gap: clamp(24px, 4vw, 68px);
  overflow-x: auto;
  scrollbar-width: none;
}

.yes-category-products__tabs::-webkit-scrollbar { display: none; }

.yes-category-products__tab {
  position: relative;
  flex: 0 0 auto;
  padding: 0 0 15px;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: clamp(13px, 1.25vw, 18px);
  font-weight: 600;
  letter-spacing: -.02em;
  cursor: pointer;
}

.yes-category-products__tab::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--yes-category-accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.yes-category-products__tab.is-active::after { transform: scaleX(1); }

.yes-category-products__tab:disabled {
  color: #B7A49C;
  cursor: default;
  opacity: .6;
}

.yes-category-products__tab:focus-visible,
.yes-category-products__arrow:focus-visible,
.yes-category-products__view-all:focus-visible,
.yes-product-card a:focus-visible {
  outline: 2px solid var(--yes-category-accent);
  outline-offset: 4px;
}

.yes-category-products__panel {
  max-width: 1600px;
  margin: 0 auto;
}

.yes-category-products__panel[hidden] { display: none; }

.yes-category-products__viewport {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.yes-category-products__viewport::-webkit-scrollbar { display: none; }

.yes-category-products__track {
  display: grid;
  grid-auto-columns: calc((100% - 72px) / 4);
  grid-auto-flow: column;
  gap: 24px;
}

.yes-product-card {
  min-width: 0;
  scroll-snap-align: start;
}

.yes-product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #FAEFE3;
}

.yes-product-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .45s ease;
}

.yes-product-card__media:hover .yes-product-card__image { transform: scale(1.025); }

.yes-product-card__info {
  display: grid;
  gap: 7px;
  padding-top: 16px;
}

.yes-product-card__name {
  overflow: hidden;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yes-product-card__category {
  color: #8A7165;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.yes-product-card__description {
  margin: 0;
  color: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.yes-category-products__empty {
  display: grid;
  min-height: 260px;
  padding: 30px;
  border: 1px dashed #B7A49C;
  color: #5C4336;
  background: #FAEFE3;
  font-size: 14px;
  text-align: center;
  place-items: center;
}

.yes-product-grid {
  box-sizing: border-box;
  width: 100%;
  padding: clamp(52px, 6vw, 88px) clamp(18px, 4vw, 64px) clamp(72px, 9vw, 128px);
  color: #5C4336;
  background: #F9F5EF;
  font-family: var(--body-font, "Montserrat", sans-serif);
}

.yes-product-grid *,
.yes-product-grid *::before,
.yes-product-grid *::after { box-sizing: border-box; }

.yes-product-grid__header { max-width: 1400px; margin: 0 auto 36px; }
.yes-product-grid__eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; color: #8A7165; font-size: 10px; font-weight: 600; letter-spacing: .2em; }
.yes-product-grid__eyebrow::after { width: 48px; height: 1px; background: #B7A49C; content: ""; }
.yes-product-grid__title { margin: 0; color: #5C4336; font-family: var(--heading-font, "Montserrat", sans-serif); font-size: clamp(38px, 5vw, 62px); font-weight: 400; line-height: 1.02; letter-spacing: -.035em; }
.yes-product-grid__items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 22px; max-width: 1400px; margin: 0 auto; }
.yes-product-grid__card { min-width: 0; transition: transform .25s ease; }
.yes-product-grid__card:hover { transform: translateY(-3px); }
.yes-product-grid__media { position: relative; display: block; overflow: hidden; aspect-ratio: 1; background: #F4EADF; box-shadow: 0 8px 24px rgba(92, 67, 54, .06); }
.yes-product-grid__image { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .45s ease; }
.yes-product-grid__media:hover .yes-product-grid__image { transform: scale(1.035); }
.yes-product-grid__badge { position: absolute; top: 12px; left: 12px; padding: 7px 9px; color: #F9F5EF; background: #5C4336; font-size: 9px; font-weight: 700; letter-spacing: .05em; }
.yes-product-grid__info { display: grid; gap: 9px; padding-top: 16px; }
.yes-product-grid__name { display: -webkit-box; min-height: 38px; overflow: hidden; color: inherit; font-size: 13px; font-weight: 500; line-height: 1.45; text-decoration: none; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.yes-product-grid__name:hover { color: #8A5E47; }
.yes-product-grid__price-line { display: flex; align-items: baseline; gap: 9px; font-size: 15px; }
.yes-product-grid__price-line del { color: #B7A49C; font-size: 12px; }
.yes-product-grid__price-line span { font-weight: 600; }
.yes-product-grid__link { display: inline-flex; justify-self: start; gap: 8px; margin-top: 2px; color: #5C4336; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.yes-product-grid__link span { color: #5C4336; }

@media (max-width: 767px) {
  .yes-category-products { padding: 50px 18px 64px; }

  .yes-category-products__header {
    align-items: flex-start;
    margin-bottom: 28px;
  }

  .yes-category-products__actions { gap: 7px; }
  .yes-category-products__arrow { width: 38px; height: 38px; }
  .yes-category-products__view-all { display: none; }
  .yes-category-products__tabs { margin-bottom: 26px; gap: 28px; }

  .yes-category-products__track {
    grid-auto-columns: min(76vw, 310px);
    gap: 14px;
  }

  .yes-product-grid { padding: 52px 18px 72px; }
  .yes-product-grid__items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 14px; }
  .yes-product-grid__header { margin-bottom: 24px; }
  .yes-product-grid__name { font-size: 12px; }
  .yes-product-grid__badge { top: 8px; left: 8px; padding: 6px 7px; font-size: 8px; }
}

@media (min-width: 768px) and (max-width: 1050px) {
  .yes-product-grid__items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .yes-category-products__tab::after,
  .yes-product-card__image,
  .yes-product-grid__card,
  .yes-product-grid__image { transition: none; }
}
