/* Section wrapper */
.vb-kids-filter-section {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding: 10px 15px;
}

/* Hidden title */
.kids-filter-section-title {
    display: none !important;
}

/* Filter form */
.vb-kids-filter-form {
    width: 100%;
}

/* Default: single line, centered */
.vb-kids-filter-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    white-space: nowrap;
    overflow-x: auto;
    padding: 10px 0;
}

/* Dropdowns – overall border 1.5px, button color */
.vb-kids-filter-select {
    min-width: 150px;
    padding: 8px 14px;
    border-radius: 999px;
    border-width: 1.5px;
    border-style: solid;
    border-color: #af2702;
    background: #ffffff;
    font-size: 14px;
    outline: none;
}

/* Button base */
.vb-kids-filter-button {
    padding: 9px 24px;
    border-radius: 999px;
    border: none;
    background: #af2702;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.1s ease, background 0.2s ease;
}

.vb-kids-filter-button:hover {
    background: #c13208;
    box-shadow: 0 0 12px rgba(175, 39, 2, 0.6);
    transform: translateY(-1px);
}

/* Overall section style – devotional/professional feel */
.vb-kids-filter-section.vb-babywear-filter,
.vb-kids-filter-section.vb-boyswear-filter,
.vb-kids-filter-section.vb-girlswear-filter {
    background: linear-gradient(135deg, #f7f9fb, #fdf9f0);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(212, 175, 55, 0.18); /* soft gold */
}

/* Products grid */
.vb-kids-products-grid {
    margin-top: 18px;
}

.vb-kids-products-grid.vb-kids-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Grid layout */
.vb-kids-grid-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

/* Card */
.vb-kids-product-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    padding: 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 1px solid rgba(16, 185, 129, 0.16); /* soft green accent */
}

.vb-kids-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.08);
}

/* Image */
.vb-kids-product-image-link {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.16); /* soft glowing edge */
}

.vb-kids-product-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Content */
.vb-kids-product-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vb-kids-product-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2933;
    text-decoration: none;
}

.vb-kids-product-title:hover {
    color: #af2702;
}

.vb-kids-product-price {
    font-size: 14px;
    color: #047857;
    font-weight: 600;
}

/* WooCommerce button inside card */
.vb-kids-product-card .button {
    width: 100%;
    text-align: center;
    border-radius: 999px;
}

/* ---------- Responsive tweaks ---------- */

/* Tablet */
@media (max-width: 1024px) {
    .vb-kids-grid-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 768px) {
    .vb-kids-grid-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Very small screens general filter alignment */
@media (max-width: 480px) {
    /* General scroll allowed */
    .vb-kids-filter-row {
        justify-content: flex-start;
        padding-inline: 10px;
    }
}

/* Babywear – mobile: button keezha varanum, full width */
@media (max-width: 480px) {

    .vb-babywear-filter .vb-kids-filter-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        white-space: normal; /* allow line break */
        padding-inline: 10px;
    }

    .vb-babywear-filter .vb-kids-filter-select {
        min-width: 100%;
        padding: 8px 10px;
        font-size: 13px;
    }

    .vb-babywear-filter .vb-kids-filter-button {
        width: 100%;
        padding: 9px 14px;
        font-size: 13px;
    }
}
