/* ==========================================================================
   Voltix — Gadget Store Ecommerce Template
   Custom stylesheet (built on top of Bootstrap 5)
   ========================================================================== */

:root {
  --vx-primary: #5B5FEF;
  --vx-primary-dark: #4448D0;
  --vx-secondary: #8A6DF1;
  --vx-dark: #111827;
  --vx-gray-900: #1F2430;
  --vx-gray-600: #6B7280;
  --vx-gray-200: #E5E7EB;
  --vx-gray-100: #F5F6FA;
  --vx-success: #16A34A;
  --vx-danger: #E11D48;
  --vx-warning: #F59E0B;
  --vx-radius: 14px;
  --vx-font-heading: 'Poppins', sans-serif;
  --vx-font-body: 'Inter', sans-serif;
}

body {
  font-family: var(--vx-font-body);
  color: var(--vx-gray-900);
  background: #ffffff;
}

h1, h2, h3, h4, h5, h6,
.font-heading {
  font-family: var(--vx-font-heading);
  font-weight: 600;
  color: var(--vx-dark);
}

a { text-decoration: none; }

.text-primary-vx { color: var(--vx-primary) !important; }
.bg-primary-vx { background-color: var(--vx-primary) !important; }
.bg-soft { background-color: var(--vx-gray-100) !important; }

.btn-primary-vx {
  background-color: var(--vx-primary);
  border-color: var(--vx-primary);
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.65rem 1.5rem;
  transition: all .2s ease;
}
.btn-primary-vx:hover,
.btn-primary-vx:focus {
  background-color: var(--vx-primary-dark);
  border-color: var(--vx-primary-dark);
  color: #fff;
}
.btn-outline-vx {
  border: 1.5px solid var(--vx-dark);
  color: var(--vx-dark);
  font-weight: 600;
  border-radius: 10px;
  padding: 0.6rem 1.5rem;
  transition: all .2s ease;
}
.btn-outline-vx:hover { background: var(--vx-dark); color: #fff; }
.btn-sm-vx { padding: 0.4rem 1rem; font-size: .875rem; }

.rounded-vx { border-radius: var(--vx-radius) !important; }
.section-py { padding-top: 4.5rem; padding-bottom: 4.5rem; }
.section-title-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--vx-primary);
  margin-bottom: .5rem;
}

