* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Warna */
:root {
    --primary: #004AAD;
    --primary-dark: #003380;
    --secondary: #FF4081;
    --bg-light: #F8F9FA;
    --text-dark: #333;
    --text-muted: #666;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Body */
body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding-top: 60px;
    overflow-x: hidden;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Logo */
.logo {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
}

/* Warna untuk "STORE" */
.logo span {
    color: var(--secondary);
}

/* Navigasi untuk Desktop */
.nav-desktop {
    display: flex;
}

.nav-desktop ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-desktop ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: bold;
    transition: 0.3s;
}

.nav-desktop ul li a:hover {
    color: var(--primary);
}

/* Ikon */
.icons {
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Tambahan supaya ikon tetap rapi */
.icons i {
    cursor: pointer;
}

/* Menu Sidebar untuk Mobile */
.sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100vh;
    background: var(--bg-light);
    color: var(--bg-light);
    transition: left 0.3s ease-in-out;
    padding-top: 20px;
    z-index: 1000;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    padding: 15px;
}

.sidebar ul li a {
    color: rgb(0, 0, 0);
    text-decoration: none;
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
}

/* Banner */
.banner-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.slides {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    width: 100%;
    flex: 1 0 100%;
}

/* Promo Aplikasi */
.promo-app {
    background: #333;
    color: white;
    padding: 15px;
    margin-top: 10px;
    text-align: center;
}

.promo-app img {
    width: 100px;
    margin-left: 10px;
}

/* Kategori Modern */
.categories-container {
    width: 100%;
    padding: 15px 10px;
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
    background: #ffffff;
    box-shadow: 0 6px 10px -4px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    position: sticky;
    top: 60px; /* Pas dengan tinggi header */
    z-index: 99;
}

.categories-container::-webkit-scrollbar {
    display: none;
}

.categories {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    align-items: center;
    width: max-content;
    padding: 0 15px;
}

@media (min-width: 900px) {
    .categories {
        justify-content: center;
    }
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: none;
    border-radius: 30px;
    background: #f4f6f8;
    color: #444;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.category-btn i {
    font-size: 16px;
    color: #888;
    transition: color 0.3s;
}

.category-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    color: var(--primary);
}

.category-btn:hover i {
    color: var(--primary);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--primary), #003380);
    color: #ffffff !important;
    box-shadow: 0 6px 15px rgba(0, 74, 173, 0.3);
    transform: translateY(-1px);
}

.category-btn.active i {
    color: #ffffff;
}

/* Produk */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 2fr));
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

/* Ukuran default produk */
.product {
    background: white;
    padding: 12px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Atur ukuran gambar produk agar tidak terpotong */
.product img {
    width: 100%;
    height: auto;
    max-height: 500px; /* Supaya semua gambar seragam */
    object-fit: contain; /* Memastikan gambar tidak terpotong */
    border-radius: 10px;
    margin-bottom: 10px;
}
.product a{
    text-decoration: none;
    color: inherit;
}
.logo a {
    text-decoration: none;
    color: inherit;
}
/* Judul produk rata kiri */
.product h3 {
    font-size: 16px;
    margin: 10px 0 5px 0;
    text-align: left;
    min-height: 40px; /* Menyamakan tinggi judul agar sejajar */
}

/* Rating di kanan */
.rating {
    color: #FFD700;
    font-size: 14px;
    margin-top: 5px;
    text-align: right;
}

/* Harga sejajar di bawah */
.product-price {
    font-size: 18px;
    font-weight: bold;
    color: red;
    margin-top: auto; /* Mendorong harga ke bawah agar sejajar */
    text-align: left;
}


/* Menyesuaikan tampilan agar 3 produk per baris di desktop */
@media (min-width: 900px) {
    .product-list {
        grid-template-columns: repeat(3, 1fr);
 }
}
/* Footer Modern */
footer {
    background: var(--primary); /* Warna biru */
    color: #ffffff;
    padding: 60px 20px 30px;
    margin-top: 50px;
    position: relative;
    border-top: none;
    display: flex;
    justify-content: center;
}

.footer-content {
    max-width: 800px;
    width: 100%;
    margin: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-logo span {
    color: #ffffff; /* Putih (tidak lagi pink) */
    font-weight: 300;
}

.footer-content > p:first-of-type {
    font-size: 15px;
    opacity: 0.9;
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 35px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
    transform: translateY(-5px);
    background: #ffffff; /* Putih */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Supaya hover ikon di atas background putih jadi biru */
.social-icon:hover i {
    color: var(--primary); /* Biru */
}

.social-icon i {
    font-size: 22px;
    color: #ffffff;
    transition: color 0.3s;
}

.copyright {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 25px;
    font-size: 13px;
    opacity: 0.8;
    letter-spacing: 0.5px;
}
/* Tentang Kami */
.about-us {
    background: white;
    padding: 50px 20px;
    text-align: center;
}

.container {
    max-width: 1100px;
    margin: auto;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.about-text {
    flex: 1;
    text-align: left;
}

.about-text h2 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 10px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
}

.btn-learn-more {
    margin-top: 10px;
    padding: 10px 15px;
    border: none;
    background: var(--secondary);
    color: white;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-learn-more:hover {
    background: var(--primary);
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}



/* Tag kategori */
.tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.tag {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    text-transform: capitalize;
}

.tag.website {
    background: #4a90e2;
    color: #fff;
}

.tag.source-code {
    background: #ddd;
    color: #333;
}

/* List fitur */
.features {
    list-style: none;
    text-align: left;
    padding: 0 20px;
}

.features li {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: left;
}

.features li::before {
    content: "✔";
    color: #2ecc71;
    margin-right: 10px;
    font-weight: bold;
}

/* Tombol Order */
.order-button {
    display: block;
    width: 100%;
    padding: 15px;
    background: #4a90e2;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
    margin-top: 15px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.order-button:hover {
    background: #357ABD;
}

/* Section Deskripsi */
.description-container {
    margin-top: 20px;
    padding: 15px;
    border-top: 1px solid #ddd;
}

.description-container h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Chat Button */
.chat-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4a90e2;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}

.chat-button i {
    margin-right: 8px;
}
.related-products {
    margin-top: 30px;
}
   .related-products .title h4 {
    padding-left: 30px;
    margin-left: 20px;
    width: 90%;
    height: 35px;
    background-color: var(--text-dark);
    color: var(--bg-light);
    padding: 10px;
    border-radius: 5px;
     }
     .related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.view-all {
    padding-right: 25px;
    font-size: 14px;
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}

.view-all:hover {
    text-decoration: underline;
}
/* Responsive */

/* Tampilkan Sidebar hanya di HP */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        text-align: center;
 }
}

/* Sembunyikan Sidebar & Tampilkan Menu di Header di Desktop */
@media (min-width: 769px) {
    .menu-icon {
        display: none;
    }

    .sidebar {
        display: none;
 }
}

/* 1 Baris 2 Produk di HP */
@media (max-width: 768px) {
    .product-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
        padding: 12px;
    }
    .product {
        padding: 10px;
        border-radius: 12px;
    }
    .product h3 {
        font-size: 13px;
        min-height: 32px;
        margin-top: 8px;
        line-height: 1.3;
    }
    .product-price {
        font-size: 14px;
        margin-top: 5px;
    }
    .rating {
        font-size: 10px;
        margin-top: 3px;
    }
    .product img {
        border-radius: 8px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .categories-container {
        padding: 10px 0;
    }
}

/* Very Small Devices */
@media (max-width: 350px) {
    .product-list {
        grid-template-columns: 1fr !important;
    }
}
