/**
 * MERCERI Marketplace theme
 * Tokens and layout from merceri.ru
 */

:root {
    color-scheme: light;
    --merc-chocolate: #3b2016;
    --merc-chocolate-dark: #24110b;
    --merc-ink: #17130f;
    --merc-muted: #6f6761;
    --merc-line: rgba(59, 32, 22, 0.14);
    --merc-paper: #fffaf2;
    --merc-soft: #f5eee5;
    --merc-green: #647b56;
    --merc-white: #ffffff;
    --merc-footer: #2b130c;

    --larek-primary: #3b2016;
    --larek-primary-dark: #24110b;
    --larek-secondary: #2b130c;
    --larek-success: #647b56;
    --larek-warning: #c9843a;
    --larek-danger: #a14a3a;
    --larek-light: #fffaf2;
    --larek-dark: #17130f;
    --larek-muted: #6f6761;
    --larek-border: rgba(59, 32, 22, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.merceri-page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--merc-paper);
    color: var(--merc-ink);
    font-family: Manrope, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

main {
    flex: 1;
}

a {
    color: var(--merc-chocolate);
}

a:hover {
    color: var(--merc-chocolate-dark);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible {
    outline: 2px solid var(--merc-chocolate);
    outline-offset: 2px;
}

.btn-primary {
    --bs-btn-bg: var(--merc-chocolate);
    --bs-btn-border-color: var(--merc-chocolate);
    --bs-btn-hover-bg: var(--merc-chocolate-dark);
    --bs-btn-hover-border-color: var(--merc-chocolate-dark);
    --bs-btn-active-bg: var(--merc-chocolate-dark);
    --bs-btn-active-border-color: var(--merc-chocolate-dark);
    --bs-btn-font-weight: 800;
    border-radius: 10px;
}

.btn-outline-primary {
    --bs-btn-color: var(--merc-chocolate);
    --bs-btn-border-color: var(--merc-chocolate);
    --bs-btn-hover-bg: var(--merc-chocolate);
    --bs-btn-hover-border-color: var(--merc-chocolate);
    --bs-btn-hover-color: #fff;
    --bs-btn-font-weight: 800;
    border-radius: 10px;
}

.btn-secondary,
.btn-outline-secondary {
    --bs-btn-font-weight: 800;
    border-radius: 10px;
}

.btn-outline-secondary {
    --bs-btn-color: var(--merc-chocolate);
    --bs-btn-border-color: var(--merc-line);
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-border-color: rgba(59, 32, 22, 0.34);
    --bs-btn-hover-color: var(--merc-chocolate);
}

.btn-success {
    --bs-btn-bg: var(--merc-green);
    --bs-btn-border-color: var(--merc-green);
}

.btn-danger {
    --bs-btn-bg: var(--larek-danger);
    --bs-btn-border-color: var(--larek-danger);
    font-weight: 800;
    border-radius: 10px;
}

.text-primary,
.bg-primary {
    color: var(--merc-chocolate) !important;
}

.bg-primary {
    background-color: var(--merc-chocolate) !important;
    color: #fff !important;
}

.bg-light {
    background-color: var(--merc-soft) !important;
}

.form-control,
.form-select,
.input-group-text {
    border-color: var(--merc-line);
    border-radius: 8px;
    background: #fff;
    color: var(--merc-ink);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(59, 32, 22, 0.34);
    box-shadow: 0 0 0 0.2rem rgba(59, 32, 22, 0.08);
}

.form-check-input:checked {
    background-color: var(--merc-chocolate);
    border-color: var(--merc-chocolate);
}

.breadcrumb {
    --bs-breadcrumb-divider-color: var(--merc-muted);
}

.breadcrumb-item a {
    color: var(--merc-chocolate);
    font-weight: 700;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--merc-muted);
}

.card {
    border-radius: 8px;
    background: #fff;
}

.pagination .page-link {
    color: var(--merc-chocolate);
    border-color: var(--merc-line);
}

.pagination .page-item.active .page-link {
    background: var(--merc-chocolate);
    border-color: var(--merc-chocolate);
}

.dropdown-menu {
    border: 1px solid var(--merc-line);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(62, 38, 25, 0.1);
    padding: 8px;
}

.dropdown-item {
    border-radius: 6px;
    font-weight: 700;
    color: var(--merc-ink);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--merc-soft);
    color: var(--merc-chocolate);
}

