:root {
  --ivory: #fbf6ef;
  --sand: #f3e9dc;
  --blush: #f7e3e8;
  --ruby: #a3164c;
  --ruby-deep: #6e0d33;
  --pink: #e8659a;
  --gold: #b08a3e;
  --gold-soft: #d9c08a;
  --ink: #2a1420;
  --muted: #7a6470;
  --line: #e7d8cb;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: min(1200px, 100% - 32px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--ivory); color: var(--ink); font: 400 16px/1.6 var(--sans); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.wrap { width: var(--wrap); margin-inline: auto; }
.art { width: 100%; height: 100%; overflow: hidden; background: radial-gradient(circle at 50% 38%, #fffaf6, #f3dfd8); }
.art img { width: 100%; height: 100%; object-fit: contain; padding: 9%; transform: scale(var(--zoom, 1)); filter: drop-shadow(0 14px 14px rgba(60, 10, 30, 0.28)); }
.arch .art { background: transparent; }

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }
.eyebrow { font: 500 12px/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }

/* announcement + header */
.announce { background: var(--ruby-deep); color: #f6dbe5; font-size: 12.5px; letter-spacing: 0.08em; text-align: center; padding: 8px 16px; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251, 246, 239, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-flower { width: 56px; height: auto; }
.brand-text { width: 200px; height: auto; }
.brand.stacked { flex-direction: column; gap: 14px; width: max-content; }
.brand.stacked .brand-flower { width: 140px; }
.brand.stacked .brand-text { width: 220px; }
.nav { display: flex; gap: 30px; font-size: 14px; letter-spacing: 0.06em; }
.nav a { position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ruby); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; gap: 6px; align-items: center; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; position: relative; transition: background 0.25s; }
.icon-btn:hover { background: var(--blush); }
.icon-btn svg { width: 21px; height: 21px; }
.bag-count { position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--ruby); color: #fff; font-size: 10.5px; display: grid; place-items: center; padding: 0 4px; }
.bag-count:empty { display: none; }
.menu-btn { display: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; border-radius: 999px; transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s; }
.btn-ruby { background: var(--ruby); color: #fff; box-shadow: 0 10px 24px -12px rgba(163, 22, 76, 0.7); }
.btn-ruby:hover { background: var(--ruby-deep); transform: translateY(-2px); }
.btn-line { border: 1px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--ivory); }
.btn:focus-visible, .icon-btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* temple border divider */
.temple-border { height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18'%3E%3Cpath d='M0 17h36M0 13h4l4-8 4 8h12l4-8 4 8h4' fill='none' stroke='%23b08a3e' stroke-width='1'/%3E%3Ccircle cx='18' cy='9' r='2' fill='%23a3164c'/%3E%3C/svg%3E") repeat-x center; opacity: 0.8; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 80px; background: radial-gradient(120% 80% at 85% 20%, var(--blush), transparent 60%), var(--ivory); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 48px; }
.hero h1 { font-size: clamp(46px, 6.4vw, 92px); margin: 18px 0 22px; }
.hero h1 em { color: var(--ruby); font-style: italic; }
.hero p { max-width: 460px; color: var(--muted); font-size: 17px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 36px; margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); max-width: 480px; }
.hero-meta b { display: block; font: 500 28px/1 var(--serif); color: var(--ruby); }
.hero-meta span { font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em; }
.hero-art { position: relative; justify-self: center; width: min(470px, 100%); }
.arch { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 18px 18px; overflow: hidden; background: linear-gradient(170deg, #b8204f, var(--ruby-deep)); box-shadow: 0 40px 70px -30px rgba(110, 13, 51, 0.55); }
.arch::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(217, 192, 138, 0.6); border-radius: 999px 999px 10px 10px; z-index: 2; pointer-events: none; }
.arch .art { position: absolute; inset: 0; }
.hero-lotus { position: absolute; width: 150px; right: -36px; top: -30px; opacity: 0.95; animation: spin 60s linear infinite; }
.hero-badge { position: absolute; left: -28px; bottom: 54px; background: var(--ivory); padding: 14px 18px; border-radius: 14px; box-shadow: 0 18px 40px -20px rgba(42, 20, 32, 0.45); font-size: 13px; z-index: 3; }
.hero-badge b { font: 500 20px/1.1 var(--serif); display: block; color: var(--ruby-deep); }
@keyframes spin { to { transform: rotate(360deg); } }

/* sections */
.section { padding: 96px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(34px, 4.2vw, 56px); margin-top: 12px; }
.link-arrow { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 4px; white-space: nowrap; }
.link-arrow:hover { color: var(--ruby); }

/* categories */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cat-card { text-align: center; }
.cat-card .arch { aspect-ratio: 3 / 4; transition: transform 0.6s var(--ease); }
.cat-card:hover .arch { transform: translateY(-8px); }
.cat-card h3 { font-size: 27px; margin-top: 18px; }
.cat-card p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.cat-card:nth-child(even) { margin-top: 48px; }

/* chips */
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; background: #fff; transition: all 0.25s; }
.chip:hover, .chip.active { border-color: var(--ruby); color: var(--ruby); background: var(--blush); }
.sub-strip { background: var(--sand); padding: 34px 0; }
.sub-strip .wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.sub-strip .serif { font-size: 24px; font-style: italic; }

/* product cards */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 22px; }
.card { position: relative; }
.card-media { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--sand); }
.card-media .art { position: absolute; inset: 0; transition: transform 0.8s var(--ease); }
.card:hover .card-media .art { transform: scale(1.06); }
.card-tag { position: absolute; top: 12px; left: 12px; background: var(--ivory); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; z-index: 2; }
.quick-add { position: absolute; left: 12px; right: 12px; bottom: 12px; background: var(--ink); color: var(--ivory); padding: 12px; border-radius: 999px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; transform: translateY(140%); transition: transform 0.45s var(--ease), background 0.3s; z-index: 2; }
.card:hover .quick-add, .quick-add:focus-visible { transform: none; }
.quick-add:hover { background: var(--ruby); }
.card-body { padding-top: 14px; }
.card-sub { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.card-title { font: 500 21px/1.2 var(--serif); margin: 4px 0 6px; }
.price { display: flex; gap: 10px; align-items: baseline; font-size: 15px; }
.price b { font-weight: 500; color: var(--ruby-deep); }
.price s { color: var(--muted); font-size: 13px; }
.price .off { font-size: 12px; color: #2f7a4d; }

/* promise */
.promise { background: var(--ruby-deep); color: #f6e6ec; }
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.promise-item { padding: 44px 28px; border-left: 1px solid rgba(217, 192, 138, 0.25); }
.promise-item:first-child { border-left: 0; }
.promise-item svg { width: 34px; height: 34px; color: var(--gold-soft); margin-bottom: 18px; }
.promise-item h3 { font-size: 23px; color: #fff; margin-bottom: 6px; }
.promise-item p { font-size: 14px; opacity: 0.78; }

/* story */
.story-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: center; }
.story-art { position: relative; }
.story-art .arch { aspect-ratio: 5 / 6; }
.story-art .small { position: absolute; width: 46%; right: -24px; bottom: -40px; aspect-ratio: 3 / 4; border: 8px solid var(--ivory); }
.story h2 { font-size: clamp(34px, 4vw, 54px); margin: 14px 0 22px; }
.story p { color: var(--muted); margin-bottom: 16px; max-width: 520px; }
.story blockquote { font: italic 500 26px/1.3 var(--serif); color: var(--ruby); border-left: 2px solid var(--gold); padding-left: 20px; margin: 28px 0; }

/* insta */
.insta { text-align: center; background: linear-gradient(var(--blush), var(--ivory)); }
.insta h2 { font-size: clamp(32px, 4vw, 50px); margin: 12px 0 14px; }
.insta p { color: var(--muted); margin-bottom: 28px; }
.insta-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 36px; }
.insta-row .tile { aspect-ratio: 1; border-radius: 12px; overflow: hidden; position: relative; }

/* footer */
.site-footer { background: var(--ink); color: #d9c9d0; padding: 72px 0 28px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { font: 500 12px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 18px; }
.site-footer li { list-style: none; margin-bottom: 10px; }
.site-footer a:hover { color: #fff; }
.foot-note { margin-top: 18px; max-width: 290px; opacity: 0.75; }
.foot-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; opacity: 0.7; }

/* shop page */
.page-hero { padding: 56px 0 36px; text-align: center; background: var(--sand); }
.page-hero h1 { font-size: clamp(42px, 5.5vw, 72px); margin-top: 12px; }
.page-hero p { color: var(--muted); margin-top: 10px; }
.crumbs { font-size: 12.5px; color: var(--muted); letter-spacing: 0.06em; }
.crumbs a:hover { color: var(--ruby); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 28px 0; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.toolbar select { font: inherit; font-size: 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); }
.count { font-size: 13px; color: var(--muted); }

/* product page */
.pdp { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; padding: 40px 0 90px; }
.pdp-gallery { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: start; }
.thumbs { display: grid; gap: 12px; }
.thumbs button { aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; position: relative; border: 1px solid transparent; }
.thumbs button.active { border-color: var(--ruby); }
.pdp-main { aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; position: relative; }
.pdp-info { position: sticky; top: 110px; align-self: start; }
.pdp-info h1 { font-size: clamp(36px, 4vw, 52px); margin: 10px 0 14px; }
.pdp-info .price { font-size: 22px; margin-bottom: 6px; }
.tax { font-size: 12.5px; color: var(--muted); margin-bottom: 26px; }
.pdp-desc { color: var(--muted); margin-bottom: 28px; }
.qty-row { display: flex; gap: 12px; margin-bottom: 16px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 44px; height: 50px; font-size: 18px; }
.qty span { min-width: 26px; text-align: center; }
.qty-row .btn { flex: 1; justify-content: center; }
.details { border-top: 1px solid var(--line); margin-top: 30px; }
.details details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.details summary { cursor: pointer; font: 500 20px/1.2 var(--serif); list-style: none; display: flex; justify-content: space-between; }
.details summary::after { content: "+"; font-family: var(--sans); color: var(--gold); }
.details details[open] summary::after { content: "–"; }
.details details p, .details details li { font-size: 14.5px; color: var(--muted); margin-top: 12px; }
.details ul { padding-left: 18px; }
.trust-row { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 18px; }
.trust-row span::before { content: "◆ "; color: var(--gold); font-size: 9px; }

/* policy */
.policy { max-width: 760px; margin: 0 auto; padding: 64px 0 96px; }
.policy h2 { font-size: 40px; margin: 52px 0 16px; }
.policy h2:first-child { margin-top: 0; }
.policy h3 { font-size: 24px; margin: 28px 0 10px; color: var(--ruby-deep); }
.policy p, .policy li { color: #4d3a44; margin-bottom: 12px; }
.policy ul { padding-left: 22px; }
.policy .note { background: var(--blush); border-left: 3px solid var(--ruby); padding: 16px 20px; border-radius: 0 12px 12px 0; }

/* cart drawer */
.drawer-bg { position: fixed; inset: 0; background: rgba(42, 20, 32, 0.4); opacity: 0; pointer-events: none; transition: opacity 0.35s; z-index: 60; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--ivory); z-index: 61; transform: translateX(100%); transition: transform 0.5s var(--ease); display: flex; flex-direction: column; }
body.cart-open .drawer-bg { opacity: 1; pointer-events: auto; }
body.cart-open .drawer { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 28px; }
.drawer-items { flex: 1; overflow: auto; padding: 8px 24px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line .thumb { aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; position: relative; }
.line h4 { font: 500 18px/1.2 var(--serif); }
.line small { color: var(--muted); }
.line .rm { font-size: 12px; color: var(--muted); text-decoration: underline; }
.empty { text-align: center; padding: 60px 0; color: var(--muted); }
.drawer-foot { padding: 22px 24px; border-top: 1px solid var(--line); }
.drawer-foot .row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.drawer-foot .btn { width: 100%; justify-content: center; margin-top: 14px; }
.drawer-foot small { display: block; color: var(--muted); font-size: 12px; text-align: center; margin-top: 10px; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 14px; z-index: 70; transition: transform 0.45s var(--ease); }
.toast.show { transform: translate(-50%, 0); }

/* mobile nav */
.mobile-nav { display: none; }

@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .mobile-nav { display: block; max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); border-top: 1px solid transparent; }
  body.menu-open .mobile-nav { max-height: 320px; border-color: var(--line); }
  .mobile-nav a { display: block; padding: 14px 16px; font: 500 22px/1 var(--serif); border-bottom: 1px solid var(--line); }
  .hero-grid, .story-grid, .pdp { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .hero-art { width: min(380px, 88%); margin-top: 10px; }
  .cat-grid, .grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card:nth-child(even) { margin-top: 0; }
  .promise-grid { grid-template-columns: repeat(2, 1fr); }
  .promise-item:nth-child(3) { border-left: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .insta-row { grid-template-columns: repeat(3, 1fr); }
  .story-art { width: 86%; }
  .pdp-info { position: static; }
  .section { padding: 72px 0; }
}

@media (max-width: 560px) {
  .header-row { height: 64px; }
  .site-header .brand { gap: 8px; }
  .site-header .brand-flower { width: 40px; }
  .site-header .brand-text { width: 142px; }
  .grid { gap: 26px 12px; }
  .card-title { font-size: 17px; }
  .price { font-size: 13.5px; flex-wrap: wrap; gap: 6px; }
  .quick-add { transform: none; padding: 9px; font-size: 10.5px; }
  .promise-grid, .foot-grid { grid-template-columns: 1fr; }
  .promise-item { border-left: 0; border-top: 1px solid rgba(217, 192, 138, 0.25); padding: 30px 8px; }
  .section-head { flex-direction: column; align-items: start; }
  .hero-badge { left: -8px; }
  .hero-lotus { width: 100px; right: -14px; }
  .hero-badge { bottom: -30px; }
  .hero-meta { gap: 16px; justify-content: space-between; }
  .hero-meta b { font-size: 20px; white-space: nowrap; }
  .hero-meta span { font-size: 11px; }
  .header-row { gap: 8px; }
  .header-actions { gap: 0; }
  .page-hero { padding: 32px 0 24px; }
  .pdp-gallery { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(4, 1fr); order: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* touch + small phones */
@media (hover: none) { .quick-add { transform: none; } .card:hover .card-media .art { transform: none; } }
body.cart-open { overflow: hidden; }
.drawer-foot { padding-bottom: max(22px, env(safe-area-inset-bottom)); }

@media (max-width: 960px) {
  .link-arrow { padding-block: 12px 6px; }
  .crumbs a { display: inline-block; padding-block: 11px; }
  .site-footer li { margin-bottom: 0; }
  .site-footer li a { display: inline-block; padding-block: 9px; overflow-wrap: anywhere; }
  .policy li a, .policy p a { display: inline-block; padding-block: 8px; }
  .details details { padding: 0; }
  .details summary { padding: 18px 0; }
  .details details > p, .details details > ul { margin: 0 0 18px; }
  .details details p { margin-top: 0; }
  .toolbar select { font-size: 16px; min-height: 44px; }
  .chip { min-height: 42px; display: inline-flex; align-items: center; }
  .line .rm { padding: 10px 4px; }
}

@media (max-width: 560px) {
  .card-media .art img { padding: 7% 7% 62px; }
  .quick-add { min-height: 42px; left: 8px; right: 8px; bottom: 8px; font-size: 12px; letter-spacing: 0.08em; }
  .card-sub, .card-tag, .hero-meta span { font-size: 12px; }
  .card-sub { letter-spacing: 0.08em; }
  .bag-count { font-size: 12px; min-width: 18px; height: 18px; }
  .btn { justify-content: center; }
  .hero-cta .btn { flex: 1 1 100%; }
}

@media (max-width: 380px) {
  .site-header .brand { gap: 6px; }
  .site-header .brand-flower { width: 32px; }
  .site-header .brand-text { width: 118px; }
  .hero h1 { font-size: 40px; }
  .hero-meta { gap: 10px; }
  .hero-meta b { font-size: 18px; }
  .grid { gap: 22px 10px; }
}
