/* ==========================================================================
   Techno Code (تكنو كود) - Egyptian POS & Barcode Solutions
   Human-Crafted Design System & Stylesheet
   Fonts: Alexandria (Headings), IBM Plex Sans Arabic (Body), Outfit (Numbers)
   Palette: Authentic Brand Petrol Teal (#175E70), Slate (#0F172A), Crimson Accent (#E11D2A)
   Direction: RTL (Arabic Native)
   ========================================================================== */

/* Google Fonts Imports */
@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@400;500;600;700;800;900&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
  /* Brand Core - Inspired by Real Techno Code Identity */
  --brand-petrol: #175E70;
  --brand-petrol-dark: #104452;
  --brand-petrol-deeper: #0B2F38;
  --brand-petrol-light: #EBF4F6;
  --brand-petrol-surface: #F3F8F9;
  
  --brand-red: #E11D2A;
  --brand-red-dark: #B9141F;
  --brand-red-light: #FEECEE;
  
  /* Neutral Surfaces (Light Theme) */
  --bg-primary: #F8FAFC;
  --bg-secondary: #F1F5F9;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-muted: #E2E8F0;
  
  --text-main: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-inverse: #FFFFFF;
  
  --border-subtle: #E2E8F0;
  --border-medium: #CBD5E1;
  --border-strong: #94A3B8;
  
  /* Functional Colors */
  --success: #059669;
  --success-light: #ECFDF5;
  --warning: #D97706;
  --warning-light: #FFFBEB;
  --danger: #DC2626;
  --danger-light: #FEF2F2;
  --whatsapp: #25D366;
  --whatsapp-hover: #1EB954;
  
  /* Typography */
  --font-heading: 'Alexandria', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-num: 'Outfit', 'Alexandria', sans-serif;
  
  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Human-Crafted Shadows (Clean & Subtle, Not Over-Glowed) */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 10px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 32px -8px rgba(15, 23, 42, 0.12);
  --shadow-card-hover: 0 14px 28px -6px rgba(23, 94, 112, 0.12), 0 6px 12px -3px rgba(15, 23, 42, 0.05);

  --container-max: 1280px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode (High-End Corporate Slate & Deep Petrol) */
[data-theme="dark"] {
  --brand-petrol-surface: #10262E;
  --brand-petrol-light: rgba(23, 94, 112, 0.25);
  
  --bg-primary: #0A1016;
  --bg-secondary: #0F1822;
  --bg-surface: #14212F;
  --bg-surface-elevated: #1B2B3D;
  --bg-muted: #24364B;
  
  --text-main: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-light: #64748B;
  
  --border-subtle: #1F3044;
  --border-medium: #2B415A;
  --border-strong: #415E80;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.5);
  --shadow-card-hover: 0 14px 28px rgba(0, 0, 0, 0.6);
}

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

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.num {
  font-family: var(--font-num);
  letter-spacing: 0.02em;
  font-feature-settings: 'tnum' on, 'lnum' on;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

input, select, textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  outline: none;
  transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--brand-petrol);
  box-shadow: 0 0 0 3px rgba(23, 94, 112, 0.15);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   Header & Announcements
   ========================================================================== */
.announcement-bar {
  background: var(--brand-petrol-deeper);
  color: #E2F0F3;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.announcement-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.announcement-news {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.announcement-tag {
  background: var(--brand-red);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-family: var(--font-heading);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.announcement-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.announcement-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #CFE3E7;
  font-size: 0.82rem;
  transition: color 0.15s;
}

.announcement-link:hover {
  color: #FFFFFF;
}

/* Site Header */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-xs);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
}

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

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Search Bar */
.header-search {
  flex: 1;
  max-width: 580px;
  position: relative;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0 16px;
  transition: var(--transition);
}

.search-input-wrap:focus-within {
  background: var(--bg-surface);
  border-color: var(--brand-petrol);
  box-shadow: 0 0 0 3px rgba(23, 94, 112, 0.12);
}

