/* =========================================================
   WILLOW & STONE — CORE STYLESHEET
   Edit colors/fonts here in the :root block only if you want
   to restyle the whole site. Everything else reads from these
   custom properties, so changing a value here updates the
   entire site consistently.
   ========================================================= */

:root {
  /* ---- Palette (premium, complements a black & white logo) ---- */
  --ivory: #faf7f2;
  --cream: #f3ede4;
  --beige: #e8ddce;
  --sage: #8a9a7e;
  --sage-dark: #5f6b52;
  --olive: #6b7660;
  --gold: #b08d57;
  --charcoal: #2e2a26;
  --brown: #6e5849;
  --white: #ffffff;

  --stock-in: #5f7a5a;
  --stock-limited: #b08d57;
  --stock-out: #a15c4f;

  /* ---- Type ---- */
  --font-display: "Poppins", "Inter", sans-serif;
  --font-body: "Inter", "Nunito", sans-serif;

  /* ---- Spacing scale ---- */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;

  /* ---- Misc ---- */
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(46, 42, 38, 0.08);
  --shadow-hover: 0 16px 40px rgba(46, 42, 38, 0.14);
  --transition: 200ms ease;
  --nav-height: 76px;
}

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

html { scroll-behavior: smooth; }

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

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-sm);
}

.section { padding-block: var(--space-xl); }
.section--tight { padding-block: var(--space-lg); }
.section--cream { background: var(--cream); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: var(--space-xs);
}

.section-heading { margin-bottom: var(--space-md); }
.section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.section-heading p { color: var(--brown); max-width: 60ch; margin-top: 0.5rem; }

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------------------------------------------------------
   SIGNATURE MOTIF — botanical sprig divider
   Used as a recurring visual signature across sections.
   --------------------------------------------------------- */
.sprig {
  display: block;
  width: 64px;
  height: auto;
  color: var(--sage);
  margin: var(--space-md) auto;
  opacity: 0.85;
}
.sprig--left { margin-inline: 0; }

/* ---------------------------------------------------------
   BUTTONS
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--charcoal);
  color: var(--ivory);
}
.btn-primary:hover { background: var(--sage-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--charcoal);
}
.btn-outline:hover { background: var(--charcoal); color: var(--ivory); transform: translateY(-2px); }

.btn-order {
  width: 100%;
  background: var(--sage-dark);
  color: var(--ivory);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.btn-order:hover { background: var(--olive); }
.btn-order:disabled,
.btn-order[disabled] {
  background: var(--beige);
  color: var(--brown);
  cursor: not-allowed;
}

/* ---------------------------------------------------------
   NAVIGATION
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--beige);
  height: var(--nav-height);
}
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.nav-brand img { width: 38px; height: 38px; border-radius: 50%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
  z-index: 110;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--brown);
  position: relative;
  padding: 0.25rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--charcoal); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 0.6rem; }
.nav-cta .btn { padding: 0.6rem 1.2rem; font-size: 0.85rem; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: var(--nav-height) 0 0 0;
    background: var(--ivory);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: var(--space-lg) var(--space-md);
    gap: var(--space-sm);
    transform: translateX(100%);
    transition: transform 280ms ease;
    overflow-y: auto;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
  .nav-cta { display: none; }
}

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */
.hero {
  padding-block: var(--space-xl) var(--space-lg);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.hero-copy .eyebrow { display: flex; align-items: center; gap: 0.5rem; }
.hero-copy h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  margin-bottom: var(--space-sm);
}
.hero-copy p.tagline {
  font-size: 1.1rem;
  color: var(--brown);
  max-width: 46ch;
  margin-bottom: var(--space-md);
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 6 / 7;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(46,42,38,0) 55%, rgba(46,42,38,0.25) 100%);
}

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; aspect-ratio: 4/3; }
}

