:root {
  --ink: #1a1714;
  --ink-soft: #4a4038;
  --muted: #948577;
  --line: #e5ddd2;
  --cream: #f7f3ec;
  --paper: #ffffff;
  --accent: #a9663f;
  --accent-dark: #7c4a2c;
  --danger: #b3402a;
  --success: #4a7c4e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Jost", sans-serif;
  font-weight: 300;
  line-height: 1.6;
}

h1, h2, h3, h4, .serif {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  color: var(--accent);
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 1.25rem 2rem;
  position: relative;
}

.logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

nav.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

nav.main-nav a:hover { color: var(--accent); }

.cart-link {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cart-count {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.7rem;
  border-radius: 50%;
  width: 1.3rem;
  height: 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hamburger {
  display: none;
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

@media (max-width: 780px) {
  .hamburger { display: block; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1rem 2rem;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 1rem; }
}

/* Buttons */
.btn {
  display: inline-block;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  padding: 0.85rem 2.2rem;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--ink); color: var(--paper); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.link-danger {
  color: var(--danger);
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0;
}

/* Messages */
.messages { list-style: none; margin: 0; padding: 1rem 2rem 0; }
.messages li {
  padding: 0.75rem 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  border: 1px solid var(--line);
}
.messages .success { border-color: var(--success); color: var(--success); }
.messages .error { border-color: var(--danger); color: var(--danger); }

/* Hero */
.hero {
  background: linear-gradient(135deg, #2c211a, #1a1714);
  background-size: cover;
  background-position: center 30%;
  color: var(--paper);
  text-align: center;
  padding: 7rem 2rem;
}
.hero h1 {
  color: var(--paper);
  font-size: 3.2rem;
  margin: 0.5rem 0 1rem;
}
.hero p {
  color: #cfc4b7;
  max-width: 560px;
  margin: 0 auto 2rem;
}
.hero .btn { border-color: var(--paper); color: var(--paper); }
.hero .btn:hover { background: var(--paper); color: var(--ink); }

@media (max-width: 640px) {
  .hero h1 { font-size: 2.2rem; }
}

/* Section heading */
.section-heading {
  text-align: center;
  margin: 5rem auto 3rem;
}

/* Intro banner (below hero) */
.intro-banner {
  text-align: center;
  max-width: 760px;
  margin: 4rem auto 0;
}
.intro-banner h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.intro-banner p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.8;
}
@media (max-width: 640px) { .intro-banner h2 { font-size: 1.5rem; } }

/* SEO content section */
.seo-content { margin-bottom: 5rem; }
.seo-content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.seo-content-grid h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}
.seo-content-grid p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}
@media (max-width: 780px) { .seo-content-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-bottom: 5rem;
}
.blog-card { display: block; }
.blog-card .image-box {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream);
  margin-bottom: 1.2rem;
}
.blog-card .image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .image-box img { transform: scale(1.05); }
.blog-date {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.blog-card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.blog-card-body p { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 0.75rem; }
.blog-card .read-more {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.blog-body p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}
.blog-body h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
}

/* Category tiles */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 5rem;
}
@media (max-width: 700px) { .category-grid { grid-template-columns: 1fr; } }

.category-tile {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  display: block;
}
.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.category-tile:hover img { transform: scale(1.05); }
.category-tile .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: var(--paper);
}
.category-tile .num {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.category-tile .name {
  font-size: 1.8rem;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2.5rem 1.75rem;
  margin-bottom: 5rem;
}

.product-card { position: relative; }
.product-card .image-box {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--cream);
  overflow: hidden;
}
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover img { transform: scale(1.06); }

.product-card .overlay-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.85);
  text-align: center;
  padding: 0.75rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease;
}
.product-card:hover .overlay-bar { opacity: 1; transform: translateY(0); }

.product-card .badge-oos {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--paper);
  color: var(--danger);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
}

