/* ============================================
   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: 45px;
    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: 120px 0 60px;
    background: linear-gradient(135deg, #fff5f0 0%, #fff 50%, #f0f4ff 100%);
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

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

.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: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

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

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

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

.hero-image {
    flex-shrink: 0;
}

.hero-mascot {
    width: 350px;
    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); }
}

/* === 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: 80px 0;
    background: var(--bg-light);
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    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;
}

.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: 80%;
    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;
}

.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;
}

.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;
}

/* 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;
}

/* === How it Works === */
.how-it-works {
    padding: 80px 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: 16/10;
    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);
}

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

.compare-page {
    padding: 100px 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;
}

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

@media (max-width: 1024px) {
    .hero-title { font-size: 36px; }
    .hero-mascot { width: 280px; }
    .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) {
    .nav { display: none; }
    .nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }
    .mobile-menu-btn { display: block; }
    .search-box { display: none; }

    .hero .container { flex-direction: column; text-align: center; }
    .hero-title { font-size: 32px; }
    .hero-desc { margin: 0 auto 24px; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-mascot { width: 200px; }

    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .steps-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

    .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-title { font-size: 26px; }

    .pros-cons { grid-template-columns: 1fr; }

    .review-title { font-size: 22px; }

    .compare-header h1 { font-size: 28px; }

    .platforms-inner { flex-direction: column; gap: 16px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 26px; }
    .hero-stats { flex-direction: column; gap: 16px; align-items: center; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .category-card { padding: 20px 12px; }
    .filter-bar { gap: 6px; }
    .filter-btn { padding: 6px 14px; font-size: 13px; }
}
