/* =========================================
   CUSTOM.CSS - CLEAN TEAL THEME
   สีหลัก: #12c1a2 (Teal/เขียวมรกต)
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700;800&display=swap');

/* ===== 1. VARIABLES ===== */

:root {
    --primary: #12c1a2;
    --secondary: #10a689;
    --accent: #f59e0b;
    --bg: #f8fafc;
    --bg2: #fff;
    --bg3: #f1f5f9;
    --dark: #0f172a;
    --text: #0f172a;
    --text2: #64748b;
    --border: #e2e8f0;
    --hero: #12c1a2;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Prompt', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: clip;
    margin: 0;
    padding: 0;
    font-weight: 300;
}

a {
    text-decoration: none;
}


/* ===== 2. NAVBAR ===== */

.navbar {
    background: rgba(15, 23, 42, .95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary);
    transition: color .3s;
}

.navbar-brand:hover {
    color: #fff;
}

.nav-link {
    color: rgba(255, 255, 255, .8) !important;
    font-weight: 500;
    font-size: .9rem;
}

.nav-link:hover,
.nav-link.active,
.nav-link:focus {
    color: var(--primary) !important;
}


/* Search Box */

.search-box {
    display: flex;
    gap: 5px;
    align-items: center;
}

.search-input {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 20px;
    padding: 8px 16px;
    color: #fff;
    font-size: .85rem;
    width: 200px;
    transition: all .3s;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, .5);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, .15);
    border-color: var(--primary);
    width: 250px;
}

.search-btn {
    background: rgba(255, 255, 255, .1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
}

.search-btn:hover {
    background: var(--primary);
}


/* ===== 3. HOME PAGE ===== */

.hero-section {
    background: #0f172a;
    padding: 90px 0 50px;
    margin-top: 60px;
}


/* Section Headers */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-title-white,
.section-title-dark {
    font-weight: 700;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title-white {
    color: #fff;
}

.section-title-white i {
    color: var(--accent);
}

.section-title-dark {
    color: var(--text);
    margin-bottom: 25px;
}

.section-title-dark i {
    color: var(--accent);
}

.view-all {
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    font-size: .85rem;
    transition: color .2s;
}

.view-all:hover {
    color: var(--primary);
}


/* Category Pills */

.cat-pill {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: .8rem;
    cursor: pointer;
    transition: all .3s;
}

.cat-pill:hover,
.cat-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(18, 193, 162, 0.4);
}

.cat-pill i {
    margin-right: 5px;
}


/* Main Slider */

.main-slider-area {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    margin-bottom: 40px;
}

.slider-container {
    overflow: hidden;
    border-radius: 16px;
    position: relative;
    cursor: grab;
    user-select: none;
}

.slider-container:active {
    cursor: grabbing;
}

.slider-track {
    display: flex;
    transition: transform .5s;
}

.main-slide {
    min-width: 100%;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    user-select: none;
}

.main-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

.main-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .9));
}

.main-slide-badge {
    background: var(--accent);
    color: #000;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: .7rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
}

.main-slide h2 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.main-slide p {
    color: rgba(255, 255, 255, .8);
    font-size: .85rem;
    margin-bottom: 10px;
}

.slide-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 500;
    font-size: .85rem;
    margin-top: 15px;
    transition: all .3s;
}

.slide-read-more:hover {
    background: rgba(255, 255, 255, .25);
    border-color: rgba(255, 255, 255, .4);
}


/* Slider Controls */

.slider-controls {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    align-items: center;
}

.slider-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(10px);
    color: #fff;
    cursor: pointer;
    transition: all .3s;
    font-size: .9rem;
}

.slider-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 6px;
    margin-left: 15px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .4);
    border: 1px solid rgba(255, 255, 255, .2);
    cursor: pointer;
    transition: all .3s;
}

.dot.active {
    background: var(--primary);
    border-color: var(--primary);
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(18, 193, 162, 0.5);
}


/* Sidebar */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-card {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: all .3s;
    text-decoration: none;
}

.sidebar-card:hover {
    background: rgba(255, 255, 255, .08);
    border-color: var(--primary);
    transform: translateX(3px);
}

.sidebar-card:hover {
    background: rgba(255, 255, 255, .08);
    border-color: var(--primary);
    transform: translateX(3px);
}

.sidebar-card img {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-card h6 {
    color: #fff;
    font-weight: 600;
    font-size: .8rem;
    margin-bottom: 6px;
}

.sidebar-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .65rem;
    font-weight: 600;
    margin-bottom: 5px;
    display: inline-block;
}


/* Trending Grid */

.trending-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.trend-card {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.trend-card:hover {
    background: rgba(255, 255, 255, .08);
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
}

.trend-card:hover {
    background: rgba(255, 255, 255, .08);
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
}

.trend-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.trend-card-body {
    padding: 15px;
}

.trend-card h6 {
    color: #fff;
    font-weight: 600;
    font-size: .85rem;
    margin-bottom: 8px;
}

.trend-card-meta {
    color: rgba(255, 255, 255, .5);
    font-size: .75rem;
}


/* ===== 4. CONTENT SECTION ===== */

.content-section {
    padding: 60px 0;
    background: var(--bg2);
}

.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

.main-content {
    min-width: 0;
}

.content-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}


/* Cards */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.content-card {
    background: var(--bg2);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .15);
}

.content-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.content-card-body {
    padding: 18px;
}

.content-card-badge {
    background: #3b82f6;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: .7rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

.content-card h5 {
    font-weight: 700;
    font-size: .95rem;
    margin-bottom: 8px;
    color: var(--text);
}

.content-card p {
    color: var(--text2);
    font-size: .8rem;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-card-meta {
    color: var(--text2);
    font-size: .75rem;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
}


/* Buttons */

.cta-btn {
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none !important;
    font-weight: 600;
    transition: background .3s, transform .3s, box-shadow .3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    color: #fff !important;
    outline: none;
}

.cta-btn:focus,
.cta-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.cta-btn.primary {
    background: var(--primary);
    color: #fff;
}

.cta-btn.primary:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(18, 193, 162, .4);
}

.cta-btn.secondary {
    background: var(--bg3);
    color: var(--text);
    border: 2px solid var(--border);
}

.cta-btn.secondary:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}


/* ===== 5. SIDEBAR WIDGETS ===== */

.sidebar-widget {
    background: var(--bg2);
    border-radius: 16px;
    padding: 18px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.widget-title {
    font-size: .9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.widget-title i {
    margin-right: 8px;
    color: var(--primary);
}


/* Latest Posts */

.latest-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.latest-post-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    padding: 10px;
    border-radius: 10px;
    transition: all .2s;
}

.latest-post-item:hover {
    background: var(--bg3);
}

.latest-post-img {
    width: 70px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.latest-post-content h4 {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 5px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-post-time {
    font-size: .75rem;
    color: var(--text2);
    display: flex;
    align-items: center;
    gap: 4px;
}


/* Tags */

.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.popular-tag,
.tag-pill {
    background: var(--bg3);
    color: var(--text2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
}

.popular-tag:hover,
.tag-pill:hover,
.tag-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.popular-tag .tag-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: .7rem;
}


/* ===== 6. REVIEW SLIDER ===== */

.reviews-section {
    height: 450px;
    position: relative;
    overflow: hidden;
    cursor: grab;
    user-select: none;
}

.reviews-section:active {
    cursor: grabbing;
}

.reviews-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.reviews-slider-track {
    display: flex;
    transition: transform .8s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.review-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    user-select: none;
}

.review-slide-bg {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.review-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, .8) 100%);
}

.review-slide-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 60px 80px;
    color: #fff;
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.review-tag {
    display: inline-block;
    background: #8b5cf6;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.highlight-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #fff;
}

.highlight-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, .8);
    line-height: 1.6;
    max-width: 500px;
}

.review-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 500;
    font-size: .95rem;
    margin-top: 25px;
    transition: all .3s;
}

.review-read-more:hover {
    background: rgba(255, 255, 255, .25);
    border-color: rgba(255, 255, 255, .5);
    transform: translateY(-2px);
}

.review-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    transition: all .3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-nav-btn:hover {
    background: rgba(255, 255, 255, .2);
    border-color: rgba(255, 255, 255, .4);
    transform: translateY(-50%) scale(1.05);
}

.review-nav-btn.prev {
    left: 15px;
}

.review-nav-btn.next {
    right: 15px;
}

.review-controls-full {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.review-dot-full {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .4);
    border: 2px solid rgba(255, 255, 255, .6);
    cursor: pointer;
    transition: all .3s;
}

.review-dot-full:hover {
    background: rgba(255, 255, 255, .8);
    transform: scale(1.3);
}

.review-dot-full.active {
    background: #fff;
    width: 50px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, .5);
}


/* ===== 7. BIG DEAL SECTION ===== */

.big-deal-section {
    background: #0f172a;
    padding: 40px 0 60px;
    position: relative;
}

.deal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.deal-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.deal-badge {
    background: #ef4444;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.deal-title h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.deal-view-all {
    color: var(--primary);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all .2s;
}

.deal-view-all:hover {
    gap: 10px;
}

.deal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.deal-card {
    background: var(--bg2);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    gap: 16px;
    padding: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .08);
    border: 1px solid var(--border);
    transition: all .3s;
}

.deal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(18, 193, 162, .15);
    border-color: var(--primary);
}

.deal-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    background: var(--bg3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.deal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.deal-card:hover .deal-image img {
    transform: scale(1.05);
}

.deal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.deal-name {
    margin: 0 0 12px;
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.deal-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.deal-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: all .2s;
    color: #fff;
}

.deal-link:hover {
    transform: translateX(4px);
    color: #fff;
}

.deal-link-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .2);
}

.deal-link-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.deal-link-platform {
    font-size: .7rem;
    opacity: .9;
    font-weight: 500;
}

.deal-link-price {
    font-size: .95rem;
    font-weight: 700;
}


