@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Italiana&display=swap');

:root {
  --cream: #f8f4ed;
  --paper: #fffdf9;
  --ink: #302d29;
  --muted: #756f68;
  --rose: #b87978;
  --rose-dark: #8d5656;
  --sage: #7e8d79;
  --line: #ded7cd;
  --serif: "Italiana", Georgia, serif;
  --sans: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; object-fit: cover; }
button, input, textarea, select { font: inherit; }

.announcement {
  background: var(--ink); color: #fff; text-align: center; padding: .65rem 1rem;
  font-size: .69rem; letter-spacing: .15em; text-transform: uppercase;
}
.site-header {
  position: sticky; top: 0; z-index: 20; background: rgba(255,253,249,.95);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(12px);
}
.nav {
  height: 76px; max-width: 1240px; margin: auto; padding: 0 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand span { font: 1.55rem var(--serif); letter-spacing: .08em; text-transform: uppercase; }
.brand small { margin-top: .42rem; font-size: .51rem; letter-spacing: .42em; text-transform: uppercase; }
.nav-links { display: none; gap: 2rem; font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.45rem; height: 1px; background: var(--rose); transition: .25s; }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: .9rem; }
.icon-btn { border: 0; padding: .35rem; background: none; cursor: pointer; color: var(--ink); }
.icon-btn svg { width: 21px; height: 21px; stroke-width: 1.5; }
.cart-wrap { position: relative; }
.cart-count { position: absolute; top: -4px; right: -7px; background: var(--rose); color: #fff; width: 17px; height: 17px; border-radius: 50%; font-size: .61rem; display: grid; place-items: center; }

.mobile-menu {
  position: fixed; inset: 113px 0 0; background: var(--paper); z-index: 19; padding: 3rem 1.5rem;
  transform: translateX(100%); transition: .35s ease; display: flex; flex-direction: column; gap: 1.6rem;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { font: 2rem var(--serif); }

.hero { min-height: 76vh; position: relative; display: flex; align-items: flex-end; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,22,18,.04), rgba(28,22,18,.55)),
    url("https://images.unsplash.com/photo-1490481651871-ab68de25d43d?auto=format&fit=crop&w=1800&q=88") center 22%/cover;
}
.hero-content { position: relative; z-index: 1; color: #fff; padding: 3rem 1.25rem 4rem; max-width: 680px; }
.eyebrow { display: block; margin-bottom: 1rem; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin-top: 0; }
h1 { font-size: clamp(3.5rem, 10vw, 6.7rem); line-height: .94; letter-spacing: -.02em; margin-bottom: 1.4rem; }
.hero p { max-width: 520px; font-size: .95rem; line-height: 1.7; margin: 0 0 1.8rem; }
.btn {
  display: inline-flex; justify-content: center; align-items: center; min-height: 49px; padding: 0 1.7rem;
  border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer;
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; transition: .25s;
}
.btn:hover { background: var(--rose-dark); border-color: var(--rose-dark); }
.btn-light { border-color: #fff; background: #fff; color: var(--ink); }
.btn-light:hover { color: #fff; }
.btn-outline { background: transparent; color: var(--ink); }

.section { padding: 5rem 1.25rem; }
.container { max-width: 1200px; margin: auto; }
.section-heading { text-align: center; margin-bottom: 2.5rem; }
.section-heading h2 { font-size: clamp(2.5rem, 7vw, 4.3rem); margin-bottom: .8rem; }
.section-heading p { color: var(--muted); max-width: 520px; margin: auto; line-height: 1.7; font-size: .9rem; }

.category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.category-card { position: relative; min-height: 280px; overflow: hidden; color: #fff; }
.category-card:first-child { grid-column: 1 / -1; min-height: 400px; }
.category-card img { height: 100%; position: absolute; transition: .6s; }
.category-card:hover img { transform: scale(1.035); }
.category-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(26,22,19,.62)); }
.category-label { position: absolute; z-index: 2; left: 1.25rem; bottom: 1.25rem; }
.category-label h3 { font-size: 1.7rem; margin: 0 0 .35rem; }
.text-link { font-size: .63rem; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: .22rem; }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem .75rem; }
.product-card { min-width: 0; }
.product-image { position: relative; background: var(--cream); overflow: hidden; aspect-ratio: 4/5; }
.product-image img { height: 100%; transition: .5s; }
.product-card:hover .product-image img { transform: scale(1.025); }
.badge { position: absolute; top: .8rem; left: .8rem; background: #fff; padding: .4rem .55rem; font-size: .56rem; letter-spacing: .14em; text-transform: uppercase; }
.placeholder-badge {
  position: absolute; top: .8rem; left: .8rem; right: .8rem; z-index: 2;
  background: rgba(48,45,41,.92); color: #fff; padding: .55rem .7rem;
  text-align: center; font-size: .52rem; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase;
}
.quick-add {
  position: absolute; left: .6rem; right: .6rem; bottom: .6rem; border: 0; background: rgba(255,253,249,.94);
  min-height: 43px; cursor: pointer; font-size: .63rem; letter-spacing: .13em; text-transform: uppercase;
}
.quick-add:disabled {
  cursor: not-allowed; color: #77716b; background: rgba(238,233,225,.96);
}
.product-info { padding-top: .9rem; }
.product-name { font-family: var(--serif); font-size: 1.1rem; margin-bottom: .35rem; }
.product-price { color: var(--muted); font-size: .77rem; }
.product-status { margin-top: .45rem; color: var(--rose-dark); font-size: .62rem; line-height: 1.45; letter-spacing: .06em; text-transform: uppercase; }
.catalog-loading, .catalog-error { grid-column: 1 / -1; color: var(--muted); text-align: center; padding: 3rem 1rem; }
.catalog-error { color: var(--rose-dark); }
.product-count { margin-top: .65rem; color: var(--muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }

.story { background: var(--cream); display: grid; }
.story-image { min-height: 440px; background: url("https://images.unsplash.com/photo-1469334031218-e382a71b716b?auto=format&fit=crop&w=1200&q=86") center/cover; }
.story-copy { padding: 4rem 1.5rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.story-copy h2 { font-size: clamp(2.8rem, 7vw, 4.7rem); line-height: 1; margin-bottom: 1.4rem; }
.story-copy p { color: var(--muted); max-width: 520px; font-size: .91rem; line-height: 1.8; }

.values { display: grid; gap: 1rem; margin-top: 3rem; }
.value { padding: 2rem; border: 1px solid var(--line); }
.value-number { color: var(--rose); font: 1.8rem var(--serif); }
.value h3 { font-size: 1.35rem; margin: 1.4rem 0 .65rem; }
.value p { color: var(--muted); font-size: .83rem; line-height: 1.65; margin: 0; }

.newsletter { background: var(--sage); color: #fff; text-align: center; padding: 5rem 1.25rem; }
.newsletter h2 { font-size: clamp(2.7rem, 8vw, 4.5rem); margin-bottom: .8rem; }
.newsletter p { max-width: 510px; margin: 0 auto 1.8rem; line-height: 1.7; font-size: .88rem; }
.newsletter-form { max-width: 520px; margin: auto; display: flex; border-bottom: 1px solid rgba(255,255,255,.7); }
.newsletter-form input { flex: 1; min-width: 0; background: transparent; color: #fff; border: 0; padding: 1rem 0; outline: none; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.72); }
.newsletter-form button { background: none; border: 0; color: #fff; cursor: pointer; font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; }

.page-hero { background: var(--cream); padding: 4.5rem 1.25rem 3.7rem; text-align: center; }
.page-hero h1 { font-size: clamp(3.2rem, 9vw, 5.7rem); margin-bottom: .8rem; }
.page-hero p { color: var(--muted); max-width: 540px; margin: auto; line-height: 1.7; }
.shop-tools { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }
.filters { display: flex; gap: .55rem; overflow-x: auto; padding-bottom: .2rem; }
.filter { white-space: nowrap; background: transparent; border: 1px solid var(--line); padding: .7rem 1rem; cursor: pointer; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; }
.filter.active { color: #fff; background: var(--ink); border-color: var(--ink); }
.sort { align-self: flex-start; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: .7rem 2rem .7rem 0; color: var(--muted); font-size: .75rem; }

.about-editorial { display: grid; gap: 2rem; align-items: center; }
.about-editorial img { min-height: 480px; height: 62vh; }
.about-copy h2 { font-size: clamp(2.7rem, 7vw, 4.6rem); line-height: 1.05; }
.about-copy p { color: var(--muted); line-height: 1.85; font-size: .92rem; }
.signature { font: italic 1.5rem var(--serif); color: var(--rose-dark); margin-top: 1.5rem; }

.contact-grid { display: grid; gap: 3rem; }
.contact-details h2, .contact-form h2 { font-size: 2.6rem; }
.contact-details p { color: var(--muted); line-height: 1.8; }
.contact-list { margin-top: 2rem; display: grid; gap: 1.4rem; }
.contact-item small { display: block; color: var(--rose-dark); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .4rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; margin-bottom: .5rem; font-size: .63rem; letter-spacing: .12em; text-transform: uppercase; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line); background: transparent; padding: .95rem; outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--rose); }
.field textarea { min-height: 150px; resize: vertical; }
.form-message { margin-top: 1rem; font-size: .82rem; color: var(--sage); }

footer { background: #292724; color: #fff; padding: 4rem 1.25rem 1.5rem; }
.footer-grid { display: grid; gap: 2.5rem; }
.footer-brand .brand { align-items: flex-start; }
.footer-brand p { color: #bbb6af; font-size: .78rem; line-height: 1.7; max-width: 300px; margin-top: 1.5rem; }
.footer-col h3 { font-family: var(--sans); font-size: .65rem; letter-spacing: .17em; text-transform: uppercase; }
.footer-col a { display: block; color: #bbb6af; font-size: .78rem; margin-top: .8rem; }
.footer-bottom { border-top: 1px solid #45423e; margin-top: 3rem; padding-top: 1.4rem; color: #8f8a84; font-size: .65rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.toast { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; background: var(--ink); color: #fff; padding: 1rem 1.2rem; font-size: .75rem; transform: translateY(130%); transition: .3s; }
.toast.show { transform: translateY(0); }

@media (min-width: 700px) {
  .section { padding: 7rem 2rem; }
  .hero-content { padding: 5rem 3rem; }
  .category-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 1rem; }
  .category-card:first-child { grid-column: auto; min-height: 520px; }
  .category-card { min-height: 520px; }
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem 1rem; }
  .story { grid-template-columns: 1.05fr .95fr; }
  .story-copy { padding: 5rem; }
  .values { grid-template-columns: repeat(3, 1fr); }
  .shop-tools { flex-direction: row; justify-content: space-between; align-items: center; }
  .sort { align-self: center; }
  .about-editorial { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 6rem; }
  .footer-grid { grid-template-columns: 2fr repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .nav { height: 88px; padding: 0 2rem; }
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none; }
  .hero { min-height: calc(100vh - 117px); align-items: center; }
  .hero::before { background: linear-gradient(90deg, rgba(25,20,17,.5), rgba(25,20,17,.05) 65%), url("https://images.unsplash.com/photo-1490481651871-ab68de25d43d?auto=format&fit=crop&w=2000&q=90") center 22%/cover; }
  .hero-content { margin-left: max(2rem, calc((100vw - 1200px)/2)); }
}
