:root {
  color-scheme: light;
  --bg: #f6f0e2;
  --panel: #fffaf0;
  --ink: #251c12;
  --muted: #746550;
  --line: #dfc58e;
  --honey: #c77708;
  --leaf: #1f673e;
  --leaf-dark: #0e3d25;
  --leaf-soft: #e4f0d8;
  --amber-soft: #ffe1a6;
  --berry: #9b2f30;
  --shadow: 0 18px 45px rgba(84, 53, 12, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 247, 223, 0.54) 0%, rgba(246, 240, 226, 0.46) 42%, rgba(247, 237, 216, 0.58) 100%),
    radial-gradient(circle at 12% 4%, rgba(255, 202, 87, 0.16), transparent 30%),
    url("assets/brand/hero-honey-premium-fast.jpg?v=20260915-speed-v1") center top / cover;
  color: var(--ink);
  font-family: "Trebuchet MS", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 44px);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 225, 166, 0.45);
  background:
    linear-gradient(90deg, rgba(14, 61, 37, 0.94), rgba(31, 103, 62, 0.88) 58%, rgba(154, 89, 8, 0.84)),
    url("assets/brand/hero-honey-premium-fast.jpg?v=20260915-speed-v1") center 44% / cover;
  color: white;
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 32px rgba(37, 28, 18, 0.18);
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 225, 166, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 50%);
}

.topbar > * {
  position: relative;
  z-index: 1;
}

.brandMark {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brandMark img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  background: white;
  box-shadow: 0 8px 18px rgba(10, 30, 18, 0.26);
}

.topActions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.marketplaceTopbar {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1.35fr) auto;
}

.topSearch {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 231, 169, 0.52);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: #7a5107;
  box-shadow:
    0 14px 34px rgba(19, 49, 29, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.topSearch span {
  font-size: 14px;
  font-weight: 900;
  color: var(--leaf-dark);
}

.topSearch input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(19px, 2vw, 30px);
  line-height: 1.05;
}

.topbar h1 {
  color: white;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.24);
}

h2 {
  font-size: clamp(21px, 2vw, 30px);
  line-height: 1.12;
}

h3 {
  font-size: 18px;
  line-height: 1.22;
}

.eyebrow {
  color: var(--leaf);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar .eyebrow {
  color: #ffe8aa;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.whatsapp,
.cardAction,
.addCart,
.ghostButton,
.cartButton,
.heroButton,
.checkoutButton,
.assistantForm button,
.searchBox button,
.tab,
.quick,
.sortControl select {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
}

.whatsapp,
.cardAction,
.addCart,
.cartButton,
.heroButton,
.checkoutButton,
.assistantForm button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: var(--leaf);
  color: white;
}

.ghostButton {
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.76);
  color: var(--leaf-dark);
  backdrop-filter: blur(10px);
}

.cartButton {
  gap: 8px;
  background: var(--honey);
}

.cartButton span {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  background: white;
  color: var(--leaf-dark);
  font-size: 13px;
}

main {
  width: min(1240px, calc(100% - 28px));
  margin: 18px auto 48px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(260px, 1.05fr);
  gap: 28px;
  min-height: 520px;
  overflow: hidden;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid rgba(223, 197, 142, 0.92);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(12, 52, 31, 0.92), rgba(16, 63, 36, 0.73) 43%, rgba(46, 35, 16, 0.18)),
    #2f2210;
  color: white;
  box-shadow: var(--shadow);
}

.heroBackdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  opacity: 0.9;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 43, 25, 0.96) 0%, rgba(10, 45, 25, 0.82) 40%, rgba(14, 44, 25, 0.12) 100%),
    linear-gradient(0deg, rgba(25, 18, 8, 0.5), transparent 44%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(0deg, rgba(15, 43, 25, 0.78), transparent);
}

.heroCopy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 620px;
}

.heroLogo {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 28px;
  margin-bottom: 18px;
  background: white;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.hero .eyebrow {
  color: #ffe7a9;
}

.hero h2 {
  max-width: 620px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5.4vw, 70px);
  line-height: 0.98;
}

.hero h2 span {
  display: inline;
}

.heroCopy p:not(.eyebrow) {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.45;
}

.heroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.heroButton {
  background: #f0a018;
  color: #211609;
}

