body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f7f7f7;
}
header {
    background: linear-gradient(90deg, #ffb6d5, #ff69b4, #ffb6d5);
    background-size: 200% 200%;
    animation: pinkfade 4s ease-in-out infinite alternate;
    color: #fff;
    padding: 20px 0 30px 0;
    text-align: center;
    font-size: 2em;
    letter-spacing: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
}
@keyframes pinkfade {
    0% {
        background-position: 0% 50%;
        filter: brightness(1.1);
    }
    50% {
        background-position: 100% 50%;
        filter: brightness(0.85);
    }
    100% {
        background-position: 0% 50%;
        filter: brightness(1.1);
    }
}
.stars {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 10px;
    position: relative;
}
.star {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.08));
    animation: spin 4s linear infinite, moveX 1.2s ease-in-out infinite alternate;
    width: 1.5em;
    height: 1.5em;
}
.star:nth-child(2) {
    animation: spin 6s linear infinite reverse, moveX 1.5s ease-in-out infinite alternate-reverse;
}
.star:nth-child(3) {
    animation: spin 5s linear infinite, moveX 1.3s ease-in-out infinite alternate;
}
.star:nth-child(4) {
    animation: spin 7s linear infinite reverse, moveX 1.7s ease-in-out infinite alternate-reverse;
}
.star:nth-child(5) {
    animation: spin 4.5s linear infinite, moveX 1.1s ease-in-out infinite alternate;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes moveX {
    0% { transform: translateX(0); }
    100% { transform: translateX(28px); }
}
.container {
    display: flex;
    min-height: 90vh;
    max-width: 100%;
    padding: 0 8px;
    box-sizing: border-box;
}
nav {
    width: 200px;
    background: #fffbe7;
    border-right: 1px solid #eee;
    padding: 30px 0;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    /* Animasi masuk */
    opacity: 0;
    transform: translateX(-40px);
    animation: navFadeIn 0.8s cubic-bezier(.68,-0.55,.27,1.55) 0.2s forwards;
}
@keyframes navFadeIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
nav ul li {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateX(-30px);
    animation: navItemFadeIn 0.7s cubic-bezier(.68,-0.55,.27,1.55) forwards;
}
nav ul li:nth-child(1) { animation-delay: 0.4s; }
nav ul li:nth-child(2) { animation-delay: 0.6s; }
@keyframes navItemFadeIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
nav ul li a {
    text-decoration: none;
    color: #ff9800;
    font-weight: bold;
    font-size: 1.1em;
    padding: 10px 20px;
    display: block;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}
nav ul li a.active, nav ul li a:hover {
    background: #ffecb3;
    color: #d17b00;
}
main {
    flex: 1;
    padding: 40px;
    background: #fff;
    min-height: 100vh;
}
.promo-flex {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    margin-top: 18px;
    flex-wrap: wrap;
    justify-content: center;
}
.promo-img-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
@media (min-width: 600px) {
    .promo-img-list {
        flex-direction: row;
        gap: 12px;
    }
}
.promo-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(255,182,213,0.18);
    background: #fffbe7;
}
.promo-info {
    background: #fffbe7;
    border-radius: 10px;
    padding: 24px 28px;
    box-shadow: 0 2px 8px rgba(255,182,213,0.10);
    max-width: 340px;
    min-width: 220px;
}
.promo-info h3 {
    color: #ff69b4;
    margin-top: 0;
}
.promo-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 12px 0 18px 0;
}
.promo-item {
    background: #ffe082;
    color: #b26a00;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 1.08em;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(255,182,213,0.08);
}
.promo-banner {
    background: linear-gradient(90deg, #ffecb3 60%, #ffb6d5 100%);
    border-radius: 6px;
    padding: 12px 16px;
    color: #b26a00;
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
    font-size: 1.1em;
}
.promo-banner em {
    color: #ff69b4;
    font-style: normal;
    font-weight: normal;
    display: block;
    margin-top: 4px;
}
.katalog-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
    justify-items: center;
    position: relative;
    z-index: 1;
}
.katalog-item {
    background: #fffbe8;
    border-radius: 16px;
    box-shadow: 0 2px 8px #0001;
    padding: 16px;
    width: 100%;
    max-width: 320px;
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    animation: katalogFadeIn 0.7s cubic-bezier(.68,-0.55,.27,1.55) forwards;
}
.katalog-item:nth-child(1) { animation-delay: 0.1s; }
.katalog-item:nth-child(2) { animation-delay: 0.18s; }
.katalog-item:nth-child(3) { animation-delay: 0.26s; }
.katalog-item:nth-child(4) { animation-delay: 0.34s; }
.katalog-item:nth-child(5) { animation-delay: 0.42s; }
.katalog-item:nth-child(6) { animation-delay: 0.50s; }
.katalog-item:nth-child(7) { animation-delay: 0.58s; }
.katalog-item:nth-child(8) { animation-delay: 0.66s; }
.katalog-item:nth-child(9) { animation-delay: 0.74s; }
.katalog-item:nth-child(10) { animation-delay: 0.82s; }
.katalog-item:nth-child(11) { animation-delay: 0.90s; }
.katalog-item:nth-child(12) { animation-delay: 0.98s; }
@keyframes katalogFadeIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.katalog-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin-bottom: 0;
}
.katalog-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    min-width: 0;
    position: relative;
}
.katalog-nama {
    font-weight: bold;
    color: #ff69b4;
    font-size: 1.1em;
}
.katalog-harga {
    color: #b26a00;
    font-size: 1em;
    font-weight: 500;
}
.katalog-stock {
    color: #888;
    font-size: 0.98em;
}
.lokasi-info {
    background: #fffbe7;
    border-radius: 10px;
    padding: 24px 28px;
    margin-top: 18px;
    box-shadow: 0 2px 8px rgba(255,182,213,0.10);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.alamat {
    color: #b26a00;
    font-size: 1.08em;
    margin-bottom: 10px;
}
.maps-embed iframe {
    width: 100%;
    height: 220px;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(255,182,213,0.10);
}
.pesan-wa {
    text-align: center;
    margin-top: 18px;
}
.btn-wa {
    display: inline-flex;
    align-items: center;
    background: #25d366;
    color: #fff;
    font-weight: bold;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1.1em;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(37,211,102,0.10);
    transition: background 0.2s, transform 0.2s;
    gap: 8px;
}
.btn-wa:hover {
    background: #128c7e;
    transform: scale(1.05);
}
.wa-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
.wa-icon-img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
    display: inline-block;
}
.katalog-list-wrapper {
    background: linear-gradient(135deg, #fffbe7 60%, #ffe082 100%);
    border-radius: 18px;
    padding: 32px 18px 28px 18px;
    margin: 0 0 24px 0;
    position: relative;
    overflow: hidden;
    animation: yellowFade 3.5s ease-in-out infinite alternate;
}
@keyframes yellowFade {
    0% {
        filter: brightness(1.08);
    }
    50% {
        filter: brightness(0.93);
    }
    100% {
        filter: brightness(1.08);
    }
}
.stars-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
}
.star-bg {
    position: absolute;
    fill: #fff;
    opacity: 0.95;
    filter: drop-shadow(0 0 2px #fff);
}

/* Flexbox untuk info katalog agar tombol pesan selalu sejajar kanan bawah */
.katalog-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    min-width: 0;
    position: relative;
}

