/* ============================================================================
   Indian Barcode / Mindware - Enterprise Label Printer Theme
   Reference: https://indianbarcode.in/label-printer
   ============================================================================ */

:root {
  --primary:           #0d2b45;
  --primary-hover:     #081d30;
  --secondary:         #1e3a5f;
  --accent:            #e65100;
  --accent-hover:      #c74300;
  --accent-light:      #fff7ed;
  --price-green:       #15803d;
  --text-main:         #0f172a;
  --text-muted:        #475569;
  --text-subtle:       #64748b;
  --bg-page:           #f8fafc;
  --bg-surface:        #ffffff;
  --border-light:      #e2e8f0;
  --border-focus:      #cbd5e1;
  --radius-sm:         6px;
  --radius-md:         10px;
  --radius-lg:         14px;
  --shadow-sm:         0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md:         0 4px 14px -2px rgba(13, 43, 69, 0.08);
  --shadow-hover:      0 14px 28px -4px rgba(13, 43, 69, 0.14);
  --transition:        all 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 14px;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover, a:focus {
  color: var(--accent);
}

/* ==========================================================================
   TOP ANNOUNCEMENT BAR
   ========================================================================== */
.top-bar-strip {
  background: #081d30;
  color: #cbd5e1;
  font-size: 12.5px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar-strip a {
  color: #e2e8f0;
}
.top-bar-strip a:hover {
  color: #fb923c;
}
.top-sep {
  opacity: 0.35;
  margin: 0 10px;
}
.top-pill-badge {
  background: rgba(22, 163, 74, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 50px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  background: #ffffff;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.navbar-brand-logo {
  height: 48px;
  max-width: 195px;
  width: auto;
  object-fit: contain;
}
.header-search-box {
  position: relative;
  z-index: 1050;
}
.header-search-box .input-group {
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  overflow: visible;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(13, 43, 69, 0.08);
  display: flex;
  align-items: stretch;
}
.header-search-box .search-lens {
  background: #ffffff;
  border: none;
  color: #64748b;
  font-size: 14px;
  padding: 0 12px;
  display: flex;
  align-items: center;
}
.header-search-box input {
  border: none;
  font-size: 14px;
  padding: 10px 8px;
  color: var(--text-main);
  flex-grow: 1;
}
.header-search-box input:focus {
  outline: none;
  box-shadow: none;
}
.header-search-box .btn-search-clear {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 17px;
  padding: 0 12px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, transform 0.15s ease;
}
.header-search-box .btn-search-clear:hover {
  color: #dc2626;
  transform: scale(1.12);
}
.header-search-box .btn-search {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-top-right-radius: calc(var(--radius-md) - 2px);
  border-bottom-right-radius: calc(var(--radius-md) - 2px);
  transition: var(--transition);
}
.header-search-box .btn-search:hover {
  background: var(--accent);
  color: #ffffff;
}

/* Autocomplete Dropdown Popup */
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(13, 43, 69, 0.18);
  z-index: 1060;
  overflow: hidden;
  text-align: left;
}
.search-dropdown-header {
  padding: 8px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.search-dropdown-results {
  max-height: 380px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-left 0.15s ease;
  border-left: 3px solid transparent;
}
.search-dropdown-item:last-child {
  border-bottom: none;
}
.search-dropdown-item:hover,
.search-dropdown-item.active-suggestion {
  background: #f1f5f9;
  border-left-color: var(--accent);
}
.search-dropdown-thumb {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 3px;
  flex-shrink: 0;
}
.search-dropdown-info {
  flex-grow: 1;
  min-width: 0;
}
.search-dropdown-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.search-dropdown-meta {
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-dropdown-meta .badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
}
.search-dropdown-action {
  flex-shrink: 0;
}
.search-dropdown-action .btn-quote-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(243, 140, 24, 0.3);
  transition: all 0.2s ease;
}
.search-dropdown-item:hover .btn-quote-pill {
  background: var(--accent);
  color: #ffffff;
}
.search-match-highlight {
  background: #fef08a;
  color: #713f12;
  font-weight: 700;
  padding: 0 2px;
  border-radius: 2px;
}
.search-dropdown-empty {
  padding: 24px 16px;
  text-align: center;
  color: #64748b;
}
.search-dropdown-footer {
  padding: 8px 14px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

/* Card Pulse Glow when selected via dropdown */
@keyframes cardPulseGlow {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(243, 140, 24, 0.7); }
  50% { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(243, 140, 24, 0.25); }
  100% { transform: scale(1); box-shadow: 0 4px 15px rgba(0,0,0,0.06); }
}
.product-card-highlighted .product-thumb {
  animation: cardPulseGlow 1.8s ease-in-out !important;
  border: 2px solid var(--accent) !important;
}

.header-support-card {
  display: flex;
  align-items: center;
  gap: 12px;
}
.support-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}
.support-text small {
  display: block;
  font-size: 11px;
  color: var(--text-subtle);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.support-text a {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
}

/* ==========================================================================
   BREADCRUMB & CATEGORY HERO BANNER
   ========================================================================== */
.category-hero-banner {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 24px 0 28px;
  margin-bottom: 24px;
}
.breadcrumb {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 500;
}
.breadcrumb-item a {
  color: var(--text-subtle);
}
.breadcrumb-item.active {
  color: var(--text-main);
  font-weight: 700;
}
.category-main-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.category-main-title span {
  color: var(--accent);
}
.category-main-lead {
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 820px;
  margin-bottom: 18px;
  line-height: 1.6;
}

.trust-badges-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.trust-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--secondary);
}
.trust-badge-pill i {
  color: #16a34a;
}

