:root {
    --primary: #0b1a3a;
    --accent: #25d366;
    --bg: #f8fafc;
    --text: #1e293b;
    --orange: #f59e0b;
    --orange-dark: #d97706;
    --muted: #64748b;
    --line: #e2e8f0;
    --white: #ffffff;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --header-height: 88px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    padding-top: var(--header-height);
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
a,
img {
    transition: 0.25s ease;
}

.client-form {
    display: grid;
    gap: 10px;
}

.client-form label {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.04em;
}

.client-form label span {
    color: #dc2626;
}

.client-form label small {
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0;
}

.client-form input,
.client-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    color: var(--text);
    background: var(--white);
}

.client-form textarea {
    resize: vertical;
    min-height: 90px;
}

.form-required-note {
    margin-bottom: 4px;
    font-size: 12px;
    color: var(--muted);
}

.form-required-note span {
    color: #dc2626;
    font-weight: 700;
}


/* HEADER */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    min-height: var(--header-height);
    background: var(--primary);
    z-index: 2000;
    display: grid;
    grid-template-columns: auto minmax(240px, 430px) auto auto;
    align-items: center;
    gap: 18px;
    padding: 16px 8%;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.16);
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: inline-flex;
    align-items: center;
}

.logo img {
    height: 44px;
    display: block;
}

.logo img:hover {
    transform: scale(1.03);
}

.search-bar {
    width: 100%;
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--line);
    min-width: 0;
}

.search-bar input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    padding: 13px 18px;
    font-size: 14px;
    color: var(--text);
}

.search-bar input::placeholder {
    color: #94a3b8;
}

.search-bar button {
    height: 46px;
    min-width: 50px;
    border: none;
    background: var(--primary);
    color: var(--white);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.search-bar button:hover {
    background: #162a56;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav a {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    opacity: 0.96;
}

.main-nav a:hover {
    color: var(--orange);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: end;
}

.cart-trigger,
.menu-toggle,
.search-trigger {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    border: none;
}

.cart-trigger:hover,
.menu-toggle:hover,
.search-trigger:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.cart-trigger {
    position: relative;
    font-size: 20px;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--orange);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    font-size: 21px;
    display: none;
}

.search-trigger {
    display: none;
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: inline-flex;
}

/* BOTÕES */

.btn-orange,
.btn-highlight {
    background: var(--orange) !important;
    color: var(--white) !important;
    padding: 16px 40px !important;
    border-radius: 999px !important;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    border: none;
    cursor: pointer;
}

.btn-orange:hover,
.btn-highlight:hover {
    background: var(--orange-dark) !important;
    transform: translateY(-2px);
}

.btn-det,
.btn-add {
    min-height: 46px;
    padding: 12px 10px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    white-space: nowrap;
}

.btn-det {
    background: #eef2f7;
    color: var(--primary);
}

.btn-det:hover {
    background: #e2e8f0;
}

.btn-add {
    background: var(--primary);
    color: var(--white);
}

.btn-add:hover {
    background: #162a56;
}

.btn-add:disabled {
    background: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
    transform: none;
}

/* FILTROS */

.filters {
    position: sticky;
    top: var(--header-height);
    z-index: 1800;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 8%;
    background: rgba(248, 250, 252, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.filter-btn {
    border: 1px solid #dbe4f0;
    background: var(--white);
    color: var(--primary);
    padding: 11px 18px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--orange);
    color: var(--orange-dark);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(11, 26, 58, 0.2);
}

/* CONTEÚDO */

.container {
    padding: 24px 8% 40px;
    min-height: 50vh;
}

/* suporte para ambas as classes */
.products-grid,
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 28px;
}

.card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.card.disabled {
    opacity: 0.55;
    filter: grayscale(1);
    pointer-events: none;
}

.card img {
    width: 100%;
    height: 210px;
    object-fit: contain;
    cursor: pointer;
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
}

.card h3,
.card h4 {
    font-size: 15px;
    margin: 10px 0;
    min-height: 45px;
    overflow: hidden;
    color: var(--primary);
    font-weight: 600;
}

.card p {
    line-height: 1.6;
}

.sku {
    font-size: 11px;
    color: #94a3b8;
    margin: 4px 0 6px;
    display: block;
    text-align: center;
    letter-spacing: 0.3px;
}

.price-tag {
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    margin: 10px 0 15px;
    display: block;
    min-height: 24px;
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-top: auto;
    align-items: center;
}

.btn-group .btn-det,
.btn-group .btn-add,
.btn-group .qty-inline-control {
    flex: 1;
}

.qty-inline-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 6px 10px;
    min-height: 46px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--white);
}

.qty-inline-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.qty-inline-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.04);
}

.qty-inline-value {
    min-width: 24px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
}

/* CLIENTES */

.clients-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 72px;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

.clients-container img {
    width: auto !important;
    max-width: 210px;
    max-height: 62px;
    height: auto;
    object-fit: contain;
    display: block;
    filter: grayscale(100%);
    opacity: 0.88 !important;
    flex-shrink: 0;
}

.clients-container img:hover {
    filter: grayscale(0%);
    opacity: 1 !important;
    transform: scale(1.05);
}

/* CARRINHO */

.sidebar {
    position: fixed;
    top: 0;
    right: -430px;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: var(--white);
    z-index: 3000;
    transition: right 0.35s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -16px 0 40px rgba(15, 23, 42, 0.18);
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    background: var(--primary);
    color: var(--white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h4 {
    font-size: 18px;
}

.sidebar-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-close {
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.cart-clear-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.cart-clear-btn:hover {
    background: var(--orange);
    transform: rotate(-8deg);
}

.sidebar-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.client-form {
    background: #f8fafc;
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.client-form label {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.4px;
}

.client-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    outline: none;
    font-size: 14px;
    background: var(--white);
}

.client-form input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

#cartItems {
    display: flex;
    flex-direction: column;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: flex-start;
}

.cart-item-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    flex-shrink: 0;
}

.qty-ctrl {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: var(--white);
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
}

.qty-btn:hover {
    border-color: var(--orange);
    color: var(--orange-dark);
}

.cart-item-meta {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 8px;
}

.cart-item-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    margin-left: auto;
    padding-left: 8px;
}

.cart-total-container {
    padding: 15px 0;
    border-top: 2px solid var(--primary);
    margin-top: 15px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    color: var(--primary);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: var(--white);
}

