:root {
  --bg: #fff8ef;
  --bg2: #f6ead5;
  --card: #fffdf8;
  --forest: #173b27;
  --forest2: #2a5b3d;
  --gold: #bf8b2d;
  --gold2: #845d12;
  --ink: #1d221d;
  --muted: #62655f;
  --line: rgba(23, 59, 39, 0.1);
  --shadow: 0 16px 40px rgba(49, 38, 24, 0.09);
  --shadow2: 0 28px 70px rgba(49, 38, 24, 0.14);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(191, 139, 45, 0.16), transparent 28%),
    radial-gradient(circle at 92% 10%, rgba(42, 91, 61, 0.14), transparent 28%),
    linear-gradient(180deg, #fffaf2 0%, #f7ecd8 45%, #fff8ef 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.cat-page {
  min-height: 100vh;
  padding-bottom: 94px;
  overflow-x: hidden;
}

.cat-container {
  width: min(var(--max), calc(100vw - 1rem));
  margin: 0 auto;
}

.cat-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.94);
  backdrop-filter: blur(18px);
}

.cat-nav {
  min-height: 70px;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 0.7rem;
}

.cat-icon-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(49, 38, 24, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  font-size: 1.35rem;
  font-weight: 900;
}

.cat-cart-btn {
  font-size: 1.1rem;
}

.cat-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-width: 0;
}

.cat-brand img {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  object-fit: cover;
}

.cat-brand span {
  display: grid;
  gap: 0.02rem;
  min-width: 0;
}

.cat-brand strong,
.cat-hero h1,
.cat-section-head h2,
.cat-card-title,
.cat-footer strong {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.cat-brand strong {
  color: var(--forest);
  font-size: 1.28rem;
  line-height: 0.95;
  white-space: nowrap;
}

.cat-brand small {
  max-width: 148px;
  color: var(--gold2);
  font-size: 0.68rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cat-hero {
  padding: 0.9rem 0 1rem;
}

.cat-hero-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 210, 122, 0.46), transparent 28%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(246, 234, 213, 0.88));
  box-shadow: var(--shadow);
}

.cat-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.cat-kicker,
.cat-section-head span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.45rem;
  color: var(--gold2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cat-hero h1,
.cat-section-head h2 {
  margin: 0;
  color: var(--forest);
  letter-spacing: -0.045em;
}

.cat-hero h1 {
  font-size: clamp(2.35rem, 11vw, 5rem);
  line-height: 0.88;
}

.cat-hero p,
.cat-section-head p,
.cat-card-copy,
.cat-featured-card p,
.cat-footer p,
.cat-footer a,
.cat-empty-state p {
  color: var(--muted);
  line-height: 1.6;
}

.cat-hero p {
  margin: 0.85rem 0 0;
}

.cat-hero-actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1rem;
}

.cat-main-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 0.55rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--forest), var(--forest2));
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(23, 59, 39, 0.18);
}

.cat-result-pill {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0.74rem 0.88rem;
  border: 1px solid rgba(23, 59, 39, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--forest);
  font-size: 0.84rem;
  font-weight: 800;
}

.cat-hero-icon {
  position: absolute;
  right: -14px;
  bottom: -26px;
  font-size: 8rem;
  opacity: 0.16;
  transform: rotate(-10deg);
}

.cat-strip-section,
.cat-filter-section,
.cat-featured-section,
.cat-products-section {
  padding: 1rem 0;
}

.cat-section-head {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.cat-section-row {
  flex-direction: row;
  align-items: end;
  justify-content: space-between;
}

.cat-section-head h2 {
  font-size: clamp(1.85rem, 7vw, 3.3rem);
  line-height: 0.92;
}

.cat-section-head a {
  color: var(--forest);
  font-weight: 900;
}

.cat-chip-scroll {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.2rem 0 0.2rem;
  scrollbar-width: none;
}

.cat-chip-scroll::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  flex: 0 0 auto;
  min-width: 92px;
  min-height: 88px;
  display: grid;
  place-items: center;
  gap: 0.35rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--forest);
  box-shadow: var(--shadow);
}

.cat-chip.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--forest), var(--forest2));
}

.cat-chip b {
  font-size: 1.35rem;
}

.cat-chip span {
  font-size: 0.78rem;
  font-weight: 900;
}

.cat-filter-card {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow);
}

.cat-filter-card label {
  color: var(--forest);
  font-size: 0.84rem;
  font-weight: 900;
}

.cat-search {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  border: 1px solid rgba(23, 59, 39, 0.12);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.cat-search span {
  text-align: center;
  color: var(--gold2);
  font-size: 1.1rem;
  font-weight: 900;
}

.cat-search input,
.cat-filter-card select {
  width: 100%;
  min-height: 48px;
  border: 0;
  outline: 0;
  background: #fff;
  color: var(--ink);
}

.cat-filter-card select {
  padding: 0 0.95rem;
  border: 1px solid rgba(23, 59, 39, 0.12);
  border-radius: 18px;
}

.cat-featured-rail {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  padding: 0.1rem 0 0.35rem;
  scrollbar-width: none;
}

.cat-featured-rail::-webkit-scrollbar {
  display: none;
}

.cat-featured-card {
  flex: 0 0 min(84vw, 360px);
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow);
}

