/*
|--------------------------------------------------------------------------
| BricoLand V2 — Product cards and homepage sections
|--------------------------------------------------------------------------
| Add this file AFTER aiz-core.css. Do not edit aiz-core.css.
*/

:root {
    --brico-primary: var(--primary, #377dff);
    --brico-primary-hover: var(--hov-primary, #0069d9);
    --brico-bg: #f6f7f9;
    --brico-text: #172033;
    --brico-muted: #70798b;
    --brico-border: #e7eaf0;
    --brico-radius: 16px;
}

.brico-home-section {
    margin-bottom: 22px;
}

.brico-section-shell {
    background: #fff;
    border: 1px solid var(--brico-border);
    border-radius: 18px;
    padding: 20px 22px 18px;
    box-shadow: 0 8px 24px rgba(17, 23, 35, .05);
}

.brico-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--brico-border);
}

.brico-section-kicker {
    display: block;
    margin-bottom: 3px;
    color: var(--brico-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.brico-section-title {
    margin: 0;
    color: var(--brico-text);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
}

.brico-top-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff4e5;
    color: #d86600;
    border: 1px solid #ffe0b3;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.brico-products-carousel .slick-track {
    display: flex;
}

.brico-products-carousel .slick-slide {
    height: auto;
}

.brico-products-carousel .slick-slide > div,
.brico-products-carousel .carousel-box {
    height: 100%;
}

.brico-product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100%;
    background: #fff;
    border: 1px solid var(--brico-border);
    border-radius: var(--brico-radius);
    box-shadow: 0 4px 14px rgba(17, 23, 35, .045);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.brico-product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(55, 125, 255, .32);
    box-shadow: 0 13px 30px rgba(17, 23, 35, .11);
}

.brico-product-media {
    overflow: hidden;
    background: #fff;
}

.brico-product-image-link {
    height: 225px;
    padding: 12px;
}

.brico-product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .3s ease;
}

.brico-product-card:hover .brico-product-image {
    transform: scale(1.035);
}

.brico-product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.brico-badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 3px 9px;
    border-radius: 7px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .1);
}

.brico-badge-discount {
    background: #e53935;
}

.brico-badge-new {
    background: #0abb75;
}

.brico-wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: rgba(255, 255, 255, .95);
    color: #555f72;
    border: 1px solid var(--brico-border);
    border-radius: 50%;
    font-size: 19px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(17, 23, 35, .08);
    transition: color .2s ease, transform .2s ease, border-color .2s ease;
}

.brico-wishlist-btn:hover {
    color: #e53935;
    border-color: #ffc8c8;
    transform: scale(1.06);
}

.brico-product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 13px 14px 14px;
    border-top: 1px solid #f0f2f5;
}

.brico-product-title {
    min-height: 42px;
    margin: 0 0 6px;
    overflow: hidden;
    display: -webkit-box;
    color: var(--brico-text);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.brico-product-title a:hover {
    color: var(--brico-primary) !important;
}

.brico-product-rating {
    min-height: 19px;
    margin-bottom: 7px;
}

.brico-product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 11px;
}

.brico-current-price {
    color: var(--brico-primary);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
}

.brico-old-price {
    color: #9aa1af;
    font-size: 12px;
    font-weight: 500;
}

.brico-club-point {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 5px 8px;
    background: rgba(55, 125, 255, .08);
    color: var(--brico-primary);
    border-radius: 7px;
    font-size: 11px;
}

.brico-product-actions {
    display: flex;
    gap: 7px;
    margin-top: auto;
}

.brico-add-cart-btn {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 38px;
    padding: 8px 9px;
    background: var(--brico-primary);
    color: #fff !important;
    border: 1px solid var(--brico-primary);
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.brico-add-cart-btn:hover {
    background: var(--brico-primary-hover);
    border-color: var(--brico-primary-hover);
    transform: translateY(-1px);
}

.brico-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    min-height: 38px;
    padding: 0;
    background: #fff;
    color: var(--brico-text) !important;
    border: 1px solid var(--brico-border);
    border-radius: 9px;
    font-size: 17px;
}

.brico-view-btn:hover {
    color: var(--brico-primary) !important;
    border-color: rgba(55, 125, 255, .45);
}

.brico-products-carousel.half-outside-arrow .slick-prev,
.brico-products-carousel.half-outside-arrow .slick-next {
    width: 38px;
    height: 38px;
    background: #fff;
    border: 1px solid var(--brico-border);
    box-shadow: 0 5px 16px rgba(17, 23, 35, .12);
}

@media (max-width: 991.98px) {
    .brico-section-shell {
        padding: 16px 15px 14px;
        border-radius: 14px;
    }

    .brico-section-title {
        font-size: 19px;
    }

    .brico-product-image-link {
        height: 195px;
    }
}

@media (max-width: 575.98px) {
    .brico-home-section {
        margin-bottom: 15px;
    }

    .brico-section-shell {
        padding: 13px 10px 11px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .brico-section-header {
        align-items: center;
        margin-bottom: 9px;
        padding: 0 3px 10px;
    }

    .brico-section-title {
        font-size: 17px;
    }

    .brico-section-kicker {
        font-size: 9px;
    }

    .brico-top-badge {
        padding: 5px 8px;
        font-size: 10px;
    }

    .brico-product-card {
        border-radius: 12px;
    }

    .brico-product-image-link {
        height: 165px;
        padding: 8px;
    }

    .brico-product-body {
        padding: 10px;
    }

    .brico-product-title {
        min-height: 39px;
        font-size: 12px;
        line-height: 1.6;
    }

    .brico-current-price {
        font-size: 15px;
    }

    .brico-add-cart-btn {
        min-height: 36px;
        font-size: 11px;
    }

    .brico-view-btn {
        width: 37px;
        min-width: 37px;
        min-height: 36px;
    }
}