/* Platform Colors */

.deal-link-shopee {
    background: #ee4d2d;
}

.deal-link-lazada {
    background: #0f146d;
}

.deal-link-tiktok {
    background: #000;
}


/* ===== 8. TOOLS PROMO ===== */

.tools-promo-section {
    padding: 60px 0;
}

.tools-promo-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(18, 193, 162, .08);
    background-image: radial-gradient(rgba(18, 193, 162, .1) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

.tools-promo-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(18, 193, 162, .15) 0%, transparent 70%);
    z-index: 0;
}

.promo-content,
.promo-visuals {
    position: relative;
    z-index: 2;
}

.promo-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--primary);
}

.promo-desc {
    font-size: 1.1rem;
    color: var(--text2);
    margin-bottom: 30px;
    max-width: 500px;
}

.btn-promo-gradient {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all .3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(18, 193, 162, .3);
}

.btn-promo-gradient:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(18, 193, 162, .5);
    color: white;
}


/* ===== 9. FOOTER ===== */

.modern-footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: 80px 0 30px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, .05);
}

.footer-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
    display: inline-block;
}

.footer-description {
    color: #94a3b8;
    font-size: .95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all .3s;
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(18, 193, 162, .3);
}

.footer-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-link-list {
    list-style: none;
    padding: 0;
}

.footer-link-list li {
    margin-bottom: 12px;
}

.footer-link-list a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all .3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .95rem;
}

.footer-link-list a:hover {
    color: var(--primary);
    transform: translateX(5px);
}


/* ===== 10. UTILITIES ===== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(18, 193, 162, .4);
    transition: all .3s;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

.fw-600 {
    font-weight: 600 !important;
}


/* ===== 11. RESPONSIVE ===== */

@media (max-width: 1200px) {
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .deal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .main-slider-area {
        grid-template-columns: 1fr;
    }
    .sidebar {
        flex-direction: row;
        overflow-x: auto;
    }
    .sidebar-card {
        min-width: 260px;
    }
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }
    .content-sidebar {
        position: static;
    }
    .reviews-section {
        height: 400px;
    }
    .review-slide-content {
        padding: 40px 30px;
        text-align: center;
    }
    .review-slide-overlay {
        background: linear-gradient(to top, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .5) 50%, rgba(0, 0, 0, .2) 100%);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 40px;
    }
    .search-input {
        width: 150px;
    }
    .trending-grid {
        grid-template-columns: 1fr 1fr;
    }
    .card-grid {
        grid-template-columns: 1fr 1fr;
    }
    .deal-grid {
        grid-template-columns: 1fr;
    }
    .highlight-title {
        font-size: 1.5rem;
    }
    .highlight-desc {
        font-size: .9rem;
    }
}

@media (max-width: 576px) {
    .trending-grid {
        grid-template-columns: 1fr;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
    .deal-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .deal-image {
        width: 100%;
        height: 160px;
    }
    .search-box {
        display: none;
    }
}


/* ===== 12. ARTICLE DETAIL ===== */

.article-page {
    background: var(--bg);
    padding-top: 32px;
}

.article-container {
    max-width: 1280px;
    margin: 60px auto 0;
    padding: 0 24px 80px;
}

.article-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 56px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--text2);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.article-category {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    color: #fff;
    background: #3b82f6;
    padding: 6px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
    text-decoration: none;
    margin-bottom: 16px;
    transition: .2s;
}

.article-category:hover {
    background: #2563eb;
}

.article-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 32px;
    letter-spacing: -.025em;
}

.article-cover {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.article-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text2);
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 48px 0 16px;
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 32px 0 12px;
}

.article-content p {
    margin-bottom: 20px;
    max-width: 72ch;
}


/* Pros/Cons */

.pro-con-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.pc-card {
    padding: 25px;
    border-radius: 16px;
}

.pc-card.pros {
    background: rgba(16, 185, 129, .1);
    border: 1px solid rgba(16, 185, 129, .3);
}

.pc-card.cons {
    background: rgba(239, 68, 68, .1);
    border: 1px solid rgba(239, 68, 68, .3);
}

.pc-title {
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.pc-title.pro {
    color: #10b981;
}

.pc-title.con {
    color: #ef4444;
}

.pc-list {
    list-style: none;
    padding: 0;
}

.pc-list li {
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
    color: var(--text);
}

.pc-card.pros li::before {
    content: '\F26A';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    color: #10b981;
}

.pc-card.cons li::before {
    content: '\F62A';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    color: #ef4444;
}


/* Sidebar - Article */

.sidebar-sticky-wrapper {
    position: sticky;
    top: 100px;
}

.price-card {
    background: var(--bg2);
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .05);
    margin-bottom: 20px;
}

.price-tag-large {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    margin: 10px 0;
}

.btn-buy-primary {
    background: var(--primary);
    color: white;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 10px;
    width: 100%;
    border: none;
    transition: all .2s;
    display: block;
    text-decoration: none;
}

.btn-buy-primary:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 10px 20px rgba(18, 193, 162, .3);
}


/* ===== 13. ARTICLES LIST PAGE ===== */

.page-header {
    background: #0f172a;
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
    margin-top: -60px;
}

.page-title {
    color: white;
    font-weight: 800;
    margin-bottom: 20px;
    font-size: 2.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, .3);
}

.header-desc {
    color: rgba(255, 255, 255, .7);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.content-area {
    padding-top: 100px;
}

.article-card-row {
    background: var(--bg2);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1rem;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    border: 1px solid var(--border);
    display: flex;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.article-card-row:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
    border-color: var(--primary);
}

.ac-img-wrapper {
    width: 300px;
    height: 240px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg3);
}

.ac-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.article-card-row:hover .ac-img-wrapper img {
    transform: scale(1.05);
}

.ac-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #3b82f6;
    color: white;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: .75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(59, 130, 246, .3);
}

.ac-content {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ac-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.4;
    text-decoration: none;
    transition: color .2s;
}

.ac-title:hover {
    color: var(--primary);
}

.ac-desc {
    color: var(--text2);
    font-size: .85rem;
    margin-bottom: 15px;
    flex-grow: 1;
}

.ac-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .85rem;
    color: var(--text2);
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.ac-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ac-author img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}


/* Sidebar Categories */

.cat-item {
    color: var(--text2);
    transition: all .2s;
    border: 1px solid transparent;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
}

.cat-item:hover {
    background: var(--bg3);
    border-color: var(--border);
    transform: translateX(3px);
    color: var(--primary);
}

.cat-item.active {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 4px 10px rgba(59, 130, 246, .3);
}

.cat-item.active * {
    color: #fff !important;
}

.icon-box {
    width: 30px;
    height: 30px;
    background: var(--bg3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    font-size: .85rem;
}

.cat-item.active .icon-box {
    background: rgba(255, 255, 255, .2);
}


/* Pagination */

.pagination .page-link {
    border-radius: 8px;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: .85rem;
    border: 1px solid var(--border);
    background: var(--bg2);
    color: var(--text2);
    transition: all .2s;
    margin: 0 2px;
}

.pagination .page-link:hover {
    background: var(--bg3);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(18, 193, 162, .3);
}


/* Not Found */

.not-found-box {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg2);
    border-radius: 16px;
    border: 2px dashed var(--border);
}

.nf-icon {
    font-size: 5rem;
    color: var(--text2);
    opacity: .3;
    margin-bottom: 20px;
    display: block;
}

.nf-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.nf-desc {
    color: var(--text2);
    margin-bottom: 30px;
}

.suggestion-tags a {
    display: inline-block;
    padding: 8px 18px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text2);
    text-decoration: none;
    font-size: .9rem;
    transition: all .2s;
    margin: 5px;
}

.suggestion-tags a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}


/* ===== 14. PRODUCTS PAGE ===== */

.pgrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.pc {
    background: var(--bg2);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all .3s;
    display: flex;
    flex-direction: column;
}

.pc:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .1);
    border-color: var(--primary);
}

.pc-img {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--bg3);
}

.pc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.pc:hover .pc-img img {
    transform: scale(1.05);
}

.pc-badge-disc {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ef4444;
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: .68rem;
    font-weight: 800;
}

.pc-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pc-name {
    font-size: .88rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pc-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.pc-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ef4444;
}

.pc-price-old {
    font-size: .78rem;
    color: var(--text2);
    text-decoration: line-through;
}

.pc-btns {
    display: flex;
    gap: 5px;
    margin-top: auto;
    flex-wrap: wrap;
}

.pc-btn {
    flex: 1 1 auto;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    border-radius: 8px;
    font-size: .7rem;
    font-weight: 700;
    color: #fff;
    transition: all .2s;
    text-decoration: none;
}

.pc-btn:hover {
    transform: translateY(-2px);
    color: #fff;
}

.pc-btn--shopee {
    background: #ee4d2d;
}

.pc-btn--shopee:hover {
    background: #d73919;
}

.pc-btn--lazada {
    background: #0f146d;
}

.pc-btn--lazada:hover {
    background: #0a0e50;
}

.pc-btn--tiktok {
    background: #111;
}

.pc-btn--tiktok:hover {
    background: #333;
}


/* ===== 15. RESPONSIVE FINAL ===== */

@media (max-width: 1024px) {
    .pgrid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
    .article-card-row {
        flex-direction: column;
    }
    .ac-img-wrapper {
        width: 100%;
        height: 220px;
    }
    .pro-con-grid {
        grid-template-columns: 1fr;
    }
    .pgrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .page-header {
        padding: 100px 0 50px;
    }
}

@media (max-width: 576px) {
    .pgrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .pc-btn {
        font-size: .6rem;
    }
}


/* ===== 16. PRODUCTS PAGE ===== */


/* Toolbar */

.prod-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.prod-result-count {
    font-size: .85rem;
    color: var(--text2);
    flex-shrink: 0;
}

.prod-result-count strong {
    color: var(--text);
}

