/* ============================================
   DigiStore - Public Frontend — Light White Theme
   ============================================ */

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

:root {
    --bg: #ffffff;
    --bg2: #f8f9fb;
    --bg-card: #ffffff;
    --border: #e5e7eb;
    --text: #111827;
    --text2: #4b5563;
    --text3: #9ca3af;
    --primary: #6C63FF;
    --primary-dark: #5a52e0;
    --secondary: #0ea5e9;
    --accent: #EF4444;
    --success: #10B981;
    --warning: #F59E0B;
    --gradient: linear-gradient(135deg, #6C63FF, #0ea5e9);
    --radius: 16px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; transition: all 0.3s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============ HEADER/NAV ============ */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.site-logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 22px; color: var(--text); }
.site-logo .logo-icon { width: 38px; height: 38px; background: var(--gradient); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--text2); font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--primary); }

/* ============ HERO ============ */
.hero { text-align: center; padding: 100px 24px 80px; position: relative; overflow: hidden; background: linear-gradient(180deg, #f0f0ff 0%, #ffffff 100%); }
.hero::before { content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%); width: 800px; height: 800px; background: radial-gradient(circle, rgba(108,99,255,0.08), transparent 60%); pointer-events: none; }
.hero h1 { font-size: 56px; font-weight: 900; line-height: 1.1; margin-bottom: 20px; letter-spacing: -2px; color: var(--text); position: relative; }
.hero h1 span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 20px; color: var(--text2); max-width: 600px; margin: 0 auto 36px; position: relative; }
.hero .btn-hero { display: inline-flex; align-items: center; gap: 10px; padding: 16px 36px; background: var(--primary); border-radius: 14px; color: #fff; font-size: 17px; font-weight: 700; transition: all 0.3s; border: none; cursor: pointer; position: relative; }
.hero .btn-hero:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(108,99,255,0.3); color: #fff; background: var(--primary-dark); }

/* ============ PRODUCT GRID ============ */
.section-title { font-size: 32px; font-weight: 800; text-align: center; margin-bottom: 12px; letter-spacing: -1px; color: var(--text); }
.section-sub { text-align: center; color: var(--text2); margin-bottom: 48px; font-size: 16px; }
.products-section { padding: 80px 0; }

.category-filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn { padding: 8px 20px; border-radius: 100px; border: 1px solid var(--border); background: #fff; color: var(--text2); font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.3s; font-family: var(--font); }
.filter-btn:hover, .filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

.product-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; box-shadow: var(--shadow); text-decoration: none; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(108,99,255,0.2); }
.product-card .card-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.product-card .card-thumb-placeholder { width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg, #f0f0ff, #e8f4fd); display: flex; align-items: center; justify-content: center; font-size: 48px; color: var(--primary); }
.product-card .card-body { padding: 20px; }
.product-card .card-category { font-size: 12px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.product-card .card-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; color: var(--text); }
.product-card .card-desc { font-size: 14px; color: var(--text3); line-height: 1.5; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .card-footer { display: flex; align-items: center; justify-content: space-between; }
.product-card .card-price { font-size: 22px; font-weight: 800; color: var(--text); }
.product-card .card-price .old-price { font-size: 14px; color: var(--text3); text-decoration: line-through; font-weight: 400; margin-left: 8px; }
.product-card .card-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text3); }

/* ============ FOOTER ============ */
.site-footer { padding: 60px 0 30px; border-top: 1px solid var(--border); background: var(--bg2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand h3 { font-size: 20px; margin-bottom: 12px; color: var(--text); }
.footer-brand p { color: var(--text3); font-size: 14px; line-height: 1.8; }
.footer-col h4 { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; color: var(--text2); }
.footer-col a { display: block; color: var(--text3); font-size: 14px; padding: 4px 0; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text3); font-size: 13px; }

/* ============ BUTTONS ============ */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.3s; border: none; font-family: var(--font); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108,99,255,0.25); color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 17px; border-radius: 14px; }
.btn-outline-white { background: transparent; border: 1px solid var(--border); color: var(--text2); }
.btn-outline-white:hover { border-color: var(--primary); color: var(--primary); }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .hero h1 { font-size: 36px; }
    .hero p { font-size: 16px; }
    .hero { padding: 60px 16px 50px; }
    .products-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .section-title { font-size: 24px; }
    .site-nav { display: none; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .product-card .card-title { font-size: 16px; }
}
