:root {
    --b2b-primary: #0047AB;
    /* Cobalt Blue from Main Site */
    --b2b-secondary: #002855;
    /* Darker Blue from Main Site Footer */
    --b2b-accent: #0047AB;
    /* Replacing yellow with blue */
    --b2b-bg: #F8FAFC;
    --b2b-card: #ffffff;
    --b2b-border: #e2e8f0;
    --b2b-text: #1e293b;
    --b2b-text-light: #475569;
    --b2b-green: #16a34a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04);
    --font-display: 'Oswald', system-ui, sans-serif;
}

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}

body {
    background-color: var(--b2b-bg);
    color: var(--b2b-text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--b2b-secondary);
    margin-bottom: 0.5rem;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

.container-main {

    padding-top: 40px;

}

/* Header Redesign */

header {

    background: var(--b2b-primary);

    color: white;

    position: sticky;

    top: 0;

    z-index: 1000;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

}

.header-inner {

    max-width: 1300px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    padding: 10px 40px;

}

.header-search-container {

    flex: 1;

    max-width: 700px;

}

.modern-search {

    position: relative;

    display: flex;

    align-items: center;

}

.modern-search input {

    width: 100%;

    padding: 11px 18px;

    padding-right: 50px;

    border-radius: 6px;

    border: 1px solid rgba(255, 255, 255, 0.4);

    background: rgba(255, 255, 255, 0.1);

    color: white;

    font-size: 0.95rem;

    outline: none;

    transition: 0.3s;

}

.modern-search input::placeholder {

    color: rgba(255, 255, 255, 0.8);

}

.modern-search input:focus {

    background: white;

    color: var(--b2b-text);

    border-color: white;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

}

.modern-search button {

    position: absolute;

    right: 4px;

    top: 4px;

    bottom: 4px;

    width: 38px;

    background: transparent;

    color: white;

    border: none;

    border-radius: 4px;

    cursor: pointer;

    font-size: 1.1rem;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: 0.2s;

}

.modern-search button:hover {

    color: var(--b2b-primary);

    background: white;

}

.modern-search input:focus+button {

    color: var(--b2b-primary);

}

/* User Nav Simplification */

.user-nav {

    display: flex;

    align-items: center;

    gap: 24px;

}

.user-info-brief {

    color: white;

    font-size: 0.9rem;

    font-weight: 500;

}

.nav-simple-link {

    color: white;

    font-size: 0.9rem;

    font-weight: 600;

    text-decoration: none;

    display: flex;

    align-items: center;

    gap: 8px;

    transition: 0.2s;

}

.nav-simple-link:hover {

    opacity: 0.8;

}

.cart-pill {

    background: white;

    color: var(--b2b-primary) !important;

    padding: 8px 18px;

    border-radius: 30px;

    font-weight: 700;

    font-size: 0.9rem;

    display: flex;

    align-items: center;

    gap: 10px;

    text-decoration: none;

    transition: 0.3s;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

}

.cart-pill:hover {

    transform: translateY(-2px);

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);

}

.cart-pill-badge {

    background: var(--b2b-primary);

    color: white !important;

    font-size: 0.75rem;

    padding: 2px 8px;

    border-radius: 12px;

    font-weight: 800;

}

.login-btn-link {

    background: white;

    color: var(--b2b-primary) !important;

    padding: 8px 22px;

    border-radius: 6px;

    font-weight: 700;

    font-size: 0.9rem;

    text-decoration: none;

    transition: 0.2s;

    display: flex;

    align-items: center;

    gap: 8px;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

}

.login-btn-link:hover {

    background: #f1f5f9;

    transform: translateY(-1px);

}

.logout-icon {

    color: white;

    font-size: 1.2rem;

    transition: 0.2s;

}

.logout-icon:hover {

    transform: scale(1.1);

    color: #ffcccc;

}

/* Product Card - Guest View */

.price-guest-notice {

    text-align: center;

    padding: 10px;

    background: var(--b2b-bg);

    border-radius: 6px;

    border: 1px dashed var(--b2b-border);

}

