:root {
    --esme-red: #e2001a;
    --esme-red-dark: #b50015;
    --esme-red-rgb: 226, 0, 26;
    --esme-dark: #1c2331;
    --esme-gray: #f4f5f7;
    --esme-border: #e6e8ec;
    --esme-text-muted: #6c757d;
    --esme-topbar-bg: #1c2331;
    --esme-topbar-text: #c9ccd2;
    --esme-footer-bg: #1c2331;
    --esme-footer-text: #b4b7bd;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    background: #fff;
    color: #212529;
}

a { color: var(--esme-red); }
a:hover { color: var(--esme-red-dark); }

.text-muted-esme { color: var(--esme-text-muted); }

/* ---------- Buttons ---------- */
.btn-esme {
    background: var(--esme-red);
    border-color: var(--esme-red);
    color: #fff;
    font-weight: 600;
}
.btn-esme:hover, .btn-esme:focus {
    background: var(--esme-red-dark);
    border-color: var(--esme-red-dark);
    color: #fff;
}
.btn-outline-esme {
    border: 1px solid var(--esme-red);
    color: var(--esme-red);
    font-weight: 600;
    background: #fff;
}
.btn-outline-esme:hover {
    background: var(--esme-red);
    color: #fff;
}

/* ---------- Top promo strip ---------- */
.top-strip {
    width: 100%;
    line-height: 0;
    background: #111;
}
.top-strip-link {
    display: block;
}
.top-strip img {
    width: 100%;
    height: auto;
    max-height: 96px;
    object-fit: cover;
    object-position: center;
    display: block;
}
@media (max-width: 767.98px) {
    .top-strip img {
        max-height: 64px;
    }
}

/* ---------- Top utility bar (merged into header) ---------- */
.cat-nav-topline {
    background: var(--esme-topbar-bg) !important;
    color: var(--esme-topbar-text) !important;
    font-size: .8rem;
}
.cat-nav-topline .container {
    padding-top: .3rem;
    padding-bottom: .3rem;
}
.cat-nav-topline a {
    color: var(--esme-topbar-text) !important;
    text-decoration: none;
}
.cat-nav-topline a:hover { opacity: .8; }
.cat-nav-topline-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    min-width: 0;
}
.cat-nav-topline-links::-webkit-scrollbar { display: none; }
.cat-nav-topline-phone {
    flex: 0 0 auto;
    color: var(--esme-topbar-text) !important;
    font-weight: 700;
    letter-spacing: .03em;
}
.cat-nav-topline-links a p,
.site-footer a p {
    display: inline;
    margin: 0;
}
.cat-nav-topline-links a img,
.site-footer a img {
    max-height: 1.1em;
    width: auto;
    vertical-align: middle;
}

/* ---------- Main header ---------- */
.main-header {
    background: #fff;
    border-bottom: 1px solid var(--esme-border);
}
.brand-logo {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--esme-red) !important;
    text-decoration: none;
    line-height: 1;
}
.brand-logo span { color: var(--esme-dark); }
.brand-tagline {
    font-size: .66rem;
    color: var(--esme-text-muted);
    letter-spacing: .12em;
    text-transform: uppercase;
}
/* ---------- Shop bar (category button + search + account icons) ---------- */
.shop-bar {
    display: flex;
    align-items: stretch;
    gap: .75rem;
    padding: .85rem 0;
    flex-wrap: wrap;
}
.shop-bar-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}
.shop-bar-logo img {
    max-width: 190px;
    max-height: 42px;
    display: block;
}
.shop-bar-logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--esme-red);
    line-height: 1;
}
.shop-bar-search {
    display: flex;
    align-items: stretch;
    flex: 1 1 320px;
    min-width: 0;
    position: relative;
}
.shop-bar-search-select {
    flex: 0 0 auto;
    max-width: 160px;
    border: 2px solid var(--esme-red);
    border-right: 0;
    border-radius: .5rem 0 0 .5rem;
    background: #fff;
    color: var(--esme-dark);
    font-size: .82rem;
    font-weight: 600;
    padding: 0 .5rem;
}
.shop-bar-search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 2px solid var(--esme-red);
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    padding: .5rem .75rem;
    font-size: .9rem;
}
.shop-bar-search-input:focus { outline: none; box-shadow: none; }
.shop-bar-search-btn {
    flex: 0 0 auto;
    border: 0;
    border-radius: 0 .5rem .5rem 0;
    background: var(--esme-red);
    color: #fff;
    padding-inline: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.shop-bar-search-btn:hover { background: var(--esme-red-dark); }
.search-suggestions {
    position: absolute;
    top: calc(100% + .4rem);
    left: 0;
    right: 0;
    z-index: 1080;
    overflow: hidden;
    border: 1px solid var(--esme-border);
    border-radius: .6rem;
    background: #fff;
    box-shadow: 0 14px 32px rgba(28, 35, 49, .18);
}
.search-suggestion {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    padding: .65rem .75rem;
    color: var(--esme-dark);
    text-decoration: none;
}
.search-suggestion + .search-suggestion { border-top: 1px solid var(--esme-border); }
.search-suggestion:hover,
.search-suggestion:focus { background: #f8f9fa; color: var(--esme-dark); outline: none; }
.search-suggestion img {
    width: 64px;
    height: 58px;
    object-fit: contain;
    border-radius: .35rem;
    background: #fff;
}
.search-suggestion-copy { min-width: 0; }
.search-suggestion-name {
    display: block;
    overflow: hidden;
    font-size: .9rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.search-suggestion-brand {
    display: block;
    margin-top: .15rem;
    color: var(--esme-muted);
    font-size: .76rem;
}
.search-suggestion-price {
    color: var(--esme-red);
    font-size: .88rem;
    font-weight: 800;
    white-space: nowrap;
}
.search-suggestions-empty {
    padding: .85rem;
    color: var(--esme-muted);
    font-size: .85rem;
    text-align: center;
}
.shop-bar-actions {
    display: flex;
    align-items: center;
    gap: .25rem;
    flex: 0 0 auto;
}
.shop-bar-account {
    position: relative;
}
.shop-bar-account .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    margin-top: .15rem;
    z-index: 1060;
}
.shop-bar-account .dropdown-menu.show {
    display: block;
}
@media (min-width: 992px) {
    .shop-bar-account:hover > .dropdown-menu {
        display: block;
    }
}
.shop-bar-action {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--esme-dark);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 600;
    padding: .5rem .6rem;
    border-radius: .5rem;
    line-height: 1.2;
}
.shop-bar-action:hover { background: var(--esme-gray); color: var(--esme-red); }
.shop-bar-action .ico {
    position: relative;
    display: inline-flex;
    font-size: 1.2rem;
    line-height: 1;
}
.shop-bar-action--icon { padding: .5rem; }
.shop-bar-badge {
    position: absolute;
    top: -.4rem;
    right: -.5rem;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border-radius: 50%;
    background: var(--esme-red);
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

/* ---------- Category nav (mega menu on non-home pages / mobile panel) ---------- */
.cat-nav {
    width: 100%;
    position: relative;
    z-index: 30;
}
.cat-nav-panel {
    background: var(--esme-red);
}
.cat-nav-list {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 0;
}
.cat-nav-list > .nav-item {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
}
.cat-nav-item {
    display: flex;
    align-items: stretch;
    height: 100%;
}
.cat-nav-item .nav-link {
    flex: 1 1 auto;
}
.cat-nav-expand {
    display: none;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    padding: 0;
}
.cat-nav-expand::before {
    content: "";
    width: .45rem;
    height: .45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .15s ease;
}
.cat-nav .dropdown.is-open > .cat-nav-item .cat-nav-expand::before {
    transform: rotate(-135deg);
    margin-top: .2rem;
}
.cat-nav .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    color: #fff;
    font-weight: 700;
    font-size: clamp(.58rem, .55vw + .32rem, .78rem);
    padding: .65rem .2rem;
    white-space: nowrap;
    text-align: center;
    text-decoration: none;
    line-height: 1.2;
    overflow: hidden;
}
.cat-nav .nav-link > span {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.cat-nav-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex: 0 0 auto;
    display: block;
}
.cat-nav .nav-link:hover,
.cat-nav .dropdown:hover > .cat-nav-item .nav-link,
.cat-nav .dropdown:hover > .nav-link {
    background: var(--esme-red-dark);
    color: #fff;
}
.cat-nav .dropdown-menu {
    border: 0;
    border-radius: 0 0 .5rem .5rem;
    box-shadow: 0 14px 30px rgba(28, 35, 49, .18);
    margin-top: 0;
    max-height: min(70vh, 480px);
    overflow-y: auto;
}
.cat-nav .dropdown-item { font-size: .85rem; padding: .45rem 1.2rem; }
.cat-nav .dropdown-item:hover { color: var(--esme-red); background: var(--esme-gray); }
.cat-nav .dropdown-item.cat-nav-leaf {
    padding-left: 1.75rem;
    font-weight: 500;
    color: #4b5563;
}
@media (min-width: 992px) {
    .cat-nav-list .dropdown:hover > .dropdown-menu { display: block; }
}
@media (max-width: 991.98px) {
    .cat-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1040;
        background: #fff;
        box-shadow: 0 2px 12px rgba(28, 35, 49, .08);
        overflow: visible;
    }
    body.has-fixed-mobile-header {
        padding-top: var(--mobile-header-h, 8.5rem);
    }
    .shop-bar {
        padding: .6rem 0;
        gap: .5rem .75rem;
        background: #fff;
        overflow: visible;
    }
    .shop-bar-logo {
        flex: 1 1 auto;
        order: 1;
    }
    .shop-bar-actions {
        flex: 0 0 auto;
        order: 2;
        gap: 0;
        position: relative;
        z-index: 1060;
    }
    .shop-bar-account .dropdown-menu {
        position: absolute;
        top: calc(100% + .15rem);
        right: 0;
        left: auto;
        min-width: 12.5rem;
        margin: 0;
        border: 1px solid var(--esme-border);
        border-radius: .5rem;
        box-shadow: 0 12px 28px rgba(28, 35, 49, .16);
        background: #fff;
        z-index: 1060;
    }
    .shop-bar-search {
        flex: 1 1 100%;
        order: 3;
    }
    /* iOS zooms focused inputs under 16px — keep search at 16px on phone */
    .shop-bar-search-input,
    .shop-bar-search-select {
        font-size: 16px;
    }
    .cat-nav-panel {
        display: none;
        border-top: 1px solid rgba(255, 255, 255, .18);
        margin-inline: -.75rem;
        max-height: min(70vh, 520px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: var(--esme-red);
    }
    .cat-nav.is-open .cat-nav-panel {
        display: block;
    }
    .cat-nav-list {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        padding: .35rem 0 .65rem;
    }
    .cat-nav-list > .nav-item {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }
    .cat-nav-item {
        width: 100%;
    }
    .cat-nav-expand {
        display: inline-flex;
        border-left: 1px solid rgba(255, 255, 255, .18);
    }
    .cat-nav-list .nav-link {
        justify-content: flex-start;
        text-align: left;
        padding: .75rem 1rem;
        font-size: .88rem;
        white-space: normal;
        overflow: visible;
    }
    .cat-nav-list .nav-link > span {
        overflow: visible;
        text-overflow: unset;
        white-space: normal;
    }
    .cat-nav-list .dropdown-menu {
        display: none;
        position: static !important;
        float: none;
        width: 100%;
        margin: 0;
        padding: .25rem 0 .5rem;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: rgba(0, 0, 0, .14);
        max-height: none;
        overflow: visible;
        transform: none !important;
        inset: auto !important;
    }
    .cat-nav-list .dropdown.is-open > .dropdown-menu {
        display: block;
    }
    .cat-nav-list .dropdown-item {
        color: #fff;
        padding: .5rem 1.25rem;
    }
    .cat-nav-list .dropdown-item:hover {
        color: #fff;
        background: rgba(0, 0, 0, .18);
    }
    .cat-nav-list .dropdown-item.cat-nav-leaf {
        color: rgba(255, 255, 255, .85);
        padding-left: 1.85rem;
    }
    .cat-nav-list .dropdown-divider {
        border-color: rgba(255, 255, 255, .2);
        opacity: 1;
    }
}

/* ---------- Homepage category sidebar (aligned with slider) ---------- */
.cat-nav-toggle-caret {
    width: .45rem;
    height: .45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: auto;
    margin-top: -.15rem;
    flex: 0 0 auto;
}
.home-cat-rail {
    display: none;
    flex-direction: column;
    min-width: 0;
}
.home-cat-rail-head {
    display: flex;
    align-items: center;
    gap: .65rem;
    background: var(--esme-red);
    color: #fff;
    font-weight: 800;
    font-size: .72rem;
    letter-spacing: .02em;
    text-transform: uppercase;
    padding: .85rem 1rem;
    border-radius: .4rem .4rem 0 0;
    line-height: 1.25;
}
.home-cat-rail-icon {
    display: inline-flex;
    flex: 0 0 auto;
}
.home-cat-rail-body {
    background: #fff;
    border: 1px solid var(--esme-border);
    border-top: 0;
    border-radius: 0 0 .45rem .45rem;
    box-shadow: 0 12px 28px rgba(28, 35, 49, .08);
    overflow: visible;
}
.home-cat-rail .cat-nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 0;
    list-style: none;
}
.home-cat-rail .cat-nav-list > .nav-item {
    width: 100%;
    position: relative;
    border-bottom: 1px solid var(--esme-border);
}
.home-cat-rail .cat-nav-list > .nav-item:last-child {
    border-bottom: 0;
}
.home-cat-rail .cat-nav-item {
    display: flex;
    align-items: stretch;
}
.home-cat-rail .nav-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex: 1 1 auto;
    color: var(--esme-dark);
    font-weight: 600;
    font-size: .88rem;
    padding: .78rem 1rem;
    white-space: normal;
    text-decoration: none;
    line-height: 1.25;
}
.home-cat-rail .cat-nav-icon {
    width: 24px;
    height: 24px;
    filter: none;
}
.home-cat-rail .nav-link:hover,
.home-cat-rail .dropdown:hover > .cat-nav-item .nav-link,
.home-cat-rail .dropdown:hover > .nav-link {
    background: #fafbfc;
    color: var(--esme-red);
}
.home-cat-rail .cat-nav-expand {
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #9aa3b2;
    cursor: pointer;
    padding: 0;
}
.home-cat-rail .cat-nav-expand::before {
    content: "";
    width: .45rem;
    height: .45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}
