/* WooCommerce Categories Shortcode Styles */

.sr-wc-categories-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

/* Column variations */
.sr-wc-categories-grid-1 {
    grid-template-columns: repeat(1, 1fr);
}

.sr-wc-categories-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.sr-wc-categories-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.sr-wc-categories-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.sr-wc-categories-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.sr-wc-categories-grid-6 {
    grid-template-columns: repeat(6, 1fr);
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
    .sr-wc-categories-grid-4,
    .sr-wc-categories-grid-5,
    .sr-wc-categories-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .sr-wc-categories-grid-3,
    .sr-wc-categories-grid-4,
    .sr-wc-categories-grid-5,
    .sr-wc-categories-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .sr-wc-categories-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Category item */
.sr-wc-category-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sr-wc-category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sr-wc-category-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.sr-wc-category-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sr-wc-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sr-wc-category-item:hover .sr-wc-category-image img {
    transform: scale(1.05);
}

.sr-wc-category-title {
    margin: 0;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: #333;
    background: #fff;
}

.sr-wc-category-item:hover .sr-wc-category-title {
    color: #96030a;
}