.prod-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}


/* Search */

.prod-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.prod-search-box i {
    position: absolute;
    left: 12px;
    color: var(--text2);
    font-size: .82rem;
    pointer-events: none;
}

.prod-search-box input {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 14px 8px 34px;
    font-size: .82rem;
    color: var(--text);
    width: 180px;
    transition: all .25s;
}

.prod-search-box input:focus {
    outline: none;
    width: 240px;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(18, 193, 162, .1);
}

.prod-search-box input::placeholder {
    color: var(--text2);
    opacity: .6;
}


/* Sort */

.prod-sort-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.prod-sort-wrap>i {
    position: absolute;
    left: 12px;
    color: var(--text2);
    font-size: .82rem;
    pointer-events: none;
}

.prod-sort-sel {
    appearance: none;
    -webkit-appearance: none;
    background: var(--bg2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%2364748b' d='M5 7L1 3h8z'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 34px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all .2s;
    min-width: 140px;
}

.prod-sort-sel:focus {
    outline: none;
    border-color: var(--primary);
}


/* Product Card */

.pc-cat {
    font-size: .65rem;
    font-weight: 600;
    color: #fff;
    background: #3b82f6;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: 6px;
    display: inline-block;
    align-self: flex-start;
}

.pc-price-na {
    font-size: .82rem;
    color: var(--text2);
}

.pc-views {
    margin-left: auto;
    font-size: .68rem;
    color: var(--text2);
    display: flex;
    align-items: center;
    gap: 3px;
}


/* Empty State */

.prod-empty {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg2);
    border-radius: 16px;
    border: 2px dashed var(--border);
    margin-top: 20px;
}

.prod-empty i {
    font-size: 4rem;
    color: var(--text2);
    opacity: .3;
    display: block;
    margin-bottom: 16px;
}

.prod-empty h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.prod-empty p {
    color: var(--text2);
    margin-bottom: 24px;
}


/* Bottom Section */

.prod-bottom {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.pb-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pb-title i {
    color: var(--accent);
}


/* Popular Grid */

.pb-pop-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.pb-pop-item {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    transition: all .25s;
    text-decoration: none;
}

.pb-pop-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.pb-pop-item img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    margin: 0 auto 10px;
    display: block;
    border: 1px solid var(--border);
}

.pb-pop-item h6 {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pb-pop-price {
    font-size: .8rem;
    font-weight: 800;
    color: #ef4444;
}


/* Articles Grid */

.pb-art-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.pb-art-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all .25s;
    text-decoration: none;
}

.pb-art-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
}

.pb-art-item img {
    width: 70px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.pb-art-item div {
    flex: 1;
    min-width: 0;
}

.pb-art-item h6 {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pb-art-item span {
    font-size: .68rem;
    color: var(--text2);
    display: flex;
    align-items: center;
    gap: 3px;
}


/* Products Page Responsive */

@media (max-width: 1200px) {
    .pb-pop-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .pb-art-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .pb-pop-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .pb-pop-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .pb-art-grid {
        grid-template-columns: 1fr;
    }
    .prod-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .prod-toolbar-right {
        width: 100%;
    }
    .prod-search-box {
        flex: 1;
    }
    .prod-search-box input {
        width: 100%;
    }
    .prod-search-box input:focus {
        width: 100%;
    }
    .prod-sort-sel {
        min-width: 120px;
    }
    .pc-body {
        padding: 12px;
    }
    .pc-name {
        font-size: .82rem;
    }
    .pc-price {
        font-size: 1rem;
    }
    .pc-btn {
        padding: 7px 3px;
        font-size: .65rem;
    }
    .pc-btn-price {
        display: none;
    }
    .pc-btns {
        flex-direction: column;
        gap: 6px;
    }
    .pc-btn {
        width: 100%;
        padding: 8px 10px;
        min-width: unset;
    }
}

@media (max-width: 576px) {
    .pb-pop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pc-body {
        padding: 10px;
    }
    .pc-cat {
        font-size: .6rem;
    }
    .pc-name {
        font-size: .78rem;
        margin-bottom: 6px;
    }
    .pc-price {
        font-size: .92rem;
    }
    .pc-price-old {
        font-size: .68rem;
    }
    .pc-views {
        display: none;
    }
    .pc-btns {
        gap: 4px;
    }
    .pc-btn {
        font-size: .75rem;
        padding: 8px;
        border-radius: 6px;
    }
}

@media (max-width: 380px) {
    .prod-toolbar-right {
        flex-direction: column;
        gap: 8px;
    }
    .prod-sort-sel {
        width: 100%;
        min-width: unset;
    }
    .pb-pop-item {
        padding: 10px;
    }
    .pb-pop-item img {
        width: 50px;
        height: 50px;
    }
}


/* ===== 17. ARTICLE DETAIL PAGE ===== */


/* Base */

.article-page {
    background: var(--bg);
    padding-top: 32px;
}

.article-container {
    max-width: 1280px;
    margin: 60px auto 0;
    padding: 0 24px 80px;
}


/* Grid */

.article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
}

@media (min-width: 1024px) {
    .article-grid {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 56px;
    }
}


/* Header */

.article-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: #3b82f6;
    padding: 6px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    margin-bottom: 16px;
    transition: 0.2s;
}

.article-category:hover {
    background: #2563eb;
}

.article-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 32px;
    letter-spacing: -0.025em;
}


/* Cover */

.article-cover {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.article-cover img {
    width: 100%;
    height: auto;
    display: block;
}


/* Content */

.article-content {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text2);
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 48px 0 16px;
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 32px 0 12px;
}

.article-content p {
    margin-bottom: 20px;
    max-width: 72ch;
}

.article-content a {
    color: var(--primary);
    text-decoration: none;
}

.article-content a:hover {
    text-decoration: underline;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    margin: 32px 0;
    padding: 24px 32px;
    border-left: 3px solid var(--primary);
    background: rgba(18, 193, 162, 0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.article-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 24px 0;
}


/* Article Footer */

.article-footer {
    margin-top: 48px;
    padding-top: 32px;
}

.article-date {
    font-size: 0.85rem;
    color: var(--text2);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}


/* Tags */

.tags-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tags-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    font-size: 0.85rem;
    color: var(--text2);
    background: var(--bg3);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.2s;
    font-weight: 500;
    border: 1px solid var(--border);
}

.tag:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}


/* Related */

.related {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.related-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
}

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

.related-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: 0.2s;
}

.related-item:hover .related-item-title {
    color: var(--primary);
}

.related-item img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: 0.3s;
}

.related-item:hover img {
    transform: scale(1.02);
}

.related-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 6px;
    transition: 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-item-date {
    font-size: 0.75rem;
    color: var(--text2);
}


/* Sidebar */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media (min-width: 1024px) {
    .sidebar {
        position: sticky;
        top: 100px;
        height: fit-content;
        align-self: start;
    }
}

.sidebar-section {
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.sidebar-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title i {
    color: var(--accent);
}


/* Trending */

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trending-item {
    display: flex;
    gap: 14px;
    text-decoration: none;
    padding: 10px;
    margin: -10px;
    border-radius: 8px;
    transition: 0.2s;
}

.trending-item:hover {
    background: var(--bg3);
}

.trending-item:hover .trending-item-title {
    color: var(--primary);
}

.trending-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text2);
    line-height: 1;
    min-width: 20px;
    padding-top: 2px;
}

.trending-item:nth-child(1) .trending-num {
    color: #ef4444;
}

.trending-item:nth-child(2) .trending-num {
    color: var(--text);
}

.trending-item:nth-child(3) .trending-num {
    color: var(--text2);
}

.trending-thumb {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: var(--bg3);
}

.trending-info {
    flex: 1;
    min-width: 0;
}

.trending-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: 0.2s;
    margin-bottom: 4px;
}

.trending-views {
    font-size: 0.75rem;
    color: var(--text2);
    display: flex;
    align-items: center;
    gap: 4px;
}


/* Sidebar Products */

.sidebar-products {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    margin: -10px;
    border-radius: 8px;
    transition: 0.2s;
}

.sidebar-product:hover {
    background: var(--bg3);
}

.sidebar-product-thumb {
    position: relative;
    cursor: pointer;
}

.sidebar-product-thumb img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--bg3);
}

.sidebar-product-info {
    flex: 1;
    min-width: 0;
}

.sidebar-product-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.sidebar-product-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ef4444;
}

.sidebar-product-btns {
    display: flex;
    gap: 4px;
}

.sidebar-product-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none;
    font-size: 0.8rem;
    transition: 0.2s;
}

.sidebar-product-btn:hover {
    transform: scale(1.1);
}

.sidebar-product-btn.shopee {
    background: #ee4d2d;
}

.sidebar-product-btn.lazada {
    background: #0f146d;
}

.sidebar-product-btn.tiktok {
    background: #000;
}


/* Ad */

.ad-space {
    background: var(--bg3);
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 40px 16px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text2);
}


/* Products Box */

.products-box {
    margin: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 32px 0;
}

.products-box-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 10px;
    margin: 0 -10px;
    border-bottom: 1px solid var(--border);
    border-radius: 8px;
    transition: background .2s;
}

.product-item:hover {
    background: var(--bg2, #f8f9fa);
}

.product-item:last-child {
    border-bottom: none;
}

.product-thumb {
    position: relative;
    cursor: pointer;
}

.product-thumb img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--bg3);
    transition: 0.2s;
}

.product-thumb:hover img {
    opacity: 0.8;
}

.product-thumb::after {
    content: '\F62C';
    font-family: 'bootstrap-icons';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1rem;
    opacity: 0;
    transition: 0.2s;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.product-thumb:hover::after {
    opacity: 1;
}

.product-info {
    flex: 1;
    min-width: 0;
}

.product-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.product-price {
    font-size: 1rem;
    font-weight: 700;
    color: #ef4444;
}

.product-price del {
    font-weight: 400;
    color: var(--text2);
    font-size: 0.85rem;
    margin-left: 6px;
}

.product-btns {
    display: flex;
    gap: 6px;
}

.product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none;
    transition: 0.2s;
    outline: none;
}

