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

:root {
    --primary: #b45309; /* Copper/Bronze */
    --primary-dark: #78350f;
    --dark: #0f172a; /* Midnight Blue/Charcoal */
    --light: #f8fafc;
    --white: #ffffff;
    --text: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
    
    --font-main: 'Vazirmatn', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }
body {
    font-family: var(--font-main);
    background: var(--light);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex; flex-direction: column;
}

a { text-decoration: none; color: inherit; cursor: pointer; transition: 0.3s; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.full { width: 100%; }
.hidden { display: none !important; }

/* Top Bar */
.top-bar {
    background: var(--dark); color: var(--white);
    font-size: 0.85rem; padding: 0.5rem 0;
}
.tb-inner { display: flex; justify-content: space-between; align-items: center; }
.tb-links a { margin-right: 1.5rem; color: #cbd5e1; }
.tb-links a:hover { color: var(--primary); }

/* Header */
.header {
    background: var(--white); border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.header-inner {
    height: 80px; display: flex; justify-content: space-between; align-items: center;
}
.logo {
    font-size: 1.8rem; font-weight: 900; color: var(--dark);
    display: flex; align-items: center; gap: 0.5rem; letter-spacing: -1px;
}
.logo span { color: var(--primary); }
.desktop-nav { display: flex; gap: 2rem; }
.desktop-nav a { font-weight: 600; font-size: 0.95rem; color: var(--text); position: relative; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--primary); }
.desktop-nav a.active::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 100%; height: 2px; background: var(--primary);
}
.header-actions { display: flex; gap: 0.5rem; }
.icon-btn {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: var(--text); transition: 0.3s; position: relative;
}
.icon-btn:hover { background: var(--light); color: var(--primary); }
#cart-badge {
    position: absolute; top: -2px; right: -2px; background: var(--primary); 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 */
.mobile-menu {
    position: fixed; inset: 0; background: var(--white); z-index: 200;
    transform: translateX(100%); transition: 0.3s; display: flex; flex-direction: column;
}
.mobile-menu.active { transform: translateX(0); }
.mm-header { padding: 1.5rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.mm-links { padding: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.mm-links a { font-size: 1.1rem; font-weight: 700; border-bottom: 1px solid var(--light); padding-bottom: 0.5rem; }

/* Hero */
.hero {
    display: grid; grid-template-columns: 1fr 1fr; align-items: center;
    background: var(--white); min-height: 600px; position: relative;
}
.hero-content { padding: 4rem 10%; z-index: 1; }
.hero-tag {
    display: inline-block; background: #fff7ed; color: var(--primary);
    padding: 0.4rem 1rem; border-radius: 30px; font-weight: 700; font-size: 0.9rem; margin-bottom: 1.5rem;
}
.hero h1 {
    font-size: 3.5rem; font-weight: 900; color: var(--dark); line-height: 1.2; margin-bottom: 1.5rem;
}
.hero p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 500px; }
.hero-btns { display: flex; gap: 1rem; }
.btn-primary {
    background: var(--dark); color: var(--white); padding: 0.9rem 2rem;
    border-radius: 8px; font-weight: 700; transition: 0.3s;
}
.btn-primary:hover { background: var(--primary); transform: translateY(-2px); }
.btn-outline {
    border: 2px solid var(--dark); color: var(--dark); padding: 0.9rem 2rem;
    border-radius: 8px; font-weight: 700; transition: 0.3s;
}
.btn-outline:hover { background: var(--dark); color: var(--white); }

.hero-image { height: 100%; position: relative; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.float-card {
    position: absolute; bottom: 40px; right: 40px; background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px); padding: 1rem 1.5rem; border-radius: 12px;
    display: flex; align-items: center; gap: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    font-weight: 700; color: var(--dark);
}
.float-card i { color: var(--primary); }

/* Categories */
.section { padding: 5rem 0; }
.section-head { margin-bottom: 3rem; }
.section-head h2 { font-size: 2rem; font-weight: 800; color: var(--dark); }
.flex-head { display: flex; justify-content: space-between; align-items: center; }
.link-more { color: var(--primary); font-weight: 700; border-bottom: 2px solid transparent; }
.link-more:hover { border-color: var(--primary); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.cat-card {
    position: relative; height: 350px; border-radius: 16px; overflow: hidden; cursor: pointer;
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.cat-card:hover img { transform: scale(1.05); }
.cat-info {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: var(--white);
}
.cat-info h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.cat-info span { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; opacity: 0.8; }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2rem; }
.product-card {
    background: var(--white); border-radius: 16px; overflow: hidden;
    transition: 0.3s; border: 1px solid transparent;
}
.product-card:hover { border-color: var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.pc-img { height: 250px; background: #f8fafc; padding: 2rem; display: flex; align-items: center; justify-content: center; position: relative; }
.pc-img img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pc-badge {
    position: absolute; top: 15px; right: 15px; background: var(--dark); color: var(--white);
    padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.75rem; font-weight: 700;
}
.pc-info { padding: 1.5rem; }
.pc-cat { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.pc-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--dark); }
.pc-price { font-weight: 800; color: var(--primary); font-size: 1.1rem; margin-bottom: 1rem; }
.btn-add {
    width: 100%; padding: 0.8rem; border: 1px solid var(--border); border-radius: 8px;
    font-weight: 600; transition: 0.3s;
}
.btn-add:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }

/* Features Banner */
.features-banner { background: var(--dark); color: var(--white); padding: 4rem 0; }
.fb-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; }
.fb-item { text-align: center; }
.fb-item i { width: 48px; height: 48px; color: var(--primary); margin-bottom: 1rem; }
.fb-item h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.fb-item p { color: #94a3b8; font-size: 0.9rem; }

/* Blog */
.blog-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2.5rem; }
.blog-card { background: var(--white); border-radius: 16px; overflow: hidden; cursor: pointer; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.bc-img { height: 220px; }
.bc-img img { width: 100%; height: 100%; object-fit: cover; }
.bc-content { padding: 1.5rem; }
.bc-content h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.8rem; }
.bc-content p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.read-more { color: var(--primary); font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }

/* Single Blog */
.single-blog-container { max-width: 800px; }
.back-btn { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; margin-bottom: 2rem; color: var(--text-muted); }
.article-hero { width: 100%; height: 400px; object-fit: cover; border-radius: 16px; margin-bottom: 2rem; }
.article-content { font-size: 1.1rem; line-height: 1.8; color: var(--text); }
.article-content h2 { color: var(--dark); margin: 2rem 0 1rem; }

/* Auth */
.auth-container {
    min-height: 70vh; display: flex; align-items: center; justify-content: center;
    background: url('https://images.unsplash.com/photo-1483985988355-763728e1935b?auto=format&fit=crop&w=1600&q=80') center/cover;
}
.auth-box {
    background: rgba(255,255,255,0.95); padding: 3rem; border-radius: 16px;
    width: 400px; max-width: 90%; text-align: center; box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.auth-box h2 { color: var(--dark); margin-bottom: 0.5rem; }
.inp-group { text-align: right; margin-bottom: 1rem; }
.inp-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; }
.inp-group input { width: 100%; padding: 0.8rem; border: 1px solid var(--border); border-radius: 8px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info h2 { font-size: 2.5rem; margin-bottom: 2rem; color: var(--dark); }
.ci-list { list-style: none; }
.ci-list li { display: flex; gap: 1rem; margin-bottom: 1.5rem; font-size: 1.1rem; }
.ci-list i { color: var(--primary); }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 1rem; margin-bottom: 1rem; border: 1px solid var(--border); border-radius: 8px;
}

/* Checkout */
.checkout-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; }
.chk-form, .chk-summary { background: var(--white); padding: 2rem; border-radius: 16px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.chk-form input, .chk-form textarea {
    width: 100%; padding: 0.9rem; margin-bottom: 1rem; border: 1px solid var(--border); border-radius: 8px;
}
.chk-item { display: flex; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--light); }
.chk-total { display: flex; justify-content: space-between; font-weight: 900; font-size: 1.2rem; margin-top: 2rem; color: var(--primary); }

/* Footer */
.footer { background: var(--dark); color: var(--white); padding: 5rem 0 2rem; margin-top: auto; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.brand h3 { color: var(--white); margin-bottom: 1rem; font-size: 1.5rem; }
.brand p { color: #94a3b8; margin-bottom: 1.5rem; }
.socials { display: flex; gap: 1rem; }
.socials a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.f-col h4 { margin-bottom: 1.5rem; color: var(--primary); }
.f-col a { display: block; margin-bottom: 0.8rem; color: #cbd5e1; }
.f-col a:hover { color: var(--white); }
.enamad { border: 1px solid rgba(255,255,255,0.2); padding: 1rem; border-radius: 8px; display: inline-flex; align-items: center; gap: 0.5rem; }
.copy { text-align: center; color: #64748b; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }

/* Cart Sidebar */
.cart-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 400px; background: var(--white);
    z-index: 200; transform: translateX(-100%); transition: 0.3s;
    display: flex; flex-direction: column; box-shadow: 5px 0 30px rgba(0,0,0,0.1);
}
.cart-sidebar.open { transform: translateX(0); }
.cart-head { padding: 1.5rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.cart-body { flex: 1; overflow-y: auto; padding: 1.5rem; }
.cart-foot { padding: 1.5rem; background: var(--light); }
.cf-total { display: flex; justify-content: space-between; font-weight: 800; margin-bottom: 1rem; font-size: 1.1rem; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 150; display: none; }
.overlay.open { display: block; }
.cart-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.cart-item img { width: 70px; height: 70px; object-fit: contain; background: #f8fafc; border-radius: 8px; }

/* Responsive */
@media(max-width: 900px) {
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 2rem; }
    .hero-content { padding: 2rem; }
    .hero-image { height: 400px; order: -1; }
    .desktop-nav, .header-actions span { display: none; }
    .mobile-toggle { display: block; }
    .contact-grid, .checkout-layout, .footer-inner { grid-template-columns: 1fr; }
    .cart-sidebar { width: 100%; }
}

/* Toast */
.toast {
    position: fixed; bottom: 2rem; left: 2rem; background: var(--dark); color: var(--white);
    padding: 1rem 1.5rem; border-radius: 8px; z-index: 1000; animation: slideUp 0.3s;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.view { display: none; animation: fadeIn 0.4s; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
</style>
