/* ── GMP Equipment Browse ── */

.gmp-equipment-browse {
  padding: 40px 0 80px;
}

/* Header */
.gmp-equipment__header {
  margin-bottom: 8px;
}
.gmp-equipment__header .gmp-section-title {
  font-size: 36px;
  margin-bottom: 4px;
}
.gmp-equipment__count {
  font-size: 14px;
  color: var(--gmp-muted);
}

/* Toolbar */
.gmp-equipment__toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gmp-border);
}
.gmp-equipment__sort-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gmp-equipment__sort-label {
  font-size: 13px;
  color: var(--gmp-muted);
  white-space: nowrap;
}
.gmp-equipment__sort-select {
  width: auto;
  min-width: 180px;
  padding: 8px 12px;
  font-size: 13px;
}

/* Grid */
.gmp-equipment__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Equipment card */
.gmp-equipment-card {
  text-decoration: none;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.gmp-equipment-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--gmp-shadow-elevated);
}

.gmp-equipment-card__img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--gmp-bg-off);
}
.gmp-equipment-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.gmp-equipment-card:hover .gmp-equipment-card__img {
  transform: scale(1.03);
}
.gmp-equipment-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gmp-bg-off);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gmp-equipment-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.gmp-equipment-card__body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gmp-equipment-card__title {
  font-family: var(--gmp-font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--gmp-ink);
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gmp-equipment-card__meta {
  margin-bottom: 12px;
}
.gmp-equipment-card__manufacturer {
  font-size: 12px;
  color: var(--gmp-muted);
  background: var(--gmp-bg-off);
  padding: 3px 8px;
  border-radius: var(--gmp-radius-chip);
}

.gmp-equipment-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--gmp-border);
}
.gmp-equipment-card__price {
  font-size: 15px;
  font-weight: 600;
  color: var(--gmp-ink);
}

/* Empty state */
.gmp-equipment__empty {
  text-align: center;
  padding: 64px 20px;
}
.gmp-equipment__empty h3 {
  font-family: var(--gmp-font-heading);
  font-size: 24px;
  color: var(--gmp-ink);
  margin-bottom: 8px;
}
.gmp-equipment__empty p {
  font-size: 14px;
  color: var(--gmp-muted);
}

/* Pagination */
.gmp-equipment__pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
.gmp-equipment__pagination ul {
  list-style: none;
  display: flex;
  gap: 4px;
  padding: 0;
  margin: 0;
}
.gmp-equipment__pagination li {
  display: inline;
}
.gmp-equipment__pagination a,
.gmp-equipment__pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--gmp-radius-btn);
  text-decoration: none;
  transition: all .15s;
}
.gmp-equipment__pagination a {
  color: var(--gmp-ink2);
  border: 1px solid var(--gmp-border2);
}
.gmp-equipment__pagination a:hover {
  border-color: var(--gmp-blue);
  color: var(--gmp-blue);
}
.gmp-equipment__pagination .current {
  background: var(--gmp-blue);
  color: #fff;
  border: 1px solid var(--gmp-blue);
}

