/* ===== NAVBAR SHARED ===== */
header {
    background: linear-gradient(135deg, rgba(254,176,8,0.87) 0%, #ffc78f 100%);
    position: sticky;
    width: 100%;
    padding: 0 1rem;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 12px rgba(246,137,58,0.2);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
}

.logo img {
    width: 170px;
    height: auto;
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
    z-index: 1000;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #0a0808;
    border-radius: 3px;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.25s ease,
                background-color 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Nav menu — smooth slide + fade */
.nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(254,176,8,0.97), #ffc78f);
    padding: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    gap: 0;
    z-index: 999;
    list-style: none;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: max-height 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.35s ease,
                transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                padding 0.3s ease;
}

.nav-menu.active {
    max-height: 600px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    padding: 8px 0 16px;
}

/* Staggered animation */
.nav-menu li {
    width: 100%;
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-menu.active li:nth-child(1) { opacity: 1; transform: translateX(0); transition-delay: 0.05s; }
.nav-menu.active li:nth-child(2) { opacity: 1; transform: translateX(0); transition-delay: 0.10s; }
.nav-menu.active li:nth-child(3) { opacity: 1; transform: translateX(0); transition-delay: 0.15s; }
.nav-menu.active li:nth-child(4) { opacity: 1; transform: translateX(0); transition-delay: 0.20s; }
.nav-menu.active li:nth-child(5) { opacity: 1; transform: translateX(0); transition-delay: 0.25s; }
.nav-menu.active li:nth-child(6) { opacity: 1; transform: translateX(0); transition-delay: 0.30s; }
.nav-menu.active li:nth-child(7) { opacity: 1; transform: translateX(0); transition-delay: 0.35s; }
.nav-menu.active li:nth-child(8) { opacity: 1; transform: translateX(0); transition-delay: 0.40s; }
.nav-menu.active li:nth-child(9) { opacity: 1; transform: translateX(0); transition-delay: 0.45s; }

.nav-menu a {
    color: rgb(0, 0, 0);
    display: block;
    padding: 12px 2rem;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    transition: background 0.2s ease, padding-left 0.2s ease;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.18);
    padding-left: 2.5rem;
    opacity: 1;
}


@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Nunito:wght@400;600;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #1a1200;
  min-height: 100vh;
  font-family: 'Nunito', sans-serif;
  padding-bottom: 3rem;
}

/* ── HEADER ── */
.header {
  background: #B8860B;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  border-bottom: 4px solid #8B6508;
  position: relative;
  overflow: hidden;
}
.header::before {
  content: '';
  position: absolute;
  top: -40px; left: -40px; right: -40px; bottom: -40px;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px,
    transparent 1px, transparent 20px
  );
  pointer-events: none;
}
.header h1 {
  font-size: 2.2rem;
  color: #FFF8E1;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
  position: relative;
}
.header p {
  color: #FFE082;
  font-size: 0.95rem;
  margin-top: 6px;
  position: relative;
}

/* ── SEARCH BAR ── */
.search-bar {
  max-width: 600px;
  margin: 1.5rem auto 0;
  position: relative;
}
.search-bar input {
  width: 100%;
  padding: 12px 20px 12px 44px;
  border-radius: 50px;
  border: 2px solid #8B6508;
  background: rgba(255,248,225,0.12);
  color: #FFF8E1;
  font-size: 14px;
  font-family: 'Nunito', sans-serif;
  outline: none;
  transition: border 0.2s, background 0.2s;
}
.search-bar input::placeholder { color: rgba(255,248,225,0.5); }
.search-bar input:focus {
  border-color: #FFD700;
  background: rgba(255,248,225,0.18);
}
.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #FFD700;
  font-size: 16px;
}

/*grid*/

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── CARD ── */
.card {
  background: #2a1e00;
  border: 1px solid #4a3500;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-4px);
  border-color: #B8860B;
  box-shadow: 0 8px 24px rgba(184,134,11,0.3);
}

/* ── FOTO PRODUK ── */
.card-img {
  width: 100%;
  height: 160px;
  background: #3a2800;
  border-bottom: 1px solid #4a3500;
  overflow: hidden;
  position: relative;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* foto dipotong proporsional agar memenuhi kotak */
  display: block;
  transition: transform 0.3s;
}
.card:hover .card-img img {
  transform: scale(1.06);
}

.card-img .nomor {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(184,134,11,0.88);
  color: #FFF8E1;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  z-index: 2;
}

/* ── CARD BODY ── */
.card-body { padding: 12px 14px 14px; }
.card-cat {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #B8860B;
  font-weight: 700;
  margin-bottom: 4px;
}
.card-name {
  font-size: 14px;
  font-weight: 700;
  color: #FFF8E1;
  line-height: 1.3;
  margin-bottom: 6px;
}
.card-price {
  font-size: 16px;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 4px;
}
.card-stock { font-size: 11px; color: #a87c20; }
.card-stock.low { color: #e57373; }

/* ── NO RESULT ── */
.no-result {
  text-align: center;
  color: #8a6520;
  padding: 3rem;
  font-size: 15px;
  grid-column: 1 / -1;
}

/* NAVBAR */












.btn-back:hover {
  background: #131311;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    flex: 1;
}

.footer {
    background-color: #222; /* sesuaikan dengan warna footer kamu */
    padding: 15px 0;
}

.footer .footer-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer .footer-content p {
    margin: 0;
    font-size: 13px;
    color: #fff; /* sesuaikan warna teks */
    white-space: nowrap;
}

.footer .footer-content a {
    color: #fff;
    text-decoration: none;
}

.footer .footer-content .divider {
    color: #aaa;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .footer .footer-content {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .footer .footer-content .divider {
        display: none;
    }
}