/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    min-width: 0;
}

:root {
    --pink: #FF69B4;
    --pink-soft: #FFB6D5;
    --pink-light: #FFF0F5;
    --yellow: #FFD700;
    --yellow-soft: #FFF8DC;
    --white: #FFFFFF;
    --dark: #4A2C4A;
    --gray: #888;
    --shadow: 0 4px 20px rgba(255, 105, 180, 0.15);
}

/* ================= GLOBAL ================= */
html, body {
    overflow-x: hidden;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    padding-top: 70px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ================= HEADER ================= */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pink);
}
.logo span { color: var(--yellow); }
.logo i { color: var(--yellow); }

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 500;
    transition: 0.3s;
    position: relative;
}

.nav-menu a:hover { color: var(--pink); }

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--pink);
    transition: 0.3s;
}

.nav-menu a:hover::after { width: 100%; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--pink);
    cursor: pointer;
}

/* ================= HERO ================= */
.hero {
    background: linear-gradient(135deg, var(--pink-light) 0%, var(--yellow-soft) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '👑';
    position: absolute;
    font-size: 15rem;
    opacity: 0.05;
    top: 10%;
    right: -5%;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content h1 span { color: var(--pink); }

.hero-content p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #555;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--pink), var(--pink-soft));
    color: var(--white);
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
}

/* ================= SECTION ================= */
.section { padding: 70px 0; }
.section-alt { background: var(--pink-light); }

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: var(--gray);
}

/* ================= FILTER ================= */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
}

.filter-btn {
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--pink-light);
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn.active {
    background: var(--pink);
    color: white;
}

/* ================= KATEGORI ================= */
.kategori-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
}

.kategori-card {
    background: var(--white);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.kategori-icon {
    width: 50px;
    height: 50px;
    background: var(--pink-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.kategori-card h3 {
    font-size: 0.9rem;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kategori-card p {
    font-size: 0.75rem;
    color: var(--gray);
}

/* ================= PRODUK ================= */
.produk-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
}

.produk-grid > * {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.produk-grid img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.produk-grid h3 {
    font-size: 0.9rem;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.produk-grid p {
    font-weight: 600;
    color: var(--pink);
}

/* FIX TOMBOL */
.produk-grid a {
    margin-top: auto;
    background: var(--pink);
    color: white;
    padding: 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    text-align: center;

    width: 100%;
    max-width: 150px;
    align-self: center;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }


.nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    gap: 20px;

    /* FIX */
    max-height: 0;
    overflow: hidden;

    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* saat dibuka */
.nav-menu.active {
    max-height: 300px;
    padding: 20px 0;

    opacity: 1;
    transform: translateY(0);
}
    .hero-content h1 {
        font-size: 2rem;
    }

    .kategori-grid,
    .produk-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================= FLOAT WA ================= */
.float-wa {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    padding: 12px;
    border-radius: 50%;
}


/* map */
.footer iframe {
    width: 100%;
    height: 150px;
    border: none;
    border-radius: 10px;
    margin-top: 10px;
}

/* tombol WA */
.btn-wa {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 15px;
    background: #25D366;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.btn-wa:hover {
    background: #1ebe5d;
}
