:root {
  --bg-dark: #000000;
  --bg-card: rgba(15, 23, 42, 0.9);
  --border-color: rgba(56, 189, 248, 0.3);
  --primary-blue: #0284c7;
  --primary-blue-hover: #0369a1;
  --accent-blue: #38bdf8;
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --danger: #ef4444;
  --success: #22c55e;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* BACKGROUND EFEK HITAM & BIRU */
.bg-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 20%, rgba(2, 132, 199, 0.15) 0%, rgba(0, 0, 0, 0.95) 80%);
  z-index: -1;
  pointer-events: none;
}

/* MAIN WRAPPER */
.main-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

/* HEADER TOKO */
.store-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 20px 24px;
  border-radius: 16px;
  backdrop-filter: blur(12px);
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.crest-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-blue), #000000);
  border: 1px solid var(--accent-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.brand-group h1 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand-group h1 span {
  color: var(--accent-blue);
}

.subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* CART BUTTON */
.cart-btn {
  background: rgba(2, 132, 199, 0.2);
  border: 1px solid var(--accent-blue);
  color: white;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.2s;
}

.cart-btn:hover {
  background: var(--primary-blue);
}

.cart-badge {
  background: var(--accent-blue);
  color: black;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 50%;
  font-weight: 800;
}

/* SECTION TITLE BAR */
.section-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background: rgba(15, 23, 42, 0.6);
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.section-title-bar h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: white;
}

.add-prod-btn {
  background: var(--primary-blue);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.add-prod-btn:hover {
  background: var(--primary-blue-hover);
}

/* KATALOG GRID (MIRIP CONTOH) */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 2px solid var(--primary-blue);
  border-radius: 16px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-blue);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.4);
}

.product-img-box {
  width: 100%;
  height: 170px;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent-blue);
  margin-bottom: 10px;
}

.buy-btn {
  background: var(--primary-blue);
  color: white;
  border: none;
  padding: 8px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: 0.2s;
}

.buy-btn:hover {
  background: var(--primary-blue-hover);
}

/* MODALS */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #0b0f19;
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.9);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-box.modal-large {
  max-width: 600px;
  max-height: 80vh;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.1rem;
  color: white;
}

.close-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-body-content {
  text-align: center;
}

.modal-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

.modal-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.modal-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-blue);
  margin-bottom: 10px;
}

.modal-box input {
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: 8px;
  color: white;
  outline: none;
  font-size: 0.9rem;
}

.modal-box input:focus {
  border-color: var(--accent-blue);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.cancel-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}

.save-btn {
  background: var(--primary-blue);
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.whatsapp-btn {
  background: #16a34a;
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.cart-items-list {
  overflow-y: auto;
  max-height: 40vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item-row {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-total {
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  margin-top: 10px;
}

/* FOOTER */
.footer {
  text-align: center;
  margin-top: 40px;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-bottom: 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}/* BACKGROUND VIDEO STYLING */
#bgVideo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -2;
  object-fit: cover;
  pointer-events: none; /* Biar tombol-tombol di atasnya tetap b */
  filter: brightness(0.9) contrast(1.0); /* Atur terang/gelap video (0.3 sampai 0.9) */
}