/* ==========================================================================
   SIDEBAR (FILTER BY BRAND & HELP)
   ========================================================================== */
.sidebar-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sidebar-panel-header {
  background: var(--primary);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 12px 18px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-filter-content {
  padding: 16px 18px;
  max-height: 380px;
  overflow-y: auto;
}
.filter-brand-row {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.filter-brand-row:hover {
  background: #f1f5f9;
}
.filter-brand-row input {
  margin-right: 10px;
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
.filter-count-badge {
  background: #e2e8f0;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 50px;
}

/* Quick Assistance Sidebar Card */
.sidebar-support-box {
  background: linear-gradient(135deg, #0d2b45 0%, #163e63 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}
.sidebar-support-box .icon-box {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: #fb923c;
  font-size: 22px;
}
.sidebar-support-box h5 {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}
.sidebar-support-box p {
  font-size: 12.5px;
  color: #cbd5e1;
  margin-bottom: 16px;
  line-height: 1.5;
}
.btn-sidebar-call {
  background: var(--accent);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13px;
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  display: block;
  width: 100%;
  margin-bottom: 8px;
  transition: var(--transition);
}
.btn-sidebar-call:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}
.btn-sidebar-wa {
  background: #25d366;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13px;
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  display: block;
  width: 100%;
  transition: var(--transition);
}
.btn-sidebar-wa:hover {
  background: #1eb857;
  transform: translateY(-2px);
}

/* ==========================================================================
   CATALOG TOOLBAR
   ========================================================================== */
.catalog-toolbar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.btn-view-toggle {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-size: 13.5px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.btn-view-toggle:hover, .btn-view-toggle.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.form-select-sm {
  font-size: 13px;
  border-color: var(--border-light);
  border-radius: var(--radius-sm);
  padding: 7px 28px 7px 12px;
}

/* ==========================================================================
   PRODUCT CARD (.product-thumb)
   ========================================================================== */
.product-layout {
  margin-bottom: 24px;
}
.product-thumb {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.product-thumb:hover {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.brand-badge-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.dpi-badge-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  color: var(--secondary);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.product-thumb .image {
  text-align: center;
  padding: 24px 20px;
  background: #ffffff;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f1f5f9;
}
.product-thumb .image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.product-thumb:hover .image img {
  transform: scale(1.06);
}

.product-thumb .caption {
  padding: 18px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.product-thumb h4 {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
  height: 42px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.product-thumb h4 a {
  color: var(--primary);
}
.product-thumb h4 a:hover {
  color: var(--accent);
}

.product-thumb .model-tag {
  font-size: 12px;
  color: var(--text-subtle);
  margin-bottom: 8px;
  font-weight: 600;
}
.product-thumb .desc-snippet {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  height: 38px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta-wrap {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--border-light);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.card-meta-wrap .badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
}

/* Card Button Group */
.product-thumb .button-group {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 0 16px 16px;
}
.btn-card-ask {
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
  font-weight: 700;
  font-size: 13px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}
.btn-card-ask:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
}
.btn-card-wa {
  background: #25d366;
  color: #ffffff;
  border: 1px solid #25d366;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: var(--transition);
}
.btn-card-wa:hover {
  background: #1eb857;
  border-color: #1eb857;
  color: #ffffff;
}

/* List View Mode */
.product-list .product-thumb {
  flex-direction: row;
}
.product-list .product-thumb .image {
  width: 250px;
  height: auto;
  border-bottom: none;
  border-right: 1px solid #f1f5f9;
  flex-shrink: 0;
}
.product-list .product-thumb .caption {
  padding: 22px;
}
.product-list .product-thumb h4 {
  height: auto;
  font-size: 16.5px;
}
.product-list .product-thumb .desc-snippet {
  height: auto;
  -webkit-line-clamp: 4;
}
.product-list .product-thumb .button-group {
  width: 210px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--border-light);
  flex-shrink: 0;
  padding: 20px;
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .product-list .product-thumb {
    flex-direction: column;
  }
  .product-list .product-thumb .image {
    width: 100%;
    height: 200px;
    border-right: none;
    border-bottom: 1px solid #f1f5f9;
  }
  .product-list .product-thumb .button-group {
    width: 100%;
    border-left: none;
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 0 16px 16px;
  }
}

/* ==========================================================================
   AUTHENTIC BRAND SHOWCASE STRIP
   ========================================================================== */
.brands-showcase-section {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 40px 0;
  margin-top: 50px;
}
.brand-tile-card {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--secondary);
  transition: var(--transition);
}
.brand-tile-card:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* ==========================================================================
   TECHNICAL KNOWLEDGE & GUIDE SECTION
   ========================================================================== */
.technical-guide-section {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px;
  margin-top: 40px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}
.technical-guide-section h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}
.technical-guide-section h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 24px;
  margin-bottom: 10px;
}
.technical-guide-section p, .technical-guide-section li {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

.spec-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.spec-table {
  width: 100%;
  margin-bottom: 0;
  font-size: 13px;
}
.spec-table thead {
  background: var(--primary);
  color: #ffffff;
}
.spec-table th {
  padding: 12px 16px;
  font-weight: 700;
}
.spec-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
}
.spec-table tr:nth-child(even) td {
  background: var(--bg-page);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background-color: #081d30;
  color: #94a3b8;
  padding: 55px 0 24px;
  font-size: 13px;
  border-top: 3px solid var(--accent);
}
footer h5 {
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 18px;
  letter-spacing: 0.6px;
  position: relative;
  padding-bottom: 8px;
}
footer h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--accent);
}
footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer ul li {
  margin-bottom: 9px;
}
footer ul li a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
}
footer ul li a:hover {
  color: #fb923c;
  padding-left: 3px;
}
.footer-contact-bar {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 32px;
  font-size: 13px;
  color: #cbd5e1;
}
.footer-contact-bar a {
  color: #ffffff;
}

/* Floating WhatsApp */
.ib-wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff !important;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: var(--transition);
}
.ib-wa-float:hover {
  background: #1eb857;
  transform: scale(1.1);
  color: #ffffff;
}

/* Modal */
.modal-header {
  background: var(--primary);
  color: #ffffff;
  padding: 16px 20px;
}
.modal-header .btn-close {
  filter: brightness(0) invert(1);
}
