/* ========================================================================
   VOUCHERS CATEGORY — PS STORE GIFT CARD REDESIGN (LIGHT THEME)
   ======================================================================== */

/* === 1. PAGE WRAPPER === */
.vc-page {
  background: var(--bg, #1a0533);
  min-height: 100vh;
  padding: 24px 0 40px;
}

.vc-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
}

.vc-main {
  min-width: 0;
}

.vc-sidebar {
  position: sticky;
  top: 100px;
}

/* === 2. HEADER === */
.vc-header {
  margin-bottom: 20px;
}

.vc-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.vc-brand-icon {
  font-size: 22px;
  color: var(--purple, #7c3aed);
}

.vc-brand-text {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--purple, #7c3aed);
  letter-spacing: -0.01em;
}

.vc-title {
  font-family: 'Nunito', sans-serif;
  font-size: 30px;
  font-weight: 900;
  color: #e6edf3;
  margin: 0 0 4px;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.vc-subtitle {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  color: var(--text-2, rgba(255,255,255,0.55));
  font-weight: 600;
  margin: 0;
}

/* === 3. REGION PILLS === */
.vc-pills {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 20px;
  padding-bottom: 2px;
}

.vc-pills::-webkit-scrollbar { display: none; }

.vc-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 50px;
  background: var(--card, rgba(255,255,255,0.04));
  border: 1px solid var(--border, rgba(255,255,255,0.07));
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2, rgba(255,255,255,0.55));
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  white-space: nowrap;
  flex: 0 0 auto;
}

.vc-pill:hover {
  border-color: var(--border-hover, rgba(0,0,0,0.15));
  color: #e6edf3;
}

.vc-pill.active {
  border-color: var(--purple, #7c3aed);
  color: #7c3aed;
  background: rgba(124,58,237,0.08);
}

.vc-pill-flag {
  font-size: 16px;
  line-height: 1;
}

/* === 4. PRODUCT GRID === */
.vc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

/* === 5. CARD WRAPPER === */
.vc-card-wrap {
  cursor: pointer;
}

/* === 6. GIFT CARD === */
.vc-card {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  color: #fff;
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  background: var(--card-gradient, linear-gradient(135deg, #003791 0%, #001d4c 100%));
}

@media (hover: hover) {
  .vc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  }
}

.vc-card.selected {
  box-shadow: 0 0 0 3px var(--purple, #7c3aed), 0 12px 32px rgba(124,58,237,0.25);
}

.vc-card.oos {
  opacity: 0.35;
  cursor: not-allowed;
  filter: grayscale(0.3);
  pointer-events: none;
}

@media (hover: hover) {
  .vc-card.oos:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  }
}

/* --- Card Top Row --- */
.vc-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.vc-card-badge {
  background: #fff;
  color: #003087;
  font-family: 'Nunito', sans-serif;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 3px 7px;
  border-radius: 4px;
  line-height: 1;
  white-space: nowrap;
}

.vc-card-top-right {
  text-align: right;
}

.vc-card-nominal {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.vc-card-curr {
  font-size: 14px;
  margin-left: 2px;
  opacity: 0.85;
  font-weight: 700;
}

.vc-card-flag {
  font-size: 14px;
  margin-top: 2px;
  display: block;
  text-align: right;
  line-height: 1;
}

/* --- Card Center (Logo) --- */
.vc-card-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 0;
}

.vc-card-logo {
  font-size: 64px;
  color: #fff;
  opacity: 0.9;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.20));
}

/* --- Card Bottom --- */
.vc-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vc-card-store {
  display: flex;
  align-items: center;
  gap: 7px;
}

.vc-card-bag {
  width: 22px;
  height: 22px;
  background: rgba(255,255,255,0.18);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vc-card-bag svg {
  width: 13px;
  height: 13px;
}

.vc-card-store-text {
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.vc-card-key {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 7px;
  padding: 6px;
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,0.80);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* === 7. INFO BELOW CARD === */
.vc-card-meta {
  padding: 8px 2px 0;
}

.vc-card-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 800;
  color: #e6edf3;
}

.vc-card-stock {
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
}

.vc-card-stock.in {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
}

.vc-card-stock.out {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
}

/* === 8. CHECKOUT SIDEBAR === */
.vc-checkout {
  background: var(--card, rgba(255,255,255,0.04));
  border-radius: 22px;
  padding: 24px;
  border: 1px solid var(--border, rgba(255,255,255,0.07));
}

/* --- Placeholder State --- */
.vc-co-placeholder {
  text-align: center;
  padding: 40px 0;
}

.vc-co-placeholder-icon {
  font-size: 44px;
  margin-bottom: 14px;
  opacity: 0.15;
}

.vc-co-placeholder-text {
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-3, rgba(255,255,255,0.28));
}

.vc-co-placeholder-sub {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  color: rgba(230,237,243,0.25);
  margin-top: 4px;
}

/* --- Active State --- */
.vc-co-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.vc-co-flag {
  font-size: 32px;
  line-height: 1;
}

.vc-co-head-text {
  display: flex;
  flex-direction: column;
}

.vc-co-store {
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #e6edf3;
  line-height: 1.2;
}

.vc-co-type {
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  color: var(--text-2, rgba(255,255,255,0.55));
  font-weight: 600;
}

/* Detail Rows */
.vc-co-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.vc-co-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vc-co-label {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  color: var(--text-3, rgba(255,255,255,0.28));
  font-weight: 600;
}

.vc-co-value {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #e6edf3;
}

.vc-co-divider {
  height: 1px;
  background: var(--border, rgba(255,255,255,0.07));
  margin-bottom: 16px;
}

