/* =================================================
   SHOP BY BRANDS PAGE
   ================================================= */

.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 0 0 30px 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.brands-title {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 2.2rem;
    color: #333;
    margin: 0 0 20px 0;
}

.brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0f0f0;
    aspect-ratio: 1 / 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    height: 100%;
    /* Ensure card takes full height of grid item */
}

.brand-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: #c40000;
}

.brand-card__image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-card__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand-card:hover .brand-card__image img {
    transform: scale(1.05);
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 0px 50px;
    }
}

@media (max-width: 768px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0px 50px;
    }

    .brands-title {
        font-size: 1.8rem;
    }

    .brand-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0px 50px;
    }

    .brands-title {
        font-size: 1.5rem;
    }
}

/* =================================================
   FAQ SECTION
   ================================================= */
.brands-faq-section {
    padding: 30px 15px;
    background-color: #f9f9f9;
}

.brands-faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.brands-faq-item {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.brands-faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.brands-faq-question {
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    list-style: none;
    /* Hide default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brands-faq-question::-webkit-details-marker {
    display: none;
}

.brands-faq-question::after {
    content: "+";
    font-size: 1.5rem;
    color: #333;
    transition: transform 0.3s ease;
}

.brands-faq-item[open] .brands-faq-question::after {
    transform: rotate(45deg);
}

.brands-faq-answer {
    padding: 0 20px 20px;
    color: #555;
    line-height: 1.6;
}

/* =================================================
   CTA SECTION
   ================================================= */
.brands-cta-section {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
}

.brands-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.brands-cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.brands-cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

.brands-cta-desc {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.brands-cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #c40000;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.brands-cta-button:hover {
    background-color: #a00000;
    color: #ffffff;
}

@media (max-width: 768px) {
    .brands-cta-title {
        font-size: 1.8rem;
    }

    .brands-cta-section {
        padding: 60px 20px;
    }
}