.cat-featured-card img {
  width: 108px;
  height: 108px;
  border-radius: 22px;
  object-fit: contain;
  background: #fff;
}

.cat-featured-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.32rem;
  padding: 0.32rem 0.56rem;
  border-radius: 999px;
  background: rgba(191, 139, 45, 0.12);
  color: var(--gold2);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cat-featured-card strong {
  display: block;
  color: var(--forest);
  font-size: 1rem;
  line-height: 1.18;
}

.cat-featured-card p {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
}

.cat-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.cat-product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow);
}

.cat-product-image {
  position: relative;
  display: block;
  padding: 0.55rem;
  background: #fff;
}

.cat-product-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 18px;
}

.cat-product-badge,
.cat-product-save {
  position: absolute;
  top: 0.7rem;
  padding: 0.36rem 0.58rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 900;
}

.cat-product-badge {
  left: 0.7rem;
  background: rgba(255, 250, 238, 0.94);
  color: var(--forest);
}

.cat-product-save {
  right: 0.7rem;
  background: var(--forest);
  color: #fff;
}

.cat-product-body {
  display: grid;
  gap: 0.45rem;
  padding: 0.78rem;
}

.cat-product-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.45rem;
}

.cat-product-category {
  width: fit-content;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(191, 139, 45, 0.12);
  color: var(--gold2);
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cat-product-unit {
  display: none;
  color: var(--muted);
  font-size: 0.7rem;
}

.cat-card-title {
  margin: 0;
  color: var(--forest);
  font-size: 1rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.cat-card-copy,
.cat-product-offer {
  display: none;
}

.cat-price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.42rem;
}

.cat-price-line strong {
  color: var(--forest);
  font-size: 1.38rem;
  font-weight: 900;
}

.cat-price-line s {
  color: #8d877b;
  font-size: 0.8rem;
  font-weight: 800;
}

.cat-product-actions {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.2rem;
}

.cat-product-actions a {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 0.76rem;
  font-weight: 900;
}

.cat-buy-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--forest), var(--forest2));
}

.cat-detail-btn {
  display: none !important;
  color: var(--forest);
  background: rgba(23, 59, 39, 0.08);
}

.cat-empty-state {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.94);
  text-align: center;
  box-shadow: var(--shadow);
}

.cat-empty-state h3 {
  margin: 0;
  color: var(--forest);
}

.cat-empty-state p {
  margin: 0.4rem 0 0.85rem;
}

.cat-empty-state button {
  min-height: 42px;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--forest);
  font-weight: 900;
}

.cat-footer {
  padding: 2rem 0 1rem;
  background: var(--forest);
  color: #fffaf1;
}

.cat-footer-grid {
  display: grid;
  gap: 1rem;
}

.cat-footer strong {
  color: #fffaf1;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
}

.cat-footer h4 {
  margin: 0;
  color: #ffd27a;
}

.cat-footer p,
.cat-footer a {
  color: rgba(255, 250, 241, 0.74);
}

.cat-footer-grid > div {
  display: grid;
  gap: 0.42rem;
}

.cat-fixed-subscribe {
  position: fixed;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.65rem;
  z-index: 120;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.74rem 0.92rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--forest), var(--forest2));
  box-shadow: 0 18px 42px rgba(20, 58, 38, 0.32);
}

.cat-fixed-subscribe span {
  font-size: 0.9rem;
  font-weight: 900;
}

.cat-fixed-subscribe strong {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.82rem;
  border-radius: 999px;
  background: #ffd27a;
  color: var(--forest);
  white-space: nowrap;
  font-size: 0.84rem;
}

.cat-skeleton {
  min-height: 260px;
  border-radius: 24px;
  background: linear-gradient(90deg, rgba(23, 59, 39, 0.08), rgba(191, 139, 45, 0.11), rgba(23, 59, 39, 0.08));
  box-shadow: var(--shadow);
}

@media (min-width: 700px) {
  .cat-container {
    width: min(var(--max), calc(100vw - 2rem));
  }

  .cat-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cat-product-unit,
  .cat-card-copy,
  .cat-product-offer {
    display: block;
  }

  .cat-card-title {
    font-size: 1.22rem;
  }

  .cat-footer-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

@media (min-width: 960px) {
  .cat-page {
    padding-bottom: 0;
  }

  .cat-hero-card {
    min-height: 420px;
    display: flex;
    align-items: center;
    padding: 2rem;
  }

  .cat-hero-icon {
    right: 5%;
    bottom: 4%;
    font-size: 13rem;
  }

  .cat-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cat-product-body {
    padding: 1rem;
  }

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

  .cat-detail-btn {
    display: inline-flex !important;
  }

  .cat-fixed-subscribe {
    left: 50%;
    right: auto;
    width: min(520px, calc(100vw - 2rem));
    transform: translateX(-50%);
  }
}

@media (max-width: 380px) {
  .cat-brand strong {
    font-size: 1.14rem;
  }

  .cat-brand small {
    max-width: 120px;
  }

  .cat-hero h1 {
    font-size: 2.18rem;
  }

  .cat-product-grid {
    gap: 0.65rem;
  }

  .cat-product-body {
    padding: 0.68rem;
  }

  .cat-fixed-subscribe span {
    font-size: 0.8rem;
  }

  .cat-fixed-subscribe strong {
    padding: 0 0.68rem;
  }
}