:root {
  --ink: #11100e;
  --soft-ink: #4f4940;
  --paper: #fffdf8;
  --cream: #f5efe4;
  --sand: #e6d8c1;
  --gold: #b98a3b;
  --gold-deep: #7f5a1f;
  --line: rgba(17, 16, 14, 0.12);
  --shadow: 0 18px 45px rgba(17, 16, 14, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

body.is-locked {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: clamp(154px, 18vw, 220px);
  height: 54px;
  object-fit: contain;
  object-position: left center;
}

.header-nav {
  justify-self: center;
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  color: var(--soft-ink);
  font-size: 0.95rem;
}

.header-nav a,
.category-menu summary {
  padding: 8px 0;
}

.category-menu {
  position: relative;
}

.category-menu summary {
  list-style: none;
  cursor: pointer;
}

.category-menu summary::-webkit-details-marker {
  display: none;
}

.category-menu summary::after {
  content: " +";
  color: var(--gold-deep);
  font-weight: 800;
}

.category-menu[open] summary::after {
  content: " -";
}

.category-menu-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 30;
  display: grid;
  width: min(360px, 82vw);
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.category-menu-panel a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 12px;
  border-radius: 6px;
  color: var(--ink);
}

.category-menu-panel a:hover,
.category-menu-panel a[aria-current="page"] {
  background: var(--cream);
  color: var(--gold-deep);
}

.category-menu-panel span {
  color: var(--soft-ink);
  font-weight: 800;
}

.header-whatsapp,
.product-whatsapp,
.lightbox-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--gold);
  background: var(--ink);
  color: #fffaf0;
  border-radius: 6px;
  font-weight: 700;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.header-whatsapp:hover,
.product-whatsapp:hover,
.lightbox-panel a:hover {
  transform: translateY(-1px);
  background: var(--gold);
  color: var(--ink);
}

main {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
}

.collection-intro {
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(105deg, rgba(255, 253, 248, 0.96), rgba(245, 239, 228, 0.86));
  box-shadow: 0 18px 45px rgba(17, 16, 14, 0.05);
}

.collection-intro::before {
  display: none;
}

.collection-intro::after {
  display: none;
}

.collection-intro > :not(.hero-banner) {
  display: none !important;
}

.hero-banner {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  font-size: clamp(1.85rem, 4vw, 3.8rem);
  line-height: 1.06;
}

.collection-summary {
  display: grid;
  gap: 4px;
  min-width: 230px;
  padding: 18px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--soft-ink);
}

.collection-summary span:first-child {
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 800;
}

.controls {
  position: sticky;
  top: 72px;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(230px, 380px) minmax(360px, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  background: rgba(255, 253, 248, 0.96);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.tool-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.tool-panel label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--soft-ink);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tool-panel select {
  width: 100%;
  height: 48px;
  padding: 0 38px 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 6px;
  outline: none;
}

.tool-panel select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(185, 138, 59, 0.16);
}

.reset-btn {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

.reset-btn:hover {
  border-color: var(--gold);
  background: var(--gold);
}

.search-wrap {
  position: relative;
  display: block;
}

.tool-label {
  display: grid;
  gap: 8px;
}

.field-caption {
  color: var(--soft-ink);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.search-wrap input {
  width: 100%;
  height: 48px;
  padding: 0 18px 0 44px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 6px;
  outline: none;
}

.search-wrap input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(185, 138, 59, 0.16);
}

.search-icon {
  position: absolute;
  left: 17px;
  top: calc(50% + 14px);
  width: 14px;
  height: 14px;
  border: 2px solid var(--gold-deep);
  border-radius: 50%;
  transform: translateY(-50%);
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 8px;
  height: 2px;
  background: var(--gold-deep);
  transform: rotate(45deg);
  transform-origin: center;
}

.category-filters {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 3px;
}

.filter-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--soft-ink);
  border-radius: 999px;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.is-active {
  border-color: var(--gold);
  background: var(--ink);
  color: #fffaf0;
}

.active-meta {
  min-height: 28px;
  margin: 16px 0 4px;
  color: var(--soft-ink);
  font-size: 0.95rem;
}