.btn-order {
    width: 100%;
    padding: 15px;
    background: var(--orange);
    color: var(--white);
    border: none;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-order:hover {
    background: var(--orange-dark);
}

/* MODAL */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2600;
    padding: 20px;
}

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 820px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

#modalData {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
}

.main-view {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background: #f8fafc;
    border-radius: var(--radius-md);
    border: 1px solid #eee;
}

.thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.thumb-img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    border: 1px solid #ddd;
    cursor: pointer;
    border-radius: 10px;
}

.thumb-img:hover {
    border-color: var(--primary);
}

/* SWIPER / GALERIA */

.swiper {
    width: 100%;
    padding-bottom: 46px !important;
}

.factory-swiper-wrap {
    overflow: hidden;
}

.factory-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary) !important;
    transform: scale(0.72);
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.92);
    width: 46px !important;
    height: 46px !important;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    opacity: 1;
}

.swiper-pagination {
    bottom: 0 !important;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #cbd5e1 !important;
    opacity: 1 !important;
}

.swiper-pagination-bullet-active {
    background: var(--orange) !important;
}

/* FOOTER */

.main-footer {
    background: var(--primary);
    color: var(--white);
    padding: 60px 8% 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
    display: block;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: var(--orange);
    font-size: 14px;
    text-transform: uppercase;
}

.footer-section p {
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 10px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--white);
    font-size: 22px;
}

.social-links a:hover {
    color: var(--orange);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: #94a3b8;
}

/* UTILITÁRIOS */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 24px;
    background: var(--accent);
    color: var(--white) !important;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 1200;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.20);
}

.whatsapp-float:hover {
    transform: scale(1.08);
}

.empty-state {
    text-align: center;
    grid-column: 1 / -1;
    padding: 50px 20px;
    color: var(--muted);
}

/* RESPONSIVO */

@media (max-width: 1200px) {
    header {
        grid-template-columns: auto minmax(220px, 380px) auto auto;
        padding-left: 5%;
        padding-right: 5%;
    }

    .filters,
    .container,
    .main-footer {
        padding-left: 5%;
        padding-right: 5%;
    }

    .clients-container {
        gap: 42px;
    }

    .clients-container img {
        max-width: 180px;
    }
}

@media (max-width: 992px) {
    :root {
        --header-height: 82px;
    }

    header {
        grid-template-columns: auto 1fr auto;
        padding: 12px 5%;
        gap: 12px;
    }

    .logo img {
        height: 40px;
    }

    .search-bar {
        max-width: none;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
        padding: 20px;
        text-align: center;
        box-shadow: 0 10px 12px rgba(0, 0, 0, 0.12);
        transition: left 0.25s ease;
        z-index: 1999;
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav a {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .clients-container {
        gap: 24px;
    }

    .clients-container img {
        max-width: 145px;
        max-height: 54px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 78px;
    }

    header {
        grid-template-columns: 42px 1fr auto;
        align-items: center;
        padding: 10px 4%;
        gap: 10px;
    }

    .mobile-only {
        display: inline-flex;
    }

    .desktop-only {
        display: none;
    }

    .search-trigger {
        display: inline-flex;
    }

    .menu-toggle.mobile-only {
        grid-column: 1;
        justify-self: start;
        display: inline-flex;
    }

    .logo {
        grid-column: 2;
        justify-self: center;
        display: flex;
        justify-content: center;
    }

    .logo a {
        justify-content: center;
    }

    .logo img {
        height: 38px;
    }

    .search-bar {
        position: absolute;
        top: calc(100% + 8px);
        left: 4%;
        right: 4%;
        width: auto;
        display: none;
        z-index: 2100;
        box-shadow: 0 12px 24px rgba(2, 6, 23, 0.16);
    }

    .search-bar.active {
        display: flex;
    }

    .main-nav {
        top: var(--header-height);
    }

    .header-tools {
        grid-column: 3;
        justify-self: end;
        gap: 8px;
    }

    .filters {
        top: var(--header-height);
        padding: 12px 4%;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .container {
        padding: 20px 4% 40px;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-det,
    .btn-add,
    .qty-inline-control {
        width: 100%;
    }

    .modal-content {
        padding: 20px;
    }

    #modalData {
        grid-template-columns: 1fr;
    }

    .sidebar {
        max-width: 100%;
        right: -100%;
    }

    .main-footer {
        padding-left: 4%;
        padding-right: 4%;
    }

    .factory-img {
        height: 250px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 18px;
        width: 54px;
        height: 54px;
        font-size: 27px;
    }

    .clients-container {
        gap: 14px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .clients-container img {
        max-width: 110px;
        max-height: 42px;
    }
}

/* LINE HOTEL */

.btn-ghost-light {
    border: 1px solid rgba(255,255,255,0.28);
    color: var(--white);
    padding: 16px 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
}

.btn-ghost-light:hover {
    background: rgba(255,255,255,0.16);
    transform: translateY(-2px);
}

.line-hotel-hero {
    position: relative;
    padding: 88px 8% 96px;
    background:
        linear-gradient(135deg, rgba(11,26,58,0.92), rgba(11,26,58,0.72)),
        url('https://images.unsplash.com/photo-1566665797739-1674de7a421a?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    color: var(--white);
}

.line-hotel-hero__content {
    max-width: 760px;
}

.hero-kicker,
.hotel-category-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.16);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
}

.line-hotel-hero h1 {
    font-size: clamp(2.2rem, 4vw, 4.4rem);
    line-height: 1.05;
    margin: 18px 0 18px;
}

.line-hotel-hero p {
    font-size: 17px;
    line-height: 1.75;
    opacity: 0.95;
    max-width: 640px;
}

.line-hotel-hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.line-hotel-banners {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 0 8%;
    margin-top: -42px;
    position: relative;
    z-index: 2;
}

.hotel-mini-banner {
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-md);
    padding: 26px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.hotel-mini-banner span {
    color: var(--orange-dark);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
}

.hotel-mini-banner h3 {
    color: var(--primary);
    font-size: 22px;
    line-height: 1.25;
    margin: 12px 0 10px;
}

.hotel-mini-banner p {
    color: var(--muted);
    line-height: 1.7;
}

.line-hotel-container {
    padding-top: 36px;
}

.hotel-category-section {
    margin-bottom: 48px;
}

.hotel-category-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.hotel-category-head h2 {
    color: var(--primary);
    font-size: clamp(1.8rem, 2vw, 2.5rem);
    margin-top: 12px;
}

.hotel-category-head p {
    max-width: 520px;
    color: var(--muted);
    line-height: 1.7;
}

/* CORREÇÃO DA GRADE DA LINE HOTEL */
#lineHotelSections {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.line-hotel-category-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.line-hotel-category-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.line-hotel-category-section .section-header h2 {
    font-size: 1.55rem;
    line-height: 1.2;
    color: var(--primary);
    margin: 0;
    font-weight: 700;
}

.line-hotel-category-section .product-grid,
#lineHotelSections .product-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 28px;
    align-items: stretch;
}

.line-hotel-category-section .card,
#lineHotelSections .card {
    width: 100% !important;
    min-width: 0;
    max-width: none !important;
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.line-hotel-category-section .card img,
#lineHotelSections .card img {
    width: 100%;
    height: 210px;
    object-fit: contain;
}

