﻿:root {
    --gg-primary: #6366f1;
    --gg-primary-dark: #4f46e5;
    --gg-accent: #f59e0b;
    --gg-bg: #f8fafc;
    --gg-card-bg: #ffffff;
    --gg-text: #0f172a;
    --gg-muted: #64748b;
    --gg-radius: 16px;
    --gg-shadow: 0 4px 24px rgba(15,23,42,.08);
    --gg-shadow-lg: 0 12px 48px rgba(15,23,42,.15);
}

[data-theme="dark"] {
    --gg-bg: #0b1020;
    --gg-card-bg: #161c33;
    --gg-text: #f1f5f9;
    --gg-muted: #94a3b8;
    --gg-shadow: 0 4px 24px rgba(0,0,0,.4);
}

* {
    box-sizing: border-box;
}

body.gg-body {
    background: var(--gg-bg);
    color: var(--gg-text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    padding-bottom: 96px;
}

/* HEADER */
.gg-header {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,.06);
    z-index: 1020;
}

[data-theme="dark"] .gg-header {
    background: rgba(22,28,51,.9);
}

.gg-logo {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--gg-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .35rem;
}

    .gg-logo i {
        font-size: 1.5rem;
    }

/* SEARCH */
.gg-search-box {
    position: relative;
}

.gg-search-input {
    width: 100%;
    padding: .75rem 3rem .75rem 2.75rem;
    border-radius: 999px;
    border: 2px solid transparent;
    background: rgba(99,102,241,.08);
    font-size: .95rem;
    color: var(--gg-text);
    transition: all .2s;
}

    .gg-search-input:focus {
        outline: none;
        border-color: var(--gg-primary);
        background: var(--gg-card-bg);
        box-shadow: 0 0 0 4px rgba(99,102,241,.15);
    }

.gg-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gg-muted);
}

.gg-search-clear {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: 0;
    color: var(--gg-muted);
}

.gg-search-suggest {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--gg-card-bg);
    border-radius: var(--gg-radius);
    box-shadow: var(--gg-shadow-lg);
    max-height: 380px;
    overflow-y: auto;
    z-index: 10;
    display: none;
}

    .gg-search-suggest.show {
        display: block;
        animation: fadeDown .2s ease;
    }

/* CARDS */
.gg-card {
    background: var(--gg-card-bg);
    border-radius: var(--gg-radius);
    box-shadow: var(--gg-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
}

    .gg-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--gg-shadow-lg);
    }

.gg-card-img {
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg,#eef2ff,#e0e7ff);
}

    .gg-card-img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform .4s;
    }

.gg-card:hover .gg-card-img img {
    transform: scale(1.08);
}

.gg-card-body {
    padding: .9rem 1rem;
    flex-grow: 1;
}

.gg-brand {
    font-size: .75rem;
    color: var(--gg-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.gg-device-name {
    font-weight: 700;
    color: var(--gg-text);
    text-decoration: none;
    display: block;
    margin: .15rem 0;
}

    .gg-device-name:hover {
        color: var(--gg-primary);
    }

.gg-price {
    font-weight: 700;
    color: var(--gg-primary);
}

.gg-card-actions {
    display: flex;
    gap: .5rem;
    padding: 0 1rem 1rem;
}

/* COMPARE BAR */
.gg-compare-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gg-card-bg);
    box-shadow: 0 -4px 24px rgba(0,0,0,.08);
    padding: .75rem 0;
    transform: translateY(100%);
    transition: transform .3s;
    z-index: 1030;
}

    .gg-compare-bar.show {
        transform: translateY(0);
    }

/* FLOATING ACTIONS */
.gg-fab {
    position: fixed;
    right: 24px;
    bottom: 96px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gg-primary);
    color: #fff;
    border: 0;
    box-shadow: var(--gg-shadow-lg);
    z-index: 1030;
    display: grid;
    place-items: center;
    transition: transform .2s;
}

    .gg-fab:hover {
        transform: scale(1.1);
    }

/* LOADER */
.gg-loader {
    position: fixed;
    inset: 0;
    background: var(--gg-bg);
    display: grid;
    place-items: center;
    z-index: 9999;
    transition: opacity .3s;
}

    .gg-loader.hide {
        opacity: 0;
        pointer-events: none;
    }

