/*
Theme Name: Caffe24
Theme URI: https://caffe24.shop
Author: Caffe24
Author URI: https://caffe24.shop
Description: Tema custom minimale per gestire header, footer e single product senza Astra o Elementor Pro.
Version: 1.0.0
Text Domain: caffe24
*/

:root {
    --c24-blue: #2b3a8c;
    --c24-blue-dark: #18234f;
    --c24-gold: #c6922b;
    --c24-gold-soft: #fff7e6;
    --c24-text: #111827;
    --c24-muted: #6b7280;
    --c24-border: rgba(43, 58, 140, 0.12);
    --c24-surface: #f8f9fa;
    --c24-white: #ffffff;
    --c24-shell: min(1280px, calc(100vw - 32px));
    --c24-radius-lg: 24px;
    --c24-radius-md: 18px;
    --c24-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--c24-text);
    background: linear-gradient(180deg, #f5f7fb 0%, #ffffff 220px);
    font-family: 'DM Sans', 'Inter', sans-serif;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.c24-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(43, 58, 140, 0.08);
}

.admin-bar .c24-site-header {
    top: 32px;
}

.c24-site-header__main,
.c24-site-header__secondary-inner,
.c24-page-shell,
.c24-footer__inner {
    width: var(--c24-shell);
    margin: 0 auto;
}

.c24-site-header__main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    min-height: 78px;
}

.c24-site-header__mobile-placeholder {
    display: block;
    width: 40px;
    height: 40px;
}

.c24-site-header__mobile-actions,
.c24-site-header__mobile-tools {
    display: none;
}

.c24-site-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--c24-blue);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.c24-site-header__brand .custom-logo,
.c24-site-header__brand img {
    max-height: 58px;
    width: auto;
}

.c24-wordmark {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    font-size: 24px;
    line-height: 1;
}

.c24-site-header__desktop-nav {
    display: flex;
    justify-content: center;
}

.c24-site-header__tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.c24-site-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: min(280px, 28vw);
    padding: 10px 14px;
    border: 1px solid var(--c24-border);
    border-radius: 999px;
    background: #fff;
}

.c24-site-search__icon {
    color: var(--c24-muted);
    font-size: 18px;
}

.c24-site-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0;
    color: var(--c24-text);
    font-size: 14px;
}

.c24-site-search button {
    border: 0;
    background: transparent;
    color: var(--c24-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0;
}

.c24-site-header__secondary {
    background: var(--c24-surface);
    border-top: 1px solid rgba(43, 58, 140, 0.06);
}

.c24-site-header__brands {
    background: #fff;
    border-top: 1px solid rgba(43, 58, 140, 0.06);
}

.c24-site-header__brands-inner,
.c24-site-header__mobile-cats-inner {
    width: var(--c24-shell);
    margin: 0 auto;
}

.c24-site-header__brands-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    min-height: 64px;
}

.c24-site-header__brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 4px;
    opacity: 0.78;
    transition: opacity .2s ease, transform .2s ease;
}

.c24-site-header__brand-logo:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.c24-site-header__brand-logo img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.c24-site-header__mobile-cats {
    display: none;
    background: var(--c24-surface);
    border-top: 1px solid rgba(43, 58, 140, 0.06);
}

.c24-site-header__mobile-cats-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    overflow-x: auto;
    scrollbar-width: none;
}

.c24-site-header__mobile-cats-inner::-webkit-scrollbar {
    display: none;
}

.c24-site-header__mobile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 12px;
    color: var(--c24-blue);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.c24-main {
    min-height: calc(100vh - 220px);
}

.c24-page-shell {
    padding: 34px 0 56px;
}

.c24-page-card {
    background: var(--c24-white);
    border: 1px solid rgba(43, 58, 140, 0.08);
    border-radius: var(--c24-radius-lg);
    box-shadow: var(--c24-shadow);
    padding: 32px;
}

.c24-page-entry > :first-child {
    margin-top: 0;
}

.c24-page-entry > :last-child {
    margin-bottom: 0;
}

.c24-page-title {
    margin: 0 0 24px;
    color: var(--c24-blue-dark);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.08;
}

.c24-footer {
    background: var(--c24-blue);
    color: #fff;
    margin-top: 48px;
}

