/* ============================================================
   BEMOL — Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,500&family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400;1,500&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --bg: #0a0908;
  --bg-soft: #131210;
  --bg-card: #16140f;
  --text: #f3ede2;
  --text-dim: #b7ad9d;
  --text-faint: #857c6d;
  --border: rgba(243, 237, 226, 0.14);
  --border-soft: rgba(243, 237, 226, 0.08);
  --gold: #cbb99a;
  --serif: 'Playfair Display', serif;
  --serif-italic: 'Cormorant Garamond', serif;
  --sans: 'Jost', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, textarea { font-family: inherit; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
  margin-bottom: 18px;
  display: block;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------------- Header ---------------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  background: linear-gradient(to bottom, rgba(10,9,8,0.85), transparent);
  transition: background 0.3s ease;
}

.logo {
  width: 38px; height: 38px;
  border: 1px solid var(--text);
  background: #000;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: 20px;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.25s ease;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  border-bottom-color: var(--gold);
}

.header-right { display: flex; align-items: center; gap: 20px; }

.cart-btn {
  position: relative;
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
}
.cart-btn:hover { color: var(--text); border-color: var(--text); }

.cart-count {
  position: absolute;
  top: -8px; right: -8px;
  background: var(--gold);
  color: #0a0908;
  font-size: 10px;
  font-weight: 600;
  width: 17px; height: 17px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  display: none;
}

.nav-toggle {
  display: none;
  width: 32px; height: 32px;
  color: var(--text);
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 100px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(6,5,4,0.55), rgba(6,5,4,0.75) 60%, var(--bg) 100%);
}

.hero-small {
  min-height: 46vh;
  padding-top: 160px;
}

.hero-content { position: relative; z-index: 2; max-width: 760px; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(52px, 9vw, 108px);
  color: var(--text);
  line-height: 1;
  margin-bottom: 26px;
}

.hero-small h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.hero p.subtitle {
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--text-dim);
  margin-bottom: 40px;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 400;
  border: 1px solid var(--text);
  color: var(--text);
  background: transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--text); color: var(--bg); }

.btn-solid {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-solid:hover { background: var(--gold); border-color: var(--gold); }

.btn-block { width: 100%; }

.btn-sm { padding: 12px 20px; }

/* ---------------- Equalizer divider ---------------- */

.eq-divider {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 26px;
  width: 100%;
  margin: 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.eq-divider span {
  flex: 1;
  max-width: 6px;
  background: linear-gradient(to top, var(--gold), transparent);
  opacity: 0.55;
}

/* ---------------- Section fade-in ---------------- */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---------------- Section base ---------------- */

.section {
  padding: 90px 0;
}
.section-sm { padding: 60px 0; }

.section-heading {
  text-align: center;
  margin-bottom: 56px;
}
.section-heading h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 44px);
}

/* ---------------- Tienda: stats row ---------------- */

.shop-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-dim);
  font-size: 14px;
  flex-wrap: wrap;
  gap: 12px;
}
.shop-stats strong { color: var(--text); font-weight: 500; }

/* ---------------- Product grid & cards ---------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px 32px;
  padding: 56px 0;
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-card-img {
  aspect-ratio: 3/4;
  width: 100%;
  background-size: cover;
  background-position: center;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }

.product-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  margin-bottom: 6px;
}
.product-card h3 a:hover { color: var(--gold); }

.product-card .tagline {
  font-family: var(--serif-italic);
  font-style: italic;
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 6px;
}
.product-card .notes-line {
  font-size: 12.5px;
  color: var(--text-faint);
  letter-spacing: 0.3px;
  margin-bottom: 16px;
}

.size-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.size-opt {
  flex: 1;
  border: 1px solid var(--border);
  padding: 8px 6px;
  font-size: 12.5px;
  text-align: center;
  color: var(--text-dim);
  transition: all 0.2s ease;
}
.size-opt.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}
.price {
  font-family: var(--serif);
  font-size: 20px;
}

.add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--text);
  padding: 10px 16px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.2s ease;
}
.add-btn:hover { background: var(--text); color: var(--bg); }
.add-btn svg { width: 14px; height: 14px; }

/* ---------------- Product detail page ---------------- */

.breadcrumb {
  position: fixed;
  top: 24px; left: 100px;
  font-size: 12px;
  color: var(--text-faint);
  z-index: 90;
  display: none;
}
.breadcrumb a:hover { color: var(--text); }