.line-hotel-category-section .btn-group,
#lineHotelSections .btn-group {
    display: flex;
    gap: 10px;
    margin-top: auto;
    align-items: center;
}

.line-hotel-category-section .btn-group .btn-det,
.line-hotel-category-section .btn-group .btn-add,
.line-hotel-category-section .btn-group .qty-inline-control,
#lineHotelSections .btn-group .btn-det,
#lineHotelSections .btn-group .btn-add,
#lineHotelSections .btn-group .qty-inline-control {
    flex: 1;
}

@media (max-width: 1024px) {
    .line-hotel-banners {
        grid-template-columns: 1fr;
        margin-top: -26px;
    }

    .hotel-category-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .line-hotel-category-section .product-grid,
    #lineHotelSections .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .line-hotel-hero {
        padding: 62px 6% 72px;
    }

    .line-hotel-banners {
        padding: 0 6%;
    }

    .line-hotel-container {
        padding-left: 6%;
        padding-right: 6%;
    }

    .line-hotel-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-ghost-light,
    .line-hotel-hero__actions .btn-orange {
        width: 100% !important;
    }

    .line-hotel-category-section .product-grid,
    #lineHotelSections .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .line-hotel-category-section .product-grid,
    #lineHotelSections .product-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
}
/* =========================================================
   AJUSTE FINAL - CARRINHO MOBILE COM BOTÃO SEMPRE VISÍVEL
   Mantém o conteúdo rolável e fixa a ação principal no rodapé.
   ========================================================= */

.sidebar {
    display: flex;
    flex-direction: column;
}

.sidebar-header,
.sidebar-footer {
    flex-shrink: 0;
}

.sidebar-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.sidebar-footer {
    background: var(--white);
    z-index: 3;
}

.sidebar-footer .btn-order {
    width: 100%;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        max-width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        right: -100%;
    }

    .sidebar.active {
        right: 0;
    }

    .sidebar-body {
        padding-bottom: 18px;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar-footer {
        position: sticky;
        bottom: 0;
        left: 0;
        padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -10px 24px rgba(11, 26, 58, 0.12);
    }

    .sidebar-footer .btn-order {
        min-height: 54px;
        border-radius: 999px;
        font-size: 14px;
        font-weight: 800;
    }
}

/* HOME COMERCIAL */
.home-commercial-section {
    padding: 76px 8%;
    background: var(--bg);
}

.home-categories-section {
    padding-top: 24px;
    background: linear-gradient(180deg, var(--bg), #eef2f7);
}

.home-section-head {
    max-width: 760px;
    margin: 0 auto 36px;
    text-align: center;
}

.home-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    color: var(--orange-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.home-section-head h2 {
    color: var(--primary);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.1;
    margin-bottom: 12px;
}

.home-section-head p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 15px;
}

.home-products-grid {
    margin-top: 16px;
}

.home-section-action {
    margin-top: 34px;
    text-align: center;
}

.home-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.home-category-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.9);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.home-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.home-category-card__image {
    height: 180px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--line);
}

.home-category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
}

.home-category-card__image i {
    font-size: 46px;
    color: var(--orange);
}

.home-category-card__body {
    padding: 22px;
}

.home-category-card__body span {
    color: var(--orange-dark);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.home-category-card__body h3 {
    color: var(--primary);
    margin: 10px 0 8px;
    font-size: 20px;
    line-height: 1.25;
}

.home-category-card__body p {
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 768px) {
    .home-commercial-section {
        padding: 56px 4%;
    }

    .home-categories-grid {
        grid-template-columns: 1fr;
    }
}

/* HOME NOVA - CATEGORIAS E DESTAQUES EM ROLAGEM INFINITA */
.home-hero {
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-category-marquee,
.home-product-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 8px 0 18px;
}

.home-category-marquee::before,
.home-category-marquee::after,
.home-product-marquee::before,
.home-product-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 90px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.home-category-marquee::before,
.home-product-marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg), rgba(248,250,252,0));
}

.home-category-marquee::after,
.home-product-marquee::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg), rgba(248,250,252,0));
}

.home-category-marquee__track,
.home-product-marquee__track {
    display: flex;
    align-items: stretch;
    width: max-content;
    gap: 18px;
    animation: homeScrollRight 34s linear infinite;
}

.home-product-marquee__track {
    gap: 24px;
    animation-duration: 46s;
}

.home-category-marquee:hover .home-category-marquee__track,
.home-product-marquee:hover .home-product-marquee__track {
    animation-play-state: paused;
}