.heroButton.secondary {
  background: rgba(255, 255, 255, 0.16);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.heroVisual {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 12px;
}

.heroTrust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.heroTrust span,
.heroGlass {
  border: 1px solid rgba(255, 234, 177, 0.4);
  background: rgba(255, 248, 226, 0.14);
  color: #fff4d2;
  backdrop-filter: blur(12px);
}

.heroTrust span {
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 850;
}

.heroGlass {
  width: min(260px, 100%);
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.heroGlass strong,
.heroGlass span {
  display: block;
}

.heroGlass strong {
  font-size: 19px;
  color: white;
}

.heroGlass span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.heroGlass.lower {
  transform: translateX(-44px);
}

.marketplaceHero {
  grid-template-columns: minmax(300px, 0.88fr) minmax(320px, 1.12fr);
  min-height: 430px;
  padding: clamp(22px, 4.2vw, 44px);
}

.marketplaceHero h2 {
  max-width: 560px;
}

.marketShowcase {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-content: end;
}

.showcaseRailWrap .railArrow,
.showcaseRailWrap::before,
.showcaseRailWrap::after {
  display: none;
}

.marketBanner {
  min-height: 154px;
  padding: 18px;
  border: 1px solid rgba(255, 236, 184, 0.42);
  border-radius: 16px;
  color: white;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.marketBanner:first-child {
  grid-column: span 2;
  min-height: 178px;
}

.marketBanner:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 236, 184, 0.8);
  box-shadow: 0 30px 62px rgba(0, 0, 0, 0.28);
}

.marketBanner span,
.promoTile span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 246, 218, 0.84);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.marketBanner strong,
.promoTile strong {
  display: block;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1;
}

.marketBanner small,
.promoTile small {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  font-weight: 750;
}

.bannerHoney {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 226, 135, 0.42), transparent 28%),
    linear-gradient(135deg, rgba(199, 119, 8, 0.95), rgba(90, 60, 18, 0.78)),
    url("assets/brand/hero-honey-jars.jpg") center / cover;
}

.bannerGreen {
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 226, 135, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(14, 61, 37, 0.94), rgba(31, 103, 62, 0.74));
}

.bannerLight {
  background:
    linear-gradient(135deg, rgba(255, 246, 222, 0.92), rgba(255, 206, 108, 0.76));
  color: var(--ink);
}

.bannerLight span,
.bannerLight small {
  color: rgba(72, 45, 12, 0.72);
}

.marketNav,
.marketPromoRail,
.marketShelf {
  margin-top: 16px;
}

.railWrap {
  position: relative;
}

.marketNavWrap {
  margin-top: 16px;
}

.railWrap > .marketNav,
.railWrap > .marketPromoRail {
  margin-top: 0;
}

.railWrap::before,
.railWrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 4;
  width: 74px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.railWrap::before {
  left: 0;
  background: linear-gradient(90deg, rgba(72, 52, 22, 0.18), transparent);
}

.railWrap::after {
  right: 0;
  background: linear-gradient(270deg, rgba(72, 52, 22, 0.18), transparent);
}

.railWrap.railCanScroll::before,
.railWrap.railCanScroll::after {
  opacity: 1;
}

.railArrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 246, 220, 0.68);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 224, 150, 0.42)),
    rgba(36, 28, 14, 0.28);
  box-shadow:
    0 14px 30px rgba(31, 22, 8, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: rgba(14, 61, 37, 0.98);
  cursor: pointer;
  opacity: 0.76;
  transform: translateY(-50%) scale(0.94);
  transition: opacity 0.16s ease, transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}

.railArrow::before {
  display: block;
  margin-top: -2px;
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.46);
}

.railArrowLeft {
  left: 10px;
}

.railArrowLeft::before {
  content: "‹";
}

.railArrowRight {
  right: 10px;
}

.railArrowRight::before {
  content: "›";
}

.railWrap:hover .railArrow,
.railWrap:focus-within .railArrow {
  opacity: 0.98;
  transform: translateY(-50%) scale(1);
}

.railWrap.railAtStart .railArrowLeft,
.railWrap.railAtEnd .railArrowRight {
  opacity: 0.34;
}

.railWrap.railAtStart .railArrowLeft:hover,
.railWrap.railAtEnd .railArrowRight:hover {
  opacity: 0.74;
}

.railArrow:hover {
  border-color: rgba(255, 241, 201, 0.86);
  background:
    linear-gradient(135deg, rgba(31, 103, 62, 0.92), rgba(203, 123, 0, 0.72)),
    rgba(14, 61, 37, 0.76);
  color: white;
}