.gg-loader-ring {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(99,102,241,.2);
    border-top-color: var(--gg-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* SPEC LIST */
.gg-spec-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .65rem 0;
    border-bottom: 1px dashed rgba(0,0,0,.06);
}

.gg-spec-key {
    color: var(--gg-muted);
    font-size: .9rem;
    display: flex;
    gap: .4rem;
    align-items: center;
}

.gg-spec-val {
    font-weight: 600;
    text-align: right;
    font-size: .9rem;
}
/* ================= SIDEBARS ================= */
.gg-sidebar {
    background: var(--gg-card-bg);
    border-radius: var(--gg-radius);
    padding: 1rem;
    box-shadow: var(--gg-shadow);
    position: sticky;
    top: 72px;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
}

.gg-sidebar-title {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gg-muted);
    margin: 0 0 .75rem;
    display: flex;
    align-items: center;
    gap: .35rem;
}

.gg-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .gg-sidebar-list li a {
        display: flex;
        align-items: center;
        gap: .6rem;
        padding: .55rem .6rem;
        border-radius: 10px;
        color: var(--gg-text);
        text-decoration: none;
        transition: background .15s, transform .15s;
        font-size: .92rem;
    }

        .gg-sidebar-list li a:hover {
            background: rgba(99,102,241,.1);
            color: var(--gg-primary);
            transform: translateX(2px);
        }

    .gg-sidebar-list i {
        font-size: 1.05rem;
        color: var(--gg-primary);
    }

/* Trending */
.gg-trending {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.gg-trend-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .6rem;
    border-radius: 10px;
    color: var(--gg-text);
    text-decoration: none;
    font-size: .9rem;
}

    .gg-trend-item:hover {
        background: rgba(99,102,241,.1);
    }

.gg-trend-rank {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gg-primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: .7rem;
    font-weight: 700;
}

/* Ad slot */
.gg-sidebar-ad {
    position: relative;
}

.gg-ad-label {
    font-size: .65rem;
    text-transform: uppercase;
    color: var(--gg-muted);
    letter-spacing: .08em;
}

.gg-ad-slot {
    margin-top: .35rem;
    border: 2px dashed rgba(99,102,241,.3);
    border-radius: 12px;
    min-height: 200px;
    display: grid;
    place-items: center;
    color: var(--gg-muted);
    text-align: center;
}

    .gg-ad-slot i {
        font-size: 2rem;
        display: block;
        margin-bottom: .35rem;
    }

/* ================= FAB STACK ================= */
.gg-fab-stack {
    position: fixed;
    right: 20px;
    bottom: 96px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1030;
}

.gg-fab {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 0;
    background: var(--gg-card-bg);
    color: var(--gg-text);
    box-shadow: var(--gg-shadow-lg);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform .2s, background .2s;
    font-size: 1.15rem;
}

    .gg-fab:hover {
        transform: scale(1.08);
    }

.gg-fab-primary {
    background: var(--gg-primary);
    color: #fff;
}

/* ================= BADGES ================= */
.gg-badge-discount {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ef4444;
    color: #fff;
    padding: .2rem .5rem;
    border-radius: 6px;
    font-size: .7rem;
    font-weight: 700;
}

.gg-badge-sponsored {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #f59e0b;
    color: #fff;
    padding: .2rem .5rem;
    border-radius: 6px;
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.gg-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--gg-primary);
    color: #fff;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    font-size: .68rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}

/* ================= COMPARE BAR ================= */
.gg-compare-items {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

    .gg-compare-items .badge {
        cursor: default;
    }

/* ================= GREET MODAL ================= */
.gg-greet-emoji {
    font-size: 3rem;
    margin-bottom: .5rem;
}

.gg-glass {
    backdrop-filter: blur(20px);
    background: rgba(255,255,255,.9);
    border: 1px solid rgba(99,102,241,.15);
    border-radius: var(--gg-radius);
}

[data-theme="dark"] .gg-glass {
    background: rgba(22,28,51,.9);
}

/* ================= ICON BUTTON ================= */
.gg-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0,0,0,.08);
    background: var(--gg-card-bg);
    color: var(--gg-text);
    transition: background .15s, transform .15s;
}

    .gg-icon-btn:hover {
        background: rgba(99,102,241,.1);
        transform: translateY(-1px);
    }