.price-guest-notice a {

    color: var(--b2b-primary);

    font-size: 0.8rem;

    font-weight: 700;

    text-decoration: none;

    text-transform: uppercase;

}

/* Rest of the styles from previous version refined */

.b2b-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    width: 100%;
    margin-top: 10px;
}

/* Evita que o conteúdo dinâmico (carousel, grid de produtos) extrapole a coluna */
.b2b-container > aside,
.b2b-container > main {
    min-width: 0;
}

.sidebar-filters {

    position: sticky;

    top: 90px;

    height: fit-content;

}

.sidebar-section {

    background: white;

    border-radius: 12px;

    padding: 20px;

    border: 1px solid var(--b2b-border);

    box-shadow: var(--shadow-sm);

}

.filter-title {

    font-size: 0.75rem;

    font-weight: 800;

    color: var(--b2b-secondary);

    letter-spacing: 1px;

    margin-bottom: 20px;

    padding-bottom: 10px;

    border-bottom: 2px solid var(--b2b-accent);

}

.cat-list {

    list-style: none;

    padding: 0;

}

.cat-list a {

    display: flex;

    align-items: center;

    padding: 10px 12px;

    text-decoration: none;

    color: var(--b2b-text);

    font-size: 0.9rem;

    border-radius: 8px;

    transition: 0.2s;

    gap: 12px;

}

.cat-list a.active {

    background: var(--b2b-primary);

    color: white;

}

.at-list a:hover:not(.active) {

    background: #f1f5f9;

    transform: translateX(5px);

}

.cat-count {

    margin-left: auto;

    font-size: 0.75rem;

    background: #f1f5f9;

    padding: 2px 8px;

    border-radius: 10px;

    color: var(--b2b-text-light);

}

.active .cat-count {

    background: rgba(255, 255, 255, 0.2);

    color: white;

}

.product-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));

    gap: 20px;

}

.product-card {

    background: white;

    border-radius: 12px;

    padding: 20px;

    border: 1px solid var(--b2b-border);

    transition: all 0.3s ease;

    display: flex;

    flex-direction: column;

    position: relative;

    box-shadow: var(--shadow-sm);

}

.product-card:hover {

    box-shadow: var(--shadow-md);

    border-color: var(--b2b-primary);

    transform: translateY(-5px);

}

.product-sku {

    font-size: 0.7rem;

    color: var(--b2b-secondary);

    margin-bottom: 15px;

    height: 3.9em;

    display: -webkit-box;

    -webkit-line-clamp: 3;

    line-clamp: 3;

    -webkit-box-orient: vertical;

    overflow: hidden;

}

.product-image-box {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.product-image-box a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.product-image-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: auto;
}

.product-price-section {

    background: #f8fafc;

    padding: 12px;

    border-radius: 8px;

    margin-bottom: 15px;

    min-height: 65px;

    display: flex;

    flex-direction: column;

    justify-content: center;

}

.price-label {

    font-size: 0.6rem;

    font-weight: 700;

    color: var(--b2b-text-light);

    text-transform: uppercase;

    margin-bottom: 2px;

}

.price-value {

    font-size: 1.3rem;

    font-weight: 900;

    color: var(--b2b-primary);

}

.stock-status {

    font-size: 0.75rem;

    font-weight: 600;

    display: flex;

    align-items: center;

    gap: 6px;

    margin-bottom: 20px;

}

.in-stock {

    color: var(--b2b-green);

}

.out-of-stock {

    color: #f43f5e;

}

