/* 1. RESET & BACKGROUND RUMPUT HAY DAY */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #5d9333 !important;
    background-image: 
        radial-gradient(circle at 50% 50%, #76ad41 20%, transparent 20%),
        radial-gradient(circle at 0% 100%, #4f8228 25%, transparent 25%),
        radial-gradient(circle at 100% 0%, #4f8228 25%, transparent 25%),
        radial-gradient(circle at 100% 100%, #76ad41 20%, transparent 20%),
        radial-gradient(circle at 0% 0%, #76ad41 20%, transparent 20%) !important;
    background-size: 36px 36px !important;
    background-position: 0 0, 0 0, 0 0, 18px 18px, 18px 18px !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

/* 2. SEMBUNYIKAN SCROLLBAR KATEGORI TAP TAPI TETAP BISA DI-SCROLL */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 3. PAPAN BOARD UTAMA HAY DAY */
.hayday-section-card {
    background-color: #f6f3df;
    border: 3.5px solid #ded7b8;
    border-radius: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22), inset 0 2px 4px rgba(255, 255, 255, 0.8);
    padding: 1rem;
    position: relative;
}

/* 4. CARD SETIAP ITEM PRODUK */
.hayday-item-card {
    background-color: #ffffff;
    border: 2px solid #e2dac0;
    border-radius: 1.25rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

/* 5. STYLE TOMBOL KATEGORI */
button.btn-kategori,
.btn-kategori {
    background-color: #ffffff !important;
    background-image: none !important;
    border: 2.5px solid #ded7b8 !important;
    color: #725e42 !important;
    font-weight: 900 !important;
    font-size: 10px !important;
    border-radius: 14px !important;
    padding: 8px 16px !important;
    box-shadow: 0 4px 0 #ded7b8 !important;
    transition: all 0.15s ease !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    cursor: pointer;
}

button.btn-kategori:active {
    box-shadow: 0 2px 0 #ded7b8 !important;
    transform: translateY(2px);
}

/* TOMBOL KATEGORI AKTIF (ORANYE) */
button.btn-kategori.active-kat,
.btn-kategori.active-kat {
    background-color: #ff9800 !important;
    background-image: none !important;
    border: 2.5px solid #d87200 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 0 #b25900 !important;
}

button.btn-kategori.active-kat:active {
    box-shadow: 0 2px 0 #b25900 !important;
    transform: translateY(2px) !important;
}

/* 6. ANIMASI DAUN GUGUR */
.leaf-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

.falling-leaf {
    position: absolute;
    top: -10%;
    user-select: none;
    pointer-events: none;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        opacity: 0;
        transform: translateY(0) rotate(0deg) translateX(0);
    }
    10% { opacity: 0.85; }
    90% { opacity: 0.85; }
    100% {
        opacity: 0;
        transform: translateY(105vh) rotate(360deg) translateX(50px);
    }
}
/* Product Card */
.card {
  background: white;
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  border: 1px solid #eaeaea;
}

.card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-img-wrapper {
  position: relative;
  background: #f0f5f1;
  border-radius: 12px;
  padding: 6px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.card-info .lvl-badge {
  font-size: 11px;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 2px;
}

.card-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

.card-info .sub-title {
  font-size: 12px;
  color: #888;
}

/* Counter Control (- 0 +) */
.counter-control {
  display: flex;
  align-items: center;
  background: #f7f9f7;
  border: 1px solid #e0e6e1;
  border-radius: 12px;
  padding: 2px;
}

.counter-btn {
  background: white;
  border: 1px solid #e0e6e1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  cursor: pointer;
}

.counter-value {
  width: 36px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

/* Bottom Bar */
.bottom-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 568px;
  background: #1e4d35;
  color: white;
  border-radius: 16px;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  z-index: 100;
}

.bar-info span {
  display: block;
  font-size: 11px;
  opacity: 0.8;
}

.bar-info strong {
  font-size: 16px;
  font-weight: 800;
}

.btn-checkout {
  background: #25D366;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