.product-btn:hover,
.product-btn:focus,
.product-btn:focus-visible,
.product-btn:active {
    outline: none !important;
    box-shadow: none !important;
    color: #fff !important;
    text-decoration: none !important;
}

.product-btn.shopee {
    background: #ee4d2d;
}

.product-btn.shopee:hover {
    background: #d43d1f;
    color: #fff !important;
}

.product-btn.lazada {
    background: #0f146d;
}

.product-btn.lazada:hover {
    background: #0a0e50;
    color: #fff !important;
}

.product-btn.tiktok {
    background: #111;
}

.product-btn.tiktok:hover {
    background: #333;
    color: #fff !important;
}


/* Single Product CTA */

.product-cta {
    margin: 48px 0;
    padding: 32px;
    border: 2px solid var(--border);
    border-radius: 12px;
    text-align: center;
}

.product-cta-thumb {
    cursor: pointer;
    display: inline-block;
    position: relative;
}

.product-cta-thumb img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 16px;
    transition: 0.2s;
}

.product-cta-thumb:hover img {
    opacity: 0.8;
}

.product-cta-thumb::after {
    content: '\F52D';
    font-family: 'bootstrap-icons';
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text);
    font-size: 1.25rem;
    opacity: 0;
    transition: 0.2s;
}

.product-cta-thumb:hover::after {
    opacity: 0.7;
}

.product-cta-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.product-cta-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 20px;
}

.product-cta-price del {
    font-weight: 400;
    color: var(--text2);
    font-size: 1rem;
    margin-left: 6px;
}

.product-cta-btns {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cta-btn.shopee {
    background: #ee4d2d;
}

.cta-btn.lazada {
    background: #0f146d;
}

.cta-btn.tiktok {
    background: #111;
}

.cta-btn:hover,
.cta-btn:focus,
.cta-btn:focus-visible,
.cta-btn:active {
    outline: none !important;
    box-shadow: none !important;
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

.cta-btn.shopee:hover { background: #d43d1f; }
.cta-btn.lazada:hover  { background: #0a0e50; }
.cta-btn.tiktok:hover  { background: #333; }


/* Image Lightbox */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    background: var(--bg2);
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: popIn 0.25s ease;
}

@keyframes popIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: var(--bg3);
    padding: 24px;
}

.lightbox-body {
    padding: 20px 24px 24px;
    text-align: center;
}

.lightbox-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.lightbox-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 16px;
}

.lightbox-price del {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text2);
    margin-left: 8px;
}

.lightbox-btns {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.lightbox-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none;
    flex: 1;
    transition: 0.2s;
}

.lightbox-btn:hover {
    filter: brightness(1.1);
}

.lightbox-btn.shopee {
    background: #ee4d2d;
}

.lightbox-btn.lazada {
    background: #0f146d;
}

.lightbox-btn.tiktok {
    background: #000;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}


/* Article Detail Responsive */

@media (max-width: 768px) {
    .related-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .product-item {
        flex-wrap: wrap;
    }
    .product-btns {
        width: 100%;
        margin-top: 12px;
    }
    .product-btn {
        flex: 1;
    }
}

@media (max-width: 640px) {
    .cta-btn {
        flex: 1;
        min-width: 120px;
    }
}


/* =============================================
   18. PRODUCT CARD SHORTCODE (pcard)
   ============================================= */

.pcard {
    --pcard-bg: #ffffff;
    --pcard-border: #e2e8f0;
    --pcard-text: #1e293b;
    --pcard-text-light: #64748b;
    --pcard-text-muted: #94a3b8;
    --pcard-accent: #f59e0b;
    --pcard-radius: 16px;
    --pcard-shadow: 0 4px 20px rgba(0, 0, 0, .06);
    --pcard-shadow-hover: 0 12px 32px rgba(0, 0, 0, .12);
    display: flex;
    flex-direction: row;
    background: var(--pcard-bg);
    border: 1px solid var(--pcard-border);
    border-radius: var(--pcard-radius);
    box-shadow: var(--pcard-shadow);
    overflow: hidden;
    margin: 28px 0;
    transition: all .3s;
}

.pcard:hover {
    box-shadow: var(--pcard-shadow-hover);
    border-color: var(--pcard-accent);
    transform: translateY(-4px);
}


/* Image */

.pcard__image {
    position: relative;
    width: 200px;
    min-width: 200px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pcard__image img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    transition: transform .4s;
}

.pcard:hover .pcard__image img {
    transform: scale(1.08);
}


/* Discount Badge */

.pcard__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ef4444;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, .4);
}


/* Content */

.pcard__content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pcard__name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--pcard-text);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* Pricing */

.pcard__price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.pcard__price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pcard-accent);
    letter-spacing: -.5px;
}

.pcard__price-original {
    font-size: .95rem;
    color: var(--pcard-text-muted);
    text-decoration: line-through;
}


/* Buttons */

.pcard__buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pcard-btn {
    flex: 1;
    min-width: 110px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none !important;
    transition: background .3s, transform .3s, box-shadow .3s;
    border: 2px solid transparent;
    outline: none;
}

.pcard-btn:hover,
.pcard-btn:focus,
.pcard-btn:focus-visible,
.pcard-btn:active {
    outline: none !important;
    box-shadow: none !important;
    color: #fff !important;
    text-decoration: none !important;
}

.pcard-btn i {
    font-size: 1.1rem;
    transition: transform .3s;
}

.pcard-btn:hover i {
    transform: scale(1.1);
}


/* Shopee */

.pcard-btn--shopee {
    background: #ee4d2d;
    color: #fff !important;
    border-color: #ee4d2d;
}

.pcard-btn--shopee:hover {
    background: #d73919;
    color: #fff !important;
    border-color: #d73919;
    box-shadow: 0 6px 20px rgba(238, 77, 45, .4);
    transform: translateY(-3px);
}


/* Lazada */

.pcard-btn--lazada {
    background: #0f146d;
    color: #fff !important;
    border-color: #0f146d;
}

.pcard-btn--lazada:hover {
    background: #1c238a;
    color: #fff !important;
    border-color: #1c238a;
    box-shadow: 0 6px 20px rgba(15, 20, 109, .4);
    transform: translateY(-3px);
}


/* TikTok */

.pcard-btn--tiktok {
    background: #111;
    color: #fff !important;
    border-color: #111;
}

.pcard-btn--tiktok:hover {
    background: #333;
    color: #fff !important;
    border-color: #333;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
    transform: translateY(-3px);
}


/* Responsive */

@media (max-width: 640px) {
    .pcard {
        flex-direction: column;
    }
    .pcard__image {
        width: 100%;
        min-width: 100%;
        height: 200px;
        padding: 24px;
    }
    .pcard__image img {
        height: 150px;
    }
    .pcard__content {
        padding: 20px;
    }
    .pcard__name {
        font-size: 1rem;
    }
    .pcard__price-current {
        font-size: 1.35rem;
    }
    .pcard__buttons {
        flex-direction: column;
    }
    .pcard-btn {
        min-width: 100%;
    }
}

a.content-card {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

a.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}


/* ===== 19. SCROLL ANIMATIONS ===== */

.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ===== 20. BENTO DESIGN SYSTEM ===== */


/* Override legacy teal theme → sky blue */

:root {
    --hero-bg: #0d1117;
    --hero-card: rgba(255, 255, 255, .06);
    --hero-border: rgba(255, 255, 255, .1);
    --page-bg: #f0efe9;
    --white: #ffffff;
    --primary: #0ea5e9;
    --accent: #f59e0b;
    --purple: #8b5cf6;
    --danger: #ef4444;
    --success: #10b981;
    --text1: #0f172a;
    --text2: #64748b;
    --border: rgba(0, 0, 0, .07);
    --radius: 22px;
    --gap: 12px;
    --shadow: 0 2px 16px rgba(0, 0, 0, .07);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, .13);
}


/* ── Layout helpers ─────────────────────────────────────────── */

.section-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ── Bento card base ────────────────────────────────────────── */

.b-cell {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s;
    position: relative;
}

.b-cell-hover:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}


/* ── Bento label row ────────────────────────────────────────── */

.bento-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.bento-label h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.bento-label h2.light {
    color: #fff;
}

.bento-label h2.dark {
    color: var(--text1);
}

.bento-label .l-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    color: #fff;
}

.bento-label a {
    margin-left: auto;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.bento-label a.light {
    color: rgba(255, 255, 255, .7);
}

.bento-label a.dark {
    color: var(--primary);
}

.bento-label a:hover {
    opacity: .8;
}


/* ── Tag pills (override old teal .tag-pill) ────────────────── */

.tag-pill,
.popular-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    background: var(--page-bg);
    color: var(--text2);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
}

.tag-pill:hover,
.popular-tag:hover,
.tag-pill.active,
.popular-tag.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}


/* ── Shared sidebar widget ──────────────────────────────────── */

.widget {
    padding: 18px;
}