.c24-footer__inner {
    padding: 56px 0 28px;
}

.c24-footer__grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.5fr) 1fr 1fr 1fr;
    gap: 32px 40px;
    margin-bottom: 42px;
}

.c24-footer__logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    text-decoration: none;
    color: #fff;
}

.c24-footer__logo .custom-logo,
.c24-footer__logo img {
    max-height: 224px;
    width: auto;
    filter: brightness(0) invert(1);
}

.c24-footer__claim {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.7;
    max-width: 320px;
}

.c24-footer__title {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.c24-footer__links,
.c24-footer__contacts {
    display: grid;
    gap: 12px;
}

.c24-footer__links a,
.c24-footer__contacts a,
.c24-footer__contacts span {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
}

.c24-footer__links a:hover,
.c24-footer__contacts a:hover,
.c24-footer__social-link:hover,
.c24-footer__bottom a:hover {
    opacity: 0.72;
}

.c24-footer__social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.c24-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    font-size: 20px;
}

.c24-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.c24-footer__bottom span,
.c24-footer__bottom a {
    text-align: center;
}

.c24-footer__bottom a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

.c24-product {
    display: grid;
    gap: 28px;
}

.c24-product__breadcrumb {
    margin-bottom: 6px;
}

.c24-product__breadcrumb .woocommerce-breadcrumb {
    margin: 0;
    color: var(--c24-muted);
    font-size: 13px;
}

.c24-product__breadcrumb .woocommerce-breadcrumb a {
    color: var(--c24-muted);
    text-decoration: none;
}

.c24-product__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 42px;
    align-items: start;
}

.c24-product__gallery,
.c24-product__summary,
.c24-product__details,
.c24-product__related {
    background: #fff;
    border: 1px solid rgba(43, 58, 140, 0.08);
    border-radius: var(--c24-radius-lg);
    box-shadow: var(--c24-shadow);
}

.c24-product__gallery {
    padding: 24px;
}

.c24-product__summary {
    padding: 28px;
}

.c24-product__details {
    padding: 30px;
}

