/* =====================================================
   VPN STORE PRO - Neon Cyber Dark Theme
   Custom CSS - No framework dependency
   ===================================================== */

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

/* =====================================================
   CSS VARIABLES - Design Tokens
   ===================================================== */
:root {
  /* Colors */
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --primary-dark: #3730a3;
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --success: #10b981;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #2563eb;

  /* Background */
  --bg-base: #f1f5f9;
  --bg-dark: #e2e8f0;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-input: #ffffff;
  --bg-elevated: #ffffff;
  --bg-modal: rgba(255, 255, 255, 0.98);

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-accent: #4f46e5;

  /* Borders */
  --border: #cbd5e1;
  --border-hover: #94a3b8;
  --border-active: #64748b;

  /* Glows & Shadows */
  --glow-primary: 0 4px 20px rgba(79, 70, 229, 0.08);
  --glow-accent: 0 4px 20px rgba(124, 58, 237, 0.08);
  --shadow-card: 0 4px 12px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
  --shadow-card-hover: 0 20px 25px -5px rgba(79, 70, 229, 0.12), 0 8px 10px -6px rgba(79, 70, 229, 0.12);
  --selection-bg: rgba(79, 70, 229, 0.15);
  --glow-focus: rgba(79, 70, 229, 0.15);

  /* Typography */
  --font-main: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--selection-bg);
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

/* =====================================================
   SCROLLBAR
   ===================================================== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* =====================================================
   LAYOUT
   ===================================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-fluid {
  max-width: 100%;
  padding: 0 32px;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: start;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.product-sidebar-sticky {
  position: sticky;
  top: 88px;
}

.products-main-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}

.products-sidebar-sticky {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-page-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.hero-visual-inner {
  position: relative;
  width: 380px;
  height: 380px;
}

.category-card {
  text-align: center;
  padding: 24px 16px;
  width: 200px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  flex-shrink: 0;
}

.navbar-brand .brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--glow-primary);
  color: #ffffff;
}

.navbar-brand span {
  background: linear-gradient(135deg, #a78bfa, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.navbar-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.cart-btn:hover {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.1);
  box-shadow: var(--glow-primary);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.6);
}

.user-dropdown {
  position: relative;
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
}

.user-btn:hover {
  border-color: var(--primary);
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 100;
}

.user-dropdown:hover .dropdown-menu,
.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.dropdown-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.dropdown-item.danger:hover {
  color: var(--danger);
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* Mobile Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #5b21b6);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.5);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #0891b2);
  color: #fff;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.35);
}

.btn-accent:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-outline:hover:not(:disabled) {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.1);
  color: var(--primary-light);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

.btn-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  background: rgba(16, 185, 129, 0.25);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-xl {
  padding: 18px 40px;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

.btn-full {
  width: 100%;
}

.btn-icon {
  padding: 8px;
  border-radius: var(--radius);
  aspect-ratio: 1;
}

/* =====================================================
   CARDS
   ===================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.5), transparent);
  opacity: 0;
  transition: var(--transition);
}

.card:hover::before {
  opacity: 1;
}

/* =====================================================
   PRODUCT CARDS
   ===================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.product-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.product-card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.product-card-image .product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-popular {
  background: rgba(6, 182, 212, 0.2);
  color: var(--accent);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-featured {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-sale {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-new {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-primary {
  background: rgba(124, 58, 237, 0.2);
  color: var(--primary-light);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.product-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.product-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.stars {
  color: var(--warning);
  display: flex;
  gap: 1px;
}

.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.price-current {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-light);
  font-family: var(--font-mono);
}

.price-original {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-family: var(--font-mono);
}

.price-discount {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.product-card-footer {
  padding: 0 20px 20px;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  animation: pulse-glow 4s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
  animation: pulse-glow 4s ease-in-out infinite reverse;
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--primary-light);
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #a78bfa, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 540px;
}

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

.hero-grid-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-stats {
  display: flex;
  margin-top: 40px;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  max-width: 220px;
}

.hero-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =====================================================
   SECTION STYLES
   ===================================================== */
.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

