/* SiSi Joyas — conversion-focused editorial layer. Keeps the warm ivory, ink and gold identity. */
:root {
  --sisi-ink: #292722;
  --sisi-cream: #f5f0e8;
  --sisi-card: #fffefa;
  --sisi-gold: #ad8b5a;
  --sisi-line: #e4dace;
  --sisi-muted: #6f6a62;
}

html { scroll-padding-top: 22px; }
body { color: var(--sisi-ink); }

.site-header {
  gap: clamp(14px, 2vw, 28px);
}

.desktop-nav {
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.7vw, 24px);
  margin-left: auto;
}

.desktop-nav a,
.header-actions {
  font-size: 9px;
  letter-spacing: .065em;
}

.desktop-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.header-actions { flex: 0 0 auto; }
.lang-toggle { min-height: 44px; padding: 0 4px; }
.bag-link { white-space: nowrap; }

.hero-copy { max-width: 530px; }
.hero-text { max-width: 430px; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.hero-actions .button { min-height: 48px; }
.hero-actions .button-outline { background: rgba(255, 254, 250, .58); }
.hero-note { max-width: 370px; line-height: 1.7; }

.trust-strip {
  gap: clamp(14px, 3vw, 36px);
  font-size: 9px;
}

.review-proof {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  max-width: 1240px;
  margin: 30px auto;
  padding: 22px 26px;
  border: 1px solid var(--sisi-line);
  background: linear-gradient(110deg, rgba(255, 254, 250, .96), rgba(241, 235, 225, .68));
}

.review-proof-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(173, 139, 90, .42);
  border-radius: 50%;
  color: #8a6d43;
  font: 400 25px/1 var(--serif);
}