.katalog-info .btn-wa {
    align-self: flex-end;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    background: #25d366;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 2px 8px #0001;
    transition: background 0.2s;
}

.katalog-info .btn-wa:hover {
    background: #1ebe57;
}

/* Responsive container */
.container {
    max-width: 100%;
    padding: 0 8px;
    box-sizing: border-box;
}

/* Responsive katalog grid */
.katalog-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
    justify-items: center;
}

.katalog-item {
    background: #fffbe8;
    border-radius: 16px;
    box-shadow: 0 2px 8px #0001;
    padding: 16px;
    width: 100%;
    max-width: 320px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.katalog-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin-bottom: 0;
}

/* Responsive for HP */
@media (max-width: 600px) {
    .katalog-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .katalog-item {
        max-width: 100%;
        flex-direction: row;
        padding: 12px;
    }
    .katalog-img {
        width: 64px;
        height: 64px;
    }
    .container {
        padding: 0 2vw;
    }
}

/* Menu di atas saat HP portrait */
@media (max-width: 700px) and (orientation: portrait) {
    .container {
        flex-direction: column !important;
        padding: 0 2vw !important;
    }
    nav {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #eee !important;
        padding: 10px 0 !important;
        display: flex !important;
        justify-content: flex-start !important;
        background: #fffbe8 !important;
        margin-bottom: 8px !important;
    }
    nav ul {
        display: flex !important;
        flex-direction: row !important;
        gap: 18px !important;
        margin: 0 !important;
        padding: 0 8px !important;
    }
    nav ul li {
        margin: 0 8px 0 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }
    main {
        padding: 16px 4vw !important;
    }
    /* Katalog jadi 1 kolom di HP portrait */
    .katalog-list {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        width: 100% !important;
    }
    .katalog-item {
        max-width: 100% !important;
    }
    .katalog-img {
        width: 64px !important;
        height: 64px !important;
    }
}