/* ================= PAGINATION ================= */
.gg-pagination {
    margin-top: 2rem;
}

    .gg-pagination .page-link {
        color: var(--gg-text);
        border-radius: 10px !important;
        margin: 0 3px;
        border: 1px solid rgba(0,0,0,.06);
    }

    .gg-pagination .page-item.active .page-link {
        background: var(--gg-primary);
        border-color: var(--gg-primary);
        color: #fff;
    }



/* ===== TOP STRIP ===== */
.gg-topstrip {
    background: linear-gradient(90deg, #1e1b4b, #312e81);
    color: #c7d2fe;
    font-size: .78rem;
}

    .gg-topstrip a {
        color: #c7d2fe;
        text-decoration: none;
        padding: .25rem .55rem;
        border-radius: 6px;
        display: inline-flex;
        align-items: center;
        gap: .3rem;
        transition: background .15s, color .15s;
    }

        .gg-topstrip a:hover {
            background: rgba(255,255,255,.1);
            color: #fff;
        }

/* ===== MAIN NAV ===== */
.gg-mainnav {
    border-top: 1px solid rgba(15,23,42,.06);
    background: var(--gg-card-bg);
}

.gg-mainnav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: .25rem;
}

    .gg-mainnav-list > li {
        position: relative;
    }

        .gg-mainnav-list > li > a {
            display: flex;
            align-items: center;
            gap: .4rem;
            padding: .65rem .85rem;
            color: var(--gg-text);
            text-decoration: none;
            font-weight: 600;
            font-size: .9rem;
            border-radius: 10px;
            transition: background .15s, color .15s;
        }

            .gg-mainnav-list > li > a:hover {
                background: rgba(99,102,241,.1);
                color: var(--gg-primary);
            }

/* Mega menu */
.gg-has-mega:hover > .gg-mega {
    display: grid;
}

.gg-mega {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--gg-card-bg);
    border-radius: var(--gg-radius);
    box-shadow: var(--gg-shadow-lg);
    padding: 1.25rem;
    display: none;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 1.5rem;
    min-width: 820px;
    z-index: 1050;
    border: 1px solid rgba(15,23,42,.06);
    animation: ggFadeDown .2s ease;
}

.gg-mega-col h6 {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gg-muted);
    margin-bottom: .65rem;
}

.gg-mega-col a {
    display: block;
    padding: .35rem 0;
    color: var(--gg-text);
    text-decoration: none;
    font-size: .88rem;
    transition: color .12s, padding-left .12s;
}

    .gg-mega-col a:hover {
        color: var(--gg-primary);
        padding-left: 4px;
    }

.gg-mega-more {
    color: var(--gg-primary) !important;
    font-weight: 600;
}

.gg-mega-featured {
    border-left: 1px dashed rgba(99,102,241,.25);
    padding-left: 1rem;
}

.gg-mega-featured-item {
    display: flex !important;
    align-items: center;
    gap: .75rem;
    padding: .55rem !important;
    background: rgba(99,102,241,.06);
    border-radius: 10px;
}

    .gg-mega-featured-item img {
        width: 56px;
        height: 56px;
        object-fit: contain;
    }

    .gg-mega-featured-item strong {
        display: block;
        font-size: .9rem;
    }

    .gg-mega-featured-item span {
        font-size: .8rem;
        color: var(--gg-primary);
        font-weight: 700;
    }

/* Mobile nav list */
.gg-mobile-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .gg-mobile-list a {
        display: flex;
        align-items: center;
        gap: .65rem;
        padding: .75rem .5rem;
        color: var(--gg-text);
        text-decoration: none;
        font-weight: 500;
        border-radius: 10px;
    }

        .gg-mobile-list a:hover {
            background: rgba(99,102,241,.1);
            color: var(--gg-primary);
        }

    .gg-mobile-list i {
        color: var(--gg-primary);
        font-size: 1.05rem;
    }

/* ===== MAIN WRAP ===== */
.gg-main-wrap {
    padding: 1rem 0 2rem;
}

