/*
Theme Name: Mobile Bazar - WooCommerce Mobile & Gadget Store
Author: Mobile Bazar Team
Description: Production-ready WooCommerce Mobile, Accessories & Gadgets Theme optimized for Bangladesh ecommerce. Features 64 Bangladesh district courier shipping (Steadfast/RedX), BDT (৳) currency, Cash on Delivery (COD), shurjoPay, PayStation, ultra-fast performance, modern responsive UI, and full WooCommerce compatibility.
Version: 1.4.3
Requires at least: 6.9
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nextech-bd
Tags: e-commerce, electronics, gadgets, woocommerce, responsive-layout, grid-layout, custom-menu, featured-images, custom-logo, translation-ready
*/

/* ==========================================================================
   1. CSS Variables & Design System
   ========================================================================== */
:root {
  --nt-primary: #0284c7;
  --nt-primary-hover: #0369a1;
  --nt-primary-light: #e0f2fe;
  --nt-secondary: #0f172a;
  --nt-secondary-hover: #1e293b;
  --nt-accent: #f97316;
  --nt-sale: #ef4444;
  --nt-success: #10b981;
  --nt-background: #f8fafc;
  --nt-surface: #ffffff;
  --nt-text-main: #0f172a;
  --nt-text-muted: #64748b;
  --nt-border: #e2e8f0;
  --nt-border-light: #f1f5f9;
  --nt-radius-sm: 6px;
  --nt-radius: 10px;
  --nt-radius-lg: 16px;
  --nt-radius-full: 9999px;
  --nt-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --nt-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --nt-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --nt-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --nt-font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --nt-font-heading: 'Space Grotesk', var(--nt-font-sans);
}

/* ==========================================================================
   2. Reset & Base Typography
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: var(--nt-font-sans);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--nt-background);
  color: var(--nt-text-main);
  font-family: var(--nt-font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nextech-scroll-locked {
  overflow: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--nt-primary);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: var(--nt-primary-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--nt-font-heading);
  color: var(--nt-text-main);
  margin-top: 0;
  line-height: 1.25;
  font-weight: 700;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

ul, ol {
  padding-left: 1.25rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Screen reader text for accessibility */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ==========================================================================
   3. Layout Containers & Utility Classes
   ========================================================================== */
.site-container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.text-center { text-align: center; }

/* Buttons */
.nextech-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--nt-radius);
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1.25;
  text-decoration: none;
}

.nextech-btn-primary {
  background-color: var(--nt-primary);
  color: #ffffff !important;
  border-color: var(--nt-primary);
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.2);
}

.nextech-btn-primary:hover {
  background-color: var(--nt-primary-hover);
  border-color: var(--nt-primary-hover);
  transform: translateY(-1px);
}

.nextech-btn-outline {
  background-color: transparent;
  color: var(--nt-text-main) !important;
  border-color: var(--nt-border);
}

.nextech-btn-outline:hover {
  background-color: #ffffff;
  border-color: var(--nt-primary);
  color: var(--nt-primary) !important;
}

/* ==========================================================================
   4. Header & Top Announcement Bar
   ========================================================================== */
.nextech-announcement-bar {
  background-color: var(--nt-secondary);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.announcement-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hotline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #38bdf8 !important;
  font-weight: 700;
  white-space: nowrap;
}

.hotline-link:hover {
  color: #7dd3fc !important;
}

.nextech-header {
  background-color: var(--nt-surface);
  border-bottom: 1px solid var(--nt-border);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--nt-shadow-sm);
}

.header-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger-bar {
  width: 22px;
  height: 2px;
  background-color: var(--nt-text-main);
  border-radius: 2px;
  transition: all 0.2s ease;
}

.site-logo-text {
  font-family: var(--nt-font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--nt-secondary);
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
}

.site-logo-text .logo-accent {
  color: var(--nt-primary);
}

.site-logo-text .logo-bd {
  font-size: 13px;
  font-weight: 800;
  background: var(--nt-secondary);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
  letter-spacing: 0.5px;
}

/* Header Search Form */
.header-search-wrap {
  flex: 1;
  max-width: 540px;
}

.nextech-search-form {
  position: relative;
  width: 100%;
  display: flex;
}

.nextech-search-form .search-field {
  width: 100%;
  padding: 10px 48px 10px 16px;
  border: 1px solid var(--nt-border);
  border-radius: var(--nt-radius-full);
  background-color: var(--nt-background);
  font-size: 14px;
  font-family: var(--nt-font-sans);
  outline: none;
  transition: all 0.2s ease;
}

