/* Mini Maison storefront
   Layout: classic boutique (announcement bar, centred logo, full-width banner, category grid,
   product grid, product pages, FAQ). Palette and type come from the Mini Maison logo. */
:root {
  --paper: #ffffff;
  --cream: #f7f0e8;
  --oat: #efe5d8;
  --ink: #5e4330;
  --ink-soft: #8c735f;
  --cocoa: #7e5d3c;
  --line: #ebe1d6;
  --blush: #efd3c9;
  --blush-deep: #e3bcae;
  --caramel: #c19b74;
  --leaf: #6f8c68;
  --berry: #b4625f;
  --wa: #1f9d55;
  --display: "Gilda Display", "Didot", "Bodoni MT", Georgia, serif;
  --body: "Jost", "Century Gothic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--body); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0; color: var(--cocoa); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.muted { color: var(--ink-soft); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.loading { padding: 80px 0; color: var(--ink-soft); }

/* ---------- Announcement + header ---------- */
.announce { background: var(--blush); color: var(--ink); text-align: center; font-size: 14px; letter-spacing: .02em; padding: 9px 16px; }
.header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; background: none; border: 0; padding: 0; color: var(--ink); position: relative; }
.icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover svg { transform: scale(1.06); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; justify-self: center; }
.brand-logo { width: 52px; height: 52px; border-radius: 50%; }
.brand-name { font: 400 26px/1 var(--display); color: var(--cocoa); }
.header-actions { justify-self: end; display: flex; gap: 2px; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; padding: 0 5px; }
.search-bar { border-top: 1px solid var(--line); background: var(--paper); }
.search-inner { display: flex; align-items: center; gap: 8px; padding: 12px 0; }
.search-inner input { flex: 1; border: 1px solid var(--ink-soft); border-radius: var(--r); padding: 11px 14px; font-size: 16px; background: var(--paper); }
.search-inner input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--r); padding: 14px 28px; font-weight: 500; font-size: 15px; letter-spacing: .03em; text-decoration: none; border: 1px solid transparent; text-align: center; transition: background .15s, color .15s, box-shadow .15s; }
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: #4a3424; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #188547; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* ---------- Home: banner ---------- */
.banner { background: var(--cream); }
.banner-inner { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 40px; padding: 44px 0 0; }
.banner-art { align-self: end; }
.banner-art img { width: 100%; height: auto; }
.banner-copy { padding-bottom: 44px; }
.banner-copy h1 { font-size: clamp(36px, 4.6vw, 58px); max-width: 14ch; }
.banner-copy p { margin: 16px 0 28px; font-size: 18px; color: var(--ink-soft); max-width: 38ch; }

/* Trust band */
.trust { background: var(--oat); }
.trust-list { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.trust-list li { padding: 18px 12px; font-size: 15px; }
.trust-list li + li { border-left: 1px solid rgba(94,67,48,.15); }
.trust-list strong { display: block; font-weight: 600; }

/* Sections */
.section { padding: 56px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 38px); }
.section-head a { font-size: 15px; text-underline-offset: 3px; }

/* Explore tiles */
.explore { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tile { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); text-decoration: none; border-radius: var(--r); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tile:hover img { transform: scale(1.03); }
.tile-label { position: absolute; left: 16px; bottom: 16px; background: var(--paper); color: var(--ink); padding: 10px 18px; border-radius: var(--r); font-weight: 500; }

/* Category grid */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 16px; }
.cat-card { display: block; text-decoration: none; }
.cat-img { aspect-ratio: 1; background: var(--cream); overflow: hidden; border-radius: var(--r); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-card:hover .cat-img img { transform: scale(1.03); }
.cat-name { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 16px; }
.cat-name svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .2s; }
.cat-card:hover .cat-name svg { transform: translateX(3px); }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 16px; }
.card { display: block; text-decoration: none; color: var(--ink); }
.card-img { position: relative; aspect-ratio: 1; background: var(--cream); overflow: hidden; border-radius: var(--r); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.03); }
.badge { position: absolute; left: 10px; bottom: 10px; background: var(--ink); color: #fff; font-size: 12px; padding: 4px 12px; border-radius: 999px; }
.badge-sale { background: var(--berry); }
.card-name { display: block; margin-top: 10px; font-size: 15px; line-height: 1.35; }
.card:hover .card-name { text-decoration: underline; text-underline-offset: 3px; }
.card-price { display: block; margin-top: 4px; font-size: 16px; }
.card-price s { color: var(--ink-soft); margin-left: 6px; font-size: 14px; }
.empty { grid-column: 1 / -1; padding: 40px 0; color: var(--ink-soft); }

/* Age strip */
.ages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.age-card { display: block; text-decoration: none; text-align: center; background: var(--cream); border-radius: var(--r); padding: 22px 8px; border: 1px solid transparent; }
.age-card:hover { border-color: var(--caramel); }
.age-card strong { display: block; font: 400 22px/1.2 var(--display); color: var(--cocoa); }
.age-card span { font-size: 14px; color: var(--ink-soft); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 2px; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 9px; height: 9px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); transition: transform .2s; flex: none; margin-right: 4px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 2px 20px; color: var(--ink-soft); max-width: 70ch; }