.section-lg {
  padding: 120px 0;
}

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

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.2;
}

.section-title span {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.6;
}

/* =====================================================
   CATEGORY TABS
   ===================================================== */
.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.category-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.category-tab:hover,
.category-tab.active {
  border-color: var(--primary);
  color: var(--text-primary);
  background: rgba(124, 58, 237, 0.12);
}

.category-tab.active {
  color: var(--primary-light);
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.2);
}

/* =====================================================
   SEARCH & FILTER
   ===================================================== */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: var(--transition);
  max-width: 480px;
}

.mobile-search-wrapper {
  display: none;
}

.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--glow-focus);
}

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--text-primary);
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

/* =====================================================
   FORMS
   ===================================================== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--glow-focus);
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 40px;
  cursor: pointer;
}

.form-error {
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 6px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* =====================================================
   ALERTS & NOTIFICATIONS
   ===================================================== */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success);
}

.alert-error,
.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--warning);
}

.alert-info {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--accent);
}

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  min-width: 300px;
  max-width: 400px;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  pointer-events: all;
  animation: slide-in-right 0.3s ease;
}

.toast.success {
  border-left: 3px solid var(--success);
}

.toast.error {
  border-left: 3px solid var(--danger);
}

/* =====================================================
   TABLES
   ===================================================== */
.table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* =====================================================
   STATUS BADGES
   ===================================================== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-pending {
  background: rgba(245, 158, 11, 0.12);
  color: var(--warning);
}

.status-processing {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent);
}

.status-completed {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
}

.status-cancelled {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
}

.status-paid {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
}

.status-unpaid {
  background: rgba(245, 158, 11, 0.12);
  color: var(--warning);
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  padding: 24px 0;
  flex-wrap: wrap;
}

.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.page-btn:hover,
.page-btn.active {
  border-color: var(--primary);
  color: var(--primary-light);
  background: rgba(124, 58, 237, 0.12);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 16px 0 24px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 38px;
  height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
  text-decoration: none;
  font-size: 0.9rem;
}

.social-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(79, 70, 229, 0.08);
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-primary);
  padding-left: 6px;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.footer-copy span {
  color: var(--primary-light);
}

/* =====================================================
   SOCIAL PROOF TICKER
   ===================================================== */
.social-proof-bar {
  background: rgba(124, 58, 237, 0.05);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 40px;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.ticker-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.ticker-name {
  color: var(--text-primary);
  font-weight: 600;
}

.ticker-amount {
  color: var(--success);
  font-weight: 700;
  font-family: var(--font-mono);
}

/* =====================================================
   ADMIN LAYOUT
   ===================================================== */
.admin-layout {
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 260px;
  overflow-y: auto;
  z-index: 100;
  transition: var(--transition);
}

.sidebar-logo {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo .brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--glow-primary);
}

.sidebar-logo .brand-text {
  font-size: 1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a78bfa, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-section {
  padding: 20px 16px 8px;
}

.sidebar-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding: 0 8px;
  margin-bottom: 6px;
}

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  transition: var(--transition);
  text-decoration: none;
}

.sidebar-item a:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--primary);
}

.sidebar-item a.active {
  background: rgba(79, 70, 229, 0.1) !important;
  color: var(--primary) !important;
}

.sidebar-item a .icon {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  opacity: 0.8;
}

.sidebar-item a.active .icon {
  opacity: 1;
}

.sidebar-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.sidebar-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.sidebar-item a:hover .sidebar-title {
  color: var(--primary);
}

.sidebar-item a.active .sidebar-title {
  color: var(--primary);
}