/* ---------------------------------------------------------
   ABOUT
   --------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}
.about-story p { color: var(--brown); margin-bottom: var(--space-sm); }
.why-list { display: grid; gap: 0.9rem; }
.why-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--beige);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
}
.why-list .check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------
   CATEGORY CARDS
   --------------------------------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-sm);
}
.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.category-card:hover img { transform: scale(1.06); }
.category-card .label {
  position: absolute; inset: auto 0 0 0;
  padding: 1rem;
  background: linear-gradient(0deg, rgba(46,42,38,0.75), transparent);
  color: var(--ivory);
  font-family: var(--font-display);
  font-weight: 500;
}

/* ---------------------------------------------------------
   PRODUCT GRID / CARDS
   --------------------------------------------------------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  background: var(--white);
  border: 1px solid var(--beige);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
}
.toolbar-group { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.search-input, .sort-select, .filter-select {
  border: 1px solid var(--beige);
  background: var(--ivory);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  color: var(--charcoal);
  font-family: var(--font-body);
}
.search-input { min-width: 220px; }
.result-count { font-size: 0.85rem; color: var(--brown); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-md);
}

.product-card {
  background: var(--white);
  border: 1px solid var(--beige);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: fadeUp 420ms ease both;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.product-media {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--cream);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.product-card:hover .product-media img { transform: scale(1.05); }

.badge-row {
  position: absolute; top: 0.6rem; left: 0.6rem;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.badge {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  color: var(--ivory);
}
.badge-new { background: var(--sage-dark); }
.badge-best { background: var(--gold); }
.badge-stock {
  position: absolute; top: 0.6rem; right: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  color: var(--ivory);
}
.badge-stock.in_stock { background: var(--stock-in); }
.badge-stock.limited_stock { background: var(--stock-limited); }
.badge-stock.out_of_stock { background: var(--stock-out); }

.wishlist-btn {
  position: absolute; bottom: 0.6rem; right: 0.6rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(250,247,242,0.9);
  display: flex; align-items: center; justify-content: center;
  color: var(--charcoal);
  transition: transform var(--transition), color var(--transition);
}
.wishlist-btn:hover { transform: scale(1.1); }
.wishlist-btn.is-active { color: var(--stock-out); }

.product-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.product-code { font-size: 0.72rem; color: var(--brown); letter-spacing: 0.04em; }
.product-name { font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.product-desc { font-size: 0.85rem; color: var(--brown); flex: 1; }
.product-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 0.2rem; }
.product-price { font-family: var(--font-display); font-weight: 600; color: var(--charcoal); font-size: 1.05rem; }
.product-qty { font-size: 0.75rem; color: var(--brown); }
.product-actions { display: flex; gap: 0.5rem; margin-top: 0.6rem; }
.share-btn {
  width: 40px; flex-shrink: 0;
  border: 1px solid var(--beige);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--brown);
  transition: color var(--transition), border-color var(--transition);
}
.share-btn:hover { color: var(--sage-dark); border-color: var(--sage-dark); }

.empty-state {
  text-align: center;
  padding: var(--space-xl) var(--space-sm);
  color: var(--brown);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------
   PRODUCT DETAIL / IMAGE ZOOM (lightbox)
   --------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(46,42,38,0.9);
  display: none;
  align-items: center; justify-content: center;
  z-index: 200;
  padding: var(--space-sm);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(90vw, 800px); max-height: 85vh; border-radius: var(--radius-sm); object-fit: contain; }
.lightbox-close {
  position: absolute; top: var(--space-sm); right: var(--space-sm);
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ivory); color: var(--charcoal);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}

/* ---------------------------------------------------------
   TESTIMONIALS
   --------------------------------------------------------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-md);
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--beige);
  border-radius: var(--radius);
  padding: var(--space-md);
}
.stars { color: var(--gold); letter-spacing: 0.1em; margin-bottom: 0.6rem; font-size: 0.9rem; }
.testimonial-card blockquote { color: var(--brown); font-size: 0.95rem; margin-bottom: 0.8rem; }
.testimonial-card cite { font-family: var(--font-display); font-weight: 600; font-style: normal; font-size: 0.9rem; }

/* ---------------------------------------------------------
   CONTACT
   --------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}
.contact-list { display: grid; gap: 0.9rem; }
.contact-list li {
  display: flex; gap: 0.8rem; align-items: flex-start;
  background: var(--white); border: 1px solid var(--beige);
  border-radius: var(--radius-sm); padding: 0.9rem 1rem;
}
.contact-list .icon { color: var(--sage-dark); flex-shrink: 0; margin-top: 2px; }
.contact-list a:hover { color: var(--sage-dark); }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 0.4rem 0; border-bottom: 1px dashed var(--beige); font-size: 0.9rem; }
.hours-table td:last-child { text-align: right; color: var(--brown); }

.contact-form { display: grid; gap: 0.8rem; background: var(--white); border: 1px solid var(--beige); border-radius: var(--radius); padding: var(--space-md); }
.contact-form label { font-size: 0.85rem; font-weight: 500; margin-bottom: 0.3rem; display: block; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid var(--beige); border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem; font-family: var(--font-body); font-size: 0.9rem; background: var(--ivory);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.78rem; color: var(--brown); }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */
.site-footer {
  background: var(--charcoal);
  color: var(--cream);
  padding-block: var(--space-lg) var(--space-md);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(250,247,242,0.15);
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 600; margin-bottom: 0.6rem; }
.footer-brand img { width: 34px; height: 34px; border-radius: 50%; }
.footer-tagline { color: var(--beige); font-size: 0.88rem; max-width: 34ch; }
.footer-heading { font-family: var(--font-display); font-size: 0.9rem; margin-bottom: 0.8rem; color: var(--ivory); }
.footer-links { display: grid; gap: 0.5rem; }
.footer-links a { color: var(--beige); font-size: 0.88rem; }
.footer-links a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 0.7rem; margin-top: 0.8rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(250,247,242,0.3);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}
.footer-social a:hover { background: var(--sage-dark); border-color: var(--sage-dark); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 0.6rem; padding-top: var(--space-md); font-size: 0.8rem; color: var(--beige);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------
   PAGE HEADER (category pages)
   --------------------------------------------------------- */
.page-header {
  padding-block: var(--space-lg) var(--space-md);
  text-align: center;
}
.page-header h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-header p { color: var(--brown); max-width: 55ch; margin: 0.6rem auto 0; }

/* ---------------------------------------------------------
   UTILITIES
   --------------------------------------------------------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--charcoal); color: var(--ivory);
  padding: 0.6rem 1rem; z-index: 300; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }
