/**
 * Our Brands Page Styles - MOBILE FIRST
 * 
 * @package MidwayWholesale
 * @version 1.0
 */

/* ================================
   PAGE CONTAINER
   ================================ */

.our-brands-page {
    min-height: 60vh;
    padding: 30px 15px;
    background-color: #f9f9f9;
}

/* ================================
   PAGE HEADER
   ================================ */

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 28px;
    color: #19427f;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-header p {
    font-size: 16px;
    color: #666;
}

/* ================================
   BRANDS CONTAINER
   ================================ */

.brands-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ================================
   BRANDS GRID - MOBILE FIRST
   ================================ */

.brands-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    gap: 20px;
    padding: 0;
}

/* ================================
   BRAND CARD
   ================================ */

.brand-card {
    background: white;
    border-radius: 12px;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-height: 180px;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ================================
   BRAND IMAGE
   ================================ */

.brand-image-wrapper {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.brand-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brand-card:hover .brand-image-wrapper img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ================================
   BRAND NAME
   ================================ */

.brand-card h3 {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin: 0;
}

/* ================================
   TABLET (576px and up)
   3 columns
   ================================ */

@media (min-width: 576px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .brand-card {
        padding: 30px 20px;
        min-height: 200px;
    }
    
    .brand-image-wrapper {
        height: 120px;
    }
    
    .brand-card h3 {
        font-size: 17px;
    }
}

/* ================================
   TABLET LANDSCAPE (768px and up)
   4 columns
   ================================ */

@media (min-width: 768px) {
    .our-brands-page {
        padding: 50px 30px;
    }
    
    .page-header {
        margin-bottom: 50px;
    }
    
    .page-header h1 {
        font-size: 36px;
    }
    
    .page-header p {
        font-size: 18px;
    }
    
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
    
    .brand-card {
        padding: 35px 25px;
        min-height: 220px;
    }
    
    .brand-image-wrapper {
        height: 140px;
    }
    
    .brand-card h3 {
        font-size: 18px;
    }
}

/* ================================
   DESKTOP (992px and up)
   4 columns (maintained)
   ================================ */

@media (min-width: 992px) {
    .our-brands-page {
        padding: 60px 50px;
    }
    
    .page-header h1 {
        font-size: 42px;
    }
    
    .brands-grid {
        gap: 35px;
    }
    
    .brand-card {
        padding: 40px 30px;
        min-height: 240px;
    }
    
    .brand-image-wrapper {
        height: 160px;
    }
}

/* ================================
   LARGE DESKTOP (1200px and up)
   ================================ */

@media (min-width: 1200px) {
    .brand-image-wrapper {
        height: 180px;
    }
}