/* ==========================================================================
   Zaguar storefront theme — design layer on top of Bootstrap 5
   ========================================================================== */

/* Global: never allow horizontal page overflow (mobile safety net). */
html, body { overflow-x: clip; }

:root {
    --brand: #e6395f;
    --brand-dark: #c22d50;
    --brand-soft: #fdeef4;
    --accent: #10a874;
    --accent-soft: #d7f3e7;
    --navy: #14203c;

    --ink: #17213b;
    --body: #3d4663;
    --muted: #6b7280;
    --line: #e6e8ef;
    --line-soft: #eef0f6;
    --bg: #f7f7fa;
    --surface: #ffffff;

    --radius-sm: .4rem;
    --radius: .65rem;
    --radius-lg: 1rem;

    --shadow-sm: 0 1px 2px rgba(20, 32, 60, .06);
    --shadow-md: 0 6px 18px rgba(20, 32, 60, .08);
    --shadow-lg: 0 14px 34px rgba(20, 32, 60, .12);

    --ring: 0 0 0 .2rem rgba(230, 57, 95, .16);
}

/* ---------- Base ---------- */

body {
    font-family: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    background: var(--bg);
    color: var(--body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--ink);
    letter-spacing: -.015em;
    font-weight: 700;
}

main { min-height: 55vh; }

a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }

::selection { background: var(--brand); color: #fff; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.text-muted { color: var(--muted) !important; }
.lead { color: var(--body); }

hr { border-color: var(--line); opacity: 1; }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.site-header .navbar-brand {
    color: var(--brand);
    letter-spacing: -.03em;
    font-size: 1.45rem;
}
.site-header .navbar-brand:hover { color: var(--brand-dark); }

.site-header .form-control[type="search"] {
    border-radius: 999px;
    background: #f1f2f7;
    border-color: transparent;
    padding-left: 1.1rem;
    transition: background .15s, border-color .15s, box-shadow .15s;
}
.site-header .form-control[type="search"]:focus {
    background: #fff;
    border-color: var(--brand);
    box-shadow: var(--ring);
}

.category-nav { scrollbar-width: none; }
.category-nav::-webkit-scrollbar { display: none; }
.category-nav a {
    position: relative;
    color: #4b5563;
    font-size: .92rem;
    padding-bottom: 2px;
    transition: color .15s;
}
.category-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: -4px;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
    transition: right .18s ease-out;
}
.category-nav a:hover { color: var(--brand); }
.category-nav a:hover::after { right: 0; }
.category-nav a.fw-bold { color: var(--ink); }
/* Hover dropdown — link stays clickable, menu opens on hover */
.hover-dropdown .dropdown-menu { display: none; margin-top: 0; border-radius: var(--radius-sm); }
.hover-dropdown:hover .dropdown-menu, .hover-dropdown:focus-within .dropdown-menu { display: block; }