/* ===== FOOTER ===== */
.gg-footer {
    background: linear-gradient(180deg, #0f172a, #020617);
    color: #cbd5e1;
    padding: 3rem 0 1rem;
    margin-top: 2rem;
}

    .gg-footer .gg-logo {
        color: #fff !important;
        font-size: 1.5rem;
    }

    .gg-footer h6 {
        color: #fff;
        font-size: .85rem;
        text-transform: uppercase;
        letter-spacing: .08em;
        margin-bottom: 1rem;
    }

    .gg-footer ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .gg-footer ul li {
            margin-bottom: .4rem;
        }

        .gg-footer ul a {
            color: #94a3b8;
            text-decoration: none;
            font-size: .88rem;
            transition: color .15s;
        }

            .gg-footer ul a:hover {
                color: #fff;
            }

.gg-footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #cbd5e1;
    display: grid;
    place-items: center;
    transition: background .15s, color .15s, transform .15s;
}

    .gg-footer-social a:hover {
        background: var(--gg-primary);
        color: #fff;
        transform: translateY(-2px);
    }

.gg-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
}

/* Responsive */
@media (max-width: 991px) {
    .gg-main-wrap {
        padding: .75rem 0 1.5rem;
    }

    .gg-footer {
        padding: 2rem 0 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVENESS FIX
   ═══════════════════════════════════════════════════════════ */

/* HEADER LAYOUT */
.gg-header-inner {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .65rem 0;
    min-height: 60px;
}

.gg-menu-btn {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    border: 1px solid rgba(15,23,42,.1);
    background: var(--gg-card-bg);
    color: var(--gg-text);
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    cursor: pointer;
    transition: background .15s;
}

    .gg-menu-btn:hover {
        background: rgba(99,102,241,.1);
        color: var(--gg-primary);
    }

.gg-logo {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--gg-primary);
    text-decoration: none;
    flex-shrink: 0;
}

.gg-logo-text {
    display: inline;
}

.gg-search {
    flex: 1 1 auto;
    min-width: 0; /* critical: allows flex shrink */
    max-width: 520px;
}

.gg-search-box {
    position: relative;
    width: 100%;
}

.gg-search-input {
    width: 100%;
    padding: .65rem 2.5rem .65rem 2.5rem;
    border-radius: 999px;
    border: 2px solid transparent;
    background: rgba(99,102,241,.08);
    font-size: .92rem;
    color: var(--gg-text);
    transition: all .2s;
}

    .gg-search-input:focus {
        outline: none;
        border-color: var(--gg-primary);
        background: var(--gg-card-bg);
        box-shadow: 0 0 0 4px rgba(99,102,241,.15);
    }

.gg-search-icon {
    position: absolute;
    left: .85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gg-muted);
    pointer-events: none;
    font-size: .95rem;
}

.gg-search-clear {
    position: absolute;
    right: .65rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--gg-muted);
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

    .gg-search-clear:hover {
        background: rgba(0,0,0,.06);
    }

.gg-header-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}

.gg-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(15,23,42,.08);
    background: var(--gg-card-bg);
    color: var(--gg-text);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background .15s, transform .15s;
}

    .gg-icon-btn:hover {
        background: rgba(99,102,241,.1);
        transform: translateY(-1px);
    }

/* TOP STRIP */
.gg-topstrip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .3rem 0;
    gap: .5rem;
}

/* MOBILE NAV */
.gg-mobile-nav .offcanvas-header {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}

.gg-mobile-nav .offcanvas-title {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-weight: 800;
    margin: 0;
}

.gg-mobile-search {
    padding: .85rem 1rem;
    background: rgba(99,102,241,.06);
    border-bottom: 1px solid rgba(15,23,42,.06);
}

.gg-mobile-list {
    list-style: none;
    padding: .5rem .75rem;
    margin: 0;
}

    .gg-mobile-list a {
        display: flex;
        align-items: center;
        gap: .75rem;
        padding: .75rem .85rem;
        color: var(--gg-text);
        text-decoration: none;
        font-weight: 500;
        font-size: .95rem;
        border-radius: 10px;
        transition: background .15s, color .15s;
    }

        .gg-mobile-list a:hover,
        .gg-mobile-list a:active {
            background: rgba(99,102,241,.1);
            color: var(--gg-primary);
        }

    .gg-mobile-list i {
        color: var(--gg-primary);
        font-size: 1.15rem;
        width: 22px;
        text-align: center;
        flex-shrink: 0;
    }

