/* =========================================================
   BRAND DETAILS PAGE
   Parent class : .brand-detail-page
   Rule         : sirf px units (no rem / em)
   Saare selectors parent class ke andar hain taaki
   dusre pages ki CSS se conflict na ho.
========================================================= */

.brand-detail-page {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 35px 30px 70px;
    background: #f8f6f0;
    color: #222222;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 22px;
    box-sizing: border-box;
}

.brand-detail-page *,
.brand-detail-page *::before,
.brand-detail-page *::after {
    box-sizing: border-box;
}

.brand-detail-page img {
    max-width: 100%;
    display: block;
}

.brand-detail-page a {
    text-decoration: none;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.brand-detail-page .bd-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
    color: #888888;
    font-size: 12px;
    line-height: 18px;
}

.brand-detail-page .bd-breadcrumb a {
    color: #777777;
    transition: color 0.2s ease;
}

.brand-detail-page .bd-breadcrumb a:hover {
    color: #111111;
}


/* =========================================================
   BRAND HERO
========================================================= */

.brand-detail-page .bd-hero {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 35px 40px;
    margin: 0 0 45px;
    background: #ffffff;
    border-radius: 4px;
}

.brand-detail-page .bd-logo-box {
    flex: 0 0 200px;
    width: 200px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #f7f6f2;
    border-radius: 4px;
}

.brand-detail-page .bd-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-detail-page .bd-hero-content {
    flex: 1 1 auto;
    min-width: 0;
}

.brand-detail-page .bd-kicker {
    display: block;
    margin: 0 0 8px;
    color: #b65317;
    font-size: 11px;
    line-height: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-detail-page .bd-title {
    margin: 0 0 12px;
    color: #222222;
    font-family: Georgia, serif;
    font-size: 38px;
    line-height: 46px;
    font-weight: 500;
}

.brand-detail-page .bd-description {
    max-width: 780px;
    margin: 0 0 16px;
    color: #777777;
    font-size: 14px;
    line-height: 24px;
}

.brand-detail-page .bd-count {
    display: inline-block;
    padding: 6px 14px;
    background: #f3e9d8;
    color: #9b4c17;
    border-radius: 20px;
    font-size: 12px;
    line-height: 18px;
    font-weight: 700;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.brand-detail-page .bd-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin: 0 0 20px;
}

.brand-detail-page .bd-section-head small {
    display: block;
    margin: 0 0 6px;
    color: #b65317;
    font-size: 10px;
    line-height: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-detail-page .bd-section-head h2 {
    margin: 0;
    color: #222222;
    font-family: Georgia, serif;
    font-size: 28px;
    line-height: 36px;
    font-weight: 500;
}


/* =========================================================
   PRODUCTS GRID
========================================================= */

.brand-detail-page .bd-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: auto;
    margin-top: 55px;
}

.brand-detail-page .bd-card {
    position: relative;
    display: block;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    color: #333333;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-detail-page .bd-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.brand-detail-page .bd-image-box {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #f6f5f1;
}

.brand-detail-page .bd-image {
    width: 100%;
    height: 100%;
    padding: 15px;
    object-fit: contain;
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.brand-detail-page .bd-card:hover .bd-image {
    transform: scale(1.12);
}

.brand-detail-page .bd-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaaaaa;
    font-size: 12px;
}

.brand-detail-page .bd-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    padding: 4px 8px;
    background: #c55b1b;
    color: #ffffff;
    border-radius: 3px;
    font-size: 10px;
    line-height: 14px;
    font-weight: 700;
}

.brand-detail-page .bd-info {
    padding: 14px;
}