.home-cat-rail .dropdown-menu {
    display: none;
    position: absolute;
    top: 0;
    left: calc(100% - 1px);
    min-width: 240px;
    margin: 0;
    padding: .45rem 0;
    border: 1px solid var(--esme-border);
    border-radius: 0 .45rem .45rem 0;
    box-shadow: 12px 12px 30px rgba(28, 35, 49, .12);
    background: #fff;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    z-index: 50;
}
.home-cat-rail .dropdown:hover > .dropdown-menu,
.home-cat-rail .dropdown.is-open > .dropdown-menu {
    display: block;
}
.home-cat-rail .dropdown-item {
    font-size: .85rem;
    padding: .45rem 1.2rem;
    color: var(--esme-dark);
}
.home-cat-rail .dropdown-item:hover {
    color: var(--esme-red);
    background: var(--esme-gray);
}
.home-cat-rail .dropdown-item.cat-nav-leaf {
    padding-left: 1.75rem;
    font-weight: 500;
    color: #4b5563;
}
.home-cat-rail .dropdown-divider {
    border-color: var(--esme-border);
    opacity: 1;
}
@media (min-width: 992px) {
    body.page-home .cat-nav--home .cat-nav-panel {
        display: none !important;
    }
    body.page-home .home-hero {
        display: grid;
        grid-template-columns: 280px minmax(0, 1fr);
        gap: 1rem;
        align-items: stretch;
    }
    body.page-home .home-cat-rail {
        display: flex !important;
    }
    body.page-home .home-hero-main {
        min-width: 0;
        display: flex;
        flex-direction: column;
    }
    /* Slider yüksekliği soldaki kategoriler kutusunun yüksekliğine uysun. */
    body.page-home .home-hero-main .hero-carousel {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
    body.page-home .home-hero-main .hero-carousel .carousel-inner {
        flex: 1 1 auto;
        min-height: 0;
    }
    body.page-home .home-hero-main .hero-carousel .carousel-item,
    body.page-home .home-hero-main .hero-carousel .carousel-item picture,
    body.page-home .home-hero-main .hero-carousel .carousel-item > a {
        height: 100%;
    }
    body.page-home .home-hero .hero-carousel .carousel-item img {
        height: 100%;
        min-height: 280px;
        border-radius: .55rem;
    }
    body.page-home > main > .container.py-4 {
        padding-top: 1rem;
    }
}
@media (max-width: 991.98px) {
    body.page-home .home-cat-rail {
        display: none !important;
    }
    body.page-home .home-hero {
        display: block;
    }
}

/* ---------- Hero carousel ---------- */
.hero-carousel .carousel-item img {
    width: 100%;
    height: clamp(220px, 32vw, 460px);
    object-fit: cover;
    border-radius: .75rem;
}
.hero-carousel .carousel-indicators [data-bs-target] {
    background-color: var(--esme-red);
}

/* ---------- Section headers ---------- */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.section-head h2 {
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin: 0;
    position: relative;
    padding-left: .85rem;
}
.section-head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10%;
    bottom: 10%;
    width: 4px;
    border-radius: 2px;
    background: var(--esme-red);
}
.section-head .all-link {
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

/* ---------- Product cards ---------- */
.product-card {
    border: 1px solid var(--esme-border);
    border-radius: .75rem;
    overflow: hidden;
    height: 100%;
    transition: transform .15s ease, box-shadow .15s ease;
    background: #fff;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(28, 35, 49, .12);
}
.product-card .img-wrap {
    background: #fff;
    display: block;
    position: relative;
}
.product-card .img-wrap img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: .75rem;
}
.product-card-image-link {
    display: block;
}
.product-card-favorite {
    position: absolute;
    top: .65rem;
    right: .65rem;
    z-index: 3;
}
.favorite-toggle {
    display: inline-flex;
    text-decoration: none;
    color: inherit;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}