@keyframes homeScrollRight {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

.home-category-pill {
    min-width: 250px;
    min-height: 92px;
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.home-category-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.home-category-pill__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.13);
    color: var(--orange-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.home-category-pill__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-category-pill__text strong {
    color: var(--primary);
    font-size: 15px;
    line-height: 1.2;
}

.home-category-pill__text small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.home-featured-sections {
    display: flex;
    flex-direction: column;
    gap: 54px;
}

.home-featured-category {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.home-featured-category__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 22px;
    margin-bottom: 24px;
}

.home-featured-category__head .home-kicker {
    margin-bottom: 10px;
}

.home-featured-category__head h2 {
    color: var(--primary);
    font-size: clamp(1.7rem, 2.5vw, 2.6rem);
    line-height: 1.1;
}

.home-category-link {
    color: var(--primary);
    font-weight: 800;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.home-category-link:hover {
    color: var(--orange-dark);
}

.home-product-slide {
    width: 285px;
    flex: 0 0 285px;
    display: flex;
}

.home-product-slide .card {
    width: 100%;
}

.home-product-slide .card:hover {
    transform: translateY(-3px);
}

.institutional-hero {
    padding: 92px 8%;
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(11,26,58,0.92), rgba(11,26,58,0.72)),
        url('https://i.postimg.cc/d1NhRMGr/Hero-secction-banner.jpg') center/cover no-repeat;
}

.institutional-hero h1 {
    max-width: 780px;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.08;
    margin: 18px 0;
}

.institutional-hero p {
    max-width: 620px;
    font-size: 17px;
    line-height: 1.7;
    opacity: .95;
}

@media (max-width: 768px) {
    .home-hero {
        min-height: 480px;
    }

    .home-category-marquee::before,
    .home-category-marquee::after,
    .home-product-marquee::before,
    .home-product-marquee::after {
        width: 34px;
    }

    .home-category-pill {
        min-width: 220px;
    }

    .home-featured-category {
        padding: 22px 16px;
    }

    .home-featured-category__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-product-slide {
        width: 245px;
        flex-basis: 245px;
    }

    .institutional-hero {
        padding: 68px 6%;
    }
}

/* AJUSTES HEADER / BUSCA MODAL / DROPDOWN PRODUTOS */
header {
    grid-template-columns: auto 1fr auto;
}

.main-nav {
    justify-self: center;
}

.search-trigger {
    display: inline-flex;
}

.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown__trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-dropdown__trigger i {
    font-size: 10px;
}

.nav-dropdown__menu {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 260px;
    max-height: 390px;
    overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 2600;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown__menu a {
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    border-bottom: none !important;
}

.nav-dropdown__menu a:hover {
    background: #f8fafc;
    color: var(--orange-dark) !important;
}

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 2800;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(8px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 110px 20px 30px;
}

.search-overlay.active {
    display: flex;
}

.search-modal {
    width: min(720px, 100%);
    background: var(--white);
    border-radius: 28px;
    padding: 34px;
    position: relative;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.28);
}

.search-modal h2 {
    color: var(--primary);
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.search-modal__close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--primary);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.search-modal__bar {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: #f8fafc;
}

.search-modal__bar input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 17px 22px;
    font: inherit;
    color: var(--text);
}

.search-modal__bar button {
    width: 58px;
    height: 58px;
    border: none;
    background: var(--primary);
    color: var(--white);
    cursor: pointer;
}

.search-modal__hint {
    color: var(--muted);
    font-size: 13px;
    margin-top: 14px;
}

.home-section-head--left,
.home-featured-category__head {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

.home-categories-section {
    padding-top: 58px;
}

.home-category-marquee {
    padding-top: 16px;
}

.home-category-pill {
    min-width: 150px;
    min-height: 160px;
    border-radius: 28px;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    text-align: center;
    padding: 22px 18px;
}

.home-category-pill__icon {
    width: 74px;
    height: 74px;
    font-size: 28px;
}

.home-category-pill__text {
    align-items: center;
}

.home-category-pill__text small {
    display: none;
}

.home-category-pill__text strong {
    font-size: 15px;
}

.home-featured-category {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

.home-featured-category__head {
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
}

.home-featured-category__head .home-kicker {
    display: none;
}

@media (max-width: 992px) {
    header {
        grid-template-columns: auto 1fr auto;
    }

    .nav-dropdown {
        width: 100%;
        flex-direction: column;
    }

    .nav-dropdown__menu {
        position: static;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        width: 100%;
        min-width: 0;
        max-height: 260px;
        display: none;
        box-shadow: none;
        margin-top: 8px;
    }

    .nav-dropdown:hover .nav-dropdown__menu,
    .nav-dropdown:focus-within .nav-dropdown__menu {
        display: block;
    }
}

@media (max-width: 768px) {
    .search-overlay {
        padding-top: 92px;
    }

    .search-modal {
        padding: 26px 18px;
        border-radius: 22px;
    }

    .home-category-pill {
        min-width: 132px;
        min-height: 142px;
        padding: 18px 14px;
    }

    .home-category-pill__icon {
        width: 64px;
        height: 64px;
    }
}

/* =========================================================
   AJUSTES SOLICITADOS - HEADER, BUSCA, DROPDOWN E CARROSSÉIS
   ========================================================= */
header {
    grid-template-columns: auto auto 1fr;
    justify-content: start;
}

.main-nav {
    justify-self: start !important;
    justify-content: flex-start;
    margin-left: 10px;
}

.header-tools {
    justify-self: end;
    margin-left: auto;
}

.nav-dropdown__menu {
    left: 0;
    transform: translateY(8px);
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
}

.nav-dropdown.active .nav-dropdown__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.search-overlay {
    position: fixed;
    inset: auto 8% auto auto;
    top: calc(var(--header-height) - 4px);
    width: min(420px, calc(100vw - 32px));
    z-index: 2800;
    background: transparent;
    backdrop-filter: none;
    display: none;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0;
    pointer-events: none;
}

.search-overlay.active {
    display: flex;
}

.search-modal {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px 52px 14px 14px;
    box-shadow: 0 18px 46px rgba(2, 6, 23, 0.18);
    pointer-events: auto;
}

.search-modal h2,
.search-modal .home-kicker,
.search-modal__hint {
    display: none;
}

.search-modal__close {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    font-size: 24px;
}

.search-modal__bar input {
    padding: 13px 18px;
    font-size: 14px;
}

.search-modal__bar button {
    width: 48px;
    height: 48px;
}

.home-section-head h2 {
    font-size: clamp(1.65rem, 2.5vw, 2.5rem);
}

.home-category-marquee,
.home-product-marquee {
    overflow: visible;
    padding-bottom: 54px;
}

.home-category-marquee::before,
.home-category-marquee::after,
.home-product-marquee::before,
.home-product-marquee::after {
    display: none;
}

.home-category-marquee__track,
.home-product-marquee__track {
    animation: none !important;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding: 4px 2px 10px;
}

.home-category-marquee__track::-webkit-scrollbar,
.home-product-marquee__track::-webkit-scrollbar,
.filter-scroll-viewport::-webkit-scrollbar {
    display: none;
}

.home-category-pill,
.home-product-slide {
    scroll-snap-align: start;
}

.carousel-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    pointer-events: auto;
}

.carousel-btn,
.filter-scroll-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
}

.carousel-btn:hover,
.filter-scroll-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-1px);
}