.widget h3 {
    font-size: .85rem;
    font-weight: 700;
    color: var(--text1);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.widget h3 i {
    color: var(--primary);
}


/* ── Popular sidebar items ──────────────────────────────────── */

.pop-item {
    display: flex;
    gap: 9px;
    padding: 8px 0;
    align-items: center;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: padding .2s;
}

.pop-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pop-item:first-child {
    padding-top: 0;
}

.pop-item:hover {
    padding-left: 4px;
}

.pop-rank {
    font-size: .68rem;
    font-weight: 800;
    min-width: 16px;
    text-align: center;
    flex-shrink: 0;
    color: var(--text2);
}

.pop-rank.top {
    color: var(--primary);
}

.pop-item img {
    width: 46px;
    height: 46px;
    border-radius: 9px;
    object-fit: cover;
    flex-shrink: 0;
}

.pop-item h6 {
    font-size: .75rem;
    font-weight: 600;
    margin: 0 0 3px;
    line-height: 1.35;
    color: var(--text1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pop-item span {
    font-size: .66rem;
    color: var(--text2);
}


/* ── Tag cloud ──────────────────────────────────────────────── */

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}


/* ── Category chips ─────────────────────────────────────────── */

.cat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .73rem;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 50px;
    background: var(--page-bg);
    color: var(--text1);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all .2s;
}

.cat-chip:hover,
.cat-chip.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.cat-chip .n {
    font-size: .62rem;
    background: rgba(0, 0, 0, .08);
    border-radius: 50%;
    width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-chip.active .n {
    background: rgba(255, 255, 255, .2);
}


/* ── Article card ───────────────────────────────────────────── */

.art-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.art-img {
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.art-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
    display: block;
}

.art-card:hover .art-img img {
    transform: scale(1.05);
}

.art-body {
    padding: 13px 15px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.art-badge {
    display: inline-block;
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--primary);
    color: #fff;
    padding: 2px 9px;
    border-radius: 8px;
    margin-bottom: 6px;
    width: fit-content;
    letter-spacing: .3px;
}

.art-body h5 {
    font-size: .86rem;
    font-weight: 700;
    margin: 0 0 5px;
    line-height: 1.4;
    color: var(--text1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.art-body p {
    font-size: .74rem;
    color: var(--text2);
    margin: 0 0 9px;
    flex: 1;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.art-meta {
    font-size: .67rem;
    color: var(--text2);
    display: flex;
    gap: 8px;
    margin-top: auto;
    align-items: center;
    flex-wrap: wrap;
}

.art-meta-author {
    display: flex;
    align-items: center;
    gap: 4px;
}

.art-meta-author img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}


/* ── Sidebar sticky col ─────────────────────────────────────── */

.sidebar-col {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    position: sticky;
    top: 80px;
}

@media(max-width:960px) {
    .sidebar-col {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:540px) {
    .sidebar-col {
        grid-template-columns: 1fr;
    }
}


/* ── Sidebar search ─────────────────────────────────────────── */

.sb-search-wrap {
    border-radius: var(--radius);
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 18px;
    box-shadow: var(--shadow);
}

.sb-search-wrap h3 {
    color: #fff;
    margin-bottom: 12px;
    font-size: .85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 7px;
}

.sb-search-wrap h3 i {
    color: var(--primary);
}

.sb-search-form {
    display: flex;
    gap: 7px;
}

.sb-search-input {
    flex: 1;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50px;
    padding: 8px 14px;
    font-size: .82rem;
    color: #fff;
    outline: none;
    transition: border-color .2s;
}

.sb-search-input::placeholder {
    color: rgba(255, 255, 255, .38);
}

.sb-search-input:focus {
    border-color: var(--primary);
}

.sb-search-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    transition: opacity .2s;
}

.sb-search-btn:hover {
    opacity: .85;
}


/* ── Articles listing page ──────────────────────────────────── */

.al-page {
    background: var(--page-bg);
    padding: 88px 0 72px;
}

.page-intro {
    margin-bottom: 18px;
}

.ph-crumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    color: var(--text2);
    margin-bottom: 10px;
}

.ph-crumb a {
    color: var(--text2);
    text-decoration: none;
    transition: color .2s;
}

.ph-crumb a:hover {
    color: var(--text1);
}

.ph-crumb i {
    font-size: .6rem;
    opacity: .6;
}

.ph-crumb .back-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--white);
    border: 1px solid var(--border);
    padding: 4px 11px;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--text2);
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: all .2s;
    margin-bottom: 12px;
}

.ph-crumb .back-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pi-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 6px;
}

.pi-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.pi-texts h1 {
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 800;
    color: var(--text1);
    margin: 0 0 3px;
    line-height: 1.2;
}

.pi-texts p {
    font-size: .85rem;
    color: var(--text2);
    margin: 0;
}

.pi-title {
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    font-weight: 800;
    color: var(--text1);
    margin: 4px 0 6px;
    line-height: 1.2;
}

.pi-subtitle {
    font-size: .88rem;
    color: var(--text2);
    margin: 0 0 16px;
}

.pi-divider {
    border: none;
    border-top: 1.5px solid var(--border);
    margin: 0 0 22px;
    opacity: 1;
}

.cat-filter-bar {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 20px;
    scrollbar-width: none;
}

.cat-filter-bar::-webkit-scrollbar {
    display: none;
}

.cf-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text2);
    transition: all .2s;
    box-shadow: var(--shadow);
}

.cf-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.cf-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(14, 165, 233, .3);
}

.cf-count {
    font-size: .65rem;
    background: rgba(0, 0, 0, .08);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
}

.cf-pill.active .cf-count {
    background: rgba(255, 255, 255, .25);
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 290px;
    gap: var(--gap);
    align-items: start;
}

@media(max-width:960px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.toolbar-count {
    font-size: .88rem;
    font-weight: 700;
    color: var(--text1);
    display: flex;
    align-items: center;
    gap: 6px;
}

.toolbar-count i {
    color: var(--primary);
}

.sort-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text2);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 6px 14px;
    transition: all .2s;
}

.sort-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.sort-dropdown .dropdown-item.active {
    color: var(--primary);
    font-weight: 700;
}

.sort-dropdown .dropdown-item:active {
    background: #f0f9ff;
    color: var(--primary);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

@media(max-width:860px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:540px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

.pager-wrap {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.pager-wrap .pagination {
    gap: 4px;
    margin: 0;
}

.pager-wrap .page-link {
    border-radius: 10px !important;
    border: 1px solid var(--border);
    color: var(--text2);
    font-size: .82rem;
    font-weight: 600;
    padding: 7px 13px;
    transition: all .2s;
    background: var(--white);
}

.pager-wrap .page-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f0f9ff;
}

.pager-wrap .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pager-wrap .page-item.disabled .page-link {
    opacity: .4;
}

.empty-state {
    padding: 60px 24px;
    text-align: center;
    color: var(--text2);
}

.empty-state i {
    font-size: 3.5rem;
    opacity: .2;
    display: block;
    margin-bottom: 14px;
    color: var(--text1);
}

.empty-state h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text1);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: .85rem;
    margin-bottom: 20px;
}

.empty-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.empty-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    background: var(--page-bg);
    color: var(--text2);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all .2s;
}

.empty-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}


/* ── Article detail page (ap-*) ─────────────────────────────── */

.ap-page {
    background: var(--page-bg);
    padding: 88px 0 72px;
}

.ap-grid {
    display: grid;
    grid-template-columns: 1fr 290px;
    gap: 36px;
    align-items: start;
}
.ap-grid > * { min-width: 0; max-width: 100%; }

@media(max-width:960px) {
    .ap-grid {
        grid-template-columns: 1fr;
    }
}

.ap-crumb {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: .75rem;
    color: var(--text2);
    margin-bottom: 20px;
}

.ap-crumb a {
    color: var(--text2);
    text-decoration: none;
    transition: color .2s;
}

.ap-crumb a:hover {
    color: var(--primary);
}

.ap-crumb i {
    font-size: .6rem;
    opacity: .5;
}

.ap-crumb span {
    color: var(--text1);
    font-weight: 600;
}

.ap-category {
    display: inline-block;
    font-size: .63rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--primary);
    color: #fff;
    padding: 3px 10px;
    border-radius: 8px;
    margin-bottom: 12px;
    letter-spacing: .3px;
    text-decoration: none;
}

.ap-category:hover {
    opacity: .85;
    color: #fff;
}

.ap-title {
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--text1);
    line-height: 1.22;
    word-break: break-word;
    overflow-wrap: break-word;
    margin: 0 0 18px;
    letter-spacing: -.02em;
}

.ap-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 11px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.ap-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ap-author img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.ap-author span {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text1);
}

.ap-meta-stat {
    font-size: .78rem;
    color: var(--text2);
    display: flex;
    align-items: center;
    gap: 4px;
}

.ap-share-btn {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--text2);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 5px 12px;
    cursor: pointer;
    transition: all .2s;
}

.ap-share-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.ap-cover {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 28px;
}

.ap-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ap-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #2d3f57;
    word-break: break-word;
}
.ap-content img { max-width: 100%; height: auto; }
.ap-content-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 18px; max-width: 100%; }
.ap-content-table-wrap table { width: max-content; min-width: 100%; margin-bottom: 0; }
.ap-content-table-wrap td, .ap-content-table-wrap th { min-width: 90px; }
.ap-content pre, .ap-content code { overflow-x: auto; white-space: pre-wrap; }

.ap-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text1);
    margin: 40px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

.ap-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text1);
    margin: 28px 0 10px;
}

.ap-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text1);
    margin: 20px 0 8px;
}

.ap-content p {
    margin-bottom: 18px;
}

.ap-content a:not(.cta-btn):not(.pcard-btn):not(.product-btn):not(.lightbox-btn) {
    color: var(--primary) !important;
    text-decoration: underline;
    text-decoration-color: rgba(18, 193, 162, 0.35);
    text-underline-offset: 2px;
}

.ap-content a:not(.cta-btn):not(.pcard-btn):not(.product-btn):not(.lightbox-btn):hover {
    color: #1DA1F2 !important;
}

.ap-content ul,
.ap-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.ap-content li {
    margin-bottom: 8px;
}

.ap-content blockquote {
    margin: 28px 0;
    padding: 16px 22px;
    border-left: 3px solid var(--primary);
    background: rgba(14, 165, 233, .05);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: var(--text1);
}

.ap-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
    display: block;
}

.ap-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: .9rem;
}

.ap-content th {
    background: var(--text1);
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-size: .82rem;
}

.ap-content td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--border);
}

.ap-content tr:hover td {
    background: rgba(14, 165, 233, .04);
}

