body {
    margin: 0;
    padding-top: 120px;
    /* sesuaikan dengan tinggi header */
}

html,
body {
    overflow-x: hidden;
}


header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}



.top-bar {
    width: 100%;
    background: linear-gradient(to right, #fff8f1, #ffe5d0);
    color: #333;
    padding: 10px 20px;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    box-sizing: border-box;
}

.top-bar span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.top-bar span i {
    font-style: normal;
    color: #ff6600;
    font-weight: bold;
}

.top-bar span:hover {
    color: #ff6600;
    cursor: pointer;
}

.top-bar a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
}

.icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: inline-block;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 20px;
    background-color: white;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.company-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
}

.nav-links li {
    display: inline;
}

.nav-links a {
    text-decoration: none;
    color: black;
    font-size: 19px;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background-color: #ff6600;
    left: 0;
    bottom: -4px;
}

.nav-links a:hover {
    color: #ff6600;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-orange {
    background-color: #ff6600;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
}

.btn-orange:hover {
    background-color: #cc5500;
    transform: scale(1.05);
}

.toggle-menu {
    display: none;
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    color: #ff6600;
    padding: 6px 10px;
    border-radius: 6px;
}

.toggle-menu:hover {
    background-color: rgba(255, 102, 0, 0.1);
}

.close-menu {
    display: none;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    color: #ff6600;
}


@media screen and (max-width: 768px) {
    .close-menu {
        display: block;
    }

    .toggle-menu {
        order: 2;
        display: block;
    }

    .top-bar {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 8px;
        padding: 12px 10px;
    }

    .top-bar span {
        justify-content: center;
        width: 100%;
        display: flex;
    }

    .top-bar .btn-orange {
        display: none;
    }

    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
    }

    .logo-container {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 10px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        justify-content: center;
        align-items: center;
        z-index: 1;
    }

    .nav-links.show {
        display: flex;
        animation: slideDown 0.4s ease-in-out;
    }

    .nav-links li {
        margin-left: 0;
    }
}


/* Logo dan Nama */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    height: 40px;
    margin-right: 10px;
}

.logo-container span {
    color: white;
    font-size: 22px;
}

/* Section Hero */
.hero {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 90vh;
    background: url('/img/section.png') no-repeat center center/cover;
    padding-left: 10%;
}

.hero .content {
    max-width: 800px;
    padding: 20px;
    color: white;
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: 60px;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 22px;
    margin-bottom: 20px;
    font-style: italic;
}

.hero .btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 20px;
    color: white;
    background: linear-gradient(135deg, #8E44AD, #2C3E50);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    border-radius: 12px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.5);
    margin-top: 25px;
}

.hero .btn:hover {
    background: linear-gradient(135deg, #732D91, #1C2833);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(142, 68, 173, 0.7);
}

/* Section About */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 60px 10%;
    gap: 0;
}

.about-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    padding: 40px;
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.about-content p {
    font-size: 18px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .about-container {
        display: flex;
        flex-direction: column;
    }

    .about-container img {
        width: 100%;
        order: 0;
        /* Pastikan gambar tetap di atas default */
    }

    .about-content:nth-of-type(2) {
        order: 1;
        /* Konten kedua tetap setelah gambar */
    }

    .about-content:nth-of-type(3) {
        order: 2;
        /* Konten ketiga setelah gambar kedua */
    }
}

/* Section Produk */
.products-section {
    padding: 80px 10%;
    text-align: center;
    background-color: #fdfdfd;
}

.products-section h2 {
    font-size: 38px;
    font-weight: bold;
    color: #333;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Styling Swiper */
.swiper {
    width: 100%;
    padding: 20px 0;
}

/* Styling Card Produk */
.product-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    cursor: pointer;
    padding-bottom: 20px;
    /* Memberi ruang untuk tombol Buy Now */
}

