/* ============================================
   MuaSam.io - Affiliate Website Styles
   ============================================ */

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --secondary: #004e98;
    --accent: #ffc857;
    --shopee: #ee4d2d;
    --tiktok: #010101;
    --tiktok-accent: #69c9d0;
    --text: #1a1a2e;
    --text-light: #666;
    --text-muted: #999;
    --bg: #ffffff;
    --bg-light: #f8f9fc;
    --bg-card: #ffffff;
    --border: #e8ecf1;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Header === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 90px;
    width: auto;
}

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

.nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(255, 107, 53, 0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 6px 6px 6px 16px;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.search-box input {
    border: none;
    background: none;
    outline: none;
    font-size: 14px;
    width: 180px;
    font-family: inherit;
}

.search-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #ff8c5a);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    background: white;
    color: var(--text);
    border-radius: 50px;
    font-weight: 600;
}

.btn-shopee {
    background: var(--shopee);
    color: white;
    font-size: 12px;
    padding: 8px 14px;
    flex: 1;
}

.btn-shopee:hover {
    background: #d4432a;
    transform: translateY(-1px);
}

.btn-tiktok {
    background: var(--tiktok);
    color: white;
    font-size: 12px;
    padding: 8px 14px;
    flex: 1;
}

.btn-tiktok:hover {
    background: #333;
    transform: translateY(-1px);
}

/* === Hero Section === */
.hero {
    padding: 82px 0 16px;
    background: linear-gradient(135deg, #fff5f0 0%, #fff 50%, #f0f4ff 100%);
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.hero-content {
    flex: 1;
    padding-top: 8px;
}

.hero-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 14px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
}

.hero-stats {
    display: flex;
    gap: 24px;
    justify-content: center;
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 16px;
    margin-bottom: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.hero-image {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.hero-mascot {
    width: 200px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(255, 107, 53, 0.2));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* === Featured Product === */
.featured-product {
    padding: 40px 0;
    background: linear-gradient(135deg, #fff8f5 0%, #f0f4ff 100%);
}

.featured-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    background: white;
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--primary);
}

.featured-image {
    flex: 0 0 320px;
    position: relative;
}

.featured-image img {
    width: 100%;
    border-radius: var(--radius-lg);
}

.featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--primary), #ff8c5a);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.featured-content {
    flex: 1;
}

.featured-tag {
    display: inline-block;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: white;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.featured-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.3;
}

.featured-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 12px;
}

.featured-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-light);
}

.featured-reviews {
    margin-bottom: 14px;
}

.mini-review {
    font-size: 13px;
    color: var(--text-light);
    padding: 8px 12px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    line-height: 1.5;
}

.mini-review strong {
    color: var(--text);
}

.featured-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.featured-price .price-current {
    font-size: 28px;
}

.price-save-tag {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.featured-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

/* === Price Note Tag === */
.price-note-tag {
    display: inline-block;
    background: rgba(255, 193, 7, 0.15);
    color: #e67e00;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
}

/* === Blog Section === */
.blog-section {
    padding: 60px 0;
}

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

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.blog-card-image {
    position: relative;
    padding-top: 100%;
    background: #f5f5f5;
    overflow: hidden;
}

.blog-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.blog-card-body {
    padding: 20px;
}

.blog-card-tag {
    display: inline-block;
    background: rgba(108, 92, 231, 0.1);
    color: #6c5ce7;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
}

.blog-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.blog-card-title a:hover {
    color: var(--primary);
}

.blog-card-excerpt {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.blog-pagination a, .blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.blog-pagination a:hover, .blog-pagination span.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* === Platforms === */
.platforms {
    padding: 30px 0;
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.platforms-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.platforms-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.platform-logos {
    display: flex;
    gap: 20px;
}

.platform-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
}

.platform-logo.shopee {
    background: rgba(238, 77, 45, 0.1);
    color: var(--shopee);
}

.platform-logo.tiktok {
    background: rgba(1, 1, 1, 0.06);
    color: var(--tiktok);
}

/* === Section Shared === */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-light);
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* === Categories === */
.categories {
    padding: 80px 0;
}

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

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
    text-align: center;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.category-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,107,53,0.1), rgba(0,78,152,0.1));
    border-radius: var(--radius-md);
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 16px;
}

.category-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.category-count {
    font-size: 13px;
    color: var(--text-muted);
}

/* === Products === */
.products {
    padding: 60px 0;
    background: var(--bg-light);
}

.products-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}
.products-toolbar .filter-bar {
    margin-bottom: 0;
    justify-content: flex-start;
    flex: 1 1 auto;
}
.sort-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 14px;
    flex-shrink: 0;
}
.sort-bar select {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 14px;
    background: var(--bg-card);
    color: var(--text-main);
    cursor: pointer;
    outline: none;
}
.sort-bar select:focus {
    border-color: var(--primary);
}

.product-discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e74c3c;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    z-index: 2;
    pointer-events: none;
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

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

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    z-index: 2;
}

