:root {
    --bg: #f7f8fc;
    --surface: #fff;
    --surface2: #f1f4f9;
    --text: #101828;
    --muted: #667085;
    --line: #e4e7ec;
    --primary: #4f46e5;
    --accent: #eef2ff;
    --shadow: 0 12px 35px rgba(16, 24, 40, 0.08);
    --max: 1180px;
    --radius: 20px;
}
[data-theme='dark'] {
    --bg: #0b1020;
    --surface: #111827;
    --surface2: #182235;
    --text: #f8fafc;
    --muted: #98a2b3;
    --line: #273449;
    --accent: #1d2440;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        Segoe UI,
        sans-serif;
    line-height: 1.6;
    padding-top: 72px;
}
a {
    color: inherit;
    text-decoration: none;
}
img {
    max-width: 100%;
    display: block;
}
button,
input,
select {
    font: inherit;
}
.container {
    width: min(var(--max), calc(100% - 32px));
    margin: auto;
}
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    width: 100%;
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.nav {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 28px;
}
/* logo img start */
/* =========================================================
   SITE LOGOS
   ========================================================= */

.logo {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 850;
    font-size: 22px;
    letter-spacing: -0.04em;
}

.site-logo {
    display: block;
    width: 220px;
    height: 120px;
    flex-shrink: 0;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

/* Header logo */
.site-header .logo {
    background-image: url('../img/site/MeloyTechViewsB.png');
}
/* Header logo - Dark Mode */
html[data-theme='dark'] .site-header .logo {
    background-image: url('../img/site/MeloyTechViewsW.png');
}
/* Footer logo */
.site-footer .logo {
    background-image: url('../img/site/MeloyTechViewsW.png');
}
/* ========================================
   RESPONSIVE LOGO
======================================== */

@media (max-width: 768px) {
    .site-logo {
        width: 180px;
        height: 89px;
    }
}

@media (max-width: 480px) {
    .site-logo {
        width: 160px;
        height: 87px;
    }
}

.logo > span:last-child {
    color: var(--primary);
}
.logo-mark {
    width: 35px;
    height: 35px;
    border-radius: 11px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 15px;
}
.nav-links {
    display: flex;
    gap: 24px;
    margin-left: auto;
}
.nav-links a {
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
}
.nav-links a:hover {
    color: var(--text);
}
.header-actions {
    display: flex;
    gap: 8px;
}
.icon-btn,
.menu-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}
.menu-btn {
    display: none;
}
.hero {
    padding: 82px 0 58px;
    background:
        radial-gradient(circle at 85% 10%, #7c3aed22, transparent 34%),
        radial-gradient(circle at 10% 0, #2563eb20, transparent 32%);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 50px;
    align-items: center;
}
.eyebrow {
    display: inline-flex;
    background: var(--accent);
    color: var(--primary);
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
.hero h1,
.page-hero h1 {
    line-height: 1.03;
    letter-spacing: -0.055em;
}
.hero h1 {
    font-size: clamp(42px, 6vw, 70px);
    margin: 18px 0;
}
.hero p {
    font-size: 18px;
    color: var(--muted);
    max-width: 680px;
}
.search-box {
    margin-top: 28px;
    display: flex;
    max-width: 680px;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 7px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}
.search-box input {
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    flex: 1;
    padding: 12px 14px;
}
.btn {
    display: inline-block;
    border: 0;
    background: var(--primary);
    color: #fff;
    padding: 11px 17px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
}
.hero-device {
    min-height: 390px;
    display: grid;
    place-items: center;
    position: relative;
}
.device {
    width: 280px;
    height: 410px;
    border-radius: 38px;
    background: linear-gradient(145deg, #101828, #4f46e5);
    padding: 15px;
    transform: rotate(7deg);
    box-shadow: 0 30px 70px #1f185050;
}
.screen {
    height: 100%;
    border-radius: 28px;
    background: linear-gradient(150deg, #111827, #4f46e5 55%, #ec4899);
    padding: 25px;
    display: flex;
    align-items: end;
    color: #fff;
}
.screen b {
    font-size: 26px;
    line-height: 1.05;
    margin-bottom: 100px;
}
.float {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 11px 14px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 800;
}
.float.one {
    top: 15%;
    right: 0;
}
.float.two {
    bottom: 12%;
    left: 0;
}
.section {
    padding: 64px 0;
}
.section.alt {
    background: var(--surface);
}
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 24px;
}
.section-head h2 {
    font-size: 31px;
    letter-spacing: -0.04em;
    margin: 0;
}
.section-head p {
    color: var(--muted);
    margin: 5px 0 0;
}
.link {
    color: var(--primary);
    font-weight: 800;
}
.grid {
    display: grid;
    gap: 18px;
}
.phone-grid {
    grid-template-columns: repeat(4, 1fr);
}
.article-grid {
    grid-template-columns: repeat(3, 1fr);
}
.brand-grid {
    grid-template-columns: repeat(6, 1fr);
}
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: 0.2s;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.phone-img {
    height: 230px;
    /* background: var(--surface2); */
    border-bottom: 1px solid #00000012;
    padding: 23px;
    display: grid;
    place-items: center;
}
.phone-img img {
    height: 205px;
    width: auto;
}
.card-body {
    padding: 18px;
}
.brand-label,
.meta {
    font-size: 12px;
    color: var(--muted);
    font-weight: 750;
}
.phone-card h3,
.article-card h3 {
    margin: 3px 0;
    font-size: 18px;
    line-height: 1.3;
}
.muted {
    color: var(--muted);
}
.price {
    font-weight: 850;
    margin-top: 9px;
}
.badge {
    display: inline-flex;
    background: var(--surface2);
    color: var(--muted);
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 850;
}
.article-card img {
    aspect-ratio: 16/9;
    object-fit: cover;
}
.brand-card {
    padding: 22px;
    text-align: center;
}
.brand-logo {
    width: 50px;
    height: 50px;
    margin: auto;
    border-radius: 15px;
    background: var(--accent);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 19px;
}
.brand-card strong {
    display: block;
    margin-top: 10px;
}
.compare-banner {
    background: linear-gradient(120deg, #111827, #312e81);
    color: #fff;
    border-radius: 28px;
    padding: 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.compare-banner p {
    color: #cbd5e1;
}
.compare-banner .btn {
    background: #fff;
    color: #111827;
}
.page-hero {
    padding: 55px 0 35px;
}
.page-hero h1 {
    font-size: clamp(36px, 5vw, 54px);
    margin: 8px 0;
}
.page-hero p {
    color: var(--muted);
    max-width: 720px;
}
.toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}
.control {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--line);
    padding: 11px 13px;
    border-radius: 12px;
    outline: 0;
}
.results-count {
    font-size: 13px;
    color: var(--muted);
    margin: 12px 0 18px;
}
.phone-detail {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 42px;
    padding: 30px 0 70px;
}
.phone-visual {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 30px;
    display: grid;
    place-items: center;
    min-height: 520px;
}
.phone-visual img {
    max-height: 470px;
    width: auto;
}
.breadcrumbs {
    padding-top: 25px;
    font-size: 12px;
    color: var(--muted);
}
.breadcrumbs a {
    color: var(--primary);
}
.detail h1 {
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1;
    letter-spacing: -0.055em;
    margin: 8px 0 15px;
}
.detail-kicker {
    font-size: 13px;
    color: var(--primary);
    font-weight: 800;
}
.highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}
.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 25px 0;
}
.spec {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 14px;
}
.spec small {
    display: block;
    text-transform: uppercase;
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
}
.spec strong {
    font-size: 14px;
}
/* =========================================================
   ARTICLE LAYOUT
   ========================================================= */

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) 300px;
    gap: 40px;
    align-items: start;
    padding: 35px 0 80px;
}

