/*
Theme Name: SX Industries - NetSuite
Theme URI: https://sxindustries.com/
Description: Custom Theme by Gordon Multimedia.
Author: Gordon Multimedia
Version: 1.0
Template:Divi
*/

.et_pb_svg_logo #logo {
	max-width: 250px;
}
/* === Parts Grid (scoped by class) === */
.gm-parts-grid {
	--gm-cols: 3;
	--gm-gap: 1rem;
	display: grid;
	grid-template-columns: repeat(var(--gm-cols), minmax(0, 1fr));
	gap: var(--gm-gap);
	margin: 1rem 0;
}
@media (max-width: 1024px) {
	.gm-parts-grid { --gm-cols: 2; }
}
@media (max-width: 640px) {
	.gm-parts-grid { --gm-cols: 1; }
}
.gm-part-card {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	transition: box-shadow .15s ease, transform .15s ease;
}
.gm-part-card:hover {
	box-shadow: 0 6px 18px rgba(0,0,0,0.08);
	transform: translateY(-2px);
}
.gm-part-media {
	aspect-ratio: 1 / 1;
	background: #f5f6f8;
	display: block;
	overflow: hidden;
}
.gm-part-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.gm-part-body {
	padding: .9rem 1rem 1rem;
	display: flex;
	flex-direction: column;
	gap: .35rem;
}
.gm-part-title {
	font-weight: 600;
	font-size: 1rem;
	margin: 0 0 .25rem;
	line-height: 1.3;
}
.gm-part-title a {
	text-decoration: none;
	color: inherit;
}
.gm-part-meta {
	font-size: .875rem;
	color: #4b5563;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0 .5rem;
	line-height: 1.25rem;
}
.gm-part-meta .label { color: #6b7280; }
.gm-part-cta {
	margin-top: .5rem;
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	font-size: .875rem;
	text-decoration: none;
	color: #2563eb;
}
.gm-part-empty {
	padding: 1rem;
	border: 1px dashed #d1d5db;
	border-radius: 8px;
	background: #fafafa;
	color: #6b7280;
}
.gm-part-card { 
	position: relative; 
}
.gm-fav, .gm-add-file {
	color: #CCC;
}
.gm-fav.active {
	color: #B51F23;
}
.gm-add-file.active {
	color: #333;
}
.gm-part-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.gm-part-actions .gm-action {
  appearance: none;
  border: 0;
  background: rgba(255,255,255,.92);
  border-radius: 8px;
  padding: 6px;
  line-height: 0;
  cursor: pointer;
}

.gm-part-actions .gm-action:hover {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.gm-part-actions i { font-size: 16px; }

/* === Parts Grid: Pagination === */
.gm-parts-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin: 1rem 0 2rem;
  font-size: 0.95rem;
}

/* WordPress outputs these .page-numbers items */
.gm-parts-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 .6rem;
  border: 1px solid #e5e7eb;         /* light gray */
  border-radius: 8px;
  background: #fff;
  color: #374151;                     /* gray-700 */
  text-decoration: none;
  line-height: 1;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}

.gm-parts-pagination .page-numbers:hover {
  background: #f9fafb;                /* hover bg */
  border-color: #d1d5db;
  transform: translateY(-1px);
}

.gm-parts-pagination .page-numbers:focus-visible {
  outline: 2px solid #2563eb;         /* blue focus ring */
  outline-offset: 2px;
}

/* Current page */
.gm-parts-pagination .page-numbers.current {
  background: #111827;                /* gray-900 */
  color: #fff;
  border-color: #111827;
  cursor: default;
  transform: none;
}

/* Ellipsis */
.gm-parts-pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
  color: #6b7280;                      /* gray-600 */
  min-width: auto;
  height: auto;
  padding: 0 .25rem;
}

/* Prev/Next links (WP uses « and » by default) */
.gm-parts-pagination .page-numbers.prev,
.gm-parts-pagination .page-numbers.next {
  padding: 0 .75rem;
}

/* Optional: status text on the right */
.gm-parts-pagination .gm-page-status {
  margin-left: auto;
  color: #6b7280;
  font-size: .9rem;
}

/* Compact variant (add .is-compact to the nav if needed) */
.gm-parts-pagination.is-compact .page-numbers {
  min-width: 2rem;
  height: 2rem;
  padding: 0 .5rem;
  border-radius: 6px;
  font-size: .9rem;
}

