:root {
    /* Primary palette */
    --primary: #1A4F4F;
    --primary-dark: #0A2F2F;
    --primary-light: #1A4F4F;
    /* Neutrals */
    --bg-main: #ffffff;
    --bg-light: #f5f5f5;
    --bg-lighter: #fafafa;
    --bg-card: #ffffff;
    --text-dark: #1a1a1a;
    --text-medium: #364153;
    --text-light: #6A7282;
    --border-light: #002431;
    /* Accents */
    --yellow: #FFB900;
    /* Tag colors */
    --tag-natural-bg: #DCFCE7;
    --tag-natural-text: #008236;
    --tag-premium-bg: #DBEAFE;
    --tag-premium-text: #1447E6;
    --tag-spanish-bg: #FEF3C6;
    --tag-spanish-text: #BB4D00;
    --tag-protein-bg: #DCFCE7;
    --tag-natural-text: #008236;
    /* Gradient & Effects */
    --gradient-product: linear-gradient(135deg, #a8c686 0%, #7eb356 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}
/* Layout & Containers */
.products-wrapper {
    position: relative;
    min-height: 600px;
}
.top-categories,
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
    justify-content: center;
}
.top-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    min-height: 400px;
}
/* Cards */
.category-card,
.filter-btn {
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    background: var(--bg-light);
    transition: var(--transition-fast);
    font-weight: 600;
    color: var(--primary-light);
}
.category-card {
    padding: 18px;
    border-radius: 12px;
    text-align: center;
    font-size: 16px;
    background: var(--bg-card);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
span.filter-btn {
    background: #B0F3FF;
}
.category-card:hover,
.filter-btn:hover {
    background: var(--border-light);
    color: var(--bg-main);
}
.category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.category-card.active,
.filter-btn.active {
    background: #002431;
    color: white;
}
.product-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s ease;
}
.product-card.show {
    opacity: 1;
    transform: translateY(0);
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
/* Loader */
.loader-overlay {
    position: absolute;
    inset: 0;
    background: #00000075;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.loader-overlay .spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
/* Product visual & content */
.product-image {
    position: relative;
    width: 100%;
    height: 240px;
    background: var(--gradient-product);
    overflow: hidden;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bestseller-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--yellow);
    color: #000;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-content {
    padding: 20px;
}
.product-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.product-tag.tag-natural-feed,
.product-tag {
    background: var(--tag-natural-bg);
    color: var(--tag-natural-text);
}
.product-tag.tag-premium-hay {
    background: var(--tag-premium-bg);
    color: var(--tag-premium-text);
}
.product-tag.tag-spanish-origin {
    background: var(--tag-spanish-bg);
    color: var(--tag-spanish-text);
}
.product-tag.tag-high-protein {
    background: var(--tag-protein-bg);
    color: var(--tag-protein-text);
}
.product-title {
    font-size: 20px;
    font-weight: 400;
    color: var(--primary-light);
    margin-bottom: 8px;
}
.product-subtitle {
    font-size: 13px;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 12px;
}
.product-description {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 20px;
}
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.price-section,
.package-section {
    display: flex;
    flex-direction: column;
}
.price-label,
.package-label {
    font-size: 14px;
    color: #6A7282;
    margin-bottom: 0px;
    font-weight: 400;
}
.price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
}
.package-section .package {
    font-size: 14px;
    color: var(--text-medium);
    font-weight: 400;
}
/* Buttons */
.btn {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition-normal);
}
.product-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.btn-primary {
    background: var(--primary) !important;
    color: white !important;
    font-size: 14px;
    text-align: center;
}
.btn-primary:hover {
    /* background: var(--primary-dark); */
    transform: translateY(-1px);
}
.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-size: 14px;
    text-align: center;
}
.btn-secondary:hover {
    background: var(--bg-light);
}
.ms_premium_collection .elementor-widget-shortcode {
    position: unset;
}
/* Responsive */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 992px) {
    .top-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .top-categories {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .category-card {
        padding: 15px;
        font-size: 15px;
    }
}
@media (max-width: 480px) {
    .product-image {
        height: 200px;
    }
    .product-actions {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
}