.railArrow:active {
  transform: translateY(-50%) scale(0.96);
}

.railBump {
  animation: railBump 0.38s ease;
}

@keyframes railBump {
  0%,
  100% {
    box-shadow: 0 15px 32px rgba(31, 22, 8, 0.22);
  }

  34% {
    box-shadow:
      0 0 0 5px rgba(255, 238, 176, 0.26),
      0 15px 32px rgba(31, 22, 8, 0.22);
    transform: translateY(-50%) scale(0.9);
  }

  68% {
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.26),
      0 15px 32px rgba(31, 22, 8, 0.22);
    transform: translateY(-50%) scale(1.04);
  }
}

.railArrow[disabled] {
  pointer-events: none;
  opacity: 0;
}

.shelfRailWrap {
  margin: 0 -4px;
}

.shelfRailWrap .marketScroller {
  padding-inline: 4px;
}

.marketNav {
  display: grid;
  grid-template-columns: repeat(13, minmax(120px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.marketNav::-webkit-scrollbar,
.marketPromoRail::-webkit-scrollbar,
.marketScroller::-webkit-scrollbar,
.tabs::-webkit-scrollbar,
.marketShowcase::-webkit-scrollbar {
  display: none;
}

.marketNav button {
  min-height: 86px;
  padding: 13px 12px;
  border: 1px solid rgba(223, 197, 142, 0.58);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 244, 217, 0.76));
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(84, 53, 12, 0.1);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  scroll-snap-align: start;
}

.marketNav button:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 103, 62, 0.56);
  background: linear-gradient(180deg, rgba(236, 249, 235, 0.92), rgba(255, 237, 190, 0.82));
}

.marketNav span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.marketNav strong {
  display: block;
  color: var(--leaf-dark);
  font-size: 16px;
  line-height: 1.12;
}

.marketPromoRail,
.marketScroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 5px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.promoTile {
  min-height: 142px;
  padding: 18px;
  border: 1px solid rgba(255, 236, 184, 0.38);
  border-radius: 18px;
  color: white;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: 0 18px 38px rgba(47, 30, 10, 0.16);
}

.promoDark {
  background: linear-gradient(135deg, rgba(43, 35, 22, 0.95), rgba(131, 80, 13, 0.82));
}

.promoGold {
  background: linear-gradient(135deg, rgba(196, 116, 7, 0.96), rgba(233, 169, 53, 0.86));
}

.promoBerry {
  background: linear-gradient(135deg, rgba(129, 44, 48, 0.96), rgba(199, 119, 8, 0.78));
}

.promoLeaf {
  background: linear-gradient(135deg, rgba(14, 61, 37, 0.96), rgba(44, 136, 83, 0.82));
}

.promoHoney {
  background: linear-gradient(135deg, rgba(144, 76, 12, 0.96), rgba(226, 157, 31, 0.84));
}

.promoTea {
  background: linear-gradient(135deg, rgba(37, 83, 67, 0.96), rgba(101, 133, 67, 0.82));
}

.marketShelf {
  padding: 16px;
  border: 1px solid rgba(255, 236, 184, 0.36);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 252, 244, 0.7), rgba(255, 221, 150, 0.24)),
    rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 44px rgba(84, 53, 12, 0.11);
  backdrop-filter: blur(10px);
}

.marketShelfSets {
  background:
    linear-gradient(135deg, rgba(31, 103, 62, 0.16), rgba(255, 221, 150, 0.2)),
    rgba(255, 255, 255, 0.12);
}

.marketShelfHead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
}