.brand-detail-page .bd-brand {
    margin: 0 0 4px;
    color: #999999;
    font-size: 10px;
    line-height: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brand-detail-page .bd-name {
    height: 40px;
    margin: 0 0 10px;
    overflow: hidden;
    color: #333333;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
}

.brand-detail-page .bd-price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.brand-detail-page .bd-price {
    color: #b65317;
    font-size: 17px;
    line-height: 24px;
    font-weight: 700;
}

.brand-detail-page .bd-old-price {
    color: #999999;
    font-size: 13px;
    line-height: 18px;
    text-decoration: line-through;
}

.brand-detail-page .bd-btn {
    display: block;
    height: 40px;
    border-radius: 20px;
    background: #c55b1b;
    color: #ffffff;
    font-size: 12px;
    line-height: 40px;
    font-weight: 700;
    text-align: center;
    transition: background 0.2s ease;
}

.brand-detail-page .bd-card:hover .bd-btn {
    background: #a9470d;
}


/* =========================================================
   EMPTY / NOT FOUND
========================================================= */

.brand-detail-page .bd-empty {
    padding: 60px 30px;
    text-align: center;
    background: #ffffff;
    border-radius: 6px;
}

.brand-detail-page .bd-empty h1,
.brand-detail-page .bd-empty h3 {
    margin: 0 0 10px;
    color: #222222;
    font-family: Georgia, serif;
    font-size: 30px;
    line-height: 38px;
    font-weight: 500;
}

.brand-detail-page .bd-empty p {
    margin: 0;
    color: #777777;
    font-size: 14px;
    line-height: 24px;
}

.brand-detail-page .bd-empty a {
    display: inline-block;
    margin-top: 22px;
    padding: 12px 26px;
    background: #111111;
    color: #ffffff;
    border-radius: 6px;
    font-size: 13px;
    line-height: 20px;
}

.brand-detail-page .bd-empty a:hover {
    background: #c55b1b;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .brand-detail-page .bd-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 800px) {

    .brand-detail-page .bd-hero {
        flex-direction: column;
        align-items: center;
        gap: 22px;
        padding: 28px 22px;
        text-align: center;
    }

    .brand-detail-page .bd-logo-box {
        flex: 0 0 auto;
    }

    .brand-detail-page .bd-description {
        margin-left: auto;
        margin-right: auto;
    }

}

@media (max-width: 700px) {

    .brand-detail-page {
        padding: 20px 12px 50px;
    }

    .brand-detail-page .bd-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .brand-detail-page .bd-title {
        font-size: 30px;
        line-height: 38px;
    }

    .brand-detail-page .bd-section-head h2 {
        font-size: 24px;
        line-height: 32px;
    }

    .brand-detail-page .bd-image-box {
        height: 190px;
    }

    .brand-detail-page .bd-info {
        padding: 10px;
    }

    .brand-detail-page .bd-name {
        font-size: 13px;
        line-height: 18px;
        height: 36px;
    }

    .brand-detail-page .bd-price {
        font-size: 15px;
    }

}

@media (max-width: 450px) {

    .brand-detail-page .bd-logo-box {
        width: 160px;
        height: 110px;
    }

    .brand-detail-page .bd-image-box {
        height: 160px;
    }

    .brand-detail-page .bd-btn {
        height: 36px;
        line-height: 36px;
        font-size: 11px;
    }

}

/* =========================================================
   PER PAGE DROPDOWN + PAGINATION (CREATIVE)
========================================================= */

/* ---------- SHOW DROPDOWN ---------- */

.brand-detail-page .bd-per-page {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 6px 6px 6px 18px;
    background: #ffffff;
    border: 1px solid #eadfce;
    border-radius: 40px;
    box-shadow: 0 6px 18px rgba(120, 80, 30, 0.12);
}

.brand-detail-page .bd-per-page label {
    margin: 0;
    color: #9b4c17;
    font-size: 11px;
    line-height: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.brand-detail-page .bd-per-page select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: auto;
    height: 40px;
    margin: 0;
    padding: 0 40px 0 20px;
    border: 0;
    border-radius: 30px;
    background-color: #c55b1b;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    box-shadow: 0 6px 14px rgba(197, 91, 27, 0.35);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.brand-detail-page .bd-per-page select:hover {
    background-color: #a9470d;
}

.brand-detail-page .bd-per-page select:focus {
    box-shadow: 0 0 0 4px rgba(197, 91, 27, 0.28);
}

.brand-detail-page .bd-per-page select option {
    background: #ffffff;
    color: #222222;
    font-weight: 600;
}


/* ---------- PAGINATION BAR ---------- */

.brand-detail-page .bd-pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin: 40px 0 0;
    padding: 20px 26px;
    background: linear-gradient(90deg, #fff4e8 0%, #ffffff 65%);
    border: 1px solid #eadfce;
    border-left: 6px solid #c55b1b;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(120, 80, 30, 0.12);
}

.brand-detail-page .bd-page-info {
    position: relative;
    display: block;
    padding-left: 20px;
    color: #444444;
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
}

.brand-detail-page .bd-page-info::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c55b1b;
    box-shadow: 0 0 0 5px rgba(197, 91, 27, 0.18);
}

.brand-detail-page .bd-pagination {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.brand-detail-page .bd-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #eadfce;
    border-radius: 22px;
    background: #ffffff;
    color: #444444;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease,
                background 0.2s ease, color 0.2s ease,
                border-color 0.2s ease;
}

.brand-detail-page .bd-pagination a:hover {
    transform: translateY(-3px);
    background: #fff3e8;
    border-color: #c55b1b;
    color: #c55b1b;
    box-shadow: 0 10px 18px rgba(197, 91, 27, 0.25);
}

.brand-detail-page .bd-pagination a.active {
    background: linear-gradient(135deg, #e0742a 0%, #b65317 100%);
    border-color: #b65317;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(197, 91, 27, 0.45);
    transform: translateY(-2px);
}


/* ---------- RESPONSIVE ---------- */

@media (max-width: 700px) {

    .brand-detail-page .bd-section-head {
        align-items: center;
        gap: 12px;
    }

    .brand-detail-page .bd-per-page {
        padding: 4px 4px 4px 12px;
        gap: 6px;
    }

    .brand-detail-page .bd-per-page select {
        height: 34px;
        padding: 0 32px 0 14px;
        font-size: 13px;
    }

    .brand-detail-page .bd-pagination-bar {
        justify-content: center;
        text-align: center;
        padding: 16px 12px;
    }

    .brand-detail-page .bd-page-info {
        padding-left: 0;
    }

    .brand-detail-page .bd-page-info::before {
        display: none;
    }

    .brand-detail-page .bd-pagination a {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 13px;
    }

}
