/* ===========================
   RORA STORE - KAWAII STYLE
   =========================== */

:root {
  --pink-main: #f472b6;
  --pink-deep: #d63384;
  --pink-light: #fce4ec;
  --blue-soft: #bae6fd;
  --blue-deep: #7dd3fc;
  --cream: #fff9f0;
  --purple-soft: #e9d5ff;
  --green-soft: #bbf7d0;
  --shadow-pink: 0 4px 20px rgba(244, 114, 182, 0.25);
  --shadow-card: 0 2px 16px rgba(244, 114, 182, 0.15);
  --radius-card: 20px;

  /* Theme tokens — Light */
  --bg-page: linear-gradient(135deg, #fdf2f8 0%, #eff6ff 40%, #f0fdf4 100%);
  --bg-card: #ffffff;
  --bg-card-logo: linear-gradient(135deg, #fdf2f8, #eff6ff);
  --bg-header: rgba(255,255,255,0.8);
  --bg-search: rgba(255,255,255,0.9);
  --bg-filter-tab: #ffffff;
  --bg-cart-item: #fdf2f8;
  --bg-modal: #ffffff;
  --bg-option-pill: #ffffff;
  --bg-cart-drawer: #ffffff;
  --border-card: #fce7f3;
  --border-tab: #fce7f3;
  --border-modal: #fce4ec;
  --text-primary: #374151;
  --text-secondary: #9ca3af;
  --text-tab: #9ca3af;
  --text-search: #374151;
  --text-logo-sub: #f9a8d4;
  --blob-opacity: 0.18;
}

[data-theme="dark"] {
  --bg-page: linear-gradient(135deg, #1a0a14 0%, #0d1520 40%, #091510 100%);
  --bg-card: #1e1025;
  --bg-card-logo: linear-gradient(135deg, #2a1030, #0f1e35);
  --bg-header: rgba(20,8,28,0.85);
  --bg-search: rgba(30,16,40,0.95);
  --bg-filter-tab: #1e1025;
  --bg-cart-item: #2a1030;
  --bg-modal: #1e1025;
  --bg-option-pill: #2a1030;
  --bg-cart-drawer: #1a0a20;
  --border-card: #4a1a3a;
  --border-tab: #4a1a3a;
  --border-modal: #4a1a3a;
  --text-primary: #f3e8ff;
  --text-secondary: #a78bca;
  --text-tab: #9d7ab8;
  --text-search: #e9d5ff;
  --text-logo-sub: #c084fc;
  --blob-opacity: 0.08;
}

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

body {
  font-family: 'Quicksand', sans-serif;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

/* BACKGROUND */
.bg-gradient {
  background: var(--bg-page);
  min-height: 100vh;
  transition: background 0.4s ease;
}

/* BLOBS */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  opacity: var(--blob-opacity);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.4s ease;
}
.blob-1 { width: 400px; height: 400px; background: #f9a8d4; top: -100px; left: -100px; }
.blob-2 { width: 350px; height: 350px; background: #93c5fd; bottom: 100px; right: -80px; }
.blob-3 { width: 250px; height: 250px; background: #a7f3d0; top: 50%; left: 40%; }

/* GLASS HEADER */
.glass-header {
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(244,114,182,0.1);
  box-shadow: 0 2px 20px rgba(244,114,182,0.1);
  transition: background 0.4s ease;
}

.logo-text {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  background: linear-gradient(135deg, #f472b6, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-sub {
  color: var(--text-logo-sub);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 10px;
  transition: color 0.4s ease;
}

/* CART BUTTON */
.cart-button {
  background: linear-gradient(135deg, #f9a8d4, #c084fc);
  color: white;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  box-shadow: var(--shadow-pink);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cart-button:hover { transform: scale(1.05); box-shadow: 0 6px 25px rgba(244,114,182,0.4); }
.cart-button:active { transform: scale(0.97); }

.cart-badge {
  background: #ff4d4f;
  color: white;
  font-family: 'Nunito', sans-serif;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* HERO */
.hero-section { position: relative; z-index: 1; }

.floating-emoji {
  font-size: 2rem;
  animation: float 3s ease-in-out infinite;
  display: inline-block;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 6vw, 3rem);
  color: var(--text-primary);
  line-height: 1.1;
  transition: color 0.4s ease;
}
.hero-title-accent {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 6vw, 3rem);
  background: linear-gradient(135deg, #f472b6, #818cf8, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.hero-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.4s ease;
}

.badge-pill {
  background: rgba(255,255,255,0.8);
  border: 1.5px solid #fce7f3;
  color: #9d174d;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
[data-theme="dark"] .badge-pill {
  background: rgba(40,10,55,0.8);
  border-color: #6b21a8;
  color: #e9d5ff;
}

/* SEARCH */
.search-bar {
  background: var(--bg-search);
  border: 2px solid var(--border-card);
  box-shadow: var(--shadow-card);
  transition: background 0.4s ease, border-color 0.4s ease;
}
.search-bar input {
  color: var(--text-search);
  transition: color 0.4s ease;
}
[data-theme="dark"] .search-bar input::placeholder { color: #6b4a8a; }

/* FILTER TABS */
.filter-tab {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid var(--border-tab);
  background: var(--bg-filter-tab);
  color: var(--text-tab);
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.filter-tab:hover { border-color: #f9a8d4; color: #d63384; }
.filter-tab.active {
  background: linear-gradient(135deg, #f9a8d4, #c084fc);
  border-color: transparent;
  color: white;
}

/* SCROLLBAR HIDE */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* PRODUCT CARDS */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 2px solid var(--border-card);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(249,168,212,0.08), rgba(192,132,252,0.08));
  opacity: 0;
  transition: opacity 0.2s;
}
.product-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 30px rgba(244,114,182,0.25);
  border-color: #f9a8d4;
}
.product-card:hover::before { opacity: 1; }
.product-card:active { transform: scale(0.97); }

.product-card.sold-out {
  opacity: 0.55;
  cursor: not-allowed;
}
.product-card.sold-out:hover { transform: none; box-shadow: var(--shadow-card); }

.card-logo-wrap {
  background: var(--bg-card-logo);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;        /* fixed height — semua sama */
  transition: background 0.4s ease;
  overflow: hidden;
}
.card-logo-wrap img {
  width: 80px;         /* fixed width */
  height: 58px;        /* fixed height */
  object-fit: contain; /* jaga rasio, tidak dipotong */
  display: block;
}
.card-logo-wrap .logo-emoji {
  font-size: 2.2rem;
  line-height: 1;
}

.card-body { padding: 10px 12px 12px; flex: 1; display: flex; flex-direction: column; }

.card-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 3px;
  transition: color 0.4s ease;
}

.card-price {
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--text-secondary);
  transition: color 0.4s ease;
}
.card-price span {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 0.88rem;
  color: #d63384;
}

.stock-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  margin-top: 6px;
  letter-spacing: 0.02em;
}
.stock-available { background: #dcfce7; color: #15803d; }
.stock-low { background: #fef3c7; color: #b45309; }
.stock-out { background: #fee2e2; color: #b91c1c; }

/* LOADING SPINNER */
.loading-spinner {
  width: 40px; height: 40px;
  border: 4px solid #fce7f3;
  border-top-color: #f472b6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  animation: fadeIn 0.2s ease;
}
@media (min-width: 640px) {
  .modal-overlay { align-items: center; padding: 16px; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  background: var(--bg-modal);
  border-radius: 28px 28px 0 0;
  padding: 24px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 -10px 50px rgba(0,0,0,0.15);
  transition: background 0.4s ease;
}
@media (min-width: 640px) {
  .modal-card { border-radius: 28px; animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
}
@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes popIn { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal-close-btn {
  position: absolute;
  top: 16px; right: 16px;
  background: #fce4ec;
  color: #d63384;
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: bold;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.modal-close-btn:hover { background: #f9a8d4; }

/* MODAL PRODUCT DETAIL */
.modal-product-logo {
  background: var(--bg-card-logo);
  border-radius: 16px;
  padding: 20px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 3rem;
  min-height: 100px;
  transition: background 0.4s ease;
}
.modal-product-logo img {
  width: 120px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.modal-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--text-primary);
  transition: color 0.4s ease;
}

/* OPTIONS */
.option-group { margin-bottom: 16px; }
.option-label {
  font-weight: 800;
  font-size: 0.8rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: block;
}
.option-pills { display: flex; flex-wrap: wrap; gap: 8px; }

.option-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid var(--border-tab);
  background: var(--bg-option-pill);
  color: var(--text-secondary);
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}
.option-pill:hover { border-color: #f9a8d4; color: #d63384; }
.option-pill.selected {
  background: linear-gradient(135deg, #f9a8d4, #c084fc);
  border-color: transparent;
  color: white;
}
.option-pill:disabled, .option-pill.unavailable {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

.price-display {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  background: linear-gradient(135deg, #f472b6, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  padding: 12px 0;
}

.add-to-cart-btn {
  background: linear-gradient(135deg, #f472b6, #c084fc);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 16px;
  width: 100%;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-pink);
  letter-spacing: 0.02em;
}
.add-to-cart-btn:hover { transform: scale(1.02); box-shadow: 0 6px 25px rgba(244,114,182,0.4); }
.add-to-cart-btn:active { transform: scale(0.97); }
.add-to-cart-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* CART DRAWER */
.cart-drawer {
  position: fixed;
  bottom: 0; right: 0; left: 0;
  background: var(--bg-cart-drawer);
  border-radius: 28px 28px 0 0;
  padding: 24px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 101;
  transition: background 0.4s ease;
}
@media (min-width: 640px) {
  .cart-drawer {
    left: auto;
    width: 400px;
    top: 0; bottom: 0;
    border-radius: 28px 0 0 28px;
    animation: slideRight 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
}
@keyframes slideRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.cart-item {
  background: var(--bg-cart-item);
  border: 1.5px solid var(--border-modal);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.2s ease;
  transition: background 0.4s ease;
}
.cart-item-logo {
  font-size: 1.4rem;
  width: 36px;
  text-align: center;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item-logo img {
  width: 32px; height: 32px;
  object-fit: contain;
  border-radius: 6px;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 800; font-size: 0.82rem; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.4s ease; }
.cart-item-sub { font-size: 0.72rem; color: var(--text-secondary); font-weight: 600; transition: color 0.4s ease; }
.cart-item-price { font-family: 'Nunito', sans-serif; font-weight: 900; color: #d63384; font-size: 0.88rem; }

.qty-control { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.qty-btn {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: none;
  background: white;
  border: 1.5px solid #f9a8d4;
  color: #d63384;
  font-weight: bold;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.qty-btn:hover { background: #f9a8d4; color: white; }
.qty-num { font-weight: 800; font-size: 0.85rem; color: #374151; min-width: 16px; text-align: center; }
.remove-btn { color: #fca5a5; background: none; border: none; cursor: pointer; font-size: 1rem; transition: color 0.15s; flex-shrink: 0; }
.remove-btn:hover { color: #ef4444; }

/* CHECKOUT */
.checkout-btn {
  background: linear-gradient(135deg, #25d366, #128c7e);
  border: none;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
}
.checkout-btn:hover { transform: scale(1.02); box-shadow: 0 6px 25px rgba(37,211,102,0.45); }
.checkout-btn:active { transform: scale(0.97); }

.form-label {
  display: block;
  font-weight: 800;
  font-size: 0.78rem;
  color: #9d174d;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
[data-theme="dark"] .form-label { color: #f0abfc; }

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border-modal);
  border-radius: 14px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg-option-pill);
  outline: none;
  transition: border-color 0.2s, background 0.4s ease, color 0.4s ease;
}
.form-input:focus { border-color: #f9a8d4; box-shadow: 0 0 0 3px rgba(249,168,212,0.2); }

/* TOAST */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f472b6, #c084fc);
  color: white;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.88rem;
  z-index: 200;
  box-shadow: var(--shadow-pink);
  white-space: nowrap;
  animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toast.hiding { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(-50%) translateY(20px); } }

/* QUANTITY SELECTOR IN MODAL */
.qty-selector { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 12px 0; }
.qty-selector .qty-btn-lg {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid #f9a8d4;
  background: var(--bg-option-pill);
  color: #d63384;
  font-weight: 900;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s, background 0.4s ease;
}
.qty-selector .qty-btn-lg:hover { background: #f9a8d4; color: white; }
.qty-selector .qty-num-lg {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--text-primary);
  min-width: 32px;
  text-align: center;
  transition: color 0.4s ease;
}

/* SHIMMER SKELETON */
.skeleton {
  background: linear-gradient(90deg, #fdf2f8 25%, #fce7f3 50%, #fdf2f8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 14px;
}
[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, #1e1025 25%, #2a1030 50%, #1e1025 75%);
  background-size: 200% 100%;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* THEME TOGGLE BUTTON */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(244,114,182,0.3);
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s;
  flex-shrink: 0;
  line-height: 1;
}
.theme-toggle:hover {
  background: rgba(249,168,212,0.15);
  border-color: #f9a8d4;
  transform: rotate(20deg) scale(1.1);
}

/* DARK MODE EXTRAS */
[data-theme="dark"] .order-summary { background: #2a1030 !important; }
[data-theme="dark"] .qty-btn { background: var(--bg-option-pill); }

/* OPTION LABEL */
.option-label {
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: block;
  transition: color 0.4s ease;
}

/* ─── ADD-ON / EXTRAS ─── */
.addon-group { margin-top: 4px; }

.addon-list { display: flex; flex-direction: column; gap: 8px; }

.addon-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 2px solid var(--border-tab);
  background: var(--bg-option-pill);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.addon-item:hover {
  border-color: #f9a8d4;
  background: rgba(249,168,212,0.08);
}
.addon-item:has(.addon-checkbox:checked) {
  border-color: #c084fc;
  background: linear-gradient(135deg, rgba(249,168,212,0.12), rgba(192,132,252,0.12));
}

.addon-checkbox { display: none; }

.addon-check-icon {
  width: 20px; height: 20px;
  border-radius: 6px;
  border: 2px solid #e5e7eb;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  color: transparent;
  flex-shrink: 0;
  transition: all 0.15s;
  background: white;
}
.addon-item:has(.addon-checkbox:checked) .addon-check-icon {
  background: linear-gradient(135deg, #f9a8d4, #c084fc);
  border-color: transparent;
  color: white;
}

.addon-label {
  flex: 1;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-primary);
  transition: color 0.4s ease;
}

.addon-price {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 0.82rem;
  color: #c084fc;
  flex-shrink: 0;
}

.cart-item-addons {
  font-size: 0.68rem;
  font-weight: 700;
  color: #c084fc;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* FOOTER */
.site-footer {
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-card);
  padding: 22px 16px 28px;
  text-align: center;
  margin-top: 8px;
  transition: background 0.4s ease;
}
.site-footer-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.site-footer p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
  line-height: 1.8;
  transition: color 0.4s ease;
}
.site-footer a {
  color: #d63384;
  font-weight: 800;
  text-decoration: none;
  transition: opacity 0.2s;
}
.site-footer a:hover { opacity: 0.75; text-decoration: underline; }
.site-footer .footer-divider {
  width: 40px; height: 2px;
  background: linear-gradient(135deg, #f9a8d4, #c084fc);
  border-radius: 999px;
  margin: 6px auto;
}

/* ─── RESPONSIVE FIXES ─── */

/* Base mobile: 2 columns, no overflow */
#product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 480px) {
  #product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  #product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Modal full-width on tiny phones */
@media (max-width: 480px) {
  .modal-card { padding: 20px 16px; border-radius: 24px 24px 0 0; }
  .cart-drawer { padding: 20px 16px; }
  .hero-section { padding-top: 20px; padding-bottom: 8px; }
  .badge-pill { font-size: 0.68rem; padding: 3px 9px; }
  .card-logo-wrap { min-height: 68px; padding: 12px; }
  .card-body { padding: 8px 10px 10px; }
  .card-name { font-size: 0.78rem; }
  .card-price { font-size: 0.68rem; }
  .card-price span { font-size: 0.82rem; }
}

/* Cart drawer desktop fix */
@media (min-width: 640px) {
  #cart-overlay { justify-content: flex-end; }
}

/* Prevent horizontal scroll */
html, body { max-width: 100%; overflow-x: hidden; }
/* ─── LOGO PLACEHOLDER (tanpa emoji) ─── */
.card-logo-placeholder {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f9a8d4, #c084fc);
  color: white;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  text-transform: uppercase;
  flex-shrink: 0;
}

.modal-logo-placeholder {
  width: 72px; height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f9a8d4, #c084fc);
  color: white;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
  text-transform: uppercase;
}

.cart-logo-placeholder {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f9a8d4, #c084fc);
  color: white;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ─── DURATION SPLIT LAYOUT (Durasi + User 1U/2U) ─── */
/* ─── SUBTYPE PILLS (e.g. Standart / Ultimate / iOS / Android) ─── */
/* Uses same .option-pill styling — no extra CSS needed */
/* Label above subtype pills uses .option-label with text "Paket" */

/* ─── DURATION GROUP (Harian / Bulanan / Tahunan) ─── */
.duration-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* .duration-group + .duration-group {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-card);
} */

.duration-group-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  opacity: 0.7;
  transition: color 0.4s ease;
}

.duration-split-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-count-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.user-count-label {
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: color 0.4s ease;
}

.user-count-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.user-pill {
  padding: 5px 16px;
  border-radius: 999px;
  border: 2px solid var(--border-tab);
  background: var(--bg-option-pill);
  color: var(--text-secondary);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.03em;
}
.user-pill:hover { border-color: #f9a8d4; color: #d63384; }
.user-pill.selected {
  background: linear-gradient(135deg, #f9a8d4, #c084fc);
  border-color: transparent;
  color: white;
}
.user-pill.unavailable {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ══════════════════════════════════
   TELEGRAM TESTIMONI FLOATING BUTTON
   ══════════════════════════════════ */

/* Wrapper — posisi fixed, tidak ganggu layout */
#testi-fab-wrap {
  position: fixed;
  bottom: 24px;
  left: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

/* ── FAB Button ── */
.testi-fab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #2AABEE, #1a8ac4);
  color: white;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(42,171,238,0.45);
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.2s ease;
  position: relative;
  white-space: nowrap;
}
.testi-fab:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 8px 28px rgba(42,171,238,0.55);
}
.testi-fab:active { transform: scale(0.96); }

/* Label teks di dalam FAB */
.testi-fab-label {
  letter-spacing: 0.01em;
}

/* Ping animation — titik merah notif */
.testi-fab-ping {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ff4d6d;
  border: 2px solid white;
  animation: testi-ping 2s ease-in-out infinite;
}
@keyframes testi-ping {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.6; }
}

/* ── Popup card ── */
.testi-popup {
  background: var(--bg-modal, #ffffff);
  border: 1.5px solid var(--border-card, #fce7f3);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  width: 270px;
  overflow: hidden;

  /* hidden state */
  opacity: 0;
  transform: translateY(12px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.25s ease,
              transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.testi-popup.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Popup header strip */
.testi-popup-header {
  background: linear-gradient(135deg, #2AABEE, #1a8ac4);
  padding: 12px 12px 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.testi-popup-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.testi-popup-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.testi-popup-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.testi-popup-sub {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.82);
  font-weight: 600;
}
.testi-popup-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  border-radius: 50%;
  width: 24px; height: 24px;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.testi-popup-close:hover { background: rgba(255,255,255,0.35); }

/* Popup body */
.testi-popup-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.testi-popup-desc {
  font-size: 0.78rem;
  color: var(--text-secondary, #9ca3af);
  font-weight: 600;
  line-height: 1.5;
  transition: color 0.4s ease;
}
.testi-popup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2AABEE, #1a8ac4);
  color: white;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 3px 12px rgba(42,171,238,0.35);
}
.testi-popup-btn:hover { opacity: 0.88; transform: scale(1.02); }

/* ── Mobile adjustments ── */
@media (max-width: 400px) {
  #testi-fab-wrap { bottom: 18px; left: 14px; }
  .testi-popup { width: calc(100vw - 28px); max-width: 270px; }
  .testi-fab-label { display: none; }
  .testi-fab { padding: 13px; border-radius: 50%; }
}

/* ══════════════════════════════
   PAYMENT METHOD SELECTOR
   ══════════════════════════════ */

.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 2px;
}

.payment-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 6px;
  border-radius: 14px;
  border: 2px solid var(--border-card);
  background: var(--bg-option-pill);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
}
.payment-opt:hover {
  border-color: #f9a8d4;
  transform: translateY(-2px);
}
.payment-opt.selected {
  border-color: #f472b6;
  background: linear-gradient(135deg, rgba(249,168,212,0.12), rgba(192,132,252,0.12));
  box-shadow: 0 0 0 3px rgba(244,114,182,0.2);
}

/* Checkmark saat selected */
.payment-opt.selected::after {
  content: '✓';
  position: absolute;
  top: -6px; right: -6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f472b6, #c084fc);
  color: white;
  font-size: 0.6rem;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  line-height: 18px;
  text-align: center;
}

.payment-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.payment-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.68rem;
  color: var(--text-primary);
  transition: color 0.4s ease;
  white-space: nowrap;
}

.payment-error {
  font-size: 0.72rem;
  font-weight: 700;
  color: #f87171;
  margin-top: 4px;
  padding: 6px 10px;
  background: #fff1f2;
  border-radius: 8px;
  border: 1px solid #fecdd3;
}
[data-theme="dark"] .payment-error {
  background: rgba(248,113,113,0.1);
  border-color: rgba(248,113,113,0.3);
}