/*
|--------------------------------------------------------------------------
| Matec Super Header - Queen Modern Layout
|--------------------------------------------------------------------------
*/

.mtc-super-header {
    --mtc-header-current-height: var(--mtc-header-height, 92px);
    --mtc-header-current-news-height: var(--mtc-header-news-height, 32px);
    --mtc-header-current-logo-width: var(--mtc-header-logo-width, 124px);
    --mtc-header-current-logo-height: var(--mtc-header-logo-height, 76px);
    --mtc-header-shell-max-width: min(1480px, calc(100vw - 48px));
    --mtc-header-cream: var(--mtc-color-header-bg, #fff8ee);
    --mtc-header-cream-soft: color-mix(in srgb, var(--mtc-header-cream) 86%, white 14%);
    --mtc-header-green: var(--mtc-color-primary, #5b705d);
    --mtc-header-green-dark: color-mix(in srgb, var(--mtc-header-green) 78%, black 22%);
    --mtc-header-gold: var(--mtc-color-buy, #f4c400);
    --mtc-header-border-soft: color-mix(in srgb, var(--mtc-color-header-border, #e4d8c8) 78%, transparent 22%);

    position: fixed;
    inset: 0 0 auto;
    z-index: var(--mtc-z-header, 999);

    width: 100%;

    background: transparent;
    color: var(--mtc-color-header-text, #223027);
    font-family: var(--mtc-font-family-base, inherit);

    opacity: 0;
    transform: translateY(-16px);
    pointer-events: none;

    transition:
        opacity var(--mtc-transition-fast, 180ms ease),
        transform var(--mtc-transition-fast, 180ms ease),
        box-shadow var(--mtc-transition-fast, 180ms ease);
}

.mtc-super-header,
.mtc-super-header *,
.mtc-super-header *::before,
.mtc-super-header *::after {
    box-sizing: border-box;
}

.mtc-super-header.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mtc-super-header.is-scrolled .mtc-super-header__main,
.mtc-super-header.is-scrolled .mtc-super-header__commerce-tools {
    box-shadow: var(--mtc-shadow-sm, 0 8px 24px rgba(0, 0, 0, 0.08));
}

.mtc-super-header__main {
    position: relative;

    min-height: var(--mtc-header-current-height);

    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.12)),
        var(--mtc-header-cream);
    border-bottom: 1px solid var(--mtc-header-border-soft);
}

.mtc-super-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--mtc-space-xl, 32px);

    width: var(--mtc-header-shell-max-width);
    min-height: var(--mtc-header-current-height);
    margin-inline: auto;
    padding-inline: var(--mtc-space-sm, 12px);
}

.mtc-super-header__left {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: clamp(20px, 3vw, 48px);
}

.mtc-super-header__brand {
    z-index: 4;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    width: var(--mtc-header-current-logo-width);
    height: var(--mtc-header-current-logo-height);
    padding: var(--mtc-space-sm, 12px);

    border-radius: var(--mtc-radius-md, 16px);
    overflow: hidden;

    color: var(--mtc-color-header-brand-text, #fff);
}

.mtc-super-header--queen .mtc-super-header__brand {
    background: transparent;
    color: var(--mtc-header-green);
    box-shadow: none;
}

.mtc-super-header__brand-link {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: inherit;
    text-decoration: none;
}

.mtc-super-header__brand img,
.mtc-super-header__mobile-brand img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mtc-super-header__brand strong,
.mtc-super-header__mobile-brand strong {
    display: block;

    max-width: 100%;

    font-family: var(--mtc-font-family-heading, inherit);
    font-size: var(--mtc-font-size-lg, 20px);
    font-weight: var(--mtc-font-weight-bold, 800);
    line-height: var(--mtc-line-height-tight, 1.1);
    text-align: center;
    letter-spacing: var(--mtc-letter-spacing-display, 0.02em);
}

.mtc-super-header__icon {
    color: var(--mtc-color-header-icon, #223027);
}

.mtc-super-header__icon:hover {
    color: var(--mtc-color-header-link-hover, var(--mtc-header-green));
}

/*
|--------------------------------------------------------------------------
| Header Actions
|--------------------------------------------------------------------------
*/

.mtc-super-header__actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(10px, 1.4vw, 22px);
}

.mtc-super-header__actions .mtc-icon-button {
    position: relative;

    display: inline-grid;
    justify-items: center;
    align-content: center;
    gap: 4px;

    width: auto;
    min-width: 52px;
    height: auto;
    min-height: 54px;
    padding: 6px 8px;

    border: 0;
    border-radius: var(--mtc-radius-md, 14px);

    background: transparent;
    color: var(--mtc-color-header-icon, #1f2720);

    text-decoration: none;
    cursor: pointer;

    transition:
        background-color var(--mtc-transition-fast, 180ms ease),
        color var(--mtc-transition-fast, 180ms ease),
        transform var(--mtc-transition-fast, 180ms ease);
}

.mtc-super-header__actions .mtc-icon-button:hover {
    background: color-mix(in srgb, var(--mtc-header-green) 9%, transparent);
    color: var(--mtc-header-green-dark);
    transform: translateY(-1px);
}

.mtc-super-header__actions .mtc-icon-button svg {
    width: 24px;
    height: 24px;
}

.mtc-super-header__actions .mtc-icon-button span:not(.mtc-super-header__cart-count) {
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
}

.mtc-super-header__cart-button {
    position: relative;
}

.mtc-super-header__cart-count {
    position: absolute;
    top: -10px;
    right: -10px;

    min-width: 18px;
    height: 18px;
    padding-inline: 4px;

    border: 2px solid var(--mtc-header-cream);

    font-size: var(--mtc-font-size-2xs, 10px);
    line-height: 1;
}

/*
|--------------------------------------------------------------------------
| Desktop Menu
|--------------------------------------------------------------------------
*/

.mtc-super-header__menu {
    min-width: 0;
}

.mtc-super-header__menu ul,
.mtc-super-header__menu li {
    padding: 0;
    margin: 0;
    list-style: none;
}

.mtc-super-header__menu li {
    position: relative;
}

.mtc-super-header__menu > .mtc-super-header__menu-list {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.2vw, 34px);

    min-width: 0;
}

.mtc-super-header__menu > .mtc-super-header__menu-list > li > a {
    position: relative;

    display: inline-flex;
    align-items: center;
    gap: var(--mtc-space-xs, 8px);

    min-height: 44px;

    color: var(--mtc-color-header-link, #243126);

    font-size: var(--mtc-font-size-sm, 14px);
    font-weight: var(--mtc-font-weight-semibold, 700);
    line-height: 1;
    letter-spacing: var(--mtc-letter-spacing-sm, 0.01em);
    text-decoration: none;

    transition:
        color var(--mtc-transition-fast, 180ms ease),
        opacity var(--mtc-transition-fast, 180ms ease);
}

.mtc-super-header__menu > .mtc-super-header__menu-list > .menu-item-has-children > a::before {
    content: "";

    order: 2;

    width: 6px;
    height: 6px;

    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;

    opacity: 0.7;
    transform: rotate(45deg) translateY(-1px);

    transition:
        transform var(--mtc-transition-fast, 180ms ease),
        opacity var(--mtc-transition-fast, 180ms ease);
}

.mtc-super-header__menu > .mtc-super-header__menu-list > li > a::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;

    height: 2px;

    border-radius: var(--mtc-radius-pill, 999px);
    background: var(--mtc-header-gold);

    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;

    transition:
        opacity var(--mtc-transition-fast, 180ms ease),
        transform var(--mtc-transition-fast, 180ms ease);
}

.mtc-super-header__menu > .mtc-super-header__menu-list > li:hover > a,
.mtc-super-header__menu > .mtc-super-header__menu-list > li:focus-within > a,
.mtc-super-header__menu > .mtc-super-header__menu-list > .current-menu-item > a,
.mtc-super-header__menu > .mtc-super-header__menu-list > .current-menu-parent > a,
.mtc-super-header__menu > .mtc-super-header__menu-list > .current-menu-ancestor > a {
    color: var(--mtc-color-header-link-hover, var(--mtc-header-green));
}

.mtc-super-header__menu > .mtc-super-header__menu-list > li:hover > a::after,
.mtc-super-header__menu > .mtc-super-header__menu-list > li:focus-within > a::after,
.mtc-super-header__menu > .mtc-super-header__menu-list > .current-menu-item > a::after,
.mtc-super-header__menu > .mtc-super-header__menu-list > .current-menu-parent > a::after,
.mtc-super-header__menu > .mtc-super-header__menu-list > .current-menu-ancestor > a::after {
    opacity: 1;
    transform: scaleX(1);
}

/*
|--------------------------------------------------------------------------
| Desktop Submenu
|--------------------------------------------------------------------------
*/

.mtc-super-header__menu .sub-menu {
    position: absolute;
    left: 0;
    top: calc(100% + var(--mtc-space-xs, 8px));

    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(6, auto);
    grid-auto-columns: minmax(220px, max-content);
    gap: var(--mtc-space-3xs, 4px) var(--mtc-space-xs, 8px);

    width: max-content;
    min-width: 220px;
    max-width: min(720px, calc(100vw - 48px));
    padding: var(--mtc-space-xs, 8px);

    border: 1px solid var(--mtc-color-border-subtle, rgba(0, 0, 0, 0.08));
    border-radius: var(--mtc-radius-md, 14px);

    background: var(--mtc-color-card-bg, #fffaf3);
    box-shadow: var(--mtc-shadow-lg, 0 20px 50px rgba(0, 0, 0, 0.14));

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(var(--mtc-space-xs, 8px));

    transition:
        opacity var(--mtc-transition-fast, 180ms ease),
        visibility var(--mtc-transition-fast, 180ms ease),
        transform var(--mtc-transition-fast, 180ms ease);
}

.mtc-super-header__menu .menu-item-has-children::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    top: 100%;

    height: var(--mtc-space-sm, 12px);
}

.mtc-super-header__menu .menu-item-has-children:hover > .sub-menu,
.mtc-super-header__menu .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.mtc-super-header__menu .sub-menu a {
    display: flex;
    align-items: center;

    min-height: var(--mtc-size-button-height-sm, 38px);
    padding-inline: var(--mtc-space-sm, 12px);

    border-radius: var(--mtc-radius-sm, 10px);

    color: var(--mtc-color-text, #323232);

    font-size: var(--mtc-font-size-sm, 14px);
    font-weight: var(--mtc-font-weight-medium, 600);
    line-height: var(--mtc-line-height-snug, 1.25);
    white-space: nowrap;
    text-decoration: none;

    transition:
        background-color var(--mtc-transition-fast, 180ms ease),
        color var(--mtc-transition-fast, 180ms ease),
        transform var(--mtc-transition-fast, 180ms ease);
}

.mtc-super-header__menu .sub-menu a:hover,
.mtc-super-header__menu .sub-menu .current-menu-item > a {
    background: var(--mtc-color-primary-soft, rgba(91, 112, 93, 0.13));
    color: var(--mtc-color-header-link-hover, var(--mtc-header-green));
    transform: translateX(var(--mtc-space-3xs, 4px));
}

/*
|--------------------------------------------------------------------------
| News / Promo Bar
|--------------------------------------------------------------------------
*/

.mtc-super-header__news {
    position: relative;
    z-index: 5;

    height: var(--mtc-header-current-news-height);
    overflow: hidden;

    background: linear-gradient(90deg, var(--mtc-header-green-dark), var(--mtc-header-green));
    color: var(--mtc-color-header-news-text, #fff);
}

.mtc-super-header__news-window {
    position: relative;
    width: 100%;
    height: var(--mtc-header-current-news-height);
}

.mtc-super-header__news-item {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding-inline: var(--mtc-space-md, 16px);

    overflow: hidden;

    color: inherit;

    font-family: var(--mtc-font-family-heading, inherit);
    font-size: var(--mtc-font-size-fluid-sm, 13px);
    font-weight: var(--mtc-font-weight-bold, 800);
    line-height: 1;
    letter-spacing: var(--mtc-letter-spacing-wide, 0.08em);
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-decoration: none;

    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;

    transition:
        opacity var(--mtc-transition-base, 260ms ease),
        transform var(--mtc-transition-base, 260ms ease);
}

.mtc-super-header__news-item.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/*
|--------------------------------------------------------------------------
| Commerce Submenu / Shop Tools
|--------------------------------------------------------------------------
*/

.mtc-super-header__commerce-tools {
    display: block;

    border-bottom: 1px solid var(--mtc-header-border-soft);

    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.08)),
        var(--mtc-header-cream-soft);
}

.mtc-super-header__commerce-inner {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(150px, 190px);
    align-items: center;
    gap: var(--mtc-space-sm, 12px);

    width: var(--mtc-header-shell-max-width);
    min-height: 62px;
    margin-inline: auto;
    padding: 10px var(--mtc-space-sm, 12px);
}

.mtc-super-header__commerce-search,
.mtc-super-header__commerce-filter,
.mtc-super-header__commerce-order select {
    min-height: 42px;

    border: 1px solid color-mix(in srgb, var(--mtc-color-border, #cfc5b7) 72%, transparent 28%);
    border-radius: var(--mtc-radius-pill, 999px);

    background: rgba(255, 255, 255, 0.62);
    color: var(--mtc-color-text, #323232);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.42) inset;
}

.mtc-super-header__commerce-search {
    display: flex;
    align-items: center;
    gap: 10px;

    padding-inline: 14px;
}

.mtc-super-header__commerce-search svg {
    flex: 0 0 auto;
    color: var(--mtc-header-green);
}

.mtc-super-header__commerce-search input {
    width: 100%;
    min-width: 0;

    border: 0;
    outline: 0;

    background: transparent;
    color: inherit;
    font: inherit;
}

.mtc-super-header__commerce-search input::placeholder {
    color: var(--mtc-color-text-muted, #8a8177);
}

.mtc-super-header__commerce-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding-inline: 18px;

    font-weight: 800;

    cursor: pointer;

    transition:
        background-color var(--mtc-transition-fast, 180ms ease),
        color var(--mtc-transition-fast, 180ms ease),
        border-color var(--mtc-transition-fast, 180ms ease),
        transform var(--mtc-transition-fast, 180ms ease);
}

.mtc-super-header__commerce-filter:hover {
    background: var(--mtc-header-green);
    border-color: var(--mtc-header-green);
    color: #fff;
    transform: translateY(-1px);
}

.mtc-super-header__commerce-order select {
    width: 100%;
    padding-inline: 16px 34px;

    font: inherit;
    font-weight: 700;

    cursor: pointer;
}

/*
|--------------------------------------------------------------------------
| Mobile Header
|--------------------------------------------------------------------------
*/

.mtc-super-header__mobile {
    display: none;
}

.mtc-super-header__mobile-brand {
    display: flex;
    align-items: center;
    justify-content: center;

    width: min(150px, 42vw);
    height: 58px;
    margin-inline: auto;

    color: var(--mtc-header-green);
}

.mtc-super-header__mobile-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;

    width: 100%;

    border-top: 1px solid var(--mtc-header-border-soft);
}

.mtc-super-header__mobile-actions .mtc-icon-button {
    position: relative;

    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;

    min-width: 0;
    min-height: 54px;
    padding: 6px 4px;

    border: 0;
    border-right: 1px solid color-mix(in srgb, var(--mtc-header-border-soft) 66%, transparent 34%);
    border-radius: 0;

    background: transparent;
    color: var(--mtc-color-header-icon, #223027);
}

.mtc-super-header__mobile-actions .mtc-icon-button:last-child {
    border-right: 0;
}

.mtc-super-header__mobile-actions .mtc-icon-button svg {
    width: 20px;
    height: 20px;
}

.mtc-super-header__mobile-actions .mtc-icon-button span:not(.mtc-super-header__cart-count) {
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

/*
|--------------------------------------------------------------------------
| Shared Dialog / Panels
|--------------------------------------------------------------------------
*/

.mtc-super-header__dialog {
    margin: 0;
    padding: var(--mtc-space-md, 16px);

    border: 1px solid var(--mtc-color-border-subtle, rgba(0, 0, 0, 0.08));
    border-radius: var(--mtc-radius-lg, 18px);

    background: var(--mtc-color-surface-muted, #f8efe3);
    color: var(--mtc-color-text-soft, #6f6860);

    font-size: var(--mtc-font-size-sm, 14px);
    line-height: var(--mtc-line-height-base, 1.5);
}

.mtc-search-panel,
.mtc-filter-panel {
    width: 100%;
}

.mtc-search-panel__form {
    gap: var(--mtc-space-sm, 12px);
}

.mtc-search-panel__input {
    border-radius: var(--mtc-radius-pill, 999px);
}

.mtc-search-panel__status {
    margin-top: var(--mtc-space-md, 16px);

    color: var(--mtc-color-text-muted, #8a8177);

    font-size: var(--mtc-font-size-sm, 14px);
}

.mtc-search-panel__results {
    display: grid;
    gap: var(--mtc-space-sm, 12px);

    margin-top: var(--mtc-space-md, 16px);
}

.mtc-search-result,
.mtc-search-panel__result {
    display: flex;
    align-items: center;
    gap: var(--mtc-space-sm, 12px);

    padding: var(--mtc-space-sm, 12px);

    border: 1px solid var(--mtc-color-border-subtle, rgba(0, 0, 0, 0.08));
    border-radius: var(--mtc-radius-md, 14px);

    background: var(--mtc-color-card-bg, #fffaf3);
    color: inherit;

    text-decoration: none;

    transition:
        background-color var(--mtc-transition-fast, 180ms ease),
        border-color var(--mtc-transition-fast, 180ms ease),
        transform var(--mtc-transition-fast, 180ms ease),
        box-shadow var(--mtc-transition-fast, 180ms ease);
}

.mtc-search-result:hover,
.mtc-search-panel__result:hover {
    background: var(--mtc-color-card-hover-bg, #fff6ea);
    border-color: var(--mtc-color-primary-soft, rgba(91, 112, 93, 0.22));
    transform: translateY(-1px);
    box-shadow: var(--mtc-shadow-sm, 0 8px 22px rgba(0, 0, 0, 0.08));
}

.mtc-search-result__thumb,
.mtc-search-panel__result-image {
    flex: 0 0 48px;

    width: 48px;
    height: 48px;

    overflow: hidden;

    border-radius: var(--mtc-radius-sm, 10px);

    background: var(--mtc-color-skeleton, #eee7dc);

    object-fit: cover;
}

.mtc-search-result__content,
.mtc-search-panel__result-content {
    display: grid;
    gap: 3px;

    min-width: 0;
}

.mtc-search-result__title,
.mtc-search-panel__result-content strong {
    display: block;

    color: var(--mtc-color-text, #323232);

    font-size: var(--mtc-font-size-sm, 14px);
    font-weight: var(--mtc-font-weight-bold, 800);
    line-height: var(--mtc-line-height-snug, 1.25);
}

.mtc-search-result__type,
.mtc-search-panel__result-content small {
    display: block;

    color: var(--mtc-color-text-muted, #8a8177);

    font-size: var(--mtc-font-size-xs, 12px);
}

.mtc-account-panel {
    display: grid;
    gap: var(--mtc-space-md, 16px);
}

.mtc-account-panel__welcome {
    margin: 0;

    color: var(--mtc-color-text-soft, #6f6860);

    font-size: var(--mtc-font-size-sm, 14px);
    line-height: var(--mtc-line-height-base, 1.5);
}

.mtc-account-panel__nav {
    display: grid;
    gap: var(--mtc-space-xs, 8px);
}

.mtc-account-panel__nav .mtc-card {
    padding: var(--mtc-space-md, 16px);
    text-decoration: none;
}

.mtc-account-panel__nav .mtc-card:hover {
    transform: translateX(var(--mtc-space-3xs, 4px));
}

/*
|--------------------------------------------------------------------------
| Woo Mini Cart / Cart Offcanvas
|--------------------------------------------------------------------------
*/

.mtc-super-header [data-mtc-cart-panel] {
    --mtc-cart-panel-padding-x: 28px;
    --mtc-cart-item-image-size: 72px;
    --mtc-cart-item-image-gap: 12px;
    --mtc-cart-item-content-offset: calc(var(--mtc-cart-item-image-size) + var(--mtc-cart-item-image-gap));
}

.mtc-super-header [data-mtc-cart-panel].mtc-offcanvas {
    display: flex;
    flex-direction: column;

    width: min(420px, 100vw);
    max-width: 420px;
    height: 100dvh;
    max-height: 100dvh;

    overflow: hidden;
}

.mtc-super-header [data-mtc-cart-panel] .mtc-offcanvas__header,
.mtc-super-header [data-mtc-cart-panel] .mtc-offcanvas__footer {
    flex: 0 0 auto;
}

.mtc-super-header [data-mtc-cart-panel] .mtc-offcanvas__body {
    flex: 1 1 auto;

    min-height: 0;
    padding-inline: var(--mtc-cart-panel-padding-x);
    padding-top: 14px;
    padding-bottom: 18px;

    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mtc-super-header [data-mtc-cart-panel] .widget_shopping_cart_content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.mtc-super-header [data-mtc-cart-panel] .woocommerce-mini-cart {
    display: grid;
    gap: 0;

    width: 100%;
    max-width: 100%;
    min-width: 0;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: visible;

    list-style: none;
}

.mtc-super-header [data-mtc-cart-panel] .widget_shopping_cart_content .woocommerce-mini-cart__total,
.mtc-super-header [data-mtc-cart-panel] .widget_shopping_cart_content .woocommerce-mini-cart__buttons,
.mtc-super-header [data-mtc-cart-panel] .widget_shopping_cart_content .buttons {
    display: none;
}

/*
|--------------------------------------------------------------------------
| Woo Mini Cart Item
|--------------------------------------------------------------------------
*/

.mtc-super-header [data-mtc-cart-panel] .woocommerce-mini-cart-item,
.mtc-super-header [data-mtc-cart-panel] li.mini_cart_item {
    position: relative;

    display: grid;
    gap: 8px;

    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 16px 0 16px 30px;

    border-bottom: 1px solid color-mix(in srgb, var(--mtc-color-border, #d8ccbd) 78%, transparent);

    box-sizing: border-box;
}

.mtc-super-header [data-mtc-cart-panel] .woocommerce-mini-cart-item:last-child,
.mtc-super-header [data-mtc-cart-panel] li.mini_cart_item:last-child {
    border-bottom: 0;
}

.mtc-super-header [data-mtc-cart-panel] .woocommerce-mini-cart-item .remove,
.mtc-super-header [data-mtc-cart-panel] li.mini_cart_item .remove {
    position: absolute;
    top: 40px;
    left: 0;
    z-index: 3;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    margin: 0;
    padding: 0;

    border-radius: 999px;

    background: transparent;
    color: var(--mtc-color-danger, #b00020);

    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-decoration: none;

    transform: translateY(-50%);

    transition:
        color var(--mtc-transition-fast, 160ms ease),
        background-color var(--mtc-transition-fast, 160ms ease),
        transform var(--mtc-transition-fast, 160ms ease);
}

.mtc-super-header [data-mtc-cart-panel] .woocommerce-mini-cart-item .remove:hover,
.mtc-super-header [data-mtc-cart-panel] li.mini_cart_item .remove:hover {
    background: var(--mtc-color-danger, #b00020);
    color: #fff;
    transform: translateY(-50%) scale(1.04);
}

/*
 * Importante:
 * Woo pone imagen + texto dentro del mismo <a>.
 * No usar -webkit-line-clamp acá porque corta la imagen.
 */
.mtc-super-header [data-mtc-cart-panel] .woocommerce-mini-cart-item > a:not(.remove),
.mtc-super-header [data-mtc-cart-panel] li.mini_cart_item > a:not(.remove) {
    display: grid;
    grid-template-columns: var(--mtc-cart-item-image-size) minmax(0, 1fr);
    align-items: start;
    gap: var(--mtc-cart-item-image-gap);

    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: visible;

    color: var(--mtc-color-primary, #5d715f);

    font-size: 13px;
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: .02em;
    text-transform: uppercase;
    text-decoration: none;

    word-break: normal;
    overflow-wrap: anywhere;
}

.mtc-super-header [data-mtc-cart-panel] .woocommerce-mini-cart-item > a:not(.remove):hover,
.mtc-super-header [data-mtc-cart-panel] li.mini_cart_item > a:not(.remove):hover {
    color: var(--mtc-color-primary-dark, #334837);
}

.mtc-super-header [data-mtc-cart-panel] .woocommerce-mini-cart-item > a:not(.remove) img,
.mtc-super-header [data-mtc-cart-panel] li.mini_cart_item > a:not(.remove) img {
    display: block;
    grid-column: 1;
    grid-row: 1 / span 3;

    width: var(--mtc-cart-item-image-size);
    min-width: var(--mtc-cart-item-image-size);
    max-width: var(--mtc-cart-item-image-size);
    height: var(--mtc-cart-item-image-size);
    min-height: var(--mtc-cart-item-image-size);
    max-height: var(--mtc-cart-item-image-size);
    margin: 0;

    border-radius: 12px;

    background: var(--mtc-color-surface-muted, #f8efe3);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .06);

    object-fit: cover;
    object-position: center;
}

.mtc-super-header [data-mtc-cart-panel] .woocommerce-mini-cart-item .quantity,
.mtc-super-header [data-mtc-cart-panel] li.mini_cart_item .quantity {
    display: block;

    width: calc(100% - var(--mtc-cart-item-content-offset));
    max-width: calc(100% - var(--mtc-cart-item-content-offset));
    min-width: 0;
    margin: -2px 0 0 var(--mtc-cart-item-content-offset);
    padding: 0;

    color: var(--mtc-color-text-soft, #6f6860);

    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.mtc-super-header [data-mtc-cart-panel] .woocommerce-mini-cart-item .quantity .amount,
.mtc-super-header [data-mtc-cart-panel] li.mini_cart_item .quantity .amount {
    color: var(--mtc-color-text, #2b2b2b);
    font-weight: 800;
}

/*
|--------------------------------------------------------------------------
| Mini Cart Quantity Control
|--------------------------------------------------------------------------
*/

.mtc-super-header [data-mtc-cart-panel] .mtc-mini-cart-qty {
    display: inline-grid;
    grid-template-columns: 32px 42px 32px;
    align-items: center;

    width: max-content;
    max-width: 100%;
    height: 34px;
    margin: 0 0 0 var(--mtc-cart-item-content-offset);
    overflow: hidden;

    border: 1px solid color-mix(in srgb, var(--mtc-color-border, #d8ccbd) 82%, transparent);
    border-radius: 999px;

    background: rgba(255, 255, 255, .58);
}

.mtc-super-header [data-mtc-cart-panel] .mtc-mini-cart-qty__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 34px;
    padding: 0;

    border: 0;

    background: transparent;
    color: var(--mtc-color-primary, #5d715f);

    font-size: 16px;
    font-weight: 900;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color var(--mtc-transition-fast, 160ms ease),
        color var(--mtc-transition-fast, 160ms ease);
}

.mtc-super-header [data-mtc-cart-panel] .mtc-mini-cart-qty__button:hover {
    background: color-mix(in srgb, var(--mtc-color-primary, #5d715f) 12%, transparent);
    color: var(--mtc-color-primary-dark, #334837);
}

.mtc-super-header [data-mtc-cart-panel] .mtc-mini-cart-qty__input {
    width: 42px;
    height: 34px;
    padding: 0;

    border: 0;
    border-inline: 1px solid color-mix(in srgb, var(--mtc-color-border, #d8ccbd) 82%, transparent);

    appearance: textfield;
    background: transparent;
    color: var(--mtc-color-text, #2b2b2b);

    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

.mtc-super-header [data-mtc-cart-panel] .mtc-mini-cart-qty__input::-webkit-outer-spin-button,
.mtc-super-header [data-mtc-cart-panel] .mtc-mini-cart-qty__input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

/*
|--------------------------------------------------------------------------
| Mini Cart Footer
|--------------------------------------------------------------------------
*/

.mtc-super-header [data-mtc-cart-panel] .mtc-offcanvas__footer {
    position: relative;
    z-index: 4;

    display: grid;
    gap: 10px;
    flex: 0 0 auto;

    padding-inline: var(--mtc-cart-panel-padding-x);
    padding-top: 14px;
    padding-bottom: 28px;

    border-top: 1px solid color-mix(in srgb, var(--mtc-color-border, #d8ccbd) 78%, transparent);

    background: var(--mtc-color-surface, #fef8f0);
    box-shadow: 0 -14px 34px rgba(0, 0, 0, .05);
}

.mtc-super-header [data-mtc-cart-panel] .mtc-cart-panel-footer__summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;

    width: 100%;
    padding-bottom: 4px;
}

.mtc-super-header [data-mtc-cart-panel] .mtc-cart-panel-footer__label,
.mtc-super-header [data-mtc-cart-panel] .mtc-cart-panel-footer__subtotal {
    color: var(--mtc-color-text, #2b2b2b);
    font-weight: 900;
}

.mtc-super-header [data-mtc-cart-panel] .mtc-cart-panel-footer__label {
    font-size: 15px;
}

.mtc-super-header [data-mtc-cart-panel] .mtc-cart-panel-footer__subtotal {
    font-size: 16px;
    text-align: right;
}

.mtc-super-header [data-mtc-cart-panel] .mtc-offcanvas__footer .mtc-button {
    min-height: 48px;

    border-radius: 999px;

    font-weight: 900;
}

.mtc-super-header [data-mtc-cart-panel] .mtc-offcanvas__footer .mtc-button--light {
    border-color: var(--mtc-color-border, #c4bdb3);

    background: transparent;
    color: var(--mtc-color-text, #2b2b2b);
}

.mtc-super-header [data-mtc-cart-panel] .mtc-offcanvas__footer .mtc-button--primary {
    background: var(--mtc-color-cta, #ffc400);
    color: var(--mtc-color-on-cta, #1d1d1b);
}

.mtc-super-header [data-mtc-cart-panel] .woocommerce-mini-cart__empty-message {
    margin: 0;
    padding: 22px 18px;

    border: 1px dashed color-mix(in srgb, var(--mtc-color-border, #d8ccbd) 80%, transparent);
    border-radius: 18px;

    background: color-mix(in srgb, var(--mtc-color-surface, #fff) 72%, transparent);
    color: var(--mtc-color-text-soft, #6f6860);

    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.mtc-super-header [data-mtc-cart-panel].is-loading .widget_shopping_cart_content,
.mtc-super-header [data-mtc-cart-panel].is-loading .mtc-cart-panel-footer {
    opacity: .55;
    pointer-events: none;
}

/*
|--------------------------------------------------------------------------
| Cart Scrollbar
|--------------------------------------------------------------------------
*/

.mtc-super-header [data-mtc-cart-panel] .mtc-offcanvas__body::-webkit-scrollbar {
    width: 6px;
}

.mtc-super-header [data-mtc-cart-panel] .mtc-offcanvas__body::-webkit-scrollbar-track {
    background: transparent;
}

.mtc-super-header [data-mtc-cart-panel] .mtc-offcanvas__body::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: color-mix(in srgb, var(--mtc-color-primary, #5d715f) 35%, transparent);
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 1180px) {
    .mtc-super-header__actions .mtc-icon-button {
        min-width: 44px;
        min-height: 44px;
        padding: 6px;
    }

    .mtc-super-header__actions .mtc-icon-button span:not(.mtc-super-header__cart-count) {
        display: none;
    }
}

@media (max-width: 1024px) {
    .mtc-super-header__menu {
        display: none;
    }
}

@media (max-width: 768px) {
    .mtc-super-header {
        --mtc-header-current-height: auto;
        --mtc-header-current-news-height: var(--mtc-header-news-height-mobile, 30px);
        --mtc-header-current-logo-width: var(--mtc-header-logo-width-mobile, 120px);
        --mtc-header-current-logo-height: var(--mtc-header-logo-height-mobile, 54px);
        --mtc-header-shell-max-width: 100%;
    }

    .mtc-super-header__main {
        min-height: auto;
    }

    .mtc-super-header__inner {
        display: none;
    }

    .mtc-super-header__mobile {
        display: grid;

        width: 100%;

        background: var(--mtc-header-cream);
    }

    .mtc-super-header__mobile-brand {
        height: 62px;
        padding-block: 8px;
    }

    .mtc-super-header__mobile-actions {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .mtc-super-header.has-commerce-tools .mtc-super-header__mobile-actions {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .mtc-super-header__commerce-tools {
        display: none;
    }

    .mtc-super-header__cart-count {
        top: 0;
        right: 8px;

        min-width: 16px;
        height: 16px;

        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .mtc-super-header [data-mtc-cart-panel] {
        --mtc-cart-panel-padding-x: 20px;
        --mtc-cart-item-image-size: 60px;
        --mtc-cart-item-image-gap: 10px;
    }

    .mtc-super-header [data-mtc-cart-panel] .woocommerce-mini-cart-item,
    .mtc-super-header [data-mtc-cart-panel] li.mini_cart_item {
        padding-left: 28px;
    }

    .mtc-super-header [data-mtc-cart-panel] .woocommerce-mini-cart-item > a:not(.remove),
    .mtc-super-header [data-mtc-cart-panel] li.mini_cart_item > a:not(.remove) {
        font-size: 12.5px;
    }

    .mtc-super-header [data-mtc-cart-panel] .woocommerce-mini-cart-item > a:not(.remove) img,
    .mtc-super-header [data-mtc-cart-panel] li.mini_cart_item > a:not(.remove) img {
        border-radius: 10px;
    }

    .mtc-super-header [data-mtc-cart-panel] .mtc-mini-cart-qty {
        grid-template-columns: 30px 40px 30px;
        height: 32px;
    }

    .mtc-super-header [data-mtc-cart-panel] .mtc-mini-cart-qty__button,
    .mtc-super-header [data-mtc-cart-panel] .mtc-mini-cart-qty__input {
        height: 32px;
    }
}

@media (max-width: 420px) {
    .mtc-super-header__news-item {
        justify-content: center;
        text-align: center;
        font-size: 11px;
    }

    .mtc-super-header__mobile-actions .mtc-icon-button span:not(.mtc-super-header__cart-count) {
        font-size: 9.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mtc-super-header,
    .mtc-super-header *,
    .mtc-search-result,
    .mtc-search-panel__result {
        transition-duration: 1ms !important;
    }
}

/*
|--------------------------------------------------------------------------
| WordPress Admin Bar Integration
|--------------------------------------------------------------------------
*/

body.admin-bar.mtc-super-header-visible #wpadminbar {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

body.admin-bar #wpadminbar {
    transition:
        opacity var(--mtc-transition-fast, 180ms ease),
        transform var(--mtc-transition-fast, 180ms ease);
}