* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  --bg: #24140f;
  --bg-soft: #2e1a13;
  --bg-deep: #1b0d08;

  --card: rgba(255, 245, 235, 0.09);
  --card-soft: rgba(255, 245, 235, 0.055);
  --card-solid: #321d15;

  --text: #fff4e8;
  --muted: #d7bfa8;
  --line: rgba(255, 244, 232, 0.16);

  --accent: #f0b35a;
  --accent-soft: #7b2e13;

  --button: #fff4e8;
  --button-text: #24140f;

  min-height: 100vh;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 8% 8%, rgba(240, 179, 90, 0.13), transparent 30%),
    radial-gradient(circle at 90% 0%, rgba(123, 46, 19, 0.30), transparent 32%),
    linear-gradient(135deg, var(--bg-deep) 0%, var(--bg) 48%, #3a2118 100%);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body[data-theme="cream"] {
  --bg: #f2e6d8;
  --bg-soft: #ead9c8;
  --bg-deep: #ead9c8;
  --card: rgba(255, 255, 255, 0.66);
  --card-soft: rgba(255, 255, 255, 0.44);
  --card-solid: #fff7ee;
  --text: #2b170f;
  --muted: #7d614e;
  --line: rgba(43, 23, 15, 0.14);
  --accent: #8b451c;
  --accent-soft: #d6a45d;
  --button: #2b170f;
  --button-text: #f7efe6;
  background:
    radial-gradient(circle at 8% 8%, rgba(214, 164, 93, 0.24), transparent 30%),
    radial-gradient(circle at 90% 0%, rgba(139, 69, 28, 0.14), transparent 32%),
    linear-gradient(135deg, #f2e6d8 0%, #ead9c8 100%);
}

body[data-theme="forest"] {
  --bg: #eff7ef;
  --bg-soft: #dfeee0;
  --bg-deep: #dfeee0;
  --card: rgba(255, 255, 255, 0.74);
  --card-soft: rgba(255, 255, 255, 0.48);
  --card-solid: #ffffff;
  --text: #102217;
  --muted: #607266;
  --line: rgba(16, 34, 23, 0.12);
  --accent: #2f7d46;
  --accent-soft: #96c45b;
  --button: #102217;
  --button-text: #eff7ef;
  background:
    radial-gradient(circle at 8% 8%, rgba(150, 196, 91, 0.22), transparent 30%),
    radial-gradient(circle at 90% 0%, rgba(47, 125, 70, 0.14), transparent 32%),
    linear-gradient(135deg, #eff7ef 0%, #dfeee0 100%);
}

body[data-theme="ink"] {
  --bg: #eef3f8;
  --bg-soft: #dfeaf3;
  --bg-deep: #dfeaf3;
  --card: rgba(255, 255, 255, 0.76);
  --card-soft: rgba(255, 255, 255, 0.48);
  --card-solid: #ffffff;
  --text: #071827;
  --muted: #64748b;
  --line: rgba(7, 24, 39, 0.12);
  --accent: #0f3d5e;
  --accent-soft: #63b3ed;
  --button: #071827;
  --button-text: #eef3f8;
  background:
    radial-gradient(circle at 8% 8%, rgba(99, 179, 237, 0.20), transparent 30%),
    radial-gradient(circle at 90% 0%, rgba(15, 61, 94, 0.12), transparent 32%),
    linear-gradient(135deg, #eef3f8 0%, #dfeaf3 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font-family: inherit;
}

.cat-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 34px 34px;
}

.cat-container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

/* HEADER */

.cat-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--line);
}

.cat-nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cat-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 140px;
  color: var(--text);
}

.cat-logo-mark {
  width: 18px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ecd9ba, #caa177);
  box-shadow: 0 8px 18px rgba(208, 161, 92, .18);
}

.cat-logo span:last-child {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  transform: translateY(-1px);
}

.cat-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-menu a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s ease;
}

.cat-menu a:hover,
.cat-menu a.active {
  color: var(--text);
  background: var(--card);
}

.cat-whatsapp {
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-text);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(0,0,0,.14);
}

/* HERO */

.cat-hero {
  position: relative;
  overflow: hidden;
  padding: 36px 0 24px;
}

.cat-hero-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.025)),
    var(--card);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.10);
  padding: clamp(28px, 6vw, 68px);
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-end;
  backdrop-filter: blur(16px);
}

.cat-hero-card::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%);
}

.cat-hero-content {
  position: relative;
  z-index: 3;
}

.cat-eyebrow {
  position: relative;
  z-index: 2;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.cat-hero h1 {
  position: relative;
  z-index: 2;
  font-size: clamp(54px, 9vw, 112px);
  line-height: 0.9;
  letter-spacing: -6px;
  color: var(--text);
  font-weight: 900;
}

.cat-subtitle {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-mini-card {
  position: relative;
  z-index: 3;
  min-width: 260px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03)),
    var(--card-soft);
  backdrop-filter: blur(12px);
}

