@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    color: white;
    margin: 0;
    padding: 20px;
    text-align: center;
}

/* === GAYA NAVBAR BAHARU === */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 204, 0, 0.2);
    position: fixed;
    top: 0;
    width: 100%;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
}

/* ... sambung semua CSS awak tadi ke sini ... */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    color: white;
    margin: 0;
    padding: 20px;
    text-align: center;
}

/* === GAYA NAVBAR BAHARU === */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    /* Kesan kaca fros (glassmorphism) */
    background: rgba(26, 26, 26, 0.7); /* Disesuaikan dengan tema asal */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 204, 0, 0.2);
    /* Lekatkan navbar di bahagian atas */
    position: fixed;
    top: 0;
    width: 100%;
    left: 0;
    z-index: 1000;
    box-sizing: border-box; /* Memastikan padding tidak menambah lebar */
}

/* Logo di sebelah kiri */
.navbar .logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar .logo-container img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #ffcc00;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.navbar .logo-container:hover img {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 0 15px #ffcc00;
}

.navbar .logo-container .store-name {
    font-size: 18px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Senarai Pautan Navigasi */
.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding-bottom: 5px;
    position: relative;
    transition: color 0.3s ease;
}

/* Kesan garis bawah semasa hover */
.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffcc00;
    transition: width 0.3s ease;
}

.nav-links li a:hover {
    color: #ffcc00;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Ikon Menu Hamburger (untuk mobile) */
.hamburger-menu {
    display: none; /* Sembunyi pada desktop */
    font-size: 24px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
}

/* Rekaan Responsif untuk Skrin Kecil (Mobile) */
@media (max-width: 768px) {
    /* Sembunyikan pautan dan tunjukkan ikon hamburger */
    .nav-links {
        display: none; /* Sembunyikan senarai pautan */
        flex-direction: column; /* Susun pautan secara menegak */
        position: absolute;
        top: 70px; /* Jarak dari atas navbar */
        left: 0;
        width: 100%;
        background: rgba(26, 26, 26, 0.9); /* Latar belakang lebih gelap */
        backdrop-filter: blur(10px);
        padding: 20px 0;
        border-bottom: 1px solid rgba(255, 204, 0, 0.2);
    }

    /* Kelas 'active' untuk menunjukkan menu */
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    /* Tunjukkan ikon hamburger */
    .hamburger-menu {
        display: block;
    }
}
/* === AKHIR GAYA NAVBAR BAHARU === */


.content {
    margin-top: 80px;
}

h2 {
    font-size: 26px;
    font-weight: bold;
    color: #ffcc00;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.8);
    padding: 15px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 100px;
}

.promo-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns for mobile */
    gap: 20px;
    max-width: 800px;
    margin: auto;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .promo-container {
        grid-template-columns: repeat(4, 1fr); /* 4 columns for desktop */
    }
}


.product {
    background: linear-gradient(145deg, #222, #1a1a1a);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(255, 204, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(255, 204, 0, 0.6);
}

.product img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ffcc00;
}

.product-name {
    font-size: 16px;
    font-weight: bold;
    margin: 5px 0;
    color: #ffcc00;
}

.product-description {
    font-size: 12px;
    color: #ccc;
    margin-top: 5px;
}

.copyright {
    text-align: center;
    font-size: 12px;
    color: #aaa;
    padding-bottom: 10px;
}

.promo-title {
    font-size: 0px;
    font-weight: bold;
    margin-bottom: 0px;
    margin-top: 25px; 
}

.swiper {
    width: 100%;
    max-width: 800px; 
    height: auto;
    margin: auto;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 16/7;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}
.product {
    position: relative; 
    display: inline-block;
    overflow: hidden;
}

.label-close {
    position: absolute;
    top: 5px; 
    left: 5px; 
    background: red;
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 10;
}
a {
    color: #ffcc00 !important;
    text-decoration: none;
}
a:hover {
    color: #ffaa00;
}
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); 
    gap: 8px; 
    justify-content: center;
    text-align: center;
    padding: 10px;
    background: #121212;
}

.item {
    background: #1a1a1a; 
    border-radius: 8px;
    padding: 10px;
    position: relative;
    box-shadow: 0px 2px 6px rgba(255, 255, 0, 0.5); 
    transition: transform 0.2s, box-shadow 0.2s;
}

.item::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 10px;
    border: 2px solid rgba(255, 215, 0, 0.7); 
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    pointer-events: none;
}

.item:hover {
    transform: translateY(-3px);
    box-shadow: 0px 4px 8px rgba(255, 215, 0, 0.6);
}

.item img {
    width: 50px; 
    height: auto;
    margin-bottom: 5px;
}

.item p {
    font-size: 12px;
    font-weight: bold;
    color: #ffd700; 
    margin: 0;
}
.extra-section {
    background: #222; 
    padding: 30px 0;
}

.footer-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    text-align: left;
}

.footer-section h3 {
    color: yellow;
    border-bottom: 2px solid yellow;
    padding-bottom: 8px;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 10px 0;
}

.footer-section ul li a {
    text-decoration: none;
    color: white;
    opacity: 0.8;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section ul li a:hover {
    color: yellow;
    opacity: 1;
}
.footer-section ul li a i {
    width: 20px;
    text-align: center;
}

.top-info {
    text-align: center;
    background: #222; 
    padding: 10px 20px;
    margin-top: -10px;
    color: yellow;
    font-size: 14px;
    font-weight: bold;
    border-radius: 10px;
}

.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto; 
    background: #1a1a1a;
    padding: 10px;
    border-radius: 8px;
    max-width: 400px; 
}
.search-container input {
    border: none;
    outline: none;
    padding: 8px;
    font-size: 14px;
    width: 70%; 
    background: #333;
    color: white;
    border-radius: 5px 0 0 5px;
}

.search-container button {
    background: #ffcc00;
    color: black;
    border: none;
    padding: 8px 12px;
    border-radius: 0 5px 5px 0;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.search-container button:hover {
    background: #ffaa00;
}
.popular-section {
    text-align: left; 
    margin-left: 10px; 
    margin-top: -100px; 
}

.popular-title {
    font-size: 14px; 
    font-weight: bold;
    color: #FF4500; 
    text-transform: uppercase;
    margin-bottom: 1px; 
}

.popular-text {
    font-size: 11px;
    color: #666;
    margin-top: 0px; 
}
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: white;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
    border-radius: 8px;
    text-align: center;
    z-index: 1000;
    overflow: hidden;
}
.popup img {
    width: 100%;
    display: block;
    cursor: pointer;
}
.close-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.close-btn:hover {
    background: red;
}
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}
.icedragon-title {
    position: relative;
    display: inline-block;
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    padding: 0px 20px;
    margin-top: 15px; 
}

.icedragon-title::before {
    content: "";
    position: absolute;
    top: -5px; 
    left: 0;
    width: 100%;
    height: 4px;
    background-color: yellow;
}

#loadMoreBtn {
    display: inline-block;
    background: linear-gradient(90deg, #ffcc00, #ff6600);
    color: black;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 0 8px rgba(255, 102, 0, 0.7);
    border: none;
    cursor: pointer;
    margin-top: 20px;
}

#loadMoreBtn:hover {
    background: linear-gradient(90deg, #ff6600, #ffcc00);
    box-shadow: 0 0 12px rgba(255, 102, 0, 1);
}