.product-image {
    position: relative;
    padding-top: 100%;
    background: #f5f5f5;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-platform {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.platform-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.platform-tag.shopee {
    background: rgba(238, 77, 45, 0.1);
    color: var(--shopee);
}

.platform-tag.tiktok {
    background: rgba(1, 1, 1, 0.06);
    color: var(--tiktok);
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    height: 2.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.product-name a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.stars {
    color: #ffc107;
    font-size: 13px;
    display: flex;
    gap: 1px;
}

.rating-count {
    font-size: 12px;
    color: var(--text-muted);
}

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

.price-current {
    font-size: 20px;
    font-weight: 800;
    color: var(--shopee);
}

.price-original {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Hide shared price block — price now shown on each button */
.product-card .product-price { display: none; }

/* CTA button layout: icon left | text+price right stacked */
.btn-shopee,
.btn-tiktok {
    display: flex !important;
    align-items: center;
    gap: 8px;
    text-align: center;
}
.btn-shopee > i,
.btn-tiktok > i {
    font-size: 16px;
    flex-shrink: 0;
}
.btn-shopee .btn-content,
.btn-tiktok .btn-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    line-height: 1.2;
}
.btn-shopee .btn-price,
.btn-tiktok .btn-price {
    display: block;
    font-size: 11px;
    font-weight: 700;
    opacity: 0.92;
    line-height: 1;
    margin-top: 2px;
    letter-spacing: 0;
}

/* Push affiliate buttons to bottom of card */
.product-info .affiliate-buttons {
    margin-top: auto;
    padding-top: 12px;
    flex-direction: column;
    gap: 8px;
}
.product-info .affiliate-buttons .btn-shopee,
.product-info .affiliate-buttons .btn-tiktok {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
}

/* Cheapest highlight — dùng chung cho product card + blog buttons */
.product-actions .cheapest,
.affiliate-buttons .cheapest {
    position: relative;
    box-shadow: 0 0 0 2px #f0a500, 0 2px 8px rgba(240,165,0,.3);
}
.product-actions .cheapest-badge,
.affiliate-buttons .cheapest-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e6a200;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    line-height: 1.4;
    white-space: nowrap;
    z-index: 1;
}

/* Price Skeleton Loading */
.price-loading {
    display: inline-block;
    min-width: 100px;
    height: 1.2em;
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: priceShimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
    color: transparent !important;
    text-decoration: none !important;
}

@keyframes priceShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Price Comparison Mini */
.product-compare {
    margin-bottom: 14px;
}

.price-compare-mini {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 10px;
}

.compare-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 13px;
}

.compare-row + .compare-row {
    border-top: 1px dashed var(--border);
}

.compare-row.best {
    color: #2ecc71;
    font-weight: 600;
}

.compare-row .shop-name {
    display: flex;
    align-items: center;
    gap: 5px;
}

.compare-row .shop-price {
    display: flex;
    align-items: center;
    gap: 4px;
}

.compare-row .fa-crown {
    color: #ffc107;
    font-size: 11px;
}

