/* ================= RESET & GLOBAL ================= */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #0e0e0e;
  color: #fff;
}

img {
  width: 100%;
  display: block;
}

/* ================= THEME ================= */
:root {
  --red-main: #c62828;
  --red-dark: #8e0000;
  --dark-card: #1e1e1e;
}

/* ================= CONTAINER ================= */
.wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 12px;
}

/* ================= HEADER ================= */
.topbar {
  background: linear-gradient(90deg, var(--red-dark), var(--red-main));
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.search-box {
  flex: 1;
  display: flex;
}

.search-box input {
  flex: 1;
  height: 36px;
  padding: 0 10px;
  border: none;
  outline: none;
  border-radius: 6px 0 0 6px;
}

.search-box button {
  height: 36px;
  padding: 0 14px;
  border: none;
  background: var(--red-main);
  color: #fff;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
}

.top-icons a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}

/* ================= STORE HEADER ================= */
.store-header {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.store-info {
  flex: 0 0 260px;
  background: var(--dark-card);
  padding: 14px;
  border-radius: 12px;
}

.store-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.store-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #000;
  padding: 6px;
}

.store-text strong {
  display: block;
  font-size: 15px;
}

.store-text span {
  font-size: 12px;
  opacity: 0.8;
}

.store-actions button {
  margin-right: 6px;
  padding: 6px 14px;
  border: 1px solid var(--red-main);
  background: transparent;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}

/* ================= BANNER ================= */
.store-banner img {
  border-radius: 12px;
}

/* ================= NAV ================= */
.store-nav {
  margin-top: 12px;
  border-bottom: 1px solid #333;
  display: flex;
  gap: 20px;
}

.store-nav a {
  padding: 10px 0;
  color: #aaa;
  text-decoration: none;
  font-weight: bold;
}

.store-nav a.active {
  color: var(--red-main);
  border-bottom: 2px solid var(--red-main);
}

/* ================= PRODUCT SECTION (BACKGROUND) ================= */
.product-section {
  background: linear-gradient(
    135deg,
    #8e0000 0%,
    #1a1a1a 40%,
    #0e0e0e 100%
  );
  padding: 32px 0 48px;
}

/* ================= PRODUCT GRID ================= */
.product-grid {
  margin-top: 24px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ================= PRODUCT CARD ================= */
.product-card {
  background: #1c1c1c;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}

@media (hover: hover) {
  .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.5);
  }
}

.product-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
}

/* ================= INFO ================= */
.product-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-info h4 {
  font-size: 13px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price {
  font-size: 14px;
  font-weight: bold;
  color: #ff3b3b;
}

/* ================= ORDER BUTTON ================= */
.order-btn {
  margin-top: 6px;
  padding: 10px;
  width: 100%;
  background: #ff3b3b;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.order-btn:active {
  background: #e53935;
}

/* ================= SNOW EFFECT ================= */
.snow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff, transparent),
    radial-gradient(2px 2px at 40px 70px, #fff, transparent),
    radial-gradient(2px 2px at 60px 120px, #fff, transparent);
  background-size: 200px 200px;
  animation: snowFall 12s linear infinite;
  opacity: 0.7;
}

@keyframes snowFall {
  from { background-position: 0 -200px; }
  to   { background-position: 0 100vh; }
}

/* ================= FIX BANNER MOBILE ================= */
@media (max-width: 768px) {

  .store-header {
    flex-direction: column;
  }

  .store-info {
    width: 100%;
    flex: none;
  }

  .store-banner {
    width: 100%;
  }

  .store-banner img {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }
}

/* ❄️ SNOW EFFECT */
.snow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

.snow span {
  position: absolute;
  top: -10px;
  color: white;
  animation-name: fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes fall {
  to {
    transform: translateY(110vh);
  }
}

/* 💬 CHAT PREMIUM BUTTON */
.chat-premium {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #ff3b3b, #c62828);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255,59,59,.4);
}

.chat-premium:active {
  transform: scale(0.97);
}

.wa-chat {
  display: block;
  text-align: center;
  padding: 12px;
  margin-top: 10px;
  background: linear-gradient(135deg, #ff3b3b, #8e0000);
  color: #fff;
  font-weight: bold;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 0 14px rgba(255,59,59,.6);
}

.wa-chat:hover {
  opacity: 0.9;
}

/* =========================
   GRID UTAMA
========================= */
#productGrid {
  display: block;
}

/* =========================
   JUDUL KATEGORI
========================= */
.category-title {
  margin: 30px 0 12px;
  font-size: 1.3rem;
  font-weight: bold;
  color: #ff3b3b;
}

/* =========================
   GRID PRODUK (SHOPEE STYLE)
========================= */
.product-row {
  display: grid;
  gap: 14px;
}

/* PC */
@media (min-width: 1024px) {
  .product-row {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Tablet */
@media (min-width: 600px) and (max-width: 1023px) {
  .product-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile */
@media (max-width: 599px) {
  .product-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================
   KARTU PRODUK
========================= */
.product-card {
  background: #111;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.product-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
}

.product-card h4 {
  font-size: .9rem;
  margin: 8px 0 4px;
}

.price {
  color: #00ff88;
  font-weight: bold;
  font-size: .9rem;
  margin-bottom: 8px;
}

.btn-order {
  width: 100%;
  padding: 8px;
  background: #ff3b3b;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.store-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.group-btn {
  background: #1faa59; /* hijau WhatsApp */
  border: 1px solid #1faa59;
}

/* =========================
   ICON PULSE ANIMATION
========================= */
.icon-pulse {
  display: inline-block;
  margin-right: 6px;
  animation: pulseGlow 1.6s infinite;
}

@keyframes pulseGlow {
  0% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(31,170,89,0);
  }
  50% {
    transform: scale(1.25);
    text-shadow: 0 0 10px rgba(31,170,89,0.9);
  }
  100% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(31,170,89,0);
  }
}

/* WARNA KHUSUS TOMBOL GROUP */
.group-btn {
  background: #1faa59;
  border: 1px solid #1faa59;
}
