.product-page {
  background:
    radial-gradient(circle at top left, rgba(240, 195, 108, 0.24), transparent 34%),
    linear-gradient(180deg, #f6f7ef 0%, #ffffff 46%, #eef3e0 100%) !important;
}

.product-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: auto;
  padding: 38px 5vw 22px;
  overflow: visible;
}

.product-hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(280px, 390px);
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
  max-width: 1180px;
}

.product-hero-main {
  min-width: 0;
}

.product-hero h1 {
  color: var(--green);
  font-size: clamp(46px, 6vw, 80px);
}

.price-update-note {
  display: grid;
  gap: 8px;
  max-width: 390px;
  padding: 20px 22px;
  border: 1px solid rgba(240, 195, 108, 0.52);
  border-left: 6px solid var(--amber);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 225, 0.9));
  box-shadow: var(--shadow-md);
}

.price-update-note strong {
  color: var(--green);
  font-size: 20px;
  line-height: 1.2;
}

.price-update-note span {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.product-hero-text {
  max-width: 720px;
  margin-top: 18px;
  font-size: 21px;
}

.product-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
}

.product-back-btn {
  border-color: rgba(36, 51, 19, 0.28);
  color: var(--green);
  background: rgba(255, 255, 255, 0.62);
}

.product-back-btn:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.produce-switch-section {
  --panel-tint: rgba(255, 255, 255, 0.9);

  padding: 12px 0 110px;
  animation: fadeUp 0.28s ease both;
}

.produce-switch-section[data-produce="fruits"] {
  --panel-tint: rgba(255, 255, 255, 0.9);
}

.produce-switch-section[data-produce="vegetables"] {
  --panel-tint: rgba(255, 255, 255, 0.9);
}

.produce-switch-section[data-produce="other"] {
  --panel-tint: rgba(255, 255, 255, 0.9);
}

.produce-switch {
  --switch-bg: rgba(26, 39, 16, 0.76);
  --switch-text: rgba(246, 247, 239, 0.74);

  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1180px, 94vw);
  margin: 0 auto;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 38%),
    var(--switch-bg);
  box-shadow:
    inset 1px 1px 4px rgba(255, 255, 255, 0.18),
    inset -1px -1px 8px rgba(0, 0, 0, 0.28),
    var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.produce-tab {
  appearance: none;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 124px;
  padding: 34px 42px;
  color: var(--switch-text);
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 800;
  cursor: pointer;
  transform: translateY(0) scale(1);
  transition:
    color 0.28s ease,
    text-shadow 0.28s ease,
    transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.produce-tab:hover,
.produce-tab.is-active {
  color: var(--white);
}

.produce-tab:hover {
  transform: translateY(-2px) scale(1.02);
}

.produce-tab.is-active {
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  transform: translateY(-3px) scale(1.04);
}

.produce-tab:focus-visible {
  outline: 3px solid rgba(240, 195, 108, 0.76);
  outline-offset: -8px;
  border-radius: 24px;
}

.produce-glider {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: calc(100% / 3);
  height: 124px;
  border-radius: 28px;
  transition:
    transform 0.5s cubic-bezier(0.37, 1.55, 0.66, 1),
    background 0.32s ease,
    box-shadow 0.32s ease;
}

.produce-switch-section[data-produce="fruits"] .produce-glider {
  transform: translateX(0%);
  background: linear-gradient(135deg, rgba(192, 57, 43, 0.5), #e85d4f);
  box-shadow:
    0 0 22px rgba(192, 57, 43, 0.42),
    inset 0 0 12px rgba(255, 225, 218, 0.45);
}

.produce-switch-section[data-produce="vegetables"] .produce-glider {
  transform: translateX(100%);
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.48), #35c875);
  box-shadow:
    0 0 22px rgba(39, 174, 96, 0.42),
    inset 0 0 12px rgba(220, 255, 232, 0.45);
}

.produce-switch-section[data-produce="other"] .produce-glider {
  transform: translateX(200%);
  background: linear-gradient(135deg, rgba(240, 195, 108, 0.52), #f2c978);
  box-shadow:
    0 0 22px rgba(240, 195, 108, 0.42),
    inset 0 0 12px rgba(255, 246, 214, 0.45);
}

.produce-panels {
  position: relative;
  width: 100%;
  min-height: 240px;
  margin-top: 22px;
  padding: 42px 5vw;
  background: var(--panel-tint);
  transition: background 0.28s ease;
}

.produce-panel {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.produce-switch-section[data-produce="fruits"] .fruits-panel,
.produce-switch-section[data-produce="vegetables"] .vegetables-panel,
.produce-switch-section[data-produce="other"] .other-panel {
  display: grid;
  animation: fadeUp 0.36s ease both;
}

.catalog-product {
  display: grid;
  align-content: space-between;
  min-height: 190px;
  padding: 26px;
  border: 1px solid rgba(36, 51, 19, 0.08);
  border-radius: var(--radius-md);
  background: var(--cream);
  box-shadow: var(--shadow-sm);
}

.catalog-product strong,
.catalog-product span {
  display: block;
}

.catalog-product strong {
  color: var(--green);
  font-size: 28px;
  line-height: 1.25;
}

.product-price {
  margin-top: 28px;
  color: var(--green);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
}

.catalog-product[data-produce-group="fruits"] .product-price {
  color: var(--red);
}

.catalog-product[data-produce-group="vegetables"] .product-price {
  color: #27ae60;
}

.catalog-product[data-produce-group="other"] .product-price {
  color: var(--amber);
}

.product-unit {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
}

.catalog-message {
  grid-column: 1 / -1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  min-height: 118px;
  overflow: hidden;
  padding: 30px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(240, 195, 108, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 229, 0.88)),
    var(--cream);
  color: var(--green);
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.catalog-message::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(240, 195, 108, 0.22), transparent);
  transform: translateX(-100%);
  opacity: 0;
}

.catalog-message--loading::before {
  opacity: 1;
  animation: catalogLoadingSweep 1.45s ease-in-out infinite;
}

.catalog-loader {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 4px solid rgba(36, 51, 19, 0.16);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: catalogLoaderSpin 0.8s linear infinite;
}

.catalog-message-text {
  position: relative;
  z-index: 1;
}

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

@keyframes catalogLoadingSweep {
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 900px) {
  .product-hero-copy {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .price-update-note {
    max-width: 620px;
  }

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

}

@media (max-width: 560px) {
  .produce-switch {
    border-radius: var(--radius-md);
  }

  .produce-tab {
    min-height: 86px;
    padding: 20px 8px;
    font-size: 20px;
  }

  .produce-glider {
    height: 86px;
    border-radius: var(--radius-md);
  }

  .produce-panels {
    padding: 20px;
  }

  .produce-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .product-hero,
  .produce-switch-section {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .product-hero-actions {
    width: 100%;
  }

}