.favorite-toggle.on-card {
    position: static;
}
.favorite-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: 1px solid var(--esme-border);
    background: rgba(255, 255, 255, .95);
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(28, 35, 49, .08);
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.favorite-btn:hover,
a.favorite-toggle:hover .favorite-btn,
.favorite-toggle.is-active .favorite-btn {
    color: var(--esme-red);
    border-color: #f3c0c0;
    background: #fff5f5;
}
.favorite-toggle.on-detail .favorite-btn {
    width: 3rem;
    height: 3rem;
}
.product-card .brand {
    color: var(--esme-red);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.product-card a.brand,
a.brand-link {
    text-decoration: none;
}
.product-card a.brand:hover,
a.brand-link:hover {
    text-decoration: underline;
    color: var(--esme-red-dark);
}
.brand-link-detail {
    display: inline-block;
    color: var(--esme-red);
    letter-spacing: .08em;
    text-decoration: none;
}
.brand-link-detail:hover {
    color: var(--esme-red-dark);
    text-decoration: underline;
}
.product-card .name {
    font-size: .86rem;
    font-weight: 600;
    color: var(--esme-dark);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}
.product-card .name:hover { color: var(--esme-red); }
.product-card .price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--esme-dark);
}
.product-card .vat {
    font-size: .7rem;
    color: var(--esme-text-muted);
    font-weight: 500;
}
.price-list {
    font-size: .88rem;
    font-weight: 600;
    color: var(--esme-text-muted);
    text-decoration: line-through;
}
.price-list-lg {
    font-size: 1.05rem;
}
.product-discount-badge {
    position: absolute;
    top: .65rem;
    left: .65rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    background: var(--esme-red);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
    padding: .4rem .5rem;
    border-radius: .4rem;
}
.product-discount-badge.detail {
    position: static;
    margin-bottom: .65rem;
    font-size: .8rem;
    padding: .45rem .65rem;
}
.product-detail-price .product-discount-badge {
    display: inline-flex;
}
.price-option-list {
    font-size: .78rem;
    color: var(--esme-text-muted);
    text-decoration: line-through;
    margin-top: .15rem;
}
.stock-badge { font-size: .68rem; }

/* ---------- Deals (Süper Fırsatlar) ---------- */
.deals-section {
    background: linear-gradient(135deg, var(--esme-red) 0%, var(--esme-red-dark) 100%);
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
    color: #fff;
}
.deals-section .section-title {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.deal-card {
    background: #fff;
    border-radius: .75rem;
    overflow: hidden;
    height: 100%;
}
.countdown {
    display: flex;
    gap: .4rem;
    justify-content: center;
}
.countdown .unit {
    background: var(--esme-dark);
    color: #fff;
    border-radius: .4rem;
    min-width: 46px;
    padding: .3rem .2rem;
    text-align: center;
    line-height: 1.1;
}
.countdown .unit b { font-size: .95rem; display: block; }
.countdown .unit small { font-size: .58rem; text-transform: uppercase; opacity: .75; }

/* ---------- Homepage category carousel ---------- */
.home-cat-carousel {
    position: relative;
    padding: 0 2.75rem;
}
.home-cat-carousel-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: .15rem .1rem .35rem;
}
.home-cat-carousel-track::-webkit-scrollbar { display: none; }
.home-cat-card {
    flex: 0 0 calc((100% - 3rem) / 4);
    min-width: 200px;
    max-width: 280px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    background: #f3f4f6;
    border-radius: 1rem;
    padding: 1.15rem 1rem 1.35rem;
    transition: transform .18s ease, box-shadow .18s ease;
}
.home-cat-card:hover {
    color: inherit;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(28, 35, 49, .08);
}
.home-cat-card-media {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    margin-bottom: .85rem;
}
.home-cat-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.home-cat-card-placeholder {
    color: #9aa3b5;
    display: grid;
    place-items: center;
}
.home-cat-card-subtitle {
    margin: 0 0 .35rem;
    font-size: .78rem;
    line-height: 1.35;
    color: #6c757d;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.1em;
}
.home-cat-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1c2331;
    line-height: 1.25;
}
.home-cat-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid #e1e4ea;
    background: #fff;
    color: #1c2331;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 14px rgba(28, 35, 49, .08);
    cursor: pointer;
    transition: background .15s ease, color .15s ease, opacity .15s ease;
}
.home-cat-carousel-btn:hover {
    background: var(--esme-red);
    border-color: var(--esme-red);
    color: #fff;
}
.home-cat-carousel-btn:disabled {
    opacity: .35;
    cursor: default;
    pointer-events: none;
}
.home-cat-carousel-btn.prev { left: 0; }
.home-cat-carousel-btn.next { right: 0; }

@media (max-width: 991.98px) {
    .home-cat-card { flex-basis: calc((100% - 1rem) / 2); min-width: 180px; }
}
@media (max-width: 575.98px) {
    .home-cat-carousel { padding: 0 2.4rem; }
    .home-cat-card { flex-basis: 78%; min-width: 210px; max-width: none; }
    .home-cat-carousel-btn { width: 36px; height: 36px; }
}

/* legacy cat-tile kept for safety */
.cat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    background: var(--esme-gray);
    border: 1px solid var(--esme-border);
    border-radius: .75rem;
    padding: 1rem .5rem;
    text-align: center;
    text-decoration: none;
    color: var(--esme-dark);
    font-size: .8rem;
    font-weight: 700;
    height: 100%;
    transition: all .15s ease;
}
.cat-tile:hover {
    background: var(--esme-red);
    border-color: var(--esme-red);
    color: #fff;
}
.cat-tile .ico { font-size: 1.5rem; line-height: 1; display: inline-flex; }
.cat-tile-image {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: .5rem;
}
.cat-tile.has-image:hover .cat-tile-image {
    box-shadow: 0 0 0 2px rgba(255,255,255,.55);
}
.cat-tile-label { line-height: 1.25; }
.hero-carousel picture,
.hero-carousel .carousel-item > a { display: block; }

/* ---------- Brand carousel ---------- */
.brand-carousel {
    position: relative;
    border: 1px solid var(--esme-border);
    border-radius: .75rem;
    background: #fff;
}
.brand-strip {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1.25rem;
    padding: .9rem 2.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.brand-strip::-webkit-scrollbar { display: none; }
.brand-strip .brand-item {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    min-width: 88px;
    padding: 0 .35rem;
    font-weight: 800;
    letter-spacing: .08em;
    color: #9aa1ac;
    font-size: .95rem;
    text-transform: uppercase;
    white-space: nowrap;
    text-decoration: none;
}
.brand-strip .brand-item:hover { color: var(--esme-red); }
.brand-strip .brand-logo {
    max-height: 36px;
    max-width: 110px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .75;
    transition: filter .15s ease, opacity .15s ease;
}
.brand-strip .brand-item:hover .brand-logo {
    filter: none;
    opacity: 1;
}
.brand-carousel-btn {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 2.1rem;
    height: 2.1rem;
    border: 1px solid var(--esme-border);
    border-radius: 999px;
    background: #fff;
    color: var(--esme-dark);
    font-size: 1.35rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(16, 24, 40, .08);
    cursor: pointer;
    padding: 0;
}
.brand-carousel-btn:hover {
    color: var(--esme-red);
    border-color: var(--esme-red);
}
.brand-carousel-btn:disabled {
    opacity: .35;
    cursor: default;
    color: #9aa1ac;
    border-color: var(--esme-border);
}
.brand-carousel-btn--prev { left: .45rem; }
.brand-carousel-btn--next { right: .45rem; }
.brand-page-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.brand-page-head .catalog-section-head {
    width: 100%;
}
.brand-page-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border: 1px solid var(--esme-border);
    border-radius: .65rem;
    background: #fff;
    padding: .4rem;
}
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}
.brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 120px;
    padding: 1rem .75rem;
    border: 1px solid var(--esme-border);
    border-radius: .75rem;
    background: #fff;
    text-decoration: none;
    color: var(--esme-dark);
    font-weight: 800;
    text-align: center;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.brand-card:hover {
    border-color: var(--esme-red);
    color: var(--esme-red);
    box-shadow: 0 8px 20px rgba(28, 35, 49, .08);
}
.brand-card img {
    max-height: 48px;
    max-width: 100%;
    object-fit: contain;
}