.product-section {
  padding: 26px 0 52px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  font-size: clamp(1.65rem, 3vw, 2.6rem);
}

.section-heading span {
  color: var(--soft-ink);
  font-weight: 700;
}

.section-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--soft-ink);
}

.section-tools a {
  color: var(--gold-deep);
  font-weight: 800;
}

.section-tools a:hover {
  color: var(--ink);
}

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

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(17, 16, 14, 0.06);
}

.product-media {
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--cream);
  cursor: zoom-in;
}

.product-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 220ms ease;
}

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

.product-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.product-name {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.product-category {
  color: var(--soft-ink);
  font-size: 0.86rem;
}

.product-whatsapp {
  width: 100%;
  margin-top: 2px;
}

.empty-state {
  margin: 42px 0 80px;
  padding: 34px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.empty-state h2 {
  font-size: 2rem;
}

.empty-state p {
  margin: 8px 0 0;
  color: var(--soft-ink);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 18px;
  padding: 72px clamp(14px, 4vw, 54px) 34px;
  background: rgba(7, 7, 6, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 16px;
  min-height: 0;
  max-width: min(980px, 100%);
  max-height: 100%;
  margin: 0 auto;
}

.lightbox-panel img {
  width: 100%;
  max-height: calc(100vh - 210px);
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lightbox-panel figcaption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 18px;
  align-items: center;
  color: #fffaf0;
}

.lightbox-panel strong {
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.lightbox-panel span {
  grid-column: 1;
  color: rgba(255, 250, 240, 0.74);
}

.lightbox-panel a {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.lightbox-close,
.lightbox-nav {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 253, 248, 0.08);
  color: #fffaf0;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-nav {
  width: 56px;
  height: 72px;
  border-radius: 8px;
  font-size: 3rem;
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--gold);
  color: var(--ink);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  padding: 38px calc(clamp(18px, 4vw, 54px) + 78px) 38px clamp(18px, 4vw, 54px);
  background: var(--ink);
  color: #fffaf0;
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 250, 240, 0.72);
}

.site-footer a {
  align-self: center;
  color: var(--gold);
  font-weight: 800;
}

.scroll-top {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 120;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--gold);
  background: var(--ink);
  color: #fffaf0;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(17, 16, 14, 0.24);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.scroll-top::before {
  content: "";
  width: 13px;
  height: 13px;
  border-left: 3px solid currentColor;
  border-top: 3px solid currentColor;
  transform: translateY(4px) rotate(45deg);
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top.is-over-footer {
  bottom: 104px;
}

.scroll-top:hover {
  background: var(--gold);
  color: var(--ink);
}

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

  .header-nav {
    display: none;
  }

  .collection-intro,
  .controls {
    grid-template-columns: 1fr;
  }

  .tool-panel {
    grid-template-columns: 1fr;
  }

  .controls {
    top: 72px;
  }

  .collection-summary {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 66px;
    gap: 12px;
    padding: 12px 14px;
  }

  .brand-logo {
    width: 148px;
    height: 46px;
  }

  .header-whatsapp {
    min-height: 38px;
    padding: 0 12px;
  }

  main {
    width: min(100% - 22px, 1480px);
  }

  .collection-intro {
    margin-top: 18px;
    height: clamp(110px, 31vw, 138px);
  }

  .hero-banner {
    width: auto;
    max-width: none;
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
  }

  .controls {
    top: 66px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-body {
    padding: 11px;
  }

  .product-name {
    font-size: 0.92rem;
  }

  .product-whatsapp {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.9rem;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }

  .section-tools {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .lightbox {
    grid-template-columns: 1fr;
    padding: 68px 12px 24px;
  }

  .lightbox-nav {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 58px;
    transform: translateY(-50%);
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-panel figcaption {
    grid-template-columns: 1fr;
  }

  .lightbox-panel span,
  .lightbox-panel a {
    grid-column: 1;
    grid-row: auto;
  }

  .site-footer {
    display: grid;
  }

  .scroll-top {
    right: 14px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
    width: 52px;
    height: 52px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .scroll-top.is-over-footer {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 92px);
  }
}
