/* ==========================================================================
   Solutioo AI Recommendations - Frontend Styles
   ========================================================================== */

/* ---- Frequently Bought Together ---- */

.solutioo-air-fbt {
    margin: 30px 0;
    padding: 20px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
}

.solutioo-air-fbt .block-title strong {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.fbt-products-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.fbt-product {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    min-width: 120px;
    max-width: 180px;
    flex: 1;
}

.fbt-product-current {
    opacity: 0.7;
}

.fbt-product .product-name {
    font-size: 13px;
    line-height: 1.3;
    margin-top: 8px;
    display: block;
    color: #333;
    text-decoration: none;
}

.fbt-product .product-name:hover {
    color: #006bb4;
    text-decoration: underline;
}

.fbt-product .price {
    display: block;
    font-weight: 600;
    margin-top: 4px;
    color: #333;
}

.fbt-product-checkbox {
    margin-bottom: 5px;
}

.fbt-separator {
    font-size: 24px;
    font-weight: 700;
    color: #999;
    padding: 0 5px;
}

.fbt-popularity {
    display: block;
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

.fbt-total-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    margin-top: 10px;
}

.fbt-total-label {
    font-weight: 600;
    margin-right: 8px;
}

.fbt-total-amount {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.fbt-add-all {
    white-space: nowrap;
}

/* ---- Cross-Sell / Customers Also Purchased ---- */

.solutioo-air-crosssell {
    margin: 30px 0;
}

.solutioo-air-crosssell .block-title strong {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.solutioo-air-crosssell .product-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.solutioo-air-crosssell .product-item {
    flex: 0 0 calc(25% - 12px);
    max-width: calc(25% - 12px);
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 12px;
    transition: box-shadow 0.2s ease;
}

.solutioo-air-crosssell .product-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.solutioo-air-crosssell .product-item-photo {
    display: block;
    text-align: center;
    margin-bottom: 8px;
}

.solutioo-air-crosssell .product-item-name {
    font-size: 13px;
    line-height: 1.4;
}

.solutioo-air-crosssell .product-item-link {
    color: #333;
    text-decoration: none;
}

.solutioo-air-crosssell .product-item-link:hover {
    color: #006bb4;
}

.solutioo-air-crosssell .price-box {
    margin: 6px 0;
}

.solutioo-air-crosssell .price {
    font-weight: 600;
}

/* ---- Cart Smart Cross-Sell ---- */

.solutioo-air-cart-crosssell {
    margin: 30px 0;
}

.solutioo-air-cart-crosssell .block-title strong {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.solutioo-air-cart-crosssell .product-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.solutioo-air-cart-crosssell .product-item {
    flex: 0 0 calc(25% - 12px);
    max-width: calc(25% - 12px);
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 12px;
    transition: box-shadow 0.2s ease;
}

.solutioo-air-cart-crosssell .product-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.solutioo-air-cart-crosssell .product-item-photo {
    display: block;
    text-align: center;
    margin-bottom: 8px;
}

.solutioo-air-cart-crosssell .product-item-name {
    font-size: 13px;
    line-height: 1.4;
}

.solutioo-air-cart-crosssell .product-item-link {
    color: #333;
    text-decoration: none;
}

.solutioo-air-cart-crosssell .product-item-link:hover {
    color: #006bb4;
}

.solutioo-air-cart-crosssell .price-box {
    margin: 6px 0;
}

.solutioo-air-cart-crosssell .price {
    font-weight: 600;
}

/* ---- Customer Dashboard Recommendations ---- */

.solutioo-air-customer-recommendations .block-title strong {
    font-size: 22px;
    font-weight: 600;
}

.solutioo-air-customer-recommendations .subtitle {
    color: #666;
    font-size: 14px;
    margin-top: 2px;
}

.solutioo-air-customer-recommendations .product-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.solutioo-air-customer-recommendations .product-item {
    flex: 0 0 calc(25% - 12px);
    max-width: calc(25% - 12px);
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 12px;
    position: relative;
    transition: box-shadow 0.2s ease;
}

.solutioo-air-customer-recommendations .product-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.recommendation-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.recommendation-type-repurchase {
    background: #e8f5e9;
    color: #2e7d32;
}

.recommendation-type-complementary {
    background: #e3f2fd;
    color: #1565c0;
}

.recommendation-type-trending {
    background: #fff3e0;
    color: #e65100;
}

.recommendation-reason {
    font-size: 12px;
    color: #666;
    margin: 4px 0;
    line-height: 1.3;
}

.solutioo-air-customer-recommendations .product-item-photo {
    display: block;
    text-align: center;
    margin-bottom: 8px;
}

.solutioo-air-customer-recommendations .product-item-name {
    font-size: 13px;
    line-height: 1.4;
}

.solutioo-air-customer-recommendations .product-item-link {
    color: #333;
    text-decoration: none;
}

.solutioo-air-customer-recommendations .product-item-link:hover {
    color: #006bb4;
}

.solutioo-air-customer-recommendations .price-box {
    margin: 6px 0;
}

.solutioo-air-customer-recommendations .price {
    font-weight: 600;
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
    .solutioo-air-crosssell .product-item,
    .solutioo-air-cart-crosssell .product-item,
    .solutioo-air-customer-recommendations .product-item {
        flex: 0 0 calc(33.333% - 10px);
        max-width: calc(33.333% - 10px);
    }
}

@media (max-width: 768px) {
    .fbt-products-wrapper {
        flex-direction: column;
    }

    .fbt-product {
        max-width: 100%;
    }

    .fbt-separator {
        transform: rotate(90deg);
    }

    .fbt-total-section {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .solutioo-air-crosssell .product-item,
    .solutioo-air-cart-crosssell .product-item,
    .solutioo-air-customer-recommendations .product-item {
        flex: 0 0 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }
}

@media (max-width: 480px) {
    .solutioo-air-crosssell .product-item,
    .solutioo-air-cart-crosssell .product-item,
    .solutioo-air-customer-recommendations .product-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