.product-detail {
  padding: 150px 0 100px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: flex-start;
}
.product-detail-img {
  position: sticky;
  top: 130px;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.product-detail-img img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-info .eyebrow { margin-bottom: 14px; }
.product-detail-info h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.15;
  margin-bottom: 18px;
}
.product-detail-info .tagline {
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: 19px;
  color: var(--text-dim);
  margin-bottom: 22px;
}
.rule {
  width: 46px; height: 1px;
  background: var(--border);
  margin-bottom: 22px;
}
.product-detail-info .description {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.8;
  margin-bottom: 34px;
  max-width: 480px;
}

.label-sm {
  font-size: 11.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
  display: block;
}

.notes-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}
.notes-pills span {
  border: 1px solid var(--border);
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-dim);
}

.size-select { display: flex; gap: 14px; margin-bottom: 30px; }
.size-box {
  border: 1px solid var(--border);
  padding: 14px 26px;
  text-align: center;
  min-width: 100px;
  transition: all 0.2s ease;
}
.size-box .sz { font-size: 13px; color: var(--text-dim); margin-bottom: 4px; }
.size-box .pr { font-size: 15px; }
.size-box.active { background: var(--text); color: var(--bg); }
.size-box.active .sz, .size-box.active .pr { color: var(--bg); }

.detail-price-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}
.detail-price {
  font-family: var(--serif);
  font-size: 34px;
}

.back-link {
  color: var(--text-faint);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.back-link:hover { color: var(--text); }

/* ---------------- About page ---------------- */

.origin-block {
  max-width: 780px;
  margin: 0 auto;
}
.origin-block h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 500;
  margin-bottom: 28px;
}
.origin-block p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 22px;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin-top: 20px;
}
.philosophy-item .symbol {
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: 30px;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}
.philosophy-item h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 12px;
}
.philosophy-item p {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.75;
}

.cta-section {
  text-align: center;
  padding: 100px 24px;
}
.cta-section p {
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 38px;
}

/* ---------------- Contact page ---------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 70px;
  margin-top: 30px;
}
.contact-grid h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 30px;
}

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 11.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  padding: 14px 16px;
  color: var(--text);
  font-size: 14px;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 120px; }

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 26px;
}
.contact-info-item svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; color: var(--text-dim); }
.contact-info-item .k {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.contact-info-item .v { font-size: 15.5px; }
.contact-info-item .v:hover { color: var(--gold); }

/* ---------------- Footer ---------------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding-top: 70px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
}
.footer-brand p {
  color: var(--text-dim);
  font-size: 14.5px;
  margin-top: 18px;
  max-width: 260px;
}
.footer-col h4 {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 20px;
}
.footer-col a, .footer-col p {
  display: block;
  color: var(--text-dim);
  font-size: 14.5px;
  margin-bottom: 12px;
}
.footer-col a:hover { color: var(--gold); }
.footer-contact-item { display: flex; align-items: center; gap: 10px; }
.footer-contact-item svg { width: 15px; height: 15px; }

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------------- Cart sidebar ---------------- */

.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 200;
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-sidebar {
  position: fixed;
  top: 0; right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100%;
  background: var(--bg-soft);
  border-left: 1px solid var(--border);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transition: right 0.35s ease;
}
.cart-sidebar.open { right: 0; }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-soft);
}
.cart-header h3 {
  font-size: 13px;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-header button { font-size: 22px; color: var(--text-dim); line-height: 1; }
.cart-header button:hover { color: var(--text); }

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
}

.cart-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-faint);
  gap: 14px;
  padding-top: 60px;
}
.cart-empty svg { color: var(--text-faint); opacity: 0.6; }
.cart-empty p { color: var(--text-dim); font-size: 15px; }
.cart-empty span { font-size: 13px; }

.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}
.cart-item-img {
  width: 64px; height: 64px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 14px; margin-bottom: 4px; }
.cart-item-size { font-size: 12px; color: var(--text-faint); }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.cart-item-qty button {
  width: 22px; height: 22px;
  border: 1px solid var(--border);
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.cart-item-qty span { font-size: 13px; min-width: 14px; text-align: center; }
.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}
.cart-item-price { font-size: 14px; }
.cart-item-remove { color: var(--text-faint); font-size: 18px; }
.cart-item-remove:hover { color: var(--text); }

.cart-footer { padding: 22px 28px 28px; border-top: 1px solid var(--border-soft); }
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  margin-bottom: 18px;
}
.cart-subtotal span:last-child { font-family: var(--serif); font-size: 19px; }

/* ---------------- Responsive ---------------- */

@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail { grid-template-columns: 1fr; }
  .product-detail-img { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .container { padding: 0 22px; }
  .site-header { padding: 20px 22px; }
}
