@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:ital,wght@0,400;0,700;0,800;0,900;1,700&display=swap');

:root {
  /* Warna Tema Crispy Network (Dark Mode) */
  --color-primary: #FFD700;
  --color-primary-hover: #e6c200;
  --color-dark: #0a0a0a; /* Background utama web */
  --color-brighter-bg: #1a1a1a; /* Background card/widget */
  --color-text-main: #ffffff;
  --color-text-secondary: #9ca3af;
  
  /* Background Banner Atas */
  --bg-image: url("https://template-assets.tebex.io/images/page-bg.jpg");
  
  /* Ukuran Sudut (Border Radius) yang lebih modern */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* Styling the body and header background effect... */
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-dark);
  color: var(--color-text-main);
}

/* Mengubah font semua judul menjadi Poppins yang tebal dan modern */
h1, h2, h3, h4, h5, h6, 
.widget-title, .product-title, .basket-title, 
.store-text h1, .store-text h2, .store-text h3, .store-text h4, .store-text h5, .store-text h6,
.store-category-tiered-header h1, .store-category-tiered-header h2, .store-category-tiered-header h3, 
.store-category-tiered-header h4, .store-category-tiered-header h5, .store-category-tiered-header h6 {
  font-family: 'Poppins', sans-serif !important;
  color: var(--color-text-main);
}

/* Membatalkan text-align center bawaan jika tidak diinginkan untuk judul halaman (opsional) */
.store-text h1, .store-text h2, .store-text h3, .store-text h4, .store-text h5, .store-text h6,
.widget-title, .widget .store-product,
.store-category-tiered-header h1, .store-category-tiered-header h2, .store-category-tiered-header h3, 
.store-category-tiered-header h4, .store-category-tiered-header h5, .store-category-tiered-header h6 {
  text-align: left; /* Diubah ke kiri agar lebih modern, kecuali di-override Tailwind */
}

/* Latar belakang atas (Banner) */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  max-height: 450px;
  z-index: -1;
  background: var(--bg-image) center center/cover no-repeat;
  /* Membuat gradient dari gelap ke transparan agar menyatu dengan background hitam website */
  mask-image: linear-gradient(to bottom, rgba(10, 10, 10, 0.9) 10%, rgba(10, 10, 10, 0));
  -webkit-mask-image: linear-gradient(to bottom, rgba(10, 10, 10, 0.9) 10%, rgba(10, 10, 10, 0));
  pointer-events: none;
}

/* Styling buttons and interactive elements... */
.btn-primary,
.btn-secondary,
.btn-tertiary {
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus,
.btn-secondary:hover, .btn-secondary:focus {
  /* Bayangan kuning saat tombol disorot */
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.25) !important;
  transform: translateY(-2px);
}

.quantity-field {
  border-radius: var(--radius-md);
}

.site-header-inner .info .image {
  border-radius: var(--radius-md);
}

.site-sale-banner {
  border-radius: var(--radius-lg);
  background: var(--color-primary);
  color: var(--color-dark);
  font-weight: 800;
  border: 2px solid var(--color-dark);
}

/* Styling categories, widgets, and main content areas... */
.site-home-categories .category {
  border-radius: var(--radius-lg);
  padding: 24px var(--widget-padding);
  background: var(--color-brighter-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease-in-out;
}
.site-home-categories .category:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
}

.category-description,
.store-text,
.store-products-list .store-product,
.store-products-images .store-product,
.store-product-full,
.widget,
.store-category-tiered,
.no-products {
  border-radius: var(--radius-lg);
  background: var(--color-brighter-bg);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.store-products-images .store-product {
  text-align: center;
}

.no-products {
  color: var(--color-text-secondary);
  padding: 2rem;
  text-align: center;
  font-weight: 500;
}

.store-product .quantity-field {
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
}
.store-product .quantity-field input[type=number] {
  border: none;
  background: transparent;
  color: var(--color-text-main);
}

/* Navigation */
@media (width > 960px) {
  .navigation-horizontal > ul {
    border-radius: var(--radius-md);
  }
}
.navigation-horizontal .has-children > ul {
  border-radius: var(--radius-md);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--color-brighter-bg);
}

@media (width <= 960px) {
  .widget.site-navigation {
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    border: none;
  }
}

/* Widget Specifics */
.widget-gift-card .gift-card-input {
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-main);
}

.widget-top-donator .avatar {
  border-radius: 50%;
  border: 4px solid var(--color-primary);
}

.widget-community-goal .progress,
.widget-goal .progress {
  border-radius: 9999px; /* Fully rounded */
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.widget-community-goal .progress-bar,
.widget-goal .progress-bar {
  border-radius: 9999px;
  background-color: var(--color-primary);
}

/* Popups & Basket */
.popup-content {
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--color-brighter-bg);
  color: var(--color-text-main);
}

.popup-close {
  border-radius: 0 var(--radius-lg) 0 var(--radius-lg);
  background: var(--color-dark);
  color: var(--color-text-main);
}
.popup-close:hover {
  background: var(--color-primary);
  color: var(--color-dark);
}

.basket-popup-content,
.basket-popup-content .popup-close {
  border-radius: 0;
}

.basket-items {
  padding: var(--widget-padding) calc(var(--content-padding) - var(--widget-padding));
}

.basket-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
}
.basket-item:hover {
  border-color: var(--color-primary);
}
.basket-item .quantity {
  border-radius: var(--radius-sm);
}

/* Toast Notifications */
.toast {
  border-radius: var(--radius-md);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  font-weight: 600;
  background: var(--color-brighter-bg);
  color: var(--color-text-main);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast-close {
  border-radius: var(--radius-sm);
}

/* Store Products Tiered */
.store-product-tiered {
  border-radius: var(--radius-md);
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Media Slider */
.media-slider .slider,
.media-slider .thumb {
  border-radius: var(--radius-md);
}
.media-slider .open-lightbox {
  border-radius: var(--radius-sm);
  background: rgba(10, 10, 10, 0.7);
  color: var(--color-primary);
}

.popup.popup-media-slider .thumb {
  border-radius: var(--radius-md);
}
.popup.popup-media-slider .popup-close {
  border-radius: var(--radius-md);
}