.hero-mini-card span {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
}

.hero-mini-card strong {
  display: block;
  color: var(--text);
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.hero-mini-card small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.cat-rain {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.22;
  z-index: 2;
}

.cat-rain span {
  position: absolute;
  top: -12%;
  width: 7px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-soft));
  animation: rainMove linear infinite;
}

.cat-rain span:nth-child(1) { left: 6%; animation-duration: 9s; animation-delay: -1s; }
.cat-rain span:nth-child(2) { left: 14%; animation-duration: 13s; animation-delay: -4s; }
.cat-rain span:nth-child(3) { left: 23%; animation-duration: 10s; animation-delay: -7s; }
.cat-rain span:nth-child(4) { left: 31%; animation-duration: 15s; animation-delay: -2s; }
.cat-rain span:nth-child(5) { left: 39%; animation-duration: 11s; animation-delay: -5s; }
.cat-rain span:nth-child(6) { left: 48%; animation-duration: 14s; animation-delay: -8s; }
.cat-rain span:nth-child(7) { left: 57%; animation-duration: 9s; animation-delay: -3s; }
.cat-rain span:nth-child(8) { left: 65%; animation-duration: 16s; animation-delay: -6s; }
.cat-rain span:nth-child(9) { left: 73%; animation-duration: 12s; animation-delay: -9s; }
.cat-rain span:nth-child(10) { left: 82%; animation-duration: 10s; animation-delay: -4s; }
.cat-rain span:nth-child(11) { left: 90%; animation-duration: 15s; animation-delay: -8s; }
.cat-rain span:nth-child(12) { left: 96%; animation-duration: 18s; animation-delay: -11s; }

@keyframes rainMove {
  0% {
    transform: translate3d(0, -20vh, 0) rotate(12deg);
    opacity: 0;
  }

  12% {
    opacity: 0.8;
  }

  100% {
    transform: translate3d(-44px, 115vh, 0) rotate(42deg);
    opacity: 0;
  }
}

/* TOOLBAR */

.cat-section {
  padding: 22px 0 84px;
}

.cat-toolbar {
  position: sticky;
  top: 76px;
  z-index: 60;
  padding: 18px 0 20px;
  background: linear-gradient(180deg, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px);
}

.toolbar-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.toolbar-label {
  display: inline-flex;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.toolbar-top h2 {
  color: var(--text);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -2px;
  font-weight: 900;
}

.theme-panel {
  flex: 0 0 auto;
  min-width: 170px;
  padding: 13px 14px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--card-solid) 66%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.theme-panel span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.theme-dots {
  display: flex;
  gap: 9px;
}

.theme-dot {
  width: 30px;
  height: 30px;
  border: 3px solid var(--card-solid);
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
}

.theme-dot.active {
  box-shadow: 0 0 0 3px var(--accent);
}

.theme-dot.cream {
  background: linear-gradient(135deg, #f7f4ee, #d6a45d);
}

.theme-dot.cacao {
  background: linear-gradient(135deg, #24140f, #f0b35a);
}

.theme-dot.forest {
  background: linear-gradient(135deg, #eff7ef, #2f7d46);
}

.theme-dot.ink {
  background: linear-gradient(135deg, #eef3f8, #0f3d5e);
}

.brand-filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.brand-filter {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--card);
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.brand-filter.active,
.brand-filter:hover {
  background: var(--button);
  color: var(--button-text);
}

.search-wrap input {
  width: 100%;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 20px;
  outline: none;
  padding: 0 18px;
  background: var(--card-solid);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.04);
}

.search-wrap input::placeholder {
  color: var(--muted);
}

/* PRODUCTS */

.brand-section {
  margin-top: 38px;
}

.brand-head {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.brand-head p {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.brand-head h2 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -3px;
  color: var(--text);
  font-weight: 900;
}

.brand-head span {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.product-card {
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.02)),
    var(--card);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.07);
  transition: 0.22s ease;
  backdrop-filter: blur(12px);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 76px rgba(0, 0, 0, 0.13);
}

.product-media {
  position: relative;
  height: 230px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 32%),
    radial-gradient(circle at 80% 82%, color-mix(in srgb, var(--accent-soft) 26%, transparent), transparent 32%),
    color-mix(in srgb, var(--card-solid) 74%, var(--accent) 8%);
}

.product-media::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  pointer-events: none;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  padding: 18px;
  cursor: zoom-in;
  transition: 0.25s ease;
}

.product-media:hover img {
  transform: scale(1.035);
}

.product-placeholder {
  position: relative;
  z-index: 2;
  width: 132px;
  height: 132px;
  border-radius: 36px;
  display: grid;
  place-items: center;
  gap: 0;
  background:
    linear-gradient(145deg, var(--button), color-mix(in srgb, var(--button) 78%, var(--accent)));
  color: var(--button-text);
  box-shadow: 0 20px 45px rgba(0,0,0,.14);
}

.product-placeholder span {
  display: block;
  font-size: 56px;
  line-height: 1;
  font-weight: 900;
  transform: translateY(10px);
}

.product-placeholder small {
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  transform: translateY(-12px);
}

.product-brand-badge {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-solid) 74%, transparent);
  color: var(--text);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  backdrop-filter: blur(10px);
}

