/*
  VOICE: tender, calm, boutique
  IDEA: a soft tissue-wrapped gift box from a small lingerie atelier
  PICTURE: large banner slides with a fluttering gradient butterfly (titli) until real photos are added
  COLOUR and TYPE: blush #f8e6e9, wine #7a3346, rose #c9506d; Cormorant Garamond + Jost
  LAYOUT: sticky header, banner slider, category tiles, product rails, filterable grid, product page
*/
:root {
  --blush: #f8e6e9; --petal: #fdf6f4; --cream: #fffaf8;
  --wine: #7a3346; --rose: #c9506d; --rose-dk: #a83c58;
  --ink: #3a2a2f; --muted: #86717a; --line: #efdde1; --wa: #25d366;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
}
* { box-sizing: border-box; min-width: 0; }
html { scroll-padding-top: 80px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.6 var(--sans); overflow-x: clip; }
a { color: var(--rose); }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--wine); margin: 0; line-height: 1.1; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.band { max-width: 1280px; margin: 0 auto; padding: clamp(28px, 4vw, 56px) max(4vw, 16px); }
.narrow { max-width: 820px; }
.loading, .empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }
.fine { font-size: .82rem; color: var(--muted); }

/* header */
.announce { background: var(--wine); color: #fbe9ec; text-align: center; font-size: .85rem; padding: .45rem 1rem; }
.topbar { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 1rem; padding: .6rem max(3vw, 12px); background: rgba(255,250,248,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: .4rem; text-decoration: none; color: var(--wine); font: 600 1.8rem/1 var(--serif); }
.logo-mark { width: 30px; height: 24px; color: var(--rose); }
.menu { display: flex; gap: 1.3rem; margin-left: 1.5rem; flex-wrap: wrap; }
.menu a { color: var(--ink); text-decoration: none; font-size: .93rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a.on { color: var(--rose); border-color: var(--rose); }
.hot { color: var(--rose) !important; font-weight: 600; }
.tools { margin-left: auto; display: flex; gap: .2rem; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--wine); cursor: pointer; border-radius: 50%; text-decoration: none; font-size: 1.1rem; }
.icon-btn:hover { background: var(--blush); }
.icon-btn svg { width: 23px; height: 23px; }
.badge { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--rose); color: #fff; font-size: .7rem; font-weight: 600; display: grid; place-items: center; }
.menu-btn { display: none; }
.searchbar { padding: .7rem max(3vw, 12px); background: #fff; border-bottom: 1px solid var(--line); }
.searchbar form { display: flex; gap: .5rem; max-width: 720px; margin: 0 auto; }
.searchbar input { flex: 1; min-height: 46px; padding: 0 1rem; border: 1px solid var(--line); border-radius: 999px; font: 16px var(--sans); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 46px; background: var(--rose); color: #fff; border: 1px solid var(--rose); border-radius: 999px; padding: .65rem 1.5rem; font: 500 1rem var(--sans); text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--rose-dk); }
.btn.ghost { background: transparent; color: var(--wine); border-color: #e2c3ca; }
.btn.ghost:hover { background: #fff; }
.btn.small { min-height: 40px; padding: .4rem 1rem; font-size: .9rem; }
.btn.wa { background: var(--wa); border-color: var(--wa); }
.btn.wa:hover { background: #1da851; }
.chip { display: inline-flex; align-items: center; min-height: 40px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: .3rem 1rem; cursor: pointer; font-size: .92rem; text-decoration: none; }
.chip.on, .chip:hover { background: var(--wine); border-color: var(--wine); color: #fff; }

/* slider */
.slider { position: relative; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); align-items: center; gap: 2rem; padding: clamp(28px,5vw,64px) max(6vw,16px); min-height: 420px; }
.slide-copy p { color: var(--muted); font-size: 1.1rem; max-width: 32em; margin: 1rem 0 1.6rem; }
.slide-copy h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
.slide-art { display: grid; place-items: center; }
.slide-art img { width: 100%; max-height: 440px; object-fit: cover; border-radius: 24px; }
.bfly { width: 100%; max-width: 400px; }
.wing-l, .wing-r { transform-box: view-box; transform-origin: 200px 210px; animation: flap 3.2s ease-in-out infinite; }
@keyframes flap { 50% { transform: scaleX(.86); } }
@media (prefers-reduced-motion: reduce) { .wing-l, .wing-r { animation: none; } }
.dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.dots button { width: 28px; height: 28px; border: 0; background: none; cursor: pointer; padding: 0; display: grid; place-items: center; }
.dots button::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--wine); opacity: .35; }
.dots button:hover::after { opacity: 1; }

/* rows, tiles, cards */
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.row-head a { white-space: nowrap; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 23%); gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .6rem; }
.rail > * { scroll-snap-align: start; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .9rem; }
.tile { position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 1 / 1.05; display: flex; flex-direction: column; justify-content: flex-end; padding: 1rem; text-decoration: none; transition: transform .2s; }
.tile:hover { transform: translateY(-3px); }
.tile svg { position: absolute; top: 10%; right: -8%; width: 68%; color: #fff; opacity: .55; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile img ~ b, .tile img ~ span { position: relative; background: rgba(255,255,255,.85); padding: 0 .4rem; border-radius: 6px; width: fit-content; }
.tile b { position: relative; font: 600 1.35rem/1.1 var(--serif); color: var(--wine); }
.tile span { position: relative; font-size: .82rem; color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; }
.card { position: relative; background: #fff; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--line); transition: box-shadow .2s; }
.card:hover { box-shadow: 0 12px 30px rgba(122,51,70,.12); }
.card-img { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; }
.card-img img, .card-img .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-img .alt { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
.card:hover .card-img .alt { opacity: 1; }
.ph { display: grid; place-items: center; width: 100%; height: 100%; }
.ph svg { width: 40%; color: #fff; opacity: .75; }
.tag { position: absolute; top: .7rem; left: .7rem; background: #fff; color: var(--wine); font-size: .75rem; font-weight: 600; padding: .15rem .6rem; border-radius: 999px; }
.tag.sale { background: var(--rose); color: #fff; }
.tag.out { top: auto; bottom: calc(100% - 4.5rem); left: auto; right: .7rem; background: var(--ink); color: #fff; }
.heart { position: absolute; top: .45rem; right: .45rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); cursor: pointer; display: grid; place-items: center; }
.heart svg { width: 20px; height: 20px; fill: none; stroke: var(--wine); stroke-width: 1.7; }
.heart.on svg { fill: var(--rose); stroke: var(--rose); }
.card-body { padding: .8rem 1rem 1rem; display: flex; flex-direction: column; gap: .25rem; }
.cat { font-size: .78rem; color: var(--muted); margin: 0; }
.card h3 { font-size: 1.25rem; }
.card h3 a { color: inherit; text-decoration: none; }
.price { margin: 0; font-weight: 600; color: var(--wine); white-space: nowrap; }
.price s { color: var(--muted); font-weight: 400; font-size: .88em; margin-left: .3rem; }
.price.big { font-size: 1.5rem; margin: .4rem 0 1rem; }
.save { background: var(--blush); color: var(--rose); font-size: .8rem; padding: .15rem .6rem; border-radius: 999px; vertical-align: middle; }

.fit { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 2rem; align-items: center; background: var(--blush); border-radius: 24px; margin-block: 1rem; }
.fit p { color: var(--muted); }
.fabric-chips { display: flex; flex-wrap: wrap; gap: .5rem; }

/* shop */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: .8rem; }
.crumbs a { color: var(--muted); }
.shop-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.count { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .8rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 1.4rem; }
.f { display: flex; flex-direction: column; gap: .2rem; font-size: .82rem; color: var(--muted); }
.f select { min-height: 42px; min-width: 130px; padding: 0 .6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); font: 16px var(--sans); color: var(--ink); }
.f input[type=range] { width: 180px; accent-color: var(--rose); min-height: 42px; }

/* product page */
.pdp-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.gallery { position: sticky; top: 80px; }
.g-main { aspect-ratio: 4/5; border-radius: 22px; overflow: hidden; background: #fff; }
.g-main img, .g-main .ph { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: .5rem; margin-top: .6rem; overflow-x: auto; }
.thumbs button { flex: 0 0 72px; height: 88px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; }
.thumbs button.on { border-color: var(--rose); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.opt { margin-bottom: 1.1rem; }
.opt-head { display: flex; justify-content: space-between; margin-bottom: .4rem; }
.pills { display: flex; flex-wrap: wrap; gap: .45rem; }
.pill { min-width: 52px; min-height: 44px; padding: 0 .9rem; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; color: var(--ink); }
.pill.on { border-color: var(--wine); background: var(--wine); color: #fff; }
.qty-row { display: flex; align-items: center; gap: 1rem; }
.qty { display: inline-flex; align-items: center; gap: .6rem; }
.qty button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--wine); font-size: 1.1rem; }
.buy { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: .6rem; }
.wish-wide { width: 100%; }
.soldout { background: var(--blush); padding: .8rem 1rem; border-radius: 12px; }
.perks { list-style: none; padding: 0; margin: 1.2rem 0; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-size: .9rem; color: var(--muted); }
.perks li::before { content: "✓ "; color: var(--rose); }
.info details, .faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .85rem 1.1rem; margin-bottom: .6rem; }
summary { cursor: pointer; font-weight: 500; color: var(--wine); }
details p { color: var(--muted); margin: .5rem 0 0; }

/* size guide */
.calc { background: var(--blush); border-radius: 20px; padding: 1.4rem; margin: 1.2rem 0 2rem; }
.calc form { display: grid; grid-template-columns: 1fr 1fr auto; gap: .8rem; align-items: end; margin-top: .8rem; }
.calc label { display: flex; flex-direction: column; gap: .3rem; font-size: .88rem; }
.calc input { min-height: 46px; padding: 0 .8rem; border: 1px solid var(--line); border-radius: 12px; font: 16px var(--sans); }
.result { font-size: 1.15rem; margin: 1rem 0 0; }
.narrow h2 { margin: 1.6rem 0 .6rem; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; font-size: .92rem; }
th, td { padding: .6rem .7rem; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
th { background: var(--petal); color: var(--wine); font-weight: 500; }
td:first-child, th:first-child { text-align: left; }

/* trust + footer */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; padding: 1.4rem max(4vw,16px); background: #fff; border-block: 1px solid var(--line); text-align: center; margin-top: 2rem; }
.trust b { display: block; color: var(--wine); }
.trust span { font-size: .86rem; color: var(--muted); }
footer { background: var(--wine); color: #f6dfe4; padding: 2.5rem max(4vw,16px) 1.5rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; max-width: 1280px; margin: 0 auto 1.5rem; }
footer h4 { color: #fff; font-size: 1.3rem; margin-bottom: .5rem; }
footer a { display: block; color: #f6dfe4; text-decoration: none; padding: .15rem 0; font-size: .93rem; }
footer a:hover { color: #fff; text-decoration: underline; }
.small-logo { color: #fff; margin-bottom: .6rem; font-size: 1.8rem; display: flex; }
.small-logo .logo-mark { color: #f4b6c2; }
footer .fine { color: #e5bfc8; text-align: center; }
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 12; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.wa-float svg { width: 30px; height: 30px; }

/* drawers */
.overlay { position: fixed; inset: 0; background: rgba(58,42,47,.4); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 20; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(430px, 100%); background: var(--cream); z-index: 30; transform: translateX(100%); transition: transform .28s; display: flex; flex-direction: column; padding: 1rem 1.2rem; overflow-y: auto; }
.drawer.left { right: auto; left: 0; transform: translateX(-100%); width: min(340px, 90%); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.drawer-head h3 { font-size: 1.8rem; }
#navList > a, #navList summary { display: block; padding: .7rem .2rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
#navList details a { display: block; padding: .45rem 1rem; color: var(--muted); text-decoration: none; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.line-img { display: block; width: 64px; height: 80px; border-radius: 10px; overflow: hidden; }
.line-img img, .line-img .ph { width: 100%; height: 100%; object-fit: cover; }
.line-info { display: flex; flex-direction: column; font-size: .92rem; gap: .1rem; }
.line-info small { color: var(--muted); }
.line .qty { margin-top: .3rem; }
.line .qty button { width: 30px; height: 30px; }
.coupon { display: flex; gap: .5rem; margin-top: 1rem; }
.coupon input { flex: 1; min-height: 44px; padding: 0 .8rem; border: 1px solid var(--line); border-radius: 12px; font: 16px var(--sans); text-transform: uppercase; }
.cart-sum div { display: flex; justify-content: space-between; padding: .2rem 0; }
.cart-sum .disc { color: var(--rose); }
.cart-sum .tot { font-weight: 600; font-size: 1.05rem; color: var(--wine); border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .6rem; }
.order-form { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; }
.order-form input, .order-form textarea { padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 12px; font: 16px var(--sans); background: #fff; }
.order-form .btn { width: 100%; }
.toast { position: fixed; bottom: 1.2rem; left: 50%; transform: translate(-50%, 180%); background: var(--wine); color: #fff; padding: .6rem 1.3rem; border-radius: 999px; transition: transform .25s; z-index: 40; white-space: nowrap; }
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .menu { display: none; }
  .menu-btn { display: inline-grid; }
  .rail { grid-auto-columns: minmax(190px, 31%); }
}
@media (max-width: 800px) {
  .slide { grid-template-columns: 1fr; text-align: center; min-height: 0; padding-bottom: 3rem; }
  .slide-art { order: -1; }
  .bfly { max-width: 200px; }
  .slide-art img { max-height: 260px; }
  .slide-copy p { margin-inline: auto; }
  .fit, .pdp-grid { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .trust { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .calc form { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .logo { font-size: 1.5rem; }
  .rail { grid-auto-columns: 46%; gap: .7rem; }
  .grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .7rem; }
  .card-body { padding: .6rem .7rem .8rem; }
  .card h3 { font-size: 1.08rem; }
  .tiles { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .buy { grid-template-columns: 1fr; }
  .f { flex: 1 1 45%; }
  .f select, .f input[type=range] { width: 100%; min-width: 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .wa-float { width: 50px; height: 50px; }
}