.search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header-search input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px 10px;
  font-size: 0.92rem;
  color: var(--text-main);
  box-shadow: none !important;
}

.header-search input::placeholder {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.search-clear-btn {
  color: var(--text-muted);
  padding: 4px;
  font-size: 1.1rem;
  line-height: 1;
  display: none;
}

.search-clear-btn:hover {
  color: var(--text-main);
}

/* Search Dropdown */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  max-height: 380px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  padding: 8px 0;
}

.search-results-dropdown.active {
  display: block;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.15s;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background: var(--brand-petrol-surface);
}

.search-item-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.search-item-info {
  flex: 1;
  min-width: 0;
}

.search-item-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.search-item-price {
  font-family: var(--font-num);
  font-weight: 700;
  color: var(--brand-petrol);
  font-size: 0.95rem;
}

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

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}

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

.cart-btn {
  background: var(--brand-petrol);
  color: #FFFFFF;
  border-color: var(--brand-petrol);
  position: relative;
}

.cart-btn:hover {
  background: var(--brand-petrol-dark);
  color: #FFFFFF;
}

.cart-badge {
  background: var(--brand-red);
  color: #FFFFFF;
  font-family: var(--font-num);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
  border-radius: var(--radius-full);
}

/* Category Quick Nav Bar */
.categories-nav-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
}

.categories-nav-bar::-webkit-scrollbar {
  display: none;
}

.nav-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  list-style: none;
  white-space: nowrap;
}

.nav-pill-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  transition: var(--transition);
}

.nav-pill-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-main);
}

.nav-pill-btn.active {
  background: var(--brand-petrol);
  color: #FFFFFF;
  border-color: var(--brand-petrol);
}

/* ==========================================================================
   Hero Section (Human-Centered & Commercial)
   ========================================================================== */
.hero-section {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-primary) 100%);
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-editorial-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-petrol-light);
  color: var(--brand-petrol);
  border: 1px solid rgba(23, 94, 112, 0.2);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-editorial-badge .badge-dot {
  width: 8px;
  height: 8px;
  background: var(--brand-red);
  border-radius: 50%;
  display: inline-block;
}

.hero-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero-title .brand-accent {
  color: var(--brand-petrol);
  position: relative;
  display: inline-block;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 620px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brand-petrol);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--brand-petrol-dark);
  box-shadow: 0 4px 12px rgba(23, 94, 112, 0.25);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--brand-petrol);
  color: var(--brand-petrol);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #FFFFFF;
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

/* Trust Metric Badges */
.hero-trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.trust-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--brand-petrol-light);
  color: var(--brand-petrol);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-text h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.trust-text p {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}

/* Hero Showcase Card (Visual Grounding) */
.hero-showcase-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.showcase-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.showcase-badge {
  font-size: 0.75rem;
  background: var(--success-light);
  color: var(--success);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-weight: 700;
}

.showcase-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.showcase-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.showcase-item:hover {
  background: var(--brand-petrol-surface);
  border-color: var(--brand-petrol);
  transform: translateX(-4px);
}

.showcase-item-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 4px;
}

.showcase-item-info {
  flex: 1;
}

.showcase-item-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.showcase-item-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.showcase-item-price {
  font-family: var(--font-num);
  font-weight: 800;
  color: var(--brand-petrol);
  font-size: 1.05rem;
  text-align: left;
}

/* ==========================================================================
   Equipment Bundles / Solutions Section (#packages)
   Replaces the fake sticker manufacturing section with real POS packages
   ========================================================================== */
.packages-section {
  padding: 56px 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.section-badge {
  display: inline-block;
  background: var(--brand-petrol-light);
  color: var(--brand-petrol);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.package-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.package-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-petrol);
  box-shadow: var(--shadow-card-hover);
}

.package-card.popular {
  border: 2px solid var(--brand-petrol);
}

.package-popular-tag {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--brand-petrol);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.package-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--brand-petrol-light);
  color: var(--brand-petrol);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.package-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.package-target {
  font-size: 0.8rem;
  color: var(--brand-petrol);
  font-weight: 600;
  margin-bottom: 16px;
}