/* Dark mode (optional if your site supports it) */
@media (prefers-color-scheme: dark) {
  .gm-parts-pagination .page-numbers {
    background: #0b0f14;
    color: #e5e7eb;
    border-color: #1f2937;
  }
  .gm-parts-pagination .page-numbers:hover {
    background: #131a22;
    border-color: #2a3644;
  }
  .gm-parts-pagination .page-numbers.current {
    background: #2563eb;
    border-color: #2563eb;
  }
  .gm-parts-pagination .gm-page-status {
    color: #9ca3af;
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .gm-parts-pagination .page-numbers {
    transition: none;
  }
}
/* Layout */
.gm-quote-builder { max-width: 1100px; margin: 0 auto; }
.gm-quote-items { display: flex; flex-direction: column; gap: 16px; }

.gm-quote-row {
  display: grid;
  grid-template-columns: 120px 1fr 220px; /* thumb | main | actions */
  gap: 16px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.gm-qc-thumb .gm-quote-thumb img { width: 100%; height: auto; border-radius: 8px; display: block; }

.gm-quote-title { margin: 0 0 6px; font-size: 1rem; line-height: 1.25; }
.gm-quote-title a { text-decoration: none; color: #111827; }
.gm-quote-title a:hover { text-decoration: underline; }

.gm-quote-meta { display: flex; gap: 14px; margin: 4px 0 8px; font-size: .9rem; color: #374151; }
.gm-quote-meta .label { color: #6b7280; margin-right: 6px; }
.gm-quote-desc { color: #4b5563; font-size: .95rem; }

.gm-qc-actions { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 10px; }
.gm-quote-qty-wrap { display: flex; flex-direction: column; gap: 6px; }
.gm-qty-label { font-size: .85rem; color: #374151; }
.gm-qty-input {
  max-width: 120px;
  padding: 9px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font: inherit;
}
.gm-qty-input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.15); }

.gm-quote-remove { text-align: right; }
.gm-remove-from-quote {
  appearance: none;
  border: 0;
  background: #fee2e2;
  color: #991b1b;
  width: 36px; height: 36px;
  border-radius: 8px;
  font-size: 20px; line-height: 1;
  cursor: pointer;
}
.gm-remove-from-quote:hover { background: #fecaca; }

/* Contact fields */
.gm-quote-contact { margin-top: 24px; border: 1px solid #e5e7eb; padding: 16px; border-radius: 10px; }
.gm-quote-contact > legend { padding: 0 6px; font-weight: 600; color: #111827; }
.gm-quote-contact .gm-field { display: grid; grid-template-columns: 200px 1fr; gap: 12px; align-items: center; margin: 10px 0; }

.gm-quote-contact input[type="text"],
.gm-quote-contact input[type="email"],
.gm-quote-contact input[type="tel"],
.gm-quote-notes textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font: inherit;
  transition: border-color .12s ease, box-shadow .12s ease;
  background: #fff;
}
.gm-quote-contact input:focus,
.gm-quote-notes textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

.gm-quote-notes { margin-top: 18px; }
.gm-quote-notes label { display: block; margin-bottom: 6px; color: #374151; }

.gm-quote-actions { margin-top: 20px; text-align: right; }
.gm-quote-submit {
  appearance: none;
  border: 0;
  background: #1f2937;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}
.gm-quote-submit:hover { background: #111827; }

/* Empty */
.gm-quote-empty { padding: 16px; border: 1px dashed #d1d5db; border-radius: 10px; color: #6b7280; }

/* Responsive */
@media (max-width: 900px) {
  .gm-quote-row { grid-template-columns: 100px 1fr; }
  .gm-qc-actions { grid-column: 1 / -1; grid-template-columns: auto auto; justify-content: space-between; }
}
@media (max-width: 560px) {
  .gm-quote-contact .gm-field { grid-template-columns: 1fr; }
}
.gm-collections-sidebar {
  display: grid;
  gap: 8px;
}
.gm-collection-mini {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--gm-border, #e5e7eb);
  border-radius: 10px;
  text-decoration: none;
}
.gm-collection-mini:hover {
  background: var(--gm-hover, #f8fafc);
}
.gm-collection-mini .thumb img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.gm-collection-mini .title {
  font-size: 0.95rem;
  line-height: 1.2;
  color: inherit;
}

