/*
 * Enter any custom CSS here.
 * This file will not be overwritten by theme updates.
*/

/* ═══════════════════════════════════════════════════
   GLOBAL PRODUCT CARD COLUMN — 3 per row on mobile
   ═══════════════════════════════════════════════════ */
.nexus-product-col {
  /* inside carousel: flex item sizing handled by .nexus-carousel-item */
  width: 100%;
}

/* ═══════════════════════════════════════════════════
   CAROUSEL — 3 cards visible on phone, no bleed gap
   ═══════════════════════════════════════════════════ */
@media (max-width: 575px) {
  .nexus-carousel-item {
    /* Show exactly 3 per row: (100% - 2 gaps of 8px) / 3 */
    width: calc((100vw - 2.5rem - 16px) / 3) !important;
  }
  .nexus-carousel-track {
    gap: 8px !important;
  }
  /* Tighten product card content on small screens */
  .product-image { height: 100px !important; }
  .product-content { padding: 8px !important; }
  .product-content .title { font-size: 0.75rem !important; margin-bottom: 6px !important; }
  .product-content .price { font-size: 0.9rem !important; }
  .product-content .cta { padding: 6px 8px !important; font-size: 0.7rem !important; }
}
@media (min-width: 576px) and (max-width: 991px) {
  .nexus-carousel-item {
    width: 200px !important;
  }
}

/* ═══════════════════════════════════════════════════
   PAYMENT METHODS — 2 per row on mobile (all sizes)
   ═══════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .payment-methods-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.85rem !important;
  }
}

/* ═══════════════════════════════════════════════════
   HERO TITLE — smaller on mobile
   ═══════════════════════════════════════════════════ */
@media (max-width: 575px) {
  .hero-title { font-size: 2rem !important; }
  .hero-color { font-size: 2rem !important; }
}
@media (min-width: 576px) and (max-width: 767px) {
  .hero-title { font-size: 2.5rem !important; }
  .hero-color { font-size: 2.5rem !important; }
}

/* ═══════════════════════════════════════════════════
   PRODUCT CARD — price size override (smaller)
   ═══════════════════════════════════════════════════ */
.product-content .pricing {
  margin-bottom: 10px !important;
}
.product-content .price {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
}
@media (max-width: 575px) {
  .product-content .price { font-size: 0.82rem !important; }
  .product-content .title { font-size: 0.78rem !important; }
  .product-image { height: 90px !important; }
  .product-content { padding: 7px !important; }
  .cta, .cta-atc { font-size: 0.7rem !important; padding: 7px 8px !important; }
  .cta-atc { width: 30px !important; }
}

/* ═══════════════════════════════════════════════════
   SEARCH MODAL header flex fix
   ═══════════════════════════════════════════════════ */
.nexus-modal-header {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 12px 16px !important;
}
.nexus-modal-searchbar {
  flex: 1 !important;
}

/* ── Variant dropdown select ── */
.pp-variant-select-wrap {
  position: relative;
}
.pp-variant-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(164,78,245,0.15);
  border-radius: 10px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.7rem 2.5rem 0.7rem 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s;
}
.pp-variant-select:focus {
  outline: none;
  border-color: rgba(164,78,245,0.45);
  box-shadow: 0 0 0 3px rgba(164,78,245,0.08);
}
.pp-variant-select option {
  background: #0e0a1a;
  color: #fff;
  padding: 0.5rem;
}
.pp-variant-select option:disabled {
  color: rgba(255,255,255,0.25);
}
.pp-variant-chevron {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(164,78,245,0.5);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════
   GLOBAL POLISH — scroll, selection, transitions
   ═══════════════════════════════════════════════════ */
html { scroll-behavior: smooth; }
::selection { background: rgba(164,78,245,0.3); color: #fff; }
::-moz-selection { background: rgba(164,78,245,0.3); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(164,78,245,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(164,78,245,0.35); }

/* Smooth page load fade-in */
.component { animation: fadeUp 0.4s ease-out both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════
   LOGIN MODAL — match theme
   ═══════════════════════════════════════════════════ */
#customer-login-modal .modal-content {
  background: #0e0a1a;
  border: 1px solid rgba(164,78,245,0.15);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 40px rgba(164,78,245,0.05);
}
#customer-login-modal .modal-header {
  border-bottom: 1px solid rgba(164,78,245,0.08);
  padding: 1.25rem 1.5rem;
}
#customer-login-modal .modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
#customer-login-modal .modal-body {
  padding: 1.5rem;
}
#customer-login-modal .form-label {
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  font-size: 0.88rem;
}
#customer-login-modal .form-text {
  color: rgba(255,255,255,0.3);
  font-size: 0.78rem;
}
#customer-login-modal .form-control {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(164,78,245,0.15);
  border-radius: 10px;
  color: #fff;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
}
#customer-login-modal .form-control:focus {
  border-color: rgba(164,78,245,0.45);
  box-shadow: 0 0 0 3px rgba(164,78,245,0.08);
  background: rgba(0,0,0,0.4);
}
#customer-login-modal .form-control::placeholder { color: rgba(255,255,255,0.15); }

