/* ---- Reset & base ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #221f1c;
  --paper: #faf6f0;
  --paper-alt: #f1ebe1;
  --accent: #b5502f;
  --accent-dark: #8f3d22;
  --line: #e3dace;
  --muted: #756c60;
  --radius: 4px;
  --max: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2ede4;
    --paper: #17140f;
    --paper-alt: #1f1b14;
    --accent: #e08a5f;
    --accent-dark: #f0a578;
    --line: #332c22;
    --muted: #a89c8b;
  }
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

em { font-style: italic; color: var(--accent); }

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

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

img, .ph { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: scale(0.97); }

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

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

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: 'Yellowtail', cursive;
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  -webkit-text-stroke: 1.4px currentColor;
  text-stroke: 1.4px currentColor;
}

.nav {
  display: flex;
  gap: 36px;
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--ink); }

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

.icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border: none;
  background: none;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s ease;
}
.icon-btn:hover { background: var(--paper-alt); }

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.cart-count.bump { transform: scale(1.35); }

/* ---- Hero ---- */
.hero {
  padding: 110px 0 90px;
  background: linear-gradient(180deg, var(--paper-alt), var(--paper));
  text-align: center;
}
.hero-inner { max-width: 720px; }

.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
}

/* ---- Strip ---- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.strip-inner {
  display: flex;
  justify-content: space-between;
  padding: 26px 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.strip-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 180px;
  text-align: center;
}
.strip-item strong { font-size: 14px; }
.strip-item span { font-size: 13px; color: var(--muted); }

/* ---- Shop ---- */
.shop { padding: 100px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 44px;
}

.section-head h2 { font-size: 32px; }

.filters { display: flex; gap: 8px; }
.filter {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
}

.product { display: flex; flex-direction: column; }
.product.hidden { display: none; }

.product-media {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--paper-alt);
}

.ph { background-size: cover; background-position: center; }
.ph-1 { background: linear-gradient(135deg, #6f8fa8, #2c4457); }
.ph-2 { background: linear-gradient(135deg, #e0a05a, #b5502f); }
.ph-3 { background: linear-gradient(135deg, #3f4a3a, #1c2419); }
.ph-4 { background: linear-gradient(135deg, #d8c4a0, #a8825a); }
.ph-5 { background: linear-gradient(135deg, #8a6f8f, #4a3652); }
.ph-6 { background: linear-gradient(135deg, #c4b190, #8f7a52); }
.ph-about { background: linear-gradient(135deg, #b5502f, #221f1c); }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
}

.quick-add {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 11px;
  border: none;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.15s ease;
}
.product-media:hover .quick-add,
.quick-add:focus {
  opacity: 1;
  transform: translateY(0);
}
.quick-add:hover { background: var(--accent-dark); }

@media (hover: none) {
  .quick-add { opacity: 1; transform: none; position: static; margin-top: 10px; }
}

.product-info h3 { font-size: 17px; margin-bottom: 4px; }
.product-meta { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.price { font-size: 15px; font-weight: 600; }

/* ---- About ---- */
.about { padding: 90px 0; background: var(--paper-alt); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-media { aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden; }
.about-copy h2 { font-size: 30px; margin: 8px 0 18px; }
.about-copy p { color: var(--muted); margin-bottom: 26px; max-width: 460px; }

/* ---- Newsletter ---- */
.newsletter { padding: 100px 0; text-align: center; }
.newsletter-inner { max-width: 480px; margin: 0 auto; }
.newsletter h2 { font-size: 28px; margin-bottom: 10px; }
.newsletter p { color: var(--muted); margin-bottom: 28px; }

.newsletter-form {
  display: flex;
  gap: 10px;
}
.newsletter-form input {
  flex: 1;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
}
.newsletter-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.form-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--accent);
  min-height: 18px;
}

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); padding-top: 56px; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-tag { color: var(--muted); font-size: 13px; margin-top: 10px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 22px 32px;
  font-size: 12px;
  color: var(--muted);
}

/* ---- Cart toast ---- */
.cart-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--paper);
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
}
.cart-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .nav { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 60px; }
  .newsletter-form { flex-direction: column; }
  .strip-inner { justify-content: flex-start; }
}