/* =========================================================
   MAIN ARTICLE
   ========================================================= */

.article-main {
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 25px;
    padding: clamp(24px, 5vw, 55px);
}

.article-main h1 {
    font-size: clamp(35px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.05em;
    margin: 10px 0 15px;
}

.article-main .lead {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 10px;
}

.article-main > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 18px;
    margin: 20px 0;
}

@media (max-width: 600px) {
    .article-main > img {
        margin: 12px 0;
        border-radius: 12px;
    }
}

.article-content {
    max-width: 100%;
}

.article-content p {
    margin: 0 0 20px;
}

.article-content h2 {
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin: 35px 0 15px;
}

/* =========================================================
   RELATED ARTICLES
   INDEPENDENT SIDEBAR
   ========================================================= */

.related-articles {
    align-self: start;
    height: fit-content;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 20px;
    position: sticky;
    top: 92px;
}

/* Header */

.related-header {
    margin-bottom: 18px;
}

.related-label {
    display: inline-flex;
    color: var(--primary);
    background: var(--accent);
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.related-header h2 {
    margin: 10px 0 4px;
    font-size: 23px;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.related-header p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

/* Related article list */

.related-list {
    display: grid;
    gap: 14px;
}

/* Related article card */

.related-card {
    display: block;
    background: var(--surface2);
    border: 1px solid var(--line);
    border-radius: 15px;
    overflow: hidden;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.related-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: color-mix(in srgb, var(--primary) 35%, var(--line));
}

/* Related image */

.related-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--surface2);
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.03);
}

