:root {
  --cream: #f7f2e9;
  --paper: #fffdf8;
  --ink: #22201c;
  --terra: #c96f4a;
  --terra-dk: #a8532f;
  --plum: #6b3f66;
  --sage: #8a9a7b;
  --line: #e6ddcd;
  --gold: #d6a72e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Bricolage Grotesque', sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.app { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
button { font-family: inherit; cursor: pointer; border: none; }
a { cursor: pointer; text-decoration: none; color: inherit; }
input, textarea, select { font-family: inherit; }

/* ---- HEADER ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,253,248,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 18px;
}
.logo { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--terra); color: var(--paper);
  display: grid; place-items: center;
  font-family: 'Fraunces', serif; font-weight: 800; font-size: 20px;
}
.logo-text { font-family: 'Fraunces', serif; font-weight: 600; font-size: 24px; letter-spacing: -0.5px; }
.nav-desktop { display: flex; gap: 22px; margin-left: 8px; }
.nav-desktop a { font-weight: 500; font-size: 15px; padding: 6px 2px; border-bottom: 2px solid transparent; transition: .2s; }
.nav-desktop a:hover { border-color: var(--terra); color: var(--terra); }
.header-search { flex: 1; max-width: 340px; margin-left: auto; display: flex; position: relative; }
.header-search input {
  width: 100%; padding: 10px 40px 10px 16px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); font-size: 14px; outline: none;
}
.header-search input:focus { border-color: var(--terra); }
.search-go { position: absolute; right: 4px; top: 3px; width: 32px; height: 32px; border-radius: 50%; background: var(--terra); color: #fff; font-size: 18px; }
.cart-btn {
  position: relative; background: none; font-size: 22px; padding: 4px 8px;
}
.cart-count {
  position: absolute; top: -4px; right: -2px;
  background: var(--terra); color: #fff; font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px;
}
.hamburger { display: none; background: none; font-size: 22px; }
.nav-mobile { display: flex; flex-direction: column; padding: 10px 20px; border-top: 1px solid var(--line); }
.nav-mobile a { padding: 12px 0; font-weight: 500; border-bottom: 1px solid var(--line); }

/* ---- BUTTONS ---- */
.btn-primary {
  background: var(--terra); color: #fff; padding: 11px 22px;
  border-radius: 999px; font-weight: 600; font-size: 15px; transition: .2s;
}
.btn-primary:hover { background: var(--terra-dk); transform: translateY(-1px); }
.btn-lg { padding: 15px 34px; font-size: 16px; }
.full { width: 100%; }
.btn-outline { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); padding: 11px 22px; border-radius: 999px; font-weight: 600; transition: .2s; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-text { background: none; color: var(--terra); font-weight: 600; font-size: 14px; }
.btn-text:hover { text-decoration: underline; }

/* ---- HERO ---- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #f2e4d2 0%, #efd9c6 45%, #e8c9c0 100%);
  padding: 80px 20px 100px;
}
.hero-glow {
  position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(214,167,46,0.35), transparent 70%);
  top: -120px; right: -80px; filter: blur(20px);
}
.hero-content { max-width: 760px; margin: 0 auto; position: relative; text-align: center; }
.hero-kicker { font-family: 'IBM Plex Mono', monospace; letter-spacing: 3px; text-transform: uppercase; font-size: 12px; color: var(--terra-dk); margin-bottom: 18px; }
.hero-title { font-family: 'Fraunces', serif; font-weight: 300; font-size: clamp(38px, 7vw, 68px); line-height: 1.02; letter-spacing: -1.5px; }
.hero-title em { font-style: italic; font-weight: 600; color: var(--terra); }
.hero-sub { font-size: 18px; color: #5a534a; margin: 22px auto 30px; max-width: 480px; }
.hero-stats { display: flex; justify-content: center; gap: 40px; margin-top: 44px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: 'Fraunces', serif; font-size: 26px; }
.hero-stats span { font-size: 12px; color: #6a6258; text-transform: uppercase; letter-spacing: 1px; }

/* ---- SECTIONS ---- */
.section { max-width: 1240px; margin: 0 auto; padding: 56px 20px; }
.section-title { font-family: 'Fraunces', serif; font-weight: 500; font-size: 30px; letter-spacing: -0.5px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 26px; }
.section .section-title { margin-bottom: 26px; }
.section-head .section-title { margin-bottom: 0; }

/* ---- CATEGORY GRID ---- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  padding: 32px 20px; text-align: center; cursor: pointer; transition: .25s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(168,83,47,0.14); border-color: var(--terra); }
.cat-emoji { font-size: 46px; display: block; margin-bottom: 12px; }
.cat-card h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 20px; }
.cat-count { font-size: 13px; color: #8a8276; }

/* ---- PRODUCT GRID ---- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pcard { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; cursor: pointer; transition: .22s; display: flex; flex-direction: column; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(34,32,28,0.1); }
.pcard-img { position: relative; aspect-ratio: 3/4; display: grid; place-items: center; overflow: hidden; }
.pcard-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .5s ease; z-index: 1;
  background: rgba(255,255,255,0.15);
}
.pcard:hover .pcard-photo { transform: scale(1.06); }
/* emoji sits behind the photo as a graceful fallback */
.pcard-emoji { font-size: 62px; filter: drop-shadow(0 6px 8px rgba(0,0,0,0.15)); z-index: 0; }
.pcard-img.img-fallback .pcard-emoji { z-index: 2; }
.pcard-img .badge { z-index: 3; }
.badge {
  position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700;
  padding: 4px 9px; border-radius: 999px; text-transform: capitalize; backdrop-filter: blur(4px);
}
.badge-trending { background: rgba(255,255,255,0.85); color: var(--terra-dk); }
.badge-new { background: rgba(255,255,255,0.85); color: var(--plum); }
.badge-sale { background: var(--gold); color: #2a2200; left: auto; right: 10px; top: 10px; }
.badge.big { font-size: 14px; padding: 7px 16px; }
.pcard-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-cat { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #9a9184; font-family: 'IBM Plex Mono', monospace; }
.pcard-name { font-family: 'Fraunces', serif; font-weight: 500; font-size: 17px; line-height: 1.15; }
.pcard-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #8a8276; }
.stars { font-size: 13px; letter-spacing: 1px; }
.pcard-swatches { display: flex; gap: 5px; }
.swatch-dot { display: inline-block; border-radius: 50%; border: 1px solid rgba(0,0,0,0.12); }
.pcard-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; }
.price-wrap { display: flex; align-items: baseline; gap: 6px; }
.price { font-weight: 700; font-size: 17px; }
.price-orig { font-size: 13px; color: #b3a998; text-decoration: line-through; }
.btn-quickadd { background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; transition: .2s; }
.btn-quickadd:hover { background: var(--terra); }

/* ---- SHOP ---- */
.shop-wrap { max-width: 1240px; margin: 0 auto; padding: 30px 20px 60px; display: grid; grid-template-columns: 250px 1fr; gap: 30px; }
.filters { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 20px; align-self: start; position: sticky; top: 90px; }
.filter-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.filter-head h3 { font-family: 'Fraunces', serif; font-size: 20px; }
.fgroup { border-top: 1px solid var(--line); padding: 16px 0; }
.fgroup h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; color: #6a6258; }
.checkrow { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.checkrow input { accent-color: var(--terra); width: 16px; height: 16px; }
.range { width: 100%; accent-color: var(--terra); }
.color-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.color-pick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; transition: .15s; }
.color-pick.active { border-color: var(--ink); box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--terra); }
.size-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.size-pick { padding: 6px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 13px; font-weight: 500; transition: .15s; }
.size-pick.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.size-pick:hover { border-color: var(--terra); }

.shop-main { min-width: 0; }
.shop-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.result-count { font-size: 14px; color: #6a6258; }
.muted { color: #b3a998; }
.sort-sel { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 14px; }
.loadmore-wrap { text-align: center; margin-top: 36px; }
.empty { text-align: center; padding: 60px 20px; }
.empty-emoji { font-size: 54px; display: block; margin-bottom: 16px; }
.empty h3 { font-family: 'Fraunces', serif; font-size: 22px; margin-bottom: 6px; }
.empty p { color: #8a8276; margin-bottom: 18px; }

/* ---- PRODUCT DETAIL ---- */
.pdp { max-width: 1240px; margin: 0 auto; padding: 24px 20px 40px; }
.back { margin-bottom: 18px; display: inline-block; }
.pdp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.pdp-img { position: relative; aspect-ratio: 4/5; border-radius: 24px; display: grid; place-items: center; overflow: hidden; }
.pdp-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}
.pdp-emoji { font-size: 130px; filter: drop-shadow(0 10px 14px rgba(0,0,0,0.2)); z-index: 0; }
.pdp-img.img-fallback .pdp-emoji { z-index: 2; }
.pdp-img .badge { z-index: 3; }
.pdp-name { font-family: 'Fraunces', serif; font-weight: 400; font-size: 40px; line-height: 1.05; letter-spacing: -1px; margin: 6px 0 10px; }
.pdp-price { font-size: 28px; font-weight: 700; margin: 16px 0; display: flex; align-items: baseline; gap: 10px; }
.pdp-price .price-orig { font-size: 18px; }
.pdp-desc { color: #5a534a; line-height: 1.6; margin-bottom: 24px; }
.opt-block { margin-bottom: 20px; }
.opt-block label { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: #6a6258; margin-bottom: 10px; }
.qty-row { display: flex; align-items: center; gap: 16px; }
.qty-row label { margin: 0; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button { width: 38px; height: 38px; background: var(--paper); font-size: 18px; }
.stepper button:hover { background: var(--cream); }
.stepper span { min-width: 32px; text-align: center; font-weight: 600; }
.stepper.small button { width: 28px; height: 28px; font-size: 15px; }
.err { color: #c0392b; font-size: 14px; margin-bottom: 12px; }

/* ---- PAGES ---- */
.page { max-width: 900px; margin: 0 auto; padding: 20px 20px 60px; }
.page-hero { text-align: center; padding: 40px 0; }
.page-hero h1 { font-family: 'Fraunces', serif; font-weight: 300; font-size: clamp(34px, 6vw, 54px); letter-spacing: -1px; }
.page-hero p { color: #6a6258; font-size: 18px; margin-top: 10px; }
.about-body p { font-size: 17px; line-height: 1.7; color: #4a453e; margin-bottom: 18px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 34px 0; }
.value-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 26px 20px; text-align: center; }
.value-emoji { font-size: 40px; }
.value-card h3 { font-family: 'Fraunces', serif; font-size: 20px; margin: 10px 0 6px; }
.value-card p { font-size: 14px; color: #8a8276; }

/* ---- CONTACT ---- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.contact-form label { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: #6a6258; margin: 14px 0 6px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-size: 15px; outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--terra); }
.contact-form .btn-primary { margin-top: 20px; }
.sent-box { text-align: center; padding: 40px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.sent-box h3 { font-family: 'Fraunces', serif; font-size: 24px; }
.sent-box p { color: #8a8276; margin-top: 6px; }
.contact-info { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.contact-info h4 { font-size: 14px; margin-bottom: 3px; }
.contact-info p { color: #6a6258; font-size: 15px; }
.socials { display: flex; gap: 10px; margin-top: 6px; }
.social { width: 38px; height: 38px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; font-size: 18px; cursor: pointer; transition: .2s; }
.social:hover { background: var(--terra); color: #fff; }

/* ---- CART DRAWER ---- */
.drawer-overlay { position: fixed; inset: 0; background: rgba(34,32,28,0); z-index: 100; pointer-events: none; transition: background .3s; }
.drawer-overlay.open { background: rgba(34,32,28,0.45); pointer-events: auto; }
.drawer { position: absolute; right: 0; top: 0; height: 100%; width: 420px; max-width: 92vw; background: var(--paper); transform: translateX(100%); transition: transform .3s; display: flex; flex-direction: column; }
.drawer-overlay.open .drawer { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-family: 'Fraunces', serif; font-size: 22px; }
.drawer-close { background: none; font-size: 20px; }
.drawer-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.cart-items { padding: 16px 20px; flex: 1; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ci-img { width: 60px; height: 74px; border-radius: 10px; display: grid; place-items: center; font-size: 30px; flex-shrink: 0; overflow: hidden; }
.ci-photo { width: 100%; height: 100%; object-fit: cover; }
.ci-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ci-info strong { font-family: 'Fraunces', serif; font-weight: 500; font-size: 15px; }
.ci-meta { font-size: 12px; color: #8a8276; }
.ci-right { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.ci-remove { background: none; color: #b0392b; font-size: 12px; }
.ci-remove:hover { text-decoration: underline; }
.summary { padding: 20px; border-top: 1px solid var(--line); background: var(--cream); }
.sum-row { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 8px; color: #5a534a; }
.sum-row.total { font-size: 20px; font-weight: 700; color: var(--ink); padding-top: 10px; border-top: 1px solid var(--line); margin-top: 6px; margin-bottom: 16px; font-family: 'Fraunces', serif; }
.ship-note { font-size: 12px; color: var(--terra-dk); background: rgba(214,167,46,0.14); padding: 6px 10px; border-radius: 8px; margin-bottom: 10px; }
.summary .btn-outline { margin-top: 10px; }

/* ---- FOOTER ---- */
.site-footer { background: var(--ink); color: #e8e2d5; margin-top: 40px; }
.footer-grid { max-width: 1240px; margin: 0 auto; padding: 50px 20px 30px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 30px; }
.footer-logo .logo-mark { background: var(--terra); }
.footer-logo .logo-text { color: #fff; }
.foot-tag { color: #9a9184; font-size: 14px; margin-top: 12px; max-width: 220px; }
.footer-grid h4 { font-size: 14px; margin-bottom: 14px; color: #fff; }
.footer-grid a { display: block; color: #b3a998; font-size: 14px; padding: 4px 0; transition: .2s; }
.footer-grid a:hover { color: var(--terra); }
.news-row { display: flex; gap: 8px; }
.news-row input { flex: 1; padding: 10px 12px; border-radius: 10px; border: none; background: #33302a; color: #fff; font-size: 13px; outline: none; }
.newsletter .btn-primary { padding: 10px 16px; font-size: 14px; }
.footer-bottom { border-top: 1px solid #3a3630; padding: 18px 20px; max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; font-size: 13px; color: #9a9184; }
.footer-bottom .remix { color: var(--terra); font-weight: 600; }
.footer-bottom .remix:hover { text-decoration: underline; }

/* ---- TOAST ---- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500; z-index: 200; box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  animation: toastIn .3s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---- RESPONSIVE ---- */
@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-wrap { grid-template-columns: 1fr; }
  .filters { position: static; }
  .pdp-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-desktop { display: none; }
  .hamburger { display: block; }
  .header-search { max-width: 160px; }
  .header-search input { padding: 9px 34px 9px 12px; font-size: 13px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .pcard-emoji { font-size: 48px; }
}
@media (max-width: 440px) {
  .header-inner { gap: 10px; }
  .logo-text { font-size: 20px; }
  .section-title { font-size: 24px; }
}
</parameter>
</invoke>