/* Colorful modern admin theme (simple) */
:root{
  --bg:#f5f7fb;
  --card:#ffffff;
  --accent:#6c5ce7;
  --accent2:#00b894;
  --muted:#6b7280;
  --sidebar:#0f1724;
}
*{box-sizing:border-box;font-family:Inter, system-ui, Arial, sans-serif}
body{margin:0;background:linear-gradient(180deg,#fbfdff,#f5f7fb);color:#111}
.container{max-width:1100px;margin:0 auto;padding:20px}

/* site header */
.site-header{background:linear-gradient(90deg,var(--accent),#a29bfe);color:#fff;padding:18px 0}
.site-header .container{display:flex;justify-content:space-between;align-items:center}
.site-header h1{margin:0;font-size:22px}
.site-header nav a{color:#fff;opacity:.95}

/* hero */
.hero{display:flex;justify-content:space-between;align-items:center;padding:28px 0}
.hero-left h2{font-size:28px;margin-bottom:6px}
.hero p{color:var(--muted)}

/* cards */
.cards{display:flex;gap:16px;margin-top:18px}
.card{background:var(--card);padding:18px;border-radius:12px;flex:1;box-shadow:0 8px 30px rgba(16,24,40,.06)}

/* footer */
.site-footer{padding:22px 0;text-align:center;color:var(--muted);margin-top:30px}

/* auth page */
.auth-page{display:flex;align-items:center;justify-content:center;height:80vh}
.auth-card{background:var(--card);padding:28px;border-radius:12px;box-shadow:0 10px 30px rgba(16,24,40,.08);width:360px;text-align:center}
.auth-card input{width:100%;padding:10px;margin:8px 0;border-radius:8px;border:1px solid #e6e9ef}
.btn{background:var(--accent);color:#fff;padding:10px 12px;border-radius:8px;border:none;cursor:pointer}
.error{color:#ff6b6b}
.muted{color:var(--muted);font-size:13px}

/* admin layout */
.admin-layout{display:flex;min-height:100vh}
.sidebar{width:220px;background:linear-gradient(180deg,var(--sidebar),#0b1220);color:#fff;padding:24px}
.sidebar .logo{font-weight:700;margin-bottom:18px}
.sidebar ul{list-style:none;padding:0;margin:0}
.sidebar li{margin:12px 0}
.sidebar a{color:#fff;opacity:.95;text-decoration:none}
.main{flex:1;padding:24px;background:transparent}
.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.stats{display:flex;gap:12px;margin-bottom:18px}
.stat-card{background:linear-gradient(90deg,#fff,#f7f9ff);padding:12px;border-radius:10px;flex:1;box-shadow:0 6px 18px rgba(16,24,40,.04)}
.chart-card{background:var(--card);padding:18px;border-radius:10px;box-shadow:0 6px 18px rgba(16,24,40,.04)}

/* panel & list */
.panel{background:var(--card);padding:18px;border-radius:10px;box-shadow:0 8px 28px rgba(16,24,40,.04)}
.list{margin-top:12px}
.list li{padding:8px 0;border-bottom:1px dashed #eef2f7;display:flex;justify-content:space-between;align-items:center}
.del{color:#ff6b6b;text-decoration:none}

/* slider grid */
.slider-grid{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px}
.slide{background:#fff;padding:8px;border-radius:8px;box-shadow:0 6px 18px rgba(16,24,40,.04);text-align:center}

.brands-section {
    margin: 40px auto;
    max-width: 1000px;
    padding: 20px;
}

.brands-section h3 {
    margin-bottom: 15px;
    font-size: 24px;
    color: #333;
}

.brands-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    background-color: #fff;
    padding: 10px 0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.brands-carousel {
    display: flex;
    gap: 15px;
    transition: transform 0.5s ease-in-out;
}

.brand-item {
    flex: 0 0 150px; /* box width */
    padding: 15px 20px;
    text-align: center;
    font-weight: bold;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    white-space: nowrap;
}
/* Products Row */
.products-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 10px;
}

/* Product Box - responsive widths */
.product-box {
    flex: 0 0 calc(25% - 20px); /* default: 4 per row */
    background: #fff;
    color: #000;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
}

.product-box img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .product-box { flex: 0 0 calc(33.333% - 20px); } /* 3 per row */
}

@media (max-width: 768px) {
    .product-box { flex: 0 0 calc(50% - 20px); } /* 2 per row */
}

@media (max-width: 480px) {
    .product-box { flex: 0 0 100%; } /* 1 per row */
}
/* Products Section */
.products-section {
    max-width: 1200px;
    margin: 50px auto;
    color: #000;
    padding: 0 15px; /* small padding for mobile */
}

.products-section h3 {
    margin-bottom: 20px;
    font-size: 28px;
    color: #333;
}

/* Product Row */
.products-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 10px;
}

/* Product Box */
.product-box {
    background: #fff;
    color: #000;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
}

.product-box img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Responsive Breakpoints using Grid */
@media (max-width: 1024px) {
    .products-row {
        grid-template-columns: repeat(3, 1fr); /* 3 per row */
    }
}

@media (max-width: 768px) {
    .products-row {
        grid-template-columns: repeat(2, 1fr); /* 2 per row */
    }
}

@media (max-width: 480px) {
    .products-row {
        grid-template-columns: 1fr; /* 1 per row */
    }
}

/* See All button */
.see-all-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}