.nextech-search-form .search-field:focus {
  border-color: var(--nt-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.nextech-search-form .search-submit {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--nt-primary);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: var(--nt-radius-full);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.nextech-search-form .search-submit:hover {
  background-color: var(--nt-primary-hover);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--nt-radius);
  color: var(--nt-text-main) !important;
  font-weight: 600;
  font-size: 13px;
  transition: background-color 0.15s ease;
}

.header-action-btn:hover {
  background-color: var(--nt-border-light);
}

.mobile-search-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.cart-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.nextech-cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: var(--nt-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Desktop Navigation Menu Bar */
.main-navigation {
  background-color: var(--nt-surface);
  border-top: 1px solid var(--nt-border-light);
}

.nav-inner {
  display: flex;
  align-items: center;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  display: block;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--nt-text-main);
  border-radius: var(--nt-radius-sm);
  transition: all 0.15s ease;
}

.nav-menu li a:hover {
  color: var(--nt-primary);
  background-color: var(--nt-border-light);
}

/* Mobile Search Dropdown */
.mobile-search-dropdown {
  display: none;
  padding: 12px 0;
  background-color: #ffffff;
  border-top: 1px solid var(--nt-border-light);
}

.mobile-search-dropdown.is-visible {
  display: block;
}

/* ==========================================================================
   5. Mobile Slide-out Drawer
   ========================================================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 82%;
  max-width: 340px;
  background-color: #ffffff;
  z-index: 101;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--nt-shadow-lg);
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--nt-border);
}

.drawer-title {
  font-family: var(--nt-font-heading);
  font-size: 18px;
  font-weight: 700;
}

.drawer-close-btn {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--nt-text-muted);
  cursor: pointer;
  padding: 4px;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.mobile-nav-list li {
  border-bottom: 1px solid var(--nt-border-light);
}

.mobile-nav-list li a {
  display: block;
  padding: 14px 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--nt-text-main);
}

.mobile-nav-list li a:hover {
  color: var(--nt-primary);
}

.drawer-contact-card {
  background-color: var(--nt-background);
  border: 1px solid var(--nt-border);
  border-radius: var(--nt-radius);
  padding: 16px;
  margin-top: auto;
}

.drawer-contact-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--nt-text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.drawer-hotline {
  font-size: 16px;
  font-weight: 800;
  color: var(--nt-primary) !important;
  display: block;
  margin-bottom: 8px;
}

.drawer-delivery-note {
  font-size: 12px;
  color: var(--nt-text-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   6. Frontpage & Sections
   ========================================================================== */
.nextech-section {
  padding: 48px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.section-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--nt-secondary);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.section-title.text-sale {
  color: var(--nt-sale);
}

.section-subtitle {
  font-size: 14px;
  color: var(--nt-text-muted);
  margin-bottom: 0;
}

.section-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--nt-primary);
  white-space: nowrap;
}

/* Hero Section */
.nextech-hero-section {
  padding: 24px 0;
}

.nextech-hero-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--nt-radius-lg);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--nt-shadow-md);
}

.nextech-hero-card::after {
  content: '';
  position: absolute;
  right: -50px;
  top: -50px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(2, 132, 199, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 6px 14px;
  border-radius: var(--nt-radius-full);
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 16px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background-color: #38bdf8;
  border-radius: 50%;
  display: inline-block;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 16px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-actions .nextech-btn-outline {
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
}

.hero-actions .nextech-btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-check {
  color: #10b981;
  font-weight: 800;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.benefit-card {
  background-color: var(--nt-surface);
  border: 1px solid var(--nt-border);
  border-radius: var(--nt-radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--nt-shadow);
}

.benefit-icon {
  font-size: 28px;
  line-height: 1;
}

.benefit-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.benefit-desc {
  font-size: 12px;
  color: var(--nt-text-muted);
  line-height: 1.4;
  margin-bottom: 0;
}

/* Category Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.category-card {
  background-color: var(--nt-surface);
  border: 1px solid var(--nt-border);
  border-radius: var(--nt-radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.2s ease;
}

.category-card:hover {
  border-color: var(--nt-primary);
  transform: translateY(-2px);
  box-shadow: var(--nt-shadow);
}

.category-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--nt-radius-sm);
  background-color: var(--nt-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}

.category-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.category-placeholder-icon {
  font-size: 24px;
}

.category-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--nt-text-main);
  margin-bottom: 2px;
  line-height: 1.3;
}

.category-count {
  font-size: 11px;
  color: var(--nt-text-muted);
  font-weight: 500;
}

/* Dual Promotional Banners */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.promo-card {
  border-radius: var(--nt-radius-lg);
  padding: 36px 30px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.promo-card-1 {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.promo-card-2 {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.promo-content {
  max-width: 420px;
}

.promo-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.2);
  margin-bottom: 12px;
}

.promo-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 18px;
  line-height: 1.25;
}

.promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff !important;
  background-color: rgba(0, 0, 0, 0.25);
  padding: 8px 16px;
  border-radius: var(--nt-radius);
  transition: background-color 0.2s ease;
}

.promo-btn:hover {
  background-color: rgba(0, 0, 0, 0.4);
}

/* Brands Grid */
.brands-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.brand-item {
  background-color: var(--nt-surface);
  border: 1px solid var(--nt-border);
  border-radius: var(--nt-radius);
  padding: 12px 24px;
  font-family: var(--nt-font-heading);
  font-weight: 800;
  font-size: 16px;
  color: #64748b;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.brand-item:hover {
  color: var(--nt-primary);
  border-color: var(--nt-primary);
  transform: translateY(-2px);
}

.brand-item img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin: 0 auto 8px;
}

.brand-item {
  text-decoration: none;
  text-align: center;
  min-width: 120px;
}

/* Newsletter Box */
.cta-box {
  background-color: var(--nt-surface);
  border: 1px solid var(--nt-border);
  border-radius: var(--nt-radius-lg);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.cta-subtitle {
  font-size: 13px;
  color: var(--nt-text-muted);
  margin-bottom: 0;
}

.cta-form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 420px;
}

.cta-input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--nt-border);
  border-radius: var(--nt-radius);
  font-size: 14px;
  outline: none;
}