.sidebar-subtitle {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.sidebar-item a:hover .sidebar-subtitle {
  color: var(--text-secondary);
}

.sidebar-item a.active .sidebar-subtitle {
  color: var(--primary);
  opacity: 0.8;
}

.sidebar-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.admin-main {
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg-base);
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-page-title {
  font-size: 1rem;
  font-weight: 700;
}

.admin-content {
  padding: 32px;
  flex: 1;
}

/* =====================================================
   STAT CARDS
   ===================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--border-hover);
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.stat-card-icon.purple {
  background: rgba(124, 58, 237, 0.15);
}

.stat-card-icon.cyan {
  background: rgba(6, 182, 212, 0.15);
}

.stat-card-icon.green {
  background: rgba(16, 185, 129, 0.15);
}

.stat-card-icon.amber {
  background: rgba(245, 158, 11, 0.15);
}

.stat-card-icon.red {
  background: rgba(239, 68, 68, 0.15);
}

.stat-card-value {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-card-trend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 8px;
}

.trend-up {
  color: var(--success);
}

.trend-down {
  color: var(--danger);
}

/* =====================================================
   FEATURE HIGHLIGHTS
   ===================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.03), transparent);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =====================================================
   CHECKOUT & PAYMENT
   ===================================================== */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.checkout-left-col {
  grid-column: 1;
  grid-row: 1;
}

.checkout-right-col {
  grid-column: 2;
  grid-row: 1;
}

.checkout-instructions-col {
  grid-column: 1;
  grid-row: 2;
}

.checkout-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.payment-qr-box {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: center;
  max-width: 280px;
  margin: 0 auto;
}

.payment-qr-box img {
  width: 100%;
  border-radius: var(--radius);
}

.bank-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.bank-info-row:last-child {
  border-bottom: none;
}

.bank-info-label {
  color: var(--text-muted);
}

.bank-info-value {
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius);
  color: var(--primary-light);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.copy-btn:hover {
  background: rgba(124, 58, 237, 0.2);
}

.transfer-content {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--warning);
  letter-spacing: 0.05em;
}

/* =====================================================
   LICENSE KEY DISPLAY
   ===================================================== */
.license-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
}

.license-key {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--success);
  word-break: break-all;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius);
  margin-top: 10px;
  line-height: 1.6;
}

/* =====================================================
   STAR RATING
   ===================================================== */
.star-rating {
  display: flex;
  gap: 4px;
}

.star-rating input {
  display: none;
}

.star-rating label {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--border);
  transition: var(--transition);
}

