html {
    scroll-behavior: smooth;
}

/* General Reset */
body, ul, li, a, p {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Apply the font globally */
body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

a, a:visited {
    text-decoration: none;
    color: inherit; /* Inherit color from parent */
}

a:hover, a:focus {
    color: #d8603d; /* Change color on hover */
}

/* h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
} */

/* Header */
header {
    background-color: white;
    padding: 25px 40px;
    border-bottom: 1px solid #ddd;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Add relative positioning */
}

.logo {
    position: absolute; /* Center the logo */
    left: 50%;
    transform: translateX(-50%);
}

.menu-left, .menu-right {
    display: flex;
    align-items: center;
}

.menu-left li, .footer-menu li {
    list-style: none;
    margin-right: 20px;
}

.menu-left a, .footer-menu a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
}

.menu-right a {
    margin-left: 10px;
}

.menu-left a:hover, .menu-left a:focus {
  color: #d8603d !important;
}

.logo img {
    display: block;
}

/* Banner Content */
/* Banner */
.banner {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 640px;
    background-size: cover;
    background-position: center;
    color: white;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Semi-transparent black overlay */
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2; /* Ensure text is above the overlay */
    text-align: center;
}

.banner-title {
    font-family: 'Merriweather', serif;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.banner-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.banner-button {
    display: inline-block;
    padding: 10px 20px;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    color: white;
    border: 2px solid white;
    border-radius: 25px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.banner-button:hover {
    background-color: white;
    color: #333;
}

/* Body Content */
.body-content {
    background-color: #f0f0f0;
    padding: 20px 0;
}

.container {
    background-color: white;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: #1f1f1f;
    color: white;
    padding: 40px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.footer-left {
    display: flex; /* Use flexbox to align menus side by side */
    justify-content: flex-start;
    gap: 40px; /* Add spacing between the two menus */
}

.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    text-decoration: none;
    color: white;
    font-size: 14px;
}

.footer-right {
    text-align: right;
}

.social-icons a {
    margin: 0 10px;
}

.social-icons a:last-child {
    margin-right: 0;
}

.copyright {
    margin-top: 10px;
    font-size: 12px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

/* Product Card */
.product-card {
    background-color: white;
    text-align: left;
    padding: 15px;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    background-color: #f8f8f8; 
    transition: background-color 0.3s ease; 
}

.product-flag.low-stock-flag {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 60px solid #e53935;
    border-left: 60px solid transparent;
    z-index: 2;
}

.product-flag.low-stock-flag::after {
    content: "Low Stock";
    position: absolute;
    top: -45px;
    right: -19px;
    color: #fff;
    font-size: 11px;
    font-family: 'Lato', sans-serif;
    font-weight: bold;
    transform: rotate(45deg);
    width: 80px;
    text-align: center;
    pointer-events: none;
}

.product-image {
    width: 100%;
    height: auto;
}

.product-title {
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0;
}

.product-rating {
    color: #f5c518; /* Gold color for stars */
    margin: 5px 0;
}

.product-price {
    font-size: 14px;
    color: #888;
    margin: 5px 0;
}

.product-discounted-price {
    font-size: 16px;
    color: #111; /* Red color for discounted price */
    font-weight: bold;
    margin: 5px 0;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    text-align: left;
    margin: 0;
    color: #333;
}

/* Career Page Styles */
.career-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 30px 0;
}

.career-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 30px 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.career-title {
    font-family: 'Merriweather', serif;
    font-size: 22px;
    margin-bottom: 12px;
    color: #1f1f1f;
}

.career-desc {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    margin-bottom: 24px;
    color: #333;
}

.career-button {
    align-self: flex-start;
    padding: 10px 24px;
    border: 2px solid #1f1f1f;
    border-radius: 25px;
    background: #fff;
    color: #1f1f1f;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.career-button:hover {
    background: #1f1f1f;
    color: #fff;
}

/* Privacy Policy Styles */
.privacy-policy {
    background: #fff;
    border-radius: 8px;
    padding: 30px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-size: 16px;
    color: #333;
    margin-bottom: 40px;
}

.privacy-policy h3 {
    font-family: 'Merriweather', serif;
    font-size: 20px;
    margin-top: 24px;
    margin-bottom: 10px;
    color: #1f1f1f;
}

.privacy-policy ul {
    margin-left: 20px;
    margin-bottom: 16px;
}

/* About Us Page */
.about-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    margin: 40px 0;
}

.about-image {
    flex: 1 1 320px;
    min-width: 280px;
    max-width: 400px;
}

.about-text {
    flex: 2 1 400px;
    min-width: 280px;
}

.about-text h3 {
    font-family: 'Merriweather', serif;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 16px;
    color: #1f1f1f;
}

.about-text p {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    margin-bottom: 16px;
    color: #333;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(51,51,51,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-popup {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px 24px 24px;
    min-width: 320px;
    max-width: 90vw;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    position: relative;
    text-align: left;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #e53935;
}

.modal-title {
    font-size: 20px;
    margin-bottom: 24px;
    font-family: 'Merriweather', serif;
    color: #1f1f1f;
}

.modal-marketplace-row {
    display: flex;
    align-items: center;
    vertical-align: middle;
    align-content: center;

    gap: 18px;
    padding: 18px 0;
    border-top: #111 1px solid;
}

.modal-marketplace-logo {
    width: 200px;
    height: 45px;
    object-fit: contain;
    background: #fff;
    margin-right: 100px;
}

.modal-buy-btn {
    margin-left: auto;
    padding: 10px 22px;
    background: #e53935;
    color: #fff !important;
    border: none;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.modal-buy-btn::after {
    content: "Beli Sekarang";
}

.modal-buy-btn:hover {
    background: #e67c00;
}

/* Mobile Styles */
@media (max-width: 768px) {

    header {
        padding: 0 40px 25px;
    }
    
    .menu-left {
        display: none;
    }

    .menu-right {
        margin: 100px auto 0;
    }

    .product-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        flex-direction: column;
        align-items: left;
        text-align: left;
    }

    .footer-left {
        margin-bottom: 24px;
    }

    .footer-right {
        width: 100%;
        margin-top: 0;
        text-align: left;
    }

    .social-icons {
        justify-content: left;
    }

    .social-icons a:first-child {
        margin-left: 0;
    }

    .modal-marketplace-logo {
        margin-right: 0px;
    }

    .modal-buy-btn::after {
        content: "Beli";
    }
}