.cta-input:focus {
  border-color: var(--nt-primary);
}

.empty-state-box {
  background-color: var(--nt-surface);
  border: 1px dashed var(--nt-border);
  border-radius: var(--nt-radius);
  padding: 40px 20px;
  text-align: center;
  color: var(--nt-text-muted);
  font-size: 14px;
}

/* ==========================================================================
   7. NexTech Product Card Grid & Styling
   ========================================================================== */
.nextech-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.nextech-product-card {
  background-color: var(--nt-surface);
  border: 1px solid var(--nt-border);
  border-radius: var(--nt-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.nextech-product-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-3px);
  box-shadow: var(--nt-shadow-md);
}

.product-thumb-container {
  position: relative;
  background-color: #f8fafc;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.35s ease;
}

.nextech-product-card:hover .product-card-image {
  transform: scale(1.04);
}

.product-badges-wrap {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.badge-sale {
  background-color: var(--nt-sale);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.badge-stock {
  background-color: #64748b;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.badge-stock.in-stock {
  background-color: var(--nt-success);
}

.badge-stock.out-of-stock {
  background-color: #ef4444;
}

.product-details {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 11px;
}

.product-category-label {
  color: var(--nt-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-rating {
  color: #f59e0b;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 700;
}

.product-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  height: 38px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card-title a {
  color: var(--nt-text-main);
}

.product-card-title a:hover {
  color: var(--nt-primary);
}

.product-price-row {
  margin-top: auto;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.product-price-row .price {
  font-size: 17px;
  font-weight: 800;
  color: var(--nt-secondary);
}

.product-price-row ins {
  text-decoration: none;
  color: var(--nt-sale);
  font-size: 17px;
  font-weight: 800;
}

.product-price-row del {
  color: var(--nt-text-muted);
  font-size: 12px;
  font-weight: 500;
}

.product-card-actions {
  margin-top: auto;
}

.product-card-actions .button,
.product-card-actions .add_to_cart_button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 12px;
  background-color: var(--nt-border-light);
  color: var(--nt-text-main);
  border: 1px solid var(--nt-border);
  border-radius: var(--nt-radius-sm);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.product-card-actions .button:hover,
.product-card-actions .add_to_cart_button:hover {
  background-color: var(--nt-primary);
  color: #ffffff;
  border-color: var(--nt-primary);
}

.product-card-actions .added_to_cart {
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--nt-primary);
  margin-top: 4px;
}

/* ==========================================================================
   8. Full WooCommerce Core Styling (Shop, Single, Cart, Checkout, My Account)
   ========================================================================== */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  padding: 0 !important;
  margin: 0 0 32px 0 !important;
  list-style: none !important;
}

.woocommerce ul.products li.product {
  background-color: var(--nt-surface) !important;
  border: 1px solid var(--nt-border) !important;
  border-radius: var(--nt-radius) !important;
  padding: 16px !important;
  margin: 0 !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--nt-shadow-md) !important;
}

/* Single Product Page */
.woocommerce div.product {
  background-color: var(--nt-surface);
  border: 1px solid var(--nt-border);
  border-radius: var(--nt-radius-lg);
  padding: 32px;
  margin-bottom: 32px;
}

.woocommerce div.product .product_title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-size: 24px !important;
  font-weight: 800 !important;
  color: var(--nt-primary) !important;
  margin-bottom: 16px !important;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  color: var(--nt-text-muted);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.woocommerce div.product form.cart {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.woocommerce div.product form.cart .quantity input.qty {
  width: 60px;
  height: 42px;
  border: 1px solid var(--nt-border);
  border-radius: var(--nt-radius-sm);
  text-align: center;
  font-weight: 700;
}

.woocommerce div.product form.cart button.single_add_to_cart_button {
  height: 42px;
  padding: 0 28px;
  background-color: var(--nt-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--nt-radius);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.woocommerce div.product form.cart button.single_add_to_cart_button:hover {
  background-color: var(--nt-primary-hover);
}

/* Cart & Checkout Layout */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  max-width: 1080px;
  margin: 0 auto;
}

.woocommerce table.shop_table {
  border: 1px solid var(--nt-border) !important;
  border-radius: var(--nt-radius) !important;
  background-color: var(--nt-surface) !important;
  overflow: hidden;
}

.woocommerce table.shop_table th {
  background-color: var(--nt-background) !important;
  color: var(--nt-text-main) !important;
  font-weight: 700 !important;
  padding: 14px 16px !important;
  font-size: 13px !important;
}

.woocommerce table.shop_table td {
  padding: 16px !important;
  border-top: 1px solid var(--nt-border-light) !important;
}

.cart_totals {
  background-color: var(--nt-surface);
  border: 1px solid var(--nt-border);
  border-radius: var(--nt-radius);
  padding: 24px;
  margin-top: 24px;
}

.cart_totals h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
}

/* Checkout Form Grid */
.woocommerce-checkout form.checkout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
}

.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields {
  background-color: var(--nt-surface);
  border: 1px solid var(--nt-border);
  border-radius: var(--nt-radius);
  padding: 24px;
  margin-bottom: 20px;
}

#order_review_heading,
#order_review {
  background-color: var(--nt-surface);
  border: 1px solid var(--nt-border);
  border-radius: var(--nt-radius);
  padding: 24px;
}

