:root {
    --brand: #111111;
    --brand-cyan: #00aeef;
    --brand-magenta: #ec008c;
    --brand-yellow: #ffcf00;
    --brand-red: #e30613;
    --ink: #181818;
    --muted: #62666c;
    --soft: #f7f9fb;
    --line: #e8edf2;
}
body { color: var(--ink); background: #fff; }
body { font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
.container { max-width: 1180px; }
.text-primary, .navbar-brand { color: var(--brand) !important; }
.btn-primary { background: var(--brand); border-color: var(--brand); }
.btn-primary:hover { background: #2a2a2a; border-color: #2a2a2a; }
.btn-warning { background: var(--brand-yellow); border-color: var(--brand-yellow); color: #111; }
.btn-outline-primary { color: var(--brand); border-color: var(--brand); }
.btn-outline-primary:hover { background: var(--brand); border-color: var(--brand); }
.hero {
    min-height: 520px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,.62)),
        linear-gradient(135deg, transparent 0 58%, rgba(0,174,239,.26) 58% 60%, rgba(236,0,140,.22) 60% 62%, rgba(255,207,0,.18) 62% 64%, transparent 64%),
        url('https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&w=1600&q=80') center/cover;
    display: flex;
    align-items: center;
}
.hero .lead { max-width: 680px; font-size: 1.25rem; }
.navbar { box-shadow: 0 10px 30px rgba(17, 17, 17, .07); }
.navbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-cyan), var(--brand-magenta), var(--brand-yellow), var(--brand-red));
}
.navbar-brand { display: inline-flex; align-items: center; padding: 4px 0; }
.navbar-brand img { display: block; width: 210px; height: 76px; object-fit: contain; object-position: left center; }
.nav-link { color: #1f2328; font-weight: 600; }
.nav-link:hover, .nav-link:focus { color: var(--brand-magenta); }
.section-soft { background: var(--soft); }
.product-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; height: 100%; background: #fff; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.product-card:hover { transform: translateY(-4px); border-color: rgba(0,174,239,.45); box-shadow: 0 18px 42px rgba(17, 17, 17, .11); }
.product-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.product-detail-main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #f4f8fb; }
.product-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 12px; }
.product-gallery-item { width: 100%; padding: 0; border: 2px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.product-gallery-item:hover, .product-gallery-item:focus { border-color: var(--brand-cyan); box-shadow: 0 10px 24px rgba(17, 17, 17, .12); transform: translateY(-2px); outline: none; }
.product-gallery-item.is-active { border-color: var(--brand-red); box-shadow: 0 0 0 3px rgba(227, 6, 19, .12); }
.product-gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #fff; }
.price { color: var(--brand-red); font-weight: 800; }
.whatsapp-float {
    position: fixed; right: 20px; bottom: 20px; min-width: 54px; height: 54px; padding: 0 16px; border-radius: 999px;
    display: grid; place-items: center; color: #fff; background: #25d366; text-decoration: none; font-weight: 800;
    box-shadow: 0 12px 30px rgba(0,0,0,.2); z-index: 20;
}
.site-footer { background: #111; color: #f3f5f7; border-top: 4px solid var(--brand-cyan); }
.footer-credit { color: #fff; font-weight: 700; text-decoration: none; }
.footer-credit:hover, .footer-credit:focus { color: var(--brand-cyan); }
/* --- Admin Panel Modern Design & Animations --- */
.admin-shell {
    min-height: 100vh;
    background: #f8fafc;
    font-family: 'Outfit', sans-serif;
    color: #334155;
    display: flex;
}

.admin-sidebar {
    width: 280px;
    background: #0f172a;
    color: #cbd5e1;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.08);
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-brand {
    padding: 24px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
}

.brand-logo-icon {
    font-size: 1.5rem;
    animation: pulseLogo 3s infinite ease-in-out;
}

@keyframes pulseLogo {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0px var(--brand-yellow)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 8px rgba(255, 207, 0, 0.6)); }
}

.admin-nav {
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 8px;
    flex: 1;
}

.nav-item-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
}

.nav-item-link i {
    font-size: 1.25rem;
    margin-right: 12px;
    transition: transform 0.2s ease-in-out;
}

.nav-item-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.nav-item-link:hover i {
    transform: translateX(3px);
}

.nav-item-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-magenta), #c00072);
    box-shadow: 0 8px 20px rgba(236, 0, 140, 0.25);
    font-weight: 600;
}

