/* ======== Reset dan dasar layout ======== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(to bottom, #e0f7fa, #ffffff);
    color: #333;
}

/* ======== Header ======== */
.main-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background-color: #ffffff;
    border-bottom: 3px solid #00acc1;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header-left h1 {
    font-size: 1.8rem;
    color: #00796b;
}

.nav-menu a {
    margin-left: 20px;
    text-decoration: none;
    color: #00796b;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #004d40;
}

/* ======== Icon keranjang ======== */
.header-right .icon-cart {
    width: 36px;
    height: 36px;
    object-fit: contain;
    transition: transform 0.2s ease;
    margin-left: 20px;
}

.header-right .icon-cart:hover {
    transform: scale(1.1);
}

/* ======== Main ======== */
main {
    padding: 40px 32px;
    max-width: 1200px;
    margin: auto;
}

/* ======== Untuk Halaman Produk ======== */
.product-detail {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.product-layout {
    display: flex;
    gap: 20px;
}

.product-image {
    flex: 1;
}

.product-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.product-info {
    flex: 2;
}

.product-detail h2 {
    margin-bottom: 20px;
    color: #00695c;
}

.variant-selection {
    margin: 20px 0;
}

.variant-option {
    margin-bottom: 10px;
}

.variant-option input[type="radio"] {
    margin-right: 10px;
}

.quantity-selector {
    margin: 20px 0;
}

.quantity-selector input {
    width: 60px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.add-to-cart-btn {
    background-color: #00acc1;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: #00838f;
}

/* ======== Untuk Halaman Index ======== */
main h2 {
    margin-bottom: 24px;
    color: #00695c;
    font-size: 1.5rem;
}

/* ======== Produk list ======== */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

/* ======== Kartu produk ======== */
.product-card {
    background-color: #ffffff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.product-card h3 {
    margin-bottom: 10px;
    color: #00695c;
}

.product-card img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
    background-color: #e0f2f1;
}

.product-card p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #555;
}

.product-card a {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 14px;
    background-color: #00acc1;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.product-card a:hover {
    background-color: #00838f;
}

/* ======== Footer ======== */
footer {
    margin-top: 50px;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #555;
    border-top: 1px solid #ccc;
    background-color: #e0f7fa;
}