.woocommerce-checkout #payment {
  background-color: var(--nt-background) !important;
  border-radius: var(--nt-radius) !important;
  padding: 16px !important;
  margin-top: 20px !important;
}

.woocommerce-checkout #payment ul.payment_methods {
  border-bottom: 1px solid var(--nt-border) !important;
  padding-bottom: 16px !important;
  margin-bottom: 16px !important;
}

#place_order {
  width: 100% !important;
  background-color: var(--nt-primary) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 16px !important;
  padding: 14px 20px !important;
  border-radius: var(--nt-radius) !important;
  cursor: pointer !important;
  border: none !important;
  box-shadow: 0 4px 6px rgba(2, 132, 199, 0.25) !important;
  transition: all 0.2s ease !important;
}

#place_order:hover {
  background-color: var(--nt-primary-hover) !important;
  transform: translateY(-1px) !important;
}

.woocommerce-form-row input.input-text,
.woocommerce-form-row select,
.woocommerce-form-row textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--nt-border);
  border-radius: var(--nt-radius-sm);
  font-size: 14px;
  background-color: #ffffff;
}

.woocommerce-form-row input.input-text:focus,
.woocommerce-form-row select:focus,
.woocommerce-form-row textarea:focus {
  border-color: var(--nt-primary);
  outline: none;
}

/* WooCommerce Alerts */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: var(--nt-radius);
  padding: 14px 20px !important;
  font-size: 14px !important;
  margin-bottom: 20px !important;
}

.woocommerce-message {
  background-color: #ecfdf5 !important;
  border-top-color: #10b981 !important;
  color: #065f46 !important;
}

.woocommerce-info {
  background-color: #e0f2fe !important;
  border-top-color: #0284c7 !important;
  color: #075985 !important;
}

.woocommerce-error {
  background-color: #fef2f2 !important;
  border-top-color: #ef4444 !important;
  color: #991b1b !important;
}

/* ==========================================================================
   9. Blog / Standard WordPress Pages
   ========================================================================== */
.nextech-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.nextech-article-card {
  background-color: var(--nt-surface);
  border: 1px solid var(--nt-border);
  border-radius: var(--nt-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.article-thumb-wrap {
  aspect-ratio: 16 / 9;
  border-radius: var(--nt-radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
}

.article-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.entry-title a {
  color: var(--nt-text-main);
}

.entry-title a:hover {
  color: var(--nt-primary);
}

.entry-meta {
  font-size: 12px;
  color: var(--nt-text-muted);
  margin-bottom: 12px;
  display: flex;
  gap: 6px;
}

.entry-summary {
  font-size: 13px;
  color: var(--nt-text-muted);
  margin-bottom: 16px;
  flex: 1;
}

.article-readmore {
  font-size: 13px;
  font-weight: 700;
  color: var(--nt-primary);
}

.nextech-page-card {
  background-color: var(--nt-surface);
  border: 1px solid var(--nt-border);
  border-radius: var(--nt-radius-lg);
  padding: 32px;
}

/* Page Layouts & Headers */
.nextech-page-spacing {
  padding-top: 32px;
  padding-bottom: 48px;
}

.nextech-single-container {
  max-width: 860px;
  margin: 0 auto;
  padding-top: 32px;
  padding-bottom: 48px;
}

.nextech-page-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--nt-border);
}

.nextech-page-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--nt-text-main);
  margin: 0;
}

.search-query-highlight {
  color: var(--nt-primary);
}

.section-header-center {
  text-align: center;
  justify-content: center;
}

.article-featured-img {
  width: 100%;
  height: auto;
  border-radius: var(--nt-radius);
  margin-bottom: 24px;
}

.back-home-link {
  color: var(--nt-primary);
  font-weight: 600;
  font-size: 13px;
}

.back-home-link:hover {
  text-decoration: underline;
}

.entry-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  margin-top: 24px;
  border-top: 1px solid var(--nt-border-light);
  font-size: 13px;
  color: var(--nt-text-muted);
}

