/* ==========================================================================
   styles.css — Premium Custom Styles Overriding Bootstrap 5 for MiniPC specs
   ========================================================================== */

/* Import Premium Typography */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* ===== Brand Palette ===== */
    --brand-teal:     #05A895;
    --brand-indigo:   #17229D;
    --brand-lavender: #A18CE5;
    --brand-sky:      #CBE3F5;
    --brand-olive:    #8FAD13;

    --brand-indigo-dark: #101a72;
    --brand-teal-dark:   #048174;

    /* Modern Light Theme Palette */
    --bg-main: #f4f8fc;
    --card-bg: rgba(255, 255, 255, 0.88);
    --card-border: rgba(180, 205, 232, 0.6);
    --text-primary: #101a3d;
    --text-secondary: #46527a;
    --text-muted: #6b779e;

    /* Signature gradients */
    --primary-gradient: linear-gradient(135deg, #17229D 0%, #05A895 100%);
    --accent-gradient:  linear-gradient(135deg, #17229D 0%, #A18CE5 52%, #05A895 100%);
    --hero-gradient:    linear-gradient(120deg, #17229D 0%, #3b2fa8 42%, #05A895 100%);

    --accent-glow: rgba(23, 34, 157, 0.18);
    --table-header-bg: #eaf1fb;
    --badge-bg: #e9eefb;
    --badge-text: #17229D;
    --nav-bg: rgba(23, 34, 157, 0.97);

    /* ===== Bootstrap rebrand ===== */
    --bs-primary: #17229D;
    --bs-primary-rgb: 23, 34, 157;
    --bs-primary-text-emphasis: #101a72;
    --bs-primary-bg-subtle: #e7ebfb;
    --bs-primary-border-subtle: #bcc4ef;
    --bs-link-color: #17229D;
    --bs-link-color-rgb: 23, 34, 157;
    --bs-link-hover-color: #05A895;
    --bs-link-hover-color-rgb: 5, 168, 149;
    --bs-warning: #8FAD13;
    --bs-warning-rgb: 143, 173, 19;
}

/* ===== Bootstrap component rebrand ===== */
.btn-primary {
    --bs-btn-bg: #17229D;
    --bs-btn-border-color: #17229D;
    --bs-btn-hover-bg: #101a72;
    --bs-btn-hover-border-color: #101a72;
    --bs-btn-active-bg: #101a72;
    --bs-btn-active-border-color: #101a72;
    --bs-btn-disabled-bg: #17229D;
    --bs-btn-disabled-border-color: #17229D;
}

.btn-outline-primary {
    --bs-btn-color: #17229D;
    --bs-btn-border-color: #17229D;
    --bs-btn-hover-bg: #17229D;
    --bs-btn-hover-border-color: #17229D;
    --bs-btn-active-bg: #17229D;
    --bs-btn-active-border-color: #17229D;
}

.bg-primary {
    background: var(--primary-gradient) !important;
}

.badge.bg-warning {
    background-color: var(--brand-olive) !important;
    color: #ffffff !important;
}



/* ========== Base & Typography ========== */
body {
    font-family: var(--font-primary);
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Selection */
::selection {
    background-color: var(--brand-indigo);
    color: #ffffff;
}

/* ========== Layout & Grid ========== */
main.container {
    flex: 1;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Glassmorphism & Custom Cards ========== */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 30px -12px rgba(23, 34, 157, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px -18px rgba(23, 34, 157, 0.28);
    border-color: rgba(161, 140, 229, 0.55);
}


.table-card {
    border-radius: 20px;
}

/* ========== Custom Navbar ========== */
.navbar {
    background: var(--nav-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    transition: background-color 0.3s ease;
}


.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
}

/* ========== Hero Section ========== */
.hero-card {
    background: var(--hero-gradient) !important;
    border: none;
    position: relative;
    border-radius: 24px;
}

.hero-glow {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    top: -50px;
    right: -50px;
    filter: blur(40px);
    pointer-events: none;
}

.fw-black {
    font-weight: 900;
    letter-spacing: -1.5px;
}

/* ========== Tech Specs details page ========== */
.pc-summary-card {
    border: 1px solid var(--card-border);
}

.card-hero-bg {
    background: linear-gradient(135deg, #17229D 0%, #2a2b8f 55%, #048174 100%);
}

.card-hero-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(5, 168, 149, 0.45) 0%, rgba(0,0,0,0) 60%);
    pointer-events: none;
}

.highlight-check {
    box-shadow: 0 4px 10px rgba(25, 135, 84, 0.15);
}

.w-30 {
    width: 30%;
}

.spec-sheet-table tr {
    border-bottom: 1px solid var(--card-border);
}

.spec-sheet-table td {
    padding: 12px 16px !important;
    font-size: 0.95rem;
}

/* ========== Tables Customization ========== */
.table {
    color: var(--text-primary) !important;
}

.table th {
    background-color: var(--table-header-bg) !important;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 14px 16px !important;
    border-top: none;
    border-bottom: 2px solid var(--card-border) !important;
}

.table td {
    padding: 16px 16px !important;
    border-bottom: 1px solid var(--card-border) !important;
}

.table-hover tbody tr:hover {
    background-color: rgba(23, 34, 157, 0.04) !important;
}


.pc-avatar {
    width: 42px;
    height: 42px;
    transition: transform 0.2s ease;
}

tr:hover .pc-avatar {
    transform: scale(1.1);
}

.brand-badge {
    background-color: var(--badge-bg) !important;
    color: var(--badge-text) !important;
    font-size: 0.75rem;
    border: 1px solid var(--card-border);
}

.pc-title-link {
    color: var(--text-primary) !important;
    transition: color 0.2s ease;
}

.pc-title-link:hover {
    color: var(--brand-indigo) !important;
}


.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========== jQuery DataTables Modern Styles Override ========== */
.dataTables_wrapper {
    padding-top: 10px;
}

/* DataTable Length & Filter Layout */
.dataTables_length, .dataTables_filter {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.dataTables_filter input {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    color: var(--text-primary) !important;
    border-radius: 30px !important;
    padding: 8px 16px 8px 36px !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' class='bi bi-search' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 12px center !important;
}

.dataTables_filter input:focus {
    outline: none;
    border-color: var(--brand-indigo) !important;
    box-shadow: 0 0 0 3px rgba(23, 34, 157, 0.15) !important;
}


.dataTables_length select {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    color: var(--text-primary) !important;
    border-radius: 8px !important;
    padding: 6px 32px 6px 12px !important;
}

/* Sort Icons styling */
table.dataTable thead > tr > th.sorting:before,
table.dataTable thead > tr > th.sorting:after,
table.dataTable thead > tr > th.sorting_asc:before,
table.dataTable thead > tr > th.sorting_asc:after,
table.dataTable thead > tr > th.sorting_desc:before,
table.dataTable thead > tr > th.sorting_desc:after {
    opacity: 0.3 !important;
    font-size: 0.8rem;
}

table.dataTable thead > tr > th.sorting_asc:before,
table.dataTable thead > tr > th.sorting_desc:after {
    opacity: 1 !important;
    color: var(--brand-indigo) !important;
}


/* Info and Pagination styling */
.dataTables_info {
    font-size: 0.875rem;
    color: var(--text-muted) !important;
    padding-top: 1.5rem !important;
    font-weight: 500;
}

.dataTables_paginate {
    padding-top: 1.2rem !important;
}

.dataTables_paginate .pagination {
    gap: 4px;
}

.dataTables_paginate .page-item .page-link {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.dataTables_paginate .page-item:hover .page-link {
    background-color: var(--table-header-bg);
    color: var(--text-primary);
}

.dataTables_paginate .page-item.active .page-link {
    background: var(--primary-gradient) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

.dataTables_paginate .page-item.disabled .page-link {
    background-color: transparent;
    border-color: var(--card-border);
    color: var(--text-muted);
    opacity: 0.5;
}

/* Buttons */
.table-btn {
    transition: all 0.2s ease;
    border: none;
    background: var(--primary-gradient) !important;
}

.table-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(23, 34, 157, 0.25) !important;
}

.back-btn {
    border-color: var(--card-border);
    color: var(--text-secondary);
    background-color: var(--card-bg);
    transition: all 0.2s ease;
}

.back-btn:hover {
    background-color: var(--table-header-bg);
    color: var(--text-primary);
    border-color: var(--card-border);
}

/* ========== Footer ========== */
footer {
    background-color: var(--card-bg) !important;
    border-top: 1px solid var(--card-border) !important;
    padding: 2rem 0;
    transition: background-color 0.3s ease;
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--card-border);
    border-radius: 5px;
    border: 2px solid var(--bg-main);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ========== Sticky Header and Columns ========== */
.table-responsive {
    max-height: 750px;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

/* Sticky Header Row */
#minipc-table thead th {
    position: sticky;
    top: 0;
    z-index: 100 !important;
    background-color: var(--table-header-bg) !important;
}

/* Sticky First Column (Image) */
#minipc-table th:nth-child(1),
#minipc-table td:nth-child(1) {
    position: sticky;
    left: 0;
    z-index: 20;
    background-color: #ffffff !important;
    min-width: 74px;
    max-width: 74px;
    width: 74px;
}

/* Sticky Second Column (Model) */
#minipc-table th:nth-child(2),
#minipc-table td:nth-child(2) {
    position: sticky;
    left: 74px;
    z-index: 20;
    background-color: #ffffff !important;
    box-shadow: 4px 0 8px -4px rgba(0, 0, 0, 0.15);
}

/* Header cells in the sticky columns need a higher z-index to stay on top of both vertical and horizontal scroll */
#minipc-table thead th:nth-child(1) {
    z-index: 110 !important;
    background-color: var(--table-header-bg) !important;
}
#minipc-table thead th:nth-child(2) {
    z-index: 110 !important;
    background-color: var(--table-header-bg) !important;
    box-shadow: 4px 0 8px -4px rgba(0, 0, 0, 0.15);
}

/* Row Hover styles for sticky cells */
.table-hover tbody tr:hover td:nth-child(1),
.table-hover tbody tr:hover td:nth-child(2) {
    background-color: #f6f8ff !important;
}

/* ==========================================================================
   Category Article Pages (Buying Guides)
   ========================================================================== */

.category-article {
    counter-reset: article-section;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 0 2rem 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
}

/* ---------- Section Nav (Table of Contents) ---------- */
.article-section-nav {
    position: relative;
    width: 100%;
    margin: 0 0 1.5rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #f3f8ff 0%, #eef0fc 100%);
    border: 1px solid rgba(23, 34, 157, 0.12);
    border-left: 4px solid var(--brand-indigo);
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.article-section-nav h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--brand-indigo);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.article-section-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.article-section-nav li {
    margin: 0;
    padding: 0;
}

.article-section-nav a {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    color: var(--text-secondary);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.82rem;
    transition: all 0.15s ease;
}

.article-section-nav a:hover {
    color: var(--brand-indigo);
    border-color: var(--brand-indigo);
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(23, 34, 157, 0.12);
}

.article-section-nav a.active {
    color: #ffffff;
    background: var(--brand-indigo);
    border-color: var(--brand-indigo);
}

/* ---------- Meta Bar ---------- */
.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    padding: 0.75rem 1.25rem;
    margin-bottom: 2rem;
    background: var(--table-header-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.article-meta-bar span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.article-meta-bar strong {
    color: var(--text-primary);
}

/* ---------- Section headings (separated bands) ---------- */
.category-article h2 {
    counter-increment: article-section;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-top: 3.25rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem 1rem 1.1rem;
    border: 1px solid rgba(23, 34, 157, 0.10);
    border-left: 5px solid var(--brand-indigo);
    border-radius: 14px;
    background: linear-gradient(120deg, rgba(203, 227, 245, 0.45) 0%, rgba(161, 140, 229, 0.10) 100%);
    color: var(--brand-indigo-dark);
    clear: none;
    scroll-margin-top: 1.5rem;
}

/* Numbered chip before each section heading */
.category-article h2::before {
    content: counter(article-section);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    background: var(--primary-gradient);
    border-radius: 10px;
    box-shadow: 0 6px 14px -4px rgba(23, 34, 157, 0.5);
}

.category-article h2:first-of-type {
    margin-top: 0;
}

/* The block of content that follows each heading, visually tied to it */
.category-article h3 {
    position: relative;
    font-size: 1.18rem;
    font-weight: 700;
    margin-top: 1.75rem;
    margin-bottom: 0.6rem;
    padding-left: 0.85rem;
    color: var(--text-primary);
    border-left: 3px solid var(--brand-teal);
}

/* ---------- Body copy ---------- */
.category-article p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.category-article ul,
.category-article ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.category-article li {
    margin-bottom: 0.4rem;
}

.category-article strong {
    color: var(--text-primary);
    font-weight: 700;
}

.category-article em {
    font-style: italic;
}

/* ---------- Article Tables ---------- */
.category-article table {
    width: 100%;
    margin: 1.25rem 0;
    border-collapse: collapse;
    font-size: 0.9rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.category-article thead {
    background: var(--primary-gradient);
    color: #ffffff;
}

.category-article thead th {
    padding: 0.7rem 1rem;
    font-weight: 600;
    text-align: left;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.category-article tbody tr {
    border-bottom: 1px solid var(--card-border);
    transition: background-color 0.15s ease;
}

.category-article tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.category-article tbody tr:hover {
    background-color: rgba(23, 34, 157, 0.05);
}

.category-article tbody td {
    padding: 0.7rem 1rem;
    color: var(--text-secondary);
    vertical-align: top;
}

/* ---------- Article Links ---------- */
.category-article a {
    color: var(--brand-indigo);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(23, 34, 157, 0.28);
    transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.category-article a:hover {
    color: var(--brand-teal);
    text-decoration-color: var(--brand-teal);
}

/* ---------- Section separator comment ---------- */
.category-article br[clear="all"] {
    display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .category-article {
        max-width: 100%;
        font-size: 1rem;
    }

    .category-article h2 {
        font-size: 1.4rem;
    }

    .article-section-nav {
        padding: 1rem;
    }

    .article-section-nav a {
        font-size: 0.78rem;
        padding: 0.2rem 0.5rem;
    }

    .article-meta-bar {
        flex-direction: column;
        gap: 0.3rem;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .category-article {
        padding: 0;
    }

    .category-article table {
        font-size: 0.8rem;
    }

    .category-article thead th,
    .category-article tbody td {
        padding: 0.5rem 0.6rem;
    }

    .category-article h2 {
        font-size: 1.25rem;
        gap: 0.6rem;
        padding: 0.8rem 0.9rem;
    }

    .category-article h2::before {
        width: 1.7rem;
        height: 1.7rem;
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   Category "Latest Gadgets" Panel + DataTable (topic pages)
   ========================================================================== */

.category-gadgets {
    max-width: 1040px;
    margin: 0 auto 3rem;
}

.category-gadgets .section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--brand-teal);
    margin-bottom: 0.35rem;
}

.category-gadgets .section-title {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
}

/* Latest gadget cards */
.gadget-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 1.25rem 1.25rem 1.1rem;
    box-shadow: 0 10px 30px -14px rgba(23, 34, 157, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gadget-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--accent-gradient);
}

.gadget-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 46px -18px rgba(23, 34, 157, 0.32);
    border-color: rgba(161, 140, 229, 0.6);
}

.gadget-card-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    font-size: 1.3rem;
    color: #fff;
    background: var(--primary-gradient);
    box-shadow: 0 8px 18px -6px rgba(23, 34, 157, 0.5);
    flex-shrink: 0;
}

.gadget-card .brand-chip {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--brand-indigo);
    background: var(--badge-bg);
    border-radius: 30px;
    padding: 0.2rem 0.65rem;
}

.gadget-card h4 {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin: 0.15rem 0 0.35rem;
    line-height: 1.3;
}

.gadget-card h4 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.gadget-card:hover h4 a {
    color: var(--brand-indigo);
}

.gadget-card .cat-chip {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brand-teal-dark);
    background: rgba(5, 168, 149, 0.10);
    border-radius: 30px;
    padding: 0.2rem 0.6rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.gadget-card .cat-chip:hover {
    background: rgba(5, 168, 149, 0.22);
}

.gadget-card .spec-line {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.3rem;
}

.gadget-card .spec-line i {
    color: var(--brand-teal);
}

.gadget-card .price-tag {
    margin-top: auto;
    padding-top: 0.85rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--brand-teal-dark);
}

.gadget-card .new-flag {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #fff;
    background: var(--brand-olive);
    border-radius: 30px;
    padding: 0.15rem 0.5rem;
}

/* View all button */
.btn-view-all {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 0.7rem 1.6rem;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 10px 24px -10px rgba(23, 34, 157, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-view-all:hover {
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 16px 32px -12px rgba(23, 34, 157, 0.7);
}

.btn-view-all:disabled {
    opacity: 0.6;
}

/* Compact category chips (homepage) */
.category-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.05rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    box-shadow: 0 6px 18px -14px rgba(23, 34, 157, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.category-chip:hover {
    color: #ffffff;
    background: var(--primary-gradient);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 14px 26px -12px rgba(23, 34, 157, 0.5);
}

.category-chip .chip-count {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand-indigo);
    background: var(--badge-bg);
    border-radius: 30px;
    padding: 0.05rem 0.5rem;
    line-height: 1.4;
}

.category-chip:hover .chip-count {
    color: var(--brand-indigo);
    background: #ffffff;
}

/* DataTable panel */
.category-table-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 14px 40px -18px rgba(23, 34, 157, 0.2);
}

.category-table-panel table.dataTable thead th {
    background: var(--table-header-bg) !important;
    color: var(--brand-indigo-dark);
    white-space: nowrap;
}

.category-table-panel .model-cell a {
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.category-table-panel .model-cell a:hover {
    color: var(--brand-indigo);
}

.category-table-panel .model-cell small {
    color: var(--text-muted);
}

