.biodiv-products-wrapper {
    width: 100%;
}

.biodiv-products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.biodiv-products-result-count {
    font-size: 14px;
    color: #666;
}

.biodiv-products-ordering {
    display: flex;
    align-items: center;
}

.biodiv-ordering-form {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.biodiv-ordering-form label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0;
    white-space: nowrap;
}

.biodiv-ordering-form select.orderby {
    padding: 8px 35px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.biodiv-ordering-form select.orderby:focus {
    outline: none;
    border-color: #00719B;
}

.biodiv-products-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.biodiv-product-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.biodiv-product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f5f5f5;
}

.biodiv-product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.biodiv-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.biodiv-package-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #00719B;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.biodiv-package-badge i {
    font-size: 12px;
}

.biodiv-package-badge-icon {
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
}

.biodiv-product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.biodiv-product-category {
    padding: 15px 15px 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #00719B;
    letter-spacing: 0.5px;
}

.biodiv-product-title {
    padding: 8px 15px 0;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}

.biodiv-product-link:hover .biodiv-product-title {
    color: #00719B;
}

.biodiv-product-price {
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.biodiv-price-regular {
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.biodiv-price-original {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 5px;
    opacity: 0.6;
}

.biodiv-price-sale {
    display: block;
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.biodiv-product-actions {
    padding: 0 15px 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.biodiv-product-actions .button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.biodiv-product-actions .biodiv-buy-now {
    width: 100%;
}

.biodiv-product-actions .button.add-to-cart {
    background-color: #00719B !important;
    border-color: #00719B !important;
    color: #fff !important;
}

.biodiv-product-actions .button.add-to-cart:hover {
    background-color: #00B3F0 !important;
    border-color: #00B3F0 !important;
}

.biodiv-product-actions .button i {
    font-size: 14px;
}

.biodiv-product-actions .button.add-to-cart.loading {
    opacity: 0.6;
    pointer-events: none;
}

.biodiv-product-actions .button.add-to-cart.loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.biodiv-products-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.biodiv-products-pagination .page-numbers {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.biodiv-products-pagination .page-numbers li {
    margin: 0;
}

.biodiv-products-pagination .page-numbers a,
.biodiv-products-pagination .page-numbers span {
    border-radius: 6px;
    padding: 12px 24px;
    line-height: 1.32;
    font-size: 14px;
    transition: background-color .2s;
    cursor: pointer;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    background: #1c1b1b;
    text-decoration: none;
    margin: 0 4px;
    min-height: 44px;
}

.biodiv-products-pagination .page-numbers a:hover,
.biodiv-products-pagination .page-numbers .current {
    background: #2c2b2b;
}

.biodiv-products-pagination .page-numbers .dots {
    background: transparent;
    color: #1c1b1b;
    cursor: default;
}

.biodiv-no-products {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: #666;
}

@media (max-width: 768px) {
    .biodiv-products-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .biodiv-products-ordering {
        width: 100%;
    }

    .biodiv-ordering-form {
        width: 100%;
    }

    .biodiv-ordering-form select.orderby {
        width: 100%;
    }

    .biodiv-products-grid {
        gap: 20px;
    }

    .biodiv-product-actions {
        flex-direction: column;
    }

    .biodiv-products-pagination .page-numbers a,
    .biodiv-products-pagination .page-numbers span {
        padding: 12px 16px;
        font-size: 12px;
        min-height: 40px;
    }

    .biodiv-skeleton-loading {
        gap: 20px;
    }
}

.biodiv-skeleton-loading {
    display: grid;
    gap: 30px;
    grid-template-columns: inherit;
}

.biodiv-skeleton-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.biodiv-skeleton-image {
    width: 100%;
    aspect-ratio: 1;
    min-height: 260px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.biodiv-skeleton-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.biodiv-skeleton-category {
    width: 40%;
    height: 12px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.biodiv-skeleton-title {
    width: 80%;
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.biodiv-skeleton-price {
    width: 50%;
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    margin-top: 5px;
}

.biodiv-skeleton-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.biodiv-skeleton-button {
    width: 100%;
    height: 44px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 12px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.biodiv-product-actions .added_to_cart {
    display: none !important;
}
