:root{
  --bg:#FBF4F1;
  --bg-soft:#F5E8E3;
  --ink:#3A1E28;
  --ink-soft:#8A6E77;
  --berry:#B03A5E;
  --berry-deep:#8E2C4A;
  --rose:#EE95A0;
  --line:rgba(58,30,40,0.14);
  --card:#FFFFFF;
  --green:#2E7D5B;
  --radius:12px;
  --ease:cubic-bezier(.4,0,.2,1);
}
*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family:'Inter',sans-serif; background:var(--bg); color:var(--ink);
  line-height:1.65; -webkit-font-smoothing:antialiased;
}
h1,h2,h3{ font-family:'Fraunces',serif; font-weight:500; line-height:1.12; letter-spacing:-0.01em; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
.container{ max-width:1140px; margin:0 auto; padding:0 24px; }
section{ padding:96px 0; }
@media (max-width:700px){ section{ padding:64px 0; } }
:focus-visible{ outline:2px solid var(--berry); outline-offset:3px; }
::selection{ background:var(--berry); color:#fff; }

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

.eyebrow{
  font-size:0.78rem; font-weight:600; letter-spacing:0.14em; text-transform:uppercase;
  color:var(--berry); margin-bottom:16px; display:block;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-weight:600; font-size:0.95rem; padding:13px 26px; border-radius:999px;
  border:1.5px solid transparent; transition:all 0.22s var(--ease);
}
.btn-berry{ background:var(--berry); color:#fff; }
.btn-berry:hover{ background:var(--berry-deep); transform:translateY(-2px); }
.btn-line{ border-color:var(--line); color:var(--ink); }
.btn-line:hover{ border-color:var(--berry); color:var(--berry); }
.btn-block{ width:100%; }

/* DEMO BANNER */
.demo-banner{
  background:rgba(176,58,94,0.10); border-bottom:1px solid rgba(176,58,94,0.18);
  color:var(--berry); font-size:0.78rem; text-align:center; padding:7px 16px; font-weight:500;
}

/* HEADER */
.header{
  position:sticky; top:0; z-index:100; padding:18px 0;
  background:rgba(251,244,241,0.92); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.header__inner{ display:flex; align-items:center; justify-content:space-between; gap:24px; }
.logo{ font-family:'Fraunces',serif; font-size:1.4rem; font-weight:600; }
.logo span{ color:var(--berry); }
.header__nav{ display:flex; gap:28px; margin-left:auto; }
.header__nav a{ font-size:0.92rem; font-weight:500; color:var(--ink-soft); transition:color 0.2s var(--ease); }
.header__nav a:hover{ color:var(--ink); }
.cart-btn{
  position:relative; width:42px; height:42px; border-radius:50%;
  background:transparent; border:1px solid var(--line); color:var(--ink);
  display:flex; align-items:center; justify-content:center; transition:all 0.2s var(--ease);
}
.cart-btn:hover{ border-color:var(--berry); color:var(--berry); }
.cart-btn svg{ width:19px; height:19px; }
.cart-count{
  position:absolute; top:-5px; right:-5px; min-width:19px; height:19px; padding:0 5px;
  background:var(--berry); color:#fff; font-size:0.7rem; font-weight:700;
  border-radius:999px; display:flex; align-items:center; justify-content:center;
}

/* HERO */
.hero{ padding-top:110px; padding-bottom:100px; position:relative; overflow:hidden; }
.hero::after{
  content:''; position:absolute; top:-200px; right:-160px; width:600px; height:600px; border-radius:50%;
  background:radial-gradient(circle, rgba(238,149,160,0.30) 0%, rgba(238,149,160,0) 65%); pointer-events:none;
}
.hero__inner{ position:relative; max-width:640px; }
.hero h1{ font-size:clamp(2.6rem,5.4vw,4rem); }
.hero h1 em{ font-style:italic; color:var(--berry); }
.hero__sub{ margin-top:22px; font-size:1.1rem; color:var(--ink-soft); max-width:48ch; }
.hero .btn{ margin-top:36px; }
@media (max-width:700px){ .hero{ padding-top:72px; padding-bottom:64px; } }

/* SHOP */
.shop{ background:#fff; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.section-head{
  display:flex; justify-content:space-between; align-items:flex-end; gap:24px;
  margin-bottom:44px; flex-wrap:wrap;
}
.section-head h2{ font-size:clamp(1.8rem,3.2vw,2.4rem); }
.cat-row{ display:flex; gap:8px; flex-wrap:wrap; }
.cat-chip{
  font-size:0.82rem; font-weight:500; background:transparent;
  border:1px solid var(--line); color:var(--ink-soft);
  padding:8px 16px; border-radius:999px; transition:all 0.2s var(--ease);
}
.cat-chip:hover{ border-color:var(--ink-soft); color:var(--ink); }
.cat-chip.active{ background:var(--berry); border-color:var(--berry); color:#fff; font-weight:600; }

.product-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
@media (max-width:1000px){ .product-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:760px){ .product-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:480px){ .product-grid{ grid-template-columns:1fr; } }

.product{
  background:var(--bg); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; display:flex; flex-direction:column;
  transition:transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.product:hover{ transform:translateY(-4px); box-shadow:0 16px 34px rgba(58,30,40,0.12); }
.product__art{ aspect-ratio:1; display:flex; align-items:center; justify-content:center; position:relative; }
.product__art svg{ width:42px; height:42px; opacity:0.92; }
.product__tag{
  position:absolute; top:12px; left:12px; font-size:0.66rem; font-weight:600;
  letter-spacing:0.08em; text-transform:uppercase;
  background:rgba(255,255,255,0.85); color:var(--berry); padding:4px 10px; border-radius:999px;
}
.product__body{ padding:16px 18px 18px; display:flex; flex-direction:column; gap:4px; flex:1; }
.product__body h3{ font-size:1.02rem; }
.product__note{ font-size:0.82rem; color:var(--ink-soft); flex:1; }
.product__foot{ display:flex; justify-content:space-between; align-items:center; margin-top:12px; }
.product__price{ font-family:'Fraunces',serif; font-weight:600; font-size:1.05rem; }
.add-btn{
  font-size:0.82rem; font-weight:600; background:transparent;
  border:1.5px solid var(--line); color:var(--ink);
  padding:8px 16px; border-radius:999px; transition:all 0.2s var(--ease);
}
.add-btn:hover{ border-color:var(--berry); color:var(--berry); }
.add-btn.added{ background:var(--green); border-color:var(--green); color:#fff; }

/* Product art gradients */
.p-1{ background:linear-gradient(135deg,#4A1830 0%,#B03A5E 60%,#EE95A0 100%); }
.p-2{ background:linear-gradient(135deg,#3B2B22 0%,#8A6248 60%,#D9B79A 100%); }
.p-3{ background:linear-gradient(135deg,#26302A 0%,#5A7263 60%,#A9C4B2 100%); }
.p-4{ background:linear-gradient(135deg,#2E2838 0%,#6E5E8A 60%,#BBA9D6 100%); }
.p-5{ background:linear-gradient(135deg,#3A2A1C 0%,#93683C 60%,#DDB684 100%); }
.p-6{ background:linear-gradient(135deg,#31212B 0%,#7A4A62 60%,#C79BB0 100%); }
.p-7{ background:linear-gradient(135deg,#22303B 0%,#4E7186 60%,#9EC0D2 100%); }
.p-8{ background:linear-gradient(135deg,#33301F 0%,#7C7444 60%,#C4BB8B 100%); }

/* STORY */
.story__inner{ display:grid; grid-template-columns:1.1fr 1fr; gap:60px; align-items:center; }
.story__text h2{ font-size:clamp(1.8rem,3.2vw,2.4rem); }
.story__text p{ margin-top:16px; color:var(--ink-soft); }
.story__art{
  aspect-ratio:4/3; border-radius:var(--radius); position:relative;
  background:linear-gradient(135deg,#4A1830 0%,#B03A5E 55%,#EE95A0 100%);
  display:flex; align-items:center; justify-content:center;
}
.story__art svg{ width:84px; height:84px; }
@media (max-width:820px){ .story__inner{ grid-template-columns:1fr; gap:36px; } }

/* FOOTER */
.footer{ padding:40px 0; border-top:1px solid var(--line); }
.footer__inner{ display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }
.footer p{ font-size:0.85rem; color:var(--ink-soft); }
.footer a{ color:var(--berry); }
.footer a:hover{ text-decoration:underline; }

/* PRODUCT DETAIL OVERLAY */
button.product__art{ border:none; padding:0; width:100%; cursor:pointer; }
.pd-backdrop{
  position:fixed; inset:0; z-index:180; background:rgba(58,30,40,0.4);
  backdrop-filter:blur(2px); opacity:0; transition:opacity 0.3s var(--ease);
}
.pd-backdrop.open{ opacity:1; }
.pd-overlay{
  position:fixed; inset:0; z-index:190; display:flex; align-items:flex-start; justify-content:center;
  overflow-y:auto; padding:6vh 16px;
}
.pd-panel{
  width:min(760px,100%); background:var(--bg); border-radius:16px; overflow:hidden;
  box-shadow:0 40px 100px rgba(58,30,40,0.35); animation:pdUp 0.35s var(--ease);
}
@keyframes pdUp{ from{ opacity:0; transform:translateY(24px); } to{ opacity:1; transform:translateY(0); } }
.pd-grid{ display:grid; grid-template-columns:1fr 1.1fr; }
@media (max-width:700px){ .pd-grid{ grid-template-columns:1fr; } }
.pd-art{ aspect-ratio:1; display:flex; align-items:center; justify-content:center; position:relative; }
.pd-art svg{ width:96px; height:96px; }
.pd-close{
  position:absolute; top:14px; right:14px; width:36px; height:36px; border-radius:50%;
  background:rgba(255,255,255,0.85); border:1px solid var(--line); color:var(--ink);
  font-size:1.25rem; line-height:1; display:flex; align-items:center; justify-content:center;
  transition:all 0.2s var(--ease);
}
.pd-close:hover{ color:var(--berry); border-color:var(--berry); }
.pd-body{ padding:30px 30px 34px; display:flex; flex-direction:column; }
.pd-cat{ font-size:0.7rem; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; color:var(--berry); }
.pd-body h2{ font-family:'Fraunces',serif; font-size:1.6rem; margin:6px 0 4px; }
.pd-price{ font-family:'Fraunces',serif; font-size:1.25rem; font-weight:600; }
.pd-desc{ margin-top:14px; color:var(--ink-soft); font-size:0.95rem; }
.pd-care{ display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.pd-care span{
  font-size:0.78rem; color:var(--ink-soft); border:1px solid var(--line);
  border-radius:999px; padding:6px 12px; background:#fff;
}
.pd-body .btn{ margin-top:22px; align-self:flex-start; }
.pd-note{ font-size:0.75rem; color:var(--ink-soft); margin-top:10px; }
.pd-related{ padding:0 30px 30px; }
.pd-related h3{ font-family:'Fraunces',serif; font-size:1.02rem; margin-bottom:12px; }
.pd-related-row{ display:flex; gap:12px; }
.pd-rel{
  flex:1; background:var(--bg); border:1px solid var(--line); border-radius:10px;
  padding:10px 10px 12px; text-align:center; cursor:pointer; transition:all 0.2s var(--ease);
}
.pd-rel:hover{ border-color:var(--berry); transform:translateY(-2px); }
.pd-rel-art{ aspect-ratio:1; border-radius:8px; display:flex; align-items:center; justify-content:center; margin-bottom:8px; }
.pd-rel-art svg{ width:26px; height:26px; }
.pd-rel b{ font-size:0.76rem; font-weight:600; display:block; }
.pd-rel > span:last-child{ font-size:0.72rem; color:var(--berry); font-weight:600; }
@media (max-width:520px){ .pd-related-row{ flex-direction:column; } .pd-rel{ display:flex; align-items:center; gap:12px; text-align:left; } .pd-rel-art{ width:52px; aspect-ratio:1; margin-bottom:0; flex-shrink:0; } }

/* CART DRAWER */
.drawer-backdrop{
  position:fixed; inset:0; z-index:200; background:rgba(58,30,40,0.4);
  backdrop-filter:blur(2px); opacity:0; transition:opacity 0.3s var(--ease);
}
.drawer-backdrop.open{ opacity:1; }
.drawer{
  position:fixed; top:0; right:0; bottom:0; z-index:210; width:min(420px,100vw);
  background:var(--bg); border-left:1px solid var(--line);
  display:flex; flex-direction:column;
  transform:translateX(100%); transition:transform 0.35s var(--ease);
  box-shadow:-16px 0 48px rgba(58,30,40,0.18);
}
.drawer.open{ transform:translateX(0); }
.drawer__head{
  display:flex; justify-content:space-between; align-items:center;
  padding:22px 24px; border-bottom:1px solid var(--line);
}
.drawer__head h2{ font-size:1.3rem; }
.drawer__close{
  width:36px; height:36px; border-radius:50%; background:transparent;
  border:1px solid var(--line); color:var(--ink); font-size:1.3rem; line-height:1;
  display:flex; align-items:center; justify-content:center; transition:all 0.2s var(--ease);
}
.drawer__close:hover{ border-color:var(--berry); color:var(--berry); }
.drawer__body{ flex:1; overflow-y:auto; padding:20px 24px; }
.drawer__foot{ padding:20px 24px; border-top:1px solid var(--line); }

.cart-empty{ text-align:center; color:var(--ink-soft); padding:48px 0; }
.cart-item{
  display:flex; gap:14px; align-items:center; padding:14px 0;
  border-bottom:1px solid var(--line);
}
.cart-item:last-child{ border-bottom:none; }
.cart-item__art{
  width:58px; height:58px; border-radius:10px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
}
.cart-item__art svg{ width:22px; height:22px; }
.cart-item__info{ flex:1; min-width:0; }
.cart-item__info h4{ font-size:0.92rem; font-weight:600; }
.cart-item__info span{ font-size:0.82rem; color:var(--ink-soft); }
.qty-row{ display:flex; align-items:center; gap:8px; }
.qty-btn{
  width:26px; height:26px; border-radius:50%; background:transparent;
  border:1px solid var(--line); color:var(--ink); font-size:0.95rem; line-height:1;
  display:flex; align-items:center; justify-content:center; transition:all 0.2s var(--ease);
}
.qty-btn:hover{ border-color:var(--berry); color:var(--berry); }
.qty-val{ font-size:0.9rem; font-weight:600; min-width:16px; text-align:center; }
.cart-item__price{ font-family:'Fraunces',serif; font-weight:600; font-size:0.95rem; white-space:nowrap; }
.remove-btn{
  background:none; border:none; color:var(--ink-soft); font-size:0.76rem;
  text-decoration:underline; padding:2px 0; transition:color 0.2s var(--ease);
}
.remove-btn:hover{ color:var(--berry); }

.subtotal-row{
  display:flex; justify-content:space-between; align-items:center; margin-bottom:6px;
}
.subtotal-row b{ font-family:'Fraunces',serif; font-size:1.2rem; }
.drawer-note{ font-size:0.76rem; color:var(--ink-soft); text-align:center; margin-top:10px; }

/* ORDER CONFIRMATION (inside drawer) */
.order-done{ text-align:center; padding:40px 0; }
.order-done__icon{
  width:56px; height:56px; border-radius:50%; margin:0 auto 18px;
  background:rgba(46,125,91,0.12); border:1px solid rgba(46,125,91,0.35);
  display:flex; align-items:center; justify-content:center; color:var(--green);
}
.order-done__icon svg{ width:24px; height:24px; }
.order-done h3{ font-size:1.3rem; }
.order-done p{ color:var(--ink-soft); font-size:0.9rem; margin-top:8px; }
.order-ref{
  display:inline-block; margin-top:16px; font-size:0.95rem; letter-spacing:0.06em;
  border:1px dashed var(--line); border-radius:10px; padding:10px 20px; color:var(--berry); font-weight:600;
}