/* ═══════════════════════════════════════════════════
   CART PAGE — polish
   ═══════════════════════════════════════════════════ */
.cart .section-title h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════
   PRODUCT CARD — hover lift + glow
   ═══════════════════════════════════════════════════ */
.product-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(164,78,245,0.08);
}

/* ═══════════════════════════════════════════════════
   CUSTOMER SIDEBAR — polished active state
   ═══════════════════════════════════════════════════ */
.nav-pills .nav-link {
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.55rem 1rem;
  color: rgba(255,255,255,0.45);
  transition: all 0.15s;
}
.nav-pills .nav-link:hover {
  color: rgba(255,255,255,0.75);
  background: rgba(164,78,245,0.06);
}
.nav-pills .nav-link.active {
  background: linear-gradient(135deg, #A44EF5, #7c3aed);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(164,78,245,0.25);
}

/* ═══════════════════════════════════════════════════
   BUTTONS — better hover states globally
   ═══════════════════════════════════════════════════ */
.btn-primary {
  transition: all 0.15s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(164,78,245,0.3);
}
.btn-outline-primary {
  transition: all 0.15s ease;
}
.btn-outline-primary:hover {
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════
   TABLES — polish for invoices/orders
   ═══════════════════════════════════════════════════ */
.table {
  font-size: 0.85rem;
}
.table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.35);
  border-bottom-color: rgba(164,78,245,0.08);
}
.table tbody td {
  border-bottom-color: rgba(164,78,245,0.04);
  vertical-align: middle;
  padding: 0.75rem 0.5rem;
}
.table tbody tr {
  transition: background 0.15s;
}
.table tbody tr:hover {
  background: rgba(164,78,245,0.03);
}

/* ═══════════════════════════════════════════════════
   CARDS — consistent subtle glow on hover
   ═══════════════════════════════════════════════════ */
.card {
  transition: border-color 0.2s ease;
}
.card:hover {
  border-color: rgba(164,78,245,0.15);
}

/* ═══════════════════════════════════════════════════
   FAQ — smoother transitions
   ═══════════════════════════════════════════════════ */
.accordion-button {
  transition: all 0.2s ease;
}

/* ═══════════════════════════════════════════════════
   ALERTS/BADGES — consistent rounding
   ═══════════════════════════════════════════════════ */