.nav-item-link.active i {
    color: #fff;
}

.logout-btn {
    margin-top: auto;
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

.admin-main {
    margin-left: 280px;
    padding: 32px;
    flex: 1;
    min-width: 0;
}

.admin-topbar {
    background: #fff;
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
    border: 1px solid rgba(15, 23, 42, 0.04);
    margin-bottom: 32px;
}

.admin-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.admin-user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-cyan), #0088cc);
    color: #fff;
    font-weight: 700;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 174, 239, 0.25);
}

.admin-user-info {
    display: flex;
    flex-direction: column;
}

.admin-username {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
    line-height: 1.2;
}

.admin-role {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

/* Page Animations */
.animate-fade-in {
    animation: pageFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stat Cards Modern Styling */
.stat-card {
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 16px;
    background: #fff;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.06);
    border-color: rgba(236, 0, 140, 0.2);
}

/* Forms & Inputs styling */
.form-label {
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-control, .form-select {
    border: 1px solid #cbd5e1;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.12);
    outline: none;
}

/* Tables styling */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: #475569;
    border-bottom-width: 2px;
    padding: 14px 16px;
    font-size: 0.9rem;
}

.table td {
    padding: 16px;
    vertical-align: middle;
    color: #334155;
    font-size: 0.95rem;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f8fafc;
}

/* Custom badge styling */
.badge.bg-secondary {
    background-color: #f1f5f9 !important;
    color: #475569;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.badge.bg-secondary:hover {
    background-color: #e2e8f0 !important;
    color: #1e293b;
    transform: scale(1.03);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .admin-sidebar {
        width: 80px;
    }
    .admin-brand span, .nav-item-link span {
        display: none;
    }
    .admin-main {
        margin-left: 80px;
    }
    .nav-item-link i {
        margin-right: 0;
        font-size: 1.4rem;
    }
    .admin-brand {
        justify-content: center;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .navbar-brand img {
        width: 164px;
        height: 60px;
    }
    .admin-shell {
        flex-direction: column;
    }
    .admin-sidebar {
        position: static;
        width: 100%;
        min-height: auto;
        box-shadow: none;
    }
    .admin-brand {
        display: flex;
        justify-content: flex-start;
    }
    .admin-brand span, .nav-item-link span {
        display: inline;
    }
    .admin-nav {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 12px;
    }
    .nav-item-link {
        flex: 1 1 auto;
        justify-content: center;
        padding: 10px;
    }
    .nav-item-link i {
        margin-right: 6px;
        font-size: 1.1rem;
    }
    .logout-btn {
        margin-top: 0;
    }
    .admin-main {
        margin-left: 0;
        padding: 16px;
    }
    .admin-topbar {
        padding: 12px 16px;
    }
}

/* Stat Card Icon & Colors Utility Classes */
.stat-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.bg-soft-primary { background-color: rgba(13, 110, 253, 0.08) !important; color: #0d6efd !important; }
.bg-soft-warning { background-color: rgba(245, 158, 11, 0.08) !important; color: #f59e0b !important; }
.bg-soft-info { background-color: rgba(6, 182, 212, 0.08) !important; color: #06b6d4 !important; }
.bg-soft-purple { background-color: rgba(139, 92, 246, 0.08) !important; color: #8b5cf6 !important; }
.bg-soft-success { background-color: rgba(16, 185, 129, 0.08) !important; color: #10b981 !important; }

.text-primary { color: #0d6efd !important; }
.text-warning { color: #f59e0b !important; }
.text-info { color: #06b6d4 !important; }
.text-purple { color: #8b5cf6 !important; }
.text-success { color: #10b981 !important; }
