/*
Theme Name: bvs
Theme URI: 
Description: bvs Child Theme
Author: MoSamir
Author URI: 
Template: astra
Version: 1.0.0
Text Domain: bvs
*/

/* Custom Product Grid Styles */
.bvs-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 991px) {
    .bvs-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .bvs-products-grid {
        display: flex;
        grid-template-columns: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        flex-wrap: nowrap;
        padding-bottom: 20px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 15px;
    }
    
    .bvs-products-grid::-webkit-scrollbar {
        height: 0px; 
        display: none;
    }
    
    .bvs-products-grid .bvs-product-card {
        flex: 0 0 88%;
        scroll-snap-align: start;
    }
}

.bvs-product-card {
    background-color: #0d151c;
    border-radius: 12px;
    border: 1px solid #1a232f;
    padding: 15px;
    display: flex;
    flex-direction: column;
    direction: rtl;
    font-family: inherit;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bvs-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.bvs-product-card * {
    box-sizing: border-box;
}

.bvs-product-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 180px;
    margin-bottom: 15px;
}

.bvs-product-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bvs-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.bvs-product-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bvs-product-title {
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 4px;
    line-height: 1.5;
}

.bvs-product-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.bvs-product-title a:hover {
    color: #3b82f6;
}

.bvs-product-subtitle {
    font-size: 12px;
    color: #b5c7e3;
    margin: 0 0 16px;
    text-transform: uppercase;
}

.bvs-product-price-wrap {
    background-color: #070c12;
    padding: 6px 14px;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-bottom: 16px;
    margin-top: auto;
}

.bvs-price-sale,
.bvs-price-sale .woocommerce-Price-amount {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.bvs-price-regular,
.bvs-price-regular .woocommerce-Price-amount {
    font-size: 12px;
    color: #7b8b9e;
    text-decoration: line-through;
}

.bvs-product-actions {
    display: flex;
    gap: 10px;
}

.bvs-product-btn {
    flex: 1;
    background-color: #1a222c;
    border: 1px solid transparent;
    color: #ffffff;
    padding: 10px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.bvs-product-btn:hover {
    background-color: #24303b;
    color: #ffffff;
}

.bvs-product-btn svg {
    width: 14px;
    height: 14px;
}