/* Related body */

.related-body {
    padding: 13px;
}

.related-body .badge {
    font-size: 9px;
    padding: 4px 7px;
}

.related-body h3 {
    margin: 8px 0 7px;
    font-size: 14px;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.related-meta {
    font-size: 10px;
    color: var(--muted);
    font-weight: 700;
}

/* View all articles */

.related-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.related-more span {
    font-size: 17px;
    transition: transform 0.2s ease;
}

.related-more:hover span {
    transform: translateX(4px);
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {
    .article-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .related-articles {
        position: static;
        width: 100%;
    }

    .related-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {
    .article-layout {
        padding: 25px 0 55px;
        gap: 22px;
    }

    .article-main {
        border-radius: 20px;
        padding: 24px;
    }

    .article-main h1 {
        font-size: clamp(32px, 9vw, 43px);
    }

    .article-main .lead {
        font-size: 16px;
    }

    .article-main h2 {
        font-size: 24px;
        margin-top: 30px;
    }

    .related-articles {
        padding: 18px;
        border-radius: 20px;
    }

    .related-list {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 460px) {
    .article-main {
        padding: 20px;
    }

    .article-main > img {
        border-radius: 14px;
        margin: 22px 0;
    }

    .related-articles {
        padding: 15px;
    }
}
/* new above */
.toc a {
    display: block;
    color: var(--muted);
    font-size: 13px;
    padding: 5px 0;
}
.compare-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.select-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
}
.compare-table {
    overflow: auto;
    margin-top: 25px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}
table {
    border-collapse: collapse;
    width: 100%;
    min-width: 700px;
}
th,
td {
    padding: 15px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}
th {
    background: var(--surface2);
    font-size: 13px;
}
.empty {
    padding: 50px;
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: 20px;
    color: var(--muted);
}
.site-footer {
    background: #0b1020;
    color: #d0d5dd;
    padding: 55px 0 25px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 35px;
}
.footer-logo {
    color: #fff;
}
.footer-grid p {
    color: #98a2b3;
}
.footer-title,
.footer-grid b {
    color: #fff;
}
.footer-links {
    display: grid;
    gap: 7px;
    margin-top: 10px;
}
.footer-links a {
    font-size: 13px;
    color: #98a2b3;
}
.footer-links a:hover {
    color: #fff;
}
.footer-bottom {
    border-top: 1px solid #273449;
    margin-top: 35px;
    padding-top: 18px;
    font-size: 12px;
    color: #98a2b3;
}
@media (max-width: 1000px) {
    .phone-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .brand-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-device {
        display: none;
    }
    .article-layout {
        grid-template-columns: 1fr;
    }
    .toc {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}
@media (max-width: 760px) {
    .container {
        width: calc(100% - 22px);
    }
    .nav {
        height: 64px;
        gap: 90px;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--surface);
        padding: 12px;
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--line);
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links a {
        padding: 10px;
    }
    .menu-btn {
        display: block;
    }
    .hero {
        padding: 55px 0 40px;
    }
    .hero h1 {
        font-size: 43px;
    }
    .hero p {
        font-size: 16px;
    }
    .search-box {
        flex-direction: column;
    }
    .search-box .btn {
        width: 100%;
    }
    .phone-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .article-grid {
        grid-template-columns: 1fr;
    }
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .section {
        padding: 45px 0;
    }
    .section-head {
        align-items: start;
        flex-direction: column;
    }
    .compare-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .phone-detail {
        grid-template-columns: 1fr;
    }
    .phone-visual {
        min-height: 400px;
    }
    .phone-visual img {
        max-height: 350px;
    }
    .spec-grid,
    .compare-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 460px) {
    .phone-img {
        height: 180px;
        padding: 10px;
    }
    .phone-img img {
        height: 160px;
    }
    .card-body {
        padding: 13px;
    }
    .phone-card h3 {
        font-size: 15px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================
   LISTING PAGINATION
   ========================================= */

.listing-section {
    scroll-margin-top: 88px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 34px auto 0;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 7px;
}

.page-link {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    transition:
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.page-link:hover:not(.is-disabled) {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.page-link.is-current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.page-link.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

@media (max-width: 520px) {
    .pagination {
        gap: 6px;
    }

    .page-link {
        min-width: 36px;
        height: 38px;
        padding: 0 9px;
        border-radius: 10px;
    }

    .page-direction {
        font-size: 0;
    }

    .page-direction span {
        display: none;
    }
}

/* =========================================================
   PHONE BRANDS PAGE REDESIGN
   ========================================================= */

.brands-page {
    overflow: hidden;
}

/* HERO */

.brands-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 82% 45%, rgba(91, 104, 225, 0.13), transparent 36%),
        linear-gradient(135deg, var(--surface2), var(--surface));
    border-bottom: 1px solid var(--line);
}

.brands-hero-inner {
    min-height: 440px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 35px;
    padding-top: 55px;
    padding-bottom: 55px;
}

.brands-hero-copy {
    max-width: 620px;
    position: relative;
    z-index: 2;
}

.brands-hero-copy .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 850;
    color: var(--primary);
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent);
}

.brands-hero h1 {
    font-size: clamp(38px, 5.5vw, 65px);
    line-height: 1.03;
    letter-spacing: -0.065em;
    margin: 22px 0 20px;
    font-weight: 900;
}

.brands-hero h1 span {
    color: var(--primary);
}

.brands-hero-copy > p {
    max-width: 520px;
    font-size: 16px;
    line-height: 1.75;
    color: var(--muted);
    margin: 0 0 24px;
}

.brands-hero-link {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    font-size: 13px;
    font-weight: 850;
    color: var(--text);
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
    transition: color 0.2s ease;
}

.brands-hero-link:hover {
    color: var(--primary);
}

.brands-hero-link span {
    color: var(--primary);
    font-size: 17px;
}

/* HERO PHONE ILLUSTRATION */

.brands-hero-visual {
    position: relative;
    min-height: 330px;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

.brands-orbit {
    position: absolute;
    border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
    border-radius: 50%;
    transform: rotate(-25deg);
}

.orbit-one {
    width: 340px;
    height: 250px;
}

.orbit-two {
    width: 260px;
    height: 350px;
    transform: rotate(55deg);
}

.brands-hero-phone {
    position: absolute;
    width: 142px;
    height: 270px;
    border-radius: 27px;
    border: 5px solid #262936;
    background: #11131b;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.phone-back {
    transform: translate(-55px, 10px) rotate(-13deg);
    background: radial-gradient(circle at 30% 30%, #6f77d8, transparent 48%), linear-gradient(145deg, #3b426e, #171a2c);
}

.phone-back::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
}

.hero-camera {
    position: absolute;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    border: 4px solid #303340;
    background: radial-gradient(circle at 40% 35%, #7784bd, #0b0c15 65%);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.camera-one {
    top: 23px;
    left: 21px;
}

.camera-two {
    top: 56px;
    left: 21px;
}

.camera-three {
    top: 23px;
    left: 55px;
}

.phone-front {
    transform: translate(48px, -3px) rotate(10deg);
    padding: 4px;
    overflow: hidden;
}

.hero-screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 19px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 70% 25%, #9c9df7, transparent 35%),
        radial-gradient(ellipse at 25% 70%, #4c61b9, transparent 50%), linear-gradient(145deg, #171d48, #090b18 70%);
}

.hero-screen::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 53px;
    height: 13px;
    transform: translateX(-50%);
    border-radius: 20px;
    background: #080910;
    z-index: 2;
}

.hero-screen-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(161, 169, 255, 0.24);
    filter: blur(18px);
    top: 55px;
    left: -30px;
}

.hero-screen-shape {
    position: absolute;
    width: 100px;
    height: 170px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    transform: rotate(38deg);
    top: 65px;
    left: 20px;
    box-shadow:
        0 0 35px rgba(159, 167, 255, 0.25),
        inset 0 0 25px rgba(159, 167, 255, 0.12);
}

.hero-floating-label {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 13px;
    box-shadow: var(--shadow);
    color: var(--text);
    font-size: 11px;
    font-weight: 850;
}

.label-top {
    top: 35px;
    right: 5px;
}

.floating-label-icon {
    color: var(--primary);
    font-size: 15px;
}

.label-bottom {
    bottom: 28px;
    left: 4px;
}

.floating-label-dot {
    width: 7px;
    height: 7px;
    background: #36b58b;
    border-radius: 50%;
}

/* STATS */

.brands-stats-section {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.brands-stats {
    display: grid;
    grid-template-columns: 1fr 1px 1fr 1px 1fr;
    align-items: center;
    gap: 28px;
}

.brand-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
}

.stat-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--surface2);
    color: var(--primary);
    font-size: 19px;
    font-weight: 900;
}

.brand-stat strong,
.brand-stat span:not(.stat-icon) {
    display: block;
}

.brand-stat strong {
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: -0.04em;
}

.brand-stat div > span {
    color: var(--muted);
    font-size: 11px;
    margin-top: 2px;
}

.stat-divider {
    height: 40px;
    background: var(--line);
}

/* SECTION HEADINGS */

.featured-brand-section {
    padding-top: 60px;
    padding-bottom: 35px;
}

.section-heading,
.directory-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 23px;
}

