/*
Theme Name: KN Digital Store
Theme URI: https://kndigitalstore.in
Author: Shahnawaz Raja
Author URI: https://kndigitalstore.in
Description: Official IT Wholesaler Theme for KN DIGITAL STORE (A Unit Of KOSHI NET), Mahaveer Chowk, Supaul. Developed By Shahnawaz Raja.
Version: 6.0.0
License: GNU General Public License v2 or later
Text Domain: kndigital
*/

:root {
  --brand-teal: #00a884;
  --brand-teal-light: #14b8a6;
  --brand-teal-dark: #00735a;
  --brand-teal-glow: rgba(0, 168, 132, 0.22);
  --bg-dark: #041f1c;
  --bg-surface: #f3faf8;
  --card-bg: #ffffff;
  --border-teal: #ccf0e8;
  --text-main: #062623;
  --text-muted: #4e7370;
  --text-white: #ffffff;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(4, 31, 28, 0.06);
  --shadow-card: 0 4px 14px rgba(4, 31, 28, 0.06);
  --shadow-hover: 0 12px 26px rgba(0, 168, 132, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-surface);
  color: var(--text-main);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; cursor: pointer; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* Top Announcement */
.top-bar {
  background: var(--bg-dark);
  color: #a7f3d0;
  font-size: 12.5px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.badge-wholesaler {
  background: linear-gradient(135deg, #00a884, #00735a);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.top-contacts { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.top-contacts a { color: #5eead4; font-weight: 700; }

/* Header */
.main-header {
  background: #ffffff;
  border-bottom: 2px solid var(--border-teal);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.brand-group { display: flex; align-items: center; gap: 14px; }
.site-logo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px var(--brand-teal-glow);
}
.brand-details h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.1;
  color: var(--text-main);
}
.brand-details h1 span { color: var(--brand-teal); }
.brand-details p {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--brand-teal-dark);
  text-transform: uppercase;
  margin-top: 2px;
}
.header-search { flex: 1; max-width: 480px; }
.search-box-form {
  display: flex;
  background: #f0fdfa;
  border: 1.5px solid var(--border-teal);
  border-radius: 50px;
  padding: 4px;
}
.search-box-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 18px;
  font-size: 13.5px;
  outline: none;
  color: var(--text-main);
}
.search-box-form button {
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-teal-dark));
  color: #ffffff;
  border: none;
  padding: 8px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-link-btn {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: 6px;
}
.header-link-btn:hover { background: #e6fffa; color: var(--brand-teal-dark); }
.cart-chip-btn {
  background: #e6fffa;
  border: 1px solid #99f6e4;
  color: var(--brand-teal-dark);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* Nav */
.category-navbar { background: #ffffff; border-top: 1px solid #e6f7f4; }
.category-navbar ul {
  display: flex;
  list-style: none;
  gap: 24px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px 0;
  align-items: center;
}
.nav-item a {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  padding: 6px 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-item a:hover, .nav-item a.active { color: var(--brand-teal); }
.nav-service-track a {
  background: linear-gradient(135deg, #042521, #064e40);
  color: #5eead4 !important;
  padding: 6px 16px;
  border-radius: 30px;
  border: 1px solid rgba(94, 234, 212, 0.4);
}
.nav-service-track a:hover { background: #00a884; color: #ffffff !important; }

/* Slider */
.slider-wrapper {
  margin: 22px auto;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 2px solid var(--border-teal);
  background: #000;
}
.slides-track { display: flex; transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); }
.slide-anchor { min-width: 100%; position: relative; display: block; overflow: hidden; line-height: 0; }
.slide-img { width: 100%; height: auto; aspect-ratio: 1920 / 680; object-fit: cover; display: block; }
.btn-explore-float {
  position: absolute;
  right: 28px;
  bottom: 24px;
  background: #00a884;
  color: #ffffff;
  padding: 11px 24px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  border: 1.5px solid #5eead4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
  transition: all 0.2s ease;
  line-height: normal;
}
.slide-anchor:hover .btn-explore-float {
  background: #042521;
  color: #5eead4;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 168, 132, 0.6);
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(4, 31, 28, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}
.slider-arrow:hover { background: #00a884; }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }
.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.2s;
}
.slider-dot.active {
  background: #5eead4;
  width: 26px;
  border-radius: 10px;
  box-shadow: 0 0 8px #5eead4;
}

/* Products & Categories */
.sec-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 32px 0 16px;
  border-bottom: 2px solid var(--border-teal);
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 12px;
}
.sec-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}
.sec-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--brand-teal);
  border-radius: 2px;
  display: inline-block;
}
.cat-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.cat-item-box {
  background: #ffffff;
  border: 1.5px solid var(--border-teal);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-card);
  transition: all 0.2s;
}
.cat-item-box:hover {
  transform: translateY(-3px);
  border-color: var(--brand-teal);
  box-shadow: var(--shadow-hover);
}
.cat-icon-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: #f0fdfa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.cat-info-txt h4 { font-size: 14px; font-weight: 700; color: var(--text-main); }
.cat-info-txt p { font-size: 11.5px; color: var(--text-muted); }
.filter-tabs-bar { display: flex; gap: 10px; align-items: center; }
.filter-tab-btn {
  background: #ffffff;
  border: 1.5px solid var(--border-teal);
  color: var(--text-main);
  padding: 7px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-tab-btn:hover { border-color: var(--brand-teal); color: var(--brand-teal); }
.filter-tab-btn.active {
  background: var(--brand-teal);
  color: #ffffff;
  border-color: var(--brand-teal);
  box-shadow: 0 2px 10px var(--brand-teal-glow);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}
.product-card {
  background: #ffffff;
  border: 1px solid var(--border-teal);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: all 0.2s;
}
.product-card:hover { transform: translateY(-3px); border-color: var(--brand-teal); box-shadow: var(--shadow-hover); }
.product-thumb {
  height: 180px;
  background: #f0fdfa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  position: relative;
  border-bottom: 1px solid #e6f7f4;
}
.status-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--brand-teal);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.product-details { padding: 16px; display: flex; flex-direction: column; flex-grow: 1; }
.product-category { font-size: 11px; font-weight: 700; color: var(--brand-teal-dark); text-transform: uppercase; margin-bottom: 4px; }
.product-name { font-size: 13.5px; font-weight: 700; color: var(--text-main); line-height: 1.4; margin-bottom: 12px; height: 38px; overflow: hidden; }
.pricing-bar { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px dashed var(--border-teal); }
.price-num { font-size: 16px; font-weight: 800; color: var(--text-main); }
.price-num del { font-size: 11.5px; color: var(--text-muted); margin-right: 4px; font-weight: 400; }
.btn-buy-teal {
  background: #e6fffa;
  border: 1px solid #99f6e4;
  color: var(--brand-teal-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
}
.btn-buy-teal:hover { background: var(--brand-teal); color: #ffffff; }

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 31, 28, 0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  border: 2px solid var(--border-teal);
  padding: 28px;
  position: relative;
}
.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-tabs { display: flex; gap: 12px; border-bottom: 2px solid var(--border-teal); margin-bottom: 18px; padding-bottom: 8px; }
.auth-tab-btn {
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 12px;
  position: relative;
}
.auth-tab-btn.active { color: var(--brand-teal); }
.auth-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-teal);
  border-radius: 3px;
}
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 5px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  outline: none;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-submit-teal {
  width: 100%;
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-teal-dark));
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 10px;
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: #a7f3d0;
  border-top: 3px solid var(--brand-teal);
  padding: 48px 0 24px;
  margin-top: 50px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 32px; margin-bottom: 32px; }
.footer-brand h3 { color: #ffffff; font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.footer-unit { color: #5eead4; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: #ccfbf1; line-height: 1.6; max-width: 340px; }
.footer-col h5 { color: #ffffff; font-size: 13.5px; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #a7f3d0; font-size: 13px; transition: all 0.15s; }
.footer-col a:hover { color: #ffffff; padding-left: 3px; }
.contact-line { font-size: 13px; margin-bottom: 8px; color: #ccfbf1; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #99f6e4;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 900px) {
  .btn-explore-float { right: 14px; bottom: 14px; padding: 7px 15px; font-size: 11px; }
  .cat-showcase-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .header-content { flex-direction: column; align-items: stretch; }
  .form-row { grid-template-columns: 1fr; }
}