* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: lightgray;
}

.top-bar {
    background: black;
    color: white;
    padding: 10px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-right a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
}

header {
    background: white;
    padding: 20px 50px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    color: red;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
}

.search-bar {
    flex: 1;
    margin: 0 50px;
    display: flex;
    max-width: 600px;
}

.search-input {
    flex: 1;
    padding: 12px;
    border: 2px solid red;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
}

.search-button {
    padding: 12px 25px;
    background: red;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 16px;
}

.view-cart-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 20px;
    transition: background 0.3s;
}

.view-cart-btn:hover {
    background: #0056b3;
}

.hero-section {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
}

.cta-button {
    padding: 15px 40px;
    background: red;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

.featured-products {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: black;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: white;
    border-radius: 10px;  
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: black;
}

.product-price {
    color: red;
    font-size: 20px;
    font-weight: bold;
}

.single-product {
    grid-column: 1/-1 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.single-image {
    width: 100% !important;
    height: 350px !important;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

/* Style untuk keranjang belanja */
.cart-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px black(0,0,0,0.1);
}

.cart-items {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid white;
    gap: 15px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    margin: 0 0 5px 0;
    color: black;
}

.remove-btn {
    background: red;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.cart-total {
    text-align: right;
    padding-top: 20px;
    border-top: 2px solid white;
}

.checkout-btn {
    background: green;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.empty-cart {
    text-align: center;
    color: gray;
    font-size: 18px;
    padding: 50px;
}

/* Style untuk notifikasi */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: green;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

footer {
    background: black;
    color: white;
    padding: 50px 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-section p {
    margin-bottom: 10px;
    color: aliceblue;
}

.footer-section a {
    color: aliceblue;
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
    max-width: 400px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-form label {
    font-weight: 500;
    color: #222;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #007bff;
}

.contact-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
    margin-top: 10px;
}

.contact-btn:hover {
    background: #0056b3;
}

.contact-diskon-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 10px;
    flex-wrap: wrap;
}

.contact-box,
.diskon-box,
.pengiriman-box {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    margin-bottom: 0;
    padding: 25px 18px 18px 18px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.diskon-box {
    background: #fffbe6;
    border: 1.5px solid #ffd700;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(255,215,0,0.07);
    position: relative;
    overflow: hidden;
}

.pengiriman-box {
    background: #e3fcec;
    border: 1.5px solid #34d399;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(52,211,153,0.07);
}

.diskon-badge {
    background: linear-gradient(135deg, #ff512f 0%, #f09819 100%);
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    border-radius: 50%;
    width: 90px;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(255,81,47,0.18);
    position: absolute;
    top: -30px;
    right: -30px;
    z-index: 2;
    animation: bounce 1.5s infinite alternate;
    border: 4px solid #fffbe6;
}

.diskon-badge span {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: -5px;
}

@keyframes bounce {
    0% { transform: scale(1) rotate(8deg); }
    100% { transform: scale(1.08) rotate(-8deg); }
}

.diskon-title {
    font-size: 22px;
    font-weight: bold;
    color: #d48806;
    margin-bottom: 10px;
    margin-top: 40px;
    z-index: 1;
}

.diskon-desc {
    font-size: 15px;
    color: #444;
}

.diskon-highlight {
    color: #e53935;
    font-weight: bold;
    font-size: 18px;
}

.pengiriman-icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.pengiriman-title {
    font-size: 18px;
    font-weight: bold;
    color: #059669;
    margin-bottom: 8px;
}

.pengiriman-desc {
    font-size: 15px;
    color: #222;
    line-height: 1.5;
}

@media (max-width: 1200px) {
    .contact-diskon-container {
        flex-direction: column;
        gap: 20px;
    }
    .contact-box, .diskon-box, .pengiriman-box {
        max-width: 100%;
        margin-bottom: 18px;
    }
}