/* Header */
.merceri-container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.merceri-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid var(--merc-line);
    background: rgba(255, 250, 242, 0.92);
    backdrop-filter: blur(18px);
}

.merceri-header__inner {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.merceri-logo {
    color: var(--merc-chocolate);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.merceri-logo:hover {
    color: var(--merc-chocolate);
}

.merceri-tagline {
    margin: 0 auto 0 8px;
    color: rgba(59, 32, 22, 0.64);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.merceri-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.merceri-nav > a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 9px 14px;
    color: var(--merc-chocolate);
    font-weight: 800;
    text-decoration: none;
}

.merceri-nav > a:hover,
.merceri-nav > a:focus-visible {
    border-color: var(--merc-line);
    background: rgba(255, 255, 255, 0.72);
    color: var(--merc-chocolate);
}

.merceri-nav .merceri-nav__login {
    border-color: var(--merc-chocolate);
    background: var(--merc-chocolate);
    color: #fff;
    box-shadow: 0 10px 24px rgba(59, 32, 22, 0.14);
}

.merceri-nav .merceri-nav__login:hover,
.merceri-nav .merceri-nav__login:focus-visible {
    background: var(--merc-chocolate-dark);
    color: #fff;
}

.profile-trigger {
    display: flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.profile-trigger img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--merc-line);
}

.profile-dropdown .dropdown-menu {
    right: 0;
    left: auto;
}

.profile-avatar-widget img,
#avatar-preview {
    max-width: 120px;
    max-height: 120px;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

/* Toolbar: categories + search */
.merceri-toolbar {
    border-bottom: 1px solid var(--merc-line);
    background: linear-gradient(120deg, #fffdf8 0%, var(--merc-paper) 50%, #f3e5d6 100%);
}

.merceri-toolbar__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
}

.categories-dropdown {
    position: relative;
    flex: 0 0 auto;
}

.categories-trigger {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--merc-chocolate);
    border-radius: 8px;
    background: var(--merc-chocolate);
    color: #fff;
    padding: 0 14px;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(59, 32, 22, 0.14);
}

.categories-trigger:hover {
    background: var(--merc-chocolate-dark);
}

.categories-content {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 40;
    min-width: 260px;
    border: 1px solid var(--merc-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(62, 38, 25, 0.12);
    overflow: hidden;
}

.categories-dropdown.open .categories-content {
    display: block;
}

.categories-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: var(--merc-ink);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid var(--merc-line);
}

.categories-content a:last-child {
    border-bottom: 0;
}

.categories-content a:hover {
    background: var(--merc-soft);
    color: var(--merc-chocolate);
}

.categories-content img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.merceri-search-box {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    min-height: 48px;
    flex: 1 1 auto;
    border: 1px solid rgba(33, 27, 24, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    padding: 4px 5px 4px 16px;
    box-shadow: 0 12px 34px rgba(33, 27, 24, 0.08);
}

.merceri-search-box:focus-within {
    border-color: rgba(33, 27, 24, 0.2);
    background: #fff;
}

.merceri-search-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    color: rgba(33, 27, 24, 0.72);
}

.merceri-search-icon svg,
.merceri-search-box button svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.merceri-search-box input {
    min-width: 0;
    height: 40px;
    border: 0;
    background: transparent;
    color: var(--merc-ink);
    font: inherit;
    font-size: 15px;
    outline: 0;
    padding: 0 12px;
}