/* ---------- Trust badges ---------- */
.trust-bar {
    background: var(--esme-gray);
    border-top: 1px solid var(--esme-border);
}
.trust-item { text-align: center; }
.trust-item .ico {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--esme-red);
    color: var(--esme-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: .5rem;
}
.trust-item strong {
    display: block;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.trust-item span { font-size: .74rem; color: var(--esme-text-muted); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--esme-footer-bg) !important;
    color: var(--esme-footer-text) !important;
    font-size: .84rem;
}
.site-footer h6 {
    color: var(--esme-footer-text) !important;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 1rem;
}
.site-footer a {
    color: var(--esme-footer-text) !important;
    text-decoration: none;
    display: inline-block;
    padding: .12rem 0;
}
.site-footer a:hover { opacity: .8; }
.site-footer .site-footer-brand,
.site-footer .brand-logo {
    color: var(--esme-footer-text) !important;
    display: inline-flex;
    align-items: center;
    padding: 0;
    line-height: 1;
}
.site-footer .site-footer-brand img {
    max-width: 180px;
    max-height: 48px;
    width: auto;
    height: auto;
    display: block;
}
.site-footer .phone-big {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--esme-footer-text) !important;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .15);
    font-size: .78rem;
    color: inherit;
}

/* ---------- Forms / detail ---------- */
.breadcrumb {
    flex-wrap: nowrap;
    align-items: center;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
}
.breadcrumb .breadcrumb-item {
    flex: 0 0 auto;
    white-space: nowrap;
}
.form-shell {
    border: 1px solid var(--esme-border);
    border-radius: .75rem;
}
.detail-image {
    display: block;
    width: 100%;
    border: 1px solid var(--esme-border);
    border-radius: .75rem;
    background: #fff;
    padding: 1.5rem;
    cursor: zoom-in;
}
.detail-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}
.product-gallery-stage { position: relative; touch-action: pan-y; }
.product-gallery-nav,
.product-lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 42px;
    height: 42px;
    transform: translateY(-50%);
    place-items: center;
    border: 1px solid var(--esme-border);
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: var(--esme-dark);
    box-shadow: 0 4px 14px rgba(28, 35, 49, .15);
}
.product-gallery-nav:hover { color: var(--esme-red); }
.product-gallery-nav.is-prev { left: .75rem; }
.product-gallery-nav.is-next { right: .75rem; }
.product-gallery-thumbs-wrap {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    align-items: center;
    gap: .4rem;
    margin-top: .75rem;
}
.product-gallery-thumbs {
    display: flex;
    gap: .6rem;
    overflow-x: auto;
    padding: .1rem;
    scroll-behavior: smooth;
    scrollbar-width: none;
    touch-action: pan-x;
}
.product-gallery-thumbs::-webkit-scrollbar { display: none; }
.product-gallery-thumbs-nav {
    display: grid;
    height: 42px;
    place-items: center;
    border: 1px solid var(--esme-border);
    border-radius: .45rem;
    background: #fff;
    color: var(--esme-dark);
}
.product-gallery-thumbs-nav:disabled { opacity: .35; }
.product-gallery-thumb {
    width: 72px;
    height: 72px;
    flex: 0 0 auto;
    padding: .25rem;
    border: 1px solid var(--esme-border);
    border-radius: .55rem;
    background: #fff;
}
.product-gallery-thumb.is-active {
    border-color: var(--esme-red);
    box-shadow: 0 0 0 1px var(--esme-red);
}
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    grid-template-columns: minmax(48px, 1fr) minmax(0, 1100px) minmax(48px, 1fr);
    align-items: center;
    padding: 2rem;
    background: rgba(0, 0, 0, .9);
    touch-action: pan-y;
}
.product-lightbox[hidden] { display: none; }
.product-lightbox img {
    grid-column: 2;
    width: 100%;
    max-height: calc(100vh - 4rem);
    object-fit: contain;
}
.product-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
}
.product-lightbox-nav {
    position: relative;
    top: auto;
    transform: none;
    justify-self: center;
    border-color: rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .15);
    color: #fff;
}
.product-lightbox-nav.is-prev { grid-column: 1; }
.product-lightbox-nav.is-next { grid-column: 3; }
body.has-product-lightbox { overflow: hidden; }
.store-stock-modal { border: 0; border-radius: .8rem; }
.store-stock-list { display: grid; gap: .5rem; }
.store-stock-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem;
    border: 1px solid var(--esme-border);
    border-radius: .55rem;
}
.store-stock-name { min-width: 0; font-weight: 700; }
.store-stock-status {
    flex: 0 0 auto;
    padding: .3rem .55rem;
    border-radius: 999px;
    background: #f1f3f5;
    color: #6c757d;
    font-size: .78rem;
    font-weight: 800;
}
.store-stock-status.is-available { background: #e7f7ed; color: #16833d; }
.store-stock-status.is-low { background: #fff4e5; color: #b76a00; }
@media (max-width: 575.98px) {
    .detail-image { padding: .75rem; }
    .product-gallery-nav { width: 36px; height: 36px; }
    .product-gallery-nav.is-prev { left: .35rem; }
    .product-gallery-nav.is-next { right: .35rem; }
    .product-gallery-thumbs-wrap { grid-template-columns: minmax(0, 1fr); }
    .product-gallery-thumbs-nav { display: none; }
    .product-lightbox {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        padding: .75rem;
    }
    .product-lightbox img { max-height: calc(100vh - 1.5rem); }
    .product-lightbox-nav { width: 36px; height: 36px; }
}
.price-tag { font-weight: 800; color: var(--esme-dark); }
.price-big {
    font-size: 2rem;
    font-weight: 800;
    color: var(--esme-red);
}
.price-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: .75rem;
}
.price-option {
    min-width: 0;
    padding: .85rem;
    border: 1px solid var(--esme-border);
    border-radius: .75rem;
    background: #fff;
    text-align: center;
    box-shadow: 0 2px 8px rgba(28, 35, 49, .04);
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
button.price-option {
    font: inherit;
    color: inherit;
    appearance: none;
    -webkit-appearance: none;
}
.price-option:hover {
    border-color: #f0a8b1;
}
.price-option.is-selected {
    border-color: var(--esme-red);
    box-shadow: 0 0 0 1px var(--esme-red), 0 6px 16px rgba(var(--esme-red-rgb), .1);
    background: #fff8f9;
}
.price-option:focus-visible {
    outline: 2px solid var(--esme-red);
    outline-offset: 2px;
}
.price-option-type {
    min-height: 1.1rem;
    color: var(--esme-text-muted);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    overflow-wrap: anywhere;
}
.price-option.is-selected .price-option-type { color: var(--esme-red); }
.price-option-amount {
    margin-top: .25rem;
    color: var(--esme-dark);
    font-size: 1.15rem;
    font-weight: 800;
}
.price-option-meta {
    margin-top: .15rem;
    color: var(--esme-text-muted);
    font-size: .68rem;
}
.qty-group { max-width: 150px; }
.qty-group .form-control { text-align: center; }
.qty-stepper {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--esme-border);
    border-radius: .5rem;
    overflow: hidden;
    background: #fff;
}
.qty-stepper .form-control {
    border: none;
    border-left: 1px solid var(--esme-border);
    border-right: 1px solid var(--esme-border);
    border-radius: 0;
    width: 56px;
    padding-inline: .25rem;
    -moz-appearance: textfield;
}
.qty-stepper .form-control::-webkit-outer-spin-button,
.qty-stepper .form-control::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.qty-stepper .form-control:focus {
    box-shadow: none;
    border-color: var(--esme-border);
}
.qty-btn {
    flex: 0 0 36px;
    border: none;
    background: #fff;
    color: var(--esme-dark);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease;
}
.qty-btn:hover { background: var(--esme-bg-soft, #f6f6f8); }
.qty-btn:active { background: #eee; }
.detail-buy-buttons { min-width: 0; }
.detail-admin-edit-fab {
    position: fixed;
    left: 0;
    top: 50%;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 9rem;
    padding: 1rem .7rem;
    border: none;
    border-radius: 0 .75rem .75rem 0;
    background: #2563eb;
    color: #fff !important;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.25;
    text-decoration: none !important;
    text-align: center;
    box-shadow: 4px 0 18px rgba(37, 99, 235, .28);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: translateY(-50%) rotate(180deg);
    transition: background .15s ease, padding .15s ease, box-shadow .15s ease;
}
.detail-admin-edit-fab:hover,
.detail-admin-edit-fab:focus {
    background: #1d4ed8;
    color: #fff !important;
    padding-inline: .85rem;
    box-shadow: 6px 0 22px rgba(37, 99, 235, .4);
}
@media (max-width: 767.98px) {
    .detail-admin-edit-fab {
        min-height: 7.5rem;
        padding: .75rem .55rem;
        font-size: .72rem;
    }
}
.catalog-search { width: min(100%, 340px); }
.catalog-filter-shell { display: flex; flex-direction: column; gap: .65rem; }
.catalog-filter-toggle {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    width: 100%;
    min-height: 44px;
    padding: .7rem 1rem;
    border: 1px solid var(--esme-border);
    border-radius: .75rem;
    background: #fff;
    color: var(--esme-dark);
    font-size: .92rem;
    font-weight: 700;
    text-align: left;
}
.catalog-filter-toggle > span:first-child { flex: 1 1 auto; }
.catalog-filter-count {
    display: inline-grid;
    place-items: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 .35rem;
    border-radius: 999px;
    background: var(--esme-red);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
}
.catalog-filter-chevron {
    width: .55rem;
    height: .55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
    flex: 0 0 auto;
    margin-top: -.2rem;
}
.catalog-filter-shell.is-open .catalog-filter-chevron {
    transform: rotate(-135deg);
    margin-top: .15rem;
}
.catalog-filters {
    border: 1px solid var(--esme-border);
    border-radius: .85rem;
    background: #fff;
    padding: 1rem;
    position: sticky;
    top: 1rem;
}
.catalog-filter-block + .catalog-filter-block { margin-top: .9rem; }
.catalog-filter-label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    color: var(--esme-dark);
    margin-bottom: .35rem;
}
.catalog-price-hint {
    font-size: .72rem;
    color: #6b7280;
    margin-bottom: .4rem;
}
.catalog-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .65rem;
    margin-bottom: 0;
}
.catalog-sort-select { width: auto; min-width: 12rem; }
.catalog-check-list {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    max-height: 16rem;
    overflow: auto;
    padding-right: .15rem;
}
.catalog-check {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .84rem;
    color: var(--esme-dark);
    margin: 0;
    cursor: pointer;
}
.catalog-check.is-child {
    padding-left: 1.1rem;
    color: #4b5563;
}
.catalog-check input {
    margin-top: .15rem;
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    accent-color: var(--esme-red);
    cursor: pointer;
}
.price-range { margin-top: .15rem; }
.price-range-values {
    display: flex;
    justify-content: space-between;
    font-size: .82rem;
    font-weight: 700;
    color: var(--esme-dark);
    margin-bottom: .7rem;
}
.price-range-slider {
    position: relative;
    height: 1.6rem;
}
.price-range-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: .28rem;
    margin-top: -.14rem;
    border-radius: 999px;
    background: #e5e7eb;
    pointer-events: none;
}
.price-range-track::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--from, 0%);
    right: var(--to, 0%);
    border-radius: inherit;
    background: var(--esme-red);
}
.price-range-slider input[type="range"] {
    position: absolute;
    left: 0;
    width: 100%;
    top: 50%;
    margin: 0;
    transform: translateY(-50%);
    appearance: none;
    background: transparent;
    pointer-events: none;
    height: 1.6rem;
}
.price-range-slider input[data-price-from] { z-index: 2; }
.price-range-slider input[data-price-to] { z-index: 3; }
.price-range-slider input[type="range"]::-webkit-slider-runnable-track {
    height: .28rem;
    background: transparent;
}
.price-range-slider input[type="range"]::-moz-range-track {
    height: .28rem;
    background: transparent;
    border: none;
}
.price-range-slider input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--esme-red);
    box-shadow: 0 1px 4px rgba(28, 35, 49, .18);
    pointer-events: auto;
    cursor: pointer;
    margin-top: -.36rem;
}
.price-range-slider input[type="range"]::-moz-range-thumb {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--esme-red);
    box-shadow: 0 1px 4px rgba(28, 35, 49, .18);
    pointer-events: auto;
    cursor: pointer;
}
@media (max-width: 991.98px) {
    .catalog-filter-toggle { display: inline-flex; }
    .catalog-filter-shell:not(.is-open) [data-catalog-filter-panel] { display: none; }
    .catalog-filters { position: static; }
    .catalog-section-head {
        flex-direction: column;
        align-items: stretch !important;
        gap: .75rem;
    }
    .catalog-toolbar { justify-content: flex-start; }
}
.cart-thumb {
    width: 78px;
    height: 78px;
    object-fit: contain;
    flex: 0 0 auto;
    border: 1px solid var(--esme-border);
    border-radius: .6rem;
    background: #fff;
}
.cart-thumb-link {
    flex: 0 0 auto;
    display: block;
    line-height: 0;
}
.cart-thumb-link:hover .cart-thumb {
    border-color: var(--esme-red);
}
.cart-product-link:hover {
    color: var(--esme-red) !important;
}

