/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif; color: #333; background: #f5f5f5; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.site-header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 1000; }
.header-top { display: flex; align-items: center; padding: 15px 0; }
.header-top .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo h1 { font-size: 28px; font-weight: 800; color: #1a1a2e; letter-spacing: 2px; }
.search-bar { display: flex; flex: 1; max-width: 500px; margin: 0 30px; }
.search-bar input { flex: 1; padding: 10px 16px; border: 2px solid #e0e0e0; border-radius: 25px 0 0 25px; font-size: 14px; outline: none; transition: border-color 0.3s; }
.search-bar input:focus { border-color: #1a1a2e; }
.search-bar button { padding: 10px 20px; background: #1a1a2e; color: #fff; border: none; border-radius: 0 25px 25px 0; cursor: pointer; font-size: 14px; }
.header-actions { display: flex; align-items: center; gap: 15px; }
.lang-switcher select { padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; background: #fff; cursor: pointer; }
.btn-login, .btn-register { padding: 8px 18px; border-radius: 6px; font-size: 14px; font-weight: 500; transition: all 0.3s; }
.btn-login { color: #1a1a2e; border: 1px solid #1a1a2e; }
.btn-login:hover { background: #1a1a2e; color: #fff; }
.btn-register { background: #1a1a2e; color: #fff; }
.btn-register:hover { background: #333; }
.btn-cart { position: relative; font-size: 20px; color: #1a1a2e; }
.cart-count { position: absolute; top: -8px; right: -10px; background: #e74c3c; color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 10px; }

/* ===== Navigation ===== */
.main-nav { background: #1a1a2e; }
.nav-categories { display: flex; overflow-x: auto; }
.nav-categories li a { display: block; padding: 12px 20px; color: #ccc; font-size: 14px; white-space: nowrap; transition: all 0.3s; }
.nav-categories li a:hover, .nav-categories li a.active { color: #fff; background: rgba(255,255,255,0.1); }

/* ===== Hero Banner ===== */
.hero-banner { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); color: #fff; padding: 80px 0; }
.hero-content { text-align: center; max-width: 700px; margin: 0 auto; }
.hero-content h2 { font-size: 42px; font-weight: 700; margin-bottom: 15px; }
.hero-content p { font-size: 18px; opacity: 0.9; margin-bottom: 30px; }
.btn-primary { display: inline-block; padding: 14px 36px; background: #e94560; color: #fff; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.btn-primary:hover { background: #d63851; transform: translateY(-2px); }
.btn-secondary { display: inline-block; padding: 14px 36px; background: transparent; color: #fff; border: 2px solid #fff; border-radius: 8px; font-size: 16px; cursor: pointer; transition: all 0.3s; }

/* ===== Products ===== */
.products-section, .hot-products { padding: 50px 0; }
.section-title { font-size: 28px; font-weight: 700; margin-bottom: 30px; color: #1a1a2e; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.filter-bar select { padding: 10px 16px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; min-width: 200px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: all 0.3s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.product-card .product-img { width: 100%; height: 220px; object-fit: cover; background: #f0f0f0; }
.product-card .product-info { padding: 16px; }
.product-card .product-name { font-size: 15px; font-weight: 600; color: #333; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .product-price { font-size: 20px; font-weight: 700; color: #e94560; }
.product-card .product-price .original { font-size: 14px; color: #999; text-decoration: line-through; margin-left: 8px; font-weight: 400; }
.product-card .product-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 13px; color: #888; }
.product-card .product-badge { position: absolute; top: 10px; left: 10px; background: #e94560; color: #fff; padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; }

/* ===== Pagination ===== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination button { padding: 10px 18px; border: 1px solid #ddd; background: #fff; border-radius: 6px; cursor: pointer; font-size: 14px; transition: all 0.3s; }
.pagination button:hover, .pagination button.active { background: #1a1a2e; color: #fff; border-color: #1a1a2e; }

/* ===== FAQ ===== */
.faq-section { padding: 50px 0; background: #fff; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #eee; }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; cursor: pointer; font-size: 16px; font-weight: 600; color: #333; }
.faq-question i { transition: transform 0.3s; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer p { padding-bottom: 20px; color: #666; font-size: 15px; }

/* ===== Feedback ===== */
.feedback-section { padding: 50px 0; }
.feedback-section textarea { width: 100%; max-width: 600px; padding: 16px; border: 1px solid #ddd; border-radius: 8px; font-size: 15px; resize: vertical; min-height: 120px; margin-bottom: 15px; }

/* ===== Footer ===== */
.site-footer { background: #1a1a2e; color: #ccc; padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 30px; }
.footer-col h3 { color: #fff; font-size: 22px; margin-bottom: 15px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 15px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #aaa; font-size: 14px; transition: color 0.3s; }
.footer-col ul li a:hover { color: #fff; }
.ssl-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(0,200,83,0.15); color: #00C853; padding: 6px 12px; border-radius: 6px; font-size: 13px; margin-top: 10px; }
.social-links { display: flex; gap: 12px; }
.social-links a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.1); border-radius: 50%; color: #fff; font-size: 16px; transition: all 0.3s; }
.social-links a:hover { background: #e94560; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.footer-lang select { padding: 6px 10px; border: 1px solid rgba(255,255,255,0.2); background: transparent; color: #ccc; border-radius: 4px; }

/* ===== APP Download Float (Bottom Left) ===== */
.app-download-float { position: fixed; bottom: 20px; left: 20px; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.app-btn { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: #fff; color: #333; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.15); font-size: 13px; font-weight: 600; transition: all 0.3s; }
.app-btn:hover { transform: translateX(4px); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.app-btn.android i { color: #3DDC84; font-size: 18px; }
.app-btn.ios i { color: #333; font-size: 18px; }

/* ===== Customer Service Float (Bottom Right) ===== */
.customer-service-float { position: fixed; bottom: 20px; right: 20px; z-index: 999; }
.cs-btn { width: 56px; height: 56px; border-radius: 50%; border: none; color: #fff; font-size: 24px; cursor: pointer; box-shadow: 0 4px 16px rgba(0,200,83,0.4); transition: all 0.3s; }
.cs-btn:hover { transform: scale(1.1); }
.cs-panel { display: none; position: absolute; bottom: 70px; right: 0; background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); width: 260px; overflow: hidden; }
.cs-panel.show { display: block; }
.cs-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: #00C853; color: #fff; }
.cs-header h4 { font-size: 15px; }
.cs-header button { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; }
.cs-body { padding: 10px; }
.cs-option { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: #333; transition: background 0.3s; }
.cs-option:hover { background: #f5f5f5; }
.cs-option i { font-size: 20px; width: 24px; text-align: center; }

/* ===== GDPR Consent ===== */
.gdpr-consent { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #1a1a2e; color: #fff; padding: 20px; z-index: 10000; box-shadow: 0 -4px 20px rgba(0,0,0,0.3); }
.gdpr-consent.show { display: block; }
.gdpr-content { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.gdpr-content p { font-size: 14px; flex: 1; }
.gdpr-actions { display: flex; gap: 10px; flex-shrink: 0; }
.gdpr-actions .btn-primary { padding: 10px 24px; font-size: 14px; }
.gdpr-actions .btn-secondary { padding: 10px 24px; font-size: 14px; border-color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 768px) {
    .header-top .container { flex-wrap: wrap; }
    .search-bar { order: 3; max-width: 100%; margin: 10px 0 0; }
    .hero-content h2 { font-size: 28px; }
    .hero-content p { font-size: 15px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-card .product-img { height: 160px; }
    .footer-grid { grid-template-columns: 1fr; }
    .gdpr-content { flex-direction: column; text-align: center; }
    .section-header { flex-direction: column; gap: 15px; }
    .nav-categories { padding-bottom: 5px; }
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-card .product-info { padding: 10px; }
    .product-card .product-name { font-size: 13px; }
    .product-card .product-price { font-size: 16px; }
    .header-actions { gap: 8px; }
    .btn-login, .btn-register { padding: 6px 12px; font-size: 12px; }
}

/* ===== Auth Modal ===== */
.auth-modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 10001; justify-content: center; align-items: center; }
.auth-modal.show { display: flex; }
.auth-modal-content { background: #fff; border-radius: 12px; padding: 30px; width: 90%; max-width: 400px; position: relative; box-shadow: 0 10px 40px rgba(0,0,0,0.3); }
.auth-close { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 20px; cursor: pointer; color: #999; }
.auth-close:hover { color: #333; }
.auth-form h2 { font-size: 24px; font-weight: 700; margin-bottom: 20px; color: #1a1a2e; text-align: center; }
.auth-form input { width: 100%; padding: 12px 16px; margin-bottom: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 15px; box-sizing: border-box; }
.auth-form input:focus { outline: none; border-color: #1a1a2e; }