.gg-mobile-list-secondary a {
    font-size: .88rem;
    padding: .6rem .85rem;
    color: var(--gg-muted);
}

.gg-mobile-social {
    display: flex;
    justify-content: center;
    gap: .5rem;
    padding: 1rem;
    border-top: 1px dashed rgba(15,23,42,.1);
    margin-top: .5rem;
}

    .gg-mobile-social a {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(99,102,241,.1);
        color: var(--gg-primary);
        display: grid;
        place-items: center;
        font-size: 1.05rem;
        text-decoration: none;
        transition: background .15s, color .15s, transform .15s;
    }

        .gg-mobile-social a:hover,
        .gg-mobile-social a:active {
            background: var(--gg-primary);
            color: #fff;
            transform: translateY(-2px);
        }

/* ═══════════════════════════════════════════════════════════
   BREAKPOINT OVERRIDES
   ═══════════════════════════════════════════════════════════ */

/* TABLET (≤ 991px) — hide mega nav, show menu btn */
@media (max-width: 991.98px) {
    .gg-mainnav {
        display: none !important;
    }

    .gg-header-inner {
        gap: .5rem;
        padding: .55rem 0;
        min-height: 56px;
    }

    .gg-logo {
        font-size: 1.05rem;
    }

    .gg-search {
        max-width: none;
    }

    .gg-icon-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .gg-menu-btn {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
}

/* MOBILE (≤ 575px) — compact everything */
@media (max-width: 575.98px) {
    .gg-topstrip {
        font-size: .7rem;
    }

    .gg-topstrip-social {
        gap: .35rem !important;
    }

        .gg-topstrip-social a {
            padding: .2rem .35rem !important;
        }

    .gg-logo-text {
        display: none;
    }
    /* Show only icon on tiny screens */
    .gg-logo i {
        font-size: 1.5rem;
    }

    .gg-search-input {
        padding: .55rem 2.2rem .55rem 2.2rem;
        font-size: .85rem;
    }

    .gg-search-icon {
        left: .7rem;
        font-size: .85rem;
    }

    .gg-search-clear {
        right: .5rem;
        width: 24px;
        height: 24px;
        font-size: .75rem;
    }

    .gg-header-actions {
        gap: .35rem;
    }

    .gg-icon-btn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .gg-badge {
        min-width: 15px;
        height: 15px;
        font-size: .6rem;
    }

    /* Sticky header + body padding */
    body.gg-body {
        padding-top: 0;
    }
}

/* Prevent horizontal scroll globally */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Make cards not overflow */
.gg-card, .gg-news-card, .gg-review-card {
    max-width: 100%;
    word-wrap: break-word;
}

/* Ensure all images fit */
img {
    max-width: 100%;
    height: auto;
}

/* Fix button wrapping on tiny screens */
.gg-detail-actions,
.gg-card-actions {
    flex-wrap: wrap;
}

    .gg-detail-actions .gg-btn,
    .gg-card-actions .gg-btn {
        flex: 1 1 auto;
        min-width: 0;
    }

/* Touch-friendly tap targets */
@media (hover: none) {
    .gg-btn, .gg-icon-btn, .gg-menu-btn, .gg-view-btn, .gg-chip {
        min-height: 40px;
    }
}

/* Fix detail page hero stacking */
@media (max-width: 767.98px) {
    .gg-detail-hero {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        padding: 1rem;
    }

    .gg-detail-img-wrap {
        max-width: 260px;
        margin: 0 auto;
    }

    .gg-detail-quick {
        grid-template-columns: 1fr 1fr;
    }

    .gg-post-hero-image {
        aspect-ratio: 4/3;
    }

    .gg-post-content {
        padding: 1.1rem;
    }
}

/* Hide hero visual & heavy sidebar blocks on mobile */
@media (max-width: 767.98px) {
    .gg-hero-visual {
        display: none;
    }

    .gg-hero {
        padding: 1.5rem !important;
        grid-template-columns: 1fr !important;
    }

        .gg-hero h1 {
            font-size: 1.6rem;
        }
}

/* Ensure compare bar doesn't cover FAB */
@media (max-width: 575.98px) {
    .gg-fab-stack {
        bottom: 84px;
        right: 14px;
    }

    .gg-fab {
        width: 46px;
        height: 46px;
        font-size: 1rem;
    }

    .gg-compare-bar {
        padding: .5rem 0;
    }

        .gg-compare-bar .container-xxl {
            gap: .5rem;
        }
}



@media (max-width: 1199.98px) {
    .gg-mega {
        min-width: 640px !important;
        grid-template-columns: repeat(3, 1fr) !important;
    }
}






/*Loader CSS*/

/* ═══════════════════════════════════════════════════════════
   MOBILE-APP STARTUP LOADER
   ═══════════════════════════════════════════════════════════ */
.gg-boot {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    overflow: hidden;
    transition: opacity .55s cubic-bezier(.4,0,.2,1), visibility .55s cubic-bezier(.4,0,.2,1);
}

    .gg-boot.is-hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

/* Animated gradient background */
.gg-boot-bg {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 20% 30%, rgba(99,102,241,.55), transparent 45%), radial-gradient(circle at 80% 70%, rgba(139,92,246,.55), transparent 45%), radial-gradient(circle at 50% 50%, rgba(236,72,153,.35), transparent 55%), linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    background-size: 200% 200%;
    animation: ggBootBg 8s ease-in-out infinite;
    filter: blur(40px);
}