/* ---------- Auth hero ---------- */
.auth-shell {
    max-width: 440px;
    margin-inline: auto;
}
.auth-shell .card { border: 1px solid var(--esme-border); border-radius: .75rem; }
.auth-head {
    text-align: center;
    margin-bottom: 1.25rem;
}
.auth-head .brand-logo { font-size: 2.2rem; }

/* ---------- Blog ---------- */
.blog-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--esme-border);
    border-radius: .75rem;
    background: #fff;
    overflow: hidden;
}
.blog-card-media {
    display: block;
    aspect-ratio: 16 / 10;
    background: #f3f4f6;
    overflow: hidden;
}
.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-card-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-weight: 800;
    letter-spacing: .08em;
    color: #c5c9d1;
    background: linear-gradient(135deg, #f7f8fa, #eceef2);
}
.blog-card-body {
    padding: 1.1rem 1.2rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.blog-card-date {
    font-size: .78rem;
    color: var(--esme-text-muted);
    font-weight: 600;
}
.blog-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: .45rem 0 .55rem;
    line-height: 1.35;
}
.blog-card-title a {
    color: var(--esme-dark);
    text-decoration: none;
}
.blog-card-title a:hover { color: var(--esme-red); }
.blog-card-excerpt {
    color: var(--esme-text-muted);
    font-size: .92rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}
.blog-card-more {
    font-weight: 700;
    font-size: .9rem;
    color: var(--esme-red);
    text-decoration: none;
}
.blog-card-more:hover { text-decoration: underline; }
.blog-article-cover {
    margin: 0;
    border-radius: .75rem;
    overflow: hidden;
    border: 1px solid var(--esme-border);
}
.blog-article-cover img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}
.blog-article-body {
    font-size: 1.02rem;
    line-height: 1.7;
}

/* ---------- Account area ---------- */
.account-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}
.account-nav {
    position: sticky;
    top: 1rem;
    border: 1px solid var(--esme-border);
    border-radius: .75rem;
    background: #fff;
    padding: .85rem;
}
.account-nav-title {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--esme-text-muted);
    margin: .25rem .65rem .75rem;
}
.account-nav a {
    display: block;
    padding: .65rem .75rem;
    border-radius: .55rem;
    color: var(--esme-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: .92rem;
}
.account-nav a:hover { background: #f7f8fa; color: var(--esme-red); }
.account-nav a.is-active {
    background: #fff5f6;
    color: var(--esme-red);
}
.account-head {
    margin-bottom: 1.25rem;
}
.account-head h1 {
    font-size: 1.55rem;
    font-weight: 800;
    margin-bottom: .35rem;
}
.account-stat {
    border: 1px solid var(--esme-border);
    border-radius: .75rem;
    background: #fff;
    padding: 1rem 1.1rem;
}
.account-stat small {
    display: block;
    color: var(--esme-text-muted);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: .35rem;
}
.account-stat strong {
    font-size: 1.05rem;
    word-break: break-word;
}
.account-tile {
    display: block;
    height: 100%;
    border: 1px solid var(--esme-border);
    border-radius: .75rem;
    background: #fff;
    padding: 1.15rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.account-tile:hover {
    border-color: #f0a8b1;
    box-shadow: 0 6px 18px rgba(28, 35, 49, .06);
    color: inherit;
}
.account-tile-title {
    display: block;
    font-weight: 800;
    margin-bottom: .35rem;
}
.account-tile-text {
    display: block;
    color: var(--esme-text-muted);
    font-size: .9rem;
}
.account-form-narrow { max-width: 480px; }
.address-card {
    height: 100%;
    border: 1px solid var(--esme-border);
    border-radius: .75rem;
    background: #fff;
    padding: 1.15rem 1.25rem;
}
.address-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .75rem;
}
.address-card-top h2 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
}
.address-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    flex-shrink: 0;
}
@media (max-width: 991.98px) {
    .account-shell { grid-template-columns: 1fr; }
    .account-nav {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: .35rem;
        padding: .65rem;
    }
    .account-nav-title { width: 100%; margin: .15rem .35rem .35rem; }
    .account-nav a { padding: .5rem .7rem; font-size: .85rem; }
}