.carousel-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 52px;
}

.carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    padding: 0;
}

.carousel-dot.active {
    width: 22px;
    background: var(--orange);
}

.filters {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.filter-scroll-viewport {
    overflow-x: auto;
    scrollbar-width: none;
}

.filter-scroll-track {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
    padding: 2px 0;
}

.filter-btn--icon {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 88px;
    min-height: 76px;
    padding: 10px 12px;
    border-radius: 18px;
    text-align: center;
    font-size: 10px;
    line-height: 1.2;
}

.filter-btn__icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff3df;
    color: var(--orange-dark);
    font-size: 13px;
}

.filter-btn--icon.active .filter-btn__icon {
    background: rgba(255,255,255,0.16);
    color: var(--white);
}

@media (max-width: 992px) {
    header {
        grid-template-columns: auto 1fr auto;
    }

    .main-nav {
        margin-left: 0;
    }

    .nav-dropdown.active .nav-dropdown__menu {
        display: block;
    }
}

@media (max-width: 768px) {
    .search-overlay {
        top: calc(var(--header-height) + 8px);
        right: 4%;
        left: 4%;
        width: auto;
    }

    .search-modal {
        padding: 12px 48px 12px 12px;
        border-radius: 16px;
    }

    .home-section-head h2 {
        font-size: 1.7rem;
    }

    .filters {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        padding-left: 4%;
        padding-right: 4%;
    }

    .filter-scroll-btn {
        width: 36px;
        height: 36px;
    }

    .filter-btn--icon {
        min-width: 78px;
        min-height: 70px;
        padding: 9px 10px;
    }
}

/* =========================================================
   CORREÇÃO FINAL - CARROSSÉIS CLICÁVEIS + MOBILE
   ========================================================= */
.home-category-marquee,
.home-product-marquee {
    position: relative;
    width: 100%;
    overflow: hidden !important;
    padding-bottom: 58px !important;
}

.home-category-marquee__track,
.home-product-marquee__track {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 4px 12px;
}

.home-category-marquee__track::-webkit-scrollbar,
.home-product-marquee__track::-webkit-scrollbar {
    display: none;
}

.home-category-pill {
    flex: 0 0 154px !important;
    width: 154px !important;
    min-width: 154px !important;
    scroll-snap-align: start;
}

.home-product-slide {
    flex: 0 0 285px !important;
    width: 285px !important;
    min-width: 285px !important;
    scroll-snap-align: start;
}

.carousel-controls {
    z-index: 5;
}

.carousel-btn:disabled,
.filter-scroll-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
    transform: none;
}

/* Catálogo: categorias compactas em uma linha com botão */
.filters {
    overflow: visible !important;
}

.filter-scroll-viewport {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.filter-scroll-track {
    flex-wrap: nowrap !important;
    width: max-content;
}

.filter-btn--icon {
    flex: 0 0 auto;
}

/* Header desktop: menu próximo ao logo */
@media (min-width: 993px) {
    header {
        grid-template-columns: auto auto 1fr !important;
        align-items: center;
    }

    .main-nav {
        position: static !important;
        display: flex !important;
        flex-direction: row !important;
        width: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-left: 18px !important;
        gap: 18px;
    }

    .main-nav a {
        border-bottom: none !important;
        width: auto !important;
        padding: 0 !important;
    }

    .nav-dropdown {
        width: auto !important;
    }
}

/* Mobile estável */
@media (max-width: 992px) {
    header {
        grid-template-columns: 42px 1fr auto !important;
    }

    .menu-toggle.mobile-only {
        display: inline-flex !important;
        grid-column: 1;
    }

    .logo {
        grid-column: 2;
        justify-self: center;
    }

    .header-tools {
        grid-column: 3;
        justify-self: end;
    }

    .main-nav {
        position: fixed !important;
        top: var(--header-height) !important;
        left: -100% !important;
        width: 100% !important;
        background: var(--primary) !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        padding: 14px 20px 20px !important;
        transition: left .25s ease !important;
        z-index: 1999;
    }

    .main-nav.active {
        left: 0 !important;
    }

    .main-nav > a,
    .nav-dropdown__trigger {
        width: 100% !important;
        padding: 14px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,.08) !important;
        justify-content: center;
        text-align: center;
    }

    .nav-dropdown__menu {
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        margin: 8px 0 14px !important;
        box-shadow: none !important;
        max-height: 280px;
        overflow-y: auto;
    }

    .nav-dropdown.active .nav-dropdown__menu {
        display: block !important;
    }

    .home-commercial-section {
        padding-left: 4% !important;
        padding-right: 4% !important;
    }

    .home-featured-category__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .home-hero {
        min-height: auto;
        padding: 74px 5% !important;
    }

    .home-hero h1 {
        font-size: clamp(2rem, 10vw, 3rem);
        line-height: 1.05;
    }

    .home-category-pill {
        flex-basis: 132px !important;
        width: 132px !important;
        min-width: 132px !important;
        min-height: 136px !important;
    }

    .home-category-pill__icon {
        width: 58px !important;
        height: 58px !important;
        font-size: 23px !important;
    }

    .home-product-slide {
        flex-basis: 246px !important;
        width: 246px !important;
        min-width: 246px !important;
    }

    .home-product-slide .card img {
        height: 175px;
    }

    .carousel-controls {
        gap: 10px;
    }

    .carousel-btn,
    .filter-scroll-btn {
        width: 36px;
        height: 36px;
    }

    .filter-btn--icon {
        min-width: 76px !important;
        min-height: 68px !important;
        font-size: 9px;
        padding: 8px 9px;
    }
}

/* =========================================================
   BANNERS COMERCIAIS DA HOME + BOTÃO HERO MAIS DISCRETO
   ========================================================= */
.home-hero .btn-orange {
    padding: 12px 26px !important;
    min-height: 46px;
    font-size: 13px !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14) !important;
    letter-spacing: 0.02em;
}

.home-commercial-banners {
    padding: 0 8%;
    margin-top: -42px;
    position: relative;
    z-index: 3;
}

