.page-product-catalog {
  background:
    radial-gradient(circle at 16% 10%, rgba(var(--accent-rgb), 0.12), transparent 24%),
    radial-gradient(circle at 84% 22%, rgba(var(--accent-rgb), 0.08), transparent 26%),
    linear-gradient(180deg, #fbfaff 0%, #f0ecf7 100%);
}

.page-product-catalog .site-header {
  animation: none;
}

.shop-main {
  padding-top: var(--header-h);
}

.shop-shell {
  width: min(1440px, calc(100% - 72px));
  margin-inline: auto;
}

.product-hero {
  position: relative;
  min-height: clamp(500px, 64svh, 660px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--deep-2);
  isolation: isolate;
}

.product-hero__media,
.product-hero__shade {
  position: absolute;
  inset: 0;
}

.product-hero__media {
  z-index: 0;
}

.product-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  --hero-media-opacity: 0.58;
  opacity: 0;
  filter: saturate(0.84) contrast(1.08);
  transform: scale(1.07);
  animation:
    siteHeroImageIn 900ms cubic-bezier(0.22, 1, 0.36, 1) 120ms forwards,
    siteHeroImageDrift 18s ease-in-out 1.02s infinite alternate;
}

.product-hero__shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(var(--deep-rgb), 0.96), rgba(var(--deep-rgb), 0.64) 48%, rgba(var(--deep-rgb), 0.86)),
    linear-gradient(0deg, rgba(var(--deep-rgb), 0.82), transparent 55%);
  animation: productHeroShadeIn 900ms ease both;
}

.product-hero::after {
  content: "";
  position: absolute;
  inset: -36%;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.28) 0%, rgba(var(--accent-rgb), 0.15) 24%, rgba(var(--accent-rgb), 0) 58%);
  filter: blur(26px);
  opacity: 0;
  transform: translate3d(-26%, -18%, 0) scale(1);
  animation:
    siteHeroLightIn 900ms ease 380ms forwards,
    siteHeroLightDrift 18s ease-in-out 1.28s infinite alternate;
  will-change: transform;
}

.product-hero__content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 760px);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(64px, 8vh, 104px);
}

.product-hero__copy {
  position: relative;
}

.product-hero__copy .shop-kicker,
.product-hero__copy h1,
.product-hero__copy p {
  opacity: 0;
  transform: translateY(26px);
  animation: productHeroTextIn 780ms cubic-bezier(0.18, 0.84, 0.24, 1) both;
}

.product-hero__copy .shop-kicker {
  animation-delay: 140ms;
}

.product-hero__copy h1 {
  animation-delay: 280ms;
}

.product-hero__copy p {
  animation-delay: 460ms;
}

.product-hero__copy h1 {
  max-width: 760px;
  margin: 22px 0 18px;
  color: var(--white);
  font-size: var(--hero-title-size);
  font-weight: 900;
  line-height: var(--hero-title-line-height);
  letter-spacing: 0;
}

.product-hero__copy p {
  max-width: 560px;
  margin: 0;
  color: rgba(var(--white-rgb), 0.82);
  font-size: clamp(18px, 1.25vw, 22px);
  font-weight: 750;
  line-height: 1.48;
}

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

@keyframes productHeroTextIn {
  from {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.shop-kicker--light {
  border-color: rgba(var(--white-rgb), 0.2);
  background: rgba(var(--white-rgb), 0.1);
  color: var(--white);
  box-shadow: none;
}

.product-hero__panel {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid rgba(var(--white-rgb), 0.18);
  border-radius: var(--radius-card);
  background: rgba(var(--white-rgb), 0.1);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.product-hero__panel span {
  color: rgba(var(--white-rgb), 0.62);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-hero__panel strong {
  color: var(--white);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 900;
  line-height: 1.08;
}

.product-hero__panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(var(--white-rgb), 0.78);
  font-size: 15px;
  font-weight: 800;
}

.product-hero__panel li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-hero__panel li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(var(--accent-rgb), 0.16);
}

.shop-kicker {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(var(--ink-rgb), 0.1);
  border-radius: var(--radius-ui);
  background: rgba(var(--white-rgb), 0.74);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 16px 42px rgba(var(--deep-rgb), 0.06);
}

.shop-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(var(--accent-rgb), 0.18);
}

.shop-kicker--dark {
  box-shadow: none;
}

.shop-content-head h2 {
  margin: 14px 0 10px;
  color: var(--ink);
  font-size: clamp(44px, 4.2vw, 66px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
}

.shop-section {
  padding-block: clamp(34px, 4vw, 64px) clamp(72px, 8vw, 112px);
}

.shop-filter-bar {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.shop-filter-dropdown {
  position: relative;
  z-index: 1;
}

.shop-filter-dropdown[open] {
  z-index: 30;
}

.shop-filter-dropdown summary,
.shop-reset-button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(var(--line-rgb), 0.92);
  border-radius: var(--radius-ui);
  padding: 0 18px;
  background: rgba(var(--white-rgb), 0.82);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 18px 54px rgba(var(--deep-rgb), 0.06);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.shop-filter-dropdown summary {
  min-width: 170px;
  list-style: none;
}

.shop-filter-dropdown summary::-webkit-details-marker {
  display: none;
}

.shop-filter-dropdown summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.shop-filter-dropdown[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.shop-filter-dropdown summary:hover,
.shop-filter-dropdown summary:focus-visible,
.shop-filter-dropdown[open] summary,
.shop-reset-button:hover,
.shop-reset-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.42);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-deep);
}

.shop-filter-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 31;
  min-width: 230px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(var(--line-rgb), 0.92);
  border-radius: var(--radius-ui);
  background: rgba(var(--white-rgb), 0.96);
  box-shadow: 0 28px 80px rgba(var(--deep-rgb), 0.14);
}

