/* ============================================================
   QUID MARKET — CLEAN DARK MINECRAFT THEME
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@600;700;800;900&family=Rubik+Bubbles&display=swap');

/* ─── Bubble Typography ─── */
.bubble-text {
  font-family: 'Rubik Bubbles', 'Fredoka', cursive, sans-serif;
  letter-spacing: 0.04em;
  line-height: 1.15;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.95));
  display: inline-flex;
  align-items: baseline;
  transition: transform 0.2s ease;
}

.bubble-text:hover {
  transform: scale(1.02);
}

:root {
  --bg-page: #05070a;
  --bg-card: #090d15;
  --bg-card-hover: #0d121e;
  --border-card: #141926;
  --border-hover: #26334d;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --emerald: #10b981;
}

body {
  background-color: var(--bg-page);
  color: #e2e8f0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  margin: 0;
}

/* ── Authentic Minecraft Pixel Art ── */
.mc-pixel-art {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* ── Product Card Structure (Strict Column Hierarchy) ── */
.product-card {
  display: flex !important;
  flex-direction: column !important;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 14px 16px;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.product-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

/* Item Icon */
.card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #0d1322;
  border: 1px solid #1a233a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.card-icon-wrap img {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.5));
}

/* 1. Item Name at Top */
.card-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 3px 0;
}

/* 2. Dropdown: Price */
.card-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 800;
  color: var(--amber-light);
  margin: 0 0 6px 0;
}

/* 3. Dropdown: Full Description */
.card-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0 0 10px 0;
  flex-grow: 1;
}

/* 4. To the Right: Stock count */
.card-stock-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #141a2b;
}

.stock-tag {
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
  background: #0a1120;
  border: 1px solid #1a253d;
  padding: 2px 7px;
  border-radius: 6px;
}

.stock-tag.instant {
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
}

.stock-tag.low {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
}

/* 5. Dropdown: Quantity selector & Actions */
.card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qty-stepper-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stepper-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #111726;
  border: 1px solid #1f2a42;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.stepper-btn:hover {
  background: #f59e0b;
  color: #000;
  border-color: #f59e0b;
}

.stepper-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #090d16;
  border: 1px solid #1e273d;
  border-radius: 8px;
  height: 32px;
  padding: 0 8px;
}

.stepper-input-wrap input {
  width: 50px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 13px;
  text-align: center;
  outline: none;
}

.stepper-input-wrap .unit-m {
  font-family: 'JetBrains Mono', monospace;
  color: var(--amber);
  font-weight: 900;
  font-size: 13px;
  margin-left: 2px;
  user-select: none;
}

/* Add to Cart button (slightly smaller & sleeker) */
.add-cart-btn {
  width: 100%;
  padding: 8px 14px;
  border-radius: 9px;
  background: #f59e0b;
  color: #000000;
  font-weight: 800;
  font-size: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.add-cart-btn:hover {
  background: #fbbf24;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.4);
}

.add-cart-btn:active {
  transform: scale(0.98);
}

/* Filter Tab */
.filter-tab {
  padding: 7px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  background: #080b13;
  border: 1px solid #161c2d;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.filter-tab:hover {
  color: #fff;
  border-color: #26334f;
  background: #0e1422;
}

.filter-tab.active {
  color: #000;
  background: #f59e0b;
  border-color: #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.3);
}

/* ── Cart Sidebar & Overlay ── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: #07090f;
  border-left: 1px solid #161b2a;
  z-index: 70;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.85);
}

.cart-sidebar.open {
  transform: translateX(0);
}

.cart-header {
  padding: 18px 20px;
  border-bottom: 1px solid #141926;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0b0f1a;
  border: 1px solid #161c2e;
  border-radius: 12px;
  padding: 10px 14px;
}

/* ── Modals ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  transform: scale(0.96);
  transition: transform 0.2s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

/* ── Toasts ── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #090d16;
  border: 1px solid #1f273d;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.toast.success { border-color: #10b981; }
.toast.error { border-color: #ef4444; }

/* ─── Payment Method & Crypto Buttons ─── */
.payment-method-btn {
  border: 1.5px solid #1a2234;
  background: #090d16;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.payment-method-btn:hover {
  border-color: #2b3956;
  background: #0f1624;
}
.payment-method-btn.active {
  border-color: #f59e0b !important;
  background: rgba(245, 158, 11, 0.1) !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.15);
}

.crypto-coin-btn {
  border: 1.5px solid #1a2234;
  background: #090d16;
  transition: all 0.15s ease;
}
.crypto-coin-btn:hover {
  border-color: #334155;
  background: #0e1524;
}
.crypto-coin-btn.active {
  border-color: #f59e0b !important;
  background: #141b2c !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