.c24-product__section-title {
    margin: 0 0 18px;
    color: var(--c24-blue-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.c24-product__description {
    color: #334155;
    font-size: 15px;
    line-height: 1.75;
}

.c24-product__description > :first-child {
    margin-top: 0;
}

.c24-product__description > :last-child {
    margin-bottom: 0;
}

.c24-product__meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.c24-product__meta-card {
    padding: 16px 18px;
    border-radius: var(--c24-radius-md);
    background: var(--c24-surface);
    border: 1px solid rgba(43, 58, 140, 0.08);
}

.c24-product__meta-label {
    display: block;
    margin-bottom: 8px;
    color: var(--c24-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.c24-product__meta-value {
    display: block;
    color: var(--c24-blue-dark);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.c24-product__attributes {
    margin-top: 24px;
}

.c24-product__attributes table.shop_attributes {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: var(--c24-radius-md);
}

.c24-product__attributes table.shop_attributes th,
.c24-product__attributes table.shop_attributes td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(43, 58, 140, 0.08);
    text-align: left;
    font-size: 14px;
}

.c24-product__attributes table.shop_attributes th {
    width: 220px;
    color: var(--c24-blue-dark);
    background: var(--c24-surface);
    font-weight: 800;
}

.c24-product__related {
    padding: 16px;
}

.c24-product__related .cf-wrapper {
    padding: 12px 4px;
}

.c24-product__gallery .woocommerce-product-gallery {
    margin: 0;
}

.c24-product__gallery .woocommerce-product-gallery__image,
.c24-product__gallery .woocommerce-product-gallery__image a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
}

.c24-product__gallery .flex-control-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.c24-product__gallery .flex-control-thumbs li {
    float: none;
    width: auto;
}

.c24-product__gallery .flex-control-thumbs img {
    border-radius: 16px;
    border: 1px solid rgba(43, 58, 140, 0.12);
    background: #fff;
}

.c24-shop-wrapper,
.woocommerce-cart .c24-page-card,
.woocommerce-checkout .c24-page-card,
.woocommerce-account .c24-page-card {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

@media (max-width: 1024px) {
    .c24-site-header__main {
        grid-template-columns: auto 1fr auto;
        min-height: 72px;
    }

    .c24-site-header__desktop-nav,
    .c24-site-header__secondary,
    .c24-site-search {
        display: none;
    }

    .c24-site-header__mobile-actions,
    .c24-site-header__mobile-tools {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .c24-site-header__tools {
        display: none;
    }

    .c24-site-header__brands,
    .c24-site-header__mobile-cats {
        display: block;
    }

    .c24-site-header__main,
    .c24-site-header__brands-inner,
    .c24-site-header__mobile-cats-inner,
    .c24-page-shell,
    .c24-footer__inner {
        width: min(100vw - 24px, 100%);
    }

    .c24-product__hero,
    .c24-footer__grid,
    .c24-product__meta-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 782px) {
    .admin-bar .c24-site-header {
        top: 46px;
    }
}

@media (max-width: 767px) {
    .c24-site-header__main,
    .c24-site-header__secondary-inner,
    .c24-page-shell,
    .c24-footer__inner {
        width: min(100vw - 24px, 100%);
    }

    .c24-site-header__main {
        grid-template-columns: 40px 1fr auto;
        gap: 10px;
        min-height: 68px;
    }

    .c24-site-header__brand {
        justify-content: center;
    }

    .c24-site-header__brand .custom-logo,
    .c24-site-header__brand img {
        max-height: 42px;
    }

    .c24-site-header__mobile-tools {
        gap: 6px;
    }

    .c24-site-header__mobile-tools .c24ci-trigger,
    .c24-site-header__mobile-tools .c24hm-mobile-trigger {
        width: 40px;
        height: 40px;
        justify-content: center;
    }

    .c24-site-header__mobile-tools .c24ci-trigger span:last-child,
    .c24-site-header__mobile-tools .c24hm-mobile-trigger span {
        display: none;
    }

    .c24-site-header__brands-inner {
        justify-content: flex-start;
        gap: 18px;
        min-height: 48px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .c24-site-header__brands-inner::-webkit-scrollbar {
        display: none;
    }

    .c24-site-header__brand-logo {
        flex: 0 0 auto;
        height: 34px;
    }

    .c24-site-header__brand-logo img {
        max-height: 30px;
    }

    .c24-page-shell {
        padding: 24px 0 40px;
    }

    .c24-page-card,
    .c24-product__summary,
    .c24-product__details,
    .c24-product__gallery {
        padding: 22px;
        border-radius: 22px;
    }

    .c24-product__hero,
    .c24-footer__grid,
    .c24-product__meta-grid,
    .c24-footer__bottom {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .c24-footer__bottom {
        gap: 10px;
    }

    .c24-footer__logo .custom-logo,
    .c24-footer__logo img {
        max-height: 120px;
    }
}

.c24r-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(43, 58, 140, 0.08);
}

.admin-bar .c24r-header {
    top: 32px;
}

.c24r-header__main-inner,
.c24r-header__secondary-inner,
.c24r-header__brands-inner,
.c24r-mobile-cats__inner {
    width: min(1280px, calc(100vw - 48px));
    margin: 0 auto;
}

.c24r-header__main-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 24px;
}

.c24r-header__brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.c24r-header__brand .custom-logo,
.c24r-header__brand img,
.c24r-mobile-drawer__brand .custom-logo,
.c24r-mobile-drawer__brand img {
    width: auto;
    object-fit: contain;
}

.c24r-header__brand .custom-logo,
.c24r-header__brand img {
    max-height: 58px;
}

.c24r-header__primary {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 34px;
}

.c24r-header__primary-link,
.c24r-mega__direct-link {
    color: var(--c24-blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: opacity .2s ease, color .2s ease;
}

.c24r-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.c24r-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.c24r-header__primary-link:hover,
.c24r-header__primary-link.is-active,
.c24r-mega__direct-link:hover,
.c24r-mega__direct-link.is-active {
    color: var(--c24-gold);
}

.c24r-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.c24r-icon-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: var(--c24-blue);
    cursor: pointer;
    font-size: 22px;
}

.c24r-icon-button:hover {
    color: var(--c24-gold);
}

.c24r-search,
.c24r-user {
    position: relative;
}

.c24r-search__panel,
.c24r-user__menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    min-width: 320px;
    background: #fff;
    border: 1px solid rgba(43, 58, 140, 0.08);
    border-radius: 22px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index: 90;
}

.c24r-search.is-open .c24r-search__panel,
.c24r-user.is-open .c24r-user__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.c24r-search__form {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
}

.c24r-search__form i {
    color: #9ca3af;
    font-size: 18px;
}

.c24r-search__form input {
    flex: 1 1 auto;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
    color: #111827;
}

.c24r-search__form button {
    border: 0;
    background: transparent;
    color: var(--c24-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
}

.c24r-user-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.c24r-user-badge .ri-user-line {
    font-size: 18px;
}

.c24r-user__menu {
    min-width: 240px;
    padding: 10px;
}

.c24r-user__head {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(43, 58, 140, 0.08);
}

.c24r-user__head strong {
    color: #111827;
    font-size: 14px;
}

.c24r-user__head span {
    color: #6b7280;
    font-size: 12px;
}

.c24r-user__links {
    display: grid;
    gap: 4px;
    padding-top: 8px;
}

.c24r-user__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    color: #374151;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.c24r-user__link:hover {
    background: #f9fafb;
    color: var(--c24-blue);
}

.c24r-user__link.is-logout {
    color: #dc2626;
}

.c24r-user__link.is-logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

.c24r-cart__count {
    position: absolute;
    top: 1px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #f59e0b;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    opacity: 0;
    transform: scale(.8);
    transition: opacity .2s ease, transform .2s ease;
}

.c24r-cart__count.is-visible {
    opacity: 1;
    transform: scale(1);
}

.c24r-mobile-menu-toggle {
    display: none;
}

.c24r-header__secondary {
    background: #f8f9fa;
    border-top: 1px solid rgba(43, 58, 140, 0.06);
}

.c24r-mega {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    min-height: 40px;
}

.c24r-mega__item {
    position: relative;
}

.c24r-mega__trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 0;
    background: transparent;
    color: var(--c24-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.c24r-mega__item.is-open .c24r-mega__trigger,
.c24r-mega__trigger:hover {
    color: var(--c24-gold);
}

.c24r-mega__panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translate(-50%, -8px);
    width: 220px;
    padding: 12px;
    background: #fff;
    border: 1px solid rgba(43, 58, 140, 0.08);
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index: 80;
}

.c24r-mega__item.is-open .c24r-mega__panel {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.c24r-mega__list {
    display: grid;
    gap: 6px;
}

.c24r-mega__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 14px;
    border: 1px solid transparent;
    text-decoration: none;
}

.c24r-mega__link:hover {
    background: #f8f9fa;
    border-color: rgba(198, 146, 43, 0.24);
}

.c24r-mega__thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
}

.c24r-mega__thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.c24r-mega__label {
    color: var(--c24-blue);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.c24r-mega__footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(43, 58, 140, 0.08);
    color: var(--c24-blue);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

.c24r-mega__footer-link:hover {
    color: var(--c24-gold);
}

.c24r-header__brands {
    background: #fff;
    border-top: 1px solid rgba(43, 58, 140, 0.06);
}

.c24r-header__brands-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    min-height: 64px;
}

.c24r-header__brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    opacity: .78;
    transition: opacity .2s ease;
}

.c24r-header__brand-link:hover {
    opacity: 1;
}

.c24r-header__brand-link img {
    max-height: 42px;
    width: auto;
    object-fit: contain;
}

.c24r-mobile-cats,
.c24r-mobile-overlay,
.c24r-mobile-drawer {
    display: none;
}

.c24r-mobile-cats {
    background: #f8f9fa;
    border-top: 1px solid rgba(43, 58, 140, 0.06);
}

.c24r-mobile-cats__inner {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    overflow-x: auto;
    scrollbar-width: none;
}

.c24r-mobile-cats__inner::-webkit-scrollbar {
    display: none;
}

.c24r-mobile-cats__button,
.c24r-mobile-cats__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--c24-blue);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
}