.package-items-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  flex: 1;
}

.package-items-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.package-check {
  color: var(--brand-petrol);
  font-weight: bold;
  flex-shrink: 0;
}

.package-card .btn {
  width: 100%;
}

/* ==========================================================================
   Catalog Main Section
   ========================================================================== */
.catalog-section {
  padding: 56px 0;
}

/* Inventory Status Bar (Human Touch & Clear Guidance) */
.inventory-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--shadow-xs);
}

.inventory-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.inventory-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--brand-petrol-light);
  color: var(--brand-petrol);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.inventory-details h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.inventory-details p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Stock Toggle Switch */
.stock-toggle-group {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.stock-toggle-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
}

.stock-toggle-btn.active {
  background: var(--bg-surface);
  color: var(--brand-petrol);
  box-shadow: var(--shadow-sm);
}

/* Catalog Layout */
.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

/* Sidebar Filters */
.catalog-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-xs);
  position: sticky;
  top: 96px;
}

.filter-group {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.filter-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.filter-item:hover {
  background: var(--bg-secondary);
  color: var(--text-main);
}

.filter-item.active {
  background: var(--brand-petrol-light);
  color: var(--brand-petrol);
  font-weight: 700;
}

.filter-count {
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

.filter-item.active .filter-count {
  background: var(--brand-petrol);
  color: #fff;
}

/* Brand Chips in Sidebar */
.brand-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.brand-chip {
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.brand-chip:hover {
  border-color: var(--brand-petrol);
  color: var(--brand-petrol);
}

.brand-chip.active {
  background: var(--brand-petrol);
  color: #FFFFFF;
  border-color: var(--brand-petrol);
}

/* Price Range */
.price-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-slider-wrap input[type="range"] {
  width: 100%;
  accent-color: var(--brand-petrol);
  cursor: pointer;
}

.price-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Catalog Main Content */
.catalog-content {
  min-width: 0;
}

/* Toolbar */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.catalog-counter {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.catalog-counter strong {
  color: var(--text-main);
  font-weight: 700;
}

.catalog-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog-sort label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.sort-select {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  border-color: var(--border-medium);
}

/* Active Chips */
.active-filters-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--text-main);
  font-weight: 600;
}

.filter-tag-remove {
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}

.filter-tag-remove:hover {
  color: var(--brand-red);
}

.btn-reset-filters {
  font-size: 0.78rem;
  color: var(--brand-red);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  margin-right: 8px;
}

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

/* Product Card - Human & Clean Commercial Design */
.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-xs);
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card-hover);
}

.product-card.out-of-stock-card {
  opacity: 0.88;
  background: var(--bg-secondary);
}

/* Card Top Image */
.card-image-wrap {
  height: 200px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
}

[data-theme="dark"] .card-image-wrap {
  background: #0E1823;
}

.card-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

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

/* Card Badges */
.card-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.brand-badge {
  background: rgba(15, 23, 42, 0.85);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  backdrop-filter: blur(4px);
}

.stock-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

.stock-indicator.in-stock {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.stock-indicator.in-stock .stock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
}

.stock-indicator.out-of-stock {
  background: #F1F5F9;
  color: #64748B;
  border: 1px solid #CBD5E1;
}

/* Card Body */
.card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-petrol);
  margin-bottom: 6px;
}

.card-product-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
  cursor: pointer;
}

.card-product-title:hover {
  color: var(--brand-petrol);
}

/* Specs Snippet */
.card-specs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.spec-bullet {
  display: flex;
  align-items: center;
  gap: 6px;
}

.spec-bullet::before {
  content: "•";
  color: var(--brand-petrol);
  font-weight: bold;
}

/* Price Box */
.card-price-row {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
}

.price-container {
  display: flex;
  flex-direction: column;
}

.price-status-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.price-val {
  font-family: var(--font-num);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-petrol);
  line-height: 1;
}

.price-currency {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 4px;
}