/* Responsive */
@media (max-width: 768px) {
  .gmp-equipment__grid {
    grid-template-columns: 1fr;
  }
  .gmp-equipment__toolbar {
    justify-content: flex-start;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .gmp-equipment__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ══════════════════════════════════════════
   EQUIPMENT LANDING PAGE (/parts-equipment/)
   ══════════════════════════════════════════ */

/* Astra header hiding + nav fixes handled globally in navigation.css via body.gmp-redesign */

/* General fonts and smoothing */
body.gmp-equipment-landing {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  color: #0d1f3c;
}

/* Headings */
body.gmp-equipment-landing h1,
body.gmp-equipment-landing h2,
body.gmp-equipment-landing h3 {
  font-family: 'DM Serif Display', Georgia, serif !important;
}

/* Paragraphs and body text */
body.gmp-equipment-landing p,
body.gmp-equipment-landing span {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Primary buttons — match GMP blue */
body.gmp-equipment-landing .elementor-button {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  background-color: #1460dc !important;
  transition: opacity .2s !important;
}
body.gmp-equipment-landing .elementor-button:hover {
  opacity: 0.88 !important;
}

/* ══════════════════════════════════════════
   EQUIPMENT CATEGORY PAGE (WooCommerce archive)
   ══════════════════════════════════════════ */

/* Force-fix header/logo */
body.gmp-equipment-category #gmp-nav,
body.gmp-equipment-category .gmp-nav { overflow: visible !important; }
body.gmp-equipment-category .gmp-nav__logo-img { height: 50px !important; width: auto !important; }
body.gmp-equipment-category .gmp-nav__inner { height: 72px !important; }
body.admin-bar.gmp-equipment-category #gmp-nav,
body.admin-bar.gmp-equipment-category .gmp-nav { top: 32px !important; }

/* Hide old page title — replaced by hero */
body.gmp-equipment-category .woocommerce-products-header,
body.gmp-equipment-category .ast-archive-description {
  display: none !important;
}

/* Archive hero — compact */
.gmp-eq-archive-hero {
  text-align: center;
  padding: 48px 24px 40px;
  background: #0d1f3c;
  margin: -32px -40px 32px;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.gmp-eq-archive-hero__eyebrow {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
  font-family: 'Geist', -apple-system, sans-serif;
}
.gmp-eq-archive-hero__title {
  font-family: 'DM Serif Display', Georgia, serif !important;
  font-size: 32px;
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0;
}
.gmp-eq-archive-hero__title em {
  font-style: italic;
  color: #7db4ff;
}
.gmp-eq-archive-hero__line {
  display: none;
}
.gmp-eq-archive-hero__btn {
  display: none;
  background: #0067FF;
  color: #fff !important;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Geist', -apple-system, sans-serif;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0,0,0,.15);
  transition: all 0.25s ease;
}
.gmp-eq-archive-hero__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
  color: #fff !important;
}

/* Legacy title selector — kept for child categories */
body.gmp-equipment-category .woocommerce-products-header__title,
body.gmp-equipment-category .page-title,
body.gmp-equipment-category .ast-archive-description .ast-archive-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  color: #0d1f3c;
  text-align: center;
  margin: 32px 0 8px;
}

/* WOOF filter styling */
body.gmp-equipment-category .woof_container {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
}
body.gmp-equipment-category .woof_container .woof_container_inner label {
  font-size: 13px;
  color: #3a5070;
}
body.gmp-equipment-category .woof_container .woof_container_inner h4 {
  font-size: 13px;
  font-weight: 600;
  color: #0d1f3c;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Result count & sorting bar */
body.gmp-equipment-category .woocommerce-result-count {
  font-size: 13px;
  color: #5a7090;
}
body.gmp-equipment-category .woocommerce-ordering select {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  padding: 8px 12px;
  border: 1px solid rgba(13,31,60,.12);
  border-radius: 8px;
  background: #fff;
  color: #0d1f3c;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a7090' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

/* Product cards on category page */
body.gmp-equipment-category ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.gmp-equipment-category ul.products li.product {
  background: #fff;
  border: 1px solid rgba(13,31,60,.07);
  border-radius: 12px !important;
  box-shadow: 0 1px 4px rgba(13,31,60,.04);
  overflow: hidden !important;
  transition: transform .2s, box-shadow .2s;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
}
body.gmp-equipment-category ul.products li.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(13,31,60,.1);
}
body.gmp-equipment-category ul.products li.product a.woocommerce-LoopProduct-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Product image */
body.gmp-equipment-category ul.products li.product a img,
body.gmp-equipment-category ul.products li.product .attachment-woocommerce_thumbnail {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

/* Product title */
body.gmp-equipment-category ul.products li.product .woocommerce-loop-product__title,
body.gmp-equipment-category ul.products li.product h2 {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #0d1f3c !important;
  padding: 14px 16px 4px !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

/* Category label above title */
body.gmp-equipment-category ul.products li.product .ast-woo-product-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #059669;
  padding: 12px 16px 0;
  margin: 0;
}

/* Price */
body.gmp-equipment-category ul.products li.product .price {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #0d1f3c !important;
  padding: 4px 16px 12px !important;
  margin: 0 !important;
}

/* Style add-to-cart button on category cards (equipment is a webshop) */
body.gmp-equipment-category ul.products li.product .button,
body.gmp-equipment-category ul.products li.product .add_to_cart_button {
  display: block !important;
  width: calc(100% - 32px) !important;
  margin: 0 16px 16px !important;
  padding: 10px 16px !important;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-align: center !important;
  color: #fff !important;
  background: #1460dc !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: opacity .2s !important;
}
body.gmp-equipment-category ul.products li.product .button:hover,
body.gmp-equipment-category ul.products li.product .add_to_cart_button:hover {
  opacity: 0.88 !important;
}
/* Hide wishlist on category page */
body.gmp-equipment-category ul.products li.product .tinvwl_add_to_wishlist_button,
body.gmp-equipment-category ul.products li.product .tinv-wishlist,
body.gmp-equipment-category ul.products li.product .yith-wcwl-add-to-wishlist {
  display: none !important;
}

/* Filter sidebar styling */
body.gmp-equipment-category .widget,
body.gmp-equipment-category .wc-block-components-filter-panel {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
}
body.gmp-equipment-category .widget-title,
body.gmp-equipment-category .wc-block-components-filter-panel__label {
  font-size: 13px;
  font-weight: 600;
  color: #0d1f3c;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
body.gmp-equipment-category .widget ul li,
body.gmp-equipment-category .wc-block-components-checkbox__label {
  font-size: 13px;
  color: #3a5070;
}

/* Sidebar container */
body.gmp-equipment-category #secondary,
body.gmp-equipment-category .ast-woo-sidebar,
body.gmp-equipment-category aside.widget-area {
  background: #fff;
  border: 1px solid rgba(13,31,60,.07);
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(13,31,60,.04);
  padding: 20px;
}

/* General page font */
body.gmp-equipment-category {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Responsive — category page */
@media (max-width: 768px) {
  body.gmp-equipment-category ul.products {
    grid-template-columns: 1fr !important;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  body.gmp-equipment-category ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ══════════════════════════════════════════
   SUBCATEGORY CARDS + BREADCRUMB
   ══════════════════════════════════════════ */

/* Breadcrumb — light context (above subcategory cards) */
.gmp-breadcrumb {
  margin-bottom: 16px;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  color: #5a7090;
}
.gmp-breadcrumb a {
  color: #1460dc;
  text-decoration: none;
  transition: color .15s;
}
.gmp-breadcrumb a:hover {
  color: #0d1f3c;
}
.gmp-breadcrumb__sep {
  margin: 0 6px;
  color: #8aa8c8;
}
.gmp-breadcrumb__current {
  color: #0d1f3c;
  font-weight: 500;
}

/* Breadcrumb inside dark hero (when rendered via WooCommerce hook) */
.gmp-archive-hero .gmp-breadcrumb {
  margin-top: 16px;
  margin-bottom: 0;
  color: rgba(255,255,255,0.5);
}
.gmp-archive-hero .gmp-breadcrumb a {
  color: rgba(255,255,255,0.7);
}
.gmp-archive-hero .gmp-breadcrumb a:hover {
  color: #fff;
}
.gmp-archive-hero .gmp-breadcrumb__sep {
  color: rgba(255,255,255,0.35);
}
.gmp-archive-hero .gmp-breadcrumb__current {
  color: rgba(255,255,255,0.9);
}

/* Subcategory cards wrapper */
.gmp-subcategory-cards {
  max-width: 1120px;
  margin: 0 auto 32px;
  padding: 0 40px;
}

/* Grid */
.gmp-subcategory-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Individual card */
.gmp-subcategory-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(13,31,60,.07);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(13,31,60,.03);
  text-decoration: none;
  color: inherit;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.gmp-subcategory-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(13,31,60,.08);
  border-color: rgba(20,96,220,.2);
}

/* Thumbnail */
.gmp-subcategory-card__thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Fallback icon */
.gmp-subcategory-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #edf2f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #5a7090;
}

/* Info */
.gmp-subcategory-card__info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.gmp-subcategory-card__name {
  font-family: 'Geist', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #0d1f3c;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gmp-subcategory-card__count {
  font-size: 12px;
  color: #5a7090;
  margin-top: 1px;
}

/* Arrow */
.gmp-subcategory-card__arrow {
  flex-shrink: 0;
  color: #8aa8c8;
  transition: transform .15s, color .15s;
}
.gmp-subcategory-card:hover .gmp-subcategory-card__arrow {
  transform: translateX(2px);
  color: #1460dc;
}

/* Responsive subcategory cards */
@media (max-width: 768px) {
  .gmp-subcategory-cards {
    padding: 0 20px;
  }
  .gmp-subcategory-cards__grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .gmp-subcategory-cards__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
