.product-catalog-hero {
  min-height: 470px;
  background: #f5eee4;
}

.product-catalog-hero .page-hero-copy {
  width: min(780px, 100%);
}

.product-catalog-hero h1 {
  margin-bottom: 24px;
}

.catalog-section {
  padding: 105px 24px 125px;
  background: var(--white);
}

.catalog-container {
  width: min(100%, var(--content));
  margin: 0 auto;
}

.catalog-intro {
  margin-bottom: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: 60px;
}

.catalog-intro h2 {
  max-width: 680px;
  margin-bottom: 0;
}

.catalog-intro > p {
  margin: 0 0 6px;
  color: var(--muted);
}

.catalog-toolbar {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.catalog-search {
  width: min(360px, 100%);
  min-height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #d9cebf;
  border-radius: 12px;
  background: var(--white);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.catalog-search:focus-within {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(110, 119, 78, 0.12);
}

.catalog-search svg {
  width: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--olive);
  stroke-linecap: round;
  stroke-width: 1.7;
}

.catalog-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  font: inherit;
  background: transparent;
}

.catalog-search input::placeholder {
  color: #8a877f;
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.catalog-filter {
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid #d9cebf;
  border-radius: 999px;
  color: #4f504b;
  font: 500 12px var(--sans);
  background: var(--white);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.catalog-filter:hover {
  border-color: var(--olive);
  color: var(--olive-deep);
  transform: translateY(-1px);
}

.catalog-filter.active,
.catalog-filter[aria-pressed="true"] {
  border-color: var(--olive);
  color: var(--white);
  background: var(--olive);
}

.catalog-status {
  margin: 24px 0 20px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.catalog-anchor {
  height: 0;
  display: block;
  scroll-margin-top: 110px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.catalog-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e4dacd;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(67, 58, 45, 0.08);
  animation: catalog-card-in 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms ease, border-color 260ms ease;
}

.catalog-card:hover {
  border-color: #d3c3af;
  box-shadow: 0 20px 42px rgba(67, 58, 45, 0.14);
  transform: translateY(-6px);
}

.catalog-card[hidden] {
  display: none;
}

.product-image-placeholder {
  min-height: 290px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  border-bottom: 1px solid #e5dbcf;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg, #f1e8dc, #e7d9c7);
}

.product-image-placeholder::before,
.product-dialog-placeholder::before {
  width: 44px;
  height: 44px;
  display: block;
  position: absolute;
  border: 1px solid rgba(102, 107, 75, 0.35);
  border-radius: 50%;
  content: "+";
  color: var(--olive);
  font: 300 27px/41px var(--sans);
  text-align: center;
}

.product-image-placeholder {
  position: relative;
}

.product-image-placeholder span,
.product-dialog-placeholder span {
  margin-top: 72px;
  color: #777469;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.tone-pineapple {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg, #f4ead4, #e7d5aa);
}

.tone-mango {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg, #f4e4cf, #e5c59b);
}

.tone-hibiscus {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg, #f2e4df, #ddc1b6);
}

.tone-tofu {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg, #f4efe6, #e8dfd0);
}

.catalog-card-body {
  padding: 28px;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

.catalog-category {
  margin: 0 0 10px;
  color: var(--olive);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.catalog-card h3 {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.15;
}

.catalog-description {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 14px;
}

.catalog-availability {
  margin: -12px 0 18px;
  color: #8b5d19;
  font-size: 11px;
  font-weight: 600;
}

.product-dialog-subtitle {
  margin-bottom: 12px !important;
  color: var(--olive) !important;
  font-family: var(--serif);
  font-size: 20px;
}

.product-dialog-highlight {
  padding-left: 14px;
  border-left: 2px solid #b58d4b;
  color: var(--ink) !important;
  font-size: 13px;
  font-weight: 600;
}

.product-dialog-price {
  color: var(--olive-deep) !important;
  font-family: var(--serif);
  font-size: 24px;
}

.catalog-details-button {
  min-height: 44px;
  margin-top: auto;
  padding: 0 22px;
  border: 0;
  cursor: pointer;
}

.catalog-empty {
  padding: 75px 24px;
  border: 1px dashed #d5c8b8;
  border-radius: 18px;
  text-align: center;
  background: var(--paper);
}

.catalog-empty p {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 26px;
}

.catalog-empty button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--olive);
  color: var(--olive);
  font: 600 12px var(--sans);
  background: transparent;
  cursor: pointer;
}

.product-dialog {
  width: min(880px, calc(100% - 40px));
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 28px 90px rgba(35, 31, 25, 0.28);
}

.product-dialog::backdrop {
  background: rgba(34, 33, 29, 0.55);
  backdrop-filter: blur(4px);
}

.product-dialog-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.product-dialog-placeholder {
  min-height: 520px;
  display: grid;
  place-items: center;
  position: relative;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg, #f1e8dc, #e7d9c7);
}

.product-dialog-placeholder img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
}

.product-dialog-placeholder.has-image::before {
  display: none;
}

.product-dialog-copy {
  padding: 70px 55px;
  align-self: center;
}

.product-dialog-copy h2 {
  margin-bottom: 18px;
}

.product-dialog-copy > p:not(.catalog-category) {
  margin: 0 0 30px;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes catalog-card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .catalog-intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .catalog-intro > p {
    max-width: 620px;
  }

  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-search {
    width: 100%;
  }

  .catalog-filters {
    justify-content: flex-start;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .product-catalog-hero {
    min-height: 420px;
    padding-top: 90px;
  }

  .catalog-section {
    padding: 78px 20px 95px;
  }

  .catalog-intro {
    margin-bottom: 38px;
  }

  .catalog-toolbar {
    padding: 14px;
  }

  .catalog-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-filter {
    width: 100%;
    padding: 0 10px;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .product-image-placeholder {
    min-height: 250px;
  }

  .catalog-card-body {
    padding: 25px;
  }

  .product-dialog {
    overflow-y: auto;
  }

  .product-dialog-layout {
    grid-template-columns: 1fr;
  }

  .product-dialog-placeholder {
    min-height: 260px;
  }

  .product-dialog-copy {
    padding: 38px 26px 32px;
  }
}

/* Premium catalog refinement */
.product-catalog-hero {
  min-height: 540px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid rgba(148, 127, 94, 0.18);
  background: #f4e4ca url("assets/products-hero-background.jpeg") center / cover no-repeat;
}

.product-catalog-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(255, 250, 241, 0.08);
  content: "";
}

.product-catalog-hero::after {
  width: 1px;
  height: 58px;
  position: absolute;
  bottom: 0;
  left: 50%;
  background: rgba(110, 119, 78, 0.46);
  content: "";
}

.product-catalog-hero .page-hero-copy {
  position: relative;
  z-index: 1;
}

.product-catalog-hero .eyebrow {
  margin-bottom: 25px;
  letter-spacing: 0.24em;
}

.product-catalog-hero h1 {
  margin-bottom: 27px;
  font-size: clamp(62px, 7.7vw, 96px);
  letter-spacing: -0.048em;
  text-shadow: 0 10px 32px rgba(76, 63, 46, 0.08);
}

.product-catalog-hero .page-hero-copy > p:last-child {
  max-width: 670px;
  font-size: 18px;
  line-height: 1.8;
}

.catalog-section {
  padding-top: 125px;
  background:
    linear-gradient(rgba(235, 226, 213, 0.38) 1px, transparent 1px) 0 0 / 100% 180px,
    #fbfaf7;
}

.catalog-intro {
  margin-bottom: 68px;
}

.catalog-intro h2 {
  max-width: 740px;
  font-size: clamp(43px, 4.6vw, 61px);
  letter-spacing: -0.035em;
}

.catalog-intro > p {
  max-width: 380px;
  padding-left: 24px;
  position: relative;
  line-height: 1.8;
}

.catalog-intro > p::before {
  width: 1px;
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  background: #b7a27e;
  content: "";
}

.catalog-toolbar {
  padding: 14px;
  position: sticky;
  z-index: 5;
  top: 96px;
  border-color: rgba(180, 160, 129, 0.32);
  border-radius: 20px;
  background: rgba(248, 244, 237, 0.9);
  box-shadow: 0 16px 38px rgba(74, 63, 47, 0.08);
  backdrop-filter: blur(14px);
}

.catalog-search {
  min-height: 54px;
  padding: 0 18px;
  border-color: transparent;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(61, 52, 40, 0.06);
}

.catalog-filter {
  min-height: 46px;
  padding: 0 19px;
  border-color: transparent;
  color: #5e5d56;
  background: transparent;
}

.catalog-filter:hover {
  border-color: rgba(110, 119, 78, 0.42);
  background: rgba(255, 255, 255, 0.72);
}

.catalog-filter.active,
.catalog-filter.selected,
.catalog-filter[aria-pressed="true"] {
  border-color: var(--olive);
  color: var(--olive-deep);
  background: var(--paper);
  box-shadow: 0 8px 20px rgba(94, 103, 66, 0.2);
}

.catalog-filter.active:hover,
.catalog-filter.selected:hover,
.catalog-filter[aria-pressed="true"]:hover {
  border-color: var(--olive);
  color: var(--olive-deep);
  background: var(--paper-deep);
}

.catalog-status {
  margin: 34px 0 22px;
  color: #817c71;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 32px;
}

.catalog-card {
  width: 100%;
  height: 100%;
  position: relative;
  border-color: rgba(201, 185, 162, 0.58);
  border-radius: 22px;
  background: #fffefa;
  box-shadow:
    0 2px 2px rgba(62, 52, 39, 0.02),
    0 18px 50px rgba(62, 52, 39, 0.075);
}

.catalog-card::before {
  height: 3px;
  position: absolute;
  z-index: 2;
  top: 0;
  right: 42px;
  left: 42px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, transparent, rgba(110, 119, 78, 0.62), transparent);
  content: "";
}

.catalog-card:hover {
  border-color: rgba(164, 142, 109, 0.6);
  box-shadow:
    0 4px 8px rgba(62, 52, 39, 0.035),
    0 28px 65px rgba(62, 52, 39, 0.13);
  transform: translateY(-8px);
}

.product-image-placeholder {
  width: 100%;
  height: 315px;
  min-height: 315px;
  flex: 0 0 315px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: auto;
  border-bottom-color: rgba(193, 174, 146, 0.34);
  background:
    radial-gradient(circle at 48% 38%, rgba(255, 255, 255, 0.94), transparent 36%),
    linear-gradient(145deg, #f3ebe0, #dfcfb9);
}

.product-image-placeholder.product-image-filled {
  background: #f6efe3;
}

.product-image-filled img {
  width: 100%;
  height: 100%;
  display: block;
  position: static;
  object-fit: contain;
  object-position: center;
}

.product-image-filled .kombucha-product-photo {
  object-fit: contain;
  object-position: center bottom;
}

.product-image-filled::before,
.product-image-filled::after {
  display: none;
}

.product-image-placeholder::before,
.product-dialog-placeholder::before {
  width: auto;
  height: auto;
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(107, 112, 80, 0.17);
  border-radius: 16px;
  content: "";
}

.product-image-placeholder::after {
  position: absolute;
  top: 28px;
  left: 29px;
  content: attr(data-index);
  color: rgba(79, 82, 57, 0.65);
  font: 500 24px var(--serif);
}

.product-image-placeholder span,
.product-dialog-placeholder span {
  margin: 0;
  padding: 9px 12px;
  position: absolute;
  right: 29px;
  bottom: 27px;
  border: 1px solid rgba(112, 107, 93, 0.16);
  border-radius: 999px;
  color: #716e63;
  background: rgba(255, 253, 248, 0.72);
  backdrop-filter: blur(7px);
}

.tone-original {
  background:
    radial-gradient(circle at 48% 38%, rgba(255, 255, 255, 0.94), transparent 36%),
    linear-gradient(145deg, #efe8dc, #d9c9b1);
}

.tone-pineapple {
  background:
    radial-gradient(circle at 48% 38%, rgba(255, 255, 255, 0.94), transparent 36%),
    linear-gradient(145deg, #f5ead1, #dfc68c);
}

.tone-mango {
  background:
    radial-gradient(circle at 48% 38%, rgba(255, 255, 255, 0.94), transparent 36%),
    linear-gradient(145deg, #f6e4cc, #dcb986);
}

.tone-hibiscus {
  background:
    radial-gradient(circle at 48% 38%, rgba(255, 255, 255, 0.94), transparent 36%),
    linear-gradient(145deg, #f1e2dc, #d7b4a8);
}

.tone-tofu {
  background:
    radial-gradient(circle at 48% 38%, rgba(255, 255, 255, 0.96), transparent 36%),
    linear-gradient(145deg, #f6f0e6, #ddd2c1);
}

.catalog-card-body {
  width: 100%;
  padding: 32px 31px 30px;
  align-items: flex-start;
  text-align: left;
}

.catalog-category {
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: 0.17em;
}

.catalog-category::before {
  width: 24px;
  height: 1px;
  background: #b5a076;
  content: "";
}

.catalog-card h3 {
  margin-bottom: 16px;
  font-size: 30px;
  letter-spacing: -0.025em;
}

.catalog-description {
  margin-bottom: 30px;
  line-height: 1.72;
}

.catalog-details-button {
  width: 100%;
  min-height: 49px;
  padding: 0 18px 0 20px;
  justify-content: space-between;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(94, 103, 66, 0.17);
}

.catalog-details-button::after {
  content: "↗";
  font-size: 16px;
  transition: transform 180ms ease;
}

.catalog-details-button:hover::after {
  transform: translate(2px, -2px);
}

.whatsapp-cta {
  width: 100%;
  height: 52px;
  margin-top: 16px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #6f7f55;
  border-radius: 16px;
  color: #4f5f3a;
  font: 600 12px var(--sans);
  background: #f6efe3;
  box-shadow: 0 8px 20px rgba(94, 110, 73, 0.1);
  cursor: pointer;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.whatsapp-cta svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: currentColor;
}

.whatsapp-cta:hover {
  border-color: #5e6e49;
  background: #efe3d0;
  box-shadow: 0 11px 24px rgba(94, 110, 73, 0.16);
  transform: translateY(-2px);
}

.whatsapp-cta:focus-visible {
  outline: 3px solid rgba(111, 127, 85, 0.3);
  outline-offset: 3px;
}

.product-dialog {
  border: 1px solid rgba(197, 180, 155, 0.55);
  border-radius: 24px;
  background: #fffefa;
}

.product-dialog-placeholder {
  background:
    radial-gradient(circle at 48% 38%, rgba(255, 255, 255, 0.94), transparent 36%),
    linear-gradient(145deg, #f2e9dd, #dccbb4);
}

.product-dialog-copy {
  padding: 78px 62px;
}

.product-dialog-copy h2 {
  font-size: clamp(40px, 5vw, 58px);
  letter-spacing: -0.035em;
}

@media (max-width: 980px) {
  .catalog-intro {
    gap: 24px;
  }

  .catalog-intro > p {
    padding-left: 0;
  }

  .catalog-intro > p::before {
    display: none;
  }

  .catalog-toolbar {
    position: static;
  }

  .product-image-placeholder {
    height: 280px;
    min-height: 280px;
    flex-basis: 280px;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .product-catalog-hero {
    min-height: 470px;
    background-position: center;
  }

  .product-catalog-hero::before {
    background: rgba(255, 250, 241, 0.16);
  }

  .product-catalog-hero h1 {
    font-size: clamp(52px, 15vw, 70px);
  }

  .product-catalog-hero .page-hero-copy > p:last-child {
    font-size: 16px;
    line-height: 1.65;
  }

  .catalog-section {
    padding-top: 88px;
  }

  .catalog-intro {
    margin-bottom: 44px;
  }

  .catalog-intro h2 {
    font-size: 42px;
  }

  .catalog-toolbar {
    border-radius: 17px;
    box-shadow: 0 12px 30px rgba(74, 63, 47, 0.07);
  }

  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .catalog-card {
    border-radius: 20px;
  }

  .product-image-placeholder {
    height: 265px;
    min-height: 265px;
    flex-basis: 265px;
  }

  .catalog-card-body {
    padding: 28px 26px 27px;
  }

  .product-dialog-copy {
    padding: 42px 28px 34px;
  }
}
