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

:root {
    --primary: #e11d48; /* Rose Red */
    --primary-light: #fda4af;
    --primary-dark: #be123c;
    --bg: #fff1f2; /* Very Light Pink */
    --surface: #ffffff;
    --text: #334155;
    --text-light: #64748b;
    --border: #fecdd3;
    
    --shadow-sm: 0 4px 6px -1px rgba(225, 29, 72, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(225, 29, 72, 0.15);
    
    --radius: 16px;
    --radius-pill: 50px;
}

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

a { text-decoration: none; color: inherit; transition: 0.3s; cursor: pointer; }
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; }
.hidden { display: none !important; }

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1rem;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.3);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(225, 29, 72, 0.4);
}
.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.7rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}
.full-width { width: 100%; }

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-sm);
}
.nav-inner {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -1px;
    cursor: pointer;
}
.logo span { color: var(--text); }

.nav-links {
    display: none;
    gap: 2rem;
    background: white;
    padding: 0.8rem 2.5rem;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}
@media(min-width: 900px) { .nav-links { display: flex; } }

.nav-links a {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.nav-icons { display: flex; gap: 0.5rem; align-items: center; }
.icon-btn {
    position: relative;
    padding: 0.6rem;
    background: white;
    border-radius: 50%;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
}
.icon-btn:hover { transform: scale(1.1); }
#badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.mobile-toggle { display: block; color: var(--text); }
@media(min-width: 900px) { .mobile-toggle { display: none; } }

/* Mobile Menu */
.mobile-menu {
    position: fixed; inset: 0; background: white; z-index: 200;
    transform: translateX(100%); transition: 0.3s;
    display: flex; flex-direction: column; padding: 2rem; gap: 1.5rem;
}
.mobile-menu.active { transform: translateX(0); }
.mm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.mobile-menu a { font-size: 1.2rem; font-weight: 700; border-bottom: 1px solid var(--bg); padding-bottom: 0.5rem; }

/* Hero */
.hero {
    padding: 4rem 0;
    display: flex;
    align-items: center;
    min-height: 600px;
}
.hero-inner {
    display: flex;
    align-items: center;
    gap: 4rem;
}
.hero-content { flex: 1; }
.subtitle {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 500px;
}
.hero-image { flex: 1; display: flex; justify-content: center; }
.img-frame {
    position: relative;
    width: 100%;
    max-width: 450px;
    border-radius: 200px 200px 20px 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 8px solid white;
}
.img-frame img { width: 100%; height: auto; display: block; }

/* Categories */
.section { padding: 4rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2.2rem; font-weight: 800; color: var(--primary); margin-bottom: 0.5rem; }
.section-header p { color: var(--text-light); }

.cat-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: 0.3s;
}
.cat-item:hover { transform: translateY(-10px); }
.cat-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: var(--shadow-sm);
}
.cat-icon img { width: 100%; height: 100%; object-fit: cover; }
.cat-item span { font-weight: 700; color: var(--text); }

/* Product Grid */
.bg-soft { background: linear-gradient(to bottom, var(--bg), white); }
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}
.product-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: 0.3s;
    border: 1px solid white;
    position: relative;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: var(--primary-light);
}
.pc-img {
    height: 220px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pc-img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.pc-cat {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.pc-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
    flex: 1;
}
.pc-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
}
.btn-add {
    width: 100%;
    padding: 0.8rem;
    border-radius: var(--radius-pill);
    background: var(--bg);
    color: var(--primary);
    font-weight: 700;
    transition: 0.3s;
}
.product-card:hover .btn-add {
    background: var(--primary);
    color: white;
}
.center-btn { text-align: center; margin-top: 3rem; }

/* Shop Page */
.page-header {
    background: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}
.page-header h1 { font-size: 2.5rem; color: var(--primary); margin-bottom: 1.5rem; }
.filters { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.filter-btn {
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-pill);
    background: var(--bg);
    color: var(--text-light);
    font-weight: 600;
    transition: 0.3s;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: white;
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}
.blog-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: 0.3s;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.bc-img { height: 200px; }
.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; color: var(--text); }
.bc-content p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 1rem; }
.read-more { color: var(--primary); font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }

