/* ========= Croshiya Store — storefront styles ========= */
:root {
    --brand: #7a3e52;
    --accent: #c9a227;
    --bg: #fbf7f2;
    --surface: #ffffff;
    --tint: #f4ece3;
    --ink: #2a211d;
    --ink-soft: #6d625b;
    --line: #e6ddd3;
    --success: #2f7d4f;
    --danger: #b3261e;
    --warn: #a76a00;
    --info: #2b5c8a;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 10px 30px rgba(42, 33, 29, .08);
    --font-head: "Cormorant Garamond", Georgia, serif;
    --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
    --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: var(--font-body); font-size: 16px; line-height: 1.6; letter-spacing: .01em;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
.h2 { font-size: 2rem; } .h3 { font-size: 1.4rem; font-family: var(--font-head); font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.strong { font-weight: 600; }
.mt-1 { margin-top: .75rem; } .mt-2 { margin-top: 1.5rem; } .mt-3 { margin-top: 2rem; } .mb-1 { margin-bottom: .75rem; }
.text-success { color: var(--success); } .text-danger { color: var(--danger); } .text-warn { color: var(--warn); }
.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: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.container.narrow, .narrow { max-width: 820px; }
.section { padding: 48px 0; }
.section-tint { background: var(--tint); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.5rem); text-align: center; margin-bottom: 1.5rem; }
.section-head .section-title { margin: 0; text-align: left; }
.section-title.left { text-align: left; }
.page-title { font-size: clamp(2rem, 4vw, 3rem); text-align: center; }
.page-title.left { text-align: left; margin: 0; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .75rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
    font-weight: 500; font-size: .95rem; letter-spacing: .04em; text-decoration: none;
    transition: transform .15s ease, background .2s, color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover:not(:disabled) { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-danger-outline { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-danger-outline:hover { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: .95rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }
.btn-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.btn-stack { display: grid; gap: .5rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: .35rem; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: inherit; text-decoration: none; position: relative; }
.icon-btn:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.icon-btn.sm { width: 34px; height: 34px; }
.round-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.round-btn:hover { border-color: var(--ink); }

/* ---------- forms ---------- */
.input, .select {
    width: 100%; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.input.invalid { border-color: var(--danger); }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field > label, .field-label { font-size: .875rem; font-weight: 500; display: flex; align-items: center; gap: .35rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.form-grid .col-2 { grid-column: span 2; }
.check { display: flex; align-items: center; gap: .55rem; margin: .4rem 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.validation-message { color: var(--danger); font-size: .8rem; }
.input-row { display: flex; gap: .5rem; }
.alert { padding: .8rem 1rem; border-radius: var(--radius-sm); margin: 1rem 0; font-size: .925rem; }
.alert-danger { background: #fdecea; color: var(--danger); }

/* ---------- badges ---------- */
.badge { display: inline-block; padding: .25rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 500; letter-spacing: .03em; white-space: nowrap; }
.badge-sale { background: var(--brand); color: #fff; }
.badge-soldout { background: var(--ink); color: #fff; }
.badge-success { background: #e3f3e8; color: var(--success); }
.badge-danger { background: #fdecea; color: var(--danger); }
.badge-warn { background: #fdf3df; color: var(--warn); }
.badge-info { background: #e5eef7; color: var(--info); }
.badge-muted { background: #eeeae6; color: var(--ink-soft); }

/* ---------- announcement + header ---------- */
.announcement { background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .45rem 1rem; font-size: .85rem; letter-spacing: .04em; }
.announcement-text { margin: 0; text-align: center; animation: fadeIn .4s ease; min-width: 0; }
.announcement-nav { background: none; border: 0; color: #fff; font-size: 1.2rem; opacity: .75; padding: 0 .5rem; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; min-height: 76px; }
.logo { text-decoration: none; display: flex; align-items: center; }
.logo img { max-height: 52px; width: auto; }
.logo-text { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; letter-spacing: .02em; color: var(--brand); text-decoration: none; }
.logo-text.sm { font-size: 1.4rem; }
.main-nav { display: flex; justify-content: center; gap: 1.75rem; flex-wrap: wrap; }
.nav-link { text-decoration: none; font-size: .95rem; padding: .25rem 0; border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav-link:hover, .nav-link.active { border-bottom-color: currentColor; }
.header-icons { display: flex; align-items: center; justify-content: flex-end; gap: .1rem; }
.menu-toggle { display: none; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .7rem; display: grid; place-items: center; padding: 0 4px; }
.search-bar { border-top: 1px solid var(--line); padding: .75rem 0; background: var(--surface); }
.search-form { display: flex; align-items: center; gap: .25rem; }
.search-form.big { max-width: 560px; margin: 1rem auto 0; gap: .5rem; }
.search-input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: .75rem 1.1rem; background: var(--surface); }
.search-input:focus { outline: none; border-color: var(--brand); }

/* drawers */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(20, 14, 12, .45); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 60; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.menu-drawer, .cart-drawer {
    position: fixed; top: 0; bottom: 0; z-index: 70; background: var(--bg); width: min(420px, 92vw);
    display: flex; flex-direction: column; transition: transform .3s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--shadow);
}
.menu-drawer { left: 0; transform: translateX(-100%); }
.cart-drawer { right: 0; transform: translateX(100%); }
.menu-drawer.open, .cart-drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.drawer-title { margin: 0; font-size: 1.6rem; }
.drawer-nav { display: flex; flex-direction: column; padding: .5rem 0; overflow-y: auto; }
.drawer-nav a { display: flex; justify-content: space-between; padding: 1rem 1.25rem; text-decoration: none; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
.drawer-foot { margin-top: auto; padding: 1.25rem; }

/* cart */
.cart-empty { flex: 1; display: grid; place-content: center; text-align: center; gap: 1rem; padding: 2rem; }
.ship-progress { padding: .9rem 1.25rem 0; font-size: .875rem; }
.ship-progress p { margin: 0 0 .4rem; }
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--brand); transition: width .4s; }
.cart-lines { list-style: none; margin: 0; padding: .5rem 1.25rem; overflow-y: auto; flex: 1; }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-line-img img { width: 84px; height: 100px; object-fit: cover; border-radius: var(--radius-sm); background: var(--tint); }
.cart-line-info { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.cart-line-title { text-decoration: none; font-weight: 500; }
.cart-line-total { font-weight: 500; font-size: .9rem; }
.cart-line-actions { display: flex; align-items: center; gap: .25rem; margin-top: .35rem; }
.price-sm { font-size: .875rem; color: var(--ink-soft); }
.cart-foot { border-top: 1px solid var(--line); padding: 1rem 1.25rem 1.25rem; background: var(--surface); }
.cart-notes summary { cursor: pointer; font-size: .9rem; margin-bottom: .5rem; }
.cart-notes textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem; margin-bottom: .75rem; }
.cart-total-row { display: flex; justify-content: space-between; font-size: 1.1rem; margin: .5rem 0 .25rem; }
.marketplace-note { display: block; text-align: center; font-size: .85rem; margin-top: .75rem; }
.pill-note { text-align: center; font-size: .8rem; margin: .5rem 0 0; color: var(--brand); font-weight: 500; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.qty button { width: 34px; height: 34px; border: 0; background: none; display: grid; place-items: center; color: var(--ink); }
.qty button:disabled { opacity: .3; }
.qty input { width: 40px; text-align: center; border: 0; background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-lg button { width: 46px; height: 46px; }
.qty-lg input { width: 48px; font-size: 1rem; }

/* ---------- hero ---------- */
.hero { position: relative; aspect-ratio: 16 / 6.5; min-height: 360px; overflow: hidden; background: var(--tint); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: absolute; inset: auto 0 12% 0; text-align: center; color: #fff; padding: 0 1rem; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero-title { font-size: clamp(2rem, 5vw, 3.75rem); margin-bottom: .3em; }
.hero-sub { font-size: 1.1rem; margin-bottom: 1.25rem; }
.hero-controls { position: absolute; z-index: 2; bottom: 18px; right: 18px; display: flex; align-items: center; gap: .5rem; background: rgba(255, 255, 255, .85); border-radius: 999px; padding: 4px; }
.hero-controls .round-btn { width: 34px; height: 34px; border: 0; background: none; }
.hero-counter { font-size: .8rem; min-width: 38px; text-align: center; }

/* ---------- collection grid ---------- */
.collection-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; }
.collection-card { text-decoration: none; display: block; }
.collection-img { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.collection-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.collection-card:hover .collection-img img { transform: scale(1.05); }
.collection-card h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 500; margin-top: .8rem; }
.collection-card h3 span { display: inline-block; transition: transform .2s; }
.collection-card:hover h3 span { transform: translateX(4px); }

/* ---------- product cards / grids ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.25rem; }
.product-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card { display: flex; flex-direction: column; height: 100%; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s ease, transform .8s ease; }
.card-media .img-secondary { opacity: 0; }
.card-media.has-hover:hover .img-secondary { opacity: 1; }
.card-media:hover .img-primary { transform: scale(1.04); }
.card-media .badge { position: absolute; left: 10px; bottom: 10px; z-index: 2; }
.card-body { padding-top: .8rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card-title { font-family: var(--font-body); font-size: 1rem; font-weight: 400; margin: 0; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-body .btn { margin-top: auto; }
.price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.price-compare { color: var(--ink-soft); font-size: .9rem; }
.price-now { font-weight: 500; }
.price-lg .price-now { font-size: 1.35rem; }
.price-lg .price-compare { font-size: 1.05rem; }

.carousel-controls { display: flex; gap: .5rem; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 1.25rem) / 4); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .25rem; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item { scroll-snap-align: start; }

/* ---------- product detail ---------- */
.product-detail { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.gallery { position: sticky; top: 100px; }
.gallery-main { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-prev, .gallery-next { position: absolute; top: 50%; transform: translateY(-50%); }
.gallery-prev { left: 12px; } .gallery-next { right: 12px; }
.gallery-count { position: absolute; bottom: 12px; right: 12px; background: rgba(255, 255, 255, .85); padding: .2rem .6rem; border-radius: 999px; font-size: .8rem; }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .75rem; overflow-x: auto; }
.thumb { flex: 0 0 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; background: var(--tint); }
.thumb.active { border-color: var(--ink); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info { display: flex; flex-direction: column; gap: .5rem; }
.vendor { text-transform: uppercase; font-size: .75rem; letter-spacing: .15em; color: var(--ink-soft); margin: 0; }
.product-title { font-size: clamp(2rem, 3.5vw, 2.75rem); margin: 0; }
.price-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.variant-picker { border: 0; padding: 0; margin: .75rem 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.variant-picker legend { font-size: .875rem; font-weight: 500; margin-bottom: .5rem; }
.variant-pill { padding: .55rem 1.2rem; border: 1px solid var(--ink); border-radius: 999px; background: var(--surface); }
.variant-pill.active { background: var(--ink); color: #fff; }
.variant-pill.soldout { text-decoration: line-through; opacity: .5; }
.buy-row { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.wish-btn { border: 1px solid var(--line); }
.wish-btn.active { color: var(--brand); }
.pincode-check { margin-top: 1.25rem; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pincode-check p { margin: .5rem 0 0; }
.product-description { margin-top: 1rem; }
.share-row { display: flex; justify-content: space-between; margin-top: 1rem; }
.rte ul, .rte ol { padding-left: 1.25rem; }
.rte h3 { font-size: 1.3rem; margin-top: 1rem; }
.breadcrumbs { font-size: .85rem; color: var(--ink-soft); margin-bottom: 1.25rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.breadcrumbs a { text-decoration: none; }

/* ---------- image with text / badges / faq ---------- */
.image-with-text { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.iwt-media img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; }
.iwt-text p { font-size: 1.05rem; color: var(--ink-soft); }
.badges-section { background: var(--tint); }
.badge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.feature-badge p { font-size: .85rem; letter-spacing: .1em; font-weight: 500; margin: .75rem 0 0; }
.feature-icon { width: 76px; height: 76px; margin: 0 auto; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 2rem; box-shadow: var(--shadow); }
.feature-icon img { width: 44px; height: 44px; object-fit: contain; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; cursor: pointer; font-weight: 500; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { transition: transform .2s; flex-shrink: 0; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item p { color: var(--ink-soft); padding-bottom: 1rem; margin: 0; }

/* ---------- collection page ---------- */
.collection-hero { padding: 40px 0 8px; }
.filter-bar { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 0 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.filter-group { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.filter-group .select { width: auto; padding: .5rem .75rem; }
.pagination { display: flex; justify-content: center; gap: .4rem; margin: 2.5rem 0; }
.page-link { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; text-decoration: none; }
.page-link.active { background: var(--ink); color: #fff; }
.empty-state { text-align: center; padding: 4rem 1rem; display: grid; gap: .75rem; justify-items: center; }

/* ---------- cart page ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-weight: 500; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 1.25rem 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-row-product { display: flex; gap: 1rem; align-items: center; }
.cart-row-product img { width: 80px; height: 96px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-row-product a { text-decoration: none; font-weight: 500; }
.cart-summary { max-width: 380px; margin: 2rem 0 0 auto; }

/* ---------- checkout ---------- */
.checkout { min-height: 100vh; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0; max-width: 1100px; }
.checkout-main { padding: 2rem 2.5rem 3rem 0; border-right: 1px solid var(--line); }
.checkout-logo { display: inline-block; margin-bottom: 1.5rem; }
.checkout-h { font-family: var(--font-body); font-size: 1.15rem; font-weight: 600; margin: 1.75rem 0 .75rem; }
.checkout-summary { padding: 2rem 0 2rem 2.5rem; position: sticky; top: 0; align-self: start; }
.summary-line { display: grid; grid-template-columns: 64px 1fr auto; gap: .9rem; align-items: center; margin-bottom: .9rem; }
.summary-img { position: relative; }
.summary-img img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--tint); }
.summary-img span { position: absolute; top: -8px; right: -8px; background: var(--ink-soft); color: #fff; width: 22px; height: 22px; border-radius: 50%; font-size: .75rem; display: grid; place-items: center; }
.summary-name { font-size: .925rem; display: flex; flex-direction: column; }
.summary-rows { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; display: grid; gap: .5rem; }
.summary-rows > div { display: flex; justify-content: space-between; gap: 1rem; }
.summary-total { font-size: 1.25rem; font-weight: 600; padding-top: .5rem; border-top: 1px solid var(--line); margin-top: .25rem; }
.summary-address { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
.summary-address h4 { font-family: var(--font-body); font-size: .9rem; font-weight: 600; margin-bottom: .35rem; }
.saved-addresses { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.address-chip { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); padding: .6rem .8rem; font-size: .85rem; display: flex; flex-direction: column; }
.address-chip.active { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.pay-options { display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.25rem; background: var(--surface); }
.pay-option { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem; cursor: pointer; border-bottom: 1px solid var(--line); }
.pay-option:last-child { border-bottom: 0; }
.pay-option.active { background: color-mix(in srgb, var(--brand) 6%, var(--surface)); }
.pay-option input { margin-top: .3rem; accent-color: var(--brand); }
.pay-option div { display: flex; flex-direction: column; }

/* ---------- thank you / tracking ---------- */
.thanks-head { text-align: center; margin-bottom: 2rem; }
.thanks-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; margin: 0 auto 1rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.25rem; }
.tracker-steps { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.tracker-steps li { text-align: center; position: relative; font-size: .78rem; color: var(--ink-soft); }
.tracker-steps li::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.tracker-steps li:first-child::before { display: none; }
.tracker-steps li.done::before { background: var(--success); }
.tracker-steps .dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); display: grid; place-items: center; margin: 0 auto .4rem; color: #fff; }
.tracker-steps li.done .dot { background: var(--success); border-color: var(--success); }
.tracker-steps li.current .dot { box-shadow: 0 0 0 5px color-mix(in srgb, var(--success) 20%, transparent); }
.tracker-steps li.done .label { color: var(--ink); font-weight: 500; }
.tracker-banner { padding: .8rem 1rem; border-radius: var(--radius-sm); font-weight: 600; margin-bottom: 1rem; }
.tracker-banner.danger { background: #fdecea; color: var(--danger); }
.tracker-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; padding: 1rem; background: var(--tint); border-radius: var(--radius-sm); margin-bottom: 1rem; }
.tracker-meta > div { display: flex; flex-direction: column; font-size: .875rem; }
.tracker-events { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); margin-left: .5rem; }
.tracker-events li { position: relative; display: grid; grid-template-columns: 130px 1fr; gap: 1rem; padding: 0 0 1.1rem 1.25rem; }
.tracker-events li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); }
.tracker-events li:first-child::before { background: var(--brand); }
.ev-time { font-size: .8rem; color: var(--ink-soft); }
.ev-body { display: flex; flex-direction: column; font-size: .925rem; }
.track-form { max-width: 560px; margin: 1.5rem auto; }

/* ---------- account ---------- */
.account-shell { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; align-items: start; }
.account-nav { position: sticky; top: 100px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.account-nav nav { display: flex; flex-direction: column; margin: .5rem 0 1rem; }
.account-nav nav a { display: flex; align-items: center; gap: .6rem; padding: .65rem .75rem; text-decoration: none; border-radius: var(--radius-sm); }
.account-nav nav a.active, .account-nav nav a:hover { background: var(--tint); }
.account-hello { margin-bottom: .5rem; }
.order-cards { display: grid; gap: .75rem; }
.order-card { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .2s; }
.order-card:hover { border-color: var(--ink); }
.order-card-imgs { display: flex; }
.order-card-imgs img { width: 52px; height: 52px; object-fit: cover; border-radius: var(--radius-sm); border: 2px solid var(--surface); margin-left: -12px; }
.order-card-imgs img:first-child { margin-left: 0; }
.order-card-info { display: flex; flex-direction: column; }
.address-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.address-card p { margin: .5rem 0; }
.wish-item { display: flex; flex-direction: column; gap: .4rem; }

/* ---------- auth ---------- */
.auth-shell { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 1.25rem; padding: 2rem 16px; }
.auth-card { width: min(440px, 92vw); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #eadfd6; padding: 56px 0 24px; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 2rem; }
.footer-title { font-family: var(--font-body); font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-links a { text-decoration: none; opacity: .85; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { opacity: .8; margin-top: .75rem; }
.socials { display: flex; gap: .5rem; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); display: grid; place-items: center; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; opacity: .75; }

/* ---------- misc ---------- */
.page-loading { display: grid; place-items: center; padding: 5rem 0; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
.spinner.sm { width: 16px; height: 16px; border-width: 2px; border-color: rgba(255, 255, 255, .4); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.center-block { text-align: center; padding: 4rem 16px; }
.toast-host { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: .5rem; width: min(420px, 92vw); }
.toast { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1rem; border-radius: var(--radius-sm); background: var(--ink); color: #fff; box-shadow: var(--shadow); animation: fadeIn .25s ease; }
.toast-error { background: var(--danger); }
.toast button { background: none; border: 0; color: #fff; opacity: .8; }
#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; background: #fff4d6; padding: .75rem 1.25rem; box-shadow: 0 -2px 10px rgba(0, 0, 0, .1); }
#blazor-error-ui .dismiss { float: right; cursor: pointer; }


/* ---------- category menu, chips ---------- */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item .nav-link { display: inline-flex; align-items: center; gap: .2rem; }
.nav-dropdown {
    position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px); min-width: 220px; z-index: 50;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: .5rem; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s;
}
.nav-item.has-dropdown:hover .nav-dropdown, .nav-item.has-dropdown:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-item.has-dropdown::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 12px; }
.nav-dropdown a { padding: .55rem .8rem; border-radius: var(--radius-sm); text-decoration: none; font-size: .925rem; white-space: nowrap; }
.nav-dropdown a:hover { background: var(--tint); }
.nav-dropdown-all { font-weight: 500; border-bottom: 1px solid var(--line); border-radius: 0 !important; margin-bottom: .25rem; }
.drawer-group { border-bottom: 1px solid var(--line); }
.drawer-group summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; font-size: 1.1rem; cursor: pointer; }
.drawer-group summary::-webkit-details-marker { display: none; }
.drawer-group[open] summary .icon { transform: rotate(180deg); }
.drawer-group a { display: block; padding: .7rem 1.25rem .7rem 2.25rem; text-decoration: none; border: 0 !important; font-size: 1rem !important; color: var(--ink-soft); }
.subcat-chips { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-top: 1.25rem; }
.chip { padding: .45rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .9rem; background: var(--surface); transition: border-color .2s; }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.center-crumbs { justify-content: center; }
@media (max-width: 749px) {
    .subcat-chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: .25rem; scrollbar-width: none; }
    .chip { white-space: nowrap; }
}

/* ---------- responsive ---------- */
@media (max-width: 989px) {
    .main-nav { display: none; }
    .menu-toggle { display: inline-grid; }
    .header-inner { grid-template-columns: auto 1fr auto; }
    .logo { justify-content: center; }
    .collection-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .carousel-track { grid-auto-columns: calc((100% - 2 * 1rem) / 3); gap: 1rem; }
    .product-detail { grid-template-columns: 1fr; gap: 1.5rem; }
    .gallery { position: static; }
    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-main { border-right: 0; padding: 1.5rem 0; order: 2; }
    .checkout-summary { position: static; padding: 1.5rem 0; border-bottom: 1px solid var(--line); order: 1; }
    .account-shell { grid-template-columns: 1fr; }
    .account-nav { position: static; }
}
@media (max-width: 749px) {
    .section { padding: 36px 0; }
    .hide-sm { display: none; }
    .logo-text { font-size: 1.5rem; }
    .hero { aspect-ratio: 4 / 5; min-height: 0; }
    .collection-grid { grid-auto-flow: column; grid-auto-columns: 42%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; }
    .collection-card { scroll-snap-align: start; }
    .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem .75rem; }
    .carousel-track { grid-auto-columns: 72%; }
    .image-with-text { grid-template-columns: 1fr; gap: 1.5rem; }
    .badge-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .col-2 { grid-column: auto; }
    .tracker-steps { grid-template-columns: repeat(3, 1fr); row-gap: 1rem; }
    .tracker-steps li:nth-child(4)::before { display: none; }
    .tracker-events li { grid-template-columns: 1fr; gap: .1rem; }
    .address-grid { grid-template-columns: 1fr; }
    .cart-table thead { display: none; }
    .cart-table tr { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--line); padding: 1rem 0; }
    .cart-table td { border: 0; padding: .25rem 0; }
    .cart-table td:first-child { grid-column: span 2; }
    .order-card { grid-template-columns: 1fr auto; }
    .order-card-imgs { display: none; }
}

/* ---------- coupons ---------- */
.coupon-box { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
.coupon-form { display: flex; gap: .5rem; }
.coupon-form .input { text-transform: uppercase; }
.coupon-form .input::placeholder { text-transform: none; }
.coupon-applied { display: flex; align-items: center; gap: .75rem; padding: .75rem .9rem; border: 1px dashed var(--success); background: #eef8f1; border-radius: var(--radius-sm); color: var(--success); }
.coupon-applied .grow { flex: 1; display: flex; flex-direction: column; color: var(--ink); }
.offers { margin-top: 1rem; display: grid; gap: .5rem; }
.offers-title { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.offer { display: flex; align-items: center; gap: .75rem; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.offer .grow { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.offer.locked { opacity: .7; }
.offer.applied { border-color: var(--success); }
.offer-code { font-weight: 600; letter-spacing: .06em; font-size: .9rem; border: 1px dashed var(--brand); color: var(--brand); padding: 0 .4rem; border-radius: 4px; align-self: flex-start; }
.login-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }

/* ---------- stars, badges ---------- */
.stars { display: inline-flex; align-items: center; gap: 1px; font-size: .9rem; line-height: 1; }
.stars-lg { font-size: 1.25rem; }
.star { color: #e3d9cf; position: relative; }
.star.full { color: #e0a100; }
.star.half { background: linear-gradient(90deg, #e0a100 50%, #e3d9cf 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars-count { margin-left: .35rem; font-size: .8rem; color: var(--ink-soft); }
.badge-trend { position: absolute; top: 10px; left: 10px; z-index: 2; background: #fff; color: #c2410c; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.card-media .badge-trend { bottom: auto; }

/* ---------- listing with filters ---------- */
.listing-toolbar { display: flex; align-items: center; gap: .75rem; padding: 1rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.listing-toolbar .sort-box { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.listing-toolbar .select { width: auto; padding: .5rem .75rem; }
.filter-toggle { display: none; }
.active-filters { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; padding: .75rem 0 0; }
.active-filters .chip { cursor: pointer; font-size: .82rem; padding: .3rem .8rem; }
.listing-body { display: grid; grid-template-columns: 250px 1fr; gap: 2rem; padding-top: 1.25rem; align-items: start; }
.filters { position: sticky; top: 96px; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: .25rem; }
.filters-head, .filters-foot, .filter-backdrop { display: none; }
.filter-group-box { border-bottom: 1px solid var(--line); padding: .5rem 0 .75rem; }
.filter-group-box summary { list-style: none; cursor: pointer; font-weight: 600; font-size: .9rem; letter-spacing: .04em; padding: .5rem 0; display: flex; justify-content: space-between; }
.filter-group-box summary::after { content: "–"; color: var(--ink-soft); }
.filter-group-box:not([open]) summary::after { content: "+"; }
.filter-group-box summary::-webkit-details-marker { display: none; }
.filter-group-box .check { font-size: .9rem; margin: .3rem 0; }
.filter-group-box .check.indent { padding-left: 1.4rem; font-size: .85rem; }
.price-inputs { display: flex; gap: .35rem; align-items: center; }
.price-inputs .input { padding: .45rem .5rem; min-width: 0; }
.quick-prices, .tag-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.quick-prices .chip, .tag-chips .chip { font-size: .8rem; padding: .3rem .7rem; cursor: pointer; }
.tag-chips .chip .muted { font-size: .7rem; margin-left: .2rem; }
.tag-chips .chip.active .muted { color: #ddd; }
@media (max-width: 989px) {
    .filter-toggle { display: inline-flex; }
    .listing-body { grid-template-columns: 1fr; }
    .filters { position: fixed; top: 0; bottom: 0; left: 0; width: min(360px, 90vw); max-height: none; z-index: 70; background: var(--bg); padding: 0 1.25rem 5rem; transform: translateX(-100%); transition: transform .3s; box-shadow: var(--shadow); }
    .filters.open { transform: none; }
    .filters-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; position: sticky; top: 0; background: var(--bg); z-index: 1; border-bottom: 1px solid var(--line); }
    .filters-foot { display: flex; gap: .5rem; position: fixed; bottom: 0; left: 0; width: min(360px, 90vw); padding: 1rem 1.25rem; background: var(--surface); border-top: 1px solid var(--line); }
    .filters-foot .btn-primary { flex: 1; }
    .filter-backdrop { display: block; }
}
.nav-sale { color: var(--brand); font-weight: 500; }

/* ---------- reviews ---------- */
.reviews { border-top: 1px solid var(--line); }
.review-summary { display: grid; grid-template-columns: 200px 1fr auto; gap: 2rem; align-items: center; margin-bottom: 1.5rem; }
.review-score { display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; }
.review-score strong { font-family: var(--font-head); font-size: 3rem; line-height: 1; }
.review-bars { display: grid; gap: .3rem; }
.review-bar { display: grid; grid-template-columns: 40px 1fr 32px; gap: .6rem; align-items: center; background: none; border: 0; padding: .1rem .3rem; border-radius: 6px; font-size: .85rem; text-align: left; }
.review-bar:hover, .review-bar.active { background: var(--tint); }
.review-bar .bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.review-bar .bar span { display: block; height: 100%; background: #e0a100; }
.review-form { max-width: 720px; margin: 0 auto 1.5rem; }
.star-input { display: flex; align-items: center; gap: .15rem; }
.star-input button { background: none; border: 0; font-size: 2rem; line-height: 1; color: #e3d9cf; padding: 0 .1rem; transition: transform .1s; }
.star-input button.on { color: #e0a100; }
.star-input button:hover { transform: scale(1.1); }
.star-input .muted { margin-left: .5rem; }
.review-photos-input { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.photo-thumb { position: relative; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: .65rem; }
.review-filters { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.review-filters .chip { cursor: pointer; }
.review-filters .select { width: auto; margin-left: auto; padding: .45rem .75rem; }
.review-list { display: grid; gap: 1rem; }
.review-item { border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.review-head { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: .35rem; }
.review-body { margin: 0 0 .5rem; white-space: pre-line; }
.review-imgs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .5rem; }
.review-img { width: 84px; height: 84px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--tint); cursor: zoom-in; display: block; }
.review-img img { width: 100%; height: 100%; object-fit: cover; }
.review-meta { display: flex; gap: .9rem; flex-wrap: wrap; font-size: .82rem; color: var(--ink-soft); align-items: center; }
.review-reply { background: var(--tint); border-radius: var(--radius-sm); padding: .7rem .9rem; font-size: .9rem; margin-top: .6rem; }
.rating-link { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-size: .9rem; color: var(--ink-soft); }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 120; display: grid; place-items: center; cursor: zoom-out; padding: 2rem; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lightbox .icon-btn { position: absolute; top: 16px; right: 16px; color: #fff; }
.review-items { display: grid; gap: .6rem; }
.review-item-row { display: flex; align-items: center; gap: .8rem; }
.review-item-row img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.review-item-row .grow { flex: 1; }
.home-reviews { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.home-review { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; scroll-snap-align: start; }
.home-review blockquote { margin: 0; font-size: .95rem; color: var(--ink); flex: 1; }
.home-review figcaption { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; color: var(--ink-soft); }
.home-review figcaption a { color: var(--brand); text-decoration: none; }
.home-review-photo { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; margin-bottom: .3rem; }
@media (max-width: 749px) {
    .review-summary { grid-template-columns: 1fr; gap: 1rem; }
    .review-cta { text-align: center; }
    .home-reviews { grid-auto-columns: 85%; }
}

/* ---------- instagram ---------- */
.ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.ig-tile { position: relative; }
.ig-tile > a { display: block; position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); background: var(--tint); }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ig-overlay { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,0); opacity: 0; transition: .25s; }
.ig-tile:hover .ig-overlay { opacity: 1; background: rgba(0,0,0,.35); }
.ig-tile:hover img { transform: scale(1.05); }
.ig-badge { position: absolute; top: 8px; right: 8px; font-size: .7rem; background: rgba(0,0,0,.6); padding: .15rem .5rem; border-radius: 999px; }
.ig-shop { position: absolute; left: 8px; bottom: 8px; background: #fff; color: var(--ink); font-size: .78rem; padding: .25rem .65rem; border-radius: 999px; text-decoration: none; box-shadow: var(--shadow); }
.ig-handle { color: var(--brand); text-decoration: none; font-weight: 500; }
@media (max-width: 749px) { .ig-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- chat widget ---------- */
.chat-widget { position: fixed; right: 18px; bottom: 18px; z-index: 55; display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
.chat-fab { width: 58px; height: 58px; border-radius: 50%; border: 0; background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); transition: transform .2s; }
.chat-fab:hover { transform: scale(1.06); }
.chat-fab-text { font-size: 1.6rem; }
.chat-panel { width: min(320px, 88vw); background: var(--surface); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0,0,0,.18); padding: 1rem; animation: fadeIn .2s ease; }
.chat-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .25rem; }
.chat-option { display: flex; align-items: center; gap: .75rem; padding: .75rem; border-radius: var(--radius-sm); text-decoration: none; margin-top: .5rem; border: 1px solid var(--line); }
.chat-option span { display: flex; flex-direction: column; }
.chat-option small { color: var(--ink-soft); }
.chat-option.ig { color: #c13584; }
.chat-option.wa { color: #128c4b; }
.chat-option:hover { background: var(--tint); }

/* ---------- add to cart / checkout ---------- */
.card-actions { display: grid; grid-template-columns: 1fr auto; gap: .4rem; margin-top: auto; }
.card-actions .btn { padding: .45rem .7rem; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(20,14,12,.45); z-index: 90; }
.quick-add { position: fixed; z-index: 91; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(440px, 92vw); max-height: 90vh; overflow-y: auto; background: var(--bg); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); animation: fadeIn .2s ease; }
.quick-add-close { position: absolute; top: 8px; right: 8px; }
.quick-add-body { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; }
.quick-add-body img { width: 110px; height: 130px; object-fit: cover; border-radius: var(--radius-sm); background: var(--tint); }
.quick-add .variant-picker { margin: .5rem 0 .75rem; }
.quick-add .grow { flex: 1; }
.center-link { display: block; text-align: center; margin-top: .75rem; }
.in-cart-note { margin: .5rem 0 0; color: var(--success); }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); transform: translateY(110%); transition: transform .25s ease; }
.sticky-buy.show { transform: none; }
.sticky-buy-inner { display: flex; align-items: center; gap: .75rem; padding-top: .6rem; padding-bottom: .6rem; }
.sticky-buy-inner img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.sticky-buy-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sticky-buy-title { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy .btn { padding: .6rem 1.1rem; }
body:has(.sticky-buy.show) .chat-widget { bottom: 86px; }
.cart-secondary { display: flex; justify-content: space-between; margin-top: .6rem; font-size: .9rem; }
.trust-row { text-align: center; font-size: .78rem; color: var(--ink-soft); margin: .6rem 0 0; }
@media (max-width: 749px) {
    .card-actions { grid-template-columns: 1fr; }
    .sticky-buy-inner img, .sticky-buy-info { display: none; }
    .sticky-buy .btn { flex: 1; }
}
