/* GraminBazar - Custom Styles */
:root {
    --clr-primary: #1B7A3E;
    --clr-primary-lt: #2DA65A;
    --clr-accent: #F5A623;
    --clr-accent-dk: #E08C0D;
    --clr-bg: #F9FAF7;
    --clr-surface: #FFFFFF;
    --clr-text: #1A1A1A;
    --clr-text-muted: #6B7280;
    --clr-border: #E4E7EB;
    --clr-danger: #DC2626;
    --clr-success: #16A34A;
}

* { box-sizing: border-box; }

body {
    font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
    background: var(--clr-bg);
    color: var(--clr-text);
    margin: 0;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

.btn-primary {
    background: var(--clr-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: background 0.2s;
}
.btn-primary:hover { background: var(--clr-primary-lt); }

.btn-accent {
    background: var(--clr-accent);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: background 0.2s;
}
.btn-accent:hover { background: var(--clr-accent-dk); }

.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-sale { background: #FEE2E2; color: var(--clr-danger); }
.badge-new { background: #DBEAFE; color: #2563EB; }
.badge-pending { background: #FEF3C7; color: #D97706; }
.badge-confirmed { background: #DBEAFE; color: #2563EB; }
.badge-processing { background: #E0E7FF; color: #4F46E5; }
.badge-out_for_delivery { background: #D1FAE5; color: #065F46; }
.badge-delivered { background: #D1FAE5; color: var(--clr-success); }
.badge-cancelled { background: #FEE2E2; color: var(--clr-danger); }
.badge-returned { background: #FEF3C7; color: #D97706; }

.product-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Toast notification */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    color: white;
    z-index: 2000;
    animation: slideIn 0.3s;
    font-size: 0.9rem;
}
.toast-success { background: var(--clr-success); }
.toast-error { background: var(--clr-danger); }
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive bottom nav for mobile */
@media (max-width: 768px) {
    .mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid var(--clr-border);
        z-index: 100;
        display: flex;
        justify-content: space-around;
        padding: 0.5rem 0;
    }
    .mobile-nav a {
        text-align: center;
        font-size: 0.7rem;
        color: var(--clr-text-muted);
    }
    .mobile-nav a.active { color: var(--clr-primary); }
    body { padding-bottom: 4rem; }
}