.home-commercial-banners__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.home-banner-card {
    position: relative;
    min-height: 285px;
    border-radius: 28px;
    overflow: hidden;
    padding: 30px;
    display: flex;
    align-items: flex-end;
    color: var(--white);
    background-size: cover;
    background-position: center;
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.16);
    isolation: isolate;
}

.home-banner-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: inherit;
    transform: scale(1.01);
    transition: transform 0.35s ease;
}

.home-banner-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(11, 26, 58, 0.10) 0%, rgba(11, 26, 58, 0.60) 48%, rgba(11, 26, 58, 0.94) 100%);
}

.home-banner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 62px rgba(15, 23, 42, 0.22);
}

.home-banner-card:hover::before {
    transform: scale(1.07);
}

.home-banner-card__content {
    width: 100%;
    max-width: 420px;
}

.home-banner-card__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--orange);
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    font-weight: 800;
}

.home-banner-card h2 {
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.12;
    margin: 0 0 10px;
    color: var(--white);
}

.home-banner-card p {
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.55;
    font-size: 14px;
    margin: 0 0 18px;
}

.home-banner-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 40px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.26);
    color: var(--white) !important;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.home-banner-card__btn:hover {
    background: var(--orange);
    border-color: var(--orange);
    transform: translateY(-2px);
}

@media (max-width: 1100px) {
    .home-commercial-banners {
        padding-left: 5%;
        padding-right: 5%;
    }

    .home-commercial-banners__grid {
        gap: 16px;
    }

    .home-banner-card {
        min-height: 260px;
        padding: 24px;
    }
}

@media (max-width: 900px) {
    .home-commercial-banners__grid {
        grid-template-columns: 1fr;
    }

    .home-banner-card {
        min-height: 230px;
    }
}

@media (max-width: 768px) {
    .home-hero .btn-orange {
        padding: 11px 22px !important;
        min-height: 42px;
        font-size: 12px !important;
    }

    .home-commercial-banners {
        margin-top: -28px;
        padding-left: 4%;
        padding-right: 4%;
    }

    .home-banner-card {
        min-height: 220px;
        border-radius: 22px;
        padding: 22px;
    }

    .home-banner-card h2 {
        font-size: 1.42rem;
    }
}

/* =========================================================
   AJUSTE FINAL - BOTÃO DO HERO DA HOME MAIS DISCRETO
   ========================================================= */
.home-hero {
    align-items: center !important;
}

.home-hero > .btn-orange,
.home-hero a.btn-orange {
    width: auto !important;
    max-width: max-content !important;
    min-width: 0 !important;
    align-self: center !important;
    flex: 0 0 auto !important;
    padding: 11px 26px !important;
    min-height: 42px !important;
    font-size: 13px !important;
    line-height: 1 !important;
    border-radius: 999px !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14) !important;
}

@media (max-width: 768px) {
    .home-hero > .btn-orange,
    .home-hero a.btn-orange {
        padding: 10px 22px !important;
        min-height: 40px !important;
        font-size: 12px !important;
    }
}

/* =========================================================
   FASE 1 B2B - LOGIN, CADASTRO, ÁREA DO CLIENTE E ADMIN
   ========================================================= */
.auth-page {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
}

.auth-nav {
    justify-self: start;
}

.auth-wrapper {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 5%;
}

.auth-wrapper-wide {
    align-items: flex-start;
}

.auth-card,
.checkout-card {
    width: 100%;
    max-width: 520px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
}

.auth-wrapper-wide .auth-card {
    max-width: 980px;
}

.auth-kicker {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff7ed;
    color: var(--orange-dark);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 14px;
}

.auth-card h1,
.checkout-card h1 {
    color: var(--primary);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin-bottom: 12px;
}

.auth-card p,
.checkout-card p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 22px;
}

.auth-form {
    display: grid;
    gap: 12px;
}

.auth-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.auth-form label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.auth-form input,
.auth-form select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 13px 14px;
    font: inherit;
    outline: none;
    background: #fff;
}

.auth-form input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.auth-radio-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f8fafc;
}

