/* Product cards */
body.home ul.products li.product,
body.home .product-block,
body.woocommerce ul.products li.product.besa-enhanced-card {
    background: #fff;
    border: 1px solid #eeeae6;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(26, 26, 46, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

body.home ul.products li.product:hover,
body.home .product-block:hover,
body.woocommerce ul.products li.product.besa-enhanced-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(250, 79, 38, 0.12);
}

body.home .product-block .image,
body.home ul.products li.product img,
body.woocommerce ul.products li.product.besa-enhanced-card img {
    border-radius: 0;
}

body.home .product-block .caption,
body.home ul.products li.product .product-content,
body.woocommerce ul.products li.product.besa-enhanced-card .caption {
    padding: 12px 14px 16px;
}

body.home .product-block .name a,
body.home ul.products li.product .woocommerce-loop-product__title,
body.home ul.products li.product h3 a {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a2e;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

body.home ul.products li.product .price,
body.home .product-block .price {
    color: #fa4f26;
    font-weight: 700;
    font-size: 15px;
}

body.home .product-block .group-buttons,
body.home ul.products li.product .add_to_cart_button,
body.home ul.products li.product .button {
    border-radius: 10px !important;
}

/* All categories page */
.besa-all-categories {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 16px 40px;
}

.besa-cat-toolbar {
    margin: 10px 0 22px;
}

.besa-cat-toolbar h1 {
    margin: 6px 0 8px;
    font-size: 28px;
    color: #1a1a2e;
}

.besa-cat-toolbar p {
    margin: 0;
    color: #6b7280;
}

.besa-cat-back {
    display: inline-flex;
    color: #fa4f26;
    font-weight: 600;
    text-decoration: none;
}

.besa-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.besa-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #eeeae6;
    border-radius: 16px;
    padding: 16px 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.besa-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(250, 79, 38, 0.1);
    color: inherit;
}

.besa-cat-thumb {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff5f2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.besa-cat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.besa-cat-letter,
.besa-cat-thumb--all {
    font-size: 28px;
    font-weight: 800;
    color: #fa4f26;
}

.besa-cat-name {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
    color: #1a1a2e;
}

.besa-cat-count {
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

.besa-cat-empty {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
}

/* Subcategory chips on archive pages */
.besa-subcat-nav {
    margin: 8px 0 24px;
}

.besa-subcat-nav h2 {
    font-size: 16px;
    margin: 0 0 10px;
}

.besa-subcat-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.besa-subcat-row::-webkit-scrollbar {
    display: none;
}

.besa-subcat-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #eeeae6;
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.besa-subcat-chip span {
    background: #fff5f2;
    color: #fa4f26;
    border-radius: 999px;
    padding: 1px 7px;
    font-size: 11px;
}

.besa-subcat-chip:hover {
    border-color: #fa4f26;
    color: #fa4f26;
}

/* Homepage "More" category tile */
.besa-more-category a,
.besa-more-category {
    text-decoration: none;
    color: inherit;
}

.besa-more-category .besa-more-tile {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 2px dashed #fa4f26;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    color: #fa4f26;
    font-weight: 800;
    background: #fff5f2;
}

@media (max-width: 767px) {
    .besa-cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .besa-cat-toolbar h1 {
        font-size: 22px;
    }
}