.quick-preview-btn {
  position: absolute;
  z-index: 4;
  right: 18px;
  bottom: 18px;
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-text);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  opacity: 0;
  transform: translateY(8px);
  transition: 0.22s ease;
}

.product-card:hover .quick-preview-btn {
  opacity: 1;
  transform: translateY(0);
}

.product-body {
  padding: 20px;
}

.product-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.product-topline span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
}

.product-topline small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.product-card h3 {
  min-height: 58px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: -1px;
  font-weight: 850;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.product-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.product-bottom {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.product-bottom strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.product-bottom a {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
  font-size: 14px;
  box-shadow: 0 12px 26px rgba(0,0,0,.12);
  transition: 0.2s ease;
}

.product-bottom a:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(0,0,0,.18);
}

.empty-state {
  margin-top: 36px;
  padding: 34px;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-weight: 800;
  display: grid;
  gap: 8px;
}

.empty-state strong {
  color: var(--text);
  font-size: 20px;
}

.empty-state span {
  color: var(--muted);
  font-size: 14px;
}

/* IMAGE PREVIEW / LIGHTBOX — TOTAL FIX */

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(10, 5, 3, 0.78);
  backdrop-filter: blur(18px);
  overflow: auto;
}

.image-lightbox.active {
  display: flex;
}

.lightbox-card {
  width: min(760px, 94vw);
  height: auto;
  max-height: 94vh;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 244, 232, 0.18);
  background: rgba(36, 20, 15, 0.96);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.45);
  animation: lightboxIn 0.22s ease;
}

@keyframes lightboxIn {
  from {
    transform: scale(0.96) translateY(12px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.lightbox-top {
  height: 58px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 244, 232, 0.12);
}

.lightbox-title {
  display: grid;
  gap: 2px;
}

.lightbox-title strong {
  color: #fff4e8;
  font-size: 16px;
  font-weight: 900;
}

.lightbox-title span {
  color: #d7bfa8;
  font-size: 12px;
  font-weight: 700;
}

.lightbox-close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #fff4e8;
  color: #24140f;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.lightbox-image-stage {
  width: 100%;
  height: calc(94vh - 58px);
  max-height: 760px;
  min-height: 360px;
  padding: 14px;
  background:
    radial-gradient(circle at 50% 20%, rgba(240,179,90,.10), transparent 34%),
    rgba(255, 245, 235, 0.035);
}

.lightbox-image-box {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background-color: #f5f1ea;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}

/* FOOTER */

.cat-footer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner a {
  color: var(--text);
  font-weight: 800;
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cat-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-mini-card {
    width: 100%;
  }

  .cat-menu {
    display: none;
  }

  .toolbar-top {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .cat-container {
    width: min(100% - 24px, 1120px);
  }

  .cat-nav {
    height: 68px;
  }

  .cat-logo {
    min-width: auto;
  }

  .cat-logo span:last-child {
    font-size: 30px;
  }

  .cat-whatsapp {
    padding: 10px 14px;
    font-size: 13px;
  }

  .cat-hero {
    padding-top: 22px;
  }

  .cat-hero-card {
    min-height: 300px;
    border-radius: 28px;
  }

  .cat-hero h1 {
    letter-spacing: -4px;
  }

  .cat-subtitle {
    font-size: 16px;
  }

  .cat-toolbar {
    top: 68px;
  }

  .theme-panel {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-media {
    height: 240px;
  }

  .product-card h3 {
    min-height: auto;
  }

  .brand-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-bottom a {
    width: 100%;
  }

  .quick-preview-btn {
    opacity: 1;
    transform: translateY(0);
  }

  .image-lightbox {
    padding: 10px;
  }

  .lightbox-card {
    width: 98vw;
    max-height: 94vh;
    border-radius: 22px;
  }

  .lightbox-top {
    height: 56px;
    padding: 9px 12px;
  }

  .lightbox-title strong {
    font-size: 14px;
  }

  .lightbox-title span {
    font-size: 11px;
  }

  .lightbox-close {
    width: 36px;
    height: 36px;
  }

  .lightbox-image-stage {
    height: calc(94vh - 56px);
    min-height: 300px;
    padding: 8px;
  }

  .lightbox-image-box {
    border-radius: 16px;
  }

  .footer-inner {
    flex-direction: column;
  }
}