/* Reset dasar */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
}

/* Cart Badge */
.cart-count {
    background-color: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    margin-left: 5px;
    min-width: 18px;
    display: inline-block;
    text-align: center;
}

/* Hero */
.hero {
    background-color: #e9eef5;
    text-align: center;
    padding: 80px 20px;
}

.hero h1 {
    font-size: 36px;
    color: #122C4F;
}

.hero h1 span {
    color: #0066cc;
}

.hero p {
    font-size: 18px;
    color: #333;
}

.hero button {
    margin-top: 20px;
    background-color: #122C4F;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.hero button:hover {
    background-color: #0f2442;
}

/* Produk */
.produk {
    text-align: center;
    padding: 50px 20px;
}

.produk h2 {
    color: #122C4F;
    margin-bottom: 30px;
    font-size: 28px;
}

/* Produk Container */
.produk-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Card Produk Modern */
.card-produk {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 15px;
    text-align: left; /* Align left for modern look */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-produk:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(18, 44, 79, 0.12);
    border-color: rgba(18, 44, 79, 0.1);
}

.card-produk .img-container {
    width: 100%;
    height: 200px;
    background-color: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.card-produk img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Use cover for more professional look */
    transition: transform 0.5s ease;
}

.card-produk:hover img {
    transform: scale(1.08);
}

.card-produk h3 {
    margin: 0 0 8px 0;
    color: #122C4F;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    height: 44px; /* Fix height for 2 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.harga-container {
    margin: 8px 0;
    display: flex;
    flex-direction: column;
}

.harga {
    color: #122C4F;
    font-weight: 800;
    font-size: 18px;
    margin: 0;
}

.harga-coret {
    font-size: 12px;
    color: #adb5bd;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.deskripsi {
    color: #6c757d;
    font-size: 13px;
    margin: 8px 0 15px 0;
    line-height: 1.5;
    height: 39px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex-grow: 1;
}

.btn-beli {
    background-color: #122C4F;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-beli:hover {
    background-color: #0d2033;
    box-shadow: 0 4px 12px rgba(18, 44, 79, 0.2);
}

.badge-diskon {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #fb7185;
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    z-index: 1;
}

.toko-info {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.toko-info i {
    font-size: 12px;
    color: #6c757d;
}

.toko-info span {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

/* Footer */
footer {
    background-color: #122C4F;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 40px;
}

#profil {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 15px;
}

#iconPengguna {
    width: 30px;
    margin-right: 5px;
}

/* Responsive */
@media (max-width: 992px) {
    #produk-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    #produk-container {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}