.section-heading h2,
.directory-heading h2 {
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.045em;
    margin: 8px 0;
}

.section-heading p,
.directory-heading p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.section-heading .eyebrow,
.directory-heading .eyebrow {
    font-size: 10px;
    color: var(--primary);
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* FEATURED BRAND CARD */

.featured-brand-card {
    position: relative;
    min-height: 300px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(ellipse at 85% 45%, color-mix(in srgb, var(--brand-accent) 13%, transparent), transparent 50%),
        var(--surface);
    box-shadow: var(--shadow);
}

.featured-brand-info {
    position: relative;
    z-index: 2;
    padding: 32px 38px;
}

.featured-brand-topline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 27px;
}

.featured-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand-accent) 10%, var(--surface));
    color: var(--brand-accent);
    font-size: 10px;
    font-weight: 850;
}

.featured-model-count {
    font-size: 11px;
    color: var(--muted);
    font-weight: 750;
}

.featured-brand-identity {
    display: flex;
    align-items: center;
    gap: 16px;
}

.featured-brand-logo {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: var(--surface2);
    border: 1px solid var(--line);
    overflow: hidden;
    flex-shrink: 0;
}

.featured-brand-logo img {
    width: 65%;
    height: 65%;
    object-fit: contain;
}

.featured-brand-logo .brand-monogram {
    font-size: 25px;
}

