:root {
  --bg: #181411;
  --panel: #221c18;
  --panel-2: #2b231d;
  --text: #f2ede7;
  --text-muted: #c8baac;
  --accent: #b78a56;
  --border: #3b3028;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 0%, #2b231d 0%, var(--bg) 58%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(24, 20, 17, 0.56), rgba(24, 20, 17, 0.62)),
    url('/assets/local-ambiente.png') center center / cover no-repeat;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.8rem 1.2rem 2.5rem;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.55rem;
  background: linear-gradient(130deg, rgba(183, 138, 86, 0.14), rgba(34, 28, 24, 0.78) 40%);
}

.hero-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(255, 226, 184, 0.06) 0%, transparent 35%),
    radial-gradient(circle at 70% 30%, rgba(255, 213, 157, 0.15), transparent 42%);
  pointer-events: none;
}

.eyebrow {
  position: relative;
  z-index: 1;
  margin: 0;
  letter-spacing: 0.17em;
  font-size: 0.74rem;
  color: var(--accent);
  font-weight: 600;
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0.5rem 0 0.75rem;
  font-size: clamp(1.68rem, 3vw, 2.45rem);
  line-height: 1.15;
  max-width: 16ch;
}

.hero-text {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.56;
  max-width: 64ch;
}

.hero-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1px solid rgba(183, 138, 86, 0.35);
  background: linear-gradient(145deg, rgba(183, 138, 86, 0.12), rgba(24, 20, 17, 0.45));
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.hero-logo svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: #f0d6b4;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-layout {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 1rem;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 1rem;
  border: 1px solid rgba(183, 138, 86, 0.2);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(34, 28, 24, 0.95), rgba(24, 20, 17, 0.92));
  padding: 0.85rem;
}

.categories-title {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.categories-list {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.category-btn {
  border: 1px solid #46382c;
  background: linear-gradient(165deg, #2a231d, #221c18);
  color: var(--text-muted);
  text-align: left;
  border-radius: 9px;
  padding: 0.5rem 0.58rem;
  font-size: 0.87rem;
  cursor: pointer;
}

.category-btn:hover {
  border-color: rgba(183, 138, 86, 0.45);
  color: var(--text);
}

.category-btn.is-active {
  border-color: rgba(183, 138, 86, 0.75);
  color: #f6e3c7;
  background: linear-gradient(165deg, #3a2f25, #2a221b);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1rem;
}

.product-card {
  background: linear-gradient(155deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(183, 138, 86, 0.42);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24);
}

.product-image-wrap {
  aspect-ratio: 1 / 1;
  background: #0f0c0a;
  border-bottom: 1px solid rgba(183, 138, 86, 0.08);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 280ms ease;
}

.product-card:hover .product-image {
  transform: scale(1.03);
}

.no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9f8f7f;
  font-size: 0.9rem;
}

.product-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
}

.category {
  margin: 0;
  color: var(--accent);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-name {
  margin: 0;
  font-size: 1.03rem;
}

.product-description {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-origin {
  margin: -0.2rem 0 0;
  color: #e9d0ad;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sensory-notes {
  display: grid;
  gap: 0.35rem;
}

.sensory-title {
  margin: 0;
  color: #d9c4a7;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sensory-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
}

.sensory-pill {
  border: 1px solid rgba(183, 138, 86, 0.38);
  background: rgba(183, 138, 86, 0.12);
  color: #f2e8dd;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.2;
}

.price {
  margin-top: auto;
  font-size: 1.18rem;
  font-weight: 700;
  color: #f9e4c7;
}

.price-note {
  margin: -0.25rem 0 0;
  width: fit-content;
  border: 1px solid rgba(183, 138, 86, 0.45);
  background: rgba(183, 138, 86, 0.1);
  color: #ecd5b8;
  border-radius: 999px;
  padding: 0.16rem 0.54rem;
  font-size: 0.73rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.comodato-badge {
  margin: -0.2rem 0 0;
  width: fit-content;
  border: 1px solid rgba(183, 138, 86, 0.52);
  background: rgba(183, 138, 86, 0.14);
  color: #f6dec0;
  border-radius: 999px;
  padding: 0.14rem 0.52rem;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.empty-state {
  padding: 1.2rem;
  border: 1px dashed rgba(183, 138, 86, 0.35);
  border-radius: 12px;
  color: var(--text-muted);
  text-align: center;
  background: rgba(30, 24, 20, 0.45);
}

@media (max-width: 860px) {
  .page {
    padding: 1rem 0.85rem 1.6rem;
  }

  .hero {
    padding: 1.15rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(182px, 1fr));
    gap: 0.72rem;
  }

  .product-card {
    min-height: 380px;
  }

  .product-content {
    padding: 0.82rem;
    gap: 0.5rem;
  }

  .hero-header {
    align-items: center;
  }

  .hero-logo {
    width: 54px;
    height: 54px;
    border-radius: 14px;
  }

  .hero-logo svg {
    width: 38px;
    height: 38px;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .hero h1 {
    max-width: none;
  }
}
