@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
    --primary: #1e40af; /* Navy Blue */
    --accent: #3b82f6; /* Bright Blue */
    --bg: #f1f5f9;
    --text: #1e293b;
    --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Vazirmatn', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
button { font-family: inherit; cursor: pointer; }
a { text-decoration: none; color: inherit; }
.full { width: 100%; }

/* Header */
.header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-size: 1.8rem; font-weight: 900; color: var(--primary); font-style: italic; }
.logo span { color: var(--accent); }
.desktop-nav { display: flex; gap: 2rem; }
.desktop-nav a { font-weight: 500; transition: 0.3s; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--accent); }
.actions { display: flex; gap: 0.5rem; align-items: center; }
.btn-icon { background: transparent; border: none; padding: 0.5rem; border-radius: 50%; transition: 0.3s; position: relative; }
.btn-icon:hover { background: #e2e8f0; color: var(--primary); }
#cart-count { position: absolute; top: 0; right: 0; background: var(--accent); color: white; font-size: 0.7rem; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.mobile-toggle { display: none; }
.mobile-menu { display: none; background: white; padding: 1rem; border-top: 1px solid #eee; flex-direction: column; gap: 1rem; }
.mobile-menu.active { display: flex; }

/* Views */
.view { display: none; animation: fadeIn 0.3s; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Hero */
.hero { background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%); color: white; padding: 4rem 0; overflow: hidden; }
.hero-inner { display: flex; align-items: center; gap: 3rem; }
.hero-text { flex: 1; }
.hero-text h1 { font-size: 3rem; font-weight: 900; margin-bottom: 1.5rem; line-height: 1.2; }
.hero-img { flex: 1; }
.hero-img img { width: 100%; border-radius: 20px; border: 4px solid var(--accent); transform: skew(-2deg); box-shadow: 0 20px 25px rgba(0,0,0,0.2); }
.btn-primary { background: var(--accent); color: white; border: none; padding: 0.8rem 2rem; border-radius: 8px; font-weight: bold; font-size: 1rem; transition: 0.3s; }
.btn-primary:hover { background: #2563eb; transform: translateY(-2px); }

/* Products */
.section { padding: 4rem 0; }
.section-title { font-size: 2rem; font-weight: 800; margin-bottom: 2rem; border-right: 5px solid var(--accent); padding-right: 1rem; color: var(--primary); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem; }
.card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: 0.3s; border: 1px solid #e2e8f0; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px rgba(0,0,0,0.1); border-color: var(--accent); }
.card img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; }
.card-price { color: var(--accent); font-weight: 800; font-size: 1.2rem; display: block; margin-bottom: 1rem; }
.btn-add { width: 100%; background: var(--primary); color: white; border: none; padding: 0.7rem; border-radius: 6px; font-weight: bold; transition: 0.3s; }
.btn-add:hover { background: #1e3a8a; }

/* Blog */
.blog-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-content { padding: 1.5rem; }
.blog-content h3 { font-weight: 700; margin-bottom: 0.5rem; }
.blog-content p { font-size: 0.9rem; color: #64748b; margin-bottom: 1rem; }
.read-more { color: var(--accent); font-weight: bold; font-size: 0.9rem; }

/* Contact */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; background: white; padding: 3rem; border-radius: 16px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.info-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.info-item i { color: var(--accent); flex-shrink: 0; }
.contact-form input, .contact-form textarea { width: 100%; padding: 0.8rem; margin-bottom: 1rem; border: 1px solid #cbd5e1; border-radius: 6px; font-family: inherit; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }

/* Checkout */
.checkout-wrapper { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.checkout-form, .checkout-summary { background: white; padding: 2rem; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group textarea { width: 100%; padding: 0.8rem; border: 1px solid #cbd5e1; border-radius: 6px; font-family: inherit; }
.total-row { display: flex; justify-content: space-between; font-weight: 900; font-size: 1.2rem; margin-top: 1rem; padding-top: 1rem; border-top: 2px solid #eee; }
.chk-item { display: flex; justify-content: space-between; margin-bottom: 0.8rem; font-size: 0.9rem; border-bottom: 1px solid #f1f5f9; padding-bottom: 0.5rem; }

/* Footer */
.footer { background: #0f172a; color: #cbd5e1; padding: 4rem 0 1rem; margin-top: auto; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.footer-col h3 { color: white; margin-bottom: 1.5rem; font-weight: 700; }
.footer-col a { display: block; margin-bottom: 0.8rem; transition: 0.3s; }
.footer-col a:hover { color: var(--accent); }
.copy { text-align: center; border-top: 1px solid #1e293b; padding-top: 1.5rem; font-size: 0.85rem; }

/* Drawer & Modal */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; z-index: 200; backdrop-filter: blur(2px); }
.overlay.active { display: block; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: 350px; background: white; z-index: 201; transform: translateX(-100%); transition: 0.3s; display: flex; flex-direction: column; }
.drawer.active { transform: translateX(0); }
.drawer-header { padding: 1.5rem; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.drawer-body { flex: 1; padding: 1.5rem; overflow-y: auto; }
.drawer-footer { padding: 1.5rem; border-top: 1px solid #eee; background: #f8fafc; }
.cart-item { display: flex; gap: 1rem; margin-bottom: 1rem; border-bottom: 1px solid #f1f5f9; padding-bottom: 1rem; }
.cart-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; }
.modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: white; padding: 2.5rem; border-radius: 12px; width: 400px; max-width: 90%; z-index: 300; display: none; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.modal.active { display: block; }
.modal input { width: 100%; padding: 0.8rem; margin-bottom: 1rem; border: 1px solid #cbd5e1; border-radius: 6px; font-family: inherit; }

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-toggle { display: block; }
    .hero-inner { flex-direction: column; text-align: center; }
    .contact-wrapper, .checkout-wrapper { grid-template-columns: 1fr; }
}
</style>
