/* ==========================================================================
   TOKENS
   ========================================================================== */
:root {
  --cream: #f6f1e6;
  --cream-card: #fffdf9;
  --ink: #241f19;
  --ink-soft: #56504a;
  --gold: #a9782e;
  --gold-deep: #7c5a20;
  --indigo: #1f3a5c;
  --line: #e4dbc8;
  --radius-card: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(36, 31, 25, 0.04), 0 10px 24px -14px rgba(36, 31, 25, 0.18);
  --max-width: 1180px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 720px) {
  .wrap { padding: 0 32px; }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

::selection { background: var(--gold); color: var(--cream-card); }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  min-height: 48px;
  letter-spacing: 0.01em;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover { background: #362e25; }

.btn-gold {
  background: var(--gold);
  color: #2a1d09;
}
.btn-gold:hover { background: #b6853d; }

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--cream); }

.btn-whatsapp {
  background: #25d366;
  color: #073016;
}
.btn-whatsapp:hover { background: #22c25f; }

.btn-block { width: 100%; }

.btn-sm {
  padding: 9px 16px;
  min-height: 38px;
  font-size: 0.85rem;
  border-radius: 999px;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 230, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo span {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--gold-deep);
  letter-spacing: 0.14em;
}

.main-nav {
  display: none;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .menu-toggle { display: none; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--cream-card);
}
.icon-btn:hover { border-color: var(--gold); }

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gold-deep);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--cream-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background: var(--cream);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding: 40px 0 56px;
}
.hero .wrap {
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding-top: 24px;
  }
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  margin-bottom: 14px;
  display: block;
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  max-width: 12ch;
}

.hero p.lead {
  margin-top: 18px;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
  border: 1px solid var(--line);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* Full-bleed background-image hero variant (real shop photo behind hero content) */
.hero-bg {
  position: relative;
  padding: 0;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 16, 12, 0.55) 0%, rgba(20, 16, 12, 0.75) 100%);
  z-index: 1;
}
.hero-bg .wrap {
  position: relative;
  z-index: 2;
  display: block;
  padding: 64px 0;
}
.hero-bg .hero-eyebrow { color: #e8c477; }
.hero-bg h1 { color: #fff; }
.hero-bg p.lead { color: rgba(255, 255, 255, 0.9); }
@media (min-width: 900px) {
  .hero-bg { min-height: 600px; }
  .hero-bg .wrap { max-width: 620px; padding: 96px 0; }
}

/* Full-bleed background-image showcase section (second real shop photo) */
.bg-showcase {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.bg-showcase-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.bg-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 16, 12, 0.4) 0%, rgba(20, 16, 12, 0.8) 100%);
  z-index: 1;
}
.bg-showcase .wrap { position: relative; z-index: 2; }
.bg-showcase-text {
  max-width: 480px;
  padding: 56px 0;
}
.bg-showcase-text h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.3rem); max-width: 16ch; }
.bg-showcase-text p { color: rgba(255, 255, 255, 0.9); margin-top: 14px; font-size: 1.02rem; max-width: 44ch; }
.bg-showcase-text .btn { margin-top: 22px; }
@media (min-width: 900px) {
  .bg-showcase::before {
    background: linear-gradient(90deg, rgba(20, 16, 12, 0.8) 0%, rgba(20, 16, 12, 0.45) 55%, rgba(20, 16, 12, 0.15) 100%);
  }
  .bg-showcase { min-height: 460px; }
}

/* ==========================================================================
   SECTION SHELL
   ========================================================================== */
.section { padding: 56px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--cream-card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head {
  margin-bottom: 30px;
  max-width: 60ch;
}
.section-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}
.section-head p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   CATEGORY FILTER
   ========================================================================== */
.category-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 6px;
  margin-bottom: 28px;
}

.chip {
  flex: 0 0 auto;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--cream-card);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip:hover { border-color: var(--gold); }
.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

/* ==========================================================================
   PRODUCT GRID + CARD
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}
@media (min-width: 1000px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -16px rgba(36, 31, 25, 0.28);
}

.product-thumb {
  aspect-ratio: 1/1;
  overflow: hidden;
  position: relative;
  background: var(--line);
}
.product-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.product-cat-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(36, 31, 25, 0.72);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
}

.product-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-body h3 {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-display);
}

.product-price {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gold-deep);
}

.product-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  padding-top: 6px;
}
.product-actions .btn { flex: 1; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}

/* ==========================================================================
   SPLIT IMAGE SECTION
   ========================================================================== */
.split-section .wrap {
  display: grid;
  gap: 28px;
  align-items: center;
}
@media (min-width: 900px) {
  .split-section .wrap { grid-template-columns: 1fr 1fr; gap: 48px; }
  .split-section.reverse .wrap { direction: rtl; }
  .split-section.reverse .wrap > * { direction: ltr; }
}