.buy-section-refined {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

/* Qty Control - Modern Pill Style */
.qty-control {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #dde3ee;
    border-radius: 10px;
    overflow: hidden;
    width: 105px;
    flex-shrink: 0;
    background: #f8fafc;
    transition: border-color 0.2s;
}

.qty-control:focus-within {
    border-color: var(--b2b-primary);
    background: #fff;
}

.qty-control button {
    width: 32px;
    flex-shrink: 0;
    background: transparent;
    border: none;
    font-weight: 800;
    font-size: 1rem;
    color: var(--b2b-primary);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.qty-control button:hover {
    background: var(--b2b-primary);
    color: white;
}

.qty-control input {
    flex: 1;
    min-width: 0;
    border: none;
    border-left: 1.5px solid #dde3ee;
    border-right: 1.5px solid #dde3ee;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--b2b-text-dark);
    background: transparent;
    outline: none;
    padding: 0;
}

/* Add to Cart Button - Premium Modern */
.add-to-cart-btn {
    flex: 1;
    background: linear-gradient(135deg, #0047AB 0%, #1a6cf5 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 71, 171, 0.35);
    padding: 0 10px;
}

.add-to-cart-btn i {
    font-size: 0.95rem;
    transition: transform 0.3s;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #003a8c 0%, #0f5ce0 100%);
    box-shadow: 0 6px 18px rgba(0, 71, 171, 0.45);
    transform: translateY(-2px);
}

.add-to-cart-btn:hover i {
    transform: scale(1.2) rotate(-8deg);
}

.add-to-cart-btn:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 2px 6px rgba(0, 71, 171, 0.3);
}

/* Ripple effect */
.add-to-cart-btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-anim 0.5s linear;
    pointer-events: none;
}

@keyframes ripple-anim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Global Button System */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding: 10px 24px;

    border-radius: 8px;

    font-weight: 700;

    font-size: 0.95rem;

    text-decoration: none;

    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.btn-primary {

    background: var(--b2b-primary);

    color: white !important;

    box-shadow: 0 4px 6px rgba(0, 71, 171, 0.2);

}

.btn-primary:hover {

    background: var(--b2b-secondary);

    transform: translateY(-2px);

    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);

}

.btn-primary:active {

    transform: translateY(0);

}

.btn-outline {

    background: white;

    color: var(--b2b-primary) !important;

    border-color: var(--b2b-primary);

}

.btn-outline:hover {

    background: #f1f5f9;

    transform: translateY(-2px);

    box-shadow: var(--shadow-sm);

}

.btn-secondary {

    background: var(--b2b-secondary);

    color: white !important;

}

.btn-secondary:hover {

    opacity: 0.9;

    transform: translateY(-2px);

}

.btn:disabled,

.btn.disabled {

    opacity: 0.5;

    cursor: not-allowed;

    transform: none !important;

    box-shadow: none !important;

}

/* Animations */