.c24r-mobile-cats__button.is-open,
.c24r-mobile-cats__button:hover,
.c24r-mobile-cats__link:hover {
    background: rgba(43, 58, 140, 0.08);
}

.c24r-mobile-panel {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    background: #fff;
    border-top: 1px solid rgba(43, 58, 140, 0.08);
}

.c24r-mobile-panel.is-open {
    display: grid;
}

.c24r-mobile-panel__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f8f9fa;
    color: var(--c24-blue);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.c24r-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
    z-index: 1090;
}

.c24r-mobile-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.c24r-mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 84vw);
    background: #fff;
    box-shadow: -8px 0 32px rgba(15, 23, 42, 0.22);
    transform: translateX(100%);
    transition: transform .24s ease;
    z-index: 1100;
    flex-direction: column;
}

.c24r-mobile-drawer.is-open {
    transform: translateX(0);
}

.c24r-mobile-drawer__head,
.c24r-mobile-drawer__foot {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(43, 58, 140, 0.08);
}

.c24r-mobile-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.c24r-mobile-drawer__brand .custom-logo,
.c24r-mobile-drawer__brand img {
    max-height: 42px;
}

.c24r-mobile-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 22px;
}

.c24r-mobile-drawer__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 20px;
    display: grid;
    gap: 18px;
}