.ap-footer {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.ap-tags-label {
    font-size: .75rem;
    font-weight: 700;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 9px;
}

.ap-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.ap-related {
    margin-top: 40px;
}

.ap-related-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text1);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
}

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

@media(max-width:640px) {
    .ap-related .articles-grid {
        grid-template-columns: 1fr;
    }
}


/* TOC widget */

#toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toc-link {
    display: block;
    font-size: .78rem;
    font-weight: 500;
    color: var(--text2);
    text-decoration: none;
    padding: 5px 8px;
    border-radius: 7px;
    transition: all .2s;
    border-left: 2px solid transparent;
}

.toc-link:hover,
.toc-link.fw-bold {
    background: var(--page-bg);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 700;
}


/* ── Slim search bar (sidebar top) ─────────────────────────── */

.sb-slim {
    padding: 10px 14px;
}

.sb-slim-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sb-slim-icon {
    color: var(--text2);
    font-size: .9rem;
    flex-shrink: 0;
}

.sb-slim-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: .83rem;
    color: var(--text1);
    padding: 4px 0;
}

.sb-slim-input::placeholder {
    color: var(--text2);
}

.sb-slim-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    transition: opacity .2s;
}

.sb-slim-btn:hover {
    opacity: .85;
}


/* ── Category menu list (sidebar) ───────────────────────────── */

.cat-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cm-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text2);
    transition: all .2s;
}

.cm-item:hover {
    background: var(--page-bg);
    color: var(--text1);
}

.cm-item.active {
    background: var(--primary);
    color: #fff;
}

.cm-count {
    margin-left: auto;
    font-size: .65rem;
    font-weight: 700;
    background: rgba(0, 0, 0, .08);
    border-radius: 50px;
    padding: 2px 7px;
    min-width: 22px;
    text-align: center;
    line-height: 1.6;
}

.cm-item.active .cm-count {
    background: rgba(255, 255, 255, .25);
}


/* ═══════════════════════════════════════════════════════════
   22. INDEX PAGE — HERO + TRENDING + BENTO SECTIONS
   ═══════════════════════════════════════════════════════════ */


/* ── 1. Dark Hero ──────────────────────────────────────────── */

.hero-section {
    background: var(--hero-bg);
    padding: 28px 0 36px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--gap);
    margin-bottom: 28px;
}

@media(max-width:900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

.hero-slider-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 460px;
    position: relative;
    background: #111;
}

@media(max-width:900px) {
    .hero-slider-wrap {
        min-height: 260px;
    }
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform .5s ease;
}

.h-slide {
    flex: 0 0 100%;
    min-height: 460px;
    position: relative;
}

@media(max-width:900px) {
    .h-slide {
        min-height: 260px;
    }
}

.h-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.h-slide-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 32px;
}

.h-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .4px;
    width: fit-content;
}

.h-slide-overlay h2 {
    font-size: clamp(1.1rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.3;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .85), 0 1px 4px rgba(0, 0, 0, .7);
}

.h-slide-overlay p {
    color: rgba(255, 255, 255, .9);
    font-size: .85rem;
    margin: 0 0 16px;
    line-height: 1.5;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .8);
}

.h-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    color: var(--hero-bg);
    font-size: .82rem;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: 50px;
    text-decoration: none;
    width: fit-content;
    transition: background .2s, color .2s;
}

.h-read-btn:hover {
    background: var(--primary);
    color: #fff;
}

.slider-nav-bar {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.s-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(6px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    transition: background .2s;
}

.s-nav-btn:hover {
    background: rgba(255, 255, 255, .38);
}

.s-dots-row {
    display: flex;
    gap: 5px;
}

.s-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    cursor: pointer;
    transition: all .2s;
}

.s-dot.on {
    background: #fff;
    width: 20px;
    border-radius: 3px;
}

.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    height: 100%;
}

.hs-card {
    background: var(--hero-card);
    border: 1px solid var(--hero-border);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    gap: 11px;
    align-items: center;
    text-decoration: none;
    color: #fff;
    flex: 1;
    min-height: 0;
    transition: background .2s;
}

.hs-card:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.hs-card img {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.hs-card-info {
    flex: 1;
    min-width: 0;
}

.hs-badge {
    display: inline-block;
    background: rgba(18, 193, 162, 0.12);
    color: var(--primary);
    font-size: .62rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 8px;
    margin-bottom: 5px;
}

.hs-card-info h6 {
    font-size: .8rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: #fff;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hs-meta {
    font-size: .67rem;
    color: rgba(255, 255, 255, .5);
}


/* ── 2. Trending ───────────────────────────────────────────── */

.trending-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
}

@media(max-width:860px) {
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.trend-cell {
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/4;
    display: block;
    text-decoration: none;
    background: #1a1a2e;
}

.trend-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.trend-cell:hover img {
    transform: scale(1.06);
}

.trend-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, transparent 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
}

.trend-num {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, .13);
    margin-bottom: 4px;
}

.trend-cat {
    display: inline-block;
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 2px 8px;
    border-radius: 8px;
    margin-bottom: 5px;
    width: fit-content;
}

.trend-overlay h6 {
    font-size: .8rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trend-meta {
    font-size: .68rem;
    color: rgba(255, 255, 255, .6);
    display: flex;
    gap: 8px;
}


/* ── 3. Bento Body ─────────────────────────────────────────── */

.bento-body {
    background: var(--page-bg);
    padding: 32px 0 60px;
}


/* ── 4. Deals ──────────────────────────────────────────────── */

.deals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    margin-bottom: 28px;
}

@media(max-width:860px) {
    .deals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:540px) {
    .deals-grid {
        grid-template-columns: 1fr;
    }
}

.deal-card {
    padding: 18px;
}

.deal-img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 14px;
    overflow: hidden;
    background: var(--page-bg);
    margin-bottom: 13px;
}

.deal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}

.deal-card:hover .deal-img img {
    transform: scale(1.04);
}

.deal-img .no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text2);
    font-size: 2rem;
}

.deal-card h4 {
    font-size: .86rem;
    font-weight: 700;
    color: var(--text1);
    margin: 0 0 11px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.deal-btns {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.deal-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 11px;
    border-radius: 11px;
    text-decoration: none;
    font-size: .77rem;
    font-weight: 600;
    transition: opacity .2s;
}

.deal-btn:hover {
    opacity: .85;
}

.deal-btn .db-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    flex-shrink: 0;
}

.deal-btn .db-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    flex: 1;
}

.db-plat {
    font-size: .68rem;
    opacity: .7;
}

.db-price {
    font-size: .83rem;
    font-weight: 700;
}

.db-shopee {
    background: #fff5f0;
    color: #ee4d2d;
}

.db-shopee .db-icon {
    background: #ee4d2d;
    color: #fff;
}

.db-lazada {
    background: #f0f5ff;
    color: #0f3460;
}

.db-lazada .db-icon {
    background: #0f3460;
    color: #fff;
}

.db-tiktok {
    background: #f0f0f0;
    color: #010101;
}

.db-tiktok .db-icon {
    background: #010101;
    color: #fff;
}


/* ── 5. View All ───────────────────────────────────────────── */

.view-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    margin-top: var(--gap);
    margin-bottom: 20px;
    background: var(--white);
    border-radius: var(--radius);
    border: 2px dashed var(--border);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 700;
    color: var(--text2);
    transition: all .2s;
    box-shadow: var(--shadow);
}

.view-all-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f0f9ff;
}


/* ── 6. Review Banner ──────────────────────────────────────── */

.review-section {
    margin-bottom: 28px;
    margin-top: 4px;
}

.review-cell {
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 320px;
    position: relative;
    box-shadow: var(--shadow);
}

.rev-track {
    display: flex;
    height: 100%;
    transition: transform .65s cubic-bezier(.4, 0, .2, 1);
}

.rev-slide {
    flex: 0 0 100%;
    min-height: 320px;
    position: relative;
}

.rev-slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 320px;
}

.rev-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
    text-align: center;
}

.rev-tag {
    background: rgba(0, 0, 0, .3);
    color: #fff;
    font-size: .73rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 12px;
    backdrop-filter: blur(4px);
}

.rev-overlay h2 {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .9), 0 1px 4px rgba(0, 0, 0, .7);
}

.rev-overlay p {
    color: rgba(255, 255, 255, .95);
    font-size: .88rem;
    max-width: 500px;
    margin: 0 0 20px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .8);
}

.rev-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    font-size: .83rem;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    transition: transform .2s;
}

.rev-btn:hover {
    transform: scale(1.04);
}

.rev-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(6px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
}

.rev-nav-btn.lft {
    left: 14px;
}

.rev-nav-btn.rgt {
    right: 14px;
}

.rev-dots-row {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 10;
}

.r-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    cursor: pointer;
    transition: all .2s;
}

.r-dot.on {
    background: #fff;
}


/* ── 7. Tools Promo ────────────────────────────────────────── */

.tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
    margin-top: 28px;
    margin-bottom: 28px;
}

@media(max-width:640px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

.tools-cell-main {
    background: linear-gradient(135deg, #0d1117 0%, #1e293b 100%);
    color: #fff;
    padding: 36px 30px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow);
}

.tools-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(14, 165, 233, .18);
    border: 1px solid rgba(14, 165, 233, .3);
    color: var(--primary);
    font-size: .73rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    width: fit-content;
}

.tools-cell-main h2 {
    font-size: clamp(1.1rem, 2.5vw, 1.7rem);
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.35;
}

.tools-cell-main p {
    color: rgba(255, 255, 255, .65);
    font-size: .85rem;
    line-height: 1.6;
    margin: 0;
}

.tools-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: .83rem;
    padding: 11px 22px;
    border-radius: 50px;
    text-decoration: none;
    width: fit-content;
    transition: opacity .2s;
}

.tools-cta-btn:hover {
    opacity: .85;
    color: #fff;
}