.out-of-stock-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Card Actions */
.card-actions-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.btn-add-cart {
  background: var(--brand-petrol);
  color: #FFFFFF;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-add-cart:hover {
  background: var(--brand-petrol-dark);
}

.btn-ask-alt {
  background: var(--bg-surface);
  color: var(--brand-petrol);
  border: 1px solid var(--brand-petrol);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-ask-alt:hover {
  background: var(--brand-petrol-light);
}

.btn-quick-view {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.btn-quick-view:hover {
  background: var(--brand-petrol-light);
  color: var(--brand-petrol);
  border-color: var(--brand-petrol);
}

/* Empty Catalog State */
.catalog-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-md);
}

.empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.empty-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.empty-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ==========================================================================
   Quick View Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  position: relative;
  animation: modalEnter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  font-size: 1.2rem;
}

.modal-close-btn:hover {
  background: var(--brand-red-light);
  color: var(--brand-red);
}

.qv-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  padding: 32px;
}

.qv-gallery-main {
  height: 320px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin-bottom: 12px;
}

.qv-main-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.qv-thumbnails {
  display: flex;
  gap: 8px;
}

.qv-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  padding: 4px;
  cursor: pointer;
  object-fit: contain;
  background: #FFFFFF;
}

.qv-thumb.active {
  border-color: var(--brand-petrol);
  box-shadow: 0 0 0 2px rgba(23, 94, 112, 0.2);
}

.qv-info-header {
  margin-bottom: 16px;
}

.qv-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.3;
}

.qv-price-box {
  background: var(--bg-secondary);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.qv-price {
  font-family: var(--font-num);
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--brand-petrol);
}

.qv-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.qv-specs-table th, .qv-specs-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: right;
}

.qv-specs-table th {
  color: var(--text-muted);
  width: 35%;
  font-weight: 600;
}

.qv-specs-table td {
  color: var(--text-main);
  font-weight: 500;
}

/* ==========================================================================
   Quotation / Cart Drawer Modal
   ========================================================================== */
.cart-drawer-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: none;
  justify-content: flex-start;
}

.cart-drawer-modal.active {
  display: flex;
}

.cart-drawer-box {
  background: var(--bg-surface);
  width: 100%;
  max-width: 480px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  animation: drawerSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes drawerSlide {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

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

.drawer-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

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

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
}

.cart-item-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #FFFFFF;
  border-radius: var(--radius-xs);
  padding: 4px;
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.cart-item-price {
  font-family: var(--font-num);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-petrol);
  margin-top: 4px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-xs);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.qty-display {
  font-family: var(--font-num);
  font-size: 0.85rem;
  font-weight: 700;
}

.btn-remove-item {
  color: var(--brand-red);
  font-size: 0.78rem;
  margin-right: auto;
  cursor: pointer;
}

.drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.drawer-totals {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-weight: 800;
}

.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   Footer & Contact Section
   ========================================================================== */
.site-footer {
  background: var(--brand-petrol-deeper);
  color: #CFE3E7;
  padding: 56px 0 24px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: #FFFFFF;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #B5D2D8;
  margin-bottom: 20px;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

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

.footer-links a {
  color: #B5D2D8;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: #FFFFFF;
  transform: translateX(-4px);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.86rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #CFE3E7;
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: #5CE1E6;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: #8EB7C0;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--text-main);
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastFade 0.25s ease;
}

@keyframes toastFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Printable Quotation Sheet (Clean B2B Formal Sheet)
   ========================================================================== */
@media print {
  body * {
    visibility: hidden;
  }
  #printableQuotationSheet, #printableQuotationSheet * {
    visibility: visible;
  }
  #printableQuotationSheet {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 20mm;
    background: #fff;
    color: #000;
    display: block !important;
  }
}

#printableQuotationSheet {
  display: none;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .packages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .catalog-sidebar {
    position: static;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .announcement-bar .container {
    justify-content: center;
    text-align: center;
  }
  .announcement-links {
    display: none;
  }
  .header-main {
    flex-wrap: wrap;
  }
  .header-search {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .hero-trust-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .packages-grid {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .qv-modal-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