.c24r-mobile-user-card,
.c24r-mobile-login {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    text-decoration: none;
}

.c24r-mobile-user-card {
    background: #fffbeb;
}

.c24r-mobile-user-card div {
    display: grid;
    gap: 4px;
}

.c24r-mobile-user-card strong {
    color: #111827;
    font-size: 14px;
}

.c24r-mobile-user-card span {
    color: #92400e;
    font-size: 12px;
}

.c24r-mobile-login {
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.c24r-mobile-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(43, 58, 140, 0.12);
    border-radius: 16px;
    background: #f9fafb;
}

.c24r-mobile-search input {
    flex: 1 1 auto;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 16px;
}

.c24r-mobile-nav,
.c24r-mobile-brands {
    display: grid;
    gap: 8px;
}

.c24r-mobile-nav__link,
.c24r-mobile-brands__link,
.c24r-mobile-logout {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    color: var(--c24-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

.c24r-mobile-nav__link {
    background: #f9fafb;
}

.c24r-mobile-brands {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.c24r-mobile-brands__link {
    justify-content: center;
    background: #f9fafb;
    border: 1px solid rgba(43, 58, 140, 0.08);
}

.c24r-mobile-brands__link img {
    max-height: 28px;
    width: auto;
}

.c24r-mobile-drawer__foot {
    border-top: 1px solid rgba(43, 58, 140, 0.08);
    border-bottom: 0;
}

.c24r-mobile-logout {
    justify-content: center;
    color: #dc2626;
    background: #fef2f2;
}

@media (max-width: 1024px) {
    .c24r-header__main-inner,
    .c24r-header__secondary-inner,
    .c24r-header__brands-inner,
    .c24r-mobile-cats__inner {
        width: min(100vw - 24px, 100%);
    }

    .c24r-header__main-inner {
        min-height: 56px;
    }

    .c24r-header__primary,
    .c24r-search,
    .c24r-user,
    .c24r-header__secondary {
        display: none;
    }

    .c24r-mobile-menu-toggle,
    .c24r-mobile-cats,
    .c24r-mobile-overlay,
    .c24r-mobile-drawer {
        display: flex;
    }

    .c24r-mobile-cats,
    .c24r-mobile-drawer,
    .c24r-mobile-overlay {
        display: block;
    }

    .c24r-header__brand {
        margin: 0 auto;
    }

    .c24r-header__brand .custom-logo,
    .c24r-header__brand img {
        max-height: 42px;
    }

    .c24r-header__actions {
        gap: 4px;
    }

    .c24r-header__actions .c24r-cart {
        order: 1;
    }

    .c24r-mobile-menu-toggle {
        order: 2;
    }

    .c24r-header__brands-inner {
        justify-content: flex-start;
        gap: 18px;
        min-height: 48px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .c24r-header__brands-inner::-webkit-scrollbar {
        display: none;
    }

    .c24r-header__brand-link {
        flex: 0 0 auto;
        height: 34px;
    }

    .c24r-header__brand-link img {
        max-height: 32px;
    }
}

@media (max-width: 782px) {
    .admin-bar .c24r-header {
        top: 46px;
    }
}