.tools-icons-cell {
    background: var(--hero-bg);
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
    box-shadow: var(--shadow);
}

.tool-icon-tile {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 14px;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    color: #fff;
}

.tool-icon-tile i {
    font-size: 1.7rem;
}

.tool-icon-tile span {
    font-size: .75rem;
    font-weight: 600;
    opacity: .75;
}


/* ── 8. Back to Top ────────────────────────────────────────── */

.btt-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: var(--hero-bg);
    color: #fff;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: all .25s;
}

.btt-btn.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.btt-btn:hover {
    background: var(--primary);
}


/* ═══════════════════════════════════════════════════════════
   23. PRODUCTS PAGE
   ═══════════════════════════════════════════════════════════ */

.prod-toolbar-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.prod-search-slim {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 5px 14px;
}

.prod-search-slim i {
    color: var(--text2);
    font-size: .8rem;
    flex-shrink: 0;
}

.prod-search-slim input {
    border: none;
    outline: none;
    font-size: .8rem;
    background: transparent;
    color: var(--text1);
    width: 160px;
}

.prod-search-slim input::placeholder {
    color: var(--text2);
}

.prod-bottom-bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

@media(max-width:760px) {
    .prod-bottom-bento {
        grid-template-columns: 1fr;
    }
}


/* ═══════════════════════════════════════════════════════════
   24. TOOLS PAGE (calculator)
   ═══════════════════════════════════════════════════════════ */

.tools-page {
    background: var(--page-bg);
    padding: 88px 0 72px;
}

.tools-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

@media(max-width:900px) {
    .tools-layout {
        grid-template-columns: 1fr;
    }
}

.tools-toc-col {
    position: sticky;
    top: 80px;
}

.tools-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tools-toc-link {
    display: block;
    font-size: .82rem;
    color: var(--text2);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 9px;
    border-left: 2px solid transparent;
    transition: all .2s;
}

.tools-toc-link:hover,
.tools-toc-link.active {
    color: var(--success);
    background: rgba(16, 185, 129, .07);
    border-left-color: var(--success);
}

.calc-section {
    margin-bottom: 16px;
    padding: 28px;
    scroll-margin-top: 90px;
}

.calc-section-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.calc-step-num {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--success);
    min-width: 44px;
    flex-shrink: 0;
    line-height: 1;
}

.calc-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text1);
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-section-title i {
    color: var(--text2);
}

.calc-section-sub {
    font-size: .85rem;
    color: var(--text2);
    margin: 0;
}

.calc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media(max-width:680px) {
    .calc-row {
        grid-template-columns: 1fr;
    }
}

.calc-info-box {
    background: var(--page-bg);
    padding: 14px 16px;
    border-radius: 12px;
    border-left: 3px solid var(--border);
    margin-bottom: 10px;
}

.calc-info-box h3 {
    font-size: .7rem;
    font-weight: 700;
    color: var(--text2);
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.calc-info-box p {
    color: var(--text2);
    margin: 0;
    line-height: 1.6;
    font-size: .85rem;
}

.calc-info-box p strong {
    color: var(--text1);
}

.calc-inputs {
    background: var(--page-bg);
    padding: 20px;
    border-radius: 14px;
}

.calc-form-group {
    margin-bottom: 16px;
}

.calc-form-group label {
    display: block;
    font-weight: 600;
    color: var(--text1);
    margin-bottom: 8px;
    font-size: .85rem;
}

.calc-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.calc-input-wrap input {
    width: 100%;
    padding: 12px 40px 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    color: var(--text1);
    font-size: .95rem;
    font-weight: 500;
    transition: border-color .2s;
}

.calc-input-wrap input::placeholder {
    color: var(--text2);
    opacity: .6;
}

.calc-input-wrap input:focus {
    outline: none;
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .12);
}

.calc-input-suffix {
    position: absolute;
    right: 14px;
    color: var(--text2);
    font-weight: 600;
    font-size: .85rem;
    pointer-events: none;
}

.btn-calc {
    width: 100%;
    background: var(--success);
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 10px;
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.btn-calc:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, .3);
}

.calc-result {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: fadeUp .3s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calc-result-item {
    padding: 14px 18px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calc-result-item.neutral {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.calc-result-item.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.calc-result-item.danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.calc-result-label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text1);
    display: flex;
    align-items: center;
    gap: 7px;
}

.calc-result-label i {
    font-size: 1rem;
}

.calc-result-item.neutral .calc-result-label i {
    color: var(--text2);
}

.calc-result-item.success .calc-result-label i {
    color: var(--success);
}

.calc-result-item.danger .calc-result-label i {
    color: var(--danger);
}

.calc-result-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text1);
}

.calc-result-item.success .calc-result-value {
    color: #059669;
}

.calc-result-item.danger .calc-result-value {
    color: #dc2626;
}

.calc-divider {
    height: 1px;
    background: var(--border);
    margin: 20px 0;
}


/* ═══════════════════════════════════════════════════════════
   25. COMPARE PAGE
   ═══════════════════════════════════════════════════════════ */

.compare-page {
    background: var(--page-bg);
    padding: 88px 0 72px;
}

.compare-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}

@media(max-width:960px) {
    .compare-layout {
        grid-template-columns: 1fr;
    }
}


/* Winner box */

.cmp-winner {
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    padding: 24px;
    color: #fff;
    margin-bottom: 16px;
    box-shadow: var(--shadow-md);
}

.cmp-winner-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.cmp-winner-inner {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.cmp-winner-img {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, .15);
}

.cmp-winner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cmp-winner-info {
    flex: 1;
    min-width: 0;
}

.cmp-winner-name {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.cmp-winner-reason {
    font-size: .8rem;
    opacity: .85;
    margin-bottom: 10px;
}

.cmp-winner-price {
    font-size: 1rem;
    font-weight: 700;
}

.cmp-winner-price .original {
    font-size: .8rem;
    opacity: .6;
    text-decoration: line-through;
    margin-left: 6px;
    font-weight: 400;
}

.cmp-winner-cta {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 14px;
}


/* Platform buttons */

.btn-buy-platform {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .78rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 50px;
    text-decoration: none;
    transition: opacity .2s;
}

.btn-buy-platform:hover {
    opacity: .85;
}

.btn-buy-platform.shopee {
    background: #ee4d2d;
    color: #fff;
}

.btn-buy-platform.lazada {
    background: #0f3460;
    color: #fff;
}

.btn-buy-platform.tiktok {
    background: #010101;
    color: #fff;
}


/* TL;DR */

.cmp-tldr {
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--border);
    padding: 18px 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.cmp-tldr-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text2);
    margin-bottom: 6px;
}

.cmp-tldr-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text1);
    margin-bottom: 8px;
}

.cmp-tldr-text {
    font-size: .85rem;
    color: var(--text2);
    line-height: 1.65;
    margin: 0;
}


/* Pros/Cons */

.cmp-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
    margin-bottom: 16px;
}

@media(max-width:620px) {
    .cmp-pros-cons {
        grid-template-columns: 1fr;
    }
}

.cmp-pc-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
}

.cmp-pc-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}

.cmp-pc-head.product-a {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
}

.cmp-pc-head.product-b {
    background: linear-gradient(135deg, #64748b, #94a3b8);
}

.cmp-pc-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, .2);
    flex-shrink: 0;
}

.cmp-pc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cmp-pc-name {
    font-size: .88rem;
    font-weight: 700;
    color: #fff;
}

.cmp-pc-body {
    padding: 14px;
}

.cmp-pc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cmp-col-title {
    font-size: .72rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cmp-col-title.pros {
    color: var(--success);
}

.cmp-col-title.cons {
    color: var(--danger);
}

.cmp-pc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cmp-pc-list li {
    font-size: .8rem;
    color: var(--text2);
}

.cmp-pc-list.pros-list li::before {
    content: '✓ ';
    color: var(--success);
    font-weight: 700;
}

.cmp-pc-list.cons-list li::before {
    content: '✗ ';
    color: var(--danger);
    font-weight: 700;
}


/* Specs table */

.cmp-specs {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.cmp-specs-toggle {
    width: 100%;
    background: var(--white);
    border: none;
    cursor: pointer;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .88rem;
    font-weight: 700;
    color: var(--text1);
    border-radius: var(--radius);
    transition: background .2s;
}

.cmp-specs-toggle:hover {
    background: var(--page-bg);
}

.cmp-specs-toggle i {
    transition: transform .3s;
}

.cmp-specs.open .cmp-specs-toggle i.bi-chevron-down {
    transform: rotate(180deg);
}

.cmp-specs-body {
    display: none;
    padding: 0 18px 18px;
}

.cmp-specs.open .cmp-specs-body {
    display: block;
}

.cmp-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
}

.cmp-specs-table th {
    background: var(--page-bg);
    padding: 10px 12px;
    text-align: left;
    font-weight: 700;
    color: var(--text1);
}

.cmp-specs-table td {
    padding: 9px 12px;
    border-top: 1px solid var(--border);
    color: var(--text2);
}

.cmp-specs-table .spec-winner {
    color: var(--success);
    font-weight: 700;
}


/* Verdict */

.cmp-verdict {
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 16px;
}

.cmp-verdict-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.cmp-verdict-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    font-size: 1.1rem;
}

.cmp-verdict-title {
    font-size: .95rem;
    font-weight: 800;
    color: var(--text1);
    margin-bottom: 2px;
}

.cmp-verdict-sub {
    font-size: .75rem;
    color: var(--text2);
}

.cmp-verdict-text {
    font-size: .85rem;
    color: var(--text2);
    line-height: 1.7;
    margin: 0 0 14px;
}

.cmp-verdict-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cmp-verdict-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--page-bg);
}

.cmp-verdict-label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--text1);
}

.cmp-verdict-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-buy-sm {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .72rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 50px;
    text-decoration: none;
    transition: opacity .2s;
}

.btn-buy-sm:hover {
    opacity: .85;
}