/* Mobile/offcanvas menu drawer */
.menu-list { display: flex; flex-direction: column; }
.menu-item {
    display: flex; align-items: center; gap: .7rem;
    padding: .75rem 1.25rem;
    color: var(--ink); text-decoration: none;
    font-weight: 500; font-size: .95rem;
    border-left: 3px solid transparent;
    transition: background .12s, border-color .12s, color .12s;
}
.menu-item svg { color: #6b7280; flex-shrink: 0; }
.menu-item:hover { background: var(--brand-soft); color: var(--brand); }
.menu-item.active { border-left-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.menu-item.active svg { color: var(--brand); }

/* ---------- Buttons ---------- */

.btn {
    border-radius: var(--radius);
    font-weight: 600;
    letter-spacing: .005em;
    transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .btn:focus { box-shadow: var(--ring); }

.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background: var(--brand-dark) !important;
    border-color: var(--brand-dark) !important;
}
.btn-outline-primary { color: var(--brand); border-color: var(--brand); }
.btn-outline-primary:hover { background: var(--brand); border-color: var(--brand); }
.btn-outline-primary:focus, .btn-check:focus + .btn-outline-primary { box-shadow: var(--ring); }

.btn-lg { border-radius: var(--radius); }
.btn-sm { border-radius: var(--radius-sm); }

.btn-link { text-decoration: none; }
.btn-link:hover { text-decoration: underline; }

/* ---------- Cards / surfaces ---------- */

.card {
    border-color: var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.card-body { padding: 1.1rem 1.25rem; }

/* ---------- Product cards ---------- */

.product-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    transition: box-shadow .2s, transform .2s, border-color .2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: #d7dae4;
}
.product-card .card-img {
    aspect-ratio: 1;
    object-fit: cover;
    background: #f3f4f6;
    width: 100%;
    transition: transform .35s ease;
}
.product-card:hover .card-img { transform: scale(1.04); }
.product-card .card-body { padding: .85rem .95rem 1rem; flex: 1; }
.product-card .price { font-weight: 700; color: var(--brand); font-size: 1.02rem; letter-spacing: -.01em; }
.product-card .compare { text-decoration: line-through; color: #9ca3af; font-size: .85rem; margin-left: .35rem; }
.product-card a { color: inherit; }

/* ---------- Hero ---------- */

.hero-slide {
    min-height: 400px;
    border-radius: 1.25rem;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}
.hero-slide::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(17,24,39,.28), transparent 60%);
}
.hero-slide .hero-inner {
    position: relative;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    max-width: 540px;
    margin-left: 2.5rem;
    box-shadow: var(--shadow-md);
}
.hero-slide .hero-inner h1 { letter-spacing: -.03em; }
.hero-slide.hero-dark .hero-inner { background: rgba(17, 24, 39, .78); color: #fff; }
.hero-slide.hero-dark .hero-inner h1 { color: #fff; }

.carousel-item { border-radius: 1.25rem; overflow: hidden; }
.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: rgba(17, 24, 39, .45);
    border-radius: 50%;
    padding: 1.1rem;
    background-size: 55%;
}

/* ---------- Product page ---------- */

.pdp-gallery img.main-image {
    width: 100%;
    border-radius: var(--radius-lg);
    cursor: zoom-in;
    border: 1px solid var(--line);
}
.pdp-gallery .thumbs img {
    width: 72px; height: 72px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--line);
    cursor: pointer;
    transition: border-color .15s, opacity .15s;
}
.pdp-gallery .thumbs img:hover { opacity: .85; }
.pdp-gallery .thumbs img.active { border-color: var(--brand); }

.pdp-carousel { user-select: none; }
.pdp-carousel .main-image { margin-bottom: .5rem; transition: opacity .18s; }
.pdp-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    border: none; background: rgba(255,255,255,.92); color: var(--ink);
    font-size: 1.5rem; line-height: 1; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 3px 14px rgba(0,0,0,.15); cursor: pointer; z-index: 2;
    transition: background .15s, transform .15s;
}
.pdp-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.pdp-nav.prev { left: 10px; }
.pdp-nav.next { right: 10px; }
.pdp-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 2; }
.pdp-dots button { width: 7px; height: 7px; border-radius: 50%; border: none; padding: 0; background: rgba(255,255,255,.65); cursor: pointer; transition: background .15s, transform .15s; }
.pdp-dots button.active { background: var(--brand); transform: scale(1.3); }
.pdp-side-badge { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(15,23,42,.8); color: #fff; font: 600 .62rem Poppins,sans-serif; letter-spacing: .1em; padding: .2rem .55rem; border-radius: 999px; }

/* PDP CTA buttons */
.pdp-cta .btn { border-radius: var(--radius-sm, .5rem); font-weight: 600; letter-spacing: .01em; }
.pdp-buy-now { border-width: 2px; }
.pdp-buy-now:hover, .pdp-buy-now:focus { background: var(--brand); color: #fff; border-color: var(--brand); }
.pdp-cta .btn:disabled { opacity: .75; }
.pdp-custom-btn { white-space: nowrap; }
@media (max-width: 576px) {
    .pdp-cta { flex-wrap: wrap; }
    .pdp-cta .btn { flex: 1 1 45%; }
    .pdp-cta .pdp-custom-btn { flex-basis: 100%; }
}
/* Wishlist icon button beside product title */
.pdp-wish-btn { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 1.5px solid #e5e7eb; border-radius: 50%; background: #fff; color: #e0244c; transition: transform .15s, box-shadow .15s; }
.pdp-wish-btn:hover { transform: scale(1.08); box-shadow: 0 4px 12px rgba(224,36,76,.2); }
.pdp-wish-btn.active, .pdp-wish-btn[aria-pressed="true"] { background: #e0244c; border-color: #e0244c; }
.pdp-wish-btn.active svg path, .pdp-wish-btn[aria-pressed="true"] svg path { fill: #fff; stroke: #fff; }

.pdp-price { font-size: 1.8rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.pdp-price .compare { font-size: 1.1rem; color: #9ca3af; text-decoration: line-through; font-weight: 400; margin-left: .5rem; }
.pdp-price .save { color: #059669; font-size: .92rem; font-weight: 600; margin-left: .5rem; }

.swatch {
    display: inline-flex; align-items: center; gap: .4rem;
    border: 1.5px solid #d1d5db;
    border-radius: 999px;
    padding: .3rem .85rem;
    cursor: pointer;
    font-size: .85rem;
    background: #fff;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.swatch:hover { border-color: var(--brand); }
.swatch input { display: none; }
.swatch:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-soft);
    box-shadow: 0 0 0 1px var(--brand) inset;
    font-weight: 600;
}
.swatch .dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }

.size-pill {
    border: 1.5px solid #d1d5db;
    border-radius: var(--radius-sm);
    padding: .4rem .9rem;
    cursor: pointer;
    font-size: .85rem;
    background: #fff;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.size-pill:hover { border-color: var(--brand); }
.size-pill input { display: none; }
.size-pill:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-soft);
    box-shadow: 0 0 0 1px var(--brand) inset;
    font-weight: 600;
}
.size-pill.oos { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.option-unavailable { display: none !important; }

/* Reference PDP: circular color dots, OFF pill, feature icon row */
.pdp-label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.off-pill {
    display: inline-block; margin-left: .6rem;
    background: #e0244c; color: #fff;
    font-size: .75rem; font-weight: 700;
    padding: .15rem .55rem; border-radius: 999px;
    vertical-align: middle;
}
.color-dot { cursor: pointer; position: relative; }
.color-dot input { display: none; }
.color-dot .dot {
    display: block; width: 26px; height: 26px; border-radius: 50%;
    border: 1px solid rgba(0,0,0,.15);
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line);
    transition: box-shadow .12s;
}
.color-dot:hover .dot { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--brand); }
.color-dot:has(input:checked) .dot { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--brand); }
.pdp-feat {
    display: flex; flex-direction: column; align-items: center; gap: .35rem;
    padding: .8rem .4rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
    color: var(--body); text-decoration: none; font-size: .78rem; line-height: 1.15;
    transition: border-color .12s, color .12s, background .12s;
    height: 100%;
}
.pdp-feat svg { color: var(--brand); }
.pdp-feat:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.pdp-feat span { text-align: center; }

.badge-trust {
    display: inline-flex; align-items: center; gap: .45rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    border-radius: var(--radius);
    padding: .4rem .7rem;
    font-size: .8rem;
    font-weight: 500;
}
.offer-row {
    background: #fffbeb;
    border: 1px dashed #f59e0b;
    border-radius: var(--radius);
    padding: .7rem .9rem;
    font-size: .9rem;
}
.offer-row code {
    background: #fff;
    border: 1px solid #fde68a;
    border-radius: var(--radius-sm);
    padding: .05rem .4rem;
    font-weight: 700;
}
.tier-table td, .tier-table th { padding: .35rem .6rem; font-size: .85rem; }
.tier-table th { background: var(--bg); }

/* ---------- Forms ---------- */

.form-control, .form-select {
    border-color: #d8dbe3;
    border-radius: var(--radius-sm);
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand);
    box-shadow: var(--ring);
}
.form-control::placeholder { color: #9ca3af; }
.form-label { font-weight: 600; color: var(--ink); }

.form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}
.form-check-input:focus { box-shadow: var(--ring); border-color: var(--brand); }

.input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-group .form-control:not(:first-child) { border-radius: 0; }

/* ---------- Nav, breadcrumbs, pagination ---------- */

.breadcrumb { font-size: .88rem; --bs-breadcrumb-divider: '›'; }
.breadcrumb a { text-decoration: none; color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb-item.active { color: var(--ink); font-weight: 500; }

.pagination { gap: .25rem; }
.page-link {
    border-radius: var(--radius-sm) !important;
    border-color: var(--line);
    color: var(--body);
    font-weight: 500;
    min-width: 2.4rem;
    text-align: center;
}
.page-link:hover { background: var(--brand-soft); color: var(--brand); border-color: var(--line); }
.page-item.active .page-link { background: var(--brand); border-color: var(--brand); font-weight: 700; }
.page-item.disabled .page-link { color: #b6bac5; }

.list-group-item {
    border-color: var(--line);
    padding: .65rem 1rem;
    transition: background .15s, color .15s;
}
.list-group-item-action:hover { background: var(--brand-soft); color: var(--ink); }
.list-group-item.active {
    background: var(--brand);
    border-color: var(--brand);
    font-weight: 600;
}
.list-group { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }

/* ---------- Alerts / badges / dropdowns / modals / tables ---------- */

.alert { border-radius: var(--radius); border-width: 1px; }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alert-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

.badge { font-weight: 600; letter-spacing: .01em; }
.text-bg-info { background: var(--accent) !important; }
.text-bg-success { background: #059669 !important; }
.text-bg-secondary { background: #6b7280 !important; }

.dropdown-menu {
    border-color: var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: .4rem;
}
.dropdown-item { border-radius: var(--radius-sm); padding: .45rem .75rem; }
.dropdown-item:hover { background: var(--brand-soft); color: var(--ink); }
.dropdown-item:active { background: var(--brand); }

.modal-content { border: none; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.modal-header, .modal-footer { border-color: var(--line-soft); }

.table { --bs-table-hover-bg: #fafafe; }
.table th { color: var(--ink); font-weight: 600; }
.table > :not(caption) > * > * { border-bottom-color: var(--line-soft); }

/* ---------- Order status chips ---------- */

.checkout-summary { position: sticky; top: 5.5rem; }

.status-chip {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    padding: .25rem .65rem;
    border-radius: 999px;
    text-transform: capitalize;
    letter-spacing: .01em;
}
.status-pending_payment { background: #fef3c7; color: #92400e; }
.status-confirmed, .status-packed { background: #dbeafe; color: #1e40af; }
.status-proof_pending { background: #fce7f3; color: #9d174d; }
.status-queued_for_production, .status-in_production, .status-quality_check { background: #e0e7ff; color: #3730a3; }
.status-shipped, .status-out_for_delivery { background: #cffafe; color: #155e75; }
.status-delivered { background: #dcfce7; color: #166534; }
.status-cancelled, .status-failed, .status-cancellation_requested { background: #fee2e2; color: #b91c1c; }
.status-return_requested, .status-returned, .status-refund_pending { background: #ffedd5; color: #9a3412; }
.status-refunded { background: #f3e8ff; color: #6b21a8; }

/* ---------- Design studio ---------- */

.studio-canvas-wrap { position: relative; display: inline-block; }
#print-area-guide { position: absolute; border: 2px dashed rgba(230, 57, 95, .5); pointer-events: none; }
.design-thumb { border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem; background: #fff; }

/* Studio icon toolbar (reference layout) */
.studio-toolbar {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: .85rem;
    padding: .4rem;
    align-self: flex-start;
    box-shadow: 0 1px 3px rgba(16,20,38,.06);
}
.studio-toolbar .tool-btn {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border: none; background: transparent;
    border-radius: .55rem;
    color: #4b5563;
    transition: background .12s, color .12s;
}
.studio-toolbar .tool-btn:hover { background: var(--brand-soft); color: var(--brand); }

/* Reference studio: vertical rail w/ icon+label, front/back pills, text-effect boxes */
.studio-rail {
    background: #fff; border: 1px solid var(--line); border-radius: .85rem;
    padding: .4rem; min-width: 64px;
}
.rail-btn {
    display: flex; flex-direction: column; align-items: center; gap: .2rem;
    width: 54px; padding: .55rem .2rem;
    border: none; background: transparent; border-radius: .6rem;
    color: var(--ink); cursor: pointer;
    transition: background .12s, color .12s;
}
.rail-btn .rail-ic { display: flex; height: 22px; align-items: center; }
.rail-btn .rail-lb { font-size: .64rem; font-weight: 600; letter-spacing: .01em; }
.rail-btn:hover { background: var(--brand-soft); color: var(--brand); }
.rail-btn.active { background: var(--brand); color: #fff; }

.side-pill {
    border: none; background: transparent; border-radius: 999px;
    padding: .35rem 1.3rem; font-size: .85rem; font-weight: 600; color: var(--body);
    transition: background .12s, color .12s;
}
.side-pill.active { background: var(--brand); color: #fff; }

.eff-btn {
    width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: #fff; padding: .45rem .15rem; font-size: .72rem; font-weight: 600;
    color: var(--body); cursor: pointer;
    transition: border-color .12s, background .12s;
}
.eff-btn:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }

/* ---------- Footer ---------- */

.site-footer {
    background: var(--navy);
    color: #9ca3af;
    border-top: none !important;
    margin-top: 4rem !important;
}
.site-footer strong { color: #f3f4f6; font-size: .98rem; letter-spacing: .01em; }
.site-footer a { color: #c3c9d4; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .text-muted { color: #8b93a3 !important; }
.footer-brand .brand-badge { width: 30px; height: 30px; background: var(--brand); border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; }
.footer-brand:hover span { color: var(--brand) !important; transition: color .15s; }
.footer-links li { margin-bottom: .42rem; }
.footer-links a { transition: color .15s, padding-left .15s; }
.footer-links a:hover { padding-left: 4px; color: #fff; }
.footer-policy { columns: 2; column-gap: 1.4rem; }
.footer-policy li { break-inside: avoid; -webkit-column-break-inside: avoid; }
.soc-ic { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.06); color: #c3c9d4; transition: all .18s; }
.soc-ic:hover { background: var(--brand); color: #fff; transform: translateY(-2px); text-decoration: none; }
.footer-bottom { border-top: 1px solid #263041; background: rgba(0,0,0,.18); }
.footer-bottom .small { color: #8b93a3; }
.pay-badge { background: #263041; color: #c3c9d4; border-radius: 6px; font-size: .7rem; padding: .22rem .55rem; font-weight: 600; letter-spacing: .02em; }
@media (max-width: 767.98px) { .footer-policy { columns: 1; } }

/* ---------- Misc polish ---------- */

.text-primary { color: var(--brand) !important; }
.bg-primary { background: var(--brand) !important; }
.bg-light { background: #f1f2f7 !important; }

.empty-state-emoji { filter: saturate(.8); }

img { max-width: 100%; }

/* Smooth-ish scrolling for in-page anchors */
html { scroll-behavior: smooth; }

/* ==========================================================================
   Motion & delight layer
   ========================================================================== */

/* ---------- Scroll reveal ---------- */

/* hidden only when JS is enabled — no-JS/no-IO pages stay fully visible */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .45s ease, transform .45s ease-out;
    transition-delay: var(--d, 0ms);
}
.js [data-reveal].revealed { opacity: 1; transform: none; }
[data-reveal="left"]  { transform: translateX(-22px); }
[data-reveal="right"] { transform: translateX(22px); }
[data-reveal="zoom"]  { transform: scale(.97); }
/* Mobile: horizontal reveals push content past the viewport — use vertical only. */
@media (max-width: 767.98px) {
    [data-reveal="left"], [data-reveal="right"] { transform: translateY(18px); }
}
/* transform:none + no will-change → text re-rasterizes sharp after reveal */
[data-reveal].revealed { opacity: 1; transform: none; }

/* ---------- Announcement ticker ---------- */

.announce-bar {
    background: linear-gradient(90deg, var(--brand-dark), var(--brand) 55%, #ff8f6b);
    background-size: 220% 100%;
    animation: gradShift 12s ease infinite;
    color: #fff;
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .02em;
    overflow: hidden;
}
.announce-bar .marquee {
    display: flex;
    gap: 3.5rem;
    white-space: nowrap;
    padding: .45rem 0;
    animation: marquee 26s linear infinite;
    width: max-content;
}
.announce-bar .marquee span { display: inline-flex; align-items: center; gap: .45rem; }

/* ---------- Animated hero fallback ---------- */

.hero-gradient {
    background: linear-gradient(130deg, #7d1137 0%, #c22d50 35%, #e6395f 62%, #ff8f6b 100%);
    background-size: 260% 260%;
    animation: gradShift 14s ease infinite;
}
.hero-gradient::before { background: none; }
.hero-gradient .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .5;
    animation: blobFloat 9s ease-in-out infinite;
    pointer-events: none;
}
.hero-gradient .blob-1 { width: 380px; height: 380px; background: #ff8fab; top: -15%; right: 8%; }
.hero-gradient .blob-2 { width: 300px; height: 300px; background: #ffb37a; bottom: -20%; right: 30%; animation-delay: -3s; }
.hero-gradient .blob-3 { width: 220px; height: 220px; background: #ffd1dc; top: 20%; right: 45%; animation-delay: -6s; }
.hero-gradient .hero-inner { animation: heroIn .8s cubic-bezier(.22, 1, .36, 1) .15s both; }

/* ---------- Buttons — shine & pop ---------- */

.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: "";
    position: absolute;
    top: 0; left: -80%;
    width: 45%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.35), transparent);
    transform: skewX(-20deg);
    transition: left .55s ease;
}
.btn-primary:hover::after { left: 130%; }

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border-radius: 999px;
    padding: .8rem 1.9rem;
    font-weight: 700;
    transition: transform .18s, box-shadow .18s, background-color .18s;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.btn-cta .arr { transition: transform .18s; }
.btn-cta:hover .arr { transform: translateX(4px); }

/* ---------- Product card upgrades ---------- */

.product-card .img-wrap { position: relative; overflow: hidden; display: block; }
.product-card .card-badge {
    position: absolute;
    top: .65rem; left: .65rem;
    z-index: 2;
    font-size: .68rem;
    font-weight: 700;
    padding: .3rem .6rem;
    border-radius: 999px;
    letter-spacing: .02em;
}
.card-badge.badge-off { background: #dc2626; color: #fff; }
.card-badge.badge-pod { background: rgba(13,148,136,.95); color: #fff; }
.product-card .wish-btn {
    position: absolute;
    top: .55rem; right: .55rem;
    z-index: 2;
    width: 2.1rem; height: 2.1rem;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.92);
    box-shadow: var(--shadow-sm);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .18s, transform .18s, background .15s;
}
.product-card:hover .wish-btn { opacity: 1; transform: none; }
.product-card .wish-btn.wished { opacity: 1; transform: none; color: #dc2626; }
.product-card .quick-cta {
    position: absolute;
    left: .7rem; right: .7rem; bottom: .7rem;
    z-index: 2;
    text-align: center;
    background: rgba(17, 24, 39, .88);
    backdrop-filter: blur(4px);
    color: #fff;
    border-radius: var(--radius);
    padding: .5rem .6rem;
    font-size: .82rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .2s, transform .2s;
}
.product-card:hover .quick-cta { opacity: 1; transform: none; }
.product-card .card-img { animation: imgIn .5s ease both; }

/* ---------- Category tiles ---------- */

.category-tile {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: block;
    border: 1px solid var(--line);
    background: var(--surface);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.category-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d7dae4; }
.category-tile .tile-img {
    aspect-ratio: 1;
    width: 100%;
    object-fit: cover;
    background: #eef0f6;
    transition: transform .4s ease;
}
.category-tile:hover .tile-img { transform: scale(1.07); }
.category-tile .tile-label {
    padding: .65rem .8rem;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    font-size: .9rem;
}
.category-tile .tile-label .arr { opacity: 0; transform: translateX(-4px); transition: .18s; }
.category-tile:hover .tile-label .arr { opacity: 1; transform: none; color: var(--brand); }

/* ---------- Feature / trust strip ---------- */

/* Feature chips — compact pills, modern look */
.feature-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .7rem;
}
.feature-item {
    display: inline-flex;
    gap: .6rem;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .55rem 1.05rem .55rem .65rem;
    position: relative; overflow: hidden;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-item::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.75) 50%, transparent 60%);
    transform: translateX(-120%);
    transition: transform .6s ease;
    pointer-events: none;
}
.feature-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--brand-soft); }
.feature-item:hover::after { transform: translateX(120%); }
.feature-item .icon-tile {
    width: 30px; height: 30px;
    flex: 0 0 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-soft); color: var(--brand);
}
.feature-item .icon-tile svg { width: 15px; height: 15px; }
.feature-item .icon-tile.teal { background: var(--accent-soft); color: var(--accent); }
.feature-item .icon-tile.amber { background: #fef3c7; color: #b45309; }
.feature-item .icon-tile.pink { background: #fce7f3; color: #be185d; }
.feature-item strong { color: var(--ink); font-size: .8rem; font-weight: 600; display: block; line-height: 1.15; }
.feature-item span { font-size: .68rem; color: var(--muted); display: block; line-height: 1.15; }

/* ---------- Section headings ---------- */

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.1rem;
}
.section-head h1, .section-head h2 {
    position: relative;
    padding-bottom: .5rem;
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: -.005em;
}
.section-head h1::after, .section-head h2::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 40px; height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--brand), #ff8f6b);
    transition: width .3s ease;
}
.section-head:hover h1::after, .section-head:hover h2::after { width: 72px; }
.section-head a.view-all {
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    color: var(--brand);
    border: 1.5px solid var(--brand-soft);
    background: #fff;
    padding: .3rem .85rem;
    border-radius: 999px;
    transition: background .15s, color .15s, border-color .15s;
}
.section-head a.view-all:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.section-head a.view-all .arr { transition: transform .18s; }
.section-head a.view-all:hover .arr { transform: translateX(3px); }

/* ---------- CTA band ---------- */

.cta-band {
    position: relative;
    border-radius: 1.4rem;
    padding: 3rem;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(130deg, var(--navy), #8f1033 55%, #e6395f 115%);
}
.cta-band .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .45;
    animation: blobFloat 10s ease-in-out infinite;
    pointer-events: none;
}
.cta-band .blob-a { width: 340px; height: 340px; background: #ff8fab; top: -30%; right: -5%; }
.cta-band .blob-b { width: 260px; height: 260px; background: #ffb37a; bottom: -35%; right: 28%; animation-delay: -4s; }
.cta-band h2 { color: #fff; letter-spacing: -.025em; }
.cta-band .btn-light { color: var(--brand-dark); }

/* ---------- Toasts ---------- */

.toast-stack {
    position: fixed;
    bottom: 1.2rem; right: 1.2rem;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.zg-toast {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: #111827;
    color: #fff;
    border-radius: var(--radius);
    padding: .7rem 1.05rem;
    font-size: .88rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: toastIn .3s cubic-bezier(.22, 1, .36, 1) both;
    max-width: 320px;
}
.zg-toast.out { animation: toastOut .25s ease both; }
.zg-toast .tick {
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--accent);
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 20px;
}
.zg-toast.error .tick { background: #dc2626; }

/* ---------- Back to top ---------- */

.back-top {
    position: fixed;
    bottom: 1.2rem; left: 1.2rem;
    z-index: 1080;
    width: 2.6rem; height: 2.6rem;
    border-radius: 50%;
    border: none;
    background: var(--ink);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .2s, transform .2s, background .15s;
}
.back-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-top:hover { background: var(--brand); }

/* ---------- Header scroll state ---------- */

.site-header { transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: var(--shadow-md); }

/* ---------- Skeleton / image fade ---------- */

@keyframes imgIn { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }

/* ---------- Keyframes ---------- */

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes gradShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes blobFloat { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(-18px, 14px) scale(1.06); } 66% { transform: translate(14px, -12px) scale(.96); } }
@keyframes heroIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }
@keyframes popIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes countPulse { 0% { transform: scale(1); } 40% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* Cart count bounce on add */
.badge.bump { animation: countPulse .4s ease; }

/* ---------- Brand mark ---------- */

.site-header .navbar-brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), #ff8f6b);
    box-shadow: 0 4px 10px rgba(230, 57, 95, .35);
    flex: 0 0 34px;
}

/* ---------- Checkout steps ---------- */

.checkout-steps {
    display: flex; align-items: flex-start; justify-content: center;
    margin-bottom: 1.7rem;
}
.checkout-steps .step {
    display: flex; flex-direction: column; align-items: center; gap: .35rem;
    position: relative; min-width: 78px;
}
.checkout-steps .step .n {
    width: 30px; height: 30px; border-radius: 50%;
    background: #fff; border: 2px solid var(--line); color: var(--muted);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .82rem; z-index: 1;
}
.checkout-steps .step .lbl { font-size: .75rem; color: var(--muted); font-weight: 600; text-align: center; }
.checkout-steps .step::before {
    content: ""; position: absolute; top: 15px;
    left: calc(-50% + 17px); right: calc(50% + 17px);
    height: 2px; background: var(--line);
}
.checkout-steps .step:first-child::before { display: none; }
.checkout-steps .step.done .n { background: var(--brand); border-color: var(--brand); color: #fff; }
.checkout-steps .step.done .lbl, .checkout-steps .step.active .lbl { color: var(--ink); }
.checkout-steps .step.done::before { background: var(--brand); }
.checkout-steps .step.active .n { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }

/* ---------- Order tracking timeline ---------- */

.track-timeline { list-style: none; margin: .4rem 0 0; padding: 0; }
.track-timeline li { position: relative; padding: 0 0 1.35rem 2.4rem; }
.track-timeline li::before {
    content: ""; position: absolute; left: 9px; top: 24px; bottom: -2px;
    width: 2px; background: var(--line);
}
.track-timeline li:last-child::before { display: none; }
.track-timeline li .t-dot {
    position: absolute; left: 0; top: 3px;
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid var(--line); background: #fff;
    display: flex; align-items: center; justify-content: center; color: #fff;
}
.track-timeline li.done .t-dot { background: var(--accent); border-color: var(--accent); }
.track-timeline li.done::before { background: var(--accent); }
.track-timeline li.current .t-dot { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.track-timeline .t-title { font-weight: 600; color: var(--ink); font-size: .92rem; }
.track-timeline li:not(.done):not(.current) .t-title { color: var(--muted); font-weight: 500; }
.track-timeline .t-time { font-size: .78rem; color: var(--muted); }

/* ---------- Qty stepper ---------- */

.qty-stepper {
    display: inline-flex; align-items: center;
    border: 1.5px solid var(--line); border-radius: 999px;
    overflow: hidden; background: #fff;
}
.qty-stepper button {
    width: 32px; height: 32px; border: none; background: transparent;
    color: var(--ink); font-weight: 700; font-size: 1.05rem; line-height: 1;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.qty-stepper button:hover { background: var(--brand-soft); color: var(--brand); }
.qty-stepper input {
    width: 40px; border: none; text-align: center;
    font-weight: 600; font-size: .92rem; color: var(--ink);
    -moz-appearance: textfield; appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper input:focus { outline: none; }

/* ---------- PDP buy card ---------- */

.buy-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.15rem 1.25rem;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

/* ---------- Payment method rows ---------- */

.pay-row {
    display: flex; align-items: center; gap: .6rem;
    border: 1.5px solid var(--line); border-radius: var(--radius);
    padding: .7rem .9rem; margin-bottom: .6rem; cursor: pointer;
    transition: border-color .15s, background .15s;
}
.pay-row:hover { border-color: var(--brand); }
.pay-row:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pay-row .form-check-input { margin: 0; }

/* ---------- Hero — split layout (mockup style) ---------- */

.hero-split {
    display: grid;
    grid-template-columns: 1.02fr 1fr;
    gap: 2rem;
    align-items: center;
    border-radius: 1.4rem;
    padding: 2.4rem 3rem;
    background: #fff;
    border: 1px solid var(--line-soft);
    position: relative;
    overflow: hidden;
    min-height: 400px;
}
.hero-split .eyebrow {
    display: inline-block;
    font-size: .78rem; font-weight: 700; letter-spacing: .22em;
    text-transform: uppercase; color: var(--brand);
    margin-bottom: .7rem;
}
.hero-split h1 {
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    font-weight: 800; letter-spacing: -.03em; line-height: 1.08;
    color: var(--ink); margin-bottom: .9rem;
}
.hero-split h1 .accent { color: var(--brand); }
.hero-split h1 em, .hero-split h1 .accent {
    font-family: "Caveat", "Segoe Script", cursive;
    font-style: normal;
    font-weight: 700;
    font-size: 1.18em;
    letter-spacing: 0;
    background: linear-gradient(90deg, var(--brand) 0%, #ff8f6b 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    display: inline-block;
    transform: rotate(-2deg);
}
.hero-split p { color: var(--body); max-width: 44ch; margin-bottom: 1.5rem; }
.hero-visual {
    position: relative;
    aspect-ratio: 5/4;
    border-radius: 1.2rem;
    overflow: hidden;
    background: linear-gradient(140deg, #e6395f 0%, #ff5f7e 55%, #ff8f6b 100%);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md);
}
.hero-visual img.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-visual .hero-art { color: rgba(255,255,255,.95); }
.hero-visual .float-chip {
    position: absolute; background: rgba(255,255,255,.95); color: var(--ink);
    border-radius: 999px; padding: .4rem .85rem; font-size: .75rem; font-weight: 600;
    box-shadow: var(--shadow-md); display: inline-flex; align-items: center; gap: .4rem;
}
.hero-visual .float-chip.a { top: 1rem; left: 1rem; }
.hero-visual .float-chip.b { bottom: 1rem; right: 1rem; }
.hero-visual .float-chip .ic { color: var(--accent); display: inline-flex; }

/* ---------- Hero — full-card overlay banner ---------- */
.hero-banner {
    position: relative;
    border-radius: 1.4rem;
    overflow: hidden;
    min-height: 460px;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--shadow-md);
}
.hero-banner-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
}
.hero-banner-fallback { background: linear-gradient(140deg, #e6395f 0%, #ff5f7e 55%, #ff8f6b 100%); }
.hero-banner-scrim {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(12,18,34,.78) 0%, rgba(12,18,34,.45) 45%, rgba(12,18,34,.08) 75%),
                linear-gradient(0deg, rgba(12,18,34,.55) 0%, transparent 45%);
}
.hero-banner-copy {
    position: relative; z-index: 2;
    padding: clamp(1.5rem, 4vw, 3rem);
    max-width: 640px;
    color: #fff;
    animation: heroIn .7s cubic-bezier(.22,1,.36,1) .1s both;
}
.hero-banner-copy .eyebrow {
    display: inline-block;
    font-size: .75rem; font-weight: 700; letter-spacing: .22em;
    text-transform: uppercase; color: #ffd1dc;
    margin-bottom: .8rem;
    text-shadow: 0 1px 6px rgba(0,0,0,.35);
}
.hero-banner-copy h1 {
    font-size: clamp(2rem, 4.4vw, 3.3rem);
    font-weight: 800; letter-spacing: -.03em; line-height: 1.06;
    color: #fff; margin-bottom: .9rem;
    text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.hero-banner-copy h1 em, .hero-banner-copy h1 .accent {
    font-family: "Caveat", "Segoe Script", cursive;
    font-style: normal; font-weight: 700; font-size: 1.18em;
    color: #ffd1dc; display: inline-block; transform: rotate(-2deg);
}
.hero-banner-copy p {
    color: rgba(255,255,255,.85); max-width: 46ch; margin-bottom: 1.4rem;
    text-shadow: 0 1px 8px rgba(0,0,0,.4); font-size: 1.02rem;
}
.hero-banner .float-chip {
    position: absolute; z-index: 2;
    background: rgba(255,255,255,.92); color: var(--ink);
    border-radius: 999px; padding: .4rem .85rem; font-size: .75rem; font-weight: 600;
    box-shadow: var(--shadow-md); display: inline-flex; align-items: center; gap: .4rem;
    animation: floaty 5s ease-in-out infinite;
}
.hero-banner .float-chip.a { top: 1.2rem; left: 1.2rem; }
.hero-banner .float-chip.b { top: 1.2rem; right: 1.2rem; animation-delay: -2.5s; }
.hero-banner .float-chip .ic { color: var(--brand); display: inline-flex; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (max-width: 576px) {
    .hero-banner { min-height: 380px; }
    .hero-banner-copy h1 { font-size: 1.75rem; }
}

/* ---------- Categories — circles ---------- */

.cat-row {
    display: flex; gap: 1.1rem;
    overflow-x: auto; padding: .25rem .1rem .6rem;
    scrollbar-width: none;
}
.cat-row::-webkit-scrollbar { display: none; }
.cat-row .cat-circle { flex: 0 0 104px; }

.cat-circle { display: block; text-align: center; text-decoration: none; }
.cat-circle .circle {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: visible;
    background: linear-gradient(135deg, var(--brand-soft), #fff0ea);
    border: 1px solid var(--line);
    transition: transform .25s cubic-bezier(.2,.7,.3,1.4), box-shadow .2s, border-color .2s;
    margin-bottom: .55rem;
}
/* Animated gradient ring on hover */
.cat-circle::before {
    content: ""; position: absolute; inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--brand), #ff8f6b, var(--accent), var(--brand));
    opacity: 0; transition: opacity .2s;
    animation: ringSpin 3s linear infinite;
    z-index: -1;
}
.cat-circle:hover::before { opacity: 1; }
.cat-circle:hover .circle {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 22px rgba(230,57,95,.18);
    border-color: transparent;
}
.cat-circle:hover .lbl { color: var(--brand); }
@keyframes ringSpin { to { transform: rotate(360deg); } }
.cat-circle { position: relative; }
.cat-circle .lbl { font-size: .78rem; font-weight: 500; color: var(--ink); transition: color .15s; }
.cat-circle .circle img { position: relative; z-index: 1; border-radius: 50%; width: 100%; height: 100%; object-fit: cover; }
.cat-circle .circle::before { z-index: 0; border-radius: 50%; }
.cat-circle .circle.more {
    background: #fff;
    border: 1.5px dashed var(--brand);
    color: var(--brand);
}
.cat-circle .circle img { width: 100%; height: 100%; object-fit: cover; }
.cat-circle .circle svg { color: var(--brand); opacity: .85; }
.cat-circle:hover .circle { transform: translateY(-4px) scale(1.03); box-shadow: var(--shadow-md); border-color: #f3c3d2; }
.cat-circle .lbl { font-size: .88rem; font-weight: 600; color: var(--ink); }
.cat-circle:hover .lbl { color: var(--brand); }

/* ---------- Filter sidebar groups ---------- */

.filter-group { border-bottom: 1px solid var(--line-soft); padding: .85rem 0; }
.filter-group:first-of-type { padding-top: .2rem; }
.filter-group:last-of-type { border-bottom: none; }
.filter-group > .fg-title { font-size: .78rem; font-weight: 600; color: var(--ink); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .6rem; }
.fg-check { display: flex; align-items: center; gap: .5rem; font-size: .87rem; color: var(--body); padding: .18rem 0; cursor: pointer; }
.fg-check input { accent-color: var(--brand); width: 15px; height: 15px; margin: 0; }
.fg-check:hover { color: var(--ink); }
.fg-dots { display: flex; flex-wrap: wrap; gap: .45rem; }
.fg-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; padding: 0; }
.fg-dot:hover { box-shadow: 0 0 0 2px var(--brand); }
.fg-dot.active { box-shadow: 0 0 0 2.5px var(--brand); }
.fg-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.fg-pill { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .3rem .7rem; font-size: .8rem; cursor: pointer; background: #fff; color: var(--body); }
.fg-pill:hover { border-color: var(--brand); color: var(--brand); }
.fg-pill.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }

/* Category tree (reference sidebar) */
.filter-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.cat-tree { display: flex; flex-direction: column; margin-bottom: .4rem; }
.cat-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: .5rem .7rem; border-radius: var(--radius-sm);
    font-size: .9rem; color: var(--body); text-decoration: none;
    transition: background .12s, color .12s;
}
.cat-row:hover { background: var(--brand-soft); color: var(--brand); }
.cat-row.active { background: var(--brand); color: #fff; font-weight: 600; }
.cat-row.cat-child { padding-left: 1.6rem; font-size: .85rem; color: var(--body); }
.cat-row .chev { font-size: 1rem; opacity: .6; }

/* Dual-handle price slider (reference) */
.price-slider { position: relative; padding: .4rem 0 .2rem; }
.ps-track { position: relative; height: 4px; background: #e5e8ef; border-radius: 4px; margin: 14px 2px 8px; }
.ps-fill { position: absolute; top: 0; bottom: 0; left: 0; right: 0; background: var(--brand); border-radius: 4px; }
.ps-range {
    -webkit-appearance: none; appearance: none;
    position: absolute; left: 0; right: 0; top: 8px;
    width: 100%; height: 20px; margin: 0; background: transparent; pointer-events: none;
}
.ps-range::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 18px; height: 18px; border-radius: 50%;
    background: #fff; border: 3px solid var(--brand);
    pointer-events: auto; cursor: grab;
    box-shadow: 0 1px 4px rgba(16,20,38,.25);
}
.ps-range::-moz-range-thumb {
    width: 14px; height: 14px; border-radius: 50%;
    background: #fff; border: 3px solid var(--brand);
    pointer-events: auto; cursor: grab;
}
.ps-labels { display: flex; justify-content: space-between; font-size: .78rem; color: var(--body); font-weight: 600; margin-top: 6px; }

/* ---------- Header v2 — minimal icon buttons & expanding search ---------- */

.icon-btn {
    position: relative;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: none; background: transparent;
    color: var(--ink);
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0; text-decoration: none; cursor: pointer;
    transition: background .18s, color .18s, transform .15s;
}
/* Touch devices — minimum 44px tap targets. */
@media (pointer: coarse) {
    .icon-btn { width: 44px; height: 44px; }
    .color-dot .dot { width: 40px; height: 40px; }
    .size-pill { min-width: 46px; min-height: 44px; }
    .pdp-feat span { font-size: .72rem; }
    .qty-stepper button { width: 44px; height: 44px; }
}
.icon-btn:hover, .icon-btn.show {
    color: var(--brand); background: var(--brand-soft);
    transform: translateY(-1px);
}
.nav-search-collapse { animation: navSearchIn .22s ease; }
@keyframes navSearchIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Mobile header — compact icon row so search/cart/bell/login never overflow */
@media (max-width: 767.98px) {
    .site-header .navbar-brand { font-size: 1.1rem !important; margin-right: 0; }
    .site-header .navbar-brand .brand-mark { width: 26px; height: 26px; }
    .site-header nav.ms-auto { gap: 0 !important; }
    .site-header nav.ms-auto .icon-btn { width: 36px; height: 36px; }
    .nav-login { padding: .3rem .55rem; }
    .nav-login .nav-login-label { display: none; }
}
@media (max-width: 380px) {
    .site-header .navbar-brand { font-size: 1rem !important; }
}
.icon-btn .count-badge {
    position: absolute; top: -4px; right: -4px;
    min-width: 17px; height: 17px; padding: 0 4px;
    border-radius: 999px; background: var(--brand); color: #fff;
    font-size: .66rem; font-weight: 700; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(230,57,95,.45);
    border: 2px solid #fff;
}

/* Slide-down search panel */
.search-panel {
    max-height: 0; overflow: hidden;
    transition: max-height .35s cubic-bezier(.22,1,.36,1);
    background: #fff; border-top: 1px solid var(--line-soft);
}
.search-panel.open { max-height: 110px; }
.search-panel form {
    display: flex; align-items: center; gap: .6rem;
    padding: .9rem 0;
}
.search-panel .search-wrap { position: relative; flex: 1; }
.search-panel .form-control {
    border-radius: 999px; padding: .65rem 1.2rem .65rem 2.6rem;
    background: #f3f4f8; border-color: transparent; font-size: .95rem;
    box-shadow: none;
}
.search-panel .form-control:focus { background: #fff; border-color: var(--brand); }
.search-panel .search-ic {
    position: absolute; left: 1rem; top: 50%;
    transform: translateY(-50%); color: var(--muted);
    display: flex; pointer-events: none;
}
.search-panel .btn-search {
    border-radius: 999px; padding: .65rem 1.4rem; font-weight: 600;
}

/* Nav underline — grows from center, gradient */
.category-nav a { font-weight: 500; }
.category-nav a::after {
    left: 50%; right: 50%; height: 2.5px;
    background: linear-gradient(90deg, var(--brand), #ff8f6b);
    transition: left .22s ease-out, right .22s ease-out;
}
.category-nav a:hover::after, .category-nav a.fw-bold::after, .category-nav a.fw-semibold:hover::after { left: 0; right: 0; }

/* ---------- Buttons — depth & lift ---------- */

.btn-primary { box-shadow: 0 4px 14px rgba(230,57,95,.28); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(230,57,95,.36); }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 2px 8px rgba(230,57,95,.3); }
.btn-outline-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(230,57,95,.18); }

/* ---------- Hero micro-motion ---------- */

.hero-split h1 .accent {
    background: linear-gradient(90deg, var(--brand) 0%, #ff8f6b 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.hero-visual .float-chip { animation: chipFloat 4.5s ease-in-out infinite; }
.hero-visual .float-chip.b { animation-delay: -2.2s; }
.hero-split .eyebrow { animation: heroIn .6s cubic-bezier(.22,1,.36,1) .05s both; }
.hero-split h1 { animation: heroIn .7s cubic-bezier(.22,1,.36,1) .15s both; }
.hero-split p { animation: heroIn .7s cubic-bezier(.22,1,.36,1) .25s both; }
.hero-split .d-flex.gap-2 { animation: heroIn .7s cubic-bezier(.22,1,.36,1) .35s both; }
.hero-visual { animation: heroIn .8s cubic-bezier(.22,1,.36,1) .2s both; }

/* ---------- Image skeleton shimmer ---------- */

.product-card .img-wrap::before,
.cat-circle .circle::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, #eef0f6 30%, #f7f8fc 50%, #eef0f6 70%);
    background-size: 200% 100%;
    animation: shimmer 1.7s linear infinite;
}
.product-card .img-wrap img { position: relative; }

/* ---------- Page enter ---------- */

@media (prefers-reduced-motion: no-preference) {
    main > .container > .row, main > .container > h1,
    main > .container > .breadcrumb, main > .container > .checkout-steps {
        animation: pageIn .4s ease both;
    }
}

@keyframes chipFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
    .hero-split { grid-template-columns: 1fr; padding: 1.6rem 1.3rem; min-height: 0; gap: 1.3rem; }
    .hero-visual { aspect-ratio: 16/10; }
    .hero-split h1 { font-size: 2rem; }
    .hero-slide { min-height: 280px; }
    .hero-slide .hero-inner { margin: 1rem; padding: 1.5rem; }
    .pdp-price { font-size: 1.45rem; }
    .site-header .navbar-brand { font-size: 1.25rem; }
    .cta-band { padding: 2rem 1.4rem; }
    .feature-strip { grid-template-columns: 1fr 1fr; }
    .announce-bar .marquee { animation-duration: 18s; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    [data-reveal] { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