.merceri-search-box input::placeholder {
    color: rgba(33, 27, 24, 0.46);
}

.merceri-search-box button {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: #111;
    color: #fff;
    cursor: pointer;
}

.merceri-search-box button:hover {
    background: #000;
}

.merceri-search-box button svg {
    width: 18px;
    height: 18px;
}

.merceri-quick-links {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

.merceri-quick-links a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    border: 1px solid var(--merc-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.68);
    padding: 8px 13px;
    color: var(--merc-chocolate);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.merceri-quick-links a:hover {
    background: #fff;
    border-color: rgba(59, 32, 22, 0.34);
}

/* Cart */
.cart-badge .cart-link,
.cart-badge > a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--merc-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    padding: 8px 12px;
    color: var(--merc-chocolate);
    font-weight: 800;
    text-decoration: none;
}

.cart-badge .badge,
.u-badge-compact {
    background: var(--merc-chocolate) !important;
    font-size: 0.65rem;
    padding: 0.25em 0.45em;
    top: -8px;
    right: -8px;
}

/* Hero */
.hero-slider {
    border-bottom: 1px solid var(--merc-line);
    background: linear-gradient(120deg, #fffdf8 0%, var(--merc-paper) 52%, #efe0cf 100%);
}

.hero-slider .swiper-slide {
    padding: 2.5rem 0 3rem;
}

.hero-slider .slide-title {
    margin-bottom: 1rem;
    color: var(--merc-chocolate);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 900;
    line-height: 1.08;
}

.hero-slider .slide-image img,
.hero-slider .u-max-h-350 {
    max-height: 320px;
    object-fit: contain;
}

.hero-slider .swiper-pagination-bullet-active {
    background: var(--merc-chocolate);
}

/* Sections */
.merceri-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.merceri-eyebrow {
    margin: 0 0 8px;
    color: var(--merc-green);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.merceri-section-head h2,
.page-title {
    margin: 0;
    color: var(--merc-chocolate);
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 900;
    line-height: 1.08;
}

/* Product cards */
.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--merc-line) !important;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(62, 38, 25, 0.06);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 32, 22, 0.28) !important;
    box-shadow: 0 18px 40px rgba(62, 38, 25, 0.1);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: contain;
    padding: 1rem;
    background: #fffdf8;
}

