body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f7f7f7;
}

.header {
    background: #f0e8e1;
    padding: 12px 0;
    text-align: center;
}

.header img {
    max-width: 100px;
}

.intro,
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 4rem auto 2.5rem auto;
    padding: 12px 16px;
}

.footer {
    margin: 1.5rem auto 2.5rem auto;
}

.intro-text,
.footer-text {
    width: 50%;
}

.intro img,
.footer img {
    width: 44%;
    border-radius: 8px;
}

.brand-products {
    max-width: 1100px;
    margin: 18px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.product-card {
    background: #fff;
    padding: 10px;
    text-align: center;
    width: 160px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: scale(1.025);
    box-shadow: 0 3px 8px rgba(0,0,0,.13);
}

.product-card img {
    width: 100%;
    height: auto;
    margin-bottom: 7px;
}

.product-price {
    color: #333;
    margin: 4px 0;
}

.product-order {
    margin-top: 7px;
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid orange;
    color: orange;
    border-radius: 16px;
    font-size: 0.9em;
}

.brand-coverImage-container {
    background-image: url("https://cdn.erply.com/files/542157/Topic1.png");
    height: 120px;
}

.brand-coverImage {
    margin: 0 auto;
    max-width: 1100px;
}

div.brand-coverImage-hr {
    padding-top: 2.5rem;
    margin-left: 1rem;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    border-top: 0;
    border-left: 0;
    border-right: 0;
}

.brand-description {
    font-size: 1.1rem;
}

/* Mobile: text above image (text first) */
@media (max-width: 768px) {
    .intro,
    .footer {
        flex-direction: column;   
        align-items: stretch;
        gap: 1.5rem;
        margin: 1.2rem auto;
        padding: 0.5rem 0.75rem;
    }
    .intro-text,
    .footer-text {
        width: 100%;
    }
    .intro img,
    .footer img {
        width: 100%;
        max-width: 400px;
        border-radius: 8px;
    }
    .intro .intro-text { order: 1; }
    .intro > img { order: 2; }
    .footer .footer-text { order: 1; }
    .footer > img { order: 2; }
}

/* BRANDS PAGE CSS */

.brand-list-page.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.2rem 0.5rem;
}

.brand-logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 0.7rem;
    margin: 0 auto;
}

.brand-logo {
    flex: 1 1 clamp(120px, 16vw, 210px);
    max-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(0,0,0,.05);
    border-radius: 12px;
    padding: 12px;
    min-height: 80px;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
    transition: transform .12s, box-shadow .12s, border-color .12s, background .12s;
}

.brand-logo img {
    max-width: 100%;
    max-height: 50px;
    object-fit: contain;
    opacity: .92;
    transition: filter .15s, opacity .15s;
}

.brand-logo:hover,
.brand-logo:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,.07);
    border-color: rgba(0,0,0,.10);
    background: #f6f6f6;
    outline: none;
}

.brand-logo:hover img,
.brand-logo:focus-visible img {
    filter: none;
    opacity: 1;
}

.brand-coverImage img {
    width: 120px;
    height: 58px;
    object-fit: contain;
    display: block;
    image-rendering: crisp-edges;
}

@media (max-width: 480px) {
    .brand-logo { flex-basis: 48%; }
}

@media (prefers-reduced-motion: reduce) {
    .brand-logo, .brand-logo img { transition: none; }
}
