/* ===================================================
   EIT Catalog — Custom Stylesheet
   =================================================== */

/* Fonts */
@font-face { font-family: 'Lufga'; src: url('../fonts/LufgaRegular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Lufga'; src: url('../fonts/LufgaMedium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Lufga'; src: url('../fonts/LufgaSemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Lufga'; src: url('../fonts/LufgaBold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --orange: #cb4b10;
  --orange-dark: #a83d0c;
  --dark: #111;
  --grey-bg: #f5f5f5;
  --border: #e8e8e8;
  --text-muted: #888;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Lufga', Arial, sans-serif; color: #222; background: #fff; }
a { text-decoration: none; color: inherit; }

/* ===== NAVBAR ===== */
.eit-navbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.eit-logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.02em;
}
.eit-logo-text .arrow { color: var(--orange); }
.hamburger-svg { width: 22px; height: 22px; color: #111; display: block; }
.eit-navbar .nav-link {
  color: #444;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  transition: color 0.15s;
}
.eit-navbar .nav-link:hover,
.eit-navbar .nav-link.active { color: var(--orange); }
.btn-quote {
  background: var(--orange);
  color: #fff !important;
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.btn-quote:hover { background: var(--orange-dark); }

/* ===== BREADCRUMB ===== */
.eit-breadcrumb {
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: #fafafa;
  border-bottom: 1px solid var(--border);
}
.eit-breadcrumb a { color: #666; }
.eit-breadcrumb a:hover { color: var(--orange); }
.eit-breadcrumb .sep { margin: 0 0.4rem; color: #ccc; }
.eit-breadcrumb .current { color: var(--orange); font-weight: 500; }

/* ===== HERO ===== */
.eit-hero {
  background: linear-gradient(135deg, #f8f8f8 60%, #f0ece8);
  padding: 3rem 0 0;
  overflow: hidden;
}
.eit-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  max-width: 560px;
  line-height: 1.25;
  margin-bottom: 2rem;
}
.eit-hero-block {
  margin-top: 2rem;
  background: #e4eaf0;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eit-hero-placeholder {
  color: #aaa;
  font-size: 0.875rem;
  text-align: center;
  padding: 2rem;
}
.eit-hero-divider {
  height: 3px;
  background: var(--orange);
  margin-top: 0;
}

/* ===== SECTION TITLE ===== */
.eit-section-title {
  font-size: clamp(1.125rem, 2.5vw, 1.625rem);
  font-weight: 700;
  margin: 2.5rem 0 1.5rem;
  line-height: 1.3;
}

/* ===== CATALOG SERVICE CARDS (match homepage style) ===== */
.eit-cat-card {
  padding: 1.25rem !important;
  min-height: 360px;
  display: flex !important;
  flex-direction: column;
  height: 100%;
}
.eit-cat-card .service-card-content { flex: 0 0 auto; }
.eit-cat-card-title {
  font-size: clamp(0.9375rem, 1.6vw, 1.125rem);
  font-weight: 700;
  color: #111;
  line-height: 1.3;
  margin: 0;
}
/* Product / category image fills the rest of the card */
.eit-cat-card-img {
  width: 100%;
  flex: 1 1 auto;
  display: block;
  border-radius: 10px;
  margin-top: 0.875rem;
  min-height: 240px;
  object-fit: cover;
}
/* Empty state when no image */
.eit-cat-card-empty {
  width: 100%;
  flex: 1 1 auto;
  background: #e8e8f0;
  border-radius: 10px;
  margin-top: 0.875rem;
  min-height: 240px;
}

/* ── Arrow animation (replicate Webflow slide-in effect) ── */
.service-button .arrow-btn-1 {
  transition: left 0.32s ease;
}
.service-button .arrow-btn-2 {
  position: relative;
  transition: transform 0.32s ease;
}
a:hover .service-button .arrow-btn-1 {
  left: calc(50% - 7px);   /* centre the 14px icon */
}
a:hover .service-button .arrow-btn-2 {
  transform: translateX(38px);
}

/* "Other Products in …" section heading (when a category has both
   sub-categories and direct products) */
.eit-page-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.375rem);
  font-weight: 700;
  color: #1a1a1a;
  border-top: 1px solid #ececec;
  padding-top: 1.25rem;
  letter-spacing: -0.01em;
}

/* ===== SIDEBAR ===== */
.eit-sidebar {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  position: sticky;
  top: 80px;
}
.eit-sidebar h3 {
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #777;
}
.eit-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.eit-sidebar ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8125rem;
  color: #555;
  transition: background 0.15s, color 0.15s;
}
.eit-sidebar ul li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  color: inherit;
}
.eit-sidebar ul li:hover { background: #eee; color: var(--orange); }
.eit-sidebar ul li.active { background: var(--orange); color: #fff; font-weight: 600; }
.eit-sidebar ul li.active a { color: #fff; }
.eit-sidebar ul li .count {
  font-size: 0.7rem;
  opacity: 0.65;
  margin-left: 0.25rem;
}

/* ===== PAGE TITLE ===== */
.eit-page-title {
  font-size: clamp(1.375rem, 3.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #111;
}

/* ===== PRODUCT DETAIL ===== */
.eit-detail-img {
  border-radius: 12px;
  overflow: hidden;
  background: var(--grey-bg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eit-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.eit-detail-body h1 {
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.25;
}
.eit-detail-body > p { color: #555; margin-bottom: 1rem; line-height: 1.65; }
.eit-detail-body ul {
  padding-left: 1.375rem;
  color: #555;
  margin-bottom: 1.25rem;
}
.eit-detail-body ul li { margin-bottom: 0.5rem; line-height: 1.55; }
.eit-bubble-heights {
  max-width: 100%;
  height: auto;
  margin-top: 1.5rem;
  border-radius: 6px;
}

/* ===== SPEC TABLES ===== */
.eit-table-wrap {
  margin-top: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.eit-table-title {
  background: #f8f8f8;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border);
}
.eit-table-title .muted {
  font-weight: 400;
  color: #888;
  font-size: 0.875rem;
}
.eit-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: #fff;
}
.eit-spec-table th {
  background: #fafafa;
  padding: 0.625rem 1.25rem;
  text-align: left;
  font-weight: 600;
  color: #444;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.eit-spec-table td {
  padding: 0.6rem 1.25rem;
  border-bottom: 1px solid #f4f4f4;
  color: #555;
}
.eit-spec-table tr:last-child td { border-bottom: none; }
.eit-spec-table tbody tr:hover { background: #fdfcfb; }
.eit-spec-table a.eit-stock-link {
  color: #cb4b10;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(203, 75, 16, 0.45);
}
.eit-spec-table a.eit-stock-link:hover {
  color: #a83d0c;
  border-bottom-color: #a83d0c;
}

/* ===== FOOTER ===== */
.eit-footer {
  background: #111;
  color: #ccc;
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}
.eit-footer .eit-logo-text { color: #fff; }
.eit-footer h4 {
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.eit-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.eit-footer ul li {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: #999;
}
.eit-footer ul li a { color: #999; }
.eit-footer ul li:hover, .eit-footer ul li a:hover { color: var(--orange); }
.eit-footer p { font-size: 0.875rem; color: #999; margin-bottom: 0.4rem; }
.newsletter { max-width: 400px; margin-left: auto; }
.newsletter-label { font-size: 0.875rem; color: #aaa; margin-bottom: 0.75rem; }
.newsletter-row {
  display: flex;
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  background: #1a1a1a;
}
.newsletter-row input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.6rem 1rem;
  color: #fff;
  font-size: 0.875rem;
  outline: none;
  font-family: 'Lufga', Arial, sans-serif;
}
.newsletter-row input::placeholder { color: #555; }
.newsletter-row button {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Lufga', Arial, sans-serif;
}
.newsletter-row button:hover { background: var(--orange-dark); }
.footer-divider { border-top: 1px solid #1e1e1e; margin: 2.5rem 0 1.5rem; }
.footer-copy { font-size: 0.8rem; color: #555; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: #666; font-size: 1.1rem; transition: color 0.15s; }
.footer-social a:hover { color: var(--orange); }

/* ===== ALERTS (admin flash messages on catalog) ===== */
.eit-alert {
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
.eit-alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.eit-alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 767px) {
  .eit-hero { padding: 2rem 0 0; }
  .eit-footer { padding: 2.5rem 0 1.5rem; margin-top: 3rem; }
  .newsletter { margin-left: 0; }
}

/* ===== WEBFLOW HEADING OVERRIDES (catalog content) ===== */
/* Webflow CSS sets large global h1-h4 sizes; these scoped rules keep catalog headings compact */
h1.eit-page-title        { font-size: clamp(1.375rem, 3.5vw, 2rem) !important; text-transform: none !important; }
h2.eit-section-title     { font-size: clamp(1.125rem, 2.5vw, 1.625rem) !important; text-transform: none !important; }
.eit-detail-body h1      { font-size: clamp(1.375rem, 3vw, 1.875rem) !important; text-transform: none !important; }
.eit-sidebar h3          { font-size: 0.75rem !important; text-transform: uppercase !important; }
.eit-breadcrumb, .eit-breadcrumb * { text-transform: none; }

/* ===== STOCK DETAIL PAGE ===== */

/* Generic catalog buttons (these classes are also referenced from admin) */
.btn-orange         { background: var(--orange); color: #fff; border: 1px solid var(--orange); font-weight: 600; }
.btn-orange:hover   { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }
.btn-outline-orange { background: transparent; color: var(--orange); border: 1px solid var(--orange); font-weight: 600; }
.btn-outline-orange:hover { background: var(--orange); color: #fff; }

/* Hero card */
.eit-stock-hero {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.04);
  margin-bottom: 1.75rem;
}
.eit-stock-hero-imgcol {
  background: linear-gradient(145deg, #fafaf8 0%, #f3f1ec 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 1.5rem;
}
.eit-stock-hero-img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.08));
}
.eit-stock-hero-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #b8b3a8;
  font-size: 0.875rem;
}
.eit-stock-hero-placeholder i { font-size: 3rem; opacity: 0.5; }

.eit-stock-hero-body {
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eit-stock-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.eit-stock-label { color: var(--orange); }
.eit-stock-divider { color: #d4d4d4; font-weight: 400; }
.eit-stock-table-title { color: #6b7280; }

/* The big SKU */
.eit-stock-id {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #1a1a1a;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
  margin-bottom: 0.5rem;
  word-break: break-all;
  line-height: 1.1;
}
.eit-stock-copy {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #64748b;
  width: 38px; height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
  font-size: 1rem;
}
.eit-stock-copy:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.eit-stock-copy.is-copied { background: #10b981; color: #fff; border-color: #10b981; }

.eit-stock-product { font-size: 0.95rem; margin-bottom: 1rem; }
.eit-stock-product a { color: #475569; text-decoration: none; border-bottom: 1px dotted #cbd5e1; }
.eit-stock-product a:hover { color: var(--orange); border-bottom-color: var(--orange); }

/* Headline pills */
.eit-stock-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.eit-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
}
.eit-pill-label {
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.eit-pill-value { color: #0f172a; font-weight: 600; }

.eit-stock-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
}
.eit-stock-actions .btn { padding: 0.5rem 1rem; font-size: 0.875rem; }
.eit-back-link {
  color: #64748b;
  text-decoration: none;
  font-size: 0.8125rem;
  margin-left: 0.25rem;
}
.eit-back-link:hover { color: var(--orange); }

/* Sibling switcher */
.eit-stock-switcher {
  background: #fffaf6;
  border: 1px solid #fde6d3;
  border-radius: 10px;
  padding: 0.875rem 1.125rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.875rem;
}
.eit-stock-switcher-label {
  font-size: 0.8125rem;
  color: #6b6055;
  font-weight: 600;
}
.eit-stock-switcher-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.eit-stock-switch-pill {
  display: inline-block;
  padding: 0.3125rem 0.75rem;
  background: #fff;
  border: 1px solid #e8d5be;
  border-radius: 6px;
  color: #6b6055;
  text-decoration: none;
  font-size: 0.8125rem;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 600;
  transition: all 0.12s;
}
.eit-stock-switch-pill:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.eit-stock-switch-pill.is-active {
  background: var(--orange); color: #fff; border-color: var(--orange);
  box-shadow: 0 2px 6px rgba(203, 75, 16, 0.25);
}

/* Attribute card grid */
.eit-attr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.875rem;
  margin-bottom: 2rem;
}
.eit-attr-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 10px;
  padding: 0.875rem 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.eit-attr-card:hover {
  border-color: #d4d4d4;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.eit-attr-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff5ed 0%, #ffe6d3 100%);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.eit-attr-body { flex: 1; min-width: 0; }
.eit-attr-label {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.125rem;
}
.eit-attr-value {
  color: #0f172a;
  font-weight: 600;
  font-size: 0.9375rem;
  word-break: break-word;
}

/* About section */
.eit-stock-about {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 1.75rem;
  margin-top: 1rem;
}
.eit-stock-about-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a1a1a;
}
.eit-stock-description {
  color: #475569;
  line-height: 1.7;
  margin: 0;
}
.eit-stock-features-card {
  background: linear-gradient(160deg, #fffaf6 0%, #fff5ed 100%);
  border: 1px solid #fde6d3;
  border-radius: 10px;
  padding: 1rem 1.25rem;
}
.eit-stock-features-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 0.625rem;
  display: flex; align-items: center; gap: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.eit-stock-features-card ul {
  margin: 0; padding-left: 1.125rem;
  color: #475569;
  font-size: 0.9rem;
}
.eit-stock-features-card li { margin-bottom: 0.375rem; }
.eit-stock-features-card li:last-child { margin-bottom: 0; }

/* Mobile tweaks */
@media (max-width: 767.98px) {
  .eit-stock-hero-imgcol { min-height: 220px; }
  .eit-stock-hero-body   { padding: 1.25rem 1.25rem 1.5rem; }
  .eit-stock-actions     { flex-direction: column; align-items: stretch; }
  .eit-stock-actions .btn,
  .eit-stock-actions .eit-back-link { width: 100%; text-align: center; }
  .eit-stock-switcher    { flex-direction: column; align-items: flex-start; }
  .eit-attr-grid         { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .eit-attr-grid { grid-template-columns: 1fr; }
}

/* Print */
@media print {
  .eit-breadcrumb, .eit-stock-actions, .eit-stock-switcher,
  .nav-component, .footer { display: none !important; }
  .eit-stock-hero { box-shadow: none; border: 1px solid #ddd; }
  .eit-attr-card  { break-inside: avoid; }
}