.marketShelfHead button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(31, 103, 62, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--leaf-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.marketScroller {
  grid-auto-columns: 184px;
}

.marketMiniCard {
  display: grid;
  grid-template-rows: 160px auto auto;
  gap: 9px;
  min-height: 286px;
  padding: 10px;
  border: 1px solid rgba(223, 197, 142, 0.64);
  border-radius: 16px;
  background: rgba(255, 253, 247, 0.88);
  scroll-snap-align: start;
  box-shadow: 0 12px 28px rgba(84, 53, 12, 0.11);
}

.marketMiniPhoto {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 13px;
  background:
    radial-gradient(circle at 26% 20%, rgba(255, 225, 166, 0.56), transparent 34%),
    linear-gradient(135deg, rgba(228, 240, 216, 0.78), rgba(255, 241, 205, 0.88));
  cursor: pointer;
}

.marketMiniPhoto img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.marketMiniTitle {
  display: -webkit-box;
  min-height: 43px;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.22;
  text-align: left;
  cursor: pointer;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.marketMiniMeta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-self: end;
}

.marketMiniMeta strong,
.marketMiniSetPrice .price {
  color: #8b5304;
  font-size: 18px;
  font-weight: 950;
}

.marketMiniSetPrice .setPrice {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 7px;
}

.marketMiniSetPrice .discountBadge {
  font-size: 11px;
}

.marketMiniMeta button {
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  background: var(--leaf);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.finder {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.5fr);
  gap: 18px;
  align-items: center;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255, 252, 244, 0.62), rgba(255, 220, 142, 0.38)),
    rgba(255, 246, 222, 0.18);
  border: 1px solid rgba(223, 197, 142, 0.64);
  border-radius: 12px;
  box-shadow:
    0 18px 46px rgba(84, 53, 12, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(9px) saturate(1.08);
}

.finderText p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.searchBox {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.searchBox input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(120, 97, 55, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 17px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
}

.searchBox input:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 4px rgba(50, 107, 75, 0.14);
}

.searchBox button,
.tab,
.quick,
.sortControl select {
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border: 1px solid rgba(183, 124, 18, 0.34);
  box-shadow:
    0 8px 18px rgba(84, 53, 12, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(8px);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 18px 0 8px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.tabsRailWrap {
  margin-top: 12px;
}

.tab {
  flex: 0 0 auto;
  border-radius: 999px;
  color: #302216;
  scroll-snap-align: start;
}

.tab:hover,
.quick:hover,
.searchBox button:hover,
.sortControl select:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 103, 62, 0.42);
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 12px 24px rgba(84, 53, 12, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.tab:hover {
  background: rgba(255, 255, 255, 0.86);
  color: #0e3d25;
  box-shadow:
    0 12px 24px rgba(84, 53, 12, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.tab.active {
  background: linear-gradient(135deg, rgba(31, 103, 62, 0.96), rgba(43, 132, 82, 0.94));
  color: white;
  border-color: rgba(14, 61, 37, 0.88);
  box-shadow:
    0 12px 26px rgba(31, 103, 62, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.catalogTools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
}

.quickFilters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick {
  min-height: 38px;
  border-radius: 999px;
  font-size: 14px;
}

.quick.active {
  background: linear-gradient(135deg, rgba(255, 211, 122, 0.9), rgba(229, 164, 58, 0.78));
  border-color: rgba(176, 104, 4, 0.56);
  color: #573404;
  box-shadow:
    0 12px 22px rgba(188, 117, 12, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.sortControl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.sortControl select {
  min-height: 38px;
  min-width: 180px;
  font-size: 14px;
}

.sectionBlock {
  margin-top: 26px;
}

.sectionHead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.sectionHead span {
  color: var(--muted);
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.productGroups {
  display: grid;
  gap: 28px;
}

.productGroup {
  display: grid;
  gap: 12px;
}

.productGroupHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 236, 184, 0.32);
}

.productGroupHead h3 {
  margin: 0;
  color: #fff5d5;
  font-size: 22px;
  line-height: 1.15;
}

.productGroupHead span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.productGroupGrid {
  min-width: 0;
  align-items: stretch;
}

.productGroupGrid .card {
  height: 100%;
}

.setsGrid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(31, 103, 62, 0.74), rgba(42, 67, 43, 0.68) 54%, rgba(133, 91, 31, 0.54)),
    rgba(18, 45, 29, 0.62);
  border: 1px solid rgba(236, 200, 119, 0.68);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 22px 46px rgba(16, 39, 25, 0.3),
    inset 0 1px 0 rgba(255, 236, 184, 0.3);
  backdrop-filter: blur(10px) saturate(1.18);
  content-visibility: auto;
  contain-intrinsic-size: 520px;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.card:hover,
.pulseCard {
  transform: translateY(-2px);
  background:
    linear-gradient(180deg, rgba(31, 103, 62, 0.76), rgba(14, 61, 37, 0.72)),
    rgba(231, 246, 228, 0.1);
  border-color: rgba(14, 61, 37, 0.82);
  color: white;
  box-shadow:
    0 26px 54px rgba(20, 58, 35, 0.34),
    inset 0 1px 0 rgba(255, 236, 184, 0.32);
}

.card:hover .photoWrap,
.pulseCard .photoWrap {
  background:
    radial-gradient(circle at 30% 20%, rgba(232, 255, 236, 0.2), transparent 36%),
    linear-gradient(135deg, rgba(31, 103, 62, 0.48), rgba(14, 61, 37, 0.44));
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.photoWrap {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 236, 184, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(31, 103, 62, 0.38), rgba(41, 53, 35, 0.34));
  overflow: hidden;
  border-bottom: 1px solid rgba(112, 67, 4, 0.22);
}

.photoButton {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
  clip-path: inset(0 round 12px);
}

.photoWrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  clip-path: inset(0 round 12px);
  image-orientation: from-image;
  display: block;
  filter: saturate(1.04) contrast(1.02);
}

.sampleCard .photoWrap {
  background: rgba(199, 119, 8, 0.32);
}

.sampleCard .photoWrap img {
  object-fit: cover;
}

.placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 246, 222, 0.9);
  font-weight: 800;
}

.setPhotos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 8px;
  height: 100%;
}

.setPhotos.photoCount1 {
  grid-template-columns: 1fr;
}

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

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

.setPhotos.photoCountMany {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.setPhotos .photoButton {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  padding: 4px;
  border: 1px solid rgba(255, 239, 192, 0.45);
  border-radius: 12px;
  background: rgba(255, 251, 240, 0.2);
  overflow: hidden;
}

.setPhotos .photoButton img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 68%;
  border-radius: 9px;
}

.badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.94);
  color: var(--leaf);
  font-size: 12px;
  font-weight: 850;
}