.product-actions {
    display: flex;
    gap: 8px;
}
/* When only one CTA renders (no TikTok link), let it span the full row */
.product-actions.product-actions-single > .btn { flex: 1 1 100%; }
/* Single-button card: push Shopee button to bottom row (align with TikTok row on dual cards) */
.product-info .product-actions {
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
.product-info .product-actions-single {
    min-height: 46px;
    justify-content: center;
    padding: 29px 0;
}

/* === How it Works === */
.how-it-works {
    padding: 60px 0;
}

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

.step-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.step-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,107,53,0.1), rgba(255,107,53,0.05));
    border-radius: 50%;
    font-size: 28px;
    color: var(--primary);
}

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* === Newsletter === */
.newsletter {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.newsletter-content h2 {
    font-size: 28px;
    color: white;
    font-weight: 700;
    margin-bottom: 8px;
}

.newsletter-content p {
    color: rgba(255,255,255,0.8);
    font-size: 15px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    min-width: 400px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}

.newsletter-form .btn {
    white-space: nowrap;
    background: white;
    color: var(--primary);
    font-weight: 700;
}

.newsletter-form .btn:hover {
    background: var(--accent);
    color: var(--text);
}

/* === Footer === */
.footer {
    background: #0d1117;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    height: 50px;
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-col h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 14px;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.contact-info li i {
    color: var(--primary);
    width: 16px;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
}

.affiliate-notice {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

/* ============================================
   Review Page Styles
   ============================================ */

.breadcrumb {
    padding: 90px 0 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-light);
    transition: var(--transition);
}

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

.breadcrumb span {
    margin: 0 8px;
}

/* Review Layout */
.review-page {
    padding: 0 0 80px;
}

.review-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
}

/* Review Main Content */
.review-main {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.review-gallery {
    position: relative;
    background: #f5f5f5;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-gallery img {
    max-height: 100%;
    object-fit: contain;
}

.review-body {
    padding: 32px;
}

.review-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.review-meta i {
    margin-right: 5px;
}

.review-rating-big {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.rating-score {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
}

.rating-details {
    display: flex;
    flex-direction: column;
}

.rating-details .stars {
    font-size: 18px;
}

.rating-details span {
    font-size: 13px;
    color: var(--text-muted);
}

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

.review-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.review-section p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 12px;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 16px;
}

.pros, .cons {
    padding: 20px;
    border-radius: var(--radius-md);
}

.pros {
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.cons {
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.pros h3, .cons h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pros h3 { color: #2ecc71; }
.cons h3 { color: #e74c3c; }

.pros li, .cons li {
    font-size: 14px;
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-light);
}

.pros li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2ecc71;
    font-weight: 700;
}

.cons li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: 700;
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

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

.specs-table td {
    padding: 12px 16px;
    font-size: 14px;
}

.specs-table td:first-child {
    font-weight: 600;
    width: 40%;
    background: var(--bg-light);
    color: var(--text);
}

.specs-table td:last-child {
    color: var(--text-light);
}

/* Review Sidebar */
.review-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.sidebar-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Price Comparison Card */
.price-card {
    border: 2px solid var(--primary);
}

.price-card .price-big {
    font-size: 32px;
    font-weight: 800;
    color: var(--shopee);
    margin-bottom: 4px;
}

.price-card .price-old {
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 16px;
}

.price-card .price-save {
    display: inline-block;
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.price-shop-list {
    margin-bottom: 20px;
}

.price-shop-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    transition: var(--transition);
}

.price-shop-item:hover {
    background: var(--bg-light);
}

.price-shop-item.best {
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.shop-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.shop-icon.shopee-icon {
    background: rgba(238, 77, 45, 0.1);
    color: var(--shopee);
}

.shop-icon.tiktok-icon {
    background: rgba(1, 1, 1, 0.06);
    color: var(--tiktok);
}

.shop-detail {
    display: flex;
    flex-direction: column;
}

.shop-detail .name {
    font-weight: 600;
    font-size: 14px;
}

.shop-detail .shipping {
    font-size: 11px;
    color: var(--text-muted);
}

.shop-price-val {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.shop-price-val .price {
    font-weight: 700;
    font-size: 15px;
}

.shop-price-val .badge-best {
    font-size: 10px;
    background: #2ecc71;
    color: white;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 600;
}

.sidebar-card .btn {
    width: 100%;
    margin-bottom: 8px;
}

.sidebar-card .btn:last-child {
    margin-bottom: 0;
}

/* Related Products */
.related-product {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

.related-product img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.related-info h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.4;
}

.related-info .price {
    font-size: 14px;
    font-weight: 700;
    color: var(--shopee);
}

/* ============================================
   Deal Hot - Trending Keywords Section
   ============================================ */

.deal-hot-section {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 50%, #16213e 100%);
}

.deal-hot-section .section-title,
.deal-hot-section .section-desc {
    color: #fff;
}

.deal-cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 30px;
}

.deal-cat-tab {
    padding: 8px 18px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    background: rgba(255,255,255,0.05);
    color: #aaa;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.deal-cat-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(233, 69, 96, 0.1);
}

.deal-cat-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
}

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

.deal-keywords-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.deal-cat-group {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.deal-cat-group:hover {
    border-color: rgba(233, 69, 96, 0.2);
    background: rgba(255,255,255,0.05);
}

.deal-cat-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.deal-cat-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    margin-left: 8px;
    vertical-align: middle;
}

.deal-sub-title {
    font-size: 14px;
    font-weight: 600;
    color: #4ecca3;
    margin: 14px 0 8px;
    padding-left: 4px;
}

.deal-sub-title:first-child {
    margin-top: 0;
}

.deal-keywords {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.deal-keyword-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px;
    font-size: 13px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    transition: all 0.25s ease;
}

.deal-keyword-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(233, 69, 96, 0.25);
    transform: translateX(4px);
}

.keyword-text {
    font-size: 14px;
    color: #ccc;
    flex: 1;
    min-width: 0;
    line-height: 1.4;
}

.keyword-text i {
    color: #666;
    font-size: 12px;
    margin-right: 8px;
}

.keyword-links {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.kw-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.kw-shopee {
    background: rgba(238, 77, 45, 0.15);
    color: #ee4d2d;
    border: 1px solid rgba(238, 77, 45, 0.25);
}

.kw-shopee:hover {
    background: #ee4d2d;
    color: #fff;
}

.kw-tiktok {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
}

.kw-tiktok:hover {
    background: #000;
    color: #25f4ee;
    border-color: #25f4ee;
}

/* Deal Hot "Xem thêm" Button */
.deal-show-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.deal-show-more-btn:hover {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
    border-color: rgba(243, 156, 18, 0.4);
}

/* Deal Hot Toggle Button */
.deal-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 10px;
    padding: 10px 0;
    background: rgba(233, 69, 96, 0.08);
    border: 1px dashed rgba(233, 69, 96, 0.3);
    border-radius: 10px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.deal-toggle-btn:hover {
    background: rgba(233, 69, 96, 0.15);
    border-color: var(--primary);
}

.deal-toggle-btn i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

/* Deal Hot Responsive */
@media (max-width: 768px) {
    .deal-keywords-wrapper {
        grid-template-columns: 1fr;
    }

    .deal-cat-tabs {
        gap: 6px;
        padding: 0 10px;
    }

    .deal-cat-tab {
        padding: 6px 12px;
        font-size: 12px;
    }

    .deal-cat-group {
        padding: 12px;
    }

    .deal-cat-title {
        font-size: 13px;
    }

    .deal-keyword-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 12px;
    }

    .keyword-links {
        align-self: flex-end;
    }

    .keyword-text {
        font-size: 13px;
    }

    .kw-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .deal-hot-section {
        padding: 40px 0 30px;
    }

    .deal-cat-tab {
        padding: 5px 10px;
        font-size: 11px;
    }

    .deal-cat-tab i {
        display: none;
    }
}

/* ============================================
   Compare Page Styles
   ============================================ */

.compare-page {
    padding: 24px 0 80px;
}

.compare-header {
    text-align: center;
    margin-bottom: 40px;
}

.compare-header h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.compare-header p {
    font-size: 16px;
    color: var(--text-light);
}

.compare-search {
    max-width: 600px;
    margin: 0 auto 50px;
    position: relative;
}

.compare-search input {
    width: 100%;
    padding: 16px 56px 16px 24px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.compare-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.compare-search .search-icon {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Compare Table */
.compare-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.compare-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
}

.compare-table thead {
    background: linear-gradient(135deg, #fff5f0, #f0f4ff);
}

.compare-table th {
    padding: 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid var(--border);
}

.compare-table th:first-child {
    text-align: left;
    width: 200px;
}

.compare-product-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.compare-product-header img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.compare-product-header .name {
    font-size: 14px;
    font-weight: 600;
}

.compare-table td {
    padding: 14px 20px;
    font-size: 14px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.compare-table td:first-child {
    text-align: left;
    font-weight: 600;
    background: var(--bg-light);
}

.compare-table tr:hover td {
    background: rgba(255, 107, 53, 0.02);
}

.compare-table tr:hover td:first-child {
    background: rgba(255, 107, 53, 0.06);
}

.compare-price-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.compare-price-cell .current {
    font-size: 18px;
    font-weight: 800;
    color: var(--shopee);
}

.compare-price-cell .platforms {
    display: flex;
    gap: 6px;
}

.compare-best {
    background: rgba(46, 204, 113, 0.1) !important;
    font-weight: 600;
    color: #2ecc71;
}

.compare-table td {
    display: table-cell;
}

.compare-table td .btn-shopee,
.compare-table td .btn-tiktok {
    display: flex !important;
    width: 100%;
    box-sizing: border-box;
    flex: unset;
}

.compare-table td .btn-tiktok.btn-sm {
    margin-top: 6px;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .hero-title { font-size: 28px; }
    .hero-mascot { width: 180px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .review-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
    .header-inner {
        height: 56px;
        padding: 6px 0;
        gap: 8px;
    }
    .nav { display: none; }
    .nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }
    .logo-img {
        height: 68px;
    }
    .mobile-menu-btn { display: block; order: 3; }
    .search-box {
        display: flex;
        order: 2;
        flex: 1 1 0;
        min-width: 0;
        padding: 4px 4px 4px 12px;
        box-sizing: border-box;
    }
    .search-box input {
        flex: 1;
        min-width: 0;
        width: auto;
        font-size: 13px;
    }
    .search-btn {
        flex-shrink: 0;
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .hero { padding: 130px 0 15px; }
    .hero .container { flex-direction: column; text-align: center; }
    .hero-title { font-size: 26px; }
    .hero-desc { margin: 0 auto 16px; font-size: 14px; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; gap: 20px; }
    .hero-image { display: none; }

    .featured-inner { flex-direction: column; padding: 20px; gap: 20px; }
    .featured-image { flex: none; width: 100%; }
    .featured-title { font-size: 20px; }
    .featured-desc { font-size: 13px; }
    .featured-price .price-current { font-size: 22px; }
    .featured-buttons { flex-direction: column; }
    .featured-buttons .btn { width: 100%; }

    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-info { padding: 12px; }
    .product-name { font-size: 13px; height: 2.8em; }
    .price-current { font-size: 16px; }
    .price-original { font-size: 12px; }
    .product-actions { flex-direction: column; gap: 6px; }
    .product-actions .btn { font-size: 11px; padding: 8px 10px; }
    .product-compare { display: none; }
    .product-platform .platform-tag { font-size: 10px; padding: 2px 6px; }

    .steps-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

    .blog-grid { grid-template-columns: 1fr; }

    .newsletter-inner { flex-direction: column; text-align: center; }
    .newsletter-form { min-width: auto; width: 100%; flex-direction: column; }

    .footer-grid { grid-template-columns: 1fr; }

    .section-header { margin-bottom: 24px; }
    .section-title { font-size: 22px; }
    .categories { padding: 40px 0; }
    .products { padding: 40px 0; }
    .how-it-works { padding: 40px 0; }
    .newsletter { padding: 40px 0; }

    .pros-cons { grid-template-columns: 1fr; }
    .review-title { font-size: 22px; }
    .compare-header h1 { font-size: 24px; }
    .platforms-inner { flex-direction: column; gap: 16px; }
    .platforms { padding: 16px 0; }

    .compare-table { min-width: 600px; }
    .compare-table th { padding: 12px 8px; }
    .compare-table td { padding: 10px 8px; font-size: 12px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 22px; }
    .hero-stats { flex-direction: row; gap: 16px; }
    .stat-number { font-size: 18px; }
    .stat-label { font-size: 11px; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons .btn { justify-content: center; }
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .category-card { padding: 16px 10px; }
    .category-icon { width: 48px; height: 48px; font-size: 20px; }
    .category-card h3 { font-size: 13px; }
    .filter-bar { gap: 6px; }
    .filter-btn { padding: 6px 12px; font-size: 12px; }
    .products-toolbar { flex-direction: column; align-items: flex-start; }
    .sort-bar select { font-size: 13px; padding: 5px 10px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-badge { font-size: 11px; padding: 2px 8px; top: 8px; left: 8px; }
    .product-rating { display: none; }
    .featured-inner { padding: 16px; }
    .mini-review { font-size: 12px; padding: 6px 10px; }
}

/* ============================================
   MOBILE REDESIGN — muasam-redesign inspired
   All mobile-only styles scoped to max-width: 768px
   Classes prefixed with 'mob-' to avoid desktop conflicts
   ============================================ */

/* --- Hide mobile sections on Desktop --- */
.mob-flash-section,
.mob-quick-stats,
.mob-tab-nav,
.mob-tab-content,
.mob-compare-cta {
    display: none !important;
}

/* --- App Section --- */
.app-section {
    display: block;
}

@media (max-width: 768px) {

    /* === Show mobile sections === */
    .mob-flash-section,
    .mob-quick-stats,
    .mob-tab-nav,
    .mob-tab-content,
    .mob-compare-cta {
        display: block !important;
    }

    /* === Hide desktop-only sections on mobile === */
    .hero,
    .blog-section,
    .platforms,
    .products,
    .deal-hot-section,
    .how-it-works {
        display: none !important;
    }
    /* Chỉ ẩn hot-banner trên homepage (có mob-flash-section thay thế) */
    body:has(.mob-flash-section) #hot-banner-section {
        display: none !important;
    }

    /* === TYPOGRAPHY ADJUSTMENTS === */
    body {
        font-size: 15px;
        -webkit-text-size-adjust: 100%;
    }
    h1 { font-size: 22px !important; }
    h2 { font-size: 18px !important; }
    h3 { font-size: 16px !important; }
    p, li, td, span, a {
        font-size: inherit;
    }

    /* === HEADER ADJUSTMENTS (Compact) === */
    .header {
        background: #fff;
    }
    .header-inner {
        min-height: 56px;
        padding: 6px 0;
        gap: 8px;
        align-items: center;
    }
    .logo-img {
        height: 61px;
    }
    .search-box {
        order: 2;
        flex: 1;
        border-radius: 10px;
        padding: 4px 4px 4px 12px;
        background: #f5f4f0;
        border: 2px solid transparent;
        transition: all 0.2s;
        box-sizing: border-box;
        height: 42px;
    }
    .search-box:focus-within {
        background: #fff;
        border-color: #e8601c;
        box-shadow: none;
    }
    .search-box input {
        font-size: 13.5px;
        flex: 1;
        width: auto;
        min-width: 0;
    }
    .search-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .mobile-menu-btn {
        order: 3;
        display: block;
        padding: 8px;
        margin-right: -8px; /* Align icon with container edge */
    }
    .nav { display: none; }
    .nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 52px;
        left: 0;
        right: 0;
        background: white;
        padding: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        z-index: 999;
    }

    /* ══════════════════════════════════════════
       FLASH DEALS BAR
       ══════════════════════════════════════════ */
    .mob-flash-section {
        background: linear-gradient(135deg, #e8601c 0%, #d4520f 100%);
        padding: 10px 16px 8px;
        margin-top: 52px;
    }
    .mob-flash-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 8px;
    }
    .mob-flash-label {
        display: flex;
        align-items: center;
        gap: 6px;
        color: #fff;
        font-weight: 700;
        font-size: 13px;
        letter-spacing: 0.5px;
    }
    .mob-flash-label span {
        font-size: 14px;
    }
    .mob-flash-viewall {
        color: rgba(255,255,255,0.8);
        font-size: 12px;
        text-decoration: none;
    }
    .mob-flash-carousel {
        position: relative;
        overflow: hidden;
        border-radius: 12px;
    }
    .mob-flash-track {
        display: flex;
        transition: transform 0.4s ease-in-out;
    }
    .mob-flash-slide {
        min-width: 100%;
        box-sizing: border-box;
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
    }
    .mob-flash-img-wrap {
        position: relative;
        height: 180px;
        background: #f8f7f4;
        overflow: hidden;
    }
    .mob-flash-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        cursor: pointer;
    }
    .mob-flash-discount {
        position: absolute;
        top: 8px;
        left: 8px;
        background: linear-gradient(135deg, #ff4757, #ff6b81);
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        padding: 3px 10px;
        border-radius: 20px;
    }
    .mob-flash-info {
        padding: 12px 14px 10px;
        text-align: center;
    }
    .mob-flash-name {
        font-size: 15px;
        font-weight: 700;
        color: #2d3436;
        margin-bottom: 6px;
        cursor: pointer;
        line-height: 1.3;
    }
    .mob-flash-rating {
        color: #f39c12;
        font-size: 12px;
        margin-bottom: 8px;
    }
    .mob-stars { color: #f5a623; font-size: 12px; }
    .mob-rating-num { color: #636e72; font-weight: 400; font-size: 12px; margin-left: 4px; }
    .mob-flash-prices {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-bottom: 10px;
    }
    .mob-flash-price {
        font-size: 22px;
        font-weight: 900;
        color: #e17055;
    }
    .mob-flash-oldprice {
        font-size: 14px;
        color: #b2bec3;
        text-decoration: line-through;
    }
    .mob-flash-btns {
        display: flex;
        justify-content: center;
        gap: 8px;
        flex-wrap: nowrap;
    }
    .mob-flash-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 8px 4px;
        flex: 1;
        border-radius: 8px;
        font-size: 11px;
        font-weight: 600;
        text-decoration: none;
        color: #fff;
        transition: all 0.2s;
        position: relative;
    }
    .mob-flash-btn-label {
        display: flex;
        align-items: center;
        gap: 4px;
    }
    .mob-flash-btn-price {
        font-size: 13px;
        font-weight: 800;
    }
    .mob-btn-shopee { background: linear-gradient(135deg, #ee4d2d, #ff6b35); }
    .mob-btn-tiktok { background: linear-gradient(135deg, #010101, #333); }
    .mob-btn-highlight {
        transform: scale(1.03);
        box-shadow: 0 0 0 2px #e6a200, 0 3px 12px rgba(0,0,0,.2);
    }
    .mob-cheapest-badge {
        position: absolute;
        top: -8px;
        right: -8px;
        background: #e6a200;
        color: #fff;
        font-size: 9px;
        font-weight: 700;
        padding: 2px 7px;
        border-radius: 8px;
        white-space: nowrap;
    }
    .mob-flash-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-60%);
        width: 32px;
        height: 32px;
        border: none;
        border-radius: 50%;
        background: rgba(255,255,255,0.9);
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        font-size: 14px;
        cursor: pointer;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #2d3436;
    }
    .mob-flash-prev { left: 8px; }
    .mob-flash-next { right: 8px; }
    .mob-flash-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        padding: 8px 0 2px;
    }
    .mob-flash-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        border: none;
        background: rgba(255,255,255,0.4);
        cursor: pointer;
        transition: background 0.2s;
    }
    .mob-flash-dot.active {
        background: #fff;
        transform: scale(1.2);
    }

    /* ══════════════════════════════════════════
       QUICK STATS BAR
       ══════════════════════════════════════════ */
    .mob-quick-stats {
        display: flex !important;
        background: #fff;
        padding: 10px 0;
        border-bottom: 1px solid #f0eeea;
    }
    .mob-stat {
        flex: 1;
        text-align: center;
        border-right: 1px solid #f0eeea;
    }
    .mob-stat:last-child {
        border-right: none;
    }
    .mob-stat-icon {
        font-size: 12px;
    }
    .mob-stat-num {
        font-weight: 700;
        font-size: 15px;
        color: #333;
        margin-top: 1px;
    }
    .mob-stat-label {
        font-size: 10.5px;
        color: #999;
    }

    /* ══════════════════════════════════════════
       TAB NAVIGATION
       ══════════════════════════════════════════ */
    .mob-tab-nav {
        display: flex !important;
        gap: 0;
        background: #fff;
        padding: 0 16px;
        border-bottom: 1px solid #f0eeea;
        position: sticky;
        top: 52px;
        z-index: 99;
    }
    .mob-tab-btn {
        flex: 1;
        padding: 12px 0;
        border: none;
        background: transparent;
        font-family: inherit;
        font-size: 13px;
        font-weight: 500;
        color: #888;
        cursor: pointer;
        border-bottom: 2.5px solid transparent;
        transition: all 0.2s;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
    }
    .mob-tab-btn.active {
        font-weight: 700;
        color: #e8601c;
        border-bottom-color: #e8601c;
    }

    /* ══════════════════════════════════════════
       TAB CONTENT — PRODUCT GRID
       ══════════════════════════════════════════ */
    .mob-tab-content {
        display: block !important;
        background: #fafaf8;
        min-height: 300px;
    }
    .mob-tab-panel {
        padding: 12px 12px 0;
    }

    /* Product grid: 2 columns */
    .mob-product-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

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

    .mob-product-card {
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid #f0eeea;
        transition: transform 0.15s;
        animation: mobSlideUp 0.3s ease both;
        display: flex;
        flex-direction: column;
    }
    .mob-product-card:active {
        transform: scale(0.97);
    }
    .mob-product-img-link {
        display: block;
        position: relative;
        height: 130px;
        background: linear-gradient(145deg, #f8f7f4, #efeee9);
        overflow: hidden;
    }
    .mob-product-img-link img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .mob-product-discount {
        position: absolute;
        top: 6px;
        left: 6px;
        background: #e74c3c;
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        padding: 2px 6px;
        border-radius: 6px;
    }
    .mob-product-body {
        padding: 8px 10px 10px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    .mob-product-name {
        font-size: 12.5px;
        font-weight: 600;
        color: #333;
        line-height: 1.3;
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 32px;
        text-decoration: none;
    }
    .mob-product-name:hover {
        color: #e8601c;
    }
    .mob-product-rating {
        display: flex;
        align-items: center;
        gap: 3px;
        margin-bottom: 4px;
        font-size: 11px;
    }
    .mob-product-price {
        font-weight: 800;
        font-size: 16px;
        color: #e8601c;
        margin-bottom: 1px;
    }
    .mob-product-oldprice {
        text-decoration: line-through;
        color: #bbb;
        font-size: 11px;
        margin-bottom: 6px;
    }
    .mob-product-actions {
        display: flex;
        flex-direction: column;
        gap: 5px;
        margin-top: auto;
    }
    .mob-cta-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 7px 0;
        border-radius: 8px;
        font-size: 11px;
        font-weight: 600;
        text-decoration: none;
        color: #fff;
        transition: all 0.15s;
        position: relative;
        min-height: 34px;
    }
    .mob-cta-shopee { background: #ee4d2d; }
    .mob-cta-tiktok { background: #333; }
    .mob-cta-highlight {
        box-shadow: 0 0 0 2px #e6a200, 0 2px 8px rgba(0,0,0,0.15);
    }
    .mob-cta-btn:active { opacity: 0.85; }

    /* "Xem tất cả" button */
    .mob-view-all-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 13px;
        border: 2px solid #e8601c;
        background: transparent;
        color: #e8601c;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        margin-top: 12px;
        margin-bottom: 16px;
        text-decoration: none;
        transition: all 0.2s;
    }
    .mob-view-all-btn:active {
        background: #e8601c;
        color: #fff;
    }

    /* ══════════════════════════════════════════
       TAB CONTENT — BLOG / REVIEW CARDS
       ══════════════════════════════════════════ */
    .mob-blog-card {
        display: flex;
        gap: 12px;
        background: #fff;
        border-radius: 12px;
        padding: 12px;
        margin-bottom: 10px;
        text-decoration: none;
        color: inherit;
        border: 1px solid #f0eeea;
        transition: transform 0.15s;
        animation: mobSlideUp 0.3s ease both;
    }
    .mob-blog-card:active {
        transform: scale(0.98);
    }
    .mob-blog-img {
        width: 72px;
        height: 72px;
        border-radius: 10px;
        overflow: hidden;
        flex-shrink: 0;
        background: linear-gradient(145deg, #f8f7f4, #efeee9);
    }
    .mob-blog-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .mob-blog-body {
        flex: 1;
        min-width: 0;
    }
    .mob-blog-meta {
        display: flex;
        gap: 6px;
        align-items: center;
        margin-bottom: 4px;
    }
    .mob-blog-tag {
        background: #fef0e8;
        color: #e8601c;
        font-size: 10px;
        font-weight: 600;
        padding: 2px 6px;
        border-radius: 4px;
    }
    .mob-blog-date {
        font-size: 10.5px;
        color: #aaa;
    }
    .mob-blog-title {
        font-size: 13.5px;
        font-weight: 600;
        color: #333;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* ══════════════════════════════════════════
       COMPARISON CTA
       ══════════════════════════════════════════ */
    .mob-compare-cta {
        display: block !important;
        margin: 0 16px 16px;
        background: linear-gradient(135deg, #1a1a2e, #16213e);
        border-radius: 14px;
        padding: 18px 16px;
        color: #fff;
        box-sizing: border-box;
    }
    .mob-compare-title {
        font-weight: 700;
        font-size: 15px;
        margin-bottom: 5px;
    }
    .mob-compare-desc {
        font-size: 12.5px;
        color: rgba(255,255,255,0.7);
        line-height: 1.4;
        margin-bottom: 14px;
    }
    .mob-compare-search-row {
        display: flex;
        gap: 8px;
        align-items: stretch;
        flex-wrap: wrap; /* Prevent overflow on small screens */
    }
    .mob-compare-input-wrap {
        flex: 1;
        display: flex;
        align-items: center;
        background: rgba(255,255,255,0.12);
        border-radius: 10px;
        padding: 0 10px;
        gap: 8px;
    }
    .mob-compare-search-icon {
        color: rgba(255,255,255,0.5);
        font-size: 14px;
        flex-shrink: 0;
    }
    .mob-compare-input-wrap input {
        border: none;
        background: transparent;
        outline: none;
        color: #fff;
        font-size: 13px;
        font-family: inherit;
        flex: 1;
        padding: 10px 0;
        min-width: 0;
    }
    .mob-compare-input-wrap input::placeholder {
        color: rgba(255,255,255,0.45);
    }
    .mob-compare-search-btn {
        background: transparent;
        border: none;
        color: rgba(255,255,255,0.6);
        font-size: 14px;
        cursor: pointer;
        padding: 0;
        display: none;
    }
    .mob-compare-go-btn {
        padding: 10px 14px;
        background: linear-gradient(135deg, #e8601c, #ff8c5a);
        color: #fff;
        border: none;
        border-radius: 10px;
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
        white-space: nowrap;
        transition: all 0.2s;
        flex-shrink: 0;
        flex: 1; /* Allow to expand on its own line if wrapped */
        min-width: 120px;
        text-align: center;
    }
    .mob-compare-go-btn:active {
        opacity: 0.85;
        transform: scale(0.97);
    }

    /* ══════════════════════════════════════════
       FOOTER MOBILE ADJUSTMENTS
       ══════════════════════════════════════════ */
    .footer {
        padding: 40px 0 0;
    }
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
        padding-bottom: 24px;
    }
    /* Footer first col: logo inline with text */
    .footer-col:first-child {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 12px;
    }
    .footer-logo {
        height: 40px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .footer-col:first-child > p {
        flex: 1;
        min-width: 0;
        margin-bottom: 0;
    }
    .footer-col:first-child > .social-links {
        width: 100%;
    }
    .footer-col h4 {
        font-size: 15px;
        margin-bottom: 12px;
    }
    /* Danh mục & Hỗ trợ: horizontal layout */
    .footer-col:nth-child(2) ul,
    .footer-col:nth-child(3) ul {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 12px;
    }
    .footer-col:nth-child(2) ul li,
    .footer-col:nth-child(3) ul li {
        margin-bottom: 0;
    }
    .footer-col p,
    .footer-col ul li a,
    .contact-info li {
        font-size: 13px;
    }
    .footer-bottom {
        padding: 16px 0;
        font-size: 12px;
    }
    .affiliate-notice {
        font-size: 11px;
    }
    .visitor-counter {
        font-size: 12px !important;
        gap: 8px 16px !important;
    }

    /* ══════════════════════════════════════════
       GENERAL MOBILE BUTTON TOUCH UX
       ══════════════════════════════════════════ */
    .btn, a.btn, .mobile-menu-btn {
        min-height: 44px;
        touch-action: manipulation;
    }
    .mob-cta-btn, .mob-flash-btn, .mob-view-all-btn,
    .mob-compare-go-btn, .mob-tab-btn {
        min-height: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    /* ══════════════════════════════════════════
       STICKY MOBILE CTA BAR (detail + blog pages)
       — The single highest-leverage conversion surface on mobile:
       always-visible Shopee + TikTok affiliate buttons that stick
       to the viewport bottom once the user scrolls past the fold.
       ══════════════════════════════════════════ */
    .mu-sticky-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        display: none;
        gap: 8px;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        background: #fff;
        box-shadow: 0 -4px 18px rgba(0,0,0,0.14);
        z-index: 9999;
        border-top: 1px solid #eee;
    }
    .mu-sticky-cta.show { display: flex; }
    .mu-sticky-cta .mu-sticky-btn {
        flex: 1 1 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 44px;
        padding: 10px 8px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 700;
        color: #fff;
        text-decoration: none;
        text-align: center;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .mu-sticky-cta .mu-sticky-btn.shopee {
        background: linear-gradient(135deg,#ee4d2d,#ff6b35);
    }
    .mu-sticky-cta .mu-sticky-btn.tiktok {
        background: linear-gradient(135deg,#010101,#333);
    }
    .mu-sticky-cta .mu-sticky-btn:active { transform: scale(0.97); }
    /* Give page content room so the bar never overlaps the footer */
    body.has-sticky-cta { padding-bottom: 72px; }
}

/* Desktop: never show the sticky bar */
@media (min-width: 769px) {
    .mu-sticky-cta { display: none !important; }
}

/* ═══ END MOBILE REDESIGN ═══ */