@media (max-width: 767.98px) {
    body { overflow-x: clip; }
    .main-header .container { padding-inline: .75rem; }
    .brand-logo { font-size: 1.55rem; }
    .shop-bar-action { padding: .45rem; }
    .section-head {
        align-items: stretch;
        flex-direction: column;
    }
    .catalog-search { width: 100%; }
    .deals-section { padding: 1rem .75rem; }
    .brand-strip { padding: .85rem 2.4rem; gap: 1rem; }
    .brand-carousel-btn { width: 1.9rem; height: 1.9rem; font-size: 1.2rem; }
    .detail-image { padding: .75rem; }
    .detail-buy-row { align-items: stretch !important; }
    .detail-add-button, .detail-installment-button { flex: 1 1 220px; }
    .trust-item .ico { width: 44px; height: 44px; }
}

@media (max-width: 575.98px) {
    .cat-nav-topline { font-size: .68rem; }
    .cat-nav-topline-links { gap: .7rem; }
    .hero-carousel .carousel-item img { height: 210px; }
    .section-head h2 { font-size: 1.05rem; }
    .product-card .p-3 { padding: .65rem !important; }
    .product-card .name { font-size: .78rem; }
    .product-card .price { font-size: .92rem; }
    .product-card .vat { font-size: .62rem; }
    .product-card .btn { padding-inline: .35rem; font-size: .72rem; }
    .product-price-row { align-items: flex-start !important; flex-wrap: wrap; }
    .product-price-row .stock-badge { margin-left: 0 !important; }
    .price-big { font-size: 1.6rem; }
    .price-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
    .price-option { padding: .65rem .4rem; }
    .price-option-amount { font-size: .98rem; }
    .qty-group { max-width: none; width: 100%; }
    .qty-stepper { width: 100%; }
    .qty-stepper .form-control { flex: 1 1 auto; width: auto; }
    .detail-buy-buttons { width: 100%; flex-direction: column; }
    .detail-add-button, .detail-installment-button { width: 100%; flex-basis: 100%; }
    .cart-thumb { width: 64px; height: 64px; }
    .countdown { gap: .25rem; }
    .countdown .unit { min-width: 39px; }
}

.product-preface { line-height: 1.7; overflow-wrap: anywhere; }
.product-preface > *:last-child { margin-bottom: 0; }
.product-preface img { max-width: 100%; height: auto; border-radius: .5rem; }
.product-preface table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.product-preface th,.product-preface td { padding: .4rem .55rem; border: 1px solid var(--esme-border); }
.product-description {
    border: 1px solid var(--esme-border);
    border-radius: .85rem;
    padding: clamp(1rem, 3vw, 2rem);
    overflow: hidden;
}
.product-description h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 1.25rem; }
.product-description-content { line-height: 1.75; overflow-wrap: anywhere; }
.product-description-content img { max-width: 100%; height: auto; border-radius: .5rem; }
.product-description-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.product-description-content th,.product-description-content td { padding: .55rem .7rem; border: 1px solid var(--esme-border); }
.cms-scope {
    display: flow-root;
    position: relative;
    isolation: isolate;
}
.cms-scope img { max-width: 100%; height: auto; }
.cms-scope table { max-width: 100%; }
.home-html-block { line-height: 1.75; overflow-wrap: anywhere; }
.home-html-block img { max-width: 100%; height: auto; border-radius: .5rem; }
.home-html-block table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.home-html-block th,.home-html-block td { padding: .55rem .7rem; border: 1px solid var(--esme-border); }
.home-html-block > *:last-child { margin-bottom: 0; }
.content-page { max-width: 920px; }

.site-toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    z-index: 1080;
    max-width: min(92vw, 360px);
    padding: .85rem 1.15rem;
    border-radius: .75rem;
    background: var(--esme-dark);
    color: #fff;
    font-size: .92rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 12px 28px rgba(28, 35, 49, .22);
    transform: translate(-50%, 1rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}
.site-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}
.site-toast.is-hiding {
    opacity: 0;
    transform: translate(-50%, .75rem);
}
.site-toast.is-error {
    background: #8b1e1e;
}

@media (max-width: 359.98px) {
    .price-options { grid-template-columns: 1fr; }
    .product-card .vat { display: none; }
}

