/* Estudio Relieve — shared styles */

:root {
  --bg: #e2e0de;
  --bg-light: #f6f5f3;
  --bg-dark: #c4c2c0;
  --surface: #fbfaf9;
  --ink: #201f1d;
  --ink-soft: #6b6863;
  --gold: #9c7a3f;
  --hairline: rgba(32, 31, 29, 0.12);
  --logo-w: min(560px, 78vw);
  --logo-h: calc(var(--logo-w) / 3);
  --logo-top: clamp(28px, 6vw, 56px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Work Sans", ui-sans-serif, system-ui, sans-serif;
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-inline: 16px;
  background-color: var(--bg-dark);
  background-image: radial-gradient(
    calc(var(--logo-w) * 1.4142) calc(var(--logo-h) * 1.4142)
    at calc(50% + var(--logo-w) / 2) var(--logo-top),
    var(--bg-light) 0%,
    var(--bg-dark) 100%
  );
  background-repeat: no-repeat;
  background-attachment: fixed;
}

a { color: inherit; }

/* Header / brand */

header.site-header {
  display: flex;
  justify-content: center;
  padding-block: clamp(28px, 6vw, 56px) clamp(18px, 3vw, 28px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 6px;
}

.brand:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
}

.brand img {
  width: min(560px, 78vw);
  height: auto;
  display: block;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 9%, #000 91%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in, source-in;
}

/* Floating contact buttons */

.contact {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10;
}

.contact-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(32, 31, 29, 0.14), 0 8px 20px rgba(32, 31, 29, 0.1);
  border: 1px solid var(--hairline);
  transition: transform 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.contact-btn svg { width: 22px; height: 22px; }

.contact-btn:hover {
  transform: translateY(-2px);
  color: var(--gold);
  box-shadow: 0 4px 10px rgba(32, 31, 29, 0.16), 0 10px 24px rgba(32, 31, 29, 0.12);
}

.contact-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.contact-btn:disabled {
  cursor: not-allowed;
  color: var(--ink-soft);
  opacity: 0.6;
  font: inherit;
  padding: 0;
}

.contact-btn:disabled:hover {
  transform: none;
  box-shadow: 0 2px 6px rgba(32, 31, 29, 0.14), 0 8px 20px rgba(32, 31, 29, 0.1);
}

/* Shared type */

.eyebrow {
  font-family: "Work Sans", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Catalog grid (home) */

main.catalog-main {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-block: clamp(12px, 3vw, 28px) 100px;
}

.catalog-intro {
  text-align: center;
  max-width: 46ch;
  margin: 0 auto clamp(28px, 5vw, 48px);
}

.catalog-intro h1 {
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  text-wrap: balance;
  margin: 0 0 10px;
}

.catalog-intro p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.shipping-note {
  margin-top: 10px !important;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.payment-note {
  margin-top: 8px !important;
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
}

.payment-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.payment-badge--bizum {
  background: #00e6c3;
  color: #0a2b26;
}

.payment-badge--transfer {
  background: var(--bg-dark);
  color: var(--ink-soft);
}

.rating-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 14px;
  text-decoration: none;
  color: inherit;
}

.rating-stars {
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 0.95rem;
}

.rating-text {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.rating-badge:hover .rating-text { color: var(--gold); }
.rating-badge:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-img {
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-light);
  box-shadow: 0 1px 3px rgba(32, 31, 29, 0.08), 0 10px 26px rgba(32, 31, 29, 0.1);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.card:hover .card-img img,
.card:focus-visible .card-img img { transform: scale(1.045); }

.card:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }

.card-body { display: flex; flex-direction: column; gap: 4px; padding-inline: 2px; }

.card-name {
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
}

.card-from { color: var(--ink-soft); font-size: 0.92rem; }

/* Product page */

.breadcrumb {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  padding-inline: 2px;
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 6px 2px;
}

.breadcrumb a:hover { color: var(--gold); }
.breadcrumb a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

main.product-main {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-block: clamp(8px, 2vw, 16px) 110px;
}

.product-title {
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  text-wrap: balance;
  margin: 8px 0 6px;
}

.product-tagline {
  color: var(--ink-soft);
  max-width: 56ch;
  line-height: 1.6;
  margin: 0 0 clamp(28px, 4vw, 44px);
}

.product-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

@media (max-width: 760px) {
  .product-layout { grid-template-columns: 1fr; }
}

/* Gallery / carousel */

.gallery { position: relative; }

.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(32, 31, 29, 0.08), 0 14px 32px rgba(32, 31, 29, 0.12);
  aspect-ratio: var(--gallery-ratio, 4 / 5);
  background: var(--bg-light);
}

.gallery-track::-webkit-scrollbar { display: none; }

.gallery-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
  display: block;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(251, 250, 249, 0.88);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(32, 31, 29, 0.18);
  transition: background 0.15s ease;
}

.gallery-nav:hover { background: var(--bg-light); color: var(--gold); }
.gallery-nav:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.gallery-nav svg { width: 18px; height: 18px; }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.gallery-dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--hairline);
  cursor: pointer;
}

.gallery-dots button[aria-current="true"] { background: var(--gold); }

/* Specs panel */

.specs { display: flex; flex-direction: column; gap: 26px; }

.price-table {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-block: 10px;
  border-bottom: 1px solid var(--hairline);
  font-variant-numeric: tabular-nums;
}

.price-row .size { color: var(--ink); }
.price-row .price { font-family: "Fraunces", ui-serif, Georgia, serif; font-size: 1.05rem; }

.price-single {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-block: 4px 2px;
}

.price-single .price {
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: 1.9rem;
  font-weight: 500;
}

.addon-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

.spec-list { display: flex; flex-direction: column; gap: 14px; }

.spec-item dt {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 2px;
}

.spec-item dd { margin: 0; line-height: 1.5; }

.colors-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 3px;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.colors-link:hover { color: var(--gold); }
.colors-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  background: var(--ink);
  color: var(--bg-light);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(32, 31, 29, 0.16);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  margin-top: 4px;
}

.btn-whatsapp:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(32, 31, 29, 0.2); }
.btn-whatsapp:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-whatsapp svg { width: 19px; height: 19px; }

/* Footer */

footer.site-footer {
  border-top: 1px solid var(--hairline);
  margin-top: 40px;
  padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.footer-links a { text-decoration: none; color: var(--ink-soft); }
.footer-links a:hover { color: var(--gold); }
.footer-links a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

footer.site-footer p { margin: 0; }

/* Legal pages */

.legal-content {
  max-width: 68ch;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  line-height: 1.7;
}

.legal-content h2 {
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-weight: 500;
  font-size: 1.2rem;
  margin: 8px 0 -6px;
  text-align: center;
}

.legal-content p {
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
}
.legal-content a { color: var(--ink); text-decoration-color: var(--hairline); }
.legal-content a:hover { color: var(--gold); }
.legal-updated { color: var(--ink-soft); font-size: 0.85rem; }
