:root {
  --container-width: 1100px;
  --bg: #f6f8fb; /* page background */
  --surface: #ffffff; /* cards, panels */
  --card: #ffffff;
  --text: #0f1724; /* primary body text */
  --muted: #6b7280; /* secondary text */
  --primary: #0b5fff; /* strong professional blue */
  --accent: #00838f; /* teal accent */
  --warm: #ffb020; /* warm accent for highlights */
  --border: #e6eef6; /* subtle borders */
      --dark: #2f3640;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
font-family: sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, #ffffff 100%);
  color: var(--text);
}
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 16px;
}
.site-header {
  position: sticky;
  top: 0;
  background: #3A404A;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* .logo {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #fff;
} */
.brand-title {
  font-weight: 1000;
  color: var(--bg);
}
.brand-sub {
  font-size: 12px;
  color: var(--muted);
}
.nav {
  display: none;
  gap: 18px;
}
.nav a {
  color: var(--bg);
  text-decoration: none;
}
.cart-btn {
  background: transparent;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.cart-count {
  background: var(--primary);
  color: #fff;
  padding: 2px 6px;
  border-radius: 999px;
  margin-left: 8px;
  font-weight: 700;
}
@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.hero {
  padding: 64px 0 48px;
  background: linear-gradient(180deg, #ffffff, #f6fbff);
}
.hero-inner {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(11,95,255,0.08);
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
}
h1 {
  font-size: 32px;
  margin: 8px 0;
}
.highlight {
  /* background: linear-gradient(90deg, var(--primary), var(--accent)); */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto;
}

.products-section {
  padding: 40px 0;
}
.controls {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.title {
  display: flex;
  gap: 12px;
  align-items: center;
}
.icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(11,95,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-wrap input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  width: 220px;
}
@media (max-width: 640px) {
  .search-wrap input {
    width: 140px;
  }
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.cat-btn {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  color: var(--muted);
}
.cat-btn.active {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #fff;
  border-color: transparent;
}

/* moving indicator behind category buttons */
.categories-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cat-indicator {
  position: absolute;
  left: 0;
  top: 4px;
  height: calc(100% - 8px);
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(11,95,255,0.12), rgba(0,131,143,0.08));
  transition: transform 240ms cubic-bezier(.2,.9,.2,1), width 240ms cubic-bezier(.2,.9,.2,1);
  pointer-events: none;
}

/* make active button text visible above indicator */
.categories-inner .cat-btn {
  position: relative;
  z-index: 2;
}
.categories-inner .cat-btn.active {
  color: #0b2b66; /* darker text when active for contrast */
  font-weight: 700;
}

/* hover subtle lift removed — only selected state changes color */

.grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 18px;
}
@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card .img {
  height: 220px;
  background: rgba(3, 7, 18, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.card img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.card .body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card h3 {
  margin: 0;
  font-size: 16px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.qty-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty {
  width: 36px;
  text-align: center;
  border-radius: 8px;
  padding: 8px;
  border: 1px solid var(--border);
}
.icon-btn {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}
.add-btn {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.no-results {
  padding: 48px;
  text-align: center;
  color: var(--muted);
}
footer {
    background: var(--dark);
    color: white;
    padding: 4rem 2rem;
    margin-top: 4rem;
}
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 0;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}
.footer-inner h3 {
  margin: 0;
}
.muted {
  color: var(--muted);
}
.copyright {
  text-align: center;
  color: var(--muted);
  padding: 12px 0;
}

/* small helpers */
.container {
  padding-left: 20px;
  padding-right: 20px;
}
.hidden {
  display: none;
}

/* Navbar / header tweaks for index.html */
.nav-style {
  background: #3A404A;
  position: sticky;
  top: 0;
  z-index: 1100;
  border-bottom: 1px solid var(--border);
}
.nav-style .navbar-brand {
  color: #ffffff;
  font-weight: 700;
}
.nav-style .navbar-nav {
  align-items: center;
}
.nav-style .nav-link {
  color: #ffffff;
  padding: 8px 12px;
}
.nav-style .nav-link:hover {
  color: #0b7bec;
}
.nav-style .dropdown-menu {
  min-width: 200px;
  border-radius: 8px;
  /* box-shadow: 0 6px 18px rgba(3,7,18,0.12); */
}
.nav-style .dropdown-menu .dropdown-item {
  color: var(--text);
}
/* show support dropdown on hover */
.nav-style .dropdown:hover > .dropdown-menu {
  display: block;
}
.cart-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 8px 10px;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.cart-count {
  background: var(--primary);
  color: #fff;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}

@media (max-width: 991px) {
  /* ensure dropdown works on small screens via click (bootstrap JS handles it) */
  .nav-style .dropdown:hover > .dropdown-menu {
    display: none;
  }
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-content h3 {
    margin-bottom: 1rem;
}

.footer-content ul {
    list-style: none;
}

.footer-content a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-content a:hover {
    color: var(--accent);
}

/* Cart Drawer Styles */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 36, 0.5);
  backdrop-filter: blur(4px);
  z-index: 40;
}
.cart-drawer {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-left: 1px solid #e6eef6;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
  z-index: 50;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cart-drawer[hidden] {
  display: none;
}
.cart-backdrop[hidden] {
  display: none;
}

.cart-header {
  border-bottom: 1px solid #e6eef6;
  padding: 18px;
}
.cart-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.cart-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #eef8ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.cart-title-wrap h2 {
  margin: 0;
  font-size: 18px;
}
.close-btn {
  background: transparent;
  border: 0;
  font-size: 20px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-content {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
}
.empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--muted);
}
.empty-cart-ico {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #eef8ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 32px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e6eef6;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #f8fbff;
}
.cart-item-img {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 6px;
  background: #f6f9fb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cart-item-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 8px;
}
.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cart-item-name {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
}
.cart-item-cat {
  font-size: 12px;
  color: var(--muted);
}
.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.qty-mini {
  display: flex;
  align-items: center;
  border: 1px solid #e6eef6;
  border-radius: 6px;
  font-size: 12px;
}
.qty-mini button {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.qty-mini span {
  width: 24px;
  text-align: center;
}
.remove-btn {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-size: 16px;
}

.cart-footer {
  border-top: 1px solid #e6eef6;
  padding: 18px;
}
.quotation-btn {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 0;
  background: linear-gradient(90deg, var(--primary), #4ad6ff);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}
.quotation-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.clear-btn {
  width: 100%;
  padding: 8px;
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
}

@media (max-width: 640px) {
  .cart-drawer {
    max-width: 100%;
  }
}
