
:root{--primary:#1a56db;--primary-dark:#1e40af;--primary-light:#dbeafe;--accent:#f59e0b;--gray-50:#f9fafb;--gray-100:#f3f4f6;--gray-200:#e5e7eb;--gray-300:#d1d5db;--gray-600:#4b5563;--gray-700:#374151;--gray-800:#1f2937;--gray-900:#111827;--white:#fff;--shadow:0 1px 3px rgba(0,0,0,.1),0 1px 2px rgba(0,0,0,.06);--shadow-md:0 4px 6px rgba(0,0,0,.1);--radius:8px;--max-w:1200px}
*,::after,::before{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Segoe UI',system-ui,-apple-system,sans-serif;color:var(--gray-800);line-height:1.6;background:var(--gray-50)}
a{color:var(--primary);text-decoration:none}a:hover{color:var(--primary-dark)}
img{max-width:100%;height:auto}
.container{max-width:var(--max-w);margin:0 auto;padding:0 1rem}

/* Header */
.header{background:var(--white);box-shadow:var(--shadow);position:sticky;top:0;z-index:100}
.header .container{display:flex;align-items:center;justify-content:space-between;padding:0 1rem;height:70px}
.logo{font-size:1.5rem;font-weight:800;color:var(--primary)}.logo span{color:var(--gray-800)}
.nav{display:flex;gap:1.5rem;align-items:center}
.nav a{color:var(--gray-700);font-weight:500;font-size:.95rem;padding:.3rem 0;border-bottom:2px solid transparent;transition:all .2s}
.nav a:hover,.nav a.active{color:var(--primary);border-bottom-color:var(--primary)}
.menu-toggle{display:none;background:0;border:0;font-size:1.5rem;cursor:pointer;color:var(--gray-700)}

/* Hero */
.hero{background:linear-gradient(135deg,var(--primary) 0%,#1e3a8a 100%);color:var(--white);padding:5rem 1rem;text-align:center}
.hero h1{font-size:2.8rem;font-weight:800;margin-bottom:1rem;line-height:1.2}
.hero p{font-size:1.2rem;opacity:.9;max-width:700px;margin:0 auto 2rem}
.hero .btn{display:inline-block;background:var(--accent);color:var(--white);padding:.85rem 2rem;border-radius:50px;font-weight:600;font-size:1rem;transition:all .3s}
.hero .btn:hover{background:#d97706;color:var(--white);transform:translateY(-2px);box-shadow:0 10px 20px rgba(0,0,0,.2)}

/* Sections */
.section{padding:4rem 0}
.section-title{font-size:2rem;font-weight:700;text-align:center;margin-bottom:.5rem;color:var(--gray-900)}
.section-subtitle{text-align:center;color:var(--gray-600);margin-bottom:2.5rem;font-size:1.05rem}

/* Cards */
.card{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;transition:all .3s}
.card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md)}
.card-img{width:100%;height:200px;object-fit:cover;background:var(--gray-200)}
.card-body{padding:1.25rem}
.card-title{font-size:1.1rem;font-weight:600;margin-bottom:.5rem;color:var(--gray-900)}
.card-text{color:var(--gray-600);font-size:.9rem;line-height:1.5}

/* Grid */
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem}

/* Product cards */
.product-card{text-align:center}
.product-card .card-img{height:220px}
.product-card .price{color:var(--primary);font-weight:700;font-size:1.2rem;margin-top:.5rem}

/* Blog */
.blog-card .card-meta{font-size:.8rem;color:var(--gray-600);margin-bottom:.5rem}
.blog-card .card-excerpt{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

/* Footer */
.footer{background:var(--gray-900);color:var(--gray-300);padding:3rem 1rem 1.5rem}
.footer-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem;margin-bottom:2rem}
.footer h4{color:var(--white);margin-bottom:1rem;font-size:1.05rem}
.footer a{color:var(--gray-300);font-size:.9rem;display:block;margin-bottom:.5rem}
.footer a:hover{color:var(--white)}
.footer-bottom{text-align:center;padding-top:1.5rem;border-top:1px solid var(--gray-700);font-size:.85rem}

/* Admin */
.admin-login{max-width:400px;margin:100px auto;background:var(--white);padding:2.5rem;border-radius:var(--radius);box-shadow:var(--shadow-md)}
.admin-login h2{text-align:center;margin-bottom:1.5rem}
.admin-login input,.admin-login textarea,.admin-login select{width:100%;padding:.7rem 1rem;border:1px solid var(--gray-300);border-radius:var(--radius);font-size:.95rem;margin-bottom:1rem}
.admin-login input:focus{outline:0;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light)}
.admin-table{width:100%;border-collapse:collapse;background:var(--white);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.admin-table td,.admin-table th{padding:.8rem 1rem;border-bottom:1px solid var(--gray-200);text-align:left;font-size:.9rem}
.admin-table th{background:var(--primary);color:var(--white);font-weight:600}
.btn{padding:.6rem 1.2rem;border:0;border-radius:var(--radius);cursor:pointer;font-weight:500;font-size:.9rem;transition:all .2s;display:inline-block}
.btn-primary{background:var(--primary);color:var(--white)}.btn-primary:hover{background:var(--primary-dark)}
.btn-danger{background:#ef4444;color:var(--white)}.btn-danger:hover{background:#dc2626}
.btn-sm{padding:.35rem .8rem;font-size:.8rem}

/* Article/Detail pages */
.article-content{max-width:800px;margin:0 auto;line-height:1.8;font-size:1.05rem}
.article-content h1{font-size:2.2rem;margin-bottom:1rem}
.article-content h2{font-size:1.6rem;margin:2rem 0 1rem}
.article-content h3{font-size:1.3rem;margin:1.5rem 0 .8rem}
.article-content p{margin-bottom:1.2rem}
.article-content ul,.article-content ol{margin-bottom:1.2rem;padding-left:1.5rem}
.article-content img{border-radius:var(--radius);margin:1.5rem 0}
.article-meta{color:var(--gray-600);font-size:.9rem;margin-bottom:1.5rem}

/* Contact form */
.contact-form input,.contact-form textarea{width:100%;padding:.7rem 1rem;border:1px solid var(--gray-300);border-radius:var(--radius);font-size:.95rem;margin-bottom:1rem}
.contact-form textarea{resize:vertical;min-height:120px}

/* Responsive */
@media(max-width:1024px){.grid-3,.grid-4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:768px){
  .grid-2,.grid-3,.grid-4{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .hero h1{font-size:2rem}
  .menu-toggle{display:block}
  .nav{display:none;position:absolute;top:70px;left:0;right:0;background:var(--white);flex-direction:column;padding:1rem;box-shadow:var(--shadow-md)}
  .nav.open{display:flex}
  .header .container{padding:0 1rem}
}