.product-card .title {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.product-card .material {
  color: var(--muted);
  font-size: 0.82rem;
}
.product-card .price {
  font-family: "Cormorant Garamond", serif;
  color: var(--accent);
  font-size: 1.15rem;
  margin-top: 0.2rem;
}

/* Filter tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
  margin: 2rem 0 1rem;
  flex-wrap: wrap;
}
.filter-tabs a {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  padding-bottom: 0.6rem;
  border-bottom: 2px solid transparent;
}
.filter-tabs a:hover, .filter-tabs a.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 3rem 0 5rem;
}
@media (max-width: 780px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail img { width: 100%; aspect-ratio: 4/5; object-fit: cover; background: var(--cream); }
.product-detail .price { font-family: "Cormorant Garamond", serif; color: var(--accent); font-size: 1.6rem; margin: 1rem 0; }
.product-detail .description { color: var(--ink-soft); margin-bottom: 1.5rem; }

.size-label {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 0.6rem;
}

.size-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.5rem; }
.size-chip {
  border: 1px solid var(--line);
  padding: 0.6rem 1rem;
  cursor: pointer;
  text-align: center;
  min-width: 3.2rem;
  font-size: 0.85rem;
}
.size-chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.size-chip.disabled { color: var(--muted); cursor: not-allowed; }
.size-chip .sold-out { display: block; font-size: 0.62rem; color: var(--danger); text-transform: uppercase; margin-top: 0.2rem; }

.qty-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.qty-row input[type=number] {
  width: 4.5rem;
  padding: 0.5rem;
  border: 1px solid var(--line);
  font-family: inherit;
}

/* Cart / checkout */
.narrow { max-width: 800px; margin: 3rem auto 5rem; }
.narrow-checkout { max-width: 1000px; margin: 3rem auto 5rem; }
.narrow-track { max-width: 640px; margin: 3rem auto 5rem; }
.narrow-login { max-width: 420px; margin: 3rem auto 5rem; }

table.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
table.cart-table th, table.cart-table td {
  text-align: left;
  padding: 1rem 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
table.cart-table th { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; color: var(--muted); }
table.cart-table input[type=number] { width: 4rem; padding: 0.4rem; border: 1px solid var(--line); font-family: inherit; }

.cart-total { text-align: right; font-family: "Cormorant Garamond", serif; font-size: 1.4rem; margin-bottom: 2rem; }

.checkout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
}
@media (max-width: 780px) { .checkout-grid { grid-template-columns: 1fr; } }

.form-field { margin-bottom: 1.2rem; }
.form-field label {
  display: block;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 0.95rem;
}

.summary-card, .cod-note {
  background: var(--cream);
  padding: 1.5rem;
}
.summary-card h3 { margin-bottom: 1rem; }
.summary-line { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 0.4rem 0; }
.summary-total { display: flex; justify-content: space-between; font-family: "Cormorant Garamond", serif; font-size: 1.3rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.cod-note { margin-top: 1.5rem; font-size: 0.85rem; color: var(--ink-soft); }

/* Order confirmation / tracking */
.status-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.status-pending { background: var(--cream); color: var(--accent-dark); }
.status-confirmed { background: #e2ecf5; color: #2f5c85; }
.status-shipped { background: #ece2f5; color: #6a3f8f; }
.status-delivered { background: #e4f0e5; color: var(--success); }
.status-cancelled { background: #f5e2df; color: var(--danger); }

.timeline { display: flex; justify-content: space-between; margin: 2rem 0; }
.timeline .stage { flex: 1; text-align: center; position: relative; }
.timeline .stage::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.timeline .stage:first-child::before { display: none; }
.timeline .dot {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--line);
  margin: 0 auto 0.6rem;
  position: relative;
  z-index: 1;
}
.timeline .stage.reached .dot { background: var(--accent); }
.timeline .stage.reached::before { background: var(--accent); }
.timeline .label { text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted); }
.timeline .stage.reached .label { color: var(--ink); }

/* Footer */
footer.site-footer { background: var(--cream); margin-top: 4rem; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 4rem 2rem 2rem;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.12em; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.5rem; color: var(--ink-soft); font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 1.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* WhatsApp floating button */
.whatsapp-fab {
  position: fixed;
  right: 1.75rem;
  bottom: 1.75rem;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  z-index: 100;
  transition: transform 0.2s ease;
  animation: whatsapp-pulse 2.2s ease-out infinite;
}
.whatsapp-fab svg { width: 34px; height: 34px; }
.whatsapp-fab:hover { transform: scale(1.08); }

@keyframes whatsapp-pulse {
  0% { box-shadow: 0 4px 16px rgba(0,0,0,0.25), 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 4px 16px rgba(0,0,0,0.25), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 4px 16px rgba(0,0,0,0.25), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.85rem 1.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.toast-enter { transition: opacity 0.35s ease, transform 0.35s ease; }
.toast-enter-start { opacity: 0; transform: translate(-50%, 12px); }
.toast-enter-end { opacity: 1; transform: translate(-50%, 0); }
.toast-leave { transition: opacity 0.3s ease, transform 0.3s ease; }
.toast-leave-start { opacity: 1; transform: translate(-50%, 0); }
.toast-leave-end { opacity: 0; transform: translate(-50%, 12px); }

/* Misc */
.empty-state { text-align: center; padding: 4rem 0; color: var(--muted); }
.clickable-row { cursor: pointer; }
.clickable-row:hover { background: var(--cream); }