@keyframes ggBootBg {
    0%,100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.gg-boot-content {
    position: relative;
    text-align: center;
    color: #fff;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.5rem;
}

/* ── Logo animation ── */
.gg-boot-logo {
    position: relative;
    width: 120px;
    height: 120px;
    display: grid;
    place-items: center;
    margin-bottom: 1.5rem;
    animation: ggBootLogoIn .8s cubic-bezier(.2,.9,.3,1) both;
}

@keyframes ggBootLogoIn {
    from {
        opacity: 0;
        transform: scale(.5) rotate(-30deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.gg-boot-logo-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: rgba(255,255,255,.9);
    border-right-color: rgba(139,92,246,.7);
    border-bottom-color: rgba(236,72,153,.5);
    animation: ggSpin 1.4s cubic-bezier(.5,.1,.5,.9) infinite;
}

    .gg-boot-logo-ring::before {
        content: "";
        position: absolute;
        inset: 12px;
        border-radius: 50%;
        border: 2px solid transparent;
        border-top-color: rgba(255,255,255,.55);
        animation: ggSpin 2.2s linear infinite reverse;
    }

.gg-boot-logo-core {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,.15), rgba(255,255,255,.05));
    backdrop-filter: blur(20px);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 0 0 8px rgba(255,255,255,.06), 0 0 40px rgba(139,92,246,.6), inset 0 2px 12px rgba(255,255,255,.15);
    animation: ggBootPulse 2s ease-in-out infinite;
}

@keyframes ggBootPulse {
    0%,100% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(255,255,255,.06), 0 0 40px rgba(139,92,246,.6), inset 0 2px 12px rgba(255,255,255,.15);
    }

    50% {
        transform: scale(1.06);
        box-shadow: 0 0 0 12px rgba(255,255,255,.03), 0 0 60px rgba(236,72,153,.75), inset 0 2px 12px rgba(255,255,255,.2);
    }
}

/* ── Title ── */
.gg-boot-title {
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: -.02em;
    margin: 0;
    background: linear-gradient(90deg, #fff 0%, #c7d2fe 50%, #fff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: ggBootTitleShine 3s ease-in-out infinite;
}

@keyframes ggBootTitleShine {
    0%,100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.gg-boot-tagline {
    font-size: .85rem;
    color: rgba(255,255,255,.65);
    margin: .35rem 0 2rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ── Progress bar ── */
.gg-boot-progress {
    width: 220px;
    height: 4px;
    background: rgba(255,255,255,.12);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    position: relative;
}

.gg-boot-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
    border-radius: 999px;
    transition: width .3s cubic-bezier(.2,.9,.3,1);
    box-shadow: 0 0 20px rgba(139,92,246,.8);
    position: relative;
}

    .gg-boot-progress-bar::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
        background-size: 40px 100%;
        animation: ggBootProgressShimmer 1.2s linear infinite;
    }

@keyframes ggBootProgressShimmer {
    from {
        background-position: -40px 0;
    }

    to {
        background-position: 240px 0;
    }
}

/* ── Status dots ── */
.gg-boot-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    color: rgba(255,255,255,.65);
}