.featured-overline {
    color: var(--muted);
    text-transform: uppercase;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.featured-brand-identity h3 {
    margin: 4px 0 0;
    font-size: 32px;
    letter-spacing: -0.05em;
    line-height: 1.1;
}

.featured-brand-info > p {
    max-width: 410px;
    margin: 18px 0 22px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
}

.featured-explore {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    font-size: 12px;
    font-weight: 850;
    color: var(--text);
    transition: color 0.2s ease;
}

.featured-explore:hover {
    color: var(--primary);
}

.featured-explore span {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface2);
    border: 1px solid var(--line);
    color: var(--primary);
    transition: transform 0.2s ease;
}

.featured-explore:hover span {
    transform: translate(2px, -2px);
}

/* FEATURED ART */

.featured-brand-art {
    position: relative;
    min-height: 300px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
}

.featured-art-circle {
    position: absolute;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand-accent) 13%, transparent);
    filter: blur(1px);
}

.featured-art-orbit {
    position: absolute;
    width: 290px;
    height: 150px;
    border: 1px solid color-mix(in srgb, var(--brand-accent) 28%, transparent);
    border-radius: 50%;
}

.orbit-a {
    transform: rotate(35deg);
}

.orbit-b {
    transform: rotate(-35deg);
}

.featured-art-phone {
    position: relative;
    z-index: 2;
    width: 112px;
    height: 210px;
    border-radius: 24px;
    border: 5px solid #242631;
    background: #10121c;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
    transform: rotate(12deg);
    overflow: hidden;
}

