.bwdwvs-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

/* Desktop columns - data attribute দিয়ে dynamic */
.bwdwvs-grid[data-columns-desktop="1"] { grid-template-columns: repeat(1, 1fr); }
.bwdwvs-grid[data-columns-desktop="2"] { grid-template-columns: repeat(2, 1fr); }
.bwdwvs-grid[data-columns-desktop="3"] { grid-template-columns: repeat(3, 1fr); }
.bwdwvs-grid[data-columns-desktop="4"] { grid-template-columns: repeat(4, 1fr); }
.bwdwvs-grid[data-columns-desktop="5"] { grid-template-columns: repeat(5, 1fr); }
.bwdwvs-grid[data-columns-desktop="6"] { grid-template-columns: repeat(6, 1fr); }

/* Tablet columns (Elementor breakpoint: 1024px) */
@media (max-width: 1024px) {
    .bwdwvs-grid[data-columns-tablet="1"] { grid-template-columns: repeat(1, 1fr); }
    .bwdwvs-grid[data-columns-tablet="2"] { grid-template-columns: repeat(2, 1fr); }
    .bwdwvs-grid[data-columns-tablet="3"] { grid-template-columns: repeat(3, 1fr); }
    .bwdwvs-grid[data-columns-tablet="4"] { grid-template-columns: repeat(4, 1fr); }
    .bwdwvs-grid[data-columns-tablet="5"] { grid-template-columns: repeat(5, 1fr); }
    .bwdwvs-grid[data-columns-tablet="6"] { grid-template-columns: repeat(6, 1fr); }
}

/* Mobile columns (Elementor breakpoint: 767px) */
@media (max-width: 767px) {
    .bwdwvs-grid[data-columns-mobile="1"] { grid-template-columns: repeat(1, 1fr); }
    .bwdwvs-grid[data-columns-mobile="2"] { grid-template-columns: repeat(2, 1fr); }
    .bwdwvs-grid[data-columns-mobile="3"] { grid-template-columns: repeat(3, 1fr); }
    .bwdwvs-grid[data-columns-mobile="4"] { grid-template-columns: repeat(4, 1fr); }
    .bwdwvs-grid[data-columns-mobile="5"] { grid-template-columns: repeat(5, 1fr); }
    .bwdwvs-grid[data-columns-mobile="6"] { grid-template-columns: repeat(6, 1fr); }
}

.bwdwvs-product {
    border: 1px solid #eee;
    padding: 15px;
    text-align: center;
    position: relative;
}

.bwdwvs-product-image-wrapper {
    position: relative;
    overflow: hidden;
}

.bwdwvs-product-image-wrapper a {
    display: block;
}

.bwdwvs-product-image-wrapper img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.bwdwvs-product-image-wrapper:hover img {
    transform: scale(1.05);
}

.bwdwvs-product-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.bwdwvs-product:hover .bwdwvs-product-actions {
    transform: translateY(0);
}

.bwdwvs-product-title {
    margin: 10px 0;
    font-size: 16px;
}

.bwdwvs-product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bwdwvs-product-title a:hover {
    color: #0073aa;
}

.bwdwvs-product-price {
    margin: 10px 0;
    font-weight: bold;
}

.bwdwvs-quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

.bwdwvs-quantity-minus, .bwdwvs-quantity-plus {
    background: #f0f0f0;
    border: 1px solid #ddd;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
	padding: 0!important;
}

.bwdwvs-quantity-minus:hover, .bwdwvs-quantity-plus:hover {
    background: #e0e0e0;
}

.bwdwvs-quantity-input {
    width: 50px;
	height: 30px!important;
    text-align: center;
    margin: 0 5px;
    border: 1px solid #ddd!important;
    border-radius: 5px!important;
    padding: 0!important;
}

.bwdwvs-swatches {
    margin: 10px 0;
}

.bwdwvs-swatch.selected {
    border-color: #0073aa;
}
span.bwdwvs-swatch.bwdwvs-color-swatch.selected {
    border-color: #fff;
    box-shadow: 0 0 0 1px #0073aa;
}
.bwdwvs-add-to-cart-variation,
.bwdwvs-add-to-cart,
.bwdwvs-select-options,
.bwdwvs-view-cart {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 3px;
    width: 100%;
    transition: background 0.3s ease;
}

.bwdwvs-add-to-cart-variation:hover,
.bwdwvs-add-to-cart:hover,
.bwdwvs-select-options:hover,
.bwdwvs-view-cart:hover {
    background: #005a87;
}

.bwdwvs-view-cart {
    background: #28a745;
}

.bwdwvs-view-cart:hover {
    background: #218838;
}

/* Chrome, Safari, Edge, Opera */
.bwdwvs-quantity-controls input[type=number]::-webkit-inner-spin-button,
.bwdwvs-quantity-controls input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.bwdwvs-quantity-controls input[type=number] {
    -moz-appearance: textfield;
}

/* Load More Button */
.bwdwvs-load-more-wrapper {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
}

.bwdwvs-load-more-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 40px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.bwdwvs-load-more-btn:hover {
    background: #005a87;
}

.bwdwvs-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Variable Product Variations */
.bwdwvs-variations {
    margin: 15px 0;
    padding: 10px 0;
    border-top: 1px solid #eee;
}

.bwdwvs-variation-group {
    margin-bottom: 12px;
}

.bwdwvs-variation-group:last-child {
    margin-bottom: 0;
}

.bwdwvs-variation-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 13px;
    color: #333;
    text-transform: capitalize;
}

.bwdwvs-variation-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Text/Button Swatch */
.bwdwvs-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.bwdwvs-text-swatch {
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    color: #555;
    background: #fff;
    text-align: center;
    width: 30px;
    height: 30px;
}

/* Color Swatch */
.bwdwvs-color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ddd;
    position: relative;
}

.bwdwvs-color-swatch::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 0;
    transition: all 0.3s ease;
}

.bwdwvs-color-swatch:hover::after {
    border-color: #0073aa;
}

/* Image Swatch */
.bwdwvs-image-swatch {
    width: 30px;
    height: 30px;
    border-radius: 3px;
    border: 1px solid #ddd;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* Tooltip for color swatches */
.bwdwvs-color-swatch::before {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    pointer-events: none;
    transition: all 0.2s ease;
    opacity: 0;
    z-index: 10;
}

.bwdwvs-color-swatch::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%) scale(0);
    border: 0;
    border-top-color: rgba(0,0,0,0.85);
    opacity: 0;
    transition: all 0.2s ease;
}

.bwdwvs-color-swatch:hover::before,
.bwdwvs-color-swatch:hover::after {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

/* Responsive */
@media (max-width: 480px) {
    .bwdwvs-variation-options {
        gap: 6px;
    }
    
    .bwdwvs-text-swatch {
        padding: 5px 10px;
        font-size: 12px;
        min-width: 35px;
    }
    
    .bwdwvs-color-swatch {
        width: 28px;
        height: 28px;
    }
    
    .bwdwvs-image-swatch {
        width: 35px;
        height: 35px;
    }
}