@keyframes fadeIn {

    from {

        opacity: 0;

        transform: translateY(10px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}

.b2b-card {

    animation: fadeIn 0.4s ease-out;

}

/* --- MOBILE APP-STYLE LAYOUT --- */

html,

body {

    overflow-x: hidden;

    position: relative;

    width: 100%;

    margin: 0;

    padding: 0;

}

/* Default Visiblity */

.mobile-controls,

.mobile-menu-overlay,

.mobile-menu-sidebar {

    display: none;

}

.desktop-nav {

    display: flex;

}

@media (max-width: 1024px) {

    .container {

        padding: 0 20px;

    }

    .b2b-container {

        grid-template-columns: 240px 1fr;

        gap: 20px;

    }

}

@media (max-width: 768px) {

    /* 1. HIDE DESKTOP ELEMENTS STRICTLY */

    .desktop-nav,

    .user-nav,

    .user-info-brief {

        display: none !important;

    }

    /* 2. SHOW MOBILE ELEMENTS */

    .mobile-controls {

        display: flex !important;

        align-items: center;

        gap: 20px;

    }

    .mobile-menu-overlay,

    .mobile-menu-sidebar {

        display: block;

    }

    /* But hidden via visibility/right */

    /* 3. APP-STYLE    /* HEADER LAYOUT: Logo Left | Menu Right | Search Bottom using Grid */

    .header-inner {

        display: grid !important;

        grid-template-columns: 1fr auto !important;

        grid-template-areas:

            "logo controls"

            "search search" !important;

        gap: 10px 0 !important;

        padding: 12px 15px !important;

        background: var(--b2b-primary);

        align-items: center !important;

    }

    /* Logo (Left) */

    .logo {

        grid-area: logo;

        display: flex !important;

        justify-content: flex-start;

        width: auto !important;

        margin: 0 !important;

        padding: 0 !important;

    }

    .logo img {

        height: 35px;

        width: auto;

        object-fit: contain;

    }

    /* Controls (Right) */

    .mobile-controls {

        grid-area: controls;

        display: flex !important;

        justify-content: flex-end;

        align-items: center;

        gap: 20px;

        margin: 0 !important;

    }

    /* Search (Bottom Row) */

    .header-search-container {

        grid-area: search;

        width: 100% !important;

        margin-top: 5px !important;

        padding-top: 0;

    }

    .modern-search input {

        width: 100%;

        height: 42px;

        border-radius: 8px;

        font-size: 16px;

        /* No zoom */

        padding-left: 15px;

    }

    /* Icons */
    #mobile-menu-trigger,
    .mobile-cart-icon {
        color: white !important;
        font-size: 1.4rem;
        background: none;
        border: none;
        padding: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        position: relative;
    }

    .mobile-cart-badge {

        top: -6px;

        right: -6px;

        background: #ef4444;

        color: white;

        border: 2px solid var(--b2b-primary);

        font-size: 0.7rem;

        font-weight: 700;

        padding: 2px 5px;

        border-radius: 10px;

        position: absolute;

    }

    /* 4. SIDEBAR AVATAR FIX */

    .avatar-circle {

        width: 48px;

        height: 48px;

        background: rgba(255, 255, 255, 0.2);

        color: white;

        border-radius: 50%;

        display: flex;

        align-items: center;

        justify-content: center;

        font-weight: 700;

        margin-right: 15px;

        font-size: 1.4rem;

        border: 2px solid rgba(255, 255, 255, 0.3);

    }

    .user-welcome {

        display: flex;

        align-items: center;

        color: white;

    }

    .user-welcome strong {

        font-size: 1.1rem;

        display: block;

    }

    .user-welcome small {

        opacity: 0.8;

        font-size: 0.8rem;

    }

    /* 5. GLOBAL RESETS & LAYOUT FIXES */

    .container {

        padding: 0 15px !important;

        width: 100%;

        box-sizing: border-box;

    }

    .b2b-container {

        display: flex;

        flex-direction: column;

        width: 100%;

        margin-top: 20px;

    }

    .sidebar-filters {

        position: static;

        width: 100%;

        margin-bottom: 20px;

        background: white;

        border-radius: 8px;

        padding: 10px;

        border: 1px solid var(--b2b-border);

    }

    /* Product Grid */

    .product-grid {

        grid-template-columns: repeat(2, 1fr);

        gap: 10px;

    }

    @media (max-width: 400px) {

        .product-grid {

            grid-template-columns: 1fr;

        }

    }

    .product-card {

        padding: 10px;

    }

    .product-image-box {
        height: 140px;
        min-height: 140px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .product-image-box img {
        max-width: 100%;
        max-height: 100%;
        height: auto;
        object-fit: contain;
    }

    /* 6. TABLE TO CARD & CHECKOUT FIXES */

    table,

    thead,

    tbody,

    th,

    td,

    tr {

        display: block;

        width: 100% !important;

        box-sizing: border-box;

    }

    thead {

        display: none;

    }

    tr {

        margin-bottom: 15px;

        border: 1px solid var(--b2b-border);

        border-radius: 12px;

        background: #fff;

        padding: 15px;

        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);

        height: auto !important;

    }

    td {

        display: flex;

        justify-content: space-between;

        align-items: center;

        flex-wrap: wrap;

        padding: 10px 0 !important;

        border-bottom: 1px solid #f8f9fa;

        text-align: left !important;

        min-height: 30px;

    }

    td:last-child {

        border-bottom: none;

        justify-content: center;

        padding-top: 15px !important;

        background: #f8fafc;

        margin: 0 -15px -15px -15px;

        border-radius: 0 0 12px 12px;

    }

    td div[style*="align-items: center"] {

        flex-direction: row !important;

        width: 100%;

    }

    /* Checkout Grids */

    div[style*="grid-template-columns: 1fr 350px"],

    div[style*="grid-template-columns: 2fr 1fr"],

    form[style*="grid-template-columns: 1fr 350px"] {

        grid-template-columns: 1fr !important;

        display: flex !important;

        flex-direction: column !important;

        gap: 20px !important;

    }

    div[style*="top: 100px"] {

        position: static !important;

    }

    .mp-tabs {

        flex-wrap: wrap;

        gap: 8px !important;

    }

    /* Login */

    .login-container {

        padding: 20px;

        width: 95%;

        margin: 20px auto;

    }

}

/* Sidebar & Overlay (Global scope) */

.mobile-menu-overlay {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: rgba(0, 0, 0, 0.5);

    z-index: 1001;

    opacity: 0;

    visibility: hidden;

    transition: 0.3s;

}

.mobile-menu-overlay.active {

    opacity: 1;

    visibility: visible;

}

.mobile-menu-sidebar {

    position: fixed;

    top: 0;

    right: -320px;

    width: 280px;

    height: 100%;

    background: white;

    z-index: 1002;

    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);

    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    display: flex;

    flex-direction: column;

}

.mobile-menu-sidebar.active {

    right: 0;

}

.mobile-menu-header {

    padding: 30px 20px;

    background: var(--b2b-primary);

    color: white;

    display: flex;

    justify-content: space-between;

    align-items: center;

}

.mobile-menu-nav {

    padding: 10px 0;

    overflow-y: auto;

}

.mobile-menu-nav a {

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 15px 25px;

    color: var(--b2b-text);

    text-decoration: none;

    font-weight: 500;

    border-bottom: 1px solid #f1f5f9;

    font-size: 1rem;

}

.mobile-menu-nav a:hover {

    background: #f8fafc;

    color: var(--b2b-primary);

}

.mobile-menu-nav a i {

    width: 25px;

    text-align: center;

    color: var(--b2b-text-light);

}

#mobile-menu-close {

    background: none;

    border: none;

    color: white;

    font-size: 1.5rem;

    cursor: pointer;

}