/* Empty States & 404 */
.empty-state-box {
  background: var(--nt-surface);
  border: 1px solid var(--nt-border);
  border-radius: var(--nt-radius-lg);
  padding: 48px 24px;
  text-align: center;
  max-width: 560px;
  margin: 32px auto;
}

.empty-state-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--nt-text-main);
  margin-bottom: 10px;
}

.empty-state-text {
  font-size: 14px;
  color: var(--nt-text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.empty-state-search {
  max-width: 420px;
  margin: 0 auto 24px;
}

.empty-state-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.nextech-404-box {
  padding: 64px 32px;
}

.nextech-404-badge {
  font-size: 64px;
  font-weight: 900;
  color: var(--nt-primary);
  line-height: 1;
  display: block;
  margin-bottom: 16px;
  font-family: var(--nt-font-heading);
}

/* Comments Section */
.comments-area {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--nt-border);
}

.comments-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--nt-text-main);
  margin-bottom: 20px;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.comment-list .comment {
  background: var(--nt-background);
  border: 1px solid var(--nt-border);
  border-radius: var(--nt-radius);
  padding: 16px 20px;
  margin-bottom: 16px;
}

.no-comments {
  font-size: 13px;
  color: var(--nt-text-muted);
  margin-top: 16px;
}

/* Order Item & District Enhancements */
.nextech-order-item-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nextech-order-item-thumb {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: var(--nt-radius-sm);
  border: 1px solid var(--nt-border);
  background: #ffffff;
  padding: 2px;
  flex-shrink: 0;
}

.nextech-order-item-info {
  display: flex;
  flex-direction: column;
}

.nextech-order-item-title {
  font-weight: 600;
  color: var(--nt-text-main);
  font-size: 14px;
}

.nextech-order-item-sku {
  font-size: 11px;
  color: var(--nt-text-muted);
  margin-top: 2px;
}

.nextech-order-district-notice {
  margin-top: 12px;
  padding: 12px 16px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--nt-radius);
  font-size: 13px;
  color: #0369a1;
}

/* ==========================================================================
   10. Footer Styling
   ========================================================================== */
.nextech-footer {
  background-color: #0f172a;
  color: #cbd5e1;
  font-size: 14px;
  margin-top: 64px;
}

.footer-main-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding: 64px 16px 40px;
}

.footer-logo-text {
  font-family: var(--nt-font-heading);
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
}

.footer-logo-text .logo-accent {
  color: #38bdf8;
}

.footer-logo-text .logo-bd {
  font-size: 13px;
  font-weight: 800;
  background: #38bdf8;
  color: #0f172a;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.footer-about-text {
  font-size: 13px;
  line-height: 1.6;
  color: #94a3b8;
  margin: 16px 0 20px;
}

.footer-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-pill {
  font-size: 11px;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 9999px;
  color: #e2e8f0;
}

.footer-heading {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links li a {
  color: #94a3b8;
  font-size: 13px;
  transition: color 0.15s ease;
}

.footer-links li a:hover {
  color: #38bdf8;
}

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 0;
  color: #94a3b8;
}

.contact-link {
  color: #e2e8f0;
}

.contact-link:hover {
  color: #38bdf8;
}

.footer-gateways-badge {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.gateways-label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  display: block;
  margin-bottom: 8px;
}

.gateway-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gw-chip {
  font-size: 11px;
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.08);
  color: #38bdf8;
  padding: 3px 8px;
  border-radius: 4px;
}

.footer-bottom-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
}

.copyright-text {
  margin-bottom: 0;
}

/* ==========================================================================
   11. Responsive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
  .header-search-wrap {
    max-width: 380px;
  }

  .nextech-products-grid,
  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main-row {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-search-btn {
    display: flex;
  }

  .header-search-wrap {
    display: none;
  }

  .header-main-row {
    height: 60px;
  }

  .hero-title {
    font-size: 26px;
  }

  .nextech-hero-card {
    padding: 32px 20px;
  }

  .nextech-products-grid,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

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

  .promo-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .nextech-blog-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .cta-form {
    max-width: 100%;
  }

  .woocommerce-checkout form.checkout {
    grid-template-columns: 1fr;
  }

  .footer-main-row {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }
}


/* ==========================================================================
   20. Production UX: Hero Slider, Live Search, Cart Drawer & Shop Filters
   ========================================================================== */
