/* ==================================================
   FzTokoKomputer - Style.css FINAL 2025
   Super Modern, Responsive, Professional
   Sudah dibersihkan dari semua warning & error
   ================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    line-height: 1.6;
    color: #1e293b;
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: #1e293b !important;
    padding: 1.2rem 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 800;
    font-size: 2rem;
    background: linear-gradient(45deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.nav-link {
    color: #e2e8f0 !important;
    font-weight: 600;
    padding: 0.8rem 1.2rem !important;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa !important;
}

/* Badge Keranjang */
.badge {
    font-size: 0.9rem;
    padding: 0.4em 0.7em;
}

/* ==================== CARD PRODUK ==================== */
.card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
}

.card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.card-img-top {
    height: 240px;
    object-fit: cover;
    background: #f1f5f9;
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 700;
    font-size: 1.1rem;        /* DIPERBAIKI: dari 1.1.1rem */
    color: #1e293b;
    margin-bottom: 0.8rem;
    height: 3.2rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #dc2626;
    margin: 1rem 0;
}

/* Button Primary */
.btn-primary {
    background: linear-gradient(45deg, #3b82f6, #60a5fa);
    border: none;
    border-radius: 15px;
    padding: 12px 20px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    transition: all 0.4s ease-in-out;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.6);
    background: linear-gradient(45deg, #2563eb, #4f46e5);
}

/* Badge Stok */
.badge-success { background:#10b981; color:white; padding:0.5em 1em; border-radius:50px; font-weight:600; }
.badge-danger   { background:#ef4444; color:white; padding:0.5em 1em; border-radius:50px; font-weight:600; }

/* Footer */
footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #60a5fa;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shadow-lg {
    box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important;
}

.rounded-4 {
    border-radius: 1.5rem !important;
}

/* Responsive */
@media (max-width: 992px) {
    .card-img-top { height: 200px; }
    .price { font-size: 1.6rem; }
}

@media (max-width: 768px) {
    .navbar-brand { font-size: 1.6rem; }
    .card-img-top { height: 180px; }
    .price { font-size: 1.4rem; }
    .card { margin-bottom: 1.5rem; }
}

@media (max-width: 576px) {
    .card { margin-bottom: 1.5rem; }
}

.hover-shadow-lg:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}
.transition-all {
    transition: all 0.3s ease;
}