.product-card .card-title {
    font-size: 1rem;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .card-title a {
    color: var(--merc-chocolate);
    text-decoration: none;
}

.product-card .card-title a:hover {
    text-decoration: underline;
}

.product-card .price,
.product-price,
.cart-item-price {
    color: var(--merc-chocolate);
    font-weight: 900;
}

.product-card .category {
    color: var(--merc-muted);
}

.product-card .badge.bg-light {
    border: 1px solid rgba(100, 123, 86, 0.28);
    border-radius: 999px;
    background: #f7faf3 !important;
    color: #526845 !important;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.offer-card {
    border: 1px solid var(--merc-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(62, 38, 25, 0.06);
}

.offer-card .offer-label {
    display: inline-flex;
    border: 1px solid rgba(100, 123, 86, 0.28);
    border-radius: 999px;
    background: #f7faf3;
    padding: 5px 10px;
    color: #526845;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.countdown-item {
    min-width: 50px;
    text-align: center;
    background: var(--merc-soft);
    padding: 0.5rem;
    border-radius: 8px;
}

.countdown-item .value {
    display: block;
    color: var(--merc-chocolate);
    font-size: 1.15rem;
    font-weight: 900;
}

.countdown-item .label {
    color: var(--merc-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
}

.product-carousel .swiper-button-next,
.product-carousel .swiper-button-prev {
    color: var(--merc-chocolate);
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(62, 38, 25, 0.12);
}

.product-carousel .swiper-button-next::after,
.product-carousel .swiper-button-prev::after {
    font-size: 1rem;
}

.limited-band {
    border: 1px solid var(--merc-line);
    border-radius: 8px;
    background: #fffdf8;
}

.advantage-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 96px;
    border: 1px solid var(--merc-line);
    border-radius: 8px;
    background: #fff;
    padding: 16px;
    box-shadow: 0 12px 28px rgba(62, 38, 25, 0.05);
}

.advantage-card h6 {
    margin: 0 0 2px;
    color: var(--merc-chocolate);
    font-weight: 900;
}

/* Filters */
.filter-sidebar {
    border: 1px solid var(--merc-line);
    border-radius: 8px;
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 14px 34px rgba(62, 38, 25, 0.06);
}

.filter-title {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--merc-chocolate);
    color: var(--merc-chocolate);
    font-size: 1rem;
    font-weight: 900;
}

.noUi-target {
    background: var(--merc-soft);
    border: none;
    box-shadow: none;
}

.noUi-connect {
    background: var(--merc-chocolate);
}

.noUi-handle {
    background: var(--merc-chocolate);
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    width: 18px !important;
    height: 18px !important;
    right: -9px !important;
    top: -6px !important;
}

.noUi-handle::before,
.noUi-handle::after {
    display: none;
}

.price-display {
    margin-top: 0.75rem;
    text-align: center;
    color: var(--merc-ink);
    font-weight: 800;
}

.product-gallery .swiper-slide img,
.product-thumbs img {
    background: #fffdf8;
    border-radius: 8px;
}

.product-price {
    font-size: 2rem;
}

.cart-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--merc-line);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: #fffdf8;
    border-radius: 8px;
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--merc-line);
    border-radius: 8px;
}

.quantity-control button {
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    color: var(--merc-muted);
    cursor: pointer;
}

.quantity-control button:hover {
    color: var(--merc-chocolate);
}

.quantity-control input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--merc-line);
    border-right: 1px solid var(--merc-line);
}

.order-steps .nav-link.active {
    color: var(--merc-chocolate);
    background: none;
    border-bottom: 2px solid var(--merc-chocolate);
}

.review-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--merc-line);
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.auth-card,
.about-hero {
    border: 1px solid var(--merc-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(62, 38, 25, 0.06);
}

.auth-wordmark {
    color: var(--merc-chocolate);
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 0;
    text-decoration: none;
}

.stat-band {
    border: 1px solid var(--merc-line);
    border-radius: 8px;
    background: #fffdf8;
}

.stat-band h2 {
    color: var(--merc-chocolate);
    font-weight: 900;
}

/* Footer */
.site-footer {
    margin-top: 80px;
    background: var(--merc-footer);
    color: #f7f1ec;
}

.footer-cta {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid rgba(43, 19, 12, 0.08);
    border-radius: 24px;
    background: #f7f3ee;
    color: #2b130c;
    padding: 32px 36px;
    box-shadow: 0 18px 50px rgba(43, 19, 12, 0.16);
}

.footer-cta-content h2 {
    margin: 0 0 8px;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 900;
}

.footer-cta-content p {
    margin: 0;
    max-width: 640px;
    color: #6f5b51;
    font-size: 15px;
    line-height: 1.6;
}

.footer-cta-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.footer-btn-primary {
    border: 1px solid #2b130c;
    background: #2b130c;
    color: #fff;
}

.footer-btn-primary:hover {
    background: #1c0c08;
    color: #fff;
}

.footer-btn-secondary {
    border: 1px solid rgba(43, 19, 12, 0.16);
    background: #fff;
    color: #2b130c;
}

.footer-btn-secondary:hover {
    color: #2b130c;
}

.footer-main {
    width: min(1120px, calc(100% - 32px));
    margin: -10px auto 0;
    padding: 0 0 42px;
    display: grid;
    grid-template-columns: minmax(220px, 1.35fr) repeat(3, minmax(150px, 1fr));
    column-gap: clamp(36px, 6vw, 76px);
    row-gap: 28px;
}

.footer-logo {
    margin-bottom: 14px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.footer-brand p {
    margin: 0;
    max-width: 320px;
    color: #bfa99d;
    font-size: 14px;
    line-height: 1.7;
}

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.footer-tags span {
    display: inline-flex;
    height: 28px;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #e9dcd3;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 800;
}

.footer-col h3 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

.footer-col a {
    display: block;
    margin-bottom: 10px;
    color: #bfa99d;
    font-size: 14px;
    text-decoration: none;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 0 24px;
    color: #9f877b;
    font-size: 13px;
}

.footer-bottom a {
    color: #f7f1ec;
    font-weight: 800;
    text-decoration: none;
}

.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    display: inline-block;
}

#toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1100;
}