/* Single Blog */
.single-blog-container { max-width: 800px; }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-light); margin-bottom: 2rem; font-weight: 600; }
.back-link:hover { color: var(--primary); }
.sb-hero-img { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius); margin-bottom: 2rem; }
.sb-meta { display: flex; gap: 2rem; color: var(--text-light); font-size: 0.9rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.sb-meta span { display: flex; align-items: center; gap: 0.5rem; }
.sb-content { font-size: 1.1rem; line-height: 1.8; color: var(--text); }
.sb-content h2 { color: var(--primary); margin: 2rem 0 1rem; }

/* Auth (Login/Register) */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 2rem;
    background: url('https://images.unsplash.com/photo-1596462502278-27bfdd403348?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    position: relative;
}
.auth-container::before {
    content: ''; position: absolute; inset: 0; background: rgba(255, 241, 242, 0.85); backdrop-filter: blur(5px);
}
.auth-card {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
    border: 1px solid white;
}
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header h2 { font-size: 2rem; color: var(--primary); margin-bottom: 0.5rem; }
.auth-header p { color: var(--text-light); }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; }
.auth-footer a { color: var(--primary); font-weight: 700; cursor: pointer; margin-right: 5px; }
.auth-footer a:hover { text-decoration: underline; }

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.contact-info { padding: 3rem; }
.contact-info h2 { color: var(--primary); margin-bottom: 1rem; font-size: 2rem; }
.ci-item { display: flex; gap: 1rem; margin-top: 2rem; }
.ci-item i { color: var(--primary); width: 24px; height: 24px; flex-shrink: 0; margin-top: 5px; }
.contact-map { background: #f1f5f9; display: flex; align-items: center; justify-content: center; min-height: 400px; }
.map-placeholder { text-align: center; color: var(--text-light); }
.map-placeholder i { width: 48px; height: 48px; margin-bottom: 1rem; }

/* Checkout */
.checkout-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; }
.chk-form-box, .chk-summary-box {
    background: white; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.chk-form-box h3, .chk-summary-box h3 {
    margin-bottom: 1.5rem; color: var(--primary); display: flex; align-items: center; gap: 0.8rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.inp-group { margin-bottom: 1rem; }
.inp-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; }
.inp-group input, .inp-group textarea {
    width: 100%; padding: 0.8rem; border: 1px solid #e2e8f0; border-radius: 8px; font-family: inherit;
}
.inp-group input:focus, .inp-group textarea:focus { border-color: var(--primary); }

.chk-item { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 0; border-bottom: 1px solid var(--bg); }
.chk-item img { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; }
.chk-item-info { flex: 1; margin-right: 1rem; }
.chk-item-title { font-weight: 700; font-size: 0.9rem; }
.chk-item-price { font-size: 0.85rem; color: var(--text-light); }
.chk-divider { height: 1px; background: var(--border); margin: 1.5rem 0; }
.chk-total { display: flex; justify-content: space-between; font-weight: 900; font-size: 1.2rem; color: var(--primary); }

/* Footer */
.footer {
    background: white;
    margin-top: auto;
    padding: 4rem 0 0;
    border-top: 1px solid var(--border);
}
.footer-content {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem;
}
.brand-col h3 { color: var(--primary); font-size: 1.8rem; margin-bottom: 1rem; }
.brand-col p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 1.5rem; }
.socials { display: flex; gap: 1rem; }
.socials a {
    width: 40px; height: 40px; background: var(--bg); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.footer-col h4 { font-weight: 700; margin-bottom: 1.5rem; color: var(--text); }
.footer-col a { display: block; margin-bottom: 0.8rem; color: var(--text-light); font-size: 0.95rem; }
.footer-col a:hover { color: var(--primary); padding-right: 5px; }
.enamad-box {
    border: 2px solid var(--border); padding: 1rem; border-radius: 12px;
    display: inline-flex; align-items: center; gap: 0.5rem; color: var(--primary); font-weight: 700;
}
.footer-bottom {
    background: var(--bg); padding: 1.5rem 0; text-align: center; font-size: 0.85rem; color: var(--text-light);
}

/* Cart Sidebar */
.sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 380px;
    background: 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);
}
.sidebar.open { transform: translateX(0); }
.sidebar-header {
    padding: 1.5rem; border-bottom: 1px solid var(--bg);
    display: flex; justify-content: space-between; align-items: center;
}
.sidebar-header h3 { color: var(--primary); }
.sidebar-body { flex: 1; overflow-y: auto; padding: 1.5rem; }
.sidebar-footer { padding: 1.5rem; background: var(--bg); }
.cart-total-row {
    display: flex; justify-content: space-between; font-weight: 800;
    font-size: 1.1rem; margin-bottom: 1rem; color: var(--text);
}
.overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 150;
    display: none; backdrop-filter: blur(2px);
}
.overlay.open { display: block; }

/* Cart Item Style */
.cart-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--bg); padding-bottom: 1rem; }
.cart-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; }
.cart-item-info { flex: 1; }
.cart-item-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.3rem; }
.cart-item-price { color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.cart-controls { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.5rem; }
.qty-btn { background: #f1f5f9; width: 24px; height: 24px; border-radius: 4px; display: flex; align-items: center; justify-content: center; }
.remove-btn { color: #ef4444; margin-right: auto; }

/* Responsive */
@media(max-width: 900px) {
    .hero-inner { flex-direction: column; text-align: center; }
    .hero h1 { font-size: 2.5rem; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .socials { justify-content: center; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .sidebar { width: 100%; }
}

/* Toast */
.toast {
    position: fixed; bottom: 2rem; left: 2rem;
    background: var(--text); color: white;
    padding: 1rem 1.5rem; border-radius: 8px;
    z-index: 1000; animation: slideUp 0.3s;
    display: flex; align-items: center; gap: 0.8rem;
}
@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>