.featured-art-camera {
    position: absolute;
    z-index: 3;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #7786c9, #11131c 65%);
    border: 3px solid #30333e;
}

.camera-a {
    top: 15px;
    left: 14px;
}

.camera-b {
    top: 40px;
    left: 14px;
}

.camera-c {
    top: 15px;
    left: 39px;
}

.featured-art-screen {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 70% 25%, color-mix(in srgb, var(--brand-accent) 70%, #fff), transparent 35%),
        linear-gradient(145deg, color-mix(in srgb, var(--brand-accent) 60%, #151a3e), #090b16);
}

.featured-art-wave {
    position: absolute;
    width: 180px;
    height: 230px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 48%;
    transform: rotate(40deg);
}

.wave-a {
    left: -65px;
    top: 65px;
}

.wave-b {
    left: 10px;
    top: -45px;
}

.art-brand-name {
    position: absolute;
    bottom: 18px;
    right: 22px;
    font-size: 11px;
    font-weight: 900;
    color: var(--muted);
    opacity: 0.6;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* DIRECTORY */

.brand-directory-section {
    padding-top: 50px;
    padding-bottom: 65px;
    background: var(--surface2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.directory-heading {
    align-items: end;
}

.directory-count {
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
    white-space: nowrap;
    padding-bottom: 5px;
}

/* SEARCH / SORT */

.brand-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 27px 0 22px;
}

.brand-search {
    min-width: 0;
    flex: 1;
    height: 49px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.brand-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent);
}

.search-icon {
    width: 19px;
    height: 19px;
    color: var(--muted);
    flex-shrink: 0;
}

.search-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.brand-search input {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 13px;
}

.brand-search input::placeholder {
    color: var(--muted);
    opacity: 0.8;
}

.brand-search kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    flex-shrink: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    background: var(--surface2);
    font-family: inherit;
    font-size: 11px;
}

.brand-sort-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-sort-wrap label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

.brand-sort-wrap select {
    height: 49px;
    min-width: 150px;
    padding: 0 34px 0 13px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    outline: 0;
    cursor: pointer;
}

.brand-sort-wrap select:focus {
    border-color: var(--primary);
}

/* BRAND GRID */

.brand-discovery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.brand-discovery-card {
    --brand-accent: var(--primary);
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 21px;
    border: 1px solid var(--line);
    border-radius: 19px;
    background: var(--surface);
    color: var(--text);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.brand-discovery-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--brand-accent) 40%, var(--line));
    box-shadow: var(--shadow);
}

.discovery-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.discovery-logo {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--brand-accent) 15%, var(--line));
    border-radius: 16px;
    background: color-mix(in srgb, var(--brand-accent) 8%, var(--surface));
    color: var(--brand-accent);
}

.discovery-logo img {
    width: 65%;
    height: 65%;
    object-fit: contain;
}

.brand-monogram {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: var(--brand-accent);
}

.brand-card-arrow {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--muted);
    font-size: 14px;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.brand-discovery-card:hover .brand-card-arrow {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: white;
    transform: translate(2px, -2px);
}

.discovery-card-content {
    flex: 1;
}

.discovery-card-content h3 {
    margin: 0 0 8px;
    font-size: 19px;
    letter-spacing: -0.035em;
}

.discovery-card-content p {
    min-height: 42px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.discovery-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 21px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
}

.discovery-phone-count {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}

.mini-phone-icon {
    color: var(--brand-accent);
    font-size: 13px;
}

.discovery-explore {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--brand-accent);
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

/* EMPTY / LOADING / ERROR */

.brand-empty,
.brand-load-error {
    padding: 55px 20px;
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: 20px;
    background: var(--surface);
}

.brand-empty[hidden] {
    display: none;
}