/* ---------- PRO badge ---------- */
.badge-pro {
  display: inline-block;
  font-family: var(--vx-font-heading);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  padding: .28em .5em;
  border-radius: 5px;
  color: #fff;
  background: linear-gradient(135deg, #F59E0B, #F97316);
  vertical-align: middle;
  margin-left: .35rem;
}
.badge-new {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  padding: .3em .55em;
  border-radius: 5px;
  color: #fff;
  background: var(--vx-success);
}
.badge-sale {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  padding: .3em .55em;
  border-radius: 5px;
  color: #fff;
  background: var(--vx-danger);
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--vx-dark);
  color: #d1d5db;
  font-size: .82rem;
}
.topbar a { color: #d1d5db; }
.topbar a:hover { color: #fff; }

/* ---------- Navbar ---------- */
.navbar-vx {
  background: #fff;
  box-shadow: 0 1px 0 rgba(17,24,39,.06);
}
.navbar-vx .nav-link {
  font-weight: 600;
  color: var(--vx-dark);
  padding: .5rem 1rem !important;
}
.navbar-vx .nav-link:hover,
.navbar-vx .nav-link.active { color: var(--vx-primary); }
.navbar-vx .dropdown-menu {
  border: none;
  box-shadow: 0 12px 32px rgba(17,24,39,.12);
  border-radius: 12px;
  padding: .5rem;
}
.navbar-vx .dropdown-item {
  border-radius: 8px;
  padding: .55rem .75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-vx .dropdown-item:hover { background: var(--vx-gray-100); color: var(--vx-primary); }
.nav-icon-btn {
  position: relative;
  color: var(--vx-dark);
  font-size: 1.2rem;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.nav-icon-btn:hover { background: var(--vx-gray-100); color: var(--vx-primary); }
.nav-icon-btn .count-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--vx-primary);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}
.search-form-vx { max-width: 480px; }
.search-form-vx .form-control {
  border-right: none;
  border-radius: 10px 0 0 10px;
}
.search-form-vx .btn {
  border-radius: 0 10px 10px 0;
  border: 1px solid var(--vx-gray-200);
  background: var(--vx-gray-100);
}

/* ---------- Hero ---------- */
.hero-section {
  background: linear-gradient(135deg, #F5F6FF 0%, #EEF0FF 60%, #F8F5FF 100%);
  overflow: hidden;
}
.hero-slide-eyebrow {
  font-weight: 700;
  color: var(--vx-primary);
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: .82rem;
}
.hero-section .swiper-pagination-bullet-active { background: var(--vx-primary); }

.page-header {
  background: var(--vx-dark);
  padding: 3.5rem 0;
}
.page-header .breadcrumb a { color: #cbd5e1; }
.page-header .breadcrumb-item.active { color: #fff; }

/* ---------- Category tiles ---------- */
.category-tile {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--vx-radius);
  transition: transform .2s ease, box-shadow .2s ease;
  color: var(--vx-dark);
  display: block;
}
.category-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(17,24,39,.08); color: var(--vx-primary); }
.category-tile img { width: 64px; height: 64px; margin-bottom: .75rem; }

/* ---------- Product card ---------- */
.product-card {
  border: 1px solid var(--vx-gray-200);
  border-radius: var(--vx-radius);
  overflow: hidden;
  background: #fff;
  transition: box-shadow .2s ease, transform .2s ease;
  height: 100%;
}
.product-card:hover { box-shadow: 0 20px 40px rgba(17,24,39,.1); transform: translateY(-3px); }
.product-card .product-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--vx-gray-100);
}
.product-card .product-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-card .product-badges {
  position: absolute; top: .75rem; left: .75rem;
  display: flex; flex-direction: column; gap: .35rem; z-index: 2;
}
.product-card .product-actions {
  position: absolute; top: .75rem; right: .75rem;
  display: flex; flex-direction: column; gap: .5rem;
  opacity: 0; transform: translateX(8px);
  transition: all .2s ease; z-index: 2;
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.product-action-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; color: var(--vx-dark);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(17,24,39,.15);
  border: none; font-size: .95rem;
}
.product-action-btn:hover { background: var(--vx-primary); color: #fff; }
.product-card .product-body { padding: 1.1rem; }
.product-card .product-category {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--vx-gray-600); font-weight: 600;
}
.product-card .product-title { font-size: .98rem; font-weight: 600; margin: .3rem 0 .4rem; }
.product-card .product-title a { color: var(--vx-dark); }
.product-card .product-title a:hover { color: var(--vx-primary); }
.product-price .current { font-weight: 700; color: var(--vx-dark); }
.product-price .old { text-decoration: line-through; color: var(--vx-gray-600); font-size: .85rem; margin-left: .4rem; }
.rating-stars { color: var(--vx-warning); font-size: .8rem; }
.add-to-cart-btn {
  position: absolute; left: 0; right: 0; bottom: -46px;
  border: none; background: var(--vx-dark); color: #fff;
  font-weight: 600; padding: .65rem; font-size: .85rem;
  transition: bottom .2s ease;
}
.product-card .product-thumb:hover .add-to-cart-btn,
.add-to-cart-btn:focus { bottom: 0; }
.add-to-cart-btn:hover { background: var(--vx-primary); color: #fff; }

/* ---------- Deal banner ---------- */
.deal-banner {
  background: linear-gradient(120deg, var(--vx-dark), #2b3350);
  border-radius: var(--vx-radius);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.countdown-item {
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  width: 64px; padding: .5rem 0;
  text-align: center;
}
.countdown-item .num { font-size: 1.3rem; font-weight: 700; font-family: var(--vx-font-heading); }
.countdown-item .lbl { font-size: .65rem; text-transform: uppercase; color: #cbd5e1; }

/* ---------- Brand strip ---------- */
.brand-strip img { max-height: 32px; opacity: .6; transition: opacity .2s ease; filter: grayscale(1); }
.brand-strip img:hover { opacity: 1; filter: grayscale(0); }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--vx-gray-100);
  border-radius: var(--vx-radius);
  padding: 2rem;
  height: 100%;
}
.testimonial-quote { font-size: 2.5rem; color: var(--vx-primary); opacity: .3; line-height: 1; }

/* ---------- Newsletter ---------- */
.newsletter-section {
  background: linear-gradient(120deg, var(--vx-primary), var(--vx-secondary));
  border-radius: var(--vx-radius);
  color: #fff;
}
.newsletter-section .form-control { border-radius: 10px; border: none; padding: .8rem 1rem; }

/* ---------- Blog card ---------- */
.blog-card { border-radius: var(--vx-radius); overflow: hidden; border: 1px solid var(--vx-gray-200); height: 100%; background: #fff; }
.blog-card .blog-thumb { aspect-ratio: 16/10; overflow: hidden; }
.blog-card .blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.blog-card:hover .blog-thumb img { transform: scale(1.06); }
.blog-card .blog-body { padding: 1.25rem; }
.blog-meta { font-size: .8rem; color: var(--vx-gray-600); }
.blog-meta i { color: var(--vx-primary); }
.blog-card .blog-title { font-size: 1.05rem; font-weight: 600; margin: .5rem 0; }
.blog-card .blog-title a { color: var(--vx-dark); }
.blog-card .blog-title a:hover { color: var(--vx-primary); }

.sidebar-widget { border: 1px solid var(--vx-gray-200); border-radius: var(--vx-radius); padding: 1.5rem; }
.sidebar-widget + .sidebar-widget { margin-top: 1.75rem; }
.widget-title { font-weight: 600; font-size: 1rem; margin-bottom: 1.1rem; padding-bottom: .75rem; border-bottom: 2px solid var(--vx-gray-100); }
.tag-pill { display: inline-block; padding: .35em .85em; margin: 0 .35em .5em 0; border-radius: 30px; background: var(--vx-gray-100); color: var(--vx-gray-900); font-size: .8rem; font-weight: 500; }
.tag-pill:hover { background: var(--vx-primary); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--vx-dark); color: #9ca3af; }
.site-footer h6 { color: #fff; font-weight: 600; margin-bottom: 1.25rem; }
.site-footer a { color: #9ca3af; }
.site-footer a:hover { color: #fff; }
.footer-links li { margin-bottom: .6rem; }
.social-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: .95rem;
}
.social-btn:hover { background: var(--vx-primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }
.footer-credit a { color: #fff; font-weight: 600; }
.footer-credit a:hover { color: var(--vx-secondary); }
.payment-icons i { font-size: 1.6rem; color: #9ca3af; margin-left: .5rem; }

/* ---------- Shop page ---------- */
.filter-widget label { font-weight: 500; font-size: .9rem; }
.color-swatch {
  width: 22px; height: 22px; border-radius: 50%; display: inline-block;
  border: 2px solid #fff; box-shadow: 0 0 0 1px var(--vx-gray-200); cursor: pointer;
}
.sort-select { border-radius: 10px; }
.pagination .page-link { border: none; color: var(--vx-dark); font-weight: 600; margin: 0 3px; border-radius: 8px !important; }
.pagination .page-item.active .page-link { background: var(--vx-primary); color: #fff; }

/* ---------- Product detail ---------- */
.product-gallery-thumb { border: 1.5px solid var(--vx-gray-200); border-radius: 10px; cursor: pointer; overflow: hidden; }
.product-gallery-thumb.active, .product-gallery-thumb:hover { border-color: var(--vx-primary); }
.qty-input { width: 120px; }
.qty-input .btn { border-color: var(--vx-gray-200); font-weight: 700; }
.nav-tabs-vx .nav-link { border: none; font-weight: 600; color: var(--vx-gray-600); padding: .85rem 1.5rem; }
.nav-tabs-vx .nav-link.active { color: var(--vx-primary); border-bottom: 2px solid var(--vx-primary); background: transparent; }

/* Theme the active/focus states Bootstrap otherwise renders in its default blue */
.nav-pills .nav-link { color: var(--vx-gray-600); font-weight: 600; }
.nav-pills .nav-link:hover { color: var(--vx-primary); }
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link { color: #fff; background-color: var(--vx-primary); }
.navbar-vx .dropdown-item.active,
.navbar-vx .dropdown-item:active { color: var(--vx-primary); background-color: var(--vx-gray-100); }
.nav-link:focus-visible { outline-color: var(--vx-primary); }

/* ---------- Cart / Checkout ---------- */
.cart-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--vx-gray-600); border-bottom-width: 1px; }
.cart-table td { vertical-align: middle; }
.cart-thumb { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.summary-box { background: var(--vx-gray-100); border-radius: var(--vx-radius); padding: 1.75rem; }
.step-indicator { display: flex; justify-content: space-between; }
.step-indicator .step { text-align: center; flex: 1; position: relative; color: var(--vx-gray-600); font-weight: 600; font-size: .85rem; }
.step-indicator .step .circle {
  width: 34px; height: 34px; border-radius: 50%; background: var(--vx-gray-200); color: var(--vx-gray-600);
  display: flex; align-items: center; justify-content: center; margin: 0 auto .5rem; font-weight: 700;
}
.step-indicator .step.active .circle { background: var(--vx-primary); color: #fff; }
.step-indicator .step.active { color: var(--vx-dark); }

/* ---------- FAQ ---------- */
.accordion-vx .accordion-button { font-weight: 600; border-radius: 10px !important; }
.accordion-vx .accordion-button:not(.collapsed) { background: var(--vx-gray-100); color: var(--vx-primary); box-shadow: none; }
.accordion-vx .accordion-item { border: 1px solid var(--vx-gray-200); border-radius: 10px !important; margin-bottom: 1rem; overflow: hidden; }

/* ---------- Auth ---------- */
.auth-card { border: 1px solid var(--vx-gray-200); border-radius: var(--vx-radius); padding: 2.5rem; }
.auth-side { background: linear-gradient(150deg, var(--vx-dark), #2b3350); border-radius: var(--vx-radius); color: #fff; }

/* ---------- 404 ---------- */
.error-code { font-size: 8rem; font-weight: 800; font-family: var(--vx-font-heading); background: linear-gradient(120deg, var(--vx-primary), var(--vx-secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }

/* ---------- Misc ---------- */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--vx-primary); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(91,95,239,.4); opacity: 0; visibility: hidden; transition: all .25s ease; z-index: 1000; border: none;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--vx-primary-dark); }
.feature-icon-box {
  width: 54px; height: 54px; border-radius: 12px; background: var(--vx-gray-100);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--vx-primary);
}
.form-control, .form-select { border-radius: 10px; padding: .65rem .9rem; border-color: var(--vx-gray-200); }
.form-control:focus, .form-select:focus { border-color: var(--vx-primary); box-shadow: 0 0 0 .2rem rgba(91,95,239,.15); }
.map-frame { border-radius: var(--vx-radius); overflow: hidden; border: 1px solid var(--vx-gray-200); }
.contact-info-card { border: 1px solid var(--vx-gray-200); border-radius: var(--vx-radius); padding: 1.5rem; height: 100%; }

.free-lock-item { color: var(--vx-gray-600) !important; cursor: not-allowed; }
.upgrade-banner { background: linear-gradient(120deg, #F59E0B, #F97316); color: #fff; }
