/**
 * One Elementor - One Product Brands Widget
 * Grid layout for product brand logos
 */

/* ========================================
   Wrapper
======================================== */
.oe-product-brands-wrapper {
    width: 100%;
}

/* ========================================
   Grid
======================================== */
.oe-product-brands-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 1px;
    row-gap: 1px;
    width: 100%;
}

/* ========================================
   Brand Item
======================================== */
.oe-product-brand-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    min-height: 100px;
    padding: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.oe-product-brand-item:hover {
    background-color: #F8F9FA;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Brand Link
======================================== */
.oe-product-brand-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* ========================================
   Brand Image
======================================== */
.oe-product-brand-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 0;
}

.oe-product-brand-image img {
    max-width: 80%;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    display: block;
}

.oe-product-brand-item:hover .oe-product-brand-image img {
    transform: scale(1.05);
}

/* ========================================
   Brand Name
======================================== */
.oe-product-brand-name {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    text-align: center;
    line-height: 1.4;
}

.oe-product-brand-name-only {
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    text-align: center;
    line-height: 1.4;
}

/* ========================================
   Responsive Design
======================================== */

/* Tablet - 6 columns */
@media (max-width: 1024px) {
    .oe-product-brands-grid.elementor-grid-12 {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .oe-product-brands-grid.elementor-grid-6 {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .oe-product-brand-item {
        min-height: 90px;
        padding: 15px;
    }
}

/* Mobile - 3 columns */
@media (max-width: 768px) {
    .oe-product-brands-grid.elementor-grid-12,
    .oe-product-brands-grid.elementor-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .oe-product-brands-grid.elementor-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .oe-product-brands-grid.elementor-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .oe-product-brand-item {
        min-height: 80px;
        padding: 12px;
    }
    
    .oe-product-brand-image img {
        max-width: 70%;
    }
}

/* Small Mobile - 2 columns */
@media (max-width: 480px) {
    .oe-product-brands-grid.elementor-grid-12,
    .oe-product-brands-grid.elementor-grid-6,
    .oe-product-brands-grid.elementor-grid-4,
    .oe-product-brands-grid.elementor-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .oe-product-brand-item {
        min-height: 70px;
        padding: 10px;
    }
    
    .oe-product-brand-image img {
        max-width: 60%;
    }
    
    .oe-product-brand-name,
    .oe-product-brand-name-only {
        font-size: 12px;
    }
}

/* ========================================
   Print Styles
======================================== */
@media print {
    .oe-product-brands-wrapper {
        page-break-inside: avoid;
    }
    
    .oe-product-brand-item {
        page-break-inside: avoid;
    }
}
