/* ==========================================================================
   Cozmetics.pk design system — mobile-first, layered on Bootstrap 5.3
   ========================================================================== */

:root {
    --cz-pink: #e91e63;          /* logo pink — primary actions */
    --cz-pink-dark: #c2185b;     /* hover / pressed */
    --cz-berry: #8e244d;         /* deep accent, headings on tint */
    --cz-blush: #fde7ef;         /* soft tint backgrounds */
    --cz-blush-2: #f8bbd0;
    --cz-ivory: #fff9f7;         /* page background */
    --cz-white: #ffffff;
    --cz-ink: #29252a;           /* body text */
    --cz-muted: #6e6770;         /* secondary text (AA on white and ivory) */
    --cz-line: #eee5e8;
    --cz-success: #1f7a4d;
    --cz-danger: #b3261e;

    --cz-radius: 14px;
    --cz-radius-sm: 10px;
    --cz-shadow: 0 1px 2px rgba(41, 37, 42, .05), 0 6px 20px rgba(41, 37, 42, .06);
    --cz-shadow-hover: 0 2px 4px rgba(41, 37, 42, .06), 0 14px 32px rgba(41, 37, 42, .10);

    --cz-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --cz-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

    --bs-body-font-family: var(--cz-font);
    --bs-body-color: var(--cz-ink);
    --bs-body-bg: var(--cz-ivory);
    --bs-link-color: var(--cz-pink-dark);
    --bs-link-color-rgb: 194, 24, 91;
    --bs-link-hover-color: var(--cz-berry);
    --bs-border-color: var(--cz-line);
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
    background: var(--cz-ivory);
    color: var(--cz-ink);
    font-family: var(--cz-font);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { color: var(--cz-ink); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.font-display { font-family: var(--cz-display); font-weight: 600; letter-spacing: 0; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); }
h3 { font-size: 1.15rem; }
a { text-underline-offset: .2em; }
.text-muted { color: var(--cz-muted) !important; }
.text-brand { color: var(--cz-pink-dark) !important; }

:focus-visible { outline: 3px solid var(--cz-pink); outline-offset: 2px; border-radius: 4px; }
.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 2000;
    background: var(--cz-ink); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: .75rem; color: #fff; }

.container { --bs-gutter-x: 2rem; } /* 16px side gutter on phones */
.section { padding: 2.5rem 0; }
@media (min-width: 768px) { .section { padding: 3.5rem 0; } }
.section-tint { background: var(--cz-blush); }
.section-white { background: var(--cz-white); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-head h2 { margin: 0; }
.section-head .eyebrow { display: block; }
.section-head a { white-space: nowrap; font-weight: 600; text-decoration: none; }
.eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cz-berry); margin-bottom: .35rem; }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; padding: .6rem 1.25rem; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
.btn-sm { min-height: 36px; padding: .35rem .9rem; }
.btn-lg { padding: .8rem 1.6rem; }
.btn-brand { background: var(--cz-pink); border: 1px solid var(--cz-pink); color: #fff; }
.btn-brand:hover, .btn-brand:focus-visible { background: var(--cz-pink-dark); border-color: var(--cz-pink-dark); color: #fff; }
.btn-brand:disabled { background: #d9cdd2; border-color: #d9cdd2; color: #fff; opacity: 1; }
.btn-outline-brand { border: 1px solid var(--cz-pink); color: var(--cz-pink-dark); background: transparent; }
.btn-outline-brand:hover { background: var(--cz-blush); color: var(--cz-berry); border-color: var(--cz-pink-dark); }
.btn-ink { background: var(--cz-ink); color: #fff; border: 1px solid var(--cz-ink); }
.btn-ink:hover { background: #000; color: #fff; }
/* Legacy class names still used in admin/blog views */
.btn-pink { background: var(--cz-pink); border: 1px solid var(--cz-pink); color: #fff; }
.btn-pink:hover { background: var(--cz-pink-dark); color: #fff; }
.text-pink-600 { color: var(--cz-pink-dark) !important; }
.bg-pink-600 { background-color: var(--cz-pink) !important; }

/* ---------- Announcement + header ---------- */
.announcement { background: var(--cz-ink); color: #fff; font-size: .8125rem; padding: .45rem 0; text-align: center; }
.announcement a { color: #fff; }
.announcement strong { color: var(--cz-blush-2); }

.site-header { background: var(--cz-white); border-bottom: 1px solid var(--cz-line); position: sticky; top: 0; z-index: 1030; }
.header-main { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; padding: .6rem 0; }
.brand-logo { display: inline-flex; align-items: center; min-height: 44px; }
.brand-logo img { height: 26px; width: auto; display: block; }
.header-search { grid-column: 1 / -1; order: 3; position: relative; }
.header-search input {
    width: 100%; height: 44px; border: 1px solid var(--cz-line); background: var(--cz-ivory);
    border-radius: 999px; padding: 0 3rem 0 1.1rem; font-size: 16px; /* 16px stops iOS zoom */
}
.header-search input:focus { outline: none; border-color: var(--cz-pink); box-shadow: 0 0 0 3px rgba(233, 30, 99, .15); background: #fff; }
.header-search button {
    position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border-radius: 50%;
    border: 0; background: var(--cz-pink); color: #fff; display: grid; place-items: center;
}
.header-actions { display: flex; align-items: center; gap: .25rem; justify-self: end; }
.icon-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    min-width: 44px; height: 44px; padding: 0 .6rem; border-radius: 999px; border: 0; background: transparent;
    color: var(--cz-ink); text-decoration: none; font-size: .875rem; font-weight: 500;
}
.icon-btn:hover { background: var(--cz-blush); color: var(--cz-berry); }
.icon-btn .bi { font-size: 1.3rem; }
.cart-badge {
    position: absolute; top: 3px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
    background: var(--cz-pink); color: #fff; font-size: .7rem; font-weight: 700; line-height: 19px; text-align: center;
}
.header-nav { border-top: 1px solid var(--cz-line); display: none; }
.header-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.header-nav a { display: block; padding: .7rem .85rem; color: var(--cz-ink); text-decoration: none; font-size: .9rem; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; }
.header-nav a:hover, .header-nav a[aria-current="page"] { color: var(--cz-pink-dark); border-bottom-color: var(--cz-pink); }

@media (min-width: 992px) {
    .header-main { grid-template-columns: auto minmax(280px, 560px) auto; gap: 2rem; padding: .85rem 0; }
    .header-search { grid-column: auto; order: 0; }
    .header-nav { display: block; }
    .menu-toggle { display: none !important; }
}

/* Mobile menu (Bootstrap offcanvas) */
.offcanvas-menu .nav-link { padding: .8rem 0; color: var(--cz-ink); font-weight: 500; border-bottom: 1px solid var(--cz-line); display: flex; justify-content: space-between; align-items: center; }
.offcanvas-menu .nav-link .count { color: var(--cz-muted); font-size: .8rem; font-weight: 400; }
.offcanvas-menu h2 { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cz-muted); margin: 1.25rem 0 .25rem; }

/* ---------- Flash / toast ---------- */
.flash-wrap { position: fixed; left: 50%; transform: translateX(-50%); top: 1rem; z-index: 2000; width: min(560px, calc(100% - 2rem)); }
.flash { display: flex; gap: .75rem; align-items: center; background: var(--cz-ink); color: #fff; border-radius: var(--cz-radius-sm); padding: .8rem 1rem; box-shadow: var(--cz-shadow-hover); margin-bottom: .5rem; }
.flash.is-error { background: var(--cz-danger); }
.flash a { color: #fff; font-weight: 600; white-space: nowrap; }
.flash .btn-close { margin-left: auto; filter: invert(1); opacity: .8; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .8125rem; color: var(--cz-muted); padding: .9rem 0 0; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.crumbs li + li::before { content: "/"; margin-right: .25rem; color: #c9bfc4; }
.crumbs a { color: var(--cz-muted); text-decoration: none; }
.crumbs a:hover { color: var(--cz-pink-dark); text-decoration: underline; }
.crumbs [aria-current] { color: var(--cz-ink); }

/* ---------- Hero ---------- */
.hero-band { background: linear-gradient(135deg, #fde7ef 0%, #fff4f0 55%, #fff9f7 100%); overflow: hidden; }
.hero-grid { display: grid; gap: 1.5rem; padding: 2rem 0; align-items: center; }
.hero-copy h1 { font-family: var(--cz-display); font-size: clamp(1.9rem, 1.3rem + 2.8vw, 3.25rem); margin-bottom: .75rem; }
.hero-copy p { color: var(--cz-muted); font-size: 1.05rem; max-width: 34rem; margin-bottom: 1.25rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: 1.25rem 0 0; padding: 0; list-style: none; font-size: .875rem; color: var(--cz-ink); }
.hero-points .bi { color: var(--cz-pink); margin-right: .3rem; }
.hero-collage { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.hero-collage a { position: relative; background: #fff; border-radius: var(--cz-radius-sm); aspect-ratio: 1; display: block; overflow: hidden; box-shadow: var(--cz-shadow); }
.hero-collage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4%; }
@media (min-width: 768px) {
    .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; padding: 3rem 0; }
    .hero-collage { grid-template-columns: repeat(2, 1fr); gap: .9rem; width: 100%; max-width: 440px; justify-self: end; }
}
@media (min-width: 1200px) { .hero-collage { max-width: 460px; } }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--cz-white); border-bottom: 1px solid var(--cz-line); }
.trust-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem 1rem; padding: 1rem 0; margin: 0; list-style: none; }
.trust-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .8125rem; color: var(--cz-muted); line-height: 1.35; }
.trust-list strong { display: block; color: var(--cz-ink); font-size: .875rem; }
.trust-list .bi { font-size: 1.35rem; color: var(--cz-pink); line-height: 1; }
@media (min-width: 992px) { .trust-list { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; } }
.cat-tile { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--cz-radius); overflow: hidden; text-decoration: none; color: var(--cz-ink); box-shadow: var(--cz-shadow); transition: box-shadow .2s, transform .2s; }
.cat-tile:hover { box-shadow: var(--cz-shadow-hover); transform: translateY(-2px); color: var(--cz-ink); }
.cat-tile .cat-img { position: relative; aspect-ratio: 4 / 3; background: var(--cz-blush); overflow: hidden; }
.cat-tile .cat-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10%; mix-blend-mode: multiply; }
.cat-tile .cat-body { padding: .75rem .9rem; display: flex; flex-direction: column; gap: .1rem; }
.cat-tile h3 { font-size: .95rem; margin: 0; }
.cat-tile .count { font-size: .75rem; color: var(--cz-muted); }

/* ---------- Product grid + card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 576px) { .product-grid { gap: 1rem; } }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }
.product-grid.is-wide { }
@media (min-width: 1400px) { .product-grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.p-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--cz-radius); box-shadow: var(--cz-shadow); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; height: 100%; }
.p-card:hover { box-shadow: var(--cz-shadow-hover); }
.p-card .p-media { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid var(--cz-line); overflow: hidden; }
.p-card .p-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 2%; transition: transform .35s ease; }
.p-card:hover .p-media img { transform: scale(1.04); }
.p-card .p-badge { position: absolute; top: .5rem; left: .5rem; font-size: .75rem; font-weight: 600; padding: .2rem .5rem; border-radius: 999px; background: var(--cz-ink); color: #fff; }
.p-card .p-body { display: flex; flex-direction: column; gap: .2rem; padding: .7rem .75rem .8rem; flex: 1; }
.p-card .p-brand { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cz-muted); font-weight: 600; min-height: 1em; }
.p-card .p-name { font-size: .875rem; font-weight: 500; line-height: 1.35; margin: 0; color: var(--cz-ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.p-card .p-name a { color: inherit; text-decoration: none; }
.p-card .p-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.p-card .p-price { font-weight: 700; font-size: 1rem; color: var(--cz-ink); margin-top: auto; padding-top: .35rem; }
.p-card .p-stock { font-size: .75rem; color: var(--cz-muted); }
.p-card form { position: relative; z-index: 2; margin-top: .5rem; }
.p-card .btn { width: 100%; min-height: 40px; font-size: .8125rem; padding: .4rem .5rem; }
@media (min-width: 768px) {
    .p-card .p-body { padding: .9rem 1rem 1rem; }
    .p-card .p-name { font-size: .9375rem; }
    .p-card .p-price { font-size: 1.05rem; }
    .p-card .btn { font-size: .875rem; }
}
.p-card.is-oos .p-media img { opacity: .55; }

/* ---------- Brand chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: .4rem 1rem; border: 1px solid var(--cz-line); border-radius: 999px; background: #fff; color: var(--cz-ink); text-decoration: none; font-size: .875rem; font-weight: 500; }
.chip:hover, .chip.is-active { border-color: var(--cz-pink); color: var(--cz-pink-dark); background: var(--cz-blush); }

/* ---------- Listing page ---------- */
.listing-head { padding: 1rem 0 .5rem; }
.listing-head h1 { margin-bottom: .4rem; }
.listing-head .intro { color: var(--cz-muted); max-width: 46rem; margin: 0; }
.listing-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; padding: .75rem 0 1rem; }
.listing-toolbar .result-count { font-size: .875rem; color: var(--cz-muted); }
.listing-toolbar form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.listing-toolbar select { height: 40px; border-radius: 999px; border: 1px solid var(--cz-line); padding: 0 2rem 0 .9rem; font-size: .875rem; background-color: #fff; max-width: 100%; }
.listing-toolbar .form-check { margin: 0; font-size: .875rem; min-height: 40px; display: flex; align-items: center; gap: .4rem; padding-left: 0; }
.listing-toolbar .form-check-input { width: 1.2rem; height: 1.2rem; margin: 0; float: none; accent-color: var(--cz-pink); }
.listing-toolbar .form-check-label { cursor: pointer; padding: .5rem 0; }
.cat-scroller { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: thin; }
.cat-scroller .chip { white-space: nowrap; }
.empty-state { text-align: center; background: #fff; border-radius: var(--cz-radius); padding: 3rem 1rem; box-shadow: var(--cz-shadow); }
.empty-state .bi { font-size: 2.5rem; color: var(--cz-pink); }

.pagination { --bs-pagination-color: var(--cz-ink); --bs-pagination-active-bg: var(--cz-pink); --bs-pagination-active-border-color: var(--cz-pink); --bs-pagination-hover-color: var(--cz-pink-dark); --bs-pagination-focus-box-shadow: 0 0 0 3px rgba(233, 30, 99, .2); justify-content: center; flex-wrap: wrap; }

/* ---------- Guide / FAQ ---------- */
.guide-card { background: #fff; border-radius: var(--cz-radius); padding: 1.25rem; box-shadow: var(--cz-shadow); height: 100%; }
.guide-card h3 { font-size: 1rem; margin-bottom: .4rem; }
.guide-card p { color: var(--cz-muted); font-size: .9375rem; margin: 0; }
.faq-list { max-width: 820px; }
.faq-list details { background: #fff; border: 1px solid var(--cz-line); border-radius: var(--cz-radius-sm); margin-bottom: .6rem; }
.faq-list summary { list-style: none; cursor: pointer; padding: 1rem 3rem 1rem 1.1rem; font-weight: 600; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--cz-pink); font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list .faq-a { padding: 0 1.1rem 1rem; color: var(--cz-muted); }
.faq-list .faq-a p:last-child { margin-bottom: 0; }

/* ---------- Product detail ---------- */
.pdp { padding: 1rem 0 2rem; }
.pdp-grid { display: grid; gap: 1.5rem; }
@media (min-width: 992px) { .pdp-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; align-items: start; } }
.gallery-main { position: relative; background: #fff; border-radius: var(--cz-radius); box-shadow: var(--cz-shadow); aspect-ratio: 1 / 1; overflow: hidden; }
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 2%; }
.gallery-main button { all: unset; cursor: zoom-in; position: absolute; inset: 0; }
.gallery-main button:focus-visible { outline: 3px solid var(--cz-pink); outline-offset: -3px; }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .75rem; overflow-x: auto; padding-bottom: .25rem; }
.gallery-thumbs button { flex: 0 0 auto; width: 68px; height: 68px; border-radius: var(--cz-radius-sm); border: 2px solid var(--cz-line); background: #fff; padding: 4px; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--cz-pink); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 992px) { .pdp-gallery { position: sticky; top: 140px; } }

.buy-box .p-brand-link { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cz-berry); text-decoration: none; }
.buy-box h1 { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2rem); margin: .35rem 0 .6rem; }
.buy-box .lead-desc { color: var(--cz-muted); }
.buy-box .price { font-size: 1.75rem; font-weight: 700; margin: .5rem 0; }
.stock-pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .8125rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px; }
.stock-pill.in { background: #e6f4ec; color: var(--cz-success); }
.stock-pill.low { background: #fff4e0; color: #8a5300; }
.stock-pill.out { background: #fbe9e8; color: var(--cz-danger); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--cz-line); border-radius: 999px; background: #fff; height: 48px; }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.2rem; color: var(--cz-ink); border-radius: 50%; }
.qty button:hover { background: var(--cz-blush); }
.qty input { width: 48px; border: 0; text-align: center; font-weight: 600; font-size: 16px; -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.buy-actions { display: grid; grid-template-columns: auto 1fr; gap: .6rem; margin: 1rem 0; }
.buy-actions .btn-buy-now { grid-column: 1 / -1; }
.buy-actions .btn { white-space: nowrap; }
@media (max-width: 359.98px) {
    .buy-actions { grid-template-columns: 1fr; }
    .buy-actions .qty { justify-self: start; }
}
.info-list { list-style: none; padding: 0; margin: 1rem 0 0; border-top: 1px solid var(--cz-line); }
.info-list li { display: flex; gap: .75rem; padding: .8rem 0; border-bottom: 1px solid var(--cz-line); font-size: .9rem; }
.info-list .bi { color: var(--cz-pink); font-size: 1.2rem; line-height: 1.2; }
.info-list strong { display: block; }
.info-list span { color: var(--cz-muted); }

.mobile-buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020; background: #fff; border-top: 1px solid var(--cz-line); padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: .75rem; box-shadow: 0 -6px 20px rgba(0,0,0,.06); transform: translateY(110%); transition: transform .25s ease; }
.mobile-buy-bar.is-visible { transform: none; }
.mobile-buy-bar .price { font-weight: 700; font-size: 1.05rem; }
.mobile-buy-bar .btn { flex: 1; }
@media (min-width: 992px) { .mobile-buy-bar { display: none; } }

.prose { max-width: 760px; font-size: 1rem; line-height: 1.75; }
.prose h2 { font-size: 1.3rem; margin: 1.75rem 0 .75rem; }
.prose h3 { font-size: 1.1rem; margin: 1.25rem 0 .5rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .35rem; }
.prose img { border-radius: var(--cz-radius-sm); height: auto; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--cz-line); padding: .5rem .75rem; }
.content-card { background: #fff; border-radius: var(--cz-radius); box-shadow: var(--cz-shadow); padding: 1.25rem; }
@media (min-width: 768px) { .content-card { padding: 2rem 2.25rem; } }

/* ---------- Cart & checkout ---------- */
.cart-layout { display: grid; gap: 1.25rem; }
@media (min-width: 992px) { .cart-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 2rem; align-items: start; } .summary-card { position: sticky; top: 140px; } }
.cart-line { display: grid; grid-template-columns: 76px 1fr; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--cz-line); }
.cart-line:first-child { padding-top: 0; }
.cart-line img { width: 76px; height: 76px; object-fit: contain; background: #fff; border: 1px solid var(--cz-line); border-radius: var(--cz-radius-sm); padding: 4px; }
.cart-line h2 { font-size: .95rem; font-weight: 600; margin: 0 0 .2rem; }
.cart-line h2 a { color: var(--cz-ink); text-decoration: none; }
.cart-line .line-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .5rem; }
.cart-line .qty { height: 40px; }
.cart-line .qty button { width: 36px; height: 36px; }
.cart-line .qty input { width: 40px; }
.link-remove { border: 0; background: none; color: var(--cz-muted); font-size: .8125rem; text-decoration: underline; padding: .6rem .5rem .6rem 0; min-height: 40px; }
.link-remove:hover { color: var(--cz-danger); }
.summary-card { background: #fff; border-radius: var(--cz-radius); box-shadow: var(--cz-shadow); padding: 1.25rem; }
.summary-row { display: flex; justify-content: space-between; padding: .45rem 0; font-size: .9375rem; }
.summary-row.total { border-top: 1px solid var(--cz-line); margin-top: .5rem; padding-top: .9rem; font-weight: 700; font-size: 1.15rem; }
.ship-progress { background: var(--cz-blush); border-radius: var(--cz-radius-sm); padding: .75rem .9rem; font-size: .8125rem; margin-bottom: 1rem; }
.ship-progress .bar { height: 6px; background: #fff; border-radius: 999px; overflow: hidden; margin-top: .45rem; }
.ship-progress .bar span { display: block; height: 100%; background: var(--cz-pink); border-radius: 999px; }
.free-tag { color: var(--cz-success); font-weight: 700; }

.form-control, .form-select { border-radius: var(--cz-radius-sm); border-color: #ded3d8; min-height: 48px; font-size: 16px; }
textarea.form-control { min-height: 96px; }
.form-control:focus, .form-select:focus { border-color: var(--cz-pink); box-shadow: 0 0 0 3px rgba(233, 30, 99, .15); }
.form-label { font-weight: 600; font-size: .875rem; }
.pay-option { display: flex; gap: .85rem; align-items: flex-start; border: 1.5px solid var(--cz-line); border-radius: var(--cz-radius-sm); padding: 1rem; cursor: pointer; background: #fff; margin-bottom: .6rem; }
.pay-option:has(input:checked) { border-color: var(--cz-pink); background: #fff7fa; }
.pay-option input { margin-top: .3rem; accent-color: var(--cz-pink); width: 18px; height: 18px; flex: 0 0 auto; }
.pay-option strong { display: block; }
.pay-option .pay-icon { font-size: 1.35rem; color: var(--cz-berry); line-height: 1.2; flex: 0 0 auto; }
.pay-option small { color: var(--cz-muted); }
.checkout-steps { display: flex; gap: .5rem; font-size: .8125rem; color: var(--cz-muted); margin-bottom: 1rem; flex-wrap: wrap; }
.checkout-steps .on { color: var(--cz-pink-dark); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--cz-ink); color: #d8d0d4; padding: 3rem 0 calc(1.5rem + env(safe-area-inset-bottom)); font-size: .9rem; margin-top: 3rem; }
.site-footer h2 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .9rem; font-family: var(--cz-font); }
.site-footer a { color: #d8d0d4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-brand img { height: 26px; background: #fff; padding: 6px 10px; border-radius: 8px; box-sizing: content-box; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
.footer-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } .footer-grid > :first-child { grid-column: auto; } }
.footer-social { display: flex; gap: .5rem; margin-top: 1rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); font-size: 1.1rem; }
.footer-social a:hover { background: var(--cz-pink); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.25rem; font-size: .8125rem; color: #b9afb4; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* ---------- WhatsApp ---------- */
body.no-wa .wa-float { display: none; }
.wa-float { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 1025; width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.wa-float:hover { color: #fff; background: #1ebe5b; }
.wa-float svg { width: 28px; height: 28px; }
body.has-buy-bar .wa-float { bottom: calc(5.25rem + env(safe-area-inset-bottom)); }
@media (min-width: 992px) { body.has-buy-bar .wa-float { bottom: 1.25rem; } }

/* ---------- Brands & concerns ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 768px) { .brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .brand-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.brand-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; background: #fff; border-radius: var(--cz-radius); box-shadow: var(--cz-shadow); padding: 1rem .75rem; text-decoration: none; color: var(--cz-ink); transition: box-shadow .2s; }
.brand-tile:hover { box-shadow: var(--cz-shadow-hover); color: var(--cz-ink); }
.brand-img { width: 88px; height: 88px; display: grid; place-items: center; }
.brand-img img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-weight: 600; }
.brand-meta { font-size: .75rem; color: var(--cz-muted); }
.concern-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 992px) { .concern-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.concern-tile { display: flex; gap: .8rem; align-items: center; background: #fff; border: 1px solid var(--cz-line); border-radius: var(--cz-radius); padding: 1rem; text-decoration: none; color: var(--cz-ink); transition: border-color .2s, box-shadow .2s; }
.concern-tile:hover { border-color: var(--cz-pink); box-shadow: var(--cz-shadow); color: var(--cz-ink); }
.concern-tile .bi { font-size: 1.6rem; color: var(--cz-pink); flex: 0 0 auto; }
.concern-tile strong { display: block; font-size: .95rem; line-height: 1.25; }
.concern-tile small { color: var(--cz-muted); }
.trust-band { background: #fff; border: 1px solid var(--cz-blush-2); border-radius: var(--cz-radius); padding: 1rem 1.25rem; }
.trust-band ul { display: grid; gap: .75rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .trust-band ul { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.trust-band li { display: flex; gap: .6rem; font-size: .875rem; color: var(--cz-muted); }
.trust-band li strong { display: block; color: var(--cz-ink); }
.trust-band .bi { font-size: 1.4rem; color: var(--cz-success); }

/* ---------- Blog ---------- */
.blog-toolbar { display: flex; flex-direction: column; gap: .75rem; margin: .5rem 0 1.5rem; }
@media (min-width: 768px) { .blog-toolbar { flex-direction: row; align-items: center; justify-content: space-between; } }
.blog-search { position: relative; flex: 0 0 auto; width: 100%; max-width: 320px; }
.blog-search input { width: 100%; height: 44px; border-radius: 999px; border: 1px solid var(--cz-line); background: #fff; padding: 0 3rem 0 1rem; font-size: 16px; }
.blog-search input:focus { outline: none; border-color: var(--cz-pink); box-shadow: 0 0 0 3px rgba(233, 30, 99, .15); }
.blog-search button { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--cz-pink); color: #fff; }

.post-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--cz-blush); }
.post-cover--blank { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; color: var(--cz-berry); background: linear-gradient(135deg, #fde7ef 0%, #fff4f0 100%); font-weight: 600; font-size: .875rem; text-align: center; padding: 1rem; }
.post-cover--blank .bi { font-size: 2rem; color: var(--cz-pink); }

.post-lead { display: grid; background: #fff; border-radius: var(--cz-radius); overflow: hidden; box-shadow: var(--cz-shadow); margin-bottom: 1.5rem; }
.post-lead-body { padding: 1.25rem; }
.post-lead h2 { font-family: var(--cz-display); font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); margin: .25rem 0 .6rem; }
.post-lead h2 a, .post-card h2 a, .post-card h3 a { color: var(--cz-ink); text-decoration: none; }
.post-lead h2 a:hover, .post-card h2 a:hover, .post-card h3 a:hover { color: var(--cz-pink-dark); }
@media (min-width: 768px) { .post-lead { grid-template-columns: 1.1fr 1fr; align-items: center; } .post-lead-body { padding: 2rem 2.25rem; } .post-lead-media .post-cover { height: 100%; aspect-ratio: auto; min-height: 300px; } }
.post-meta { font-size: .8125rem; color: var(--cz-muted); }

.post-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 576px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
.post-card { background: #fff; border-radius: var(--cz-radius); overflow: hidden; box-shadow: var(--cz-shadow); height: 100%; display: flex; flex-direction: column; transition: box-shadow .2s; }
.post-card:hover { box-shadow: var(--cz-shadow-hover); }
.post-card .post-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.post-card h2, .post-card h3 { font-size: 1.05rem; line-height: 1.35; margin: .1rem 0 .3rem; }

.article { padding-bottom: 2rem; }
.article-head { max-width: 820px; padding: 1rem 0 1.25rem; }
.article-head h1 { font-family: var(--cz-display); font-size: clamp(1.75rem, 1.25rem + 2.2vw, 2.75rem); margin: .3rem 0 .75rem; }
.article-byline { color: var(--cz-muted); font-size: .875rem; margin: 0; }
.article-byline strong { color: var(--cz-ink); font-weight: 600; }
.article-cover { margin: 0 0 1.5rem; border-radius: var(--cz-radius); overflow: hidden; }
.article-cover .post-cover { aspect-ratio: 21 / 9; }
.article-layout { display: grid; gap: 2rem; }
@media (min-width: 992px) { .article-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 3rem; } }
.article-main { min-width: 0; max-width: 760px; }
.article-body { max-width: none; }
.article-body h2, .article-body h3 { scroll-margin-top: 150px; }
.article-body hr { border: 0; border-top: 1px solid var(--cz-line); margin: 2rem 0; opacity: 1; }
.article-body blockquote { border-left: 4px solid var(--cz-pink); background: #fff; padding: .75rem 1rem; border-radius: 0 var(--cz-radius-sm) var(--cz-radius-sm) 0; }

.quick-answer { background: #fff; border: 1px solid var(--cz-blush-2); border-left: 4px solid var(--cz-pink); border-radius: var(--cz-radius-sm); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.quick-answer h2 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cz-berry); margin: 0 0 .4rem; font-family: var(--cz-font); }
.quick-answer p { margin: 0; font-size: 1.05rem; line-height: 1.6; }

.toc { background: #fff; border: 1px solid var(--cz-line); border-radius: var(--cz-radius-sm); padding: 1rem 1.25rem; }
.toc summary, .toc .toc-title { font-weight: 700; font-size: .875rem; cursor: pointer; margin: 0; }
.toc ol { margin: .6rem 0 0; padding-left: 1.1rem; font-size: .9rem; }
.toc li { margin-bottom: .35rem; }
.toc a { color: var(--cz-ink); text-decoration: none; }
.toc a:hover { color: var(--cz-pink-dark); text-decoration: underline; }
.toc-inline { margin-bottom: 1.5rem; }
.toc-sticky { display: none; }
@media (min-width: 992px) {
    .toc-inline { display: none; }
    .toc-sticky { display: block; position: sticky; top: 150px; max-height: calc(100vh - 180px); overflow-y: auto; }
}
.aside-help { background: var(--cz-blush); border-radius: var(--cz-radius-sm); padding: 1rem 1.1rem; margin-top: 1rem; }

.article-products { margin-top: 2.5rem; }
.article-products .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .article-products .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.article-sources { margin-top: 2.5rem; font-size: .875rem; }
.article-sources h2 { font-size: 1.1rem; }
.article-sources ol { padding-left: 1.2rem; }
.article-sources a { word-break: break-word; }
.article-note { margin-top: 2rem; font-size: .8125rem; color: var(--cz-muted); border-top: 1px solid var(--cz-line); padding-top: 1rem; }

/* ---------- Auth & error pages ---------- */
.auth-wrap { max-width: 440px; margin: 0 auto; padding: 2rem 0 1rem; }
.auth-card { background: #fff; border-radius: var(--cz-radius); box-shadow: var(--cz-shadow); padding: 1.5rem; }
@media (min-width: 576px) { .auth-card { padding: 2rem; } }
.auth-card h1 { font-size: 1.5rem; margin-bottom: .25rem; }
.auth-alt { text-align: center; font-size: .9rem; margin-top: 1rem; }
.auth-guest { text-align: center; font-size: .8125rem; color: var(--cz-muted); margin-top: .5rem; }
.error-page { text-align: center; padding: 3rem 0 2rem; max-width: 560px; margin: 0 auto; }
.error-page .code { font-family: var(--cz-display); font-size: 4.5rem; line-height: 1; color: var(--cz-pink); }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 1040; max-width: 560px; background: #fff; color: var(--cz-ink); border-radius: var(--cz-radius); box-shadow: 0 10px 40px rgba(41, 37, 42, .2); padding: 1rem 1.1rem; font-size: .875rem; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 0 .75rem; }
.cookie-actions { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }
.cookie-actions .btn { min-height: 40px; }
@media (min-width: 768px) { .cookie-banner { left: 1.5rem; right: auto; } }
.link-btn { border: 0; background: none; padding: 0; color: #d8d0d4; text-decoration: none; font: inherit; cursor: pointer; }
.link-btn:hover { color: #fff; text-decoration: underline; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