.star-rating input:checked~label,
.star-rating label:hover,
.star-rating label:hover~label {
  color: var(--warning);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes pulse-glow {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(32px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.animate-fade-up {
  animation: fade-in-up 0.6s ease forwards;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* Stagger delays */
.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.text-primary-color {
  color: var(--primary-light);
}

.text-accent {
  color: var(--accent);
}

.text-success {
  color: var(--success);
}

.text-danger {
  color: var(--danger);
}

.text-warning {
  color: var(--warning);
}

.text-muted {
  color: var(--text-muted);
}

.text-secondary {
  color: var(--text-secondary);
}

.font-mono {
  font-family: var(--font-mono);
}

.font-bold {
  font-weight: 700;
}

.font-black {
  font-weight: 800;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-1 {
  gap: 4px;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 12px;
}

.gap-4 {
  gap: 16px;
}

.gap-6 {
  gap: 24px;
}

.gap-8 {
  gap: 32px;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-1 {
  flex: 1;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.min-h-screen {
  min-height: 100vh;
}

.mb-1 {
  margin-bottom: 4px;
}

.mb-2 {
  margin-bottom: 8px;
}

.mb-3 {
  margin-bottom: 12px;
}

.mb-4 {
  margin-bottom: 16px;
}

.mb-6 {
  margin-bottom: 24px;
}

.mb-8 {
  margin-bottom: 32px;
}

.mt-auto {
  margin-top: auto;
}

.ml-auto {
  margin-left: auto;
}

.p-4 {
  padding: 16px;
}

.p-6 {
  padding: 24px;
}

.px-4 {
  padding-left: 16px;
  padding-right: 16px;
}

.py-2 {
  padding-top: 8px;
  padding-bottom: 8px;
}

.rounded {
  border-radius: var(--radius);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-full {
  border-radius: var(--radius-full);
}

.border {
  border: 1px solid var(--border);
}

.border-top {
  border-top: 1px solid var(--border);
}

.opacity-50 {
  opacity: 0.5;
}

.overflow-hidden {
  overflow: hidden;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.gradient-text {
  background: linear-gradient(135deg, #a78bfa, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.loading {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* =====================================================
   RESPONSIVE LAYOUTS & COMPONENTS
   ===================================================== */
html,
body {
  overflow-x: hidden !important;
  max-width: 100%;
  width: 100%;
  position: relative;
}

/* =====================================================
   BREAKPOINT: 1024px (Small Desktop / Tablet Landscape)
   ===================================================== */
@media (max-width: 1024px) {
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .checkout-left-col {
    grid-column: 1;
    grid-row: 1;
  }

  .checkout-right-col {
    grid-column: 1;
    grid-row: 2;
  }

  .checkout-instructions-col {
    grid-column: 1;
    grid-row: 3;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-main {
    margin-left: 0;
  }

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

  .product-detail-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }

  .product-sidebar-sticky {
    position: static;
  }

  .product-info-column,
  .product-purchase-column {
    display: contents !important;
  }

  .product-gallery-card {
    order: 1 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
  }

  .product-purchase-card {
    order: 2 !important;
    width: 100% !important;
  }

  .product-details-group {
    order: 3 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    width: 100% !important;
  }

  .product-details-group .card {
    margin-bottom: 0 !important;
  }

  .cart-page-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* =====================================================
   BREAKPOINT: 768px (Tablet Portrait / Large Mobile)
   ===================================================== */
@media (max-width: 768px) {
  /* Navigation */
  .navbar {
    padding: 0 16px !important;
    gap: 16px !important;
  }

  .navbar-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Global Section & Containers */
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 32px 0 !important;
  }

  .section-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
  }

  .section-header > div:first-child {
    width: 100%;
  }

  .section-header > div:last-child {
    width: 100% !important;
  }

  .section-title {
    font-size: 1.4rem !important;
  }

  /* Product Catalog Grid (2 columns on tablet/medium screen) */
  .products-main-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .products-sidebar-sticky {
    display: none !important;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  .product-card {
    border-radius: 14px !important;
  }

  .product-card-image {
    aspect-ratio: 3/2 !important;
  }

  .product-card-body {
    padding: 12px !important;
    gap: 6px !important;
  }

  .product-name {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
    -webkit-line-clamp: 2 !important;
  }

  .product-category {
    font-size: 0.68rem !important;
  }

  .product-rating {
    font-size: 0.72rem !important;
  }

  .product-rating .stars i {
    font-size: 0.7rem !important;
  }

  .product-rating > span:last-child {
    display: none !important; /* Hide reviews count for spacing */
  }

  .product-pricing {
    gap: 4px !important;
  }

  .price-current {
    font-size: 0.95rem !important;
  }

  .price-original {
    font-size: 0.72rem !important;
  }

  .product-card-footer {
    padding: 0 12px 12px !important;
  }

  .product-card-footer .btn {
    padding: 8px 10px !important;
    font-size: 0.78rem !important;
    width: 100% !important;
    justify-content: center !important;
  }

  .product-card-footer .btn svg {
    display: none !important; /* Hide icon to fit text */
  }

  .badge {
    font-size: 0.6rem !important;
    padding: 3px 7px !important;
  }

  /* Horizontal Category Scroll Tabs */
  .category-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 4px 0 12px !important;
    margin-bottom: 16px !important;
  }

  .category-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .category-tab {
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
    flex-shrink: 0 !important;
    gap: 4px !important;
  }

  #sortSelect {
    width: 100% !important;
    font-size: 0.875rem !important;
    padding: 10px 36px 10px 12px !important;
  }

  /* Pagination */
  .pagination {
    gap: 4px !important;
    padding: 16px 0 !important;
  }

  .page-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.8rem !important;
  }

  /* Hero Section Mobile Restoration */
  .hero {
    padding: 40px 0 32px 0 !important;
    min-height: auto !important;
  }

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

  .hero-grid-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .hero-actions {
    justify-content: center;
    width: 100%;
    gap: 12px;
  }

  /* Restore and redesign Hero Visual */
  .hero-visual-wrap {
    display: flex !important;
    margin-top: 24px !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .hero-visual-inner {
    position: relative !important;
    width: 260px !important;
    height: 260px !important;
  }

  .hero-visual-inner > div:first-child > div {
    width: 140px !important;
    height: 140px !important;
    font-size: 3.2rem !important;
  }

  .hero-visual-inner > div[style*="position:absolute"][style*="width:64px"] {
    width: 50px !important;
    height: 50px !important;
    border-radius: 12px !important;
  }

  .hero-visual-inner > div[style*="position:absolute"][style*="width:64px"] span:first-child {
    font-size: 1.1rem !important;
  }

  .hero-visual-inner > div[style*="position:absolute"][style*="width:64px"] span:last-child {
    font-size: 0.5rem !important;
    margin-top: 2px !important;
  }

  /* Restore and redesign Hero Stats */
  .hero-stats {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 32px !important;
    width: 100% !important;
    align-items: stretch !important;
  }

  .hero-stat {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    padding: 12px 16px !important;
    box-shadow: var(--shadow-card) !important;
    max-width: 100% !important;
    text-align: left !important;
  }

  .hero-stat > div[style*="width: 42px"] {
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
    border-radius: 8px !important;
  }

  .hero-stat span[style*="font-size: 0.9rem"] {
    font-size: 0.85rem !important;
  }

  .hero-stat span[style*="font-size: 0.72rem"] {
    font-size: 0.7rem !important;
  }

  /* Restore and redesign Categories/Brands section as horizontal scroll */
  .home-brands-section {
    display: block !important;
    padding: 32px 0 !important;
  }

  .home-brands-section .container > div:last-child {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 4px 4px 16px 4px !important;
    margin: 0 !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .home-brands-section .container > div:last-child::-webkit-scrollbar {
    display: none !important;
  }

  .category-card {
    width: 140px !important;
    flex-shrink: 0 !important;
    padding: 16px 12px !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-card) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .mobile-search-wrapper {
    display: block !important;
  }

  .quick-overlay {
    display: none !important;
  }

  /* Form Elements - Prevent auto zooming on mobile iOS focus */
  input[type="text"],
  input[type="number"],
  input[type="email"],
  input[type="tel"],
  input[type="search"],
  input[type="password"],
  select,
  textarea,
  .search-bar input,
  #productSearch,
  #productSearchMobile,
  #search-input {
    font-size: 16px !important;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Checkout Layouts */
  .qr-details-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .qr-details-layout > div {
    width: 100% !important;
  }

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

/* =====================================================
   BREAKPOINT: 576px (Mobile Landscape / Medium)
   ===================================================== */
@media (max-width: 576px) {
  .navbar {
    padding: 0 8px !important;
    gap: 6px !important;
  }

  .navbar-brand {
    font-size: 1.05rem !important;
    gap: 4px !important;
  }

  .navbar-brand .brand-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.95rem !important;
  }

  .navbar-actions {
    gap: 12px !important;
  }

  .user-btn span,
  .user-btn svg {
    display: none !important;
  }

  .user-btn {
    padding: 0 !important;
    border: none !important;
    background: none !important;
  }

  .cart-btn-text {
    display: none !important;
  }

  .cart-btn {
    padding: 8px !important;
    width: 38px !important;
    height: 38px !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 50% !important;
  }

  .cart-btn svg {
    margin: 0 !important;
  }

  /* Cart items */
  .cart-item > div {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .cart-item-img {
    width: 60px;
    height: 45px;
  }

  .cart-item > div > .d-flex.flex-column.align-items-end {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 4px;
    width: 100%;
  }

  .specs-grid {
    grid-template-columns: 1fr !important;
  }
}

/* =====================================================
   BREAKPOINT: 480px (Mobile Portrait / Small)
   ===================================================== */
@media (max-width: 480px) {
  /* Hero Section */
  .hero-title {
    font-size: 1.8rem !important;
    word-break: break-word;
  }

  .hero-desc {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

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

/* =====================================================
   ADDITIONAL MOBILE COMPATIBILITY & UTILITY STYLES
   ===================================================== */
@media (max-width: 768px) {
  /* Hide brands/categories carousel on mobile */
  .home-brands-section {
    display: none !important;
  }

  /* Table scrollable wrapper */
  .table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Padding adjustments for cards on small screens */
  .card {
    padding: 16px !important;
  }

  /* Prevent auto-zooming on inputs on mobile */
  input, select, textarea, button {
    font-size: 16px !important;
  }
}

/* Fallback styles for views using Bootstrap utility classes */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -12px;
  margin-left: -12px;
}
.col-lg-8, .col-md-6 {
  position: relative;
  width: 100%;
  padding-right: 12px;
  padding-left: 12px;
}
@media (min-width: 768px) {
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .text-md-end {
    text-align: right !important;
  }
}
@media (min-width: 992px) {
  .col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
}
.justify-content-center {
  justify-content: center !important;
}
.align-items-center {
  align-items: center !important;
}
.bg-white {
  background-color: var(--bg-card) !important;
}
.border {
  border: 1px solid var(--border) !important;
}
.rounded-4 {
  border-radius: var(--radius-lg) !important;
}
.p-4 {
  padding: 24px !important;
}
@media (max-width: 576px) {
  .p-4 {
    padding: 16px !important;
  }
}
.mb-4 {
  margin-bottom: 24px !important;
}
.fw-700 {
  font-weight: 700 !important;
}
.fw-800 {
  font-weight: 800 !important;
}
.text-muted {
  color: var(--text-muted) !important;
}
.text-primary {
  color: var(--primary-light) !important;
}
.form-control {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: var(--transition);
}
.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px var(--glow-focus);
}
.input-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
}
.input-group > .form-control {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
}
.input-group-text {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  background-color: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.input-group > :not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.input-group > :not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left-width: 0;
}

/* =====================================================
   CART PAGE STYLES
   ===================================================== */
.cart-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: var(--transition);
}
.cart-item:hover {
  border-color: rgba(124, 58, 237, 0.2);
}
.cart-item-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-input);
}
.qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}
.qty-btn:hover {
  background: var(--bg-elevated);
}
.qty-input {
  width: 36px;
  text-align: center;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.85rem;
}
.empty-state {
  text-align: center;
  padding: 48px 16px;
}
.empty-state-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Bootstrap utility fallbacks (used by JS-rendered cart items) */
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 12px !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 12px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 12px !important; }
.me-1 { margin-right: 4px !important; }
.me-2 { margin-right: 8px !important; }
.ms-2 { margin-left: 8px !important; }
.py-5 { padding-top: 48px !important; padding-bottom: 48px !important; }
.px-4 { padding-left: 24px !important; padding-right: 24px !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }
.text-primary { color: var(--primary-light) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-center { text-align: center !important; }
.rounded-pill { border-radius: 50rem !important; }
.btn-outline-danger {
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: var(--radius);
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: var(--transition);
}
.btn-outline-danger:hover {
  background: var(--danger);
  color: #fff;
}
.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 6px;
  line-height: 1.5;
}
.bg-danger { background: var(--danger) !important; color: #fff !important; }
.bg-success-light { background: rgba(16, 185, 129, 0.1) !important; }
.text-success { color: var(--success) !important; }
.border-danger { border-color: var(--danger) !important; }
.bg-light { background: var(--bg-elevated) !important; }

/* Cart mobile optimisation */
@media (max-width: 768px) {
  .cart-page-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .cart-item .d-flex.align-items-center.gap-3 {
    flex-wrap: wrap;
  }

  .cart-item-img {
    width: 48px;
    height: 48px;
  }

  .page-header h1 {
    font-size: 1.3rem !important;
  }

  .page-header p {
    font-size: 0.8rem !important;
  }
}

.d-none {
  display: none !important;
}

/* Auth Buttons Responsiveness */
.auth-button-mobile {
  display: none;
  width: 38px;
  height: 38px;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  transition: var(--transition);
}

.auth-button-mobile:hover {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.1);
}

@media (max-width: 768px) {
  .auth-buttons-desktop {
    display: none !important;
  }
  .auth-button-mobile {
    display: flex !important;
  }
}