.badge.hit {
  background: rgba(200, 130, 18, 0.96);
  color: white;
}

.cardBody {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: transparent;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.price {
  color: #ffe1a6;
  font-size: 20px;
  font-weight: 900;
}

.setMeta {
  align-items: flex-start;
}

.setPrice {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
}

.oldPrice {
  color: rgba(255, 246, 222, 0.68);
  font-size: 14px;
  font-weight: 800;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.discountBadge {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3d18f;
  color: #724506;
  font-size: 12px;
  font-weight: 900;
}

.category {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--leaf-soft);
  color: var(--leaf);
  font-size: 12px;
  font-weight: 800;
}

.desc,
.items {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.42;
}

.items {
  padding-left: 18px;
  margin: 0;
}

.items li {
  margin: 3px 0;
}

.cardDetails {
  margin-top: 2px;
  border-top: 1px solid rgba(255, 236, 184, 0.24);
  color: rgba(255, 255, 255, 0.78);
}

.cardDetails summary {
  padding: 10px 0 2px;
  color: #fff5d5;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  list-style-position: inside;
}

.cardDetails summary::marker {
  color: var(--honey);
}

.detailsBody {
  display: grid;
  gap: 8px;
  padding: 8px 0 2px;
  font-size: 13px;
  line-height: 1.45;
}

.detailsBody p {
  margin: 0;
}

.detailsBody strong {
  color: #fff5d5;
}

.detailSection {
  display: grid;
  gap: 5px;
}

.detailList {
  margin: 0;
  padding-left: 17px;
  color: rgba(255, 255, 255, 0.78);
}

.card:hover .price,
.pulseCard .price {
  color: #ffe1a6;
}

.card:hover .oldPrice,
.card:hover .desc,
.card:hover .items,
.card:hover .cardDetails,
.card:hover .detailList,
.pulseCard .oldPrice,
.pulseCard .desc,
.pulseCard .items,
.pulseCard .cardDetails,
.pulseCard .detailList {
  color: rgba(255, 255, 255, 0.82);
}

.card:hover .cardDetails,
.pulseCard .cardDetails {
  border-top-color: rgba(255, 255, 255, 0.24);
}

.card:hover .cardDetails summary,
.card:hover .detailsBody strong,
.pulseCard .cardDetails summary,
.pulseCard .detailsBody strong {
  color: white;
}

.card:hover .cardDetails summary::marker,
.pulseCard .cardDetails summary::marker {
  color: #ffe1a6;
}

.detailList li {
  margin: 2px 0;
}

.relatedBlock {
  display: grid;
  gap: 7px;
}

.relatedLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.relatedLinks button {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(31, 103, 62, 0.24);
  border-radius: 999px;
  background: rgba(31, 103, 62, 0.08);
  color: var(--leaf-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.relatedLinks button:hover {
  background: rgba(31, 103, 62, 0.16);
}

.setDetails {
  margin-top: 0;
}

.setDetails .items {
  padding-top: 2px;
}

.cardAction {
  margin-top: auto;
}

.cardActions {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 8px;
  margin-top: auto;
}

.addCart {
  width: 100%;
  background: linear-gradient(135deg, var(--leaf), #2f8658);
}

.secondaryAction {
  background: rgba(31, 103, 62, 0.1);
  color: var(--leaf-dark);
  border: 1px solid rgba(31, 103, 62, 0.18);
}

.empty {
  grid-column: 1 / -1;
  padding: 24px;
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

footer {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.modalOpen {
  overflow: hidden;
}

.photoModal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(20, 17, 12, 0.78);
}

.photoModal.open {
  display: flex;
}

.photoModalInner {
  display: grid;
  gap: 12px;
  width: auto;
  max-width: min(96vw, 980px);
  max-height: 94vh;
}

.photoModalInner img {
  width: auto;
  max-width: min(96vw, 980px);
  max-height: calc(94vh - 70px);
  object-fit: contain;
  background: transparent;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.photoModalInner p {
  color: white;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.photoModalClose {
  position: fixed;
  right: 16px;
  top: 12px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.cartDrawer {
  position: fixed;
  inset: 0;
  z-index: 18;
  display: none;
  justify-content: flex-end;
  background: rgba(20, 17, 12, 0.42);
}

.cartDrawer.open {
  display: flex;
}

.drawerPanel {
  display: flex;
  width: min(100%, 440px);
  height: 100%;
  flex-direction: column;
  padding: 18px;
  background: #fffaf0;
  box-shadow: -18px 0 42px rgba(28, 22, 12, 0.22);
}

.drawerHead,
.assistantHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.iconButton {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(31, 103, 62, 0.1);
  color: var(--leaf-dark);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.cartItems {
  display: grid;
  gap: 10px;
  overflow: auto;
  padding: 18px 0;
}

.cartLine {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(208, 159, 67, 0.42);
  border-radius: 10px;
  background: white;
}

.cartLine strong,
.cartLine span {
  display: block;
}

.cartLine span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.qtyBox {
  display: grid;
  grid-template-columns: 30px 24px 30px;
  align-items: center;
  gap: 4px;
}

.qtyBox button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff7e1;
  cursor: pointer;
  font-weight: 900;
}

.qtyBox b {
  text-align: center;
}

.cartSummary {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.cartSummary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
}

.emptyCart {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
}

.assistantWidget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 16;
}

.assistantBubble {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 9px;
  align-items: center;
  width: 168px;
  min-height: 72px;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px 10px 10px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 222, 145, 0.92), transparent 30%),
    linear-gradient(135deg, var(--leaf), #2e8754 58%, #c17810);
  color: white;
  cursor: pointer;
  font-weight: 900;
  line-height: 1.05;
  text-align: left;
  box-shadow: 0 18px 38px rgba(20, 58, 35, 0.28);
}

.assistantBubble small {
  font-size: 11px;
  font-weight: 850;
  opacity: 0.88;
}

.assistantBubbleAvatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: #fff6d9;
  color: var(--leaf-dark);
  font-size: 20px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.assistantPanel {
  display: none;
  width: min(94vw, 540px);
  overflow: hidden;
  border: 1px solid rgba(31, 103, 62, 0.2);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(255, 244, 214, 0.98)),
    #fffaf0;
  box-shadow: 0 24px 60px rgba(30, 23, 12, 0.24);
}

.assistantWidget.open .assistantBubble {
  display: none;
}

.assistantWidget.open .assistantPanel {
  display: block;
}

.assistantHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(15, 77, 43, 0.98), rgba(31, 103, 62, 0.92) 58%, rgba(193, 120, 16, 0.9)),
    var(--leaf);
  color: white;
}

.assistantHead .eyebrow {
  color: rgba(255, 244, 214, 0.92);
}

.assistantHead h2 {
  color: white;
  font-size: 22px;
  letter-spacing: 0;
}

.assistantProfile {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.assistantAvatar {
  display: grid;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  place-items: center;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: #fff6d9;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.assistantAvatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.assistantStatus {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
}

.assistantStatus span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8df0a2;
  box-shadow: 0 0 0 4px rgba(141, 240, 162, 0.16);
}

.assistantHead .iconButton {
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

.assistantMessages {
  display: grid;
  gap: 12px;
  max-height: 430px;
  overflow: auto;
  padding: 16px;
  background:
    linear-gradient(rgba(255, 250, 240, 0.84), rgba(255, 250, 240, 0.84)),
    radial-gradient(circle at 20% 10%, rgba(208, 159, 67, 0.22), transparent 26%),
    radial-gradient(circle at 84% 30%, rgba(31, 103, 62, 0.12), transparent 22%);
}

.botMessage,
.userMessage {
  font-size: 14px;
  line-height: 1.4;
}

.botMessage {
  justify-self: start;
  color: var(--ink);
}

.userMessage {
  justify-self: end;
  max-width: 82%;
  padding: 11px 13px;
  border-radius: 16px 16px 4px 16px;
  background: var(--leaf);
  color: white;
  box-shadow: 0 8px 18px rgba(31, 103, 62, 0.18);
}

.consultantMessage {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  max-width: 94%;
  padding: 0;
  background: transparent;
}

.messageAvatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff3c4, #d09f43);
  color: var(--leaf-dark);
  font-size: 17px;
  font-weight: 950;
  box-shadow: 0 8px 16px rgba(30, 23, 12, 0.13);
}

.messageBody {
  padding: 10px 12px;
  border: 1px solid rgba(208, 159, 67, 0.26);
  border-radius: 16px 16px 16px 4px;
  background: white;
  box-shadow: 0 10px 22px rgba(30, 23, 12, 0.09);
}

.messageName {
  margin-bottom: 4px;
  color: var(--leaf-dark);
  font-size: 12px;
  font-weight: 950;
}

.assistantPicks {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.assistantAnswer {
  display: grid;
  gap: 8px;
}

.assistantAnswer p {
  font-size: 14px;
  line-height: 1.45;
}

.assistantPick {
  padding: 10px;
  border: 1px solid rgba(31, 103, 62, 0.18);
  border-radius: 10px;
  background: white;
  color: var(--ink);
}

.assistantPick > button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.assistantPick span,
.assistantPick > button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assistantPick b {
  color: var(--honey);
}

.assistantPickActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 9px;
}

.assistantPickActions button,
.assistantPickActions a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 9px;
  border: 1px solid rgba(31, 103, 62, 0.2);
  border-radius: 8px;
  background: rgba(31, 103, 62, 0.09);
  color: var(--leaf-dark);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.assistantPickActions button {
  background: var(--leaf);
  color: white;
}

.assistantFootnote {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.assistantPrompts {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 0 12px 10px;
}

.assistantPrompts button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(31, 103, 62, 0.22);
  border-radius: 999px;
  background: white;
  color: var(--leaf-dark);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
}

.assistantForm {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(31, 103, 62, 0.12);
  background: #fffaf0;
}

.assistantForm input {
  min-height: 48px;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid rgba(31, 103, 62, 0.2);
  border-radius: 999px;
  font: inherit;
  background: white;
}

.assistantForm button {
  border-radius: 999px;
}

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

  .marketplaceTopbar {
    grid-template-columns: 1fr;
  }

  .topSearch {
    order: 3;
  }

  .marketNav {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(142px, 16vw);
    overflow-x: auto;
  }
}

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

  .marketplaceHero {
    grid-template-columns: 1fr;
  }

  .marketShowcase {
    grid-template-columns: minmax(260px, 1fr);
    grid-auto-flow: column;
    grid-auto-columns: minmax(236px, 78vw);
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .showcaseRailWrap .railArrow {
    display: grid;
  }

  .showcaseRailWrap::before,
  .showcaseRailWrap::after {
    display: block;
  }

  .marketBanner,
  .marketBanner:first-child {
    grid-column: auto;
    min-height: 142px;
    scroll-snap-align: start;
  }

  .marketNav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(142px, 38vw);
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .marketNav button {
    scroll-snap-align: start;
  }
}

@media (max-width: 760px) {
  .topbar,
  .finder,
  .hero,
  .sectionHead,
  .catalogTools {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    position: static;
  }

  .marketplaceTopbar {
    display: grid;
    gap: 10px;
    padding: 12px;
  }

  .topSearch {
    min-height: 48px;
  }

  .topActions,
  .heroActions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .finder,
  .searchBox,
  .hero {
    grid-template-columns: 1fr;
  }

  .marketplaceHero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding: 16px;
    border-radius: 16px;
    align-content: stretch;
    gap: 18px;
    max-width: 100%;
    overflow: hidden;
  }

  .marketplaceHero h2 {
    max-width: min(100%, 320px);
    font-size: clamp(38px, 13vw, 50px);
    line-height: 0.94;
    overflow-wrap: normal;
    text-wrap: auto;
  }

  .marketplaceHero h2 span {
    display: block;
  }

  .marketplaceHero .heroLogo {
    width: 84px;
    height: 84px;
    border-radius: 20px;
    margin-bottom: 12px;
  }

  .marketplaceHero .eyebrow {
    font-size: 12px;
    line-height: 1.2;
  }

  .marketplaceHero .heroCopy {
    width: 100%;
    min-width: 0;
    justify-content: start;
    max-width: 100%;
    overflow: hidden;
  }

  .marketplaceHero .heroCopy p:not(.eyebrow) {
    max-width: 100%;
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.34;
  }

  .marketplaceHero .heroActions {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 16px;
  }

  .marketplaceHero .heroButton {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
  }

  .marketplaceHero .marketplaceSteps {
    margin-top: 14px;
    gap: 6px;
  }

  .marketplaceHero .marketplaceSteps span {
    padding: 8px 10px;
    font-size: 12px;
  }

  .showcaseRailWrap {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .marketPromoRail {
    grid-auto-columns: minmax(240px, 84vw);
  }

  .railWrap::before,
  .railWrap::after {
    width: 34px;
  }

  .railArrow {
    width: 34px;
    height: 44px;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: rgba(14, 61, 37, 0.9);
    opacity: 0.72;
    text-shadow:
      0 1px 0 rgba(255, 255, 255, 0.9),
      0 0 10px rgba(255, 255, 255, 0.86);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .railArrow::before {
    font-size: 34px;
  }

  .railArrowLeft {
    left: 0;
  }

  .railArrowRight {
    right: 0;
  }

  .railArrow[disabled] {
    opacity: 0;
  }

  .railWrap.railAtStart .railArrowLeft,
  .railWrap.railAtEnd .railArrowRight {
    opacity: 0.28;
  }

  .marketScroller {
    grid-auto-columns: 168px;
  }

  .marketMiniCard {
    grid-template-rows: 142px auto auto;
    min-height: 262px;
  }

  .marketShelf {
    padding: 12px;
    border-radius: 16px;
  }

  .heroVisual {
    min-height: auto;
    align-items: stretch;
  }

  .hero {
    min-height: auto;
  }

  .heroBackdrop {
    object-position: 54% center;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(8, 43, 25, 0.78), rgba(8, 43, 25, 0.68) 56%, rgba(8, 43, 25, 0.9)),
      linear-gradient(0deg, rgba(25, 18, 8, 0.62), transparent 52%);
  }

  .heroGlass.lower {
    transform: none;
  }

  .grid,
  .setsGrid {
    grid-template-columns: 1fr;
  }

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

  .assistantWidget {
    right: 10px;
    bottom: 10px;
  }

  .assistantPanel {
    width: calc(100vw - 20px);
  }
}

@media (max-width: 520px) {
  main {
    width: min(100% - 16px, 1240px);
    margin-top: 10px;
  }

  .marketplaceHero {
    min-height: auto;
    padding: 14px;
  }

  .marketplaceHero h2 {
    max-width: 260px;
    font-size: clamp(36px, 12.4vw, 45px);
  }

  .marketplaceHero .heroLogo {
    width: 74px;
    height: 74px;
    border-radius: 18px;
  }

  .marketplaceHero .heroCopy p:not(.eyebrow) {
    font-size: 15px;
  }

  .marketShowcase {
    grid-auto-columns: minmax(224px, 76vw);
  }

  .marketNav {
    grid-auto-columns: minmax(132px, 38vw);
  }

  .marketPromoRail {
    grid-auto-columns: minmax(230px, 78vw);
  }

  .marketBanner,
  .marketBanner:first-child {
    min-height: 136px;
    padding: 15px;
  }

  .promoTile {
    min-height: 132px;
    padding: 16px;
  }

  .promoTile strong {
    font-size: 29px;
  }
}
