/* ----------------------
/ Home Dual Category Product Boxes
/ -------------------- */

.artender-home-category-boxes,
.artender-home-category-boxes * {
    box-sizing: border-box;
}

.artender-home-category-boxes {
    width: min(100% - 28px, 1540px);
    margin: 18px auto 0;
    direction: rtl;
}

.artender-home-category-boxes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.artender-home-category-box {
    min-width: 0;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 8px 28px rgba(16, 24, 40, 0.055);
}

.artender-home-category-box-head {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.artender-home-category-box-title-wrap {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    flex: 0 1 auto;
}

.artender-home-category-box-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid rgba(var(--artender-primary-rgb, 23, 105, 255), .18);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--artender-primary-color, #1769ff);
    background: rgba(var(--artender-primary-rgb, 23, 105, 255), .04);
}

.artender-home-category-box-icon svg {
    width: 21px;
    height: 21px;
}

.artender-home-category-box-title {
    color: #101828;
    font-size: 17px;
    font-weight: 950;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artender-home-category-box-head-line {
    height: 1px;
    flex: 1 1 auto;
    min-width: 14px;
    background: linear-gradient(90deg, transparent, rgba(var(--artender-primary-rgb, 23, 105, 255), .35));
}

.artender-home-category-box-all {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(var(--artender-primary-rgb, 23, 105, 255), .35);
    border-radius: 10px;
    color: var(--artender-primary-color, #1769ff);
    background: #fff;
    text-decoration: none;
    font-size: 11.5px;
    font-weight: 900;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.artender-home-category-box-all:hover {
    background: var(--artender-primary-color, #1769ff);
    border-color: var(--artender-primary-color, #1769ff);
    color: #fff;
}

.artender-home-category-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

/* Product card follows the homepage "Newest Products" visual language. */
.artender-home-category-product {
    position: relative;
    min-width: 0;
    padding: 7px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e6eb;
    border-radius: 13px;
    background: #fff;
    color: inherit;
    text-decoration: none !important;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.artender-home-category-product:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--artender-primary-rgb, 23, 105, 255), .3);
    box-shadow: 0 10px 22px rgba(15, 23, 42, .075);
}

.artender-home-category-product-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #eef1f4;
    border-radius: 9px;
    background: #fff;
}

.artender-home-category-product-image {
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: contain !important;
}

.artender-home-category-product-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    min-width: 38px;
    height: 22px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--artender-primary-color, #1769ff);
    color: #fff;
    font-size: 8.5px;
    font-weight: 950;
    box-shadow: 0 4px 10px rgba(var(--artender-primary-rgb, 23, 105, 255), .14);
}

.artender-home-category-product-title {
    min-height: 58px;
    margin: 7px 1px 6px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: #20242a;
    font-size: 10.8px;
    font-weight: 850;
    line-height: 1.7;
    text-align: right;
}

.artender-home-category-product-bottom {
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid #f0f2f5;
}

.artender-home-category-product-price {
    min-height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--artender-primary-color, #1769ff);
    font-size: 15.5px;
    font-weight: 950;
    line-height: 1.6;
    text-align: center;
    white-space: nowrap;
}

.artender-home-category-product-price,
.artender-home-category-product-price span,
.artender-home-category-product-price bdi {
    direction: rtl;
    unicode-bidi: isolate;
}

.artender-home-category-product-price .woocommerce-Price-amount {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    direction: rtl;
}

.artender-home-category-product-price .woocommerce-Price-currencySymbol {
    display: inline-block;
}

@media (max-width: 991px) {
    .artender-home-category-boxes-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .artender-home-category-boxes {
        width: calc(100% - 20px);
        margin-top: 12px;
    }

    .artender-home-category-boxes-grid {
        gap: 12px;
    }

    .artender-home-category-box {
        border-radius: 16px;
        padding: 12px;
    }

    .artender-home-category-box-head {
        min-height: 42px;
        gap: 8px;
        margin-bottom: 11px;
    }

    .artender-home-category-box-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        border-radius: 10px;
    }

    .artender-home-category-box-icon svg {
        width: 18px;
        height: 18px;
    }

    .artender-home-category-box-title {
        font-size: 14px;
    }

    .artender-home-category-box-all {
        min-height: 34px;
        padding: 0 10px;
        font-size: 10px;
        border-radius: 9px;
    }

    .artender-home-category-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .artender-home-category-product {
        padding: 6px;
        border-radius: 11px;
    }

    .artender-home-category-product-image-wrap {
        aspect-ratio: 1 / 1;
        border-radius: 8px;
    }

    .artender-home-category-product-badge {
        top: 5px;
        right: 5px;
        min-width: 32px;
        height: 19px;
        padding: 0 5px;
        font-size: 7.5px;
        border-radius: 6px;
    }

    .artender-home-category-product-title {
        min-height: 51px;
        margin: 6px 0 5px;
        font-size: 9.6px;
        line-height: 1.75;
    }

    .artender-home-category-product-bottom {
        padding-top: 5px;
    }

    .artender-home-category-product-price {
        min-height: 27px;
        font-size: 11.4px;
    }
}