.gg-boot-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    animation: ggBootDot 1.2s ease-in-out infinite;
}

    .gg-boot-dot:nth-child(2) {
        animation-delay: .15s;
    }

    .gg-boot-dot:nth-child(3) {
        animation-delay: .3s;
    }

@keyframes ggBootDot {
    0%,100% {
        opacity: .35;
        transform: scale(.85);
        background: rgba(255,255,255,.5);
    }

    50% {
        opacity: 1;
        transform: scale(1.25);
        background: #a78bfa;
    }
}

.gg-boot-status-text {
    margin-left: .5rem;
    letter-spacing: .04em;
}

/* ── Footer ── */
.gg-boot-footer {
    position: absolute;
    bottom: 1.75rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: .72rem;
    color: rgba(255,255,255,.45);
    z-index: 2;
    letter-spacing: .05em;
}

    .gg-boot-footer i {
        color: #ec4899;
    }

/* ── Fade-out animation ── */
.gg-boot.is-hidden .gg-boot-content {
    animation: ggBootContentOut .55s cubic-bezier(.4,0,.2,1) both;
}

@keyframes ggBootContentOut {
    to {
        opacity: 0;
        transform: scale(1.08) translateY(-20px);
    }
}

/* ── Mobile tweaks ── */
@media (max-width: 575px) {
    .gg-boot-logo {
        width: 100px;
        height: 100px;
    }

    .gg-boot-logo-core {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }

    .gg-boot-title {
        font-size: 1.7rem;
    }

    .gg-boot-progress {
        width: 180px;
    }
}

.gg-footer-logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: #ffffff !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

    .gg-footer-logo i {
        color: #818cf8;
        font-size: 1.6rem;
    }

.gg-footer-desc {
    color: #cbd5e1 !important;
    font-size: .88rem;
    line-height: 1.7;
    margin-bottom: .75rem;
}

.gg-footer-desc-bn {
    color: #94a3b8 !important;
    font-size: .85rem;
    line-height: 1.8;
    font-family: 'Hind Siliguri', 'Inter', sans-serif;
    margin-bottom: 0;
}

.gg-footer-bottom .small,
.gg-footer-bottom a {
    color: #94a3b8 !important;
    text-decoration: none;
}

    .gg-footer-bottom a:hover {
        color: #ffffff !important;
    }

.gg-footer h6 {
    color: #f1f5f9 !important;
}

.gg-footer ul a {
    color: #94a3b8 !important;
}

    .gg-footer ul a:hover {
        color: #ffffff !important;
    }


/* ═══════════════════════════════════════════════════════════
   MOBILE OFFCANVAS NAV
   ═══════════════════════════════════════════════════════════ */
.offcanvas.gg-mobile-nav {
    --bs-offcanvas-width: 320px;
    background: var(--gg-card-bg);
    z-index: 1090;
}

.gg-mobile-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
}

.gg-mobile-logo {
    height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) invert(1); /* ensures light logo on dark header */
}

/* If your logo is already light, remove the filter above */
[data-theme="light"] .gg-mobile-logo.want-white {
    filter: none;
}

.gg-mobile-brand-text {
    min-width: 0;
}

.gg-mobile-nav .offcanvas-header {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.gg-mobile-nav .offcanvas-title {
    font-weight: 800;
    color: #fff;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.2;
}

.gg-mobile-brand-text small {
    color: rgba(255,255,255,.75);
    font-size: .7rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    display: block;
    margin-top: 2px;
}

.gg-mobile-nav .btn-close {
    filter: invert(1) brightness(2);
    opacity: .9;
}

.gg-mobile-nav .offcanvas-body {
    overflow-y: auto;
    max-height: calc(100vh - 68px);
    overscroll-behavior: contain;
}

 
.gg-mobile-nav .offcanvas-header {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    padding: 1rem 1.25rem;
}

.gg-mobile-nav .offcanvas-title {
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.gg-mobile-nav .btn-close {
    filter: invert(1) brightness(2);
    opacity: .9;
}

.gg-mobile-nav .offcanvas-body {
    overflow-y: auto;
    max-height: calc(100vh - 64px);
}