.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Gambar Produk */
.product-image {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.product-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

/* Judul Produk di Atas Gambar (Tetap Terlihat) */
.product-title {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Overlay untuk Detail Produk */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Tombol Detail Produk */
.btn-detail {
    display: inline-block;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #8E44AD, #2C3E50);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

/* Hover Efek */
.product-card:hover .overlay {
    opacity: 1;
}

.btn-detail:hover {
    background: linear-gradient(135deg, #732D91, #1C2833);
    transform: scale(1.05);
}

/* Tombol Buy Now */
/* Tombol Buy Now Elegan */
.btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    margin: 15px auto 0;
    padding: 12px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.btn-buy::after {
    content: "→";
    font-size: 20px;
    margin-left: 10px;
    transition: transform 0.3s ease-in-out;
}

.btn-buy:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    transform: scale(1.05);
}

.btn-buy:hover::after {
    transform: translateX(5px);
}


/* Navigasi Swiper */
.swiper-button-next,
.swiper-button-prev {
    color: #8E44AD;
    transition: transform 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    transform: scale(1.2);
}

/* Pagination */
.swiper-pagination-bullet {
    background: #8E44AD;
}

/* Responsif */
@media (max-width: 768px) {
    .products-section h2 {
        font-size: 32px;
    }

    .product-title {
        font-size: 16px;
        padding: 6px 12px;
    }

    .btn-detail {
        font-size: 16px;
        padding: 10px 25px;
    }

    .btn-buy {
        font-size: 16px;
        padding: 10px;
    }

    .hero h1 {
        font-family: 'Cinzel', serif;
        font-size: 20px;
        font-weight: 800;
        color: white;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    .hero p {
        font-size: 12px;
        margin-bottom: 20px;
        font-style: italic;
    }
}


/* Style untuk modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 60%;
    max-width: 700px;
    position: relative;
    display: flex;
    flex-direction: row;
}

/* Tombol close */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 25px;
    cursor: pointer;
}

/* Layout Modal */
.modal-body {
    display: flex;
    gap: 20px;
    align-items: center;
}

.modal-image img {
    width: 200px;
    height: auto;
    border-radius: 8px;
}

.modal-details {
    flex-grow: 1;
}

.btn-buy {
    display: inline-block;
    padding: 10px 15px;
    margin-top: 10px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.btn-buy:hover {
    background-color: #218838;
}

@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        /* Gunakan 90% dari lebar layar */
        max-width: none;
        /* Hindari batasan max-width yang bisa bikin kepotong */
        margin: 10% 5%;
        /* Beri jarak sedikit dari tepi layar */
        padding: 15px;
        /* Sedikit padding agar konten tidak mepet */
        box-sizing: border-box;
        /* Pastikan ukuran termasuk padding */
    }

    .modal-body {
        flex-direction: column;
        /* Ubah layout ke vertikal */
        align-items: center;
        /* Rata tengah konten */
    }

    .modal-image img {
        width: 100%;
        /* Biar gambar responsif */
        max-width: 250px;
        /* Batasi ukuran gambar agar tidak terlalu besar */
    }

    .modal-details {
        width: 100%;
        /* Biar teks tetap rapi */
        text-align: center;
        /* Rata tengah untuk tampilan lebih baik */
    }
}

/* Keunggulan */
.section-keunggulan {
    text-align: center;
}

.keunggulan-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.keunggulan-item {
    background: #222;
    padding: 30px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.keunggulan-item:hover {
    transform: translateY(-10px);
}

.keunggulan-item h3 {
    font-size: 22px;
    color: #d4af37;
    /* Warna emas */
    margin-bottom: 10px;
}

.keunggulan-item p {
    font-size: 16px;
    color: #ccc;
}

/* Spacer */
.spacer {
    height: 80px;
}

/* Call to Action */
.section-cta {
    background: linear-gradient(135deg, #000, #333);
    padding: 80px 20px;
    text-align: center;
    color: #f8f8f8;
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
}

.cta-container h2 {
    font-size: 32px;
    color: #d4af37;
    margin-bottom: 20px;
}

.cta-container p {
    font-size: 18px;
    color: #ddd;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #d4af37;
    color: #1a1a1a;
    padding: 14px 32px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.cta-button.secondary {
    background: #ffffff;
    color: #1a1a1a;
    border: 2px solid #d4af37;
}

.cta-button:hover {
    background: #b8962e;
    transform: scale(1.05);
}

.cta-button.secondary:hover {
    background: #f0f0f0;
}

.cta-icon {
    width: 28px;
    height: 28px;
}

/* Responsif */
@media (max-width: 768px) {
    .keunggulan-container {
        flex-direction: column;
        align-items: center;
    }

    .keunggulan-item {
        width: 90%;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

.section-slogan {
    color: #d4af37;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
    height: 300px;
}

.slogan-content {
    max-width: 50%;
    padding-right: 40px;
}

.slogan-box {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
}

.slogan-box h2 {
    font-size: 28px;
    font-weight: bold;
    color: #f8f8f8;
}

.slogan-box p {
    font-size: 18px;
    color: #ccc;
    text-align: justify;
}

/* Responsif */
@media (max-width: 768px) {
    .slogan-content {
        max-width: 100%;
        padding-right: 0;
        text-align: center;
    }

    .keunggulan-container {
        flex-direction: column;
        align-items: center;
    }

    .keunggulan-item {
        width: 70%;
    }

    .slogan-box p {
        text-align: justify;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}


/* Footer */
.footer {
    background: #111;
    color: #fff;
    padding: 20px 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    text-align: center;
}

.footer-left h3 {
    margin: 10px 0 0;
    font-size: 22px;
}

.footer-middle .footer-menu {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 15px;
    list-style: none;
    padding: 0;
    font-size: 20px;

}

.footer-middle .footer-menu li a {
    color: #fff;
    text-decoration: none;
}

.footer-right .footer-icons {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 15px;
}

.footer-icon {
    width: 35px;
    height: 35px;
}

/* Responsif */
@media (max-width: 768px) {
    .section-slogan {
        background-position: center right;
    }

    .slogan-content {
        max-width: 80%;
        padding-right: 0;
        text-align: center;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-left,
    .footer-middle,
    .footer-right {
        margin-bottom: 20px;
    }

    .footer-middle .footer-menu {
        grid-template-columns: repeat(1, auto);
    }

    .footer-right .footer-icons {
        grid-template-columns: repeat(3, auto);
    }
}


/* Untuk Menu Produk */
.produk-kontainer {
    padding: 60px 10%;
    text-align: center;
    background-color: #f8f8f8;
}

.produk-kontainer h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

.produk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.produk-kartu {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.produk-kartu img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 15px;
    object-fit: cover;
    transition: box-shadow 0.3s ease;
}

.produk-kartu img:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.produk-kartu h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.produk-kartu p {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

.tomb-bel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.buyyy,
.shop {
    display: inline-block;
    padding: 10px 15px;
    font-size: 16px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.buyyy {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.buyyy:hover {
    background: linear-gradient(135deg, #1EBE5B, #0E6C59);
    transform: scale(1.05);
}

.shop {
    background: linear-gradient(135deg, #FF4500, #FF6347);
}

.shop:hover {
    background: linear-gradient(135deg, #E03A00, #E04C3A);
    transform: scale(1.05);
}

/* Tombol toggle untuk top-bar */
.topbar-toggle-btn {
    display: none;
    background-color: #ff6600;
    color: white;
    border: none;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .topbar-toggle-btn {
        display: block;
    }

    #topBarWrapper {
        display: none;
    }

    #topBarWrapper.show {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to   { opacity: 1; transform: translateY(0); }
    }
}
