:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --primary-light: #fdba74;
    --primary-bg: #fff7ed;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --border: #e2e8f0;
    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;
    --header-height: 54px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header - Fixed */
.header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
}

.header .container {
    height: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo {
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo img { height: 30px; width: auto; border-radius: 6px; }
.logo-text { 
    font-size: 15px; 
    font-weight: 700; 
    color: var(--primary);
}

.nav { 
    display: flex; 
    align-items: center; 
    gap: 10px;
    margin-left: auto;
}

.btn-login {
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary);
    color: white;
    transition: all 0.2s;
    white-space: nowrap;
}

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

.user-menu { position: relative; }

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-gray);
    border: none;
    cursor: pointer;
    padding: 4px 8px 4px 4px;
    border-radius: 50px;
    transition: background 0.2s;
}

.user-menu-trigger:hover { background: var(--border); }
.user-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.user-name { font-size: 12px; font-weight: 500; color: var(--text-dark); max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-trigger i { font-size: 9px; color: var(--text-muted); }

.user-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s;
    border: 1px solid var(--border);
}

.user-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s;
}

.dropdown-item:hover { background: var(--bg-light); }
.dropdown-item i { width: 14px; color: var(--text-light); font-size: 12px; }
.dropdown-item.logout { color: var(--danger); }
.dropdown-item.logout i { color: var(--danger); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

.header-selectors { display: flex; align-items: center; gap: 6px; }

.lang-switch {
    display: flex;
    background: var(--bg-gray);
    border-radius: 5px;
    padding: 2px;
}

.lang-switch a {
    padding: 4px 8px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 11px;
    border-radius: 3px;
    transition: all 0.2s;
}

.lang-switch a.active { background: white; color: var(--primary); font-weight: 600; }
.lang-switch .separator { display: none; }

.country-dropdown {
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: white;
    font-size: 12px;
    cursor: pointer;
}

.country-dropdown:focus { border-color: var(--primary); outline: none; }

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
    box-shadow: var(--shadow-lg);
}

.mobile-menu.active { max-height: 360px; }

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-light);
    font-size: 13px;
    font-weight: 500;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.mobile-nav-link i { color: var(--primary); width: 16px; }

.mobile-country-select { padding: 12px 16px; }
.mobile-country-select label { display: block; font-size: 10px; color: var(--text-light); margin-bottom: 5px; text-transform: uppercase; }
.mobile-country-select select { width: 100%; padding: 9px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; }

.mobile-lang-switch { display: flex; gap: 6px; padding: 12px 16px; }
.mobile-lang-switch a {
    flex: 1;
    text-align: center;
    padding: 9px;
    background: var(--bg-gray);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
}
.mobile-lang-switch a.active { background: var(--primary); color: white; }

/* Hero Section */
.hero {
    background: var(--bg-white);
    padding: 40px 0 48px;
    border-bottom: 1px solid var(--border);
}

.hero-content { max-width: 640px; margin: 0 auto; text-align: center; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary-bg);
    border: 1px solid var(--primary-light);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 11px;
    margin-bottom: 16px;
    color: var(--primary-dark);
    font-weight: 600;
}

.hero-badge i { font-size: 10px; }

.hero h1 {
    font-size: clamp(24px, 5vw, 34px);
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.25;
    color: var(--text-dark);
}

.hero h1 span { color: var(--primary); }

.hero-subtitle {
    font-size: clamp(13px, 2vw, 14px);
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.7;
}

/* Search Form */
.search-form { max-width: 520px; margin: 0 auto; }