/* ---------- Status / 404 pages ---------- */
.status-page {
    min-height: min(62vh, 560px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2.5rem, 6vw, 4.5rem) 1rem;
    background:
        radial-gradient(ellipse 80% 55% at 50% 0%, rgba(var(--esme-red-rgb), .08), transparent 70%),
        linear-gradient(180deg, var(--esme-gray) 0%, #fff 55%);
}
.status-page-card {
    width: min(100%, 520px);
    text-align: center;
}
.status-page-code {
    font-size: clamp(4.5rem, 14vw, 7rem);
    font-weight: 800;
    line-height: .95;
    letter-spacing: -.04em;
    color: var(--esme-red);
    margin-bottom: .75rem;
    user-select: none;
}
.status-page-code.is-error {
    font-size: clamp(3.5rem, 10vw, 5rem);
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto .85rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(var(--esme-red-rgb), .1);
    color: var(--esme-red);
}
.status-page-title {
    font-size: clamp(1.35rem, 3.5vw, 1.75rem);
    font-weight: 800;
    color: var(--esme-dark);
    margin-bottom: .65rem;
}
.status-page-text {
    color: var(--esme-text-muted);
    font-size: 1.02rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.status-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    justify-content: center;
}
.status-page-meta {
    margin-top: 1.5rem;
    margin-bottom: 0;
    font-size: .8rem;
    color: var(--esme-text-muted);
}
.status-page-meta code {
    font-size: .78rem;
}

/* ---------- Checkout card preview ---------- */
.checkout-pay {
    display: grid;
    gap: 1.25rem;
}
@media (min-width: 768px) {
    .checkout-pay {
        grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
        align-items: start;
        gap: 1.5rem;
    }
}
.checkout-pay-visual {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .checkout-pay-visual {
        max-width: none;
        margin: 0;
        position: sticky;
        top: 1rem;
    }
}
.pay-card-scene {
    position: relative;
    width: 100%;
    aspect-ratio: 1.586 / 1;
    perspective: 1000px;
}
.pay-card {
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 1.1rem 1.15rem;
    color: #fff;
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(226, 0, 26, .55), transparent 55%),
        linear-gradient(145deg, #2a3344 0%, #1c2331 55%, #141820 100%);
    box-shadow: 0 14px 28px rgba(28, 35, 49, .28);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform .45s ease, opacity .25s ease;
    transform: rotateY(0deg);
}
.pay-card-back {
    background:
        linear-gradient(145deg, #171c26 0%, #1c2331 60%, #2a1520 100%);
    transform: rotateY(180deg);
}
.pay-card-scene.is-flipped .pay-card:not(.pay-card-back) {
    transform: rotateY(-180deg);
}
.pay-card-scene.is-flipped .pay-card-back {
    transform: rotateY(0deg);
}
.pay-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}
.pay-card-chip {
    width: 42px;
    height: 30px;
    border-radius: .35rem;
    background:
        linear-gradient(135deg, #f6e27a, #c9a227 45%, #f0d56a);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
}
.pay-card-top-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .15rem;
    min-width: 0;
}
.pay-card-bank {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: .95;
    white-space: nowrap;
}
.pay-card-brand {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    opacity: .9;
}
.pay-card-installment {
    margin-top: .55rem;
    padding-top: .45rem;
    border-top: 1px solid rgba(255, 255, 255, .18);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.35;
    opacity: .95;
}
.installment-list {
    display: grid;
    gap: .55rem;
}
.installment-option {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin: 0;
    padding: .85rem 1rem;
    border: 1px solid var(--esme-border);
    border-radius: .7rem;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.installment-option:hover {
    border-color: #c9ced8;
}
.installment-option.is-selected {
    border-color: var(--esme-red);
    box-shadow: 0 0 0 1px var(--esme-red);
    background: #fff8f8;
}
.installment-option input {
    margin-top: .2rem;
    flex: 0 0 auto;
}
.installment-option-body {
    display: grid;
    gap: .2rem;
    min-width: 0;
}
.installment-option-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    font-weight: 700;
    color: var(--esme-dark);
}
.installment-option-badge {
    font-size: .72rem;
    font-weight: 700;
    color: var(--esme-red);
    background: #ffe8eb;
    border-radius: .35rem;
    padding: .1rem .4rem;
}
.installment-option-meta {
    font-size: .86rem;
    color: var(--esme-text-muted);
}
.pay-card-number {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(1.05rem, 4.2vw, 1.25rem);
    letter-spacing: .12em;
    font-weight: 600;
    margin: .35rem 0;
    word-break: break-all;
}
.pay-card-meta {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: flex-end;
}
.pay-card-label {
    display: block;
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .7;
    margin-bottom: .15rem;
}
.pay-card-value {
    display: block;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    max-width: 11rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pay-card-stripe {
    height: 42px;
    margin: .55rem -1.15rem 1rem;
    background: #0b0e14;
}
.pay-card-cvc-row {
    margin-left: auto;
    width: 42%;
    background: #f4f5f7;
    color: var(--esme-dark);
    border-radius: .35rem;
    padding: .45rem .6rem;
    text-align: right;
}
.pay-card-cvc-row .pay-card-label {
    color: var(--esme-text-muted);
    opacity: 1;
}
.pay-card-cvc {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 800;
    letter-spacing: .18em;
}
.checkout-pay-fields .form-control,
.checkout-pay-fields .form-select {
    min-height: 44px;
}
@media (max-width: 575.98px) {
    .checkout-pay-visual {
        max-width: 100%;
    }
    .pay-card {
        padding: .95rem 1rem;
        border-radius: .85rem;
    }
    .pay-card-number {
        letter-spacing: .08em;
    }
    .summary-card .btn {
        min-height: 48px;
    }
}

/* ---------- Orders (storefront) ---------- */
.orders-empty-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: .75rem;
}
.orders-list {
    display: grid;
    gap: 1rem;
}
.order-card {
    border: 1px solid var(--esme-border);
    border-radius: .85rem;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(28, 35, 49, .04);
}
.order-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem 1rem;
    padding: 1rem 1rem .85rem;
    border-bottom: 1px solid var(--esme-border);
    background: #fafbfc;
}
.order-card-number {
    display: block;
    font-weight: 800;
    color: var(--esme-dark);
    text-decoration: none;
    font-size: 1rem;
}
.order-card-number:hover { color: var(--esme-red); }
.order-card-date {
    display: block;
    font-size: .82rem;
    color: var(--esme-text-muted);
    margin-top: .15rem;
}
.order-card-head-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .35rem;
    text-align: right;
}
.order-card-total {
    font-size: 1.05rem;
    color: var(--esme-dark);
    white-space: nowrap;
}
.order-status {
    display: inline-flex;
    align-items: center;
    padding: .28rem .65rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .02em;
    white-space: nowrap;
}
.order-status.is-pending { background: #fff4d7; color: #986500; }
.order-status.is-paid,
.order-status.is-completed { background: #e7f7ed; color: #16833d; }
.order-status.is-failed,
.order-status.is-cancelled { background: #fde8eb; color: #bd1830; }
.order-status.is-processing,
.order-status.is-shipped { background: #e8f1ff; color: #2868bd; }
.order-status.is-default { background: #eef1f6; color: #596174; }
.order-card-items {
    display: grid;
}
.order-line {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: .85rem;
    align-items: center;
    padding: .85rem 1rem;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--esme-border);
    transition: background .15s ease;
}
.order-line:last-child { border-bottom: 0; }
a.order-line:hover { background: #f8f9fb; }
.order-line-thumb {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border: 1px solid var(--esme-border);
    border-radius: .6rem;
    background: #fff;
}
.order-line-body { min-width: 0; }
.order-line-title {
    display: block;
    font-size: .95rem;
    line-height: 1.35;
    color: var(--esme-dark);
    margin-bottom: .2rem;
}
a.order-line:hover .order-line-title { color: var(--esme-red); }
.order-line-meta {
    display: block;
    font-size: .8rem;
    color: var(--esme-text-muted);
    line-height: 1.35;
}
.order-line-price {
    font-weight: 800;
    font-size: .92rem;
    color: var(--esme-dark);
    white-space: nowrap;
    text-align: right;
}
.order-card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    padding: .75rem 1rem;
    background: #fff;
}
.order-card-count {
    font-size: .82rem;
    color: var(--esme-text-muted);
    font-weight: 600;
}
.orders-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin-top: 1.25rem;
}
.orders-page-label {
    font-size: .85rem;
    color: var(--esme-text-muted);
    font-weight: 600;
}
.order-back-link {
    display: inline-block;
    margin-bottom: .45rem;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
}
.order-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: .92rem;
    margin-bottom: .55rem;
}
.order-summary-row span { color: var(--esme-text-muted); }
.order-summary-total {
    font-size: 1.05rem;
    margin-bottom: 0;
}
.order-summary-total strong {
    color: var(--esme-red);
    font-size: 1.2rem;
}
.order-address {
    font-style: normal;
    line-height: 1.6;
    color: var(--esme-dark);
}
@media (max-width: 575.98px) {
    .order-card-head-side {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }
    .order-line {
        grid-template-columns: 64px minmax(0, 1fr);
        grid-template-areas:
            "thumb body"
            "thumb price";
        gap: .55rem .75rem;
        align-items: start;
    }
    .order-line-thumb {
        grid-area: thumb;
        width: 64px;
        height: 64px;
    }
    .order-line-body { grid-area: body; }
    .order-line-price {
        grid-area: price;
        text-align: left;
        padding-left: calc(64px + .75rem);
        font-size: .88rem;
    }
}

/* ---------- Cookie consent bar (bottom sticky) ---------- */
.cookie-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1090;
    pointer-events: none;
}

.cookie-bar:not([hidden]) {
    pointer-events: auto;
}

body.has-cookie-bar {
    padding-bottom: var(--cookie-bar-h, 3.5rem);
}

.cookie-bar-strip {
    background: var(--esme-dark);
    color: #e8eaed;
    border-top: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, .18);
}

.cookie-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    padding-top: .65rem;
    padding-bottom: calc(.65rem + env(safe-area-inset-bottom, 0px));
    min-height: 3.25rem;
}

.cookie-bar-text {
    margin: 0;
    font-size: .8125rem;
    line-height: 1.45;
    color: #d1d5db;
    flex: 1 1 auto;
    min-width: 0;
}

.cookie-bar-text a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: .12em;
    white-space: nowrap;
}

.cookie-bar-text a:hover {
    color: #fff;
    opacity: .85;
}

.cookie-bar-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: .4rem;
    flex: 0 0 auto;
}

.cookie-bar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: .25rem;
    padding: .38rem .85rem;
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.cookie-bar-btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}

.cookie-bar-btn--ghost:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
}

.cookie-bar-btn--primary {
    background: var(--esme-red);
    border-color: var(--esme-red);
    color: #fff;
}

.cookie-bar-btn--primary:hover {
    background: var(--esme-red-dark);
    border-color: var(--esme-red-dark);
    color: #fff;
}

.cookie-bar-panel--prefs {
    background: #fff;
    border-top: 1px solid var(--esme-border);
    box-shadow: 0 -8px 28px rgba(28, 35, 49, .12);
    max-height: min(52vh, 320px);
    overflow: auto;
}

.cookie-bar-prefs-inner {
    padding-top: .75rem;
    padding-bottom: .75rem;
}

.cookie-bar-prefs-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .5rem;
}

.cookie-bar-prefs-title {
    font-size: .875rem;
    font-weight: 700;
    color: var(--esme-dark);
}

.cookie-bar-close {
    border: 0;
    background: transparent;
    color: var(--esme-text-muted);
    font-size: 1.35rem;
    line-height: 1;
    padding: 0 .15rem;
    cursor: pointer;
}

.cookie-bar-close:hover {
    color: var(--esme-dark);
}

.cookie-bar-pref {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .55rem 0;
    border-bottom: 1px solid var(--esme-border);
}

.cookie-bar-pref:last-child {
    border-bottom: 0;
}

.cookie-bar-pref-text {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: 0;
}

.cookie-bar-pref-text strong {
    font-size: .8125rem;
    font-weight: 600;
    color: #212529;
}

.cookie-bar-pref-text span {
    font-size: .75rem;
    color: var(--esme-text-muted);
}

.cookie-bar-pref-badge {
    font-size: .6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--esme-text-muted);
    white-space: nowrap;
}

.cookie-bar-prefs-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: .65rem;
}

.cookie-settings-link {
    font-size: inherit;
    text-decoration: underline;
    text-underline-offset: .15em;
}

.cookie-settings-link:hover {
    opacity: .85;
}

@media (max-width: 767.98px) {
    .cookie-bar-inner {
        flex-direction: column;
        align-items: stretch;
        gap: .65rem;
        padding-top: .75rem;
        padding-bottom: calc(.75rem + env(safe-area-inset-bottom, 0px));
    }

    .cookie-bar-actions {
        width: 100%;
    }

    .cookie-bar-actions .cookie-bar-btn {
        flex: 1 1 0;
        padding-left: .5rem;
        padding-right: .5rem;
    }

    body.has-cookie-bar {
        padding-bottom: var(--cookie-bar-h, 6.5rem);
    }
}