/* --- Fixes for Cart, Checkout and Orders Mobile Layout --- */

@media (max-width: 768px) {

    /* Force single column for Cart and Checkout grids */

    div[style*="grid-template-columns: 1fr 350px"],

    form[style*="grid-template-columns: 1fr 350px"] {

        grid-template-columns: 1fr !important;

        display: flex !important;

        flex-direction: column !important;

        gap: 20px !important;

    }

    /* Resumo (Sticky) fix - Remove sticky on mobile */

    div[style*="top: 100px"] {

        position: static !important;

    }

    /* Payment Tabs Wrap */

    .mp-tabs {

        flex-wrap: wrap;

        gap: 8px !important;

    }

    .mp-tab-btn {

        flex: 1 1 45%;

        /* 2 per row */

        display: flex;

        justify-content: center;

        align-items: center;

        gap: 8px;

        font-size: 0.85rem;

        padding: 12px 10px !important;

    }

    /* --- TABLE TO CARD TRANSFORMATION (No Scroll) --- */

    table,

    thead,

    tbody,

    th,

    td,

    tr {

        display: block;

        width: 100% !important;

        box-sizing: border-box;

    }

    thead {

        display: none;

    }

    tr {

        margin-bottom: 15px;

        border: 1px solid var(--b2b-border);

        border-radius: 12px;

        background: #fff;

        padding: 15px;

        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);

    }

    td {

        display: flex;

        justify-content: space-between;

        /* Espalha conteúdo se possível */

        align-items: center;

        flex-wrap: wrap;

        /* Permite quebra se conteúdo for longo */

        padding: 8px 0 !important;

        border-bottom: 1px solid #f8f9fa;

        text-align: left !important;

        min-height: 30px;

    }

    td:last-child {

        border-bottom: none;

        justify-content: center;

        padding-top: 15px !important;

        background: #f8fafc;

        margin: 0 -15px -15px -15px;

        /* Full width button area */

        border-radius: 0 0 12px 12px;

    }

    /* Cart Specific: Product Image Row */

    td div[style*="align-items: center"] {

        flex-direction: row !important;

        /* Manter imagem ao lado do texto */

        width: 100%;

    }

    /* Remove fixed heights form rows */

    tr[style*="height"] {

        height: auto !important;

    }

    /* Ensure inputs allow interaction without zoom/scroll */

    input[type="text"],

    input[type="number"] {

        font-size: 16px;

        /* Evita zoom no iOS */

    }

}

