/* ===========================
   Kids Fashion Grosiran - CSS
   =========================== */

:root {
    --primary: #1a3a5c;
    --secondary: #e63946;
    --accent: #f4a261;
    --light-bg: #f8f9fa;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --card-hover-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: #f5f5f5;
}

/* Topbar */
.topbar {
    background: var(--primary);
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
}

/* Navbar */
#mainNav {
    background: linear-gradient(135deg, var(--primary), #0d2137);
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
    padding: 0.6rem 0;
}

.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--secondary);
    color: white;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    margin-right: 4px;
}

.brand-icon-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--secondary);
    color: white;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.8rem;
    margin-right: 4px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: #ffc107 !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #0d2137 50%, #162b47 100%);
    color: white;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230,57,70,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(244,162,97,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-badge {
    display: inline-block;
    background: rgba(230,57,70,0.2);
    color: #ff6b6b;
    border: 1px solid rgba(230,57,70,0.4);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: #ffc107;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffc107;
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Brand Cards */
.brand-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    background: white;
    cursor: pointer;
}

.brand-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-hover-shadow);
}

.brand-card-clever {
    border-top: 4px solid #e63946;
}

.brand-card-suggar {
    border-top: 4px solid #e63946;
}

.brand-card-oxkids {
    border-top: 4px solid #2ecc71;
}

.brand-logo-area {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
}

.brand-name-clever { color: #e63946; }
.brand-name-suggar { color: #c0392b; }
.brand-name-oxkids { color: #27ae60; }

.wholesale-badge {
    position: absolute;
    top: 12px;
    right: 12px;
}

/* Product Cards */
.product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    background: white;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-img-wrapper {
    overflow: hidden;
    height: 220px;
    background: #f0f0f0;
    position: relative;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    color: #999;
    font-size: 3rem;
}

.product-brand-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
}

.product-featured-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    background: #ffc107;
    color: #333;
}

.product-card .card-body {
    padding: 1rem;
}

.product-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.product-code {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.4rem;
}

.product-sizes {
    font-size: 0.75rem;
    color: #666;
}

.size-chip {
    display: inline-block;
    background: #f0f0f0;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin: 1px;
    font-weight: 500;
}

/* Section Titles */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Filter Sidebar */
.filter-card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    background: white;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.filter-title {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

/* Info Boxes */
.wholesale-info-box {
    background: linear-gradient(135deg, #e8f4f8, #d6eaf8);
    border: 1px solid #aed6f1;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.retail-info-box {
    background: linear-gradient(135deg, #eafaf1, #d5f5e3);
    border: 1px solid #a9dfbf;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary-custom {
    background: var(--primary);
    color: white;
    border: none;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-primary-custom:hover {
    background: #0d2137;
    color: white;
    transform: translateY(-1px);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-whatsapp:hover {
    background: #128C7E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* Cart */
.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

/* Footer */
.footer-dark {
    background: #0f1923;
    color: rgba(255,255,255,0.85);
}

.footer-dark p,
.footer-dark small,
.footer-dark li,
.footer-dark ol li,
.footer-dark .text-muted {
    color: rgba(255,255,255,0.7) !important;
}

.footer-dark h5,
.footer-dark h6 {
    color: #fff !important;
}

.footer-dark a.text-muted {
    color: rgba(255,255,255,0.65) !important;
    transition: color 0.2s;
}

.footer-dark a.text-muted:hover {
    color: #ffc107 !important;
}

.footer-dark .border-secondary {
    border-color: rgba(255,255,255,0.1) !important;
}

.hover-yellow:hover {
    color: #ffc107 !important;
}

/* Admin Sidebar */
.admin-sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--primary) 0%, #0d2137 100%);
    padding-top: 1rem;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.75);
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    margin: 2px 8px;
    font-size: 0.875rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255,255,255,0.12);
    color: white;
}

.admin-sidebar .nav-link i {
    width: 20px;
}

.admin-content {
    padding: 2rem;
    background: #f5f7fa;
    min-height: 100vh;
}

/* Stat Cards */
.stat-card {
    border: none;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-stats {
        gap: 1rem;
    }
    .stat-number {
        font-size: 1.4rem;
    }
}

/* Utilities */
.rounded-xl { border-radius: 16px !important; }
.rounded-lg { border-radius: 12px !important; }
.text-primary-custom { color: var(--primary) !important; }
.bg-primary-custom { background: var(--primary) !important; }