@media (min-width: 768px) {
    .cookie-bar-btn--ghost[data-cookie-consent-open-prefs] {
        min-width: 4.75rem;
    }
}

/* Dynamic public forms */
.custom-form-page {
    max-width: 760px;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
}

.custom-form-page .form-shell .card-body {
    padding: 1rem;
}

@media (min-width: 768px) {
    .custom-form-page .form-shell .card-body {
        padding: 1.25rem 1.5rem;
    }
}

.custom-form-field + .custom-form-field {
    margin-top: 1rem;
}

.custom-form-field .form-label {
    margin-bottom: .35rem;
    font-weight: 600;
}

.custom-form-field .form-control,
.custom-form-field .form-select {
    min-height: 44px;
    font-size: 16px;
}

.custom-form-field textarea.form-control {
    min-height: 120px;
    font-size: 16px;
}

.custom-form-field .form-check {
    padding-top: .15rem;
    padding-bottom: .15rem;
}

.custom-form-field .form-check-input {
    width: 1.15em;
    height: 1.15em;
    margin-top: .2em;
}

.custom-form-field .form-check-label {
    padding-left: .15rem;
}

.custom-form-field input[type="file"].form-control {
    padding: .55rem .75rem;
    line-height: 1.35;
}

.custom-form-submit-bar {
    padding-top: 1rem;
}

.custom-form-page .custom-form-submit-bar .btn[type="submit"] {
    width: 100%;
    min-height: 48px;
}

@media (min-width: 576px) {
    .custom-form-page .custom-form-submit-bar .btn[type="submit"] {
        width: auto;
        min-width: 160px;
    }
}

.form-list-head {
    max-width: 760px;
}

.form-list-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--esme-border);
    border-radius: .75rem;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.form-list-card:hover {
    border-color: #cfd6e4;
    box-shadow: 0 4px 18px rgba(28, 35, 49, .06);
}

.form-list-card-body {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    padding: 1.15rem 1.25rem;
    min-height: 100%;
}

.form-list-card-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
}

.form-list-card-title a {
    color: var(--esme-dark);
    text-decoration: none;
}

.form-list-card-title a:hover {
    color: var(--esme-red);
}

.form-list-card-desc {
    margin: 0;
    flex: 1 1 auto;
    color: var(--esme-muted, #6c757d);
    font-size: .92rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.form-list-card-link {
    align-self: flex-start;
    font-size: .9rem;
    font-weight: 600;
    color: var(--esme-red);
    text-decoration: none;
}

.form-list-card-link:hover {
    text-decoration: underline;
}

/* Cart page */
.cart-page {
    padding-bottom: 1rem;
}

.cart-page-title {
    margin-bottom: 1.25rem;
}

.cart-payment-methods {
    margin-bottom: 1.25rem;
}

.cart-payment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

.cart-payment-option {
    display: flex;
    width: 100%;
    min-height: 92px;
    height: 100%;
    align-items: flex-start;
    gap: .8rem;
    padding: 1rem;
    border: 2px solid var(--esme-border);
    border-radius: .75rem;
    background: #fff;
    color: var(--esme-dark);
    text-align: left;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.cart-payment-option:hover,
.cart-payment-option:focus-visible {
    border-color: var(--esme-red);
}

.cart-payment-option:focus-visible {
    outline: 3px solid rgba(226, 0, 26, .18);
    outline-offset: 2px;
}

.cart-payment-option.is-selected {
    border-color: var(--esme-red);
    box-shadow: 0 0 0 3px rgba(226, 0, 26, .1);
}

.cart-payment-option-check {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-top: .1rem;
    border: 2px solid #a8afbb;
    border-radius: 50%;
    background: #fff;
}

.cart-payment-option.is-selected .cart-payment-option-check {
    border: 5px solid var(--esme-red);
}

.cart-payment-option strong,
.cart-payment-option small {
    display: block;
}

.cart-payment-option small {
    margin-top: .3rem;
    color: var(--esme-muted, #6c757d);
    line-height: 1.4;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 1.25rem;
    align-items: start;
}

.cart-line {
    padding: 1rem 1.15rem;
}

.cart-line-main {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    min-width: 0;
}

.cart-line-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.cart-line-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.cart-line-meta {
    color: var(--esme-muted, #6c757d);
    font-size: .84rem;
}

.cart-price-plan-label {
    display: inline-flex;
    align-self: flex-start;
    padding: .25rem .55rem;
    border-radius: 999px;
    background: #f1f3f6;
    color: #4e5665;
    font-size: .78rem;
    font-weight: 700;
}

.cart-line-alert {
    margin: 0;
}

.cart-plan-picker {
    width: 100%;
}

.cart-plan-picker-label {
    margin-bottom: .45rem;
    font-size: .82rem;
    font-weight: 700;
    color: #4e5665;
}

.cart-plan-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: .55rem;
}

.cart-plan-option-form {
    margin: 0;
    min-width: 0;
}

.cart-plan-option {
    display: flex;
    width: 100%;
    min-height: 72px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .2rem;
    padding: .7rem .75rem;
    border: 2px solid var(--esme-border);
    border-radius: .7rem;
    background: #fff;
    color: var(--esme-dark);
    text-align: left;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.cart-plan-option:hover,
.cart-plan-option:focus-visible {
    border-color: var(--esme-red);
}

.cart-plan-option:focus-visible {
    outline: 3px solid rgba(226, 0, 26, .16);
    outline-offset: 2px;
}

.cart-plan-option.is-selected {
    border-color: var(--esme-red);
    background: #fff8f9;
    box-shadow: 0 0 0 3px rgba(226, 0, 26, .1);
}

.cart-plan-option-type {
    color: var(--esme-muted, #6c757d);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .03em;
    overflow-wrap: anywhere;
}

.cart-plan-option.is-selected .cart-plan-option-type {
    color: var(--esme-red);
}

.cart-plan-option-amount {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
}

.cart-line-price {
    font-size: 1.05rem;
    font-weight: 700;
}

.cart-line-price--pending {
    color: var(--esme-muted, #6c757d);
    font-weight: 600;
}

.cart-line-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    align-items: center;
}

.cart-qty-form {
    max-width: 150px;
}

.cart-remove-btn {
    min-height: 40px;
    padding-inline: .9rem;
}

.cart-summary-card .card-body {
    padding: 1.25rem;
}

.cart-summary-count {
    margin-bottom: 1rem;
}

.cart-checkout-btn {
    min-height: 48px;
}

@media (max-width: 991.98px) {
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cart-summary-card {
        position: sticky;
        bottom: .75rem;
        z-index: 3;
        box-shadow: 0 8px 28px rgba(28, 35, 49, .12);
    }
}

@media (max-width: 575.98px) {
    .cart-page-title {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }

    .cart-payment-grid {
        grid-template-columns: 1fr;
        gap: .65rem;
    }

    .cart-payment-option {
        min-height: 0;
        padding: .85rem;
        gap: .7rem;
    }

    .cart-payment-option strong {
        font-size: .95rem;
    }

    .cart-payment-option small {
        font-size: .8rem;
    }

    .cart-items-card {
        border-radius: .65rem;
    }

    .cart-line {
        padding: .85rem;
    }

    .cart-line-main {
        gap: .7rem;
    }

    .cart-thumb {
        width: 56px;
        height: 56px;
    }

    .cart-line-title {
        font-size: .95rem;
    }

    .cart-line-meta {
        font-size: .78rem;
    }

    .cart-plan-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .45rem;
    }

    .cart-plan-option {
        min-height: 68px;
        padding: .65rem .55rem;
    }

    .cart-plan-option-amount {
        font-size: .95rem;
    }

    .cart-line-actions {
        width: 100%;
        flex-wrap: nowrap;
    }

    .cart-qty-form {
        flex: 1 1 auto;
        max-width: none;
    }

    .cart-qty-form .qty-stepper {
        width: 100%;
    }

    .cart-qty-form .qty-btn {
        flex-basis: 44px;
        min-height: 44px;
    }

    .cart-qty-form .form-control {
        min-height: 44px;
        font-size: 16px;
    }

    .cart-remove-form {
        flex: 0 0 auto;
    }

    .cart-remove-btn {
        min-height: 44px;
        min-width: 84px;
    }

    .cart-summary-card .card-body {
        padding: 1rem;
    }

    .cart-summary-card {
        bottom: calc(.5rem + env(safe-area-inset-bottom, 0px));
        border-radius: .75rem;
    }

    .cart-checkout-btn {
        min-height: 50px;
        font-size: 1rem;
    }
}