.empty-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    margin: 0 auto 15px;
    border-radius: 16px;
    background: var(--surface2);
    color: var(--primary);
    font-size: 28px;
}

.brand-empty h3,
.brand-load-error h3 {
    margin: 0 0 7px;
    font-size: 19px;
}

.brand-empty p,
.brand-load-error p {
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 18px;
}

.brand-empty .btn {
    cursor: pointer;
}

.brand-loading,
.featured-loading {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
}

.loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--line);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: brand-spin 0.8s linear infinite;
}

@keyframes brand-spin {
    to {
        transform: rotate(360deg);
    }
}

/* BOTTOM CTA */

.brands-bottom-section {
    padding: 65px 0;
}

.brands-bottom-card {
    position: relative;
    min-height: 245px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 36px 42px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: radial-gradient(ellipse at 85% 55%, rgba(101, 112, 226, 0.13), transparent 35%), var(--surface);
}

.bottom-card-content {
    position: relative;
    z-index: 2;
    max-width: 550px;
}

.bottom-card-content .eyebrow {
    color: var(--primary);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 850;
}

.bottom-card-content h2 {
    margin: 10px 0;
    font-size: clamp(25px, 3.5vw, 36px);
    letter-spacing: -0.05em;
    line-height: 1.15;
}

.bottom-card-content p {
    max-width: 480px;
    margin: 0 0 21px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.bottom-card-content .btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.bottom-card-decoration {
    position: absolute;
    right: 5%;
    top: 0;
    width: 320px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.decoration-circle {
    position: absolute;
    border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
    border-radius: 50%;
}

.circle-one {
    width: 200px;
    height: 200px;
}

.circle-two {
    width: 270px;
    height: 140px;
    transform: rotate(-35deg);
}

.decoration-phone {
    position: relative;
    z-index: 1;
    width: 85px;
    height: 160px;
    border: 5px solid #262936;
    border-radius: 20px;
    transform: rotate(15deg);
    background:
        radial-gradient(ellipse at 70% 25%, #9d9df1, transparent 40%), linear-gradient(145deg, #505bb4, #151a3e);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* RESPONSIVE */

@media (max-width: 1000px) {
    .brands-hero-inner {
        min-height: 390px;
        gap: 10px;
    }

    .brands-hero-visual {
        transform: scale(0.88);
    }

    .brand-discovery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .featured-brand-card {
        grid-template-columns: 1fr 0.8fr;
    }
}

@media (max-width: 760px) {
    .brands-hero-inner {
        grid-template-columns: 1fr;
        padding-top: 48px;
        padding-bottom: 35px;
    }

    .brands-hero-copy {
        max-width: 100%;
    }

    .brands-hero h1 {
        font-size: clamp(38px, 9vw, 56px);
    }

    .brands-hero-visual {
        min-height: 275px;
        transform: scale(0.82);
        margin-top: -8px;
    }

    .brands-stats {
        gap: 12px;
    }

    .brand-stat {
        gap: 8px;
    }

    .stat-icon {
        width: 34px;
        height: 34px;
        font-size: 15px;
        border-radius: 10px;
    }

    .brand-stat strong {
        font-size: 17px;
    }

    .brand-stat div > span {
        font-size: 10px;
    }

    .featured-brand-card {
        grid-template-columns: 1fr;
    }

    .featured-brand-info {
        padding: 27px;
    }

    .featured-brand-art {
        min-height: 230px;
    }

    .featured-brand-topline {
        margin-bottom: 20px;
    }

    .brand-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .brand-sort-wrap {
        justify-content: space-between;
    }

    .brand-sort-wrap select {
        flex: 1;
    }

    .brands-bottom-card {
        padding: 30px;
    }

    .bottom-card-decoration {
        opacity: 0.35;
        right: -100px;
    }
}

@media (max-width: 520px) {
    .brands-hero-inner {
        padding-top: 38px;
    }

    .brands-hero-copy > p {
        font-size: 14px;
    }

    .brands-hero-visual {
        min-height: 240px;
        transform: scale(0.72);
        margin: -15px -30px -10px;
    }

    .brands-stats {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .brand-stat {
        justify-content: flex-start;
    }

    .stat-divider {
        width: 100%;
        height: 1px;
    }

    .featured-brand-section,
    .brand-directory-section {
        padding-top: 42px;
        padding-bottom: 45px;
    }

    .section-heading,
    .directory-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .directory-count {
        padding: 0;
    }

    .brand-discovery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .brand-discovery-card {
        padding: 18px;
    }

    .discovery-card-content p {
        min-height: 0;
    }

    .brands-bottom-section {
        padding: 42px 0;
    }

    .brands-bottom-card {
        min-height: 260px;
        padding: 25px;
    }

    .bottom-card-decoration {
        opacity: 0.2;
        right: -130px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brands-page *,
    .brands-page *::before,
    .brands-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* =========================================================
   PHONE DESCRIPTION
   ========================================================= */

.phone-description {
    margin: 30px 0 70px;
    padding: 0;
}

.phone-description-inner {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 45px;
    padding: 34px 38px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
}

.phone-description-heading {
    padding-top: 3px;
}

.phone-description-heading .eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.phone-description-heading h2 {
    margin: 0;
    font-size: 25px;
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.phone-description-content {
    max-width: 760px;
}

.phone-description-content p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.85;
}

/* =========================================================
   PHONE DESCRIPTION RESPONSIVE
   ========================================================= */

@media (max-width: 760px) {
    .phone-description {
        margin: 25px 0 50px;
    }

    .phone-description-inner {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 25px;
        border-radius: 19px;
    }

    .phone-description-heading h2 {
        font-size: 23px;
    }

    .phone-description-content p {
        font-size: 14px;
        line-height: 1.75;
    }
}

@media (max-width: 460px) {
    .phone-description-inner {
        padding: 21px;
    }
}

/* mobile pagination issue fix */
@media (max-width: 600px) {
    .pagination .page-direction {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: auto;
        min-width: 90px;
        padding: 9px 12px;
        font-size: 13px !important;
        white-space: nowrap;
        visibility: visible !important;
    }

    .pagination .page-direction span {
        display: inline !important;
        font-size: inherit !important;
        visibility: visible !important;
    }
}

/* hamburger menu close button animation */
/* Hamburger menu button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition:
        transform 0.3s ease,
        opacity 0.2s ease;
}

/* Turn hamburger into X */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile layout */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
}
/* =========================================================
   GLOBAL IMAGE LAYOUT STABILITY
   Prevents layout shifts while images are loading
   ========================================================= */

img[loading='lazy'] {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Phone/product images */
.phone-card img,
.phone-image img,
.phone-thumb img,
.phone-card-image img,
.related-phone img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

/* Article images / thumbnails */
.article-card img,
.article-card-image img,
.article-thumb img,
.article-image img,
.related-article img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Brand logos */
.brand-card img,
.brand-logo img,
.brand-image img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
}
img[loading='lazy'] {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    /* object-fit: cover; */
}
/* =========================================
   BACK TO TOP
   ========================================= */

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;

    width: 46px;
    height: 46px;

    display: flex !important;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    border: 0;
    border-radius: 50%;

    background: var(--primary);
    color: #fff;

    cursor: pointer;

    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 700;

    line-height: 1;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);

    z-index: 99999;

    opacity: 0;
    visibility: hidden;

    transform: translateY(15px);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease,
        background 0.2s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-4px);
}

.back-to-top:active {
    transform: translateY(0);
}

.back-to-top-icon {
    display: block;
    line-height: 1;
    transform: translateY(3px);
}

@media (max-width: 600px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;

        width: 42px;
        height: 42px;

        font-size: 23px;
    }
}

/* =========================================================
   REUSABLE BROWSE ALL BRANDS
========================================================= */

.all-brands-section {
    margin: 0;
    padding: 12px 0 28px;
}

.all-brands-section .section-head {
    margin-bottom: 12px;
}

.all-brands-section .section-head h2 {
    margin-bottom: 4px;
}

.all-brands-section .section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.all-brands-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.all-brands-list a {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        color 0.2s ease;
}

.all-brands-list a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

@media (max-width: 520px) {
    .all-brands-section {
        padding: 8px 0 22px;
    }

    .all-brands-list {
        gap: 6px;
    }

    .all-brands-list a {
        padding: 7px 9px;
    }
}
