:root {
  --bg: #f3f6f4;
  --bg-elevated: #ffffff;
  --ink: #14201b;
  --muted: #5c6b64;
  --line: #d5ddd8;
  --accent: #0f6b5c;
  --accent-dark: #0a4f44;
  --whatsapp: #128c7e;
  --whatsapp-dark: #0e6b60;
  --danger: #b42318;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(20, 32, 27, 0.08);
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Syne", "DM Sans", sans-serif;
  --wrap: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(15, 107, 92, 0.12), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(20, 32, 27, 0.06), transparent 55%),
    var(--bg);
  line-height: 1.55;
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(243, 246, 244, 0.86);
  border-bottom: 1px solid rgba(213, 221, 216, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.nav a.is-active {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--ink);
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 0.9rem 1.4rem;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-whatsapp {
  background: var(--whatsapp);
  border-color: var(--whatsapp);
  color: #fff;
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  border-color: var(--whatsapp-dark);
  color: #fff;
}

.btn-danger {
  background: #fff5f4;
  border-color: #f0c4c0;
  color: var(--danger);
}

.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero-inner {
  max-width: 40rem;
  animation: rise 0.7s ease both;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.hero-brand {
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 32rem;
  margin: 0 0 1.5rem;
}

.catalog {
  padding: 0 0 4rem;
}

.filters {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  padding: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.filters input,
.filters select,
.stack-form input,
.stack-form select,
.stack-form textarea,
.inline-form input,
.inline-form select,
.form-grid input,
.form-grid select,
.form-grid textarea,
.spec-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.filters input:focus,
.stack-form input:focus,
.stack-form select:focus,
.stack-form textarea:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.spec-row input:focus {
  outline: 2px solid rgba(15, 107, 92, 0.25);
  border-color: var(--accent);
}

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

.product-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: rise 0.55s ease both;
}

.product-card:nth-child(2) { animation-delay: 0.05s; }
.product-card:nth-child(3) { animation-delay: 0.1s; }
.product-card:nth-child(4) { animation-delay: 0.15s; }

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(20, 32, 27, 0.12);
  text-decoration: none;
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #e7eee9;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.04);
}

.media-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 3rem;
  color: var(--accent);
  background: linear-gradient(145deg, #dce8e3, #eff4f1);
}

.media-placeholder.large {
  min-height: 360px;
  font-size: 5rem;
}

.badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(20, 32, 27, 0.85);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
}

.badge-out {
  background: rgba(180, 35, 24, 0.92);
}

.product-body {
  padding: 1rem 1.1rem 1.2rem;
}

.product-cat,
.product-brand {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

.product-body h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 0.35rem 0 0.25rem;
  letter-spacing: -0.02em;
}

.product-price {
  font-weight: 700;
  margin: 0.6rem 0 0;
  color: var(--accent-dark);
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.product-detail {
  padding: 2rem 0 5rem;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: start;
}

.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  background: #e7eee9;
  border: 1px solid var(--line);
  aspect-ratio: 1 / 1;
}

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

.gallery-thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.gallery-thumbs .thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: none;
}

.gallery-thumbs .thumb.is-active,
.gallery-thumbs .thumb:hover {
  border-color: var(--accent);
}

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

.detail-info h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 0.35rem 0 0.5rem;
}

.detail-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin: 0 0 0.5rem;
}

.stock {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin: 0 0 1rem;
}

.stock.in {
  background: #e4f5ef;
  color: #0f6b5c;
}

.stock.out {
  background: #fdeceb;
  color: var(--danger);
}

.meta-list {
  display: grid;
  gap: 0.4rem;
  margin: 0 0 1.25rem;
}

.meta-list div {
  display: flex;
  gap: 0.75rem;
}

.meta-list dt {
  color: var(--muted);
  min-width: 4rem;
}

.meta-list dd {
  margin: 0;
  font-weight: 500;
}

.detail-desc {
  color: var(--muted);
  margin-bottom: 1.5rem;
  white-space: normal;
}

.specs-title {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.specs-table th,
.specs-table td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--line);
}

.specs-table th {
  width: 40%;
  color: var(--muted);
  font-weight: 500;
}

.detail-cta {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.cta-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.75rem 0 0;
}

.wa-sticky {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(243, 246, 244, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  z-index: 50;
}

.wa-sticky .btn {
  width: 100%;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #12201b;
  color: #d7e3dd;
  padding: 3rem 0;
  margin-top: 2rem;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #fff;
}

.footer-note {
  color: #9db0a7;
  margin: 0 0 1.25rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .filters {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .wa-sticky {
    display: block;
  }

  .product-detail {
    padding-bottom: 6rem;
  }

  .detail-cta .btn-whatsapp {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 2.5rem;
  }
}
