/*Transisi antar page*/
body.fade-in {
    opacity: 1;
    transform: none;
    animation: fadeInSimple 0.4s ease;
  }
  body.fade-out {
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  body.slide-out {
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }
  body.scale-out {
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }
  body.trans-enter {
    opacity: 0;
  }
  body.trans-enter-active {
    opacity: 1;
    transition: opacity 0.4s ease;
  }
  @keyframes fadeInSimple {
    from {
      opacity: 0;
      filter: blur(8px);
    }
    to {
      opacity: 1;
      filter: blur(0);
    }
  }
html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f7f7f7;
    color: #222;
}

header {
    background: linear-gradient(90deg, #181c24 0%, #232733 60%, #3e4a63 100%);
    color: #fff;
    padding: 1.8rem 0 1.2rem 0;
    text-align: center;
    letter-spacing: 2px;
    box-shadow: 0 2px 12px rgba(30,30,30,0.10);
    position: relative;
    z-index: 2;
}

header h1 {
    margin: 0;
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    background: linear-gradient(90deg, #fff 60%, #ff6a00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-noisecore {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin-bottom: 0.2rem;
    user-select: none;
}

.logo-noisecore svg {
    display: inline-block;
    background: #fff0;
}

.logo-noisecore .logo-text {
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    background: linear-gradient(90deg, #fff 60%, #ff6a00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Segoe UI', Arial, sans-serif;
}

nav {
    background: #232733;
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    transition: background 0.2s;
}

nav a.active,
nav a:hover {
    background: #3e4a63;
}

#menu-toggle {
    display: none;
    background: #232733;
    color: #fff;
    border: none;
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
    margin: 1rem auto 0.5rem auto;
    border-radius: 8px;
    cursor: pointer;
    width: 90%;
    max-width: 400px;
}

/* Hero */
.hero {
    background: linear-gradient(120deg, #232733 60%, #3e4a63 100%);
    color: #fff;
    padding: 3rem 1rem 2rem 1rem;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.btn {
    display: inline-block;
    background: #ff6a00;
    color: #fff;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s, box-shadow 0.2s;
    margin-top: 0.5rem;
    border: none;
    box-shadow: 0 2px 8px rgba(255,106,0,0.13);
}

.btn:hover {
    background: #e55a00;
    box-shadow: 0 4px 16px rgba(255,106,0,0.18);
}
.btn-center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Top Products */
.top-products {
    background: #fff;
    padding: 2rem 1rem;
    margin: 2rem 0 0 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 2px 8px rgba(30,30,30,0.06);
}

.top-products h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(30,30,30,0.13), 0 1.5px 0 #ececec;
    border: 1.5px solid #e6e6e6;
    padding: 1rem;
    width: 180px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.product-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0.7rem;
    border: 1px solid #ececec;
    background: #f7f7f7;
}

.product-card:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 8px 28px rgba(30,30,30,0.18), 0 1.5px 0 #ececec;
    border-color: #ffb347;
}

.product-card h3 {
    color: #232733;
    font-size: 1.08rem;
    font-weight: bold;
    margin: 0.7em 0 0.3em 0;
    text-align: center;
}

.product-card p {
    margin: 0.2rem 0;
}

.product-card:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 6px 18px rgba(30,30,30,0.13);
}

/* Promotions */
.promotions {
    background: #232733;
    color: #fff;
    padding: 2rem 1rem;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 2px 8px rgba(30,30,30,0.06);
    margin-bottom: 2rem;
}

.promotions h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.promotion-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.promotion-card {
    background: #3e4a63;
    border-radius: 14px;
    padding: 1rem 1.2rem;
    width: 220px;
    box-shadow: 0 2px 8px rgba(30,30,30,0.09);
    text-align: center;
}

.promotion-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.promotion-card p {
    margin: 0;
    font-size: 1rem;
}
.promo-badge {
    display: inline-block;
    background: linear-gradient(90deg, #ff6a00 0%, #ffb347 100%);
    color: #fff;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 12px;
    padding: 0.2rem 0.8rem;
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
    letter-spacing: 1px;
}
.promo-price {
    color: #ff6a00;
    font-weight: bold;
    font-size: 1.1rem;
    margin-right: 0.5em;
}
.original-price {
    color: #888;
    font-size: 1rem;
    text-decoration: line-through;
    margin-left: 0.2em;
}

/* Footer */
footer {
    background: #181c24;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    font-size: 1rem;
    margin-top: 2rem;
    border-radius: 16px 16px 0 0;
}

/* Responsive Design */
@media screen and (min-width: 1200px) {
    .top-products,
    .promotions {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
    .product-list,
    .promotion-list {
        gap: 2.2rem;
    }
    .product-card,
    .promotion-card {
        width: 220px;
        min-width: 220px;
        max-width: 240px;
    }
    .product-card h3,
    .promotion-card h3 {
        font-size: 1.18rem;
    }
}
/* Untuk Ipad */ 
@media screen and (min-width: 700px) and (max-width: 1199px) {
    .top-products,
    .promotions {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }
    .product-list,
    .promotion-list {
        gap: 1.2rem;
    }
    .product-card,
    .promotion-card {
        width: 180px;
        min-width: 180px;
        max-width: 200px;
    }
    .product-card h3,
    .promotion-card h3 {
        font-size: 1.08rem;
    }
}
/* Untuk Hengpong */
@media screen and (max-width: 699px) {
    nav {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0;
        display: none;
    }
    nav.active {
        display: flex;
    }
    #menu-toggle {
        display: block;
    }
    .product-list,
    .promotion-list {
        flex-direction: column;
        align-items: center;
    }
    .product-card,
    .promotion-card {
        width: 90%;
        max-width: 320px;
    }
    .hero-content h2 {
        font-size: 1.4rem;
    }
    .top-products,
    .promotions {
        padding: 1.2rem 0.3rem;
    }
}