/* ==========================================================================
   TENTING2 // B2B INDUSTRIAL SUPPLIES STYLESHEET (RESTORED)
   ========================================================================== */

:root {
  --primary-navy: #0B132B;
  --secondary-navy: #1C2541;
  --accent-orange: #FF5A1F;
  --accent-orange-hover: #E04810;
  --whatsapp-green: #25D366;
  --whatsapp-hover: #1EBE5D;
  
  --bg-page: #F4F6F9;
  --bg-card: #FFFFFF;
  --bg-subtle: #EBEEF3;
  --text-dark: #121826;
  --text-muted: #5C677D;
  --border-color: #DCE1EA;
  --border-strong: #B0B9C9;
  
  --shadow-sm: 0 2px 8px rgba(11, 19, 43, 0.05);
  --shadow-md: 0 8px 24px -4px rgba(11, 19, 43, 0.1);
  --shadow-lg: 0 16px 40px -6px rgba(11, 19, 43, 0.18);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* TOP ANNOUNCEMENT BAR */
.top-announcement {
  background: var(--primary-navy);
  color: #FFFFFF;
  font-size: clamp(0.7rem, 2vw, 0.8rem);
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.announcement-content {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.banner-link {
  color: #FFB380;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.banner-link:hover { text-decoration: underline; }

/* MAIN NAVBAR */
.main-nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.brand-tag {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent-orange);
  text-transform: uppercase;
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-navy);
  line-height: 1;
}

.brand-name b {
  color: var(--accent-orange);
}

.nav-search-bar {
  flex: 1;
  min-width: 240px;
  max-width: 520px;
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search-bar svg {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.nav-search-bar input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 42px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s ease;
}

.nav-search-bar input:focus {
  background: #FFFFFF;
  border-color: var(--primary-navy);
  box-shadow: 0 0 0 3px rgba(11, 19, 43, 0.08);
}

.btn-quote-cart {
  background: var(--primary-navy);
  color: #FFFFFF;
  border: none;
  height: 42px;
  padding: 0 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-quote-cart:hover {
  background: var(--secondary-navy);
  transform: translateY(-1px);
}

.quote-badge {
  background: var(--accent-orange);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* HERO SECTION */
.hero-b2b {
  background: linear-gradient(135deg, #0B132B 0%, #1C2541 60%, #2A3656 100%);
  color: #FFFFFF;
  padding: clamp(40px, 7vw, 75px) 16px;
  text-align: center;
  position: relative;
}

.hero-inner {
  max-width: 880px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 90, 31, 0.2);
  border: 1px solid rgba(255, 90, 31, 0.5);
  color: #FFA580;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero-main-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: clamp(0.92rem, 2vw, 1.08rem);
  color: #D0D6E2;
  line-height: 1.6;
  margin-bottom: 26px;
}

.hero-subtitle b { color: #FFFFFF; }

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.btn-hero-primary {
  background: var(--accent-orange);
  color: #FFFFFF;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.2s ease;
}

.btn-hero-primary:hover { background: var(--accent-orange-hover); }

.btn-hero-wa {
  background: var(--whatsapp-green);
  color: #FFFFFF;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease;
}

.btn-hero-wa:hover { background: var(--whatsapp-hover); }

.hero-specs-strip {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  color: #B8C2D4;
}

.spec-cell b { color: #FFFFFF; }

/* CATEGORY TRACK */
.category-nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 16px;
  position: sticky;
  top: 67px;
  z-index: 85;
}

.category-track {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: thin;
}

.cat-pill {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.cat-pill:hover {
  border-color: var(--primary-navy);
}

.cat-pill.active {
  background: var(--primary-navy);
  color: #FFFFFF;
  border-color: var(--primary-navy);
}

/* MAIN CATALOG GRID */
.catalog-container {
  max-width: 1240px;
  width: 100%;
  margin: 32px auto;
  padding: 0 16px;
  flex: 1;
}

.catalog-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  flex-wrap: wrap;
  gap: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.quote-info-tag {
  background: #FFF4E5;
  border: 1px solid #FFE0B2;
  color: #B75200;
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 6px;
}

/* INDUSTRIAL PRODUCTS GRID */
.industrial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 20px;
}

.industrial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.industrial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-navy);
}

.card-img-box {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.industrial-card:hover .card-img {
  transform: scale(1.04);
}

.card-tag-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary-navy);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-cat {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 4px 0 8px;
  color: var(--primary-navy);
  line-height: 1.25;
}

.card-specs-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  background: var(--bg-subtle);
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.spec-line {
  color: var(--text-dark);
}

.spec-line strong {
  color: var(--text-muted);
}

.card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 16px;
  flex: 1;
}

.card-actions {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.btn-card-quote {
  flex: 1;
  background: var(--whatsapp-green);
  color: #FFFFFF;
  text-decoration: none;
  height: 40px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease;
}

.btn-card-quote:hover { background: var(--whatsapp-hover); }

.btn-card-add {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--primary-navy);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all 0.15s ease;
}

.btn-card-add:hover {
  background: var(--primary-navy);
  color: #FFFFFF;
}

/* QUOTE SLIDE-OVER DRAWER */
.drawer-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(11, 19, 43, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.quote-drawer {
  position: absolute;
  top: 0; right: 0; width: 100%; max-width: 460px; height: 100%;
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-backdrop.open .quote-drawer {
  transform: translateX(0);
}

.drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.sub-drawer-title {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.btn-close-drawer {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quote-empty {
  text-align: center;
  color: var(--text-muted);
  margin: auto;
  font-size: 0.9rem;
}

.quote-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.quote-item-img {
  width: 55px;
  height: 55px;
  border-radius: 6px;
  object-fit: cover;
  background: #E8EDF4;
  flex-shrink: 0;
}

.quote-item-info {
  flex: 1;
  min-width: 0;
}

.quote-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.quote-item-cat {
  font-size: 0.72rem;
  color: var(--accent-orange);
}

.quote-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.qty-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  width: 26px;
  height: 26px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.drawer-footer {
  padding: 18px 20px;
  border-top: 1px solid var(--border-color);
  background: #FAFBFD;
}

.compliance-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 12px;
}

.btn-send-bulk-quote {
  width: 100%;
  background: var(--whatsapp-green);
  color: #FFFFFF;
  border: none;
  height: 50px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.btn-send-bulk-quote:hover:not(:disabled) { background: var(--whatsapp-hover); }
.btn-send-bulk-quote:disabled { background: #D0D6E2; cursor: not-allowed; }

/* MODALS */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(11, 19, 43, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  width: 100%;
  max-width: 650px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-cat-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent-orange);
  text-transform: uppercase;
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary-navy);
}

.modal-body {
  padding: 20px 22px;
  overflow-y: auto;
}

.modal-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
}

.modal-img-wrap {
  aspect-ratio: 1 / 1;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spec-desc-text {
  font-size: 0.88rem;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 14px;
}

.spec-table {
  background: var(--bg-subtle);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  gap: 12px;
}

.spec-label {
  color: var(--text-muted);
  font-weight: 600;
}

.spec-val {
  font-weight: 700;
  color: var(--primary-navy);
  text-align: right;
}

.quote-action-box label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.qty-field-group {
  display: flex;
  gap: 10px;
}

.qty-field-group input {
  width: 80px;
  height: 46px;
  padding: 0 10px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

.btn-wa-direct {
  flex: 1;
  background: var(--whatsapp-green);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
}

/* COMPLIANCE FOOTER */
.compliance-footer {
  background: var(--primary-navy);
  color: #A5B0C2;
  padding: 50px 16px 24px;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-wrapper {
  max-width: 1240px;
  margin: 0 auto;
}

.footer-cols-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.footer-brand b { color: var(--accent-orange); }

.brand-tagline {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #8C9BB0;
  margin-bottom: 16px;
}

.sic-badge-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 12px;
}

.sic-link-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.78rem;
}

.sic-link-badge small {
  display: block;
  color: #FFB380;
  font-size: 0.68rem;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.footer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-menu li span, .footer-menu li a {
  color: #9AA8BC;
  font-size: 0.82rem;
  text-decoration: none;
}

.btn-legal-link {
  background: transparent;
  border: none;
  color: #9AA8BC;
  font-size: 0.82rem;
  cursor: pointer;
  text-align: left;
  padding: 0;
  text-decoration: underline;
}

.btn-legal-link:hover { color: #FFFFFF; }

.contact-hl {
  color: var(--whatsapp-green);
  font-size: 1rem;
  text-decoration: none;
  font-weight: 700;
}

.footer-legal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  font-size: 0.75rem;
  color: #6C7A8F;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-sub {
  display: block;
  font-size: 0.7rem;
  margin-top: 2px;
}

@media (max-width: 640px) {
  .nav-search-bar { order: 3; max-width: 100%; width: 100%; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-img-wrap { aspect-ratio: 16 / 9; }
}
