/* ============================================================
   BRAND DETAIL PAGE – PREMIUM CLEAN MODERN UI
   ============================================================ */


/* ------------------------------------------------------------
   BRAND HERO
------------------------------------------------------------ */
.brand-hero {
    background: #ffffff;
    border-radius: 14px;
    padding: 28px;
    border: 1px solid #e8edf2;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
    margin-bottom: 32px;
    transition: .2s ease;
}

.brand-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.08);
}

.brand-logo {
    width: 160px;
    height: 90px;
    object-fit: contain;
    border-radius: 10px;
    background: #f7f9fb;
    padding: 10px;
    border: 1px solid #e4e8ec;
}

/* TITLE */
.brand-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #0d2c48;
}

.brand-subtitle {
    font-size: 15px;
    color: #6a7683;
    margin-bottom: 12px;
}

.brand-description {
    font-size: 15px;
    line-height: 1.6;
    color: #364a57;
    margin-bottom: 18px;
}

/* STATS */
.brand-stats {
    display: flex;
    gap: 22px;
    font-size: 14px;
    color: #3b4a56;
}

.brand-stats span strong {
    font-size: 15px;
    color: #0d2c48;
}


/* ------------------------------------------------------------
   SECTION TITLE
------------------------------------------------------------ */
.section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 14px 0 16px;
    color: #133b5c;
    border-left: 4px solid #133b5c;
    padding-left: 10px;
}


/* ------------------------------------------------------------
   FEATURED PHONES
------------------------------------------------------------ */

.featured-card {
    display: block;
    background: #ffffff;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #eef2f4;
    transition: all .25s ease;
    text-align: center;
}

.featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.08);
}

/* Image wrapper */
.featured-image-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: #fafbfd;
    border-radius: 12px;
    border: 1px solid #eef2f4;
    margin-bottom: 10px;
    height: 200px;
}

/* Individual images */
.featured-image {
    width: 100%;
    max-width: 75px; /* size of each phone */
    height: auto;
    object-fit: contain;
    transition: opacity .3s ease;
    background: transparent;
}

/* Name */
.featured-name {
    font-size: 15px;
    font-weight: 600;
    color: #102834;
    margin-bottom: 0px;
}


/* ------------------------------------------------------------
   PHONE GRID (ALL PHONES)
------------------------------------------------------------ */

.phone-grid .phone-card-container {
    padding-bottom: 8px;
}

.phone-card {
    display: block;
    background: #ffffff;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    border: 1px solid #e4e8ec;
    transition: .2s ease;
    box-shadow: 0 3px 12px rgba(0,0,0,0.03);
    height: 100%;
}

.phone-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

/* PHONE IMAGE */
.phone-thumb {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #f7f9fb;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #e8ecf0;
    margin-bottom: 10px;
}

/* PHONE NAME */
.phone-name {
    font-size: 15px;
    color: #0d2c48;
    font-weight: 700;
    margin-bottom: 2px;
}

/* PRICE */
.phone-price {
    font-size: 13px;
    color: #6d7a86;
}


/* ------------------------------------------------------------
   LOAD MORE AREA
------------------------------------------------------------ */

.load-more-area {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 30px;
}

.load-more-btn {
    background: #133b5c;
    color: #fff;
    border: none;
    padding: 10px 26px;
    border-radius: 8px;
    font-weight: 600;
    transition: .2s ease;
}

.load-more-btn:hover {
    background: #0d2f4a;
}

/* Loader Animation */
.infinite-loader {
    width: 38px;
    height: 38px;
    margin: 0 auto 12px;
    border-radius: 50%;
    border: 4px solid #d9e2ea;
    border-top-color: #133b5c;
    animation: spin .8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ------------------------------------------------------------
   SIDEBAR
------------------------------------------------------------ */

.sidebar {
    position: sticky;
    top: 18px;
}

.sidebar-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid #e4e8ec;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.sidebar-title {
    font-size: 17px;
    font-weight: 700;
    color: #0d2c48;
    margin-bottom: 14px;
}

.sidebar-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-info li {
    margin-bottom: 8px;
    font-size: 14px;
    color: #41505b;
}

.compare-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    background: #133B5C;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

/* ------------------------------------------------------------
   MOBILE RESPONSIVE
------------------------------------------------------------ */

@media (max-width: 992px) {
    .brand-title { font-size: 26px; }
    .featured-image-wrap { height: 195px; }
    .phone-thumb { height: 180px; }
}

@media (max-width: 768px) {
    .brand-hero { padding: 22px; }
    .brand-title { font-size: 24px; }
    .phone-thumb { height: 160px; }
}

@media (max-width: 480px) {
    .brand-title { font-size: 22px; }
    .featured-image-wrap { height: 125px; }
    .phone-thumb { height: 140px; }
}

@media (max-width: 768px) {
    .featured-image-wrap {
        gap: 8px;
        padding: 6px;
    }
    .featured-image {
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .featured-image {
        max-width: 45px;
    }
}

/* Fix: Keep Load More button always centered */
#loadMoreArea {
    text-align: center;
    width: 100%;
}

#loadMoreBtn {
    margin: 0 auto;
    display: inline-block;
}

/* ======================================================
   SKELETON LOADING UI — Premium GSMArena Style
====================================================== */

.skeleton-card {
    background: #ffffff;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #e8edf2;
    box-shadow: 0 3px 12px rgba(0,0,0,0.03);
    animation: fadeIn .3s ease;
}

.skeleton-img {
    width: 100%;
    height: 200px;
    background: linear-gradient(-90deg, #f1f3f5 0%, #eaedf0 50%, #f1f3f5 100%);
    background-size: 400% 400%;
    border-radius: 10px;
    animation: shimmer 1.3s ease infinite;
}

.skeleton-line {
    height: 12px;
    background: linear-gradient(-90deg, #f1f3f5 0%, #eaedf0 50%, #f1f3f5 100%);
    background-size: 400% 400%;
    border-radius: 8px;
    margin-top: 12px;
    animation: shimmer 1.3s ease infinite;
}

.skeleton-line.short {
    width: 60%;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
