/* css/style.css - update responsive & animasi */

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
header h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}
header button {
    padding: 10px 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    background: #4f46e5;
    color: white;
    transition: 0.3s;
}
header button:hover {
    background: #4338ca;
}

.hero {
    text-align: center;
    padding: 70px 20px;
    background: linear-gradient(to right, #6366f1, #a855f7, #ec4899);
    color: white;
    transition: background 0.5s;
}
.hero h2 {
    font-size: 42px;
    font-weight: 700;
}
.hero p {
    font-size: 18px;
    margin-top: 10px;
}
.btn-hero {
    margin-top: 25px;
    padding: 12px 28px;
    font-size: 16px;
    background: white;
    color: #9333ea;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}
.btn-hero:hover {
    background: #f3f3f3;
}

.products {
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.card {
    background: white;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.2);
}
.card img {
    width: 100%;
    display: block;
    border-bottom: 1px solid #eee;
    transition: transform 0.3s;
}
.card img:hover {
    transform: scale(1.05);
}
.card-content {
    padding: 20px;
}
.card-title {
    font-size: 18px;
    font-weight: 600;
}
.price {
    margin-top: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #4f46e5;
}
.btn-detail {
    margin-top: 12px;
    width: 100%;
    padding: 10px;
    border: none;
    background: #4f46e5;
    color: white;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}
.btn-detail:hover {
    background: #4338ca;
}

.cart-container {
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}
.cart-container h2 {
    margin-bottom: 20px;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: white;
    margin-bottom: 12px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}
.cart-item:hover {
    transform: translateX(5px);
}
.cart-item button {
    background: #ef4444;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}
.cart-item button:hover {
    background: #b91c1c;
}

footer {
    text-align: center;
    padding: 25px;
    margin-top: 40px;
    color: #666;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h2 { font-size: 32px; }
    .products { padding: 20px; gap: 15px; }
    .card-content { padding: 15px; }
    .product-detail { flex-direction: column; }
}

@media (max-width: 480px) {
    header { flex-direction: column; gap: 10px; }
    .btn-hero, header button { width: 100%; }
}