.alert {
  border-radius: 12px;
}
.badge {
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════
   MOBILE — better touch targets
   ═══════════════════════════════════════════════════ */
@media (max-width: 575px) {
  .btn { min-height: 44px; }
  .nav-pills .nav-link { padding: 0.65rem 1rem; }
  .table { font-size: 0.78rem; }
  .table thead th { font-size: 0.68rem; }
}

/* ═══════════════════════════════════════════════════
   LINKS — consistent purple underline hover
   ═══════════════════════════════════════════════════ */
a.text-accent-500 {
  transition: color 0.15s;
}
a.text-accent-500:hover {
  color: #c084fc !important;
}

/* ═══════════════════════════════════════════════════
   FORM INPUTS — global focus ring
   ═══════════════════════════════════════════════════ */
.form-control:focus {
  box-shadow: 0 0 0 3px rgba(164,78,245,0.08);
}

/* ═══════════════════════════════════════════════════
   STATUS/STOCK INDICATORS — pulse animation
   ═══════════════════════════════════════════════════ */
.stock-in::before {
  animation: stockPulse 2s ease-in-out infinite;
}
@keyframes stockPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
/* ═══════════════════════════════════════════════════
   HOW IT WORKS PAGE
   ═══════════════════════════════════════════════════ */
.hiw-section { padding: 5rem 0 4rem; }

.hiw-header { text-align: center; margin-bottom: 3.5rem; }
.hiw-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; color: #c084fc;
  background: rgba(164,78,245,0.08); border: 1px solid rgba(164,78,245,0.15);
  padding: 0.3rem 0.85rem; border-radius: 99px; margin-bottom: 1rem;
}
.hiw-title { font-size: 2.5rem; font-weight: 800; color: #fff; margin: 0 0 0.75rem; line-height: 1.2; }
.hiw-sub { font-size: 1.05rem; color: rgba(255,255,255,0.4); margin: 0 auto; max-width: 600px; line-height: 1.6; }

.hiw-track {
  background: #0e0a1a; border: 1px solid rgba(164,78,245,0.1);
  border-radius: 16px; padding: 2.5rem; margin-bottom: 2rem;
}
.hiw-track-header { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.5rem; }
.hiw-track-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hiw-icon-green { background: rgba(34,197,94,0.1); color: #4ade80; border: 1px solid rgba(34,197,94,0.15); }
.hiw-icon-purple { background: rgba(164,78,245,0.1); color: #c084fc; border: 1px solid rgba(164,78,245,0.15); }
.hiw-track-title { font-size: 1.35rem; font-weight: 700; color: #fff; margin: 0; }
.hiw-track-sub { font-size: 0.9rem; color: rgba(255,255,255,0.35); margin: 0.15rem 0 0; }

/* Steps — accordion */
.hiw-steps { display: flex; flex-direction: column; gap: 0.6rem; }
.hiw-step {
  background: rgba(164,78,245,0.03);
  border: 1px solid rgba(164,78,245,0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.hiw-step:hover, .hiw-step-open {
  border-color: rgba(164,78,245,0.2);
}

/* Step header — clickable */
.hiw-step-top {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 1rem 1.25rem;
  cursor: pointer; user-select: none;
}
.hiw-step-top h3 {
  flex: 1; font-size: 1.05rem; font-weight: 600; color: #fff; margin: 0;
}
.hiw-step-num {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(164,78,245,0.08); border: 1px solid rgba(164,78,245,0.18);
  color: #c084fc; font-size: 0.88rem; font-weight: 700;
}
.hiw-num-done { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.2); color: #4ade80; }
.hiw-step-done .hiw-step-top h3 { color: #4ade80; }

.hiw-chev { color: rgba(164,78,245,0.35); flex-shrink: 0; transition: transform 0.2s; }
.hiw-chev-open { transform: rotate(180deg); color: #c084fc; }

/* Step body — dropdown content */
.hiw-step-body {
  padding: 0 1.25rem 1.25rem 4.75rem;
}
.hiw-step-body p {
  font-size: 0.92rem; color: rgba(255,255,255,0.45); margin: 0; line-height: 1.7;
}

/* Dropdown image */
.hiw-img-drop {
  margin-top: 1rem; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(164,78,245,0.12); background: rgba(0,0,0,0.3);
}
.hiw-img-drop img { width: 100%; height: auto; display: block; }

/* FAQ */
.hiw-faq { margin-top: 1.5rem; }
.hiw-faq-title { font-size: 1.4rem; font-weight: 700; color: #fff; margin: 0 0 1.25rem; text-align: center; }
.hiw-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.hiw-faq-item {
  background: #0e0a1a; border: 1px solid rgba(164,78,245,0.08);
  border-radius: 14px; padding: 1.5rem;
}
.hiw-faq-item h4 { font-size: 0.95rem; font-weight: 600; color: #fff; margin: 0 0 0.4rem; }
.hiw-faq-item p { font-size: 0.85rem; color: rgba(255,255,255,0.35); margin: 0; line-height: 1.55; }

@media (max-width: 575px) {
  .hiw-section { padding: 4rem 0 3rem; }
  .hiw-title { font-size: 1.75rem; }
  .hiw-track { padding: 1.5rem; }
  .hiw-faq-grid { grid-template-columns: 1fr; }
  .hiw-step-top { padding: 0.85rem 1rem; gap: 0.65rem; }
  .hiw-step-top h3 { font-size: 0.92rem; }
  .hiw-step-body { padding: 0 1rem 1rem 3.5rem; }
}

/* ═══════════════════════════════════════════════════
   FAQ PAGE
   ═══════════════════════════════════════════════════ */
.fqp { padding: 5rem 0 4rem; }

.fqp-header { text-align: center; margin-bottom: 3rem; }
.fqp-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; color: #c084fc;
  background: rgba(164,78,245,0.08); border: 1px solid rgba(164,78,245,0.15);
  padding: 0.3rem 0.85rem; border-radius: 99px; margin-bottom: 1rem;
}
.fqp-title { font-size: 2.5rem; font-weight: 800; color: #fff; margin: 0 0 0.75rem; line-height: 1.2; }
.fqp-sub { font-size: 1.05rem; color: rgba(255,255,255,0.4); margin: 0 auto; max-width: 550px; line-height: 1.6; }

/* Grid — 2 columns */
.fqp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* Category */
.fqp-cat {
  background: #0e0a1a; border: 1px solid rgba(164,78,245,0.1);
  border-radius: 16px; padding: 1.75rem; display: flex; flex-direction: column; gap: 0.6rem;
}
.fqp-cat-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.fqp-cat-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  border: 1px solid;
}
.fqp-cat-head h2 { font-size: 1.15rem; font-weight: 700; color: #fff; margin: 0; }

/* Question accordion */
.fqp-q {
  background: rgba(164,78,245,0.03); border: 1px solid rgba(164,78,245,0.06);
  border-radius: 10px; overflow: hidden; transition: border-color 0.2s;
}
.fqp-q:hover, .fqp-q-open { border-color: rgba(164,78,245,0.18); }
.fqp-q-top {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.85rem 1rem; cursor: pointer; user-select: none;
}
.fqp-q-top span { font-size: 0.92rem; font-weight: 600; color: rgba(255,255,255,0.8); flex: 1; }
.fqp-chev { color: rgba(164,78,245,0.3); flex-shrink: 0; transition: transform 0.2s; }
.fqp-chev-open { transform: rotate(180deg); color: #c084fc; }

/* Answer */
.fqp-a {
  padding: 0 1rem 1rem;
  font-size: 0.88rem; color: rgba(255,255,255,0.4); line-height: 1.7;
}

/* CTA */
.fqp-cta {
  text-align: center; margin-top: 2.5rem;
  padding: 2rem; background: #0e0a1a;
  border: 1px solid rgba(164,78,245,0.1); border-radius: 16px;
}
.fqp-cta p { font-size: 1.1rem; font-weight: 600; color: rgba(255,255,255,0.6); margin: 0 0 1rem; }
.fqp-cta-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.5rem; background: linear-gradient(135deg, #5865F2, #4752C4);
  border-radius: 10px; color: #fff; font-size: 0.9rem; font-weight: 600;
  text-decoration: none; transition: all 0.15s;
}
.fqp-cta-btn:hover { opacity: 0.9; color: #fff; text-decoration: none; transform: translateY(-1px); }

@media (max-width: 767px) {
  .fqp-grid { grid-template-columns: 1fr; }
  .fqp-title { font-size: 1.75rem; }
  .fqp-cat { padding: 1.35rem; }
  .fqp { padding: 4rem 0 3rem; }
}
