/*
 * AWA B2B ONDA 2 - PLP List View & Quick Order Header
 */

/* ==========================================================================
   1. QUICK ORDER HEADER LINK
   Tratando o link "Pedido Rápido" injetado em top.links
   ========================================================================== */
.header-container .top-account ul.header.links > li.b2b-quickorder-link > a {
    background-color: #b73337;
    color: #ffffff !important;
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 15px; /* Spans out from "Minha Conta" */
}

.header-container .top-account ul.header.links > li.b2b-quickorder-link > a:before {
    content: "\f0e7"; /* Lightning bolt icon in FontAwesome */
    font-family: 'FontAwesome';
    font-size: 13px;
    font-weight: normal;
}

.header-container .top-account ul.header.links > li.b2b-quickorder-link > a:hover {
    background-color: #9a2b2f;
    box-shadow: 0 4px 12px rgba(183,51,55,0.2) !important;
}

/* On mobile, integrate normally into the account dropdown list */
@media (max-width: 767px) {
    .header-container .top-account ul.header.links > li.b2b-quickorder-link {
        width: 100%;
        margin-bottom: 5px;
    }
    .header-container .top-account ul.header.links > li.b2b-quickorder-link > a {
        margin-right: 0;
        justify-content: center;
        padding: 10px;
    }
}


/* ==========================================================================
   2. B2B PLP LIST VIEW (DENSE HORIZONTAL)
   Forçando layout profissional em lista para compras em lote
   ========================================================================== */
.products-list .product-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.products-list .item-product {
    width: 100% !important;
    margin: 0 !important;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #ffffff;
    transition: all 0.2s ease;
    display: flex !important;
    flex-wrap: nowrap;
    align-items: stretch;
    float: none !important; /* overrides grid floats if any */
}

.products-list .item-product:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-color: #cbd5e1;
}

/* Image column */
.products-list .item-product .product-thumb {
    flex: 0 0 160px;
    width: 160px;
    padding: 15px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #f1f5f9;
}

.products-list .item-product .product-thumb .first-thumb img,
.products-list .item-product .product-thumb .second-thumb img {
    max-width: 120px;
    height: auto;
}

/* Details column */
.products-list .item-product .product-info {
    flex: 1 1 auto;
    padding: 20px 25px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left !important;
}

.products-list .item-product .product-name {
    margin: 0 0 8px 0;
}

.products-list .item-product .product-name a {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    text-transform: uppercase;
}

.products-list .item-product .product-rating {
    margin-bottom: 8px;
}

.products-list .item-product .product-desc {
    font-size: 13px;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

/* Actions column mapped to product-info-cart inside product-info */
.products-list .item-product .product-info-cart {
    flex: 0 0 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding-left: 20px;
    border-left: 1px dashed #cbd5e1;
    margin: 0 20px 0 0 !important;
}

.products-list .item-product .info-price {
    margin: 0 0 10px 0;
    text-align: right;
}

.products-list .item-product .info-price .price {
    font-size: 22px;
    font-weight: 700;
    color: #b73337;
}

.products-list .item-product .actions-primary {
    width: 100%;
}

.products-list .item-product .actions-primary .action.tocart {
    width: 100%;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Fallback for List View */
@media (max-width: 767px) {
    .products-list .item-product {
        flex-direction: column;
    }

    .products-list .item-product .product-thumb {
        flex: 1 1 100%;
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
        padding: 15px;
    }

    .products-list .item-product .product-info {
        padding: 15px !important;
    }

    .products-list .item-product .product-info-cart {
        flex: 1 1 100%;
        width: 100%;
        border-left: none;
        border-top: 1px dashed #cbd5e1;
        padding-left: 0;
        padding-top: 15px;
        margin-top: 15px !important;
        margin-right: 0 !important;
        align-items: center;
    }

    .products-list .item-product .info-price {
        text-align: center;
    }
}