.review-proof-copy .eyebrow { margin: 0 0 4px; }
.review-proof-copy h2 {
  margin: 0 0 5px;
  font: 400 clamp(20px, 2.5vw, 27px)/1.25 var(--serif);
  letter-spacing: -.02em;
}
.review-proof-copy > p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--sisi-muted);
  font-size: 11px;
  line-height: 1.65;
}
.review-proof-copy .review-date {
  margin-top: 5px !important;
  color: #8a8379 !important;
  font-size: 9px !important;
}
.review-source { color: #8a6d43; }
.review-proof > .button,
.review-proof > .text-link { white-space: nowrap; }
.review-proof > .button { min-height: 46px; }
.review-proof-home { margin-inline: 6.3%; }

.category-browse { margin: 28px 0 30px; }
.category-browse-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.category-browse-heading .eyebrow { margin: 0; }
.category-browse-heading > a,
.category-bottom-cta > a {
  border-bottom: 1px solid var(--sisi-gold);
  padding-bottom: 3px;
  color: #63543f;
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.category-landing-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.category-tile {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: end;
  gap: 2px 8px;
  min-height: 88px;
  padding: 14px 15px;
  border: 1px solid var(--sisi-line);
  background: rgba(255, 254, 250, .72);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.category-tile:hover,
.category-tile:focus-visible {
  border-color: #c9b08d;
  background: var(--sisi-card);
  transform: translateY(-2px);
}

.category-tile-count {
  grid-column: 1 / -1;
  color: #86765e;
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.category-tile strong {
  font: 400 clamp(15px, 1.7vw, 19px)/1.2 var(--serif);
}
.category-tile > span:last-child { justify-self: end; color: var(--sisi-gold); }

.category-page-links {
  max-width: 1160px;
  margin: 26px auto 0;
  padding: 0 6.3%;
}

.category-page-hero,
.own-page-hero {
  padding-top: 64px;
  padding-bottom: 48px;
  background: radial-gradient(ellipse at 50% 0, rgba(255, 255, 255, .8), transparent 66%);
}
.category-page-hero h1,
.own-page-hero h1 {
  max-width: 900px;
  margin: 13px auto 14px;
  font-size: clamp(38px, 5vw, 58px);
}
.category-page-hero > p:not(.eyebrow),
.own-page-hero > p:not(.eyebrow) {
  max-width: 710px;
  font-size: 13px;
  line-height: 1.85;
}
.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.page-hero-actions .button { min-height: 46px; }
.category-products { padding-top: 58px; }
.category-products .section-heading { margin-bottom: 25px; }
.category-products .section-heading h2 { font-size: clamp(30px, 3.5vw, 42px); }
.category-products .section-heading > p { max-width: 300px; }
.category-products .affiliate-disclosure { margin-top: 0; }
.category-products .product-grid { margin-top: 22px; }
.category-guide {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 26px 56px;
  max-width: 1160px;
  margin: 8px auto 42px;
  padding: 27px 6.3%;
  border-top: 1px solid var(--sisi-line);
  border-bottom: 1px solid var(--sisi-line);
  background: rgba(255, 254, 250, .55);
}
.category-guide-heading .eyebrow { margin: 0 0 7px; }
.category-guide-heading h2 {
  margin: 0;
  font: 400 clamp(24px, 3vw, 34px)/1.2 var(--serif);
  letter-spacing: -.025em;
}
.category-guide-copy p { margin: 0; color: var(--sisi-muted); font-size: 11px; line-height: 1.85; }
.category-guide-copy .text-link { margin-top: 10px; }
.category-bottom-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px 24px;
  padding: 20px 6.3% 54px;
  border-top: 1px solid var(--sisi-line);
}
.category-bottom-cta p { flex-basis: 100%; margin: 0; color: var(--sisi-muted); font: 400 22px/1.3 var(--serif); }

.catalog-tools { align-items: end; }
.category-filters { gap: 7px; }
.filter {
  min-height: 42px;
  padding: 9px 14px;
  border-color: #ded4c7;
  border-radius: 2px;
  background: rgba(255, 254, 250, .7);
  font-size: 9px;
}
.filter.active,
.filter.active:hover {
  border-color: var(--sisi-ink);
  background: var(--sisi-ink);
  color: #fffefa;
}
.filter:hover { background: #fffefa; }
.catalog-search input { min-height: 46px; }
.catalog-count { margin-top: -8px; font-size: 10px; }
.catalog-full-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin: 20px 0 0;
  color: var(--sisi-muted);
  font-size: 10px;
}
.catalog-full-link a {
  border-bottom: 1px solid var(--sisi-gold);
  color: #63543f;
  font-weight: 600;
}

/* Keep the JS-driven filters reliable even when card layouts set display:flex. */
.product-card[hidden],
.empty-state[hidden] { display: none !important; }

.product-info { padding: 16px 14px 15px; }
.product-category { font-size: 8px; }
.product-info h3 { min-height: 2.55em; font-size: 17px; }
.product-desc { min-height: 4.2em; font-size: 10px; }
.product-price { font-size: 10px; line-height: 1.4; }
.product-bottom { gap: 10px; }
.product-buy {
  width: 100%;
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid #d7c7b2;
  background: #fbf8f2;
  color: var(--sisi-ink);
  font-size: 9px;
  letter-spacing: .025em;
}
.product-buy:hover,
.product-buy:focus-visible {
  border-color: var(--sisi-ink);
  background: var(--sisi-ink);
  color: #fffefa;
}

.own-listing-buy { min-height: 44px; font-size: 9px; }
.own-listing-desc { font-size: 11px; line-height: 1.7; }
.own-listing-image:focus-visible,
.own-listing-buy:focus-visible,
.product-buy:focus-visible,
.button:focus-visible,
.filter:focus-visible,
.category-tile:focus-visible,
.menu-toggle:focus-visible,
.lang-toggle:focus-visible { outline: 2px solid var(--sisi-gold); outline-offset: 3px; }

.faq-section {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
  gap: 32px 60px;
  padding: 76px 8%;
  border-top: 1px solid var(--sisi-line);
  border-bottom: 1px solid var(--sisi-line);
  background: rgba(255, 254, 250, .62);
}
.faq-intro h2 {
  margin: 9px 0 12px;
  font: 400 clamp(31px, 3.7vw, 43px)/1.15 var(--serif);
  letter-spacing: -.035em;
}
.faq-intro > p:last-child { max-width: 360px; margin: 0; color: var(--sisi-muted); font-size: 12px; line-height: 1.8; }
.faq-list details { border-top: 1px solid var(--sisi-line); }
.faq-list details:last-child { border-bottom: 1px solid var(--sisi-line); }
.faq-list summary {
  position: relative;
  min-height: 54px;
  padding: 16px 34px 14px 0;
  color: var(--sisi-ink);
  cursor: pointer;
  font: 400 17px/1.4 var(--serif);
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  position: absolute;
  top: 14px;
  right: 2px;
  content: "+";
  color: var(--sisi-gold);
  font: 400 22px/1 var(--sans);
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 690px; margin: 0 26px 17px 0; color: var(--sisi-muted); font-size: 11px; line-height: 1.8; }

.own-how-it-works {
  margin: 8px 6.3% 72px;
  padding: 28px 30px;
  border: 1px solid var(--sisi-line);
  background: rgba(255, 254, 250, .72);
}
.own-how-it-works h2 { margin: 8px 0; font: 400 clamp(25px, 3vw, 34px)/1.2 var(--serif); }
.own-how-it-works > p:not(.eyebrow) { max-width: 820px; color: var(--sisi-muted); font-size: 11px; line-height: 1.8; }
.own-how-it-works .market-buttons { margin-top: 16px; }

#catalog, #own-listings, #opiniones, #como-funciona, #about { scroll-margin-top: 22px; }

@media (max-width: 1050px) {
  .site-header { padding-inline: 4%; }
  .desktop-nav { gap: 12px; }
  .desktop-nav a, .header-actions { font-size: 8px; }
  .header-actions { gap: 12px; }
  .category-landing-links { gap: 8px; }
  .category-tile { padding: 12px; }
}

@media (max-width: 760px) {
  .site-header { min-height: 66px; height: auto; padding: 7px 5%; }
  .desktop-nav { gap: 0; }
  .desktop-nav.is-open { gap: 8px; padding: 14px 5% 20px; }
  .desktop-nav.is-open a { min-height: 44px; font-size: 10px; }
  .header-actions { gap: 10px; }
  .menu-toggle { min-width: 44px; min-height: 44px; font-size: 18px; }
  .lang-toggle { min-height: 44px; }
  .hero-copy { max-width: 620px; }
  .hero-actions { gap: 8px; }
  .hero-actions .button { flex: 1 1 190px; }
  .trust-strip { gap: 8px 14px; padding: 14px 6%; text-align: center; line-height: 1.6; }
  .trust-strip i { display: none; }
  .review-proof,
  .review-proof-home {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    margin: 18px 5%;
    padding: 17px 15px;
  }
  .review-proof-mark { width: 48px; height: 48px; font-size: 20px; }
  .review-proof-copy h2 { font-size: 21px; }
  .review-proof-copy > p:not(.eyebrow) { font-size: 10px; }
  .review-proof > .button,
  .review-proof > .text-link { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
  .review-proof > .button { width: 100%; }
  .category-browse { margin: 24px 0; }
  .category-landing-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-tile { min-height: 78px; }
  .category-page-links { margin-top: 20px; padding-inline: 5%; }
  .category-page-hero,
  .own-page-hero { padding: 47px 6% 38px; }
  .category-page-hero h1,
  .own-page-hero h1 { font-size: clamp(34px, 9vw, 46px); }
  .category-page-hero > p:not(.eyebrow),
  .own-page-hero > p:not(.eyebrow) { font-size: 12px; }
  .page-hero-actions { gap: 8px; }
  .page-hero-actions .button { flex: 1 1 190px; }
  .category-products { padding-top: 44px; }
  .category-products .section-heading { display: block; }
  .category-guide { grid-template-columns: 1fr; gap: 12px; margin: 0 5% 32px; padding: 22px 18px; }
  .category-guide-copy p { font-size: 10px; }
  .category-bottom-cta { padding: 18px 5% 42px; }
  .category-bottom-cta p { font-size: 20px; }
  .category-filters { width: 100%; }
  .filter { min-height: 42px; }
  .catalog-full-link { align-items: flex-start; line-height: 1.7; }
  .product-info { padding: 12px 10px 12px; }
  .product-info h3 { min-height: 2.5em; font-size: 16px; }
  .product-desc { min-height: 5em; font-size: 10px; }
  .product-buy { min-height: 44px; padding-inline: 8px; font-size: 9px; }
  .own-listing-buy { min-height: 44px; }
  .own-listing-desc { font-size: 10px; }
  .faq-section { grid-template-columns: 1fr; gap: 20px; padding: 52px 6%; }
  .faq-list summary { min-height: 52px; font-size: 16px; }
  .own-how-it-works { margin: 0 5% 50px; padding: 23px 19px; }
}

@media (max-width: 390px) {
  .category-landing-links { grid-template-columns: 1fr 1fr; gap: 7px; }
  .category-tile { min-height: 74px; padding: 10px; }
  .category-tile strong { font-size: 15px; }
  .review-proof-copy h2 { font-size: 19px; }
  .hero-actions .button { flex-basis: 100%; }
  .page-hero-actions .button { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .category-tile { transition: none; }
}
