/* ============================================
   Public Site CSS
   Developed by MD ROCK MUNNA
   ============================================ */

:root {
    --primary: #16a34a;
    --primary-dark: #15803d;
    --danger: #dc2626;
    --warning: #f59e0b;
    --info: #2563eb;
    --purple: #7c3aed;
    --dark: #111827;
    --gray: #6b7280;
    --light: #f3f4f6;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Hind Siliguri', 'SolaimanLipi', Arial, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    font-size: 15px;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* ============ CONTAINER ============ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ============ HEADER ============ */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 15px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    color: var(--primary);
    white-space: nowrap;
}
.logo img { height: 45px; }
.main-nav { display: flex; gap: 20px; }
.main-nav a {
    color: var(--dark);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}
.main-nav a:hover,
.main-nav a.active { color: var(--primary); }
.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.header-phone {
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    text-decoration: none;
    font-family: inherit;
    justify-content: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline {
    background: #fff;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #991b1b; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }

/* ============ HERO ============ */
.hero {
    background: linear-gradient(135deg, var(--primary), #059669);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.hero h1 {
    font-size: 36px;
    margin-bottom: 12px;
    font-weight: 700;
}
.hero p {
    font-size: 17px;
    opacity: 0.95;
    margin-bottom: 20px;
}

/* ============ SECTIONS ============ */
.section { padding: 50px 0; }
.section-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 35px;
    color: var(--dark);
    font-weight: 700;
}
.section-title span { color: var(--primary); }

/* ============ GRID ============ */
.grid {
    display: grid;
    gap: 20px;
}
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

/* ============ CARDS ============ */
.card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
    color: inherit;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    color: inherit;
}
.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.card-body { padding: 15px; }
.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark);
}
.card-price {
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
}
.card-price-old {
    color: var(--gray);
    text-decoration: line-through;
    font-size: 13px;
    margin-left: 6px;
}

/* ============ CATEGORY CARD ============ */
.cat-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    color: inherit;
    display: block;
}
.cat-card:hover {
    transform: translateY(-3px);
    color: var(--primary);
}
.cat-card i {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
}

/* ============ BADGES ============ */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #dbeafe; color: #1e40af; }

/* ============ FOOTER ============ */
.site-footer {
    background: #111827;
    color: #d1d5db;
    padding: 50px 0 15px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-title {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}
.footer-links a {
    color: #9ca3af;
    display: block;
    padding: 5px 0;
    font-size: 14px;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }
.footer-links i { margin-right: 6px; }
.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    line-height: 1.8;
}
.footer-bottom .dev { color: var(--primary); font-weight: 600; }

/* ============ MOBILE NAV ============ */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 200;
    padding: 6px 0;
}
.mobile-nav-inner { display: flex; justify-content: space-around; }
.mobile-nav a {
    flex: 1;
    text-align: center;
    color: var(--gray);
    font-size: 11px;
    padding: 6px 0;
    transition: color 0.2s;
}
.mobile-nav a i {
    display: block;
    font-size: 20px;
    margin-bottom: 2px;
}
.mobile-nav a.active { color: var(--primary); }

/* ============ ALERTS ============ */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}
.alert-success {
    background: #dcfce7;
    color: #166534;
    border-left: 4px solid var(--primary);
}
.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger);
}
.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid var(--info);
}

/* ============ UTILITIES ============ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.d-flex { display: flex; }
.gap-10 { gap: 10px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .main-nav { display: none; }
    .header-phone { display: none; }
    .hero { padding: 40px 0; }
    .hero h1 { font-size: 26px; }
    .hero p { font-size: 15px; }
    .mobile-nav { display: block; }
    body { padding-bottom: 70px; }
    .grid-4 { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .card img { height: 140px; }
    .card-body { padding: 12px; }
    .card-title { font-size: 14px; }
    .card-price { font-size: 16px; }
    .section { padding: 35px 0; }
    .section-title { font-size: 22px; margin-bottom: 25px; }
}