/* Animasi katalog-item saat refresh di HP portrait */
@media (max-width: 700px) and (orientation: portrait) {
    .katalog-item {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
        animation: katalogPortraitFadeIn 0.7s cubic-bezier(.68,-0.55,.27,1.55) forwards;
    }
    .katalog-item:nth-child(1) { animation-delay: 0.08s; }
    .katalog-item:nth-child(2) { animation-delay: 0.16s; }
    .katalog-item:nth-child(3) { animation-delay: 0.24s; }
    .katalog-item:nth-child(4) { animation-delay: 0.32s; }
    .katalog-item:nth-child(5) { animation-delay: 0.40s; }
    .katalog-item:nth-child(6) { animation-delay: 0.48s; }
    .katalog-item:nth-child(7) { animation-delay: 0.56s; }
    .katalog-item:nth-child(8) { animation-delay: 0.64s; }
    .katalog-item:nth-child(9) { animation-delay: 0.72s; }
    .katalog-item:nth-child(10) { animation-delay: 0.80s; }
}

@keyframes katalogPortraitFadeIn {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }
    80% {
        opacity: 1;
        transform: translateY(-8px) scale(1.03);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Menu tetap di kiri untuk landscape dan desktop */
@media (min-width: 701px), (orientation: landscape) {
    .container {
        flex-direction: row !important;
    }
    nav {
        width: 200px !important;
        min-width: 140px !important;
        border-right: 1px solid #eee !important;
        border-bottom: none !important;
        padding: 30px 0 !important;
        display: block !important;
        background: #fffbe8 !important;
        margin-bottom: 0 !important;
    }
    nav ul {
        display: block !important;
        padding: 0 0 0 18px !important;
    }
    nav ul li {
        margin-bottom: 18px !important;
    }
    main {
        padding: 40px !important;
    }
}



#main-content {
    transition: opacity 0.4s;
    opacity: 1;
}
#main-content.fade-out {
    opacity: 0;
}
#main-content.fade-in {
    opacity: 1;
}
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffb6d5, #ff69b4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 1.2s ease-out, visibility 0s linear 1.2s;
}
.splash-screen.hide {
    opacity: 0;
    visibility: hidden;
}
.splash-title {
    color: #fff;
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    transform-style: preserve-3d;
    perspective: 1000px;
    text-align: center;
    font-weight: bold;
    letter-spacing: 2px;
    position: relative;
    animation: title3D 2s ease-in-out infinite alternate;
}
@keyframes title3D {
    0% {
        transform: rotateX(5deg) rotateY(-5deg) translateZ(0);
        text-shadow: 
            -1px -1px 0 #ff69b4,
            1px 1px 0 #ffb6d5,
            2px 2px 0 rgba(255,182,213,0.4),
            -2px -2px 0 rgba(255,105,180,0.4),
            0 0 15px rgba(255,255,255,0.8);
    }
    100% {
        transform: rotateX(-5deg) rotateY(5deg) translateZ(10px);
        text-shadow: 
            1px 1px 0 #ff69b4,
            -1px -1px 0 #ffb6d5,
            4px 4px 0 rgba(255,182,213,0.4),
            -4px -4px 0 rgba(255,105,180,0.4),
            0 0 20px rgba(255,255,255,0.8);
    }
}
.splash-loading {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}
.splash-dot {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    animation: splashDot 0.8s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255,255,255,0.8);
}
@keyframes splashDot {
    0%, 100% {
        transform: scale(1) translateY(0);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.5) translateY(-10px);
        opacity: 1;
    }
}