.split-media {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.split-media img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }

.split-text h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); max-width: 16ch; }
.split-text p { margin-top: 14px; color: var(--ink-soft); font-size: 1.02rem; max-width: 44ch; }
.split-text .btn { margin-top: 22px; }

/* ==========================================================================
   FEATURE CARDS
   ========================================================================== */
.feature-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
}

.feature-card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px 20px;
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--indigo);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 600;
}
.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.feature-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-block {
  max-width: 62ch;
  margin: 0 auto;
  text-align: center;
}
.about-block h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.about-block p { margin-top: 16px; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.7; }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta-band {
  background: var(--ink);
  color: var(--cream);
  border-radius: 22px;
  padding: 48px 28px;
  text-align: center;
  margin: 0 20px;
}
@media (min-width: 720px) { .cta-band { margin: 0 auto; max-width: 900px; padding: 60px 40px; } }
.cta-band h2 { color: var(--cream); font-size: clamp(1.6rem, 4vw, 2.2rem); }
.cta-band p { color: #d9d2c4; margin-top: 12px; font-size: 1.02rem; }
.cta-band .btn { margin-top: 24px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #201b16;
  color: #cfc7b8;
  padding: 48px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-brand .logo { color: var(--cream); }
.footer-brand p { margin-top: 10px; font-size: 0.9rem; color: #a89e8a; }
.footer-col h4 {
  color: var(--cream);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-weight: 600;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 0.9rem;
  color: #a89e8a;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid #362e26;
  margin-top: 36px;
  padding-top: 20px;
  font-size: 0.8rem;
  color: #7a715f;
  text-align: center;
}

/* ==========================================================================
   PRODUCT DETAIL PAGE
   ========================================================================== */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.breadcrumb a:hover { color: var(--gold-deep); }

.product-detail {
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) {
  .product-detail { grid-template-columns: 1fr 1fr; align-items: start; }
}

.detail-media {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 90px;
}
.detail-media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }

.detail-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-deep);
  background: #f1e6cc;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.detail-info h1 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
}

.detail-desc {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
}

.detail-price {
  margin-top: 22px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font-display);
}
.detail-price small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink-soft);
  display: block;
  margin-top: 2px;
}

.yard-selector {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.yard-selector label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 12px;
}
.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
  overflow: hidden;
  background: var(--cream-card);
}
.stepper button {
  width: 46px; height: 46px;
  border: none;
  background: transparent;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.stepper button:hover { background: var(--line); }
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper .yard-value {
  min-width: 92px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
}
.yard-hint {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.detail-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.detail-actions .btn { flex: 1; min-width: 160px; }

.added-toast {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: #eaf6ee;
  border: 1px solid #bfe4c9;
  color: #1f5c33;
  font-size: 0.9rem;
  display: none;
}
.added-toast.show { display: block; }

/* ==========================================================================
   CART PAGE
   ========================================================================== */
.cart-layout {
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) {
  .cart-layout { grid-template-columns: 1.6fr 1fr; align-items: start; }
}

.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item img {
  width: 84px; height: 84px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.cart-item-name { font-weight: 600; font-family: var(--font-display); font-size: 1.02rem; }
.cart-item-cat { font-size: 0.8rem; color: var(--ink-soft); margin-top: 2px; }
.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 10px;
}
.cart-item-price { font-weight: 700; color: var(--ink); }
.remove-link {
  font-size: 0.82rem;
  color: #a04236;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.remove-link:hover { text-decoration: underline; }

.stepper-sm { transform: scale(0.9); transform-origin: left center; }
.stepper-sm button { width: 36px; height: 36px; font-size: 1.1rem; }
.stepper-sm .yard-value { min-width: 68px; font-size: 0.9rem; }

.summary-card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
  position: sticky;
  top: 90px;
}
.summary-card h3 { font-size: 1.1rem; margin-bottom: 18px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  padding: 8px 0;
  color: var(--ink-soft);
}
.summary-row.total {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 14px;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.1rem;
}

.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
}
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--gold);
  outline: none;
}
.form-field textarea { resize: vertical; min-height: 76px; }

.form-error {
  font-size: 0.8rem;
  color: #a04236;
  margin-top: 4px;
  display: none;
}

.empty-cart {
  text-align: center;
  padding: 70px 20px;
}
.empty-cart p { color: var(--ink-soft); margin-top: 10px; }
.empty-cart .btn { margin-top: 22px; }

/* ==========================================================================
   MISC
   ========================================================================== */
.page-hero {
  padding: 40px 0 20px;
}
.page-hero h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.page-hero p { margin-top: 10px; color: var(--ink-soft); max-width: 50ch; }

.hairline { border: none; border-top: 1px solid var(--line); margin: 0; }
