/* ============================================================
   Brands Shortcodes – Stylesheet
   File: assets/mg-brands.css
   ============================================================ */

/* WRAPPER */
.mg-brands-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: inherit;
}

/* SEARCH BAR */
.mg-search {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.mg-search-input {
    width: 60%;
    padding: 14px 18px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    font-size: 15px;
}

.mg-search-input:focus {
    border-color: #000;
    outline: none;
}

/* TABS */
.mg-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 30px;
}

.mg-tab {
    padding: 14px 22px;
    cursor: pointer;
    font-weight: 600;
    color: #555;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.mg-tab:hover {
    color: #000;
}

.mg-tab.active {
    color: #000;
    border-bottom-color: #000;
}

/* ALPHABET BAR */
.mg-alpha {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.mg-alpha a {
    padding: 6px 12px;
    background: #f7f7f7;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
}

.mg-alpha a:hover {
    background: #000;
    color: #fff;
}

/* BRAND LIST SECTION HEADINGS */
.mg-brand-heading {
    font-size: 22px;
    font-weight: 700;
    margin: 40px 0 15px;
    color: #000;
}

/* BRAND GRID */
.mg-brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.mg-brand-item {
    padding: 12px 8px;
    border-bottom: 1px solid #eaeaea;
}

.mg-brand-item a {
    text-decoration: none;
    font-weight: 600;
    color: #333;
}

.mg-brand-item a:hover {
    color: #000;
}

/* PRODUCT GRID */
.mg-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 25px;
}

.mg-product {
    padding: 14px;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    text-align: center;
    background: #fff;
    transition: box-shadow 0.2s;
}

.mg-product:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.mg-product img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.mg-product h4 {
    margin: 8px 0 4px;
    font-size: 16px;
    font-weight: 600;
}

.mg-product h4 a {
    text-decoration: none;
    color: #000;
}

.mg-product .price {
    margin-top: 4px;
    font-size: 14px;
    color: #666;
}

/* BRAND INFO */
.mg-brand-info h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.mg-brand-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

/* RESPONSIVE ---------------------------------------- */
@media (max-width: 900px) {
    .mg-brands-grid,
    .mg-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mg-search-input {
        width: 80%;
    }
}

@media (max-width: 500px) {
    .mg-brands-grid,
    .mg-products-grid {
        grid-template-columns: 1fr;
    }

    .mg-search-input {
        width: 100%;
    }
}
