/* ==========================================================================
   HS Tronics - Modern Cyber-Tech Design System & Component Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --bg-dark: #070a12;
  --bg-card: #0f172a;
  --bg-card-hover: #1e293b;
  --bg-glass: rgba(15, 23, 42, 0.88);
  
  --border-color: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(6, 182, 212, 0.4);
  
  --primary-cyan: #06b6d4;
  --primary-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --secondary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --accent-amber: #f59e0b;
  --accent-purple: #8b5cf6;
  --whatsapp-green: #25d366;
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-glow: 0 0 25px rgba(6, 182, 212, 0.2);
  --shadow-card: 0 12px 35px rgba(0, 0, 0, 0.45);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Form Controls & Inputs */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #f3f4f6;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 8px;
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  background: #1e293b !important;
  border-color: #06b6d4 !important;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.3) !important;
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.brand-logo span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 1.2rem;
  font-weight: 900;
  box-shadow: var(--shadow-glow);
}

.search-form {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  color: #fff;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--primary-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 20px;
  background: var(--primary-gradient);
  color: #000;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.5);
}

.badge {
  background: var(--accent-amber);
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
}

/* Layout Containers */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
  width: 100%;
}

/* Hero Showcase Banner - Perfectly Centered Alignment */
.hero-banner {
  margin-top: 10px;
  padding: 0 24px;
}

.hero-card {
  max-width: 1280px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(7, 10, 18, 0.95) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  color: var(--primary-cyan);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-align: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 12px;
  text-align: center;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 760px;
  margin: 0 auto 20px auto;
  text-align: center;
}

/* Single-Line Professional Flash Sale Pill with Inline Timer */
.promo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid var(--accent-amber);
  padding: 8px 22px;
  border-radius: 40px;
  margin: 10px auto 0 auto;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
  flex-wrap: wrap;
}

.flash-tag {
  background: var(--accent-amber);
  color: #000000;
  font-weight: 800;
  font-size: 0.76rem;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.promo-msg {
  color: #f3f4f6;
  font-size: 0.9rem;
  font-weight: 600;
}

.coupon-code {
  background: var(--accent-amber);
  color: #000;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-block;
}

.inline-timer {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid #ef4444;
  color: #f87171;
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.35);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px #ef4444; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.timer-label {
  color: #f87171;
  font-size: 0.78rem;
  font-weight: 700;
  margin-right: 2px;
}

.time-num {
  font-family: monospace;
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.inline-timer small {
  font-size: 0.72rem;
  color: #f87171;
  font-weight: 700;
  text-transform: lowercase;
  margin-right: 2px;
}

.time-colon {
  color: #ef4444;
  font-weight: 900;
  font-size: 1rem;
}

/* Category Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.category-list {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.cat-pill {
  padding: 8px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.cat-pill.active, .cat-pill:hover {
  background: var(--primary-cyan);
  color: #000;
  border-color: var(--primary-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

/* Product Cards Grid - Exactly 3 Products Per Row on Desktop/Laptop */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  background: #0b1120;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img {
  transform: scale(1.08);
}

.stock-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
}

.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-cat {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--primary-cyan);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
}

.product-specs {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.btn-add-cart {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: 0.2s;
}

.btn-add-cart:hover {
  background: var(--primary-cyan);
  color: #000;
  border-color: var(--primary-cyan);
}

/* Payment Methods Grid Cards Layout for Checkout */
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.payment-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-card:hover, .payment-card.selected {
  background: rgba(6, 182, 212, 0.08);
  border-color: var(--primary-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
}

.payment-card input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-cyan);
  cursor: pointer;
}

.payment-card strong {
  display: block;
  font-size: 0.95rem;
  color: #ffffff;
}

/* Admin Table & Badges */
.admin-table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-card);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-cyan);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  font-size: 0.9rem;
}

.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-badge.pending { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid #f59e0b; }
.status-badge.verified { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid #10b981; }
.status-badge.dispatched { background: rgba(6, 182, 212, 0.15); color: #06b6d4; border: 1px solid #06b6d4; }
.status-badge.rejected { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid #ef4444; }

/* Order Progress Timeline Tracker */
.tracking-timeline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin: 24px 0 32px;
  padding: 0 10px;
}

.tracking-timeline::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 30px;
  right: 30px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.tracking-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
}

.tracking-step.completed .step-icon {
  background: #10b981;
  border-color: #10b981;
  color: #000000;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.tracking-step.completed .step-label {
  color: #10b981;
}

.tracking-step.active .step-icon {
  background: var(--primary-cyan);
  border-color: var(--primary-cyan);
  color: #000000;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
  transform: scale(1.15);
}

.tracking-step.active .step-label {
  color: var(--primary-cyan);
  font-weight: 800;
}

/* Floating WhatsApp Chat Button - Compact & Sleek */
.whatsapp-float-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99999;
  background: #25d366;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 25px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: all 0.2s ease;
}

.whatsapp-float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon-svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  fill: #ffffff !important;
}

/* Mobile & Touch Responsive Styles */
@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 12px;
  }
  
  .brand-logo {
    font-size: 1.35rem;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .search-form {
    order: 3;
    max-width: 100%;
    width: 100%;
  }

  .nav-actions {
    order: 2;
    gap: 8px;
  }

  .btn-icon, .btn-primary {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .hero-banner {
    padding: 0 16px;
  }

  .hero-card {
    padding: 24px 20px;
    text-align: center;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.88rem;
  }

  .promo-pill {
    font-size: 0.78rem;
    padding: 6px 12px;
  }

  .section-container {
    padding: 16px;
  }

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

  .product-img-wrapper {
    height: 140px;
  }

  .product-body {
    padding: 12px;
  }

  .product-title {
    font-size: 0.9rem;
    height: 2.5em;
  }

  .product-specs {
    display: none;
  }

  .product-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .product-price {
    font-size: 1rem;
    text-align: center;
  }

  .btn-add-cart, .product-footer .btn-primary {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 7px 0;
    font-size: 0.8rem;
  }
}
