 /* ===================== GENERAL ===================== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f5f6fa;
    color: #333;
}

a {
    text-decoration: none;
}

/* ===================== HEADER ===================== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 25px;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

.header nav {
    display: flex;
    align-items: center;
}

.header nav a {
    color: #333;
    margin-left: 18px;
    font-weight: 600;
    font-size: 15px;
}

/* ===================== SEARCH ===================== */
.search-box input {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 250px;
}

.search-box button {
    padding: 8px 12px;
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* ===================== HERO BANNER ===================== */
.hero {
    position: relative;
}

.hero img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.hero-text {
    position: absolute;
    top: 40%;
    left: 10%;
    color: white;
}

/* ===================== CATEGORY GRID ===================== */
.categories {
    padding: 40px;
    text-align: center;
}

.category-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cat {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 150px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cat:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* ===================== PRODUCTS ===================== */
.products {
    padding: 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.price {
    color: #e63946;
    font-size: 18px;
    font-weight: bold;
}

.btn {
    display: inline-block;
    margin-top: 10px;
    background: #0d6efd;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
}

/* ===================== SELLER DASHBOARD ===================== */
.sidebar {
    width: 220px;
    background: white;
    position: fixed;
    height: 100%;
    border-right: 1px solid #ddd;
    padding: 20px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin: 12px 0;
}

.sidebar a {
    color: #333;
    font-weight: 500;
}

.dashboard-content {
    margin-left: 240px;
    padding: 20px;
}

/* DASHBOARD CARDS */
.stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    width: 200px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* ===================== TABLES ===================== */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

table th,
table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

table th {
    background: #f1f1f1;
}

/* ===================== FOOTER ===================== */
.footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}
/* ===================== STORES SECTION ===================== */
.stores {
    padding: 40px;
    background: #ffffff;
    text-align: center;
}

.stores h2 {
    margin-bottom: 30px;
    font-size: 28px;
    color: #333;
}

/* Auto-responsive grid */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
}

/* Store cards */
.store-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    background: #f4f6f9;
    padding: 25px 20px;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
    text-align: center;

    /* Scroll reveal initial state */
    opacity: 0;
    transform: translateY(20px);
}

/* Hover effect */
.store-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    background: #e0e6f1;
    color: #0d6efd;
}

/* Scroll reveal active state */
.store-card.show {
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.6s ease, opacity 0.6s ease;
}

/* Optional: Images inside cards */
.store-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    object-fit: contain;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .store-card {
        width: 90%;
        margin: 0 auto;
    }
}

/* Store cards hidden initially */
.store-card {
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.6s ease, opacity 0.6s ease;
}

/* Active class when in viewport */
.store-card.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SELLER DASHBOARD UI ===== */

.dashboard {
padding: 20px;
font-family: 'Segoe UI', Arial;
background: #f4f6f9;
}

.stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
margin-bottom: 30px;
}

.card {
background: white;
padding: 20px;
border-radius: 12px;
box-shadow: 0 10px 25px rgba(0,0,0,0.08);
transition: 0.3s;
}

.card:hover {
transform: translateY(-5px);
}

.card h3 {
font-size: 14px;
color: #777;
margin-bottom: 10px;
}

.card p {
font-size: 22px;
font-weight: bold;
color: #111;
}

.btn-download {
background: #16a34a;
color: white;
padding: 10px 15px;
border-radius: 6px;
text-decoration: none;
display: inline-block;
margin-bottom: 20px;
}

.table {
width: 100%;
border-collapse: collapse;
background: white;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 5px 20px rgba(0,0,0,0.08);
margin-bottom: 30px;
}

.table th {
background: #1e293b;
color: white;
padding: 12px;
}

.table td {
padding: 12px;
border-bottom: 1px solid #eee;
}

.table tr:hover {
background: #f9fafb;
}

.badge {
padding: 5px 10px;
border-radius: 20px;
font-size: 12px;
color: white;
}

.pending { background: #f59e0b; }
.Paid { background: #16a34a; }