.shop-filter-menu--wide {
  min-width: 250px;
}

.shop-filter-menu button,
.shop-filter-menu label {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: var(--radius-ui);
  padding: 0 12px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 14px;
  font-weight: 720;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.shop-filter-menu button:hover,
.shop-filter-menu button:focus-visible,
.shop-filter-menu button.is-active,
.shop-filter-menu label:hover {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-deep);
}

.shop-filter-menu input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

.shop-filter-empty {
  margin: 0;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 24px);
}

.shop-product-card {
  position: relative;
  isolation: isolate;
  min-width: 0;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(var(--line-rgb), 0.9);
  border-radius: var(--radius-card);
  background: rgba(var(--white-rgb), 0.86);
  box-shadow: 0 24px 70px rgba(var(--deep-rgb), 0.08);
  transition: box-shadow 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.shop-product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 0%, rgba(var(--accent-rgb), 0.13), transparent 38%),
    linear-gradient(180deg, rgba(var(--white-rgb), 0.36), transparent 42%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.shop-product-card > * {
  position: relative;
  z-index: 1;
}

.shop-product-card:hover,
.shop-product-card:focus-within {
  border-color: rgba(var(--accent-rgb), 0.36);
  background: rgba(var(--white-rgb), 0.92);
  box-shadow:
    0 30px 92px rgba(var(--deep-rgb), 0.13),
    0 0 0 1px rgba(var(--accent-rgb), 0.08) inset;
}

.shop-product-card:hover::before,
.shop-product-card:focus-within::before {
  opacity: 1;
}

.shop-product-card__media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 318px;
  padding: 30px;
  background: rgba(var(--white-rgb), 0.96);
  transition: background-color 220ms ease;
}

.shop-product-card__media img {
  width: min(100%, 330px);
  height: 268px;
  object-fit: contain;
  transform: translateZ(0);
  transition: transform 260ms ease, filter 260ms ease;
}

.shop-product-card:hover img,
.shop-product-card:focus-within img {
  filter: saturate(1.02) contrast(1.02);
  transform: scale(1.025);
}

.shop-stock {
  position: absolute;
  top: 16px;
  z-index: 2;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-ui);
  padding-inline: 12px;
  font-size: 12px;
  font-weight: 900;
}

.shop-stock {
  right: 16px;
  background: rgba(var(--white-rgb), 0.92);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(var(--deep-rgb), 0.08);
}

.shop-stock[data-status="available"] {
  color: #07864e;
  background: #def8eb;
}

.shop-stock[data-status="low"] {
  color: #bd6a00;
  background: #fff0dc;
}

.shop-stock[data-status="empty"] {
  color: #d33d3d;
  background: #ffe8e8;
}

.shop-product-card__body {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.shop-product-card h3 {
  min-height: 54px;
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
}

.shop-price-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 14px;
}

.shop-price {
  color: var(--ink);
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
}

.shop-more button {
  min-height: 46px;
  border: 0;
  border-radius: var(--radius-ui);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.shop-more button:hover,
.shop-more button:focus-visible {
  transform: translateY(-2px);
}

.shop-empty {
  margin: 26px 0 0;
  padding: 18px 20px;
  border: 1px solid rgba(var(--line-rgb), 0.9);
  border-radius: var(--radius-ui);
  background: rgba(var(--white-rgb), 0.78);
  color: var(--ink);
  font-weight: 850;
}

.shop-more {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.shop-more button[hidden] {
  display: none;
}

.shop-more button {
  min-width: 220px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--white);
  box-shadow: 0 18px 44px rgba(var(--accent-rgb), 0.28);
}

@media (max-width: 1180px) {
  .shop-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .shop-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-filter-dropdown summary,
  .shop-reset-button {
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .shop-shell {
    width: min(100% - 40px, 720px);
  }

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

  .shop-filter-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .shop-filter-dropdown summary,
  .shop-reset-button {
    width: 100%;
  }

  .shop-filter-menu {
    width: min(280px, calc(100vw - 32px));
  }

  .shop-product-card__media {
    min-height: 270px;
  }

  .shop-product-card__media img {
    height: 220px;
  }
}

@media (max-width: 430px) {
  .shop-shell {
    width: min(100% - 32px, 430px);
  }

  .shop-kicker {
    font-size: 11px;
  }

  .shop-product-card {
    border-radius: var(--radius-ui);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-hero__media img,
  .product-hero__shade,
  .product-hero::after,
  .product-hero__copy .shop-kicker,
  .product-hero__copy h1,
  .product-hero__copy p {
    animation: none;
  }

  .product-hero__media img,
  .product-hero__copy .shop-kicker,
  .product-hero__copy h1,
  .product-hero__copy p {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .product-hero__media img {
    opacity: 0.58;
  }

  .product-hero::after {
    opacity: var(--hero-light-opacity, 0.78);
    transform: none;
  }
}