/* Total */
.vc-co-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.vc-co-total-label {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-2, rgba(255,255,255,0.55));
}

.vc-co-total-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 800;
  color: #e6edf3;
  line-height: 1;
}

/* Savings Badge */
.vc-co-savings {
  background: var(--green-bg, rgba(52,211,153,0.1));
  color: var(--green, #34d399);
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 16px;
}

/* Buy Button */
.vc-co-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--gradient, linear-gradient(135deg, #7c3aed, #ec4899));
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 800;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  text-align: center;
  letter-spacing: -0.01em;
  outline: none;
  box-shadow: 0 4px 16px rgba(124,58,237,0.3);
}

.vc-co-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(124,58,237,0.4);
}

.vc-co-btn:active {
  transform: scale(0.98);
}

.vc-co-btn:disabled {
  background: var(--hover-overlay);
  color: var(--text-3);
  cursor: not-allowed;
  box-shadow: none;
}

.vc-co-btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Note */
.vc-co-note {
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  color: var(--text-3, rgba(255,255,255,0.28));
  text-align: center;
  margin-top: 14px;
  margin-bottom: 16px;
}

/* Payment Methods */
.vc-co-methods {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border, rgba(255,255,255,0.07));
}

.vc-co-method-img {
  height: 18px;
  opacity: 0.30;
  transition: opacity 0.2s;
}

.vc-co-method-img:hover { opacity: 0.6; }

.vc-co-method-icon {
  font-size: 22px;
  color: rgba(230,237,243,0.2);
  transition: color 0.2s;
}

.vc-co-method-icon:hover { color: rgba(230,237,243,0.6); }

.vc-co-method-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: rgba(230,237,243,0.2);
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.vc-co-method-text:hover { color: rgba(230,237,243,0.6); }

/* === 9. RESPONSIVE === */
@media (max-width: 900px) {
  .vc-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Sidebar → fixed bottom sheet (hidden by default) */
  .vc-sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 20px 20px 0 0;
    -webkit-overflow-scrolling: touch;
  }

  .vc-sidebar.sheet-open {
    transform: translateY(0);
  }

  /* Handle bar — visible on mobile */
  .vc-sheet-handle {
    display: flex;
    justify-content: center;
    padding: 12px 0 4px;
    cursor: pointer;
  }
  .vc-sheet-handle span {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
  }

  .vc-checkout {
    border-radius: 20px 20px 0 0;
  }
}

@media (max-width: 768px) {
  .vc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .vc-page {
    padding-top: 68px;
  }

  .vc-layout {
    padding: 0 16px;
  }

  .vc-title {
    font-size: 24px;
  }

  .vc-subtitle {
    font-size: 12px;
  }

  .vc-pills {
    gap: 6px;
    margin-bottom: 16px;
  }

  .vc-pill {
    padding: 7px 12px;
    font-size: 12px;
  }

  .vc-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 10px;
  }

  .vc-card {
    padding: 12px;
    border-radius: 14px;
  }

  .vc-card-badge {
    font-size: 7px;
    padding: 2px 5px;
    letter-spacing: 1px;
  }

  .vc-card-nominal {
    font-size: 20px;
  }

  .vc-card-curr {
    font-size: 12px;
  }

  .vc-card-flag {
    font-size: 12px;
  }

  .vc-card-logo {
    font-size: 48px;
  }

  .vc-card-store-text {
    font-size: 11px;
  }

  .vc-card-bag {
    width: 18px;
    height: 18px;
  }

  .vc-card-bag svg {
    width: 11px;
    height: 11px;
  }

  .vc-card-key {
    font-size: 7px;
    padding: 5px;
    letter-spacing: 1.5px;
    border-radius: 5px;
  }

  .vc-card-meta {
    padding: 6px 2px 0;
  }

  .vc-card-price {
    font-size: 15px;
  }

  .vc-card-stock {
    font-size: 10px;
    padding: 2px 6px;
  }

  .vc-checkout {
    padding: 20px;
  }

  .vc-co-total-price {
    font-size: 24px;
  }

  .vc-co-btn {
    padding: 13px;
    font-size: 14px;
  }
}

/* === 10. MOBILE BOTTOM SHEET === */

/* Sheet handle (hidden on desktop) */
.vc-sheet-handle {
  display: none;
}

/* Backdrop overlay */
.vc-sheet-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
}
.vc-sheet-backdrop.active {
  display: block;
}

/* === 11. CATEGORY-SPECIFIC CARD GRADIENTS === */
.vc-page[data-cat="vouchers"] .vc-card { --card-gradient: linear-gradient(135deg, #003791 0%, #001d4c 100%); }
.vc-page[data-cat="steam"]    .vc-card { --card-gradient: linear-gradient(135deg, #1b2838 0%, #2a475e 100%); }
.vc-page[data-cat="xbox"]     .vc-card { --card-gradient: linear-gradient(135deg, #107c10 0%, #0e6b0e 100%); }
.vc-page[data-cat="ea-play"]  .vc-card { --card-gradient: linear-gradient(135deg, #1a1a2e 0%, #ff4444 100%); }
.vc-page[data-cat="apple"]    .vc-card { --card-gradient: linear-gradient(135deg, #1d1d1f 0%, #333333 100%); }
.vc-page[data-cat="valorant"] .vc-card { --card-gradient: linear-gradient(135deg, #0f1923 0%, #ff4655 100%); }
.vc-page[data-cat="roblox"]   .vc-card { --card-gradient: linear-gradient(135deg, #1a1a2e 0%, #ff0000 100%); }