.cursor-pointer {
    cursor: pointer;
}

.u-object-cover { object-fit: cover; }
.u-object-contain { object-fit: contain; }
.u-size-50 { width: 50px; height: 50px; }
.u-size-60 { width: 60px; height: 60px; }
.u-size-70 { width: 70px; height: 70px; }
.u-size-80 { width: 80px; height: 80px; }
.u-size-4rem { width: 4rem; height: 4rem; }
.u-max-w-400 { max-width: 400px; }
.u-max-h-150 { max-height: 150px; }
.u-max-h-200 { max-height: 200px; }
.u-max-h-350 { max-height: 350px; }
.u-max-h-400 { max-height: 400px; }
.u-sticky-top-100 { top: 100px; z-index: 1; }

.container {
    width: min(1120px, calc(100% - 32px));
    max-width: 1120px;
}

@font-face {
    font-family: "bootstrap-icons";
    src: url("../fonts/bootstrap-icons/bootstrap-icons.woff2") format("woff2"),
        url("../fonts/bootstrap-icons/bootstrap-icons.woff") format("woff");
}

@media (max-width: 820px) {
    .merceri-quick-links {
        display: none;
    }

    .merceri-toolbar__inner {
        flex-wrap: wrap;
    }

    .merceri-search-box {
        order: 3;
        width: 100%;
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .hero-slider .slide-title {
        font-size: 32px;
    }

    .site-footer {
        margin-top: 56px;
    }

    .footer-cta {
        width: auto;
        margin: 0 16px;
        transform: translateY(-32px);
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }

    .footer-cta-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .footer-btn {
        width: 100%;
    }

    .footer-main,
    .footer-bottom {
        width: min(100% - 32px, 1120px);
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .merceri-header__inner {
        flex-wrap: wrap;
        padding: 14px 0;
    }

    .merceri-tagline {
        width: 100%;
        margin: -4px 0 0;
        white-space: normal;
    }

    .merceri-nav {
        width: 100%;
        justify-content: flex-start;
    }
}

.nav-tabs {
    border-bottom-color: var(--merc-line);
}

.nav-tabs .nav-link {
    color: var(--merc-muted);
    font-weight: 800;
    border: 0;
    border-bottom: 2px solid transparent;
}

.nav-tabs .nav-link.active {
    color: var(--merc-chocolate);
    background: transparent;
    border-color: transparent transparent var(--merc-chocolate);
}

.nav-tabs .nav-link:hover {
    color: var(--merc-chocolate);
    isolation: isolate;
    border-color: transparent transparent var(--merc-line);
}

.product-thumbnail.active img {
    border-color: var(--merc-chocolate) !important;
}


.categories-content {
    max-height: min(70vh, 560px);
    overflow: auto;
    min-width: 280px;
}

.categories-content .cat-root {
    background: #fffdf8;
    font-weight: 900;
}

.categories-content .cat-child {
    padding-left: 28px;
    font-weight: 700;
    color: var(--merc-muted);
}

.categories-content a img {
    display: block;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    object-fit: contain;
}

.categories-content .cat-child img {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.categories-content a {
    gap: 10px;
}