.search-box {
    display: flex;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.search-box:focus-within { 
    border-color: var(--primary); 
    box-shadow: var(--shadow-md), 0 0 0 3px rgba(249,115,22,0.1);
}

.category-select {
    padding: 11px 10px;
    border: none;
    background: var(--bg-light);
    font-size: 12px;
    cursor: pointer;
    border-right: 1px solid var(--border);
    min-width: 85px;
    color: var(--text-dark);
}

.search-box input {
    flex: 1;
    padding: 11px 12px;
    border: none;
    font-size: 14px;
    outline: none;
    min-width: 0;
}

.search-box input::placeholder { color: var(--text-muted); }

.search-box button {
    padding: 11px 18px;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

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

.current-market { margin-top: 8px; font-size: 12px; color: var(--text-light); }

.search-tips { margin-top: 6px; font-size: 11px; color: var(--text-muted); }
.search-tips code { 
    background: var(--bg-gray); 
    padding: 2px 5px; 
    border-radius: 3px; 
    color: var(--primary-dark); 
    font-weight: 500;
    font-size: 10px;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.stat-item { text-align: center; }
.stat-number { 
    font-size: 20px; 
    font-weight: 700; 
    color: var(--primary);
}
.stat-label { font-size: 10px; color: var(--text-light); margin-top: 2px; }

/* Trending Products Section */
.trending-section { padding: 36px 0; background: var(--bg-light); }

.section-header { text-align: center; margin-bottom: 18px; }
.section-header h2 { font-size: 17px; margin-bottom: 4px; font-weight: 700; }
.section-header p { color: var(--text-light); font-size: 12px; }

/* Product Cards Grid */
.products-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.product-card-mini {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card-mini:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.product-card-mini .product-img {
    height: 140px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    position: relative;
    overflow: hidden;
}

.product-card-mini .product-img img {
    max-width: 100%;
    max-height: 116px;
    object-fit: contain;
}

.product-card-mini .no-img-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-muted);
    font-size: 32px;
}

.product-card-mini .prime-badge-mini {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #232f3e;
    color: #ff9900;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
}

.product-card-mini .product-emoji {
    font-size: 56px;
    line-height: 1;
}

.product-card-mini .product-price-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

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

.product-card-mini .discount-badge {
    font-size: 10px;
    font-weight: 700;
    color: #dc2626;
    background: #fef2f2;
    padding: 1px 4px;
    border-radius: 3px;
}

/* Search tips links */
.search-tips a {
    color: var(--primary);
    text-decoration: none;
    background: var(--bg-gray);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}
.search-tips a:hover {
    background: var(--primary-bg);
}

.product-card-mini .product-info {
    padding: 12px;
}

.product-card-mini .product-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
    min-height: 34px;
}

.product-card-mini .product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.product-card-mini .product-price .currency {
    font-size: 10px;
    color: var(--text-muted);
    margin-left: 2px;
}

/* Trending Keywords */
.trending-keywords { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }

.trending-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 12px;
    background: var(--bg-white);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid var(--border);
}

.trending-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.trending-tag i { color: var(--primary); font-size: 9px; }
.trending-tag:hover i { color: white; }

/* Features Section - Simplified */
.features { padding: 44px 0; background: var(--bg-white); }

.features h2 {
    text-align: center;
    font-size: 17px;
    margin-bottom: 24px;
    font-weight: 700;
}

.features-simple {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-item i {
    width: 36px;
    height: 36px;
    background: var(--primary-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 16px;
}

.feature-item span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
}

/* Tutorial Button */
.tutorial-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    padding: 10px 18px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tutorial-btn:hover {
    background: var(--primary-bg);
    border-color: var(--primary-light);
    color: var(--primary);
}

.tutorial-btn i { color: var(--primary); }

/* Tutorial Modal */
.tutorial-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.tutorial-modal.active { display: flex; }

.tutorial-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 420px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.tutorial-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tutorial-header h3 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.tutorial-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.tutorial-close:hover { color: var(--text-dark); }

.tutorial-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(80vh - 130px);
}

.tutorial-step {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

.tutorial-step:last-child { margin-bottom: 0; }

.step-num {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.step-content p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

.tutorial-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.tutorial-footer button {
    padding: 10px 28px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.tutorial-footer button:hover { background: var(--primary-dark); }

/* Footer */
.footer { background: #1e293b; color: white; padding: 32px 0 16px; }

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}

.footer-section h4 { margin-bottom: 10px; color: var(--primary-light); font-size: 12px; font-weight: 600; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 5px; }
.footer-section a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 12px; transition: color 0.2s; }
.footer-section a:hover { color: white; }

.footer-disclaimer { font-size: 10px; line-height: 1.5; color: rgba(255,255,255,0.5); margin-bottom: 6px; }
.footer-affiliate { font-size: 10px; color: rgba(255,255,255,0.6); }

.footer-bottom {
    text-align: center;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
    font-size: 11px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav { display: none; }
    .mobile-menu-toggle { display: block; }
    .mobile-menu { display: block; }
    
    .hero { padding: 32px 0 40px; }
    
    .search-box { flex-direction: column; }
    .category-select { border-right: none; border-bottom: 1px solid var(--border); }
    .search-box button { justify-content: center; }
    
    .stats-bar { flex-wrap: wrap; gap: 16px; }
    .stat-item { flex: 1; min-width: 60px; }
    .stat-number { font-size: 17px; }
    
    .features { padding: 36px 0; }
    .features-simple { gap: 20px; }
    .feature-item { flex-direction: column; text-align: center; gap: 6px; }
    
    .trending-section { padding: 28px 0; }
    .products-showcase { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-card-mini .product-img { height: 120px; }
    
    .footer-content { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 21px; }
    .hero-subtitle { font-size: 12px; }
    .hero-badge { font-size: 10px; padding: 4px 10px; }
    .stat-number { font-size: 15px; }
    .stat-label { font-size: 9px; }
    .logo-text { display: none; }
    .trending-tag { padding: 6px 10px; font-size: 11px; }
    .product-card-mini .product-name { font-size: 11px; }
    .product-card-mini .product-price { font-size: 14px; }
}