.btn-buy-sm.shopee {
    background: #ee4d2d;
    color: #fff;
}

.btn-buy-sm.lazada {
    background: #0f3460;
    color: #fff;
}

.btn-buy-sm.tiktok {
    background: #010101;
    color: #fff;
}


/* FAQ */

.cmp-faq {
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.cmp-faq-title {
    font-size: .88rem;
    font-weight: 700;
    color: var(--text1);
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cmp-faq-item {
    border-bottom: 1px solid var(--border);
}

.cmp-faq-item:last-child {
    border-bottom: none;
}

.cmp-faq-q {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text1);
    text-align: left;
    transition: background .2s;
}

.cmp-faq-q:hover {
    background: var(--page-bg);
}

.cmp-faq-q i {
    transition: transform .3s;
    flex-shrink: 0;
}

.cmp-faq-item.active .cmp-faq-q i {
    transform: rotate(180deg);
}

.cmp-faq-a {
    display: none;
    padding: 0 18px 14px;
    font-size: .84rem;
    color: var(--text2);
    line-height: 1.65;
}

.cmp-faq-item.active .cmp-faq-a {
    display: block;
}


/* Sidebar product cards */

.cmp-prod-card {
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: var(--gap);
}

.cmp-prod-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.cmp-prod-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--page-bg);
}

.cmp-prod-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cmp-prod-name {
    font-size: .85rem;
    font-weight: 700;
    color: var(--text1);
    margin-bottom: 2px;
}

.cmp-prod-price {
    font-size: .82rem;
    font-weight: 800;
    color: var(--success);
}

.cmp-shop-btns {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.cmp-shop-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 13px;
    border-radius: 11px;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 600;
    transition: opacity .2s;
}

.cmp-shop-btn:hover {
    opacity: .85;
}

.cmp-shop-btn .btn-left {
    display: flex;
    align-items: center;
    gap: 7px;
}

.cmp-shop-btn .btn-price {
    font-weight: 700;
    font-size: .8rem;
}

.cmp-shop-btn.shop-shopee {
    background: #ee4d2d;
    color: #fff;
}

.cmp-shop-btn.shop-lazada {
    background: #0f146d;
    color: #fff;
}

.cmp-shop-btn.shop-tiktok {
    background: #111;
    color: #fff;
}

.lowest-badge {
    font-size: .58rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--success);
    color: #fff;
}


/* Sticky CTA */

.cmp-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .1);
    transform: translateY(100%);
    transition: transform .3s;
    padding: 10px 20px;
}

.cmp-sticky-cta.visible {
    transform: translateY(0);
}

.cmp-sticky-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cmp-sticky-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text1);
}

.cmp-sticky-info i {
    color: var(--primary);
}


/* Shop modal */

.cmp-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, .5);
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.cmp-modal-overlay.show {
    display: flex;
}

.cmp-modal {
    background: var(--white);
    border-radius: var(--radius) var(--radius) 0 0;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
}

.cmp-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.cmp-modal-head h6 {
    font-size: .9rem;
    font-weight: 700;
    color: var(--text1);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

.cmp-modal-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: var(--page-bg);
    color: var(--text2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.cmp-modal-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cmp-modal-prod-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.cmp-modal-prod-head img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.cmp-modal-prod-head .name {
    font-size: .88rem;
    font-weight: 700;
    color: var(--text1);
}

.cmp-modal-prod-head .price {
    font-size: .78rem;
    color: var(--success);
    font-weight: 700;
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0)
    }
    50% {
        transform: translateY(-8px)
    }
}


/* ═══════════════════════════════════════════════════════════
   26. SEARCH AUTOCOMPLETE DROPDOWN
   ═══════════════════════════════════════════════════════════ */

.search-wrap {
    position: relative;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 340px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
    border: 1px solid var(--border);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .2s, transform .2s;
    z-index: 2000;
}

.search-dropdown.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border);
    transition: background .15s;
}

.sd-item:last-child {
    border-bottom: none;
}

.sd-item:hover {
    background: #f8fafc;
}

.sd-img {
    width: 48px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--page-bg);
}

.sd-info {
    flex: 1;
    min-width: 0;
}

.sd-title {
    font-size: .8rem;
    font-weight: 700;
    color: var(--text1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sd-meta {
    font-size: .7rem;
    color: var(--text2);
    display: flex;
    gap: 6px;
    margin-top: 2px;
    align-items: center;
}

.sd-meta i {
    font-size: .68rem;
}

.sd-footer {
    padding: 9px 14px;
    font-size: .76rem;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    cursor: pointer;
    background: #f0f9ff;
    border-top: 1px solid #bae6fd;
    text-decoration: none;
    display: block;
}

.sd-footer:hover {
    background: #e0f2fe;
}

.sd-empty {
    padding: 18px 14px;
    text-align: center;
    color: var(--text2);
    font-size: .82rem;
}

.sd-loading {
    padding: 14px;
    text-align: center;
    color: var(--text2);
    font-size: .82rem;
}


/* ═══════════════════════════════════════════════════════════
   27. CARD HOVER REVEAL
   ═══════════════════════════════════════════════════════════ */

.art-img {
    position: relative;
}

.art-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, .55) 0%, transparent 55%);
    opacity: 0;
    transition: opacity .3s;
    border-radius: 16px 16px 0 0;
}

.art-card:hover .art-img::after {
    opacity: 1;
}

.art-body h5 {
    transition: color .2s;
}

.art-card:hover .art-body h5 {
    color: var(--primary);
}

.art-meta {
    transition: opacity .25s, transform .25s;
    opacity: .75;
    transform: translateY(2px);
}

.art-card:hover .art-meta {
    opacity: 1;
    transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════════
   28. PRODUCT QUICK-VIEW MODAL
   ═══════════════════════════════════════════════════════════ */

.pc {
    position: relative;
}

.pc-quickview-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    background: rgba(255, 255, 255, .92);
    color: var(--text1);
    border: none;
    border-radius: 10px;
    padding: 5px 10px;
    font-size: .72rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .2s, transform .2s, background .15s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    white-space: nowrap;
}

.pc:hover .pc-quickview-btn {
    opacity: 1;
    transform: translateY(0);
}

.pc-quickview-btn:hover {
    background: var(--primary);
    color: #fff;
}

.qv-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(0, 0, 0, .55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.qv-overlay.show {
    display: flex;
}

.qv-modal {
    background: var(--white);
    border-radius: var(--radius);
    width: 100%;
    max-width: 540px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
    animation: qvIn .25s ease;
}

@keyframes qvIn {
    from {
        opacity: 0;
        transform: scale(.96)
    }
    to {
        opacity: 1;
        transform: scale(1)
    }
}

.qv-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1;
}

.qv-head h6 {
    font-size: .88rem;
    font-weight: 700;
    color: var(--text1);
    margin: 0;
}

.qv-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--page-bg);
    color: var(--text2);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.qv-close:hover {
    background: #fee2e2;
    color: var(--danger);
}

.qv-body {
    padding: 18px;
}

.qv-img-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
    background: var(--page-bg);
}

.qv-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qv-cat {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text2);
    letter-spacing: .4px;
    margin-bottom: 4px;
}

.qv-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text1);
    margin-bottom: 10px;
    line-height: 1.35;
}

.qv-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
}

.qv-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.qv-price-old {
    font-size: .88rem;
    color: var(--text2);
    text-decoration: line-through;
}

.qv-price-na {
    font-size: .88rem;
    color: var(--text2);
}

.qv-disc-badge {
    font-size: .72rem;
    font-weight: 700;
    background: #fef3c7;
    color: #92400e;
    padding: 2px 8px;
    border-radius: 20px;
}

.qv-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


/* ═══════════════════════════════════════════════════════════
   29. SKELETON / SHIMMER LOADING SYSTEM
   ═══════════════════════════════════════════════════════════ */


/* Shimmer keyframe */

@keyframes shimmer {
    0% {
        background-position: -600px 0;
    }
    100% {
        background-position: 600px 0;
    }
}


/* ── Utility: shimmer on any element ────────────────────── */

.skel {
    background: linear-gradient(90deg, #ece9e3 25%, #dbd8d0 50%, #ece9e3 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s ease-in-out infinite;
    border-radius: 8px;
    color: transparent !important;
}

.skel * {
    visibility: hidden;
}


/* ── Image containers: shimmer until image loads ─────────── */


/*  Targets: article cards, product cards, article detail cover,
    hero slide, sidebar pop-items, compare product cards         */

.art-img,
.pc-img,
.ap-cover,
.cmp-winner-img {
    background: linear-gradient(90deg, #ece9e3 25%, #dbd8d0 50%, #ece9e3 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s ease-in-out infinite;
}


/* Images hidden by default; revealed by JS on load */

.art-img>img,
.pc-img>img,
.ap-cover>img,
.cmp-winner-img>img {
    opacity: 0;
    transition: opacity .4s ease;
}


/* Revealed state — JS adds .img-loaded to the container */

.art-img.img-loaded,
.pc-img.img-loaded,
.ap-cover.img-loaded,
.cmp-winner-img.img-loaded {
    animation: none;
    background: none;
}

.art-img.img-loaded>img,
.pc-img.img-loaded>img,
.ap-cover.img-loaded>img,
.cmp-winner-img.img-loaded>img {
    opacity: 1;
}


/* ── Skeleton card placeholder (for JS-generated skeletons) ─ */

.skel-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.skel-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(90deg, #ece9e3 25%, #dbd8d0 50%, #ece9e3 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s ease-in-out infinite;
}

.skel-card-body {
    padding: 13px 15px 15px;
}

.skel-line {
    height: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #ece9e3 25%, #dbd8d0 50%, #ece9e3 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s ease-in-out infinite;
}

.skel-line.short {
    width: 55%;
}

.skel-line.medium {
    width: 75%;
}

.skel-line.full {
    width: 100%;
}