/* ---------- Collection page ---------- */
.page-head { padding: 40px 0 20px; }
.page-head h1 { font-size: clamp(32px, 4vw, 46px); }
.page-head p { color: var(--ink-soft); margin-top: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; align-items: center; }
.filter-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-label { font-size: 14px; color: var(--ink-soft); margin-right: 2px; }
.pill { border: 1px solid var(--line); background: var(--paper); padding: 6px 14px; border-radius: 999px; font-size: 14px; text-decoration: none; }
.pill:hover { border-color: var(--ink-soft); }
.pill[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.result-count { font-size: 14px; color: var(--ink-soft); margin-left: auto; }

/* ---------- Product page ---------- */
.crumbs { padding: 20px 0 0; font-size: 14px; color: var(--ink-soft); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.product { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; padding: 20px 0 40px; align-items: start; }
.gallery-main { aspect-ratio: 1; background: var(--cream); border-radius: var(--r); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { width: 76px; aspect-ratio: 1; padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--cream); }
.thumbs button[aria-current="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.info { position: sticky; top: 100px; display: grid; gap: 20px; }
.vendor { font-size: 12px; letter-spacing: .12em; color: var(--ink-soft); }
.info h1 { font-size: clamp(30px, 3.4vw, 42px); }
.info .price { font-size: 19px; }
.info .price s { color: var(--ink-soft); margin-left: 8px; font-size: 16px; }
.field-label { font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; display: flex; justify-content: space-between; gap: 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { border: 1px solid var(--ink-soft); background: var(--paper); padding: 8px 18px; border-radius: 999px; font-size: 15px; }
.opt:hover { border-color: var(--ink); }
.opt[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt:disabled { color: #b9aea4; border-color: var(--line); text-decoration: line-through; cursor: not-allowed; }
.opt .dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; margin-right: 8px; border: 1px solid rgba(94,67,48,.25); }
.size-hint { font-size: 14px; color: var(--ink-soft); margin-top: 10px; min-height: 22px; }
.size-hint .low { color: var(--berry); font-weight: 500; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--ink-soft); border-radius: var(--r); }
.qty button { width: 46px; height: 46px; background: none; border: 0; font-size: 20px; }
.qty button:disabled { color: #c2b8ae; cursor: default; }
.qty output { min-width: 32px; text-align: center; }
.buy { display: grid; gap: 10px; }
.desc { color: var(--ink-soft); }
.desc p + p { margin-top: 10px; }
.share { display: flex; gap: 18px; font-size: 14px; }
.share a, .share button { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

/* ---------- Footer ---------- */
.footer { background: var(--cream); margin-top: 64px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 48px 0 32px; }
.footer-logo { border-radius: 50%; margin-bottom: 12px; }
.footer-col p { color: var(--ink-soft); max-width: 36ch; }
.footer-title { font-size: 20px; margin-bottom: 12px; }
.footer-links { display: grid; gap: 8px; font-size: 15px; }
.footer-links a, .footer-links .link { text-decoration: none; color: var(--ink-soft); }
.footer-links a:hover, .footer-links .link:hover { color: var(--ink); text-decoration: underline; }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.social a { display: inline-block; border: 1px solid rgba(94,67,48,.3); border-radius: 999px; padding: 6px 14px; font-size: 14px; text-decoration: none; color: var(--ink); }
.social a:hover { border-color: var(--ink); background: var(--paper); }
.bazar { background: var(--blush); margin-top: 56px; padding: 44px 0 48px; }
.bazar .section-head { margin-bottom: 6px; }
.bazar-text { color: var(--ink); margin-bottom: 24px; }
.bazar .card-img { background: var(--paper); }
.footer-base { border-top: 1px solid rgba(94,67,48,.12); padding: 18px 0 24px; font-size: 13px; color: var(--ink-soft); text-align: center; }

/* ---------- Dialogs ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: rgba(70, 50, 36, .4); }
.close-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font-size: 26px; line-height: 1; display: grid; place-items: center; padding-bottom: 3px; }
.close-btn:hover { background: var(--cream); }
.drawer { margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(440px, 100%); max-width: 100%; display: none; flex-direction: column; }
.drawer[open] { display: flex; animation: slide-r .25s ease-out; }
.drawer-left { margin: 0 auto 0 0; }
.drawer-left[open] { animation-name: slide-l; }
@keyframes slide-r { from { transform: translateX(32px); opacity: 0; } }
@keyframes slide-l { from { transform: translateX(-32px); opacity: 0; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-title { font: 400 26px/1.1 var(--display); color: var(--cocoa); margin: 0; }
.drawer-body { flex: 1; overflow: auto; padding: 18px 20px 24px; display: flex; flex-direction: column; gap: 18px; }
.menu { padding: 8px 0; overflow: auto; }
.menu a, .menu button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 14px 24px; font-size: 18px; text-decoration: none; background: none; border: 0; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--cream); }
.menu .menu-sub { font-size: 16px; color: var(--ink-soft); padding-left: 40px; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 8px 24px; }
.sheet { width: min(560px, 100% - 32px); max-height: calc(100% - 48px); border-radius: 12px; overflow: auto; }
.size-sheet { padding: 28px 24px 24px; position: relative; }
.size-sheet .close-btn { position: absolute; top: 14px; right: 14px; }
.size-sheet h2 { font-size: 30px; margin-bottom: 8px; }
.size-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.size-table th { text-align: left; font-size: 13px; color: var(--ink-soft); font-weight: 500; padding: 8px 6px; border-bottom: 1px solid var(--ink); }
.size-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); }
.size-table td:first-child { font-weight: 600; }

/* Cart & checkout (inside the drawer) */
.cart-empty { text-align: center; padding: 48px 8px; color: var(--ink-soft); display: grid; gap: 16px; justify-items: center; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: start; }
.line img { width: 76px; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); background: var(--cream); }
.line-name { font-weight: 500; line-height: 1.3; }
.line-meta { font-size: 14px; color: var(--ink-soft); }
.line-controls { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.line-controls .qty button { width: 34px; height: 34px; font-size: 17px; }
.remove-btn { background: none; border: 0; padding: 4px; font-size: 14px; color: var(--ink-soft); text-decoration: underline; }
.totals { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 6px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 19px; font-weight: 600; margin-top: 4px; }
.free-note { font-size: 14px; color: var(--leaf); font-weight: 500; }
.alert { background: #fbecea; color: #8a2f2c; border-radius: var(--r); padding: 10px 12px; font-size: 14.5px; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: 15px; }
.form .hint { font-weight: 400; font-size: 13.5px; color: var(--ink-soft); }
.form input[type="text"], .form input[type="tel"], .form select, .form textarea { width: 100%; border: 1px solid var(--ink-soft); border-radius: var(--r); padding: 11px 12px; background: var(--paper); font-size: 16px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.form .invalid { border-color: var(--berry) !important; }
.form .err { color: var(--berry); font-size: 13.5px; font-weight: 500; }
.check { display: flex !important; align-items: center; gap: 10px !important; font-weight: 400 !important; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.loc-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.loc-status { font-size: 14px; color: var(--leaf); font-weight: 500; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.back-btn { background: none; border: 0; padding: 0; text-decoration: underline; align-self: flex-start; }
.done { display: grid; gap: 16px; }
.done-badge { width: 60px; height: 60px; border-radius: 50%; background: var(--leaf); display: grid; place-items: center; }
.done-badge svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.done h3 { font-size: 28px; }
.done-box { background: var(--cream); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; }
.done-box h4 { margin: 0; font-size: 16px; font-weight: 600; }
.qr { background: #fff; border-radius: var(--r); padding: 10px; width: 240px; justify-self: center; }
.qr svg { width: 100%; height: auto; display: block; }
.summary { font-size: 14.5px; white-space: pre-line; color: var(--ink-soft); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: var(--r); z-index: 100; box-shadow: 0 8px 24px rgba(70,50,36,.25); max-width: calc(100% - 32px); }

/* ---------- Responsive ---------- */
@media (max-width: 990px) {
  .grid, .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product { grid-template-columns: 1fr; gap: 24px; }
  .info { position: static; }
  .banner-inner { grid-template-columns: 1fr; gap: 0; padding-top: 32px; }
  .banner-copy { order: -1; padding-bottom: 20px; text-align: center; }
  .banner-copy h1, .banner-copy p { margin-inline: auto; }
  .banner-art { max-width: 620px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .header-inner { height: 60px; grid-template-columns: 44px 1fr auto; }
  .brand-logo { display: none; }
  .brand-name { font-size: 24px; }
  .grid, .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .explore { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { aspect-ratio: 3 / 4; }
  .tile-label { left: 10px; bottom: 10px; padding: 8px 14px; font-size: 15px; }
  .ages { grid-template-columns: repeat(2, 1fr); }
  .ages .age-card:last-child { grid-column: 1 / -1; }
  .trust-list { grid-template-columns: 1fr; }
  .trust-list li { padding: 10px 12px; }
  .trust-list li + li { border-left: 0; border-top: 1px solid rgba(94,67,48,.12); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner .footer-col:first-child { grid-column: 1 / -1; }
  .section { padding-top: 44px; }
  .result-count { margin-left: 0; width: 100%; }
  .sheet { width: 100%; max-width: 100%; max-height: 92%; margin: auto 0 0; border-radius: 14px 14px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
