/* CativArte - public site styles */

@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Great Vibes"; src: url("../fonts/great-vibes-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
    --rose: #bc625b;
    --rose-dark: #a2524c;
    --rose-soft: #e9c7c1;
    --rose-tint: #f6e6e1;
    --cream: #fcf6f0;
    --cream-2: #f8efe6;
    --paper: #fffdfb;
    --ink: #4a322c;
    --ink-soft: #6f5852;
    --muted: #8c7a74;
    --line: #ecdcd3;
    --gold: #c9a27a;
    --radius: 12px;
    --shadow: 0 6px 22px rgba(120, 72, 58, .08);
    --serif: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --script: "Great Vibes", "Brush Script MT", cursive;
    --sans: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
    --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: var(--rose); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rose-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-variant-numeric: lining-nums; }
.price, .stat strong { font-variant-numeric: lining-nums; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
.icon { flex: none; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .7em 1.4em; border-radius: 8px; border: 1px solid transparent; font-family: var(--sans); font-size: 1rem; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--rose); color: #fff; }
.btn-primary:hover { background: var(--rose-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--rose); color: var(--rose); }
.btn-outline:hover { background: var(--rose); color: #fff; }
.btn-light { background: #fff; color: var(--rose); }
.btn-light:hover { background: var(--rose-tint); }
.btn-sm { padding: .35em .95em; font-size: .85rem; border-radius: 6px; }
.btn-wide { min-width: 280px; margin-top: 18px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-quiet { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .9rem; }

/* ---------- top bar */
.topbar { background: var(--rose); color: #fff; font-size: .9rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
.topbar span { display: inline-flex; align-items: center; gap: 8px; }
.topbar-extra { gap: 18px !important; }
.topbar .sep { width: 1px; height: 16px; background: rgba(255,255,255,.6); }

/* ---------- header */
.site-header { position: relative; z-index: 20; background: var(--cream); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 100px; }
.main-nav { display: flex; gap: 30px; align-items: center; }
.main-nav > a, .nav-dropdown > a { color: var(--ink-soft); text-decoration: none; font-size: 1rem; padding: 10px 0; display: inline-flex; align-items: center; gap: 4px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--rose); }
.main-nav > a.active { border-bottom-color: var(--rose); }
.nav-dropdown { position: relative; }
.dropdown-panel { position: absolute; top: 100%; left: -16px; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.nav-dropdown:hover .dropdown-panel, .nav-dropdown:focus-within .dropdown-panel { opacity: 1; visibility: visible; transform: none; }
.dropdown-panel a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.dropdown-panel a:hover { background: var(--rose-tint); color: var(--rose); }
.header-logo img { width: 88px; height: 88px; }
.site-header.is-home { background: transparent; }
.site-header.is-home .header-logo { visibility: hidden; }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 22px; }
.header-actions a, .header-actions summary { color: var(--ink); display: inline-flex; cursor: pointer; }
.header-actions a:hover, .header-actions summary:hover { color: var(--rose); }
.cart-link { position: relative; }
.cart-count { position: absolute; top: -8px; right: -10px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--rose); color: #fff; font-size: .72rem; font-weight: 500; display: grid; place-items: center; line-height: 1; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.search-box { position: relative; }
.search-box form { position: absolute; right: -12px; top: calc(100% + 12px); display: flex; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 8px; width: 320px; }
.search-box input { flex: 1; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; min-width: 0; }
.search-box button { border: 0; background: var(--rose); color: #fff; border-radius: 6px; padding: 0 12px; cursor: pointer; }
.mobile-menu { display: none; }

/* ---------- hero */
.hero { position: relative; background: var(--cream); overflow: hidden; padding-bottom: 28px; }
.site-header.is-home + main .hero { margin-top: -100px; padding-top: 100px; }
.hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 40%; background-size: cover; background-position: center left; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%); mask-image: linear-gradient(to right, transparent 0, #000 22%); }
.hero-leaves { position: absolute; left: -30px; bottom: 40px; width: 150px; height: auto; opacity: .6; pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 360px; }
.hero-copy { padding: 40px 0 10px 40px; max-width: 420px; }
.hero h1 { font-weight: 500; font-size: 2.65rem; line-height: 1.05; margin-bottom: .55em; }
.hero h1 .line { display: block; }
.hero h1 .script { display: block; font-family: var(--script); font-weight: 400; color: var(--rose); font-size: 1.32em; line-height: .95; padding-left: 1.05em; }
.hero h1 .script .icon { color: var(--rose); vertical-align: top; }
.hero-copy p { color: var(--ink-soft); max-width: 300px; }
.hero-logo { margin-top: -90px; }
.hero-logo img { width: 330px; height: 330px; filter: drop-shadow(0 4px 18px rgba(188,98,91,.08)); }
.features { position: relative; list-style: none; margin: 18px auto 0; padding: 12px 22px; display: flex; justify-content: center; gap: 0; width: fit-content; max-width: calc(100% - 40px); background: rgba(255,255,255,.88); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 4px 16px rgba(120,72,58,.06); }
.features li { display: flex; align-items: center; gap: 10px; padding: 2px 20px; font-size: .82rem; line-height: 1.25; color: var(--ink-soft); max-width: 170px; }
.features li + li { border-left: 1px solid var(--line); }
.features .icon { color: var(--rose); }

/* ---------- sections */
.section { padding-top: 34px; padding-bottom: 34px; }
.section-title { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 500; font-size: 1.75rem; margin-bottom: 22px; text-align: center; }
.section-title::before, .section-title::after { content: ""; width: 56px; height: 1px; background: var(--rose-soft); }
.section-title .icon { color: var(--rose); order: 1; }
.section-title::after { order: 2; }

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.category-card { display: flex; align-items: center; gap: 12px; padding: 20px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s; }
.category-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.category-card img { width: 96px; height: 96px; object-fit: contain; flex: none; }
.category-card h3 { font-weight: 500; font-size: 1.32rem; margin-bottom: .25em; white-space: nowrap; }
.category-card p { font-size: .88rem; color: var(--ink-soft); margin-bottom: .8em; line-height: 1.35; }

/* ---------- product cards */
.carousel { position: relative; padding: 0 48px; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 18px) / 6); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 10px; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
.carousel-btn { position: absolute; top: 38%; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--rose); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }
.carousel-btn:hover { background: var(--rose-dark); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card-link { display: block; color: inherit; text-decoration: none; }
.product-card-img { position: relative; aspect-ratio: 1 / .92; background: var(--cream-2); }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 8px; left: 8px; background: var(--rose); color: #fff; font-size: .72rem; padding: 2px 8px; border-radius: 20px; }
.badge-muted { background: var(--ink-soft); left: auto; right: 8px; }
.product-card-body { padding: 10px 12px 12px; }
.product-card h3 { font-family: var(--sans); font-weight: 500; font-size: .92rem; margin: 0 0 4px; color: var(--ink); }
.price { font-weight: 500; color: var(--ink); margin: 0; }
.price s { color: var(--muted); font-weight: 400; margin-right: 6px; font-size: .9em; }
.price.big { font-size: 1.6rem; font-family: var(--serif); margin: 6px 0 14px; }
.product-card-cat { font-size: .78rem; color: var(--muted); margin: 2px 0 0; }

/* ---------- gift banner */
.gift-banner { position: relative; display: flex; align-items: center; gap: 22px; margin: 18px 0 44px; padding: 16px 0 16px 34px; min-height: 86px; background: var(--rose); color: #fff; border-radius: 12px; overflow: hidden; }
.gift-icon { width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); display: grid; place-items: center; flex: none; }
.gift-text { flex: 1; }
.gift-banner h2 { color: #fff; font-weight: 500; font-size: 1.6rem; margin: 0; }
.gift-banner p { margin: 0; font-size: .9rem; opacity: .95; }
.gift-img { height: 100%; position: absolute; right: 0; top: 0; width: 26%; object-fit: cover; -webkit-mask-image: linear-gradient(to right, transparent, #000 35%); mask-image: linear-gradient(to right, transparent, #000 35%); }
.gift-banner .btn { position: relative; z-index: 1; margin-right: calc(26% - 40px); }

/* ---------- footer */
.site-footer { position: relative; background: var(--cream); border-top: 1px solid var(--line); overflow: hidden; }
.footer-leaves { position: absolute; left: 10px; top: 14px; width: 140px; height: auto; opacity: .8; pointer-events: none; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr 1fr 1.15fr; gap: 40px; padding-top: 34px; padding-bottom: 30px; padding-left: 150px; }
.site-footer h2 { font-weight: 500; font-size: 1.3rem; margin-bottom: .7em; }
.site-footer p { font-size: .88rem; color: var(--ink-soft); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: var(--rose); }
.contact-list { list-style: none; padding: 0; margin: 0; font-size: .88rem; color: var(--ink-soft); }
.contact-list li { display: flex; gap: 12px; margin-bottom: 12px; }
.contact-list a { color: var(--ink-soft); text-decoration: none; }
.contact-list .icon { color: var(--ink-soft); }
.social { display: flex; gap: 12px; }
.social a { color: var(--rose); }
.newsletter-row { display: flex; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.newsletter-row input { flex: 1; border: 0; padding: 10px 12px; min-width: 0; background: transparent; font-size: .9rem; }
.newsletter-row input:focus { outline: none; }
.newsletter-row:focus-within { border-color: var(--rose); }
.newsletter-row button { border: 0; border-left: 1px solid var(--line); background: #fff; color: var(--rose); padding: 0 14px; cursor: pointer; }
.newsletter-row button:hover { background: var(--rose-tint); }
.consent { display: flex; align-items: flex-start; gap: 8px; font-size: .78rem; color: var(--muted); margin-top: 8px; }
.consent input { margin-top: 3px; accent-color: var(--rose); }
.newsletter-form.standalone { max-width: 420px; margin: 0 auto; text-align: left; }
.footer-bottom { background: var(--rose); color: #fff; font-size: .82rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; padding-top: 8px; padding-bottom: 8px; }
.footer-bottom span { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- inner pages */
.page-hero { background: var(--cream); border-bottom: 1px solid var(--line); padding: 26px 0 22px; }
.page-hero h1 { font-size: 2.4rem; font-weight: 500; margin-bottom: .2em; }
.page-hero p { color: var(--ink-soft); margin: 0; max-width: 640px; }
.breadcrumbs { font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--rose); }
.breadcrumbs span { margin: 0 4px; }

.shop { display: grid; grid-template-columns: 220px 1fr; gap: 34px; align-items: start; }
.shop-filters ul { list-style: none; padding: 0; margin: 14px 0 0; }
.shop-filters li a { display: block; padding: 7px 10px; border-radius: 6px; color: var(--ink-soft); text-decoration: none; }
.shop-filters li a:hover, .shop-filters li a.active { background: var(--rose-tint); color: var(--rose); }
.shop-search { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.shop-search input { flex: 1; border: 0; padding: 8px 10px; min-width: 0; }
.shop-search input:focus { outline: none; }
.shop-search button { border: 0; background: none; color: var(--rose); padding: 0 10px; cursor: pointer; }
.empty, .message-page { text-align: center; padding: 50px 20px; color: var(--ink-soft); }
.empty .icon, .message-page .icon { color: var(--rose); margin: 0 auto 10px; display: block; }
.message-page .btn { margin: 4px; }

.product-detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 46px; margin-top: 12px; }
.gallery-main { background: var(--cream-2); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery-main img { width: 100%; aspect-ratio: 1 / .92; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumbs button { padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.gallery-thumbs img { width: 76px; height: 76px; object-fit: cover; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin-bottom: 4px; }
.eyebrow a { text-decoration: none; }
.product-info h1 { font-size: 2.5rem; font-weight: 500; margin-bottom: 0; }
.lead { font-size: 1.05rem; color: var(--ink-soft); }
.buy-box { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.qty button { border: 0; background: none; width: 38px; height: 44px; cursor: pointer; color: var(--ink); }
.qty input { width: 44px; text-align: center; border: 0; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.added-msg { display: flex; align-items: center; gap: 6px; color: #3b7a4b; font-size: .92rem; }
.soldout { color: var(--rose-dark); font-weight: 500; }
.product-info > .btn-outline { margin-top: 6px; }
.description { margin-top: 24px; color: var(--ink-soft); }
.product-perks { list-style: none; padding: 16px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; color: var(--ink-soft); font-size: .92rem; }
.product-perks li { display: flex; align-items: center; gap: 10px; }
.product-perks .icon { color: var(--rose); }

.text-page { max-width: 760px; font-size: 1.04rem; color: var(--ink-soft); }
.about-logo { width: 200px; height: 200px; margin: 0 auto 20px; }
.faq-q { font-size: 1.35rem; font-weight: 600; margin: 1.2em 0 .3em; }
.text-page-cta { margin-top: 2em; }

.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.contact-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 28px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.contact-card .icon { color: var(--rose); }
.contact-card h2 { font-size: 1.5rem; font-weight: 500; margin: 6px 0 0; }
.contact-card p { color: var(--ink-soft); margin-bottom: 8px; }

/* ---------- cart & checkout */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 34px; align-items: start; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 90px 1fr 70px 100px; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line-img img { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; }
.cart-line-info { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.cart-line-info a { color: var(--ink); text-decoration: none; font-weight: 500; }
.cart-line input { width: 64px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; text-align: center; }
.cart-line-total { text-align: right; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 16px; }
.summary h2 { font-size: 1.5rem; font-weight: 500; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin: 0 0 16px; }
.summary dt { color: var(--ink-soft); }
.summary dd { margin: 0; text-align: right; }
.summary .total { font-weight: 600; font-size: 1.1rem; color: var(--ink); border-top: 1px solid var(--line); padding-top: 8px; }
.summary .link-quiet { display: block; text-align: center; margin-top: 12px; }
.summary-lines { list-style: none; padding: 0; margin: 0 0 14px; font-size: .92rem; }
.summary-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.notice { background: var(--rose-tint); border: 1px solid var(--rose-soft); color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.notice.error { background: #fbe9e7; border-color: #e7b3ab; }

fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; margin-bottom: 10px; }
.field { display: block; margin-bottom: 12px; }
.field-label { display: block; font-size: .88rem; color: var(--ink-soft); margin-bottom: 4px; }
.field input, .field textarea, .field select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--rose); outline: none; box-shadow: 0 0 0 3px rgba(188,98,91,.12); }
.has-error input, .has-error textarea { border-color: #c0392b; }
.field-error { display: block; color: #b0342a; font-size: .82rem; margin-top: 4px; }
.field-hint { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-bottom: 10px; cursor: pointer; }
.radio-card input { margin-top: 5px; accent-color: var(--rose); }
.radio-card small { color: var(--muted); }
.checkout .consent { font-size: .88rem; color: var(--ink-soft); }
.checkout .consent.has-error { color: #b0342a; }

.confirmation-head { text-align: center; margin-bottom: 26px; }
.confirmation-head .icon { color: var(--rose); margin: 0 auto 8px; display: block; }
.confirmation-head h1 { font-size: 2.6rem; font-weight: 500; }
.confirmation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h2 { font-size: 1.5rem; font-weight: 500; }
.confirmation .summary { position: static; }

/* ---------- responsive */
@media (max-width: 1100px) {
    .carousel-track { grid-auto-columns: calc((100% - 3 * 18px) / 4); }
    .footer-grid { padding-left: 20px; grid-template-columns: 1fr 1fr; }
    .footer-leaves { display: none; }
}

@media (max-width: 900px) {
    .main-nav { display: none; }
    .mobile-menu { display: block; position: relative; }
    .mobile-menu summary { cursor: pointer; display: inline-flex; color: var(--ink); }
    .mobile-nav { position: absolute; top: calc(100% + 10px); left: 0; width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 8px; display: flex; flex-direction: column; z-index: 30; }
    .mobile-nav a { padding: 10px 12px; color: var(--ink); text-decoration: none; border-radius: 6px; }
    .mobile-nav a.sub { padding-left: 26px; font-size: .92rem; color: var(--ink-soft); }
    .mobile-nav a:hover { background: var(--rose-tint); }
    .header-inner { height: 76px; }
    .header-logo img { width: 66px; height: 66px; }
    .site-header.is-home .header-logo { visibility: visible; }
    .site-header.is-home + main .hero { margin-top: 0; padding-top: 0; }
    .hero-inner { grid-template-columns: 1fr; text-align: center; min-height: 0; }
    .hero-logo { display: none; }
    .hero-copy { padding: 34px 0 10px; margin: 0 auto; }
    .hero h1 .script { padding-left: 0; }
    .hero-copy p { margin-left: auto; margin-right: auto; }
    .hero-photo { position: relative; width: 100%; height: 260px; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%); mask-image: linear-gradient(to bottom, transparent, #000 25%); order: 2; }
    .hero { display: flex; flex-direction: column; }
    .hero .container.hero-inner { order: 1; }
    .features { order: 3; flex-wrap: wrap; width: auto; }
    .features li { flex: 1 1 45%; max-width: none; padding: 8px 10px; }
    .features li + li { border-left: 0; }
    .category-grid { grid-template-columns: 1fr 1fr; }
    .shop { grid-template-columns: 1fr; }
    .product-detail { grid-template-columns: 1fr; gap: 24px; }
    .cart-layout, .checkout-layout, .confirmation-grid { grid-template-columns: 1fr; }
    .summary { position: static; }
    .gift-banner { flex-wrap: wrap; padding: 22px; }
    .gift-img { display: none; }
    .gift-banner .btn { margin-right: 0; }
}

@media (max-width: 640px) {
    body { font-size: 15px; }
    .topbar-inner { justify-content: center; text-align: center; }
    .topbar-extra { display: none !important; }
    .header-actions { gap: 16px; }
    .search-box form { position: fixed; left: 12px; right: 12px; top: 120px; width: auto; }
    .hero h1 { font-size: 2.15rem; }
    .category-grid { grid-template-columns: 1fr; }
    .category-card img { width: 86px; height: 86px; }
    .carousel-track { grid-auto-columns: 62%; }
    .carousel-btn { display: none; }
    .carousel { padding: 0; }
    .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .row-2 { grid-template-columns: 1fr; }
    .cart-line { grid-template-columns: 70px 1fr 60px; }
    .cart-line-img img { width: 70px; height: 70px; }
    .cart-line-total { grid-column: 2 / 4; text-align: left; }
    .section-title { font-size: 1.45rem; }
    .section-title::before, .section-title::after { display: none; }
    .page-hero h1, .product-info h1 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}