.auth-radio-row label {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-radio-row input {
    width: auto;
}

.full-span {
    grid-column: 1 / -1;
}

.form-section-title {
    color: var(--primary);
    font-size: 18px;
    margin-top: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.auth-submit {
    margin-top: 10px;
    width: auto !important;
    justify-self: start;
    padding: 12px 24px !important;
    font-size: 13px !important;
    border-radius: 14px !important;
}

.auth-message {
    display: none;
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 700;
}

.auth-message.info { display: block; background: #eff6ff; color: #1d4ed8; }
.auth-message.success { display: block; background: #ecfdf5; color: #047857; }
.auth-message.error { display: block; background: #fef2f2; color: #b91c1c; }

.auth-footer-text {
    margin-top: 18px;
    font-size: 14px;
}

.auth-footer-text a {
    color: var(--orange-dark);
    font-weight: 800;
}

.account-layout,
.checkout-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    padding: 34px 6% 50px;
    min-height: calc(100vh - var(--header-height));
}

.checkout-layout {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.checkout-card {
    max-width: 760px;
}

.account-sidebar {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 22px;
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.account-sidebar h3 {
    color: var(--primary);
    margin-bottom: 18px;
}

.account-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.account-sidebar a:hover,
.account-sidebar a.active {
    background: #f8fafc;
    color: var(--primary);
}

.account-content {
    display: grid;
    gap: 22px;
}

.account-hero,
.account-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.account-hero span {
    color: var(--orange-dark);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.account-hero h1 {
    color: var(--primary);
    margin: 8px 0;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.account-hero p,
.account-card p {
    color: var(--muted);
    line-height: 1.7;
}

.account-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.account-card h2 {
    color: var(--primary);
    font-size: 22px;
}

.btn-small-outline {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
}

.btn-small-outline:hover {
    border-color: var(--orange);
    color: var(--orange-dark);
}

.orders-table {
    display: grid;
    gap: 10px;
}

.order-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f8fafc;
    font-size: 13px;
}

.order-row strong {
    color: var(--primary);
}

.order-row span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.admin-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.admin-kpi {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.admin-kpi span {
    display: block;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 8px;
}

.admin-kpi strong {
    color: var(--primary);
    font-size: 34px;
}

.checkout-steps {
    display: grid;
    gap: 12px;
    margin: 22px 0 0 18px;
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 860px) {
    .auth-grid,
    .account-layout,
    .admin-kpis,
    .order-row {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        position: static;
    }

    .auth-card,
    .checkout-card {
        padding: 24px;
    }
}

.account-trigger {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    background: rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.account-trigger:hover {
    background: rgba(255,255,255,0.16);
    transform: translateY(-1px);
}

/* =========================================================
   AJUSTES AUTH - LINKS, ALERTAS E CONFIRMAÇÃO DE E-MAIL
   ========================================================= */
.auth-link-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 18px;
    font-size: 14px;
}

.auth-link-row a,
.auth-footer-text a {
    color: var(--orange-dark);
    font-weight: 800;
    text-decoration: none;
}

.auth-link-row a:hover,
.auth-footer-text a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.auth-feedback-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(11, 26, 58, 0.62);
    backdrop-filter: blur(8px);
}

.auth-feedback-modal.active {
    display: flex;
}

.auth-feedback-card {
    width: min(100%, 440px);
    background: var(--white);
    border-radius: 28px;
    padding: 34px;
    text-align: center;
    box-shadow: 0 28px 80px rgba(2, 6, 23, 0.28);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.auth-feedback-icon {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
}

.auth-feedback-card h2 {
    color: var(--primary);
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.auth-feedback-card p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 22px;
}

.auth-feedback-button {
    padding: 12px 22px !important;
    font-size: 13px !important;
    border-radius: 14px !important;
}

@media (max-width: 640px) {
    .auth-link-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .auth-feedback-card {
        padding: 28px 22px;
    }
}

/* Área do cliente - alteração de senha */
.account-password-form {
    max-width: 520px;
    display: grid;
    gap: 10px;
}

.account-password-form .auth-submit {
    margin-top: 8px;
}

/* =========================================================
   FASE 2 - SESSÃO, ÁREA DO CLIENTE E ADMIN
   ========================================================= */
.account-session {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.account-session__button,
.account-session__logout {
    height: 42px;
    border: none;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: rgba(255,255,255,0.08);
    cursor: pointer;
}

.account-session__button {
    gap: 8px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 800;
}

.account-session__logout {
    width: 42px;
    font-size: 15px;
}

.account-session__button:hover,
.account-session__logout:hover {
    background: rgba(255,255,255,0.16);
    transform: translateY(-1px);
}

.customer-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.customer-info-grid div {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
}

.customer-info-grid span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.customer-info-grid strong {
    color: var(--primary);
    font-size: 14px;
    word-break: break-word;
}

.credit-help-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 18px;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.credit-help-box i {
    margin-top: 4px;
}

.credit-help-box p {
    color: #1e40af;
    margin: 0;
}

.admin-list {
    display: grid;
    gap: 10px;
}

.admin-list-row {
    display: grid;
    grid-template-columns: 1.5fr .7fr .8fr;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f8fafc;
    font-size: 13px;
}

.admin-list-row strong {
    display: block;
    color: var(--primary);
}

.admin-list-row span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

@media (max-width: 860px) {
    .customer-info-grid,
    .admin-list-row {
        grid-template-columns: 1fr;
    }

    .account-session__button span {
        display: none;
    }

    .account-session__button {
        width: 42px;
        padding: 0;
    }
}

/* =========================================================
   CHECKOUT ECOMMERCE B2B
   ========================================================= */
.cart-ecommerce-note {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 18px;
}

.cart-ecommerce-note strong {
    display: block;
    color: var(--primary);
    margin-bottom: 6px;
}

.cart-ecommerce-note p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.checkout-page {
    padding: 28px 8% 60px;
    min-height: 70vh;
}

.checkout-hero-card,
.checkout-card,
.checkout-summary-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.checkout-hero-card {
    padding: 34px;
    margin-bottom: 18px;
}

.checkout-hero-card h1 {
    color: var(--primary);
    font-size: clamp(1.8rem, 3vw, 3rem);
    margin: 8px 0 10px;
}

.checkout-hero-card p {
    color: var(--muted);
    max-width: 760px;
    line-height: 1.7;
}

.checkout-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.checkout-step-indicator {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
}

.checkout-step-indicator span {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: var(--primary);
    font-weight: 800;
}

.checkout-step-indicator.active {
    border-color: rgba(245, 158, 11, .45);
    color: var(--primary);
}

.checkout-step-indicator.active span {
    background: var(--orange);
    color: var(--white);
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
    align-items: start;
}

.checkout-main {
    display: grid;
    gap: 18px;
}

.checkout-card,
.checkout-summary-card {
    padding: 24px;
}

.checkout-card-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.checkout-step-number {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.checkout-card h2,
.checkout-summary-card h2 {
    color: var(--primary);
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.checkout-card p {
    color: var(--muted);
    line-height: 1.6;
}

.delivery-choice,
.payment-options {
    display: grid;
    gap: 12px;
}

.choice-card,
.payment-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    cursor: pointer;
    background: #fff;
}

.choice-card.active,
.payment-card.active {
    border-color: var(--orange);
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.12);
}

.choice-card input,
.payment-card input {
    accent-color: var(--orange);
}

.choice-card span,
.payment-card span {
    display: grid;
    gap: 4px;
}

.choice-card small,
.payment-card small {
    color: var(--muted);
    line-height: 1.5;
}

.payment-card i {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.checkout-address-form {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.form-row.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.checkout-address-form label,
.checkout-notes {
    display: grid;
    gap: 7px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.checkout-address-form input,
.checkout-notes textarea {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    font: inherit;
    color: var(--text);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}

.checkout-next {
    margin-top: 20px;
}

.checkout-actions-row {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    flex-wrap: wrap;
}

.shipping-rule-box {
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: 18px;
    padding: 18px;
}

.shipping-rule-success strong {
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
}

.freight-warning {
    color: #b45309 !important;
    margin-top: 8px;
}

.freight-ok {
    color: #15803d !important;
    margin-top: 8px;
}

.checkout-summary-card {
    position: sticky;
    top: calc(var(--header-height) + 18px);
}

.checkout-summary-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

.checkout-summary-item img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #f8fafc;
}

.checkout-summary-item div {
    display: grid;
    gap: 3px;
}

.checkout-summary-item strong {
    color: var(--primary);
    font-size: 13px;
    line-height: 1.35;
}

.checkout-summary-item span {
    color: var(--muted);
    font-size: 12px;
}

.checkout-totals {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.checkout-totals div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
}

.checkout-totals strong {
    color: var(--primary);
}

.checkout-totals .grand {
    border-top: 2px solid var(--primary);
    padding-top: 12px;
    color: var(--primary);
    font-size: 18px;
    font-weight: 800;
}

.checkout-review {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.review-block {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    background: #f8fafc;
}

.review-block strong {
    display: block;
    color: var(--primary);
    margin-bottom: 6px;
}

.review-block p {
    color: var(--text);
}

.payment-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, .72);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 5000;
}

.payment-modal-overlay.active {
    display: flex;
}

.payment-modal-card {
    position: relative;
    width: min(520px, 100%);
    background: var(--white);
    border-radius: 28px;
    padding: 34px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(2, 6, 23, .3);
}

.payment-modal-close {
    position: absolute;
    right: 18px;
    top: 14px;
    border: none;
    background: transparent;
    font-size: 30px;
    cursor: pointer;
    color: var(--muted);
}

.payment-state-icon {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: rgba(37, 211, 102, .12);
    color: #15803d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 18px;
}

.payment-state-icon.analysis {
    background: rgba(245, 158, 11, .14);
    color: var(--orange-dark);
}

.payment-modal-card h2 {
    color: var(--primary);
    margin-bottom: 10px;
}

.payment-modal-card p {
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 12px;
}

.payment-placeholder {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    margin: 14px 0;
    text-align: left;
}

@media (max-width: 992px) {
    .checkout-page {
        padding-left: 5%;
        padding-right: 5%;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .checkout-summary-card {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .checkout-page {
        padding-left: 4%;
        padding-right: 4%;
    }

    .checkout-progress {
        grid-template-columns: 1fr 1fr;
    }

    .form-row.two,
    .checkout-review {
        grid-template-columns: 1fr;
    }

    .checkout-hero-card,
    .checkout-card,
    .checkout-summary-card,
    .payment-modal-card {
        padding: 20px;
    }

    .checkout-actions-row .btn-det,
    .checkout-actions-row .btn-orange {
        width: 100% !important;
    }
}

/* =========================================================
   LOCALIZAÇÃO / CEP NA ENTRADA DA LOJA
   ========================================================= */
.delivery-location-pill {
    min-height: 42px;
    max-width: 210px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    cursor: pointer;
    text-align: left;
    flex-shrink: 0;
}

.delivery-location-pill:hover {
    background: rgba(255,255,255,.16);
    transform: translateY(-1px);
}

.delivery-location-pill i {
    color: var(--orange);
    font-size: 15px;
}

.delivery-location-pill span,
.delivery-location-pill strong {
    display: block;
    line-height: 1.1;
}

.delivery-location-pill span {
    font-size: 10px;
    opacity: .82;
    font-weight: 600;
}

.delivery-location-pill strong {
    font-size: 11px;
    max-width: 132px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.delivery-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, .70);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 5200;
}

.delivery-modal-overlay.active {
    display: flex;
}

.delivery-modal-card {
    position: relative;
    width: min(520px, 100%);
    background: var(--white);
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 24px 60px rgba(2, 6, 23, .28);
}

.delivery-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 30px;
    cursor: pointer;
}

.delivery-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    background: rgba(245, 158, 11, .14);
    color: var(--orange-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    margin-bottom: 18px;
}

.delivery-modal-card h2 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 28px;
}

.delivery-modal-card p {
    color: var(--muted);
    line-height: 1.65;
}

.delivery-cep-form {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}

.delivery-cep-form label {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.delivery-cep-form > div {
    display: flex;
    gap: 10px;
}

.delivery-cep-form input {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 13px 14px;
    font: inherit;
    color: var(--text);
    outline: none;
}

.delivery-cep-form input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, .12);
}

.delivery-geo-button,
.delivery-secondary-button {
    width: 100%;
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #f8fafc;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    margin-top: 12px;
}

.delivery-geo-button:hover,
.delivery-secondary-button:hover {
    border-color: var(--orange);
    color: var(--orange-dark);
}

.delivery-geo-button i {
    margin-right: 8px;
    color: var(--orange-dark);
}

.delivery-modal-message {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
}

.delivery-modal-message.info {
    background: #eff6ff;
    color: #1d4ed8;
}

.delivery-modal-message.success {
    background: #ecfdf5;
    color: #047857;
}

.delivery-modal-message.error {
    background: #fef2f2;
    color: #b91c1c;
}

.delivery-rule-preview {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f8fafc;
}

.delivery-rule-preview p {
    margin: 3px 0;
    font-size: 13px;
}

.delivery-warning {
    color: #b45309 !important;
    font-weight: 700;
}

@media (max-width: 992px) {
    .delivery-location-pill {
        max-width: 160px;
        padding: 7px 10px;
    }

    .delivery-location-pill strong {
        max-width: 92px;
    }
}

@media (max-width: 768px) {
    .delivery-location-pill {
        width: 42px;
        height: 42px;
        padding: 0;
        justify-content: center;
    }

    .delivery-location-pill span,
    .delivery-location-pill strong {
        display: none;
    }

    .delivery-modal-card {
        padding: 24px;
        border-radius: 24px;
    }

    .delivery-cep-form > div {
        flex-direction: column;
    }

    .delivery-cep-form .btn-orange {
        width: 100% !important;
    }
}

/* Ajustes do fluxo de cotação B2B */
.price-tag.login-required {
    color: var(--muted);
    font-size: 13px;
}
.shipping-eligibility {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 4px 10px;
    align-items: start;
    padding: 14px 16px;
    border-radius: 14px;
    margin: 14px 0;
    border: 1px solid var(--line);
    background: #f8fafc;
}
.shipping-eligibility i {
    grid-row: span 2;
    font-size: 20px;
    margin-top: 2px;
}
.shipping-eligibility strong {
    color: var(--primary);
}
.shipping-eligibility span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}
.shipping-eligibility.success {
    border-color: rgba(34, 197, 94, .35);
    background: rgba(34, 197, 94, .07);
}
.shipping-eligibility.success i {
    color: #16a34a;
}
.shipping-eligibility.warning {
    border-color: rgba(245, 158, 11, .35);
    background: rgba(245, 158, 11, .08);
}
.shipping-eligibility.warning i {
    color: var(--orange-dark);
}