/* --- Fixes for Order Details Mobile --- */

@media (max-width: 768px) {

    /* Grid 2fr 1fr conversion */

    div[style*="grid-template-columns: 2fr 1fr"] {

        grid-template-columns: 1fr !important;

        display: flex !important;

        flex-direction: column !important;

    }

    /* Header Stack (Título e Botão Voltar) */

    div[style*="justify-content: space-between; align-items: flex-start"] {

        flex-direction: column !important;

        align-items: flex-start !important;

        gap: 15px;

    }

    /* TFoot adjustment for Card View */

    tfoot,

    tfoot tr {

        display: block;

        width: 100%;

        box-sizing: border-box;

    }

    tfoot tr {

        display: flex !important;

        flex-direction: row !important;

        justify-content: space-between !important;

        align-items: center !important;

        background: #f8fafc !important;

        margin-top: 10px;

        padding: 0 !important;

    }

    tfoot td {

        width: auto !important;

        border: none !important;

        background: transparent !important;

        margin: 0 !important;

        padding: 15px !important;

    }

    /* Final Adjustments: Fix Search Visibility */
    .mobile-cart-icon {
        display: flex !important; /* Overriding previous hidden rule */
    }
    .header-search-container {

        display: block !important;

        opacity: 1 !important;

        visibility: visible !important;

        margin-top: 15px !important;

        order: 3 !important;

        width: 100% !important;

    }

    .modern-search input {

        background: #fff !important;

        color: #333 !important;

        height: 45px !important;

        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;

    }

}

}

/* ── Carousel de Promoções (index B2B) ─────────────────────────────── */
.promo-section { margin-bottom: 24px; }

.promo-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.promo-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.promo-section-title h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ef4444, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.promo-fire-badge {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.4px;
}

.promo-see-all {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ef4444;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.promo-see-all:hover { text-decoration: underline; }

/* Wrapper com espaço para os botões absolutos */
.promo-carousel-wrap {
    position: relative;
    margin: 0 20px;
}

.promo-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

.promo-carousel::-webkit-scrollbar { display: none; }

/* Card individual */
.promo-pcard {
    flex: 0 0 152px;
    min-height: 210px;
    background: #ffffff;
    border-radius: 12px;
    border: 1.5px solid #edf2f7;
    padding: 14px 10px 12px;
    text-decoration: none;
    color: var(--b2b-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.promo-pcard:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.18);
    border-color: #fca5a5;
}

/* Badge de desconto */
.promo-pcard .disc-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
    line-height: 1.5;
    z-index: 1;
}

/* Imagem */
.pcard-img-wrap {
    width: 88px;
    height: 88px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.pcard-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pcard-img-wrap .pcard-emoji { font-size: 2rem; line-height: 1; }

/* Nome do produto */
.pcard-name {
    font-size: 0.71rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.35;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

/* Preços */
.pcard-prices {
    margin-top: auto;
    padding-top: 6px;
    text-align: center;
    width: 100%;
}

.pcard-orig {
    font-size: 0.67rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.pcard-promo {
    font-size: 0.92rem;
    font-weight: 900;
    color: #ef4444;
}

/* Link para login (visitantes) */
.pcard-login {
    margin-top: auto;
    padding-top: 6px;
    font-size: 0.72rem;
    text-align: center;
}

.pcard-login a {
    color: #ef4444;
    font-weight: 700;
    text-decoration: none;
}

.pcard-login a:hover { text-decoration: underline; }

/* Botões prev/next */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    z-index: 10;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    font-size: 0.7rem;
}

.carousel-btn:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

.carousel-btn.prev { left: -20px; }
.carousel-btn.next { right: -20px; }