.nextech-hero-slider{position:relative;background:var(--nt-secondary);border-radius:var(--nt-radius-lg);overflow:hidden;color:#fff;box-shadow:var(--nt-shadow-lg)}
.hero-slides{position:relative;min-height:430px}.hero-slide{display:none;grid-template-columns:1.1fr .9fr;align-items:center;gap:30px;padding:48px 56px;min-height:430px}.hero-slide.is-active{display:grid}.hero-slide-content{position:relative;z-index:2}.hero-slide-image{display:flex;align-items:center;justify-content:center;height:330px}.hero-slide-image img{max-height:320px;width:auto;object-fit:contain;filter:drop-shadow(0 18px 24px rgba(0,0,0,.25))}.hero-slide-price{font-size:28px;font-weight:800;margin:14px 0}.hero-slide-price del{opacity:.55;font-size:17px;margin-right:8px}.hero-slider-arrow{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:42px;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font-size:30px;cursor:pointer;z-index:4}.hero-slider-arrow:hover{background:rgba(255,255,255,.25)}.hero-prev{left:16px}.hero-next{right:16px}.hero-slider-dots{position:absolute;left:50%;bottom:70px;transform:translateX(-50%);display:flex;gap:7px;z-index:5}.hero-dot{width:9px;height:9px;border:0;border-radius:50%;background:rgba(255,255,255,.4);padding:0;cursor:pointer}.hero-dot.is-active{transform:scale(1.35);background:#fff}.nextech-hero-slider .hero-trust-bar{position:absolute;bottom:0;left:0;right:0;margin:0;background:rgba(0,0,0,.18);backdrop-filter:blur(8px);z-index:3}

.live-search-wrap{position:relative}.nextech-live-search-results{position:absolute;top:calc(100% + 8px);left:0;right:0;background:#fff;border:1px solid var(--nt-border);border-radius:12px;box-shadow:var(--nt-shadow-lg);z-index:9999;overflow:hidden}.live-search-item{display:flex;align-items:center;gap:12px;padding:10px 12px;color:var(--nt-text-main);border-bottom:1px solid var(--nt-border-light)}.live-search-item:last-child{border-bottom:0}.live-search-item img{width:44px;height:44px;object-fit:contain;border-radius:7px}.live-search-item:hover{background:var(--nt-background)}.live-search-price{margin-left:auto;font-weight:700}.live-search-empty{padding:14px;color:var(--nt-text-muted)}

.cart-drawer-overlay{position:fixed;inset:0;background:rgba(15,23,42,.5);opacity:0;visibility:hidden;transition:.2s;z-index:9998}.cart-drawer-overlay.is-open{opacity:1;visibility:visible}.cart-drawer{position:fixed;right:0;top:0;bottom:0;width:min(430px,94vw);background:#fff;z-index:9999;transform:translateX(105%);transition:transform .25s ease;box-shadow:-12px 0 35px rgba(0,0,0,.15);display:flex;flex-direction:column}.cart-drawer.is-open{transform:translateX(0)}.cart-drawer-header{display:flex;justify-content:space-between;align-items:center;padding:18px;border-bottom:1px solid var(--nt-border)}.cart-drawer-header h2{margin:0}.cart-drawer-header button{font-size:28px;border:0;background:none;cursor:pointer}.cart-drawer-items{padding:15px;overflow:auto;flex:1}.cart-drawer-item{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--nt-border-light)}.cart-drawer-item>img{width:68px;height:68px;object-fit:contain;border:1px solid var(--nt-border);border-radius:8px}.cart-drawer-item-info{flex:1}.cart-drawer-item-info>a{display:block;font-weight:700;color:var(--nt-text-main);margin-bottom:8px}.cart-drawer-qty{display:flex;align-items:center;gap:8px}.cart-drawer-qty button.nextech-cart-qty{width:28px;height:28px;border:1px solid var(--nt-border);background:#fff;border-radius:5px;cursor:pointer}.cart-drawer-qty .nextech-cart-remove{border:0;background:none;color:var(--nt-sale);cursor:pointer;font-size:12px;margin-left:auto}.cart-drawer-footer{padding:16px;border-top:1px solid var(--nt-border);display:grid;gap:10px}.cart-drawer-footer>div{display:flex;justify-content:space-between}.cart-view-link{text-align:center}.cart-drawer-empty{text-align:center;padding:40px 20px}

.nextech-shop-filter-sidebar{float:left;width:270px;margin:0 28px 28px 0;position:relative;z-index:2}.nextech-filter-sidebar-inner{background:#fff;border:1px solid var(--nt-border);border-radius:var(--nt-radius);box-shadow:var(--nt-shadow-sm);padding:18px;position:sticky;top:24px}.nextech-filter-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.nextech-filter-heading h3{margin:0;font-size:18px}.nextech-filter-reset{font-size:12px;font-weight:700}.nextech-shop-filter-form{display:grid;gap:16px}.filter-group{display:flex;flex-direction:column;gap:7px}.filter-group label{font-weight:700;font-size:13px}.filter-group input,.filter-group select{width:100%;min-height:42px;border:1px solid var(--nt-border);border-radius:7px;padding:8px 10px;background:#fff;box-sizing:border-box}.filter-check{display:flex;align-items:center;gap:8px;min-height:42px;font-weight:600}.filter-check input{width:auto}.filter-price-group input[type=range]{padding:0;min-height:20px;accent-color:var(--nt-primary)}.filter-price-values{display:flex;justify-content:space-between;gap:8px;font-size:12px;font-weight:700;color:var(--nt-text-muted)}.nextech-shop-filter-form .nextech-btn{width:100%;min-height:42px;display:inline-flex;align-items:center;justify-content:center}.nextech-shop-filter-sidebar~.woocommerce-result-count,.nextech-shop-filter-sidebar~.woocommerce-ordering,.nextech-shop-filter-sidebar~.products,.nextech-shop-filter-sidebar~.woocommerce-pagination{margin-left:298px}.nextech-shop-filter-sidebar~.products{clear:none}.woocommerce .nextech-shop-filter-sidebar~.woocommerce-result-count{min-height:42px}.woocommerce .nextech-shop-filter-sidebar~.products:after{content:'';display:block;clear:both}
@media(max-width:900px){.nextech-shop-filter-sidebar{float:none;width:auto;margin:0 0 20px}.nextech-filter-sidebar-inner{position:static}.nextech-shop-filter-sidebar~.woocommerce-result-count,.nextech-shop-filter-sidebar~.woocommerce-ordering,.nextech-shop-filter-sidebar~.products,.nextech-shop-filter-sidebar~.woocommerce-pagination{margin-left:0}.nextech-shop-filter-form{grid-template-columns:1fr 1fr}.nextech-shop-filter-form .filter-price-group{grid-column:1/-1}.nextech-shop-filter-form .nextech-btn{width:auto}}
@media(max-width:768px){.hero-slide{grid-template-columns:1fr;padding:32px 28px 70px;min-height:520px}.hero-slide-image{height:210px;order:-1}.hero-slide-image img{max-height:200px}.hero-slider-dots{bottom:16px}.nextech-hero-slider .hero-trust-bar{position:static;display:grid;grid-template-columns:1fr;padding:8px 14px}.nextech-shop-filter-form{grid-template-columns:1fr}.nextech-shop-filter-form .filter-price-group{grid-column:auto}.nextech-shop-filter-form .nextech-btn{width:100%}.cart-drawer{width:100%}}
@media(max-width:480px){.hero-slide{padding-left:20px;padding-right:20px}.hero-title{font-size:24px}}


/* Product-card hover actions: clean overlay on desktop, always accessible on touch devices. */
.product-card-thumb-wrap { position: relative; background: #f8fafc; aspect-ratio: 1 / 1; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.product-card-thumb { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .35s ease, filter .25s ease; }
.nextech-product-card:hover .product-card-thumb { transform: scale(1.04); }
.product-card-hover-actions {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  display: flex;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  margin: 0;
}
.nextech-product-card:hover .product-card-hover-actions,
.nextech-product-card:focus-within .product-card-hover-actions {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.product-card-hover-actions .button,
.product-card-hover-actions .product-card-details-btn {
  flex: 1;
  width: auto;
  min-height: 38px;
}
.product-card-hover-actions .added_to_cart { display: none; }
@media (max-width: 768px), (hover: none) {
  .product-card-hover-actions {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0;
    margin-top: 10px;
  }
}


/* v1.2.9: clean Bangladesh checkout */
.woocommerce-checkout form.checkout .form-row { margin-bottom: 16px; }
.woocommerce-checkout form.checkout .form-row label { font-weight: 600; margin-bottom: 7px; display:block; }
.woocommerce-checkout form.checkout input,
.woocommerce-checkout form.checkout select,
.woocommerce-checkout form.checkout textarea { min-height: 48px; border-radius: 10px; }
.woocommerce-checkout form.checkout .col2-set { display:block; }
.woocommerce-checkout form.checkout .col-1,
.woocommerce-checkout form.checkout .col-2 { width:100%; float:none; }
.woocommerce-checkout #ship-to-different-address,
.woocommerce-checkout .shipping_address { display:none !important; }
.woocommerce-checkout .woocommerce-additional-fields { margin-top: 8px; }
.woocommerce-checkout .checkout_coupon { border-radius: 12px; }
@media (max-width: 640px) {
  .woocommerce-checkout form.checkout .form-row-first,
  .woocommerce-checkout form.checkout .form-row-last { width:100%; float:none; }
}

/* v1.3.0 production hardening */
.nextech-product-card .product-card-body { position: relative; }
.product-card-thumb { display:block; aspect-ratio:1/1; }
body.nextech-scroll-locked { overflow:hidden; }
.cart-drawer:focus { outline:none; }
.cart-drawer[aria-hidden="true"] { pointer-events:none; }
@media (prefers-reduced-motion: reduce) {
  .nextech-hero-slider *, .cart-drawer, .cart-drawer-overlay, .product-card-thumb, .product-card-hover-actions { transition:none !important; animation:none !important; }
}

/* v1.3.0: stable shop/filter geometry */
@media (min-width: 901px) {
  .nextech-shop-filter-sidebar ~ ul.products,
  .nextech-shop-filter-sidebar ~ .products { width: calc(100% - 298px) !important; float: right !important; margin-left: 0 !important; }
}
.woocommerce-checkout #customer_details > .col-2 { display:none !important; }

/* ==========================================================================
   21. Production layout hardening
   Prevent floated shop filters from allowing the footer to sit beside or
   above product results on product-category/shop archives.
   ========================================================================== */
#page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
#page > .site-main {
  flex: 1 0 auto;
  width: 100%;
  box-sizing: border-box;
}
#page > .site-main.nextech-woocommerce-page {
  display: flow-root;
  min-width: 0;
}
.nextech-footer {
  clear: both;
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Keep WooCommerce archive controls/results inside the content flow. */
.nextech-woocommerce-page .woocommerce,
.nextech-woocommerce-page .woocommerce::after,
.nextech-woocommerce-page .woocommerce::before {
  box-sizing: border-box;
}
.nextech-woocommerce-page .woocommerce::after {
  content: "";
  display: table;
  clear: both;
}
.nextech-woocommerce-page ul.products {
  position: relative;
  z-index: 1;
}

/* Product-category pages must never inherit a legacy float that can escape
   the archive content area. */
body.tax-product_cat .nextech-woocommerce-page,
body.post-type-archive-product .nextech-woocommerce-page,
body.woocommerce-shop .nextech-woocommerce-page {
  overflow: visible;
}

/* Mobile Bazar storefront identity */
.site-logo-text,
.footer-logo-text {
  white-space: nowrap;
}
@media (max-width: 900px) {
  #page > .site-main.nextech-woocommerce-page {
    display: flow-root;
  }
}

/* v1.4.2 - Mobile Bazar order confirmation */
.mobile-bazar-order-summary {
  margin: 24px 0;
  padding: 22px;
  background: var(--nt-surface, #fff);
  border: 1px solid var(--nt-border, #e2e8f0);
  border-radius: var(--nt-radius, 14px);
  box-shadow: var(--nt-shadow-sm, 0 2px 10px rgba(15,23,42,.05));
}
.mobile-bazar-order-summary h2 { margin: 0 0 16px; font-size: 20px; }
.mobile-bazar-order-items { display: grid; gap: 0; }
.mobile-bazar-order-item {
  display: grid;
  grid-template-columns: 64px minmax(0,1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--nt-border-light, #eef2f7);
}
.mobile-bazar-order-item:first-child { border-top: 0; }
.mobile-bazar-order-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 1px solid var(--nt-border, #e2e8f0);
  border-radius: 10px;
  background: #f8fafc;
}
.mobile-bazar-order-item-info { display: grid; gap: 5px; min-width: 0; }
.mobile-bazar-order-item-info strong { overflow-wrap: anywhere; }
.mobile-bazar-order-item-info span { font-size: 13px; color: var(--nt-text-muted, #64748b); }
.mobile-bazar-order-totals { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--nt-border, #e2e8f0); display: grid; gap: 9px; }
.mobile-bazar-order-totals > div { display:flex; justify-content:space-between; gap:20px; }
.mobile-bazar-order-totals .order-total { padding-top: 10px; border-top: 1px solid var(--nt-border-light, #eef2f7); font-size: 17px; }

/* Never let a stale WooCommerce free-shipping rate visually override the
   district delivery rule once a district is selected. */
.woocommerce-checkout .woocommerce-shipping-methods .shipping_method[value*="free_shipping"] + label { display:none; }

@media (max-width: 640px) {
  .mobile-bazar-order-summary { padding: 16px; }
  .mobile-bazar-order-item { grid-template-columns: 54px minmax(0,1fr); }
  .mobile-bazar-order-item > strong { grid-column: 2; }
  .mobile-bazar-order-item img { width:54px; height:54px; }
}

/* v1.4.2 - checkout order review must always expose the products */
.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table { display: table !important; width: 100% !important; visibility: visible !important; opacity: 1 !important; }
.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tbody { display: table-row-group !important; }
.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tr { display: table-row !important; }
.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table td,
.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table th { display: table-cell !important; }
.mobile-bazar-checkout-item { display:inline-flex; align-items:center; gap:10px; min-width:0; vertical-align:middle; }
.mobile-bazar-checkout-item-thumb { width:52px; height:52px; object-fit:contain; border:1px solid var(--nt-border,#e2e8f0); border-radius:8px; background:#f8fafc; flex:0 0 52px; }
.mobile-bazar-checkout-item-name { overflow-wrap:anywhere; font-weight:700; }
@media(max-width:640px){
  .mobile-bazar-checkout-item-thumb{width:44px;height:44px;flex-basis:44px}
  .mobile-bazar-checkout-item{gap:8px}
}

/* v1.4.3 final archive containment: never allow WooCommerce loop floats to
   escape the main content and visually collide with the footer. */
.nextech-woocommerce-page .woocommerce { display: flow-root; min-width: 0; }
.nextech-woocommerce-page .woocommerce ul.products { display: grid !important; float: none !important; clear: both !important; width: 100% !important; }
.nextech-shop-filter-sidebar { float: left; }
.nextech-woocommerce-page .woocommerce-pagination { clear: both; }
@media (max-width: 900px) {
  .nextech-shop-filter-sidebar { float: none; width: 100%; }
  .nextech-woocommerce-page .woocommerce ul.products { width: 100% !important; }
}
