/* ESTILOS DEL BOTÓN Y PANEL OFF-CANVAS */
/* Este archivo debe ser cargado en WPCode como un Fragmento de CSS */

:root {
    --tab-green: #2B6256;
    --tab-green-dark: #143228;
    --tab-yellow: #D6D946;
    --tab-cream: #F8F6F2;
    --tab-white: #ffffff;
    --tab-gray: #52564F;
}

.tab-menu-trigger {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tab-menu-trigger svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
}

/* Overlay */
.tab-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 50, 40, 0.8);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
.tab-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Panel Off-Canvas */
.tab-menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 340px;
    height: 100%;
    background: var(--tab-white);
    z-index: 99999;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    font-family: 'Inter', sans-serif;
}
.tab-menu-panel.active {
    transform: translateX(0);
}

/* Cabecera del Panel */
.tab-menu-header {
    background: var(--tab-green);
    padding: 10px 20px;
    color: var(--tab-white);
    position: relative;
}
.tab-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--tab-white);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}
.tab-menu-greeting {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 5px 0;
    font-family: 'Sora', sans-serif;
}
.tab-menu-subtitle {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 20px;
    opacity: 0.9;
}
.tab-menu-login-btn {
    display: block;
    background: var(--tab-yellow);
    color: var(--tab-green-dark);
    text-align: center;
    padding: 12px;
    border-radius: 25px;
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
}

/* User Logueado */
.tab-menu-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}
.tab-menu-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--tab-yellow);
    color: var(--tab-green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
}

.tab-menu-repeat-banner {
    background: var(--tab-yellow);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--tab-green-dark);
}
.tab-menu-repeat-banner:hover {
    opacity: 0.9;
}

/* Listas de Enlaces */
.tab-menu-section {
    padding: 20px 0 0;
}
.tab-menu-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--tab-gray);
    margin: 0 20px 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.tab-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tab-menu-list li {
    border-bottom: 1px solid #F0EFEB;
}
.tab-menu-list li:last-child {
    border-bottom: none;
}
.tab-menu-list a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--tab-green-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    gap: 12px;
}
.tab-menu-list a:hover {
    background: #F9F9F8;
}
.tab-menu-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}
.tab-badge-free {
    background: var(--tab-yellow);
    color: var(--tab-green-dark);
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: auto;
}
.tab-badge-count {
    background: var(--tab-green);
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

/* Footer Tracking / Logout */
.tab-menu-footer {
    margin-top: auto;
    background: var(--tab-cream);
    padding: 20px;
    text-align: left;
}
.tab-menu-footer-text {
    font-size: 13px;
    color: var(--tab-gray);
    margin-bottom: 5px;
}
.tab-menu-footer-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--tab-green);
    text-decoration: underline;
}
.tab-menu-logout {
    color: #D32F2F !important;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    display: block;
    text-align: center;
    padding: 15px;
    background: var(--tab-cream);
    margin-top: auto;
}

/* REGLAS PARA EVITAR QUE EL TEMA PONGA EL TEXTO BLANCO */
.tab-menu-panel .tab-menu-list a {
    color: var(--tab-green-dark) !important;
    font-size: 15px !important;
    padding: 5px 20px !important;
    font-weight: 700 !important;
}

.tab-menu-panel .tab-menu-list a:hover {
    background: #F9F9F8 !important;
}

.tab-menu-panel .tab-menu-icon {
    color: var(--tab-green-dark) !important;
}

.tab-menu-panel .tab-menu-section-title {
    color: var(--tab-gray) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    margin: 0 20px 10px !important;
}

.l-subheader:has(.tab-mobile-header-wrapper) { padding: 0 !important; }

/* REEMPLAZO DE ESTILOS EN LÍNEA DEL HEADER MOBILE */
.tab-mobile-header-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    z-index: 99990;
    background: var(--tab-green);
}
.tab-mobile-top-banner {
    background: #dee036;
    color: #143228;
    width: 100%;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.tab-mobile-top-banner img {
    width: 14px;
    height: auto;
}
.tab-mobile-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 20px;
}
.tab-mobile-header-inner .tab-menu-trigger {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
}
.tab-mobile-header-inner .tab-menu-trigger svg {
    width: 28px;
    height: 28px;
}
.tab-mobile-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 2;
}
.tab-mobile-logo img {
    height: 22px;
    width: auto;
}
.tab-mobile-cart {
    position: relative;
    display: flex;
    color: #fff;
    text-decoration: none;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}
.tab-mobile-cart svg {
    width: 26px;
    height: 26px;
}
.tab-mobile-cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--tab-yellow);
    color: var(--tab-green-dark);
    font-size: 11px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.tab-menu-header-logged {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tab-menu-header-logged .tab-menu-greeting {
    font-size: 20px;
    margin-bottom: 2px;
}
.tab-menu-email {
    font-size: 12px;
    opacity: 0.8;
}
.tab-menu-repeat-banner-title {
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 2px;
}
.tab-menu-repeat-banner-desc {
    font-size: 11px;
    opacity: 0.8;
}
.tab-menu-repeat-banner-arrow {
    font-weight: bold;
}