/* HeavyUsedParts Theme — matches legacy heavyused/css/style.css */
:root {
  --hup-primary: #ffc107;
  --hup-primary-dark: #e0a800;
  --hup-secondary: #343a40;
  --hup-accent: #27ae60;
  --hup-whatsapp: #25d366;
  --hup-light: #f8f9fa;
  --hup-border: #dee2e6;
  --hup-text: #343a40;
  --hup-muted: #6c757d;
  --hup-white: #ffffff;
  --hup-container: 1200px;
  --hup-radius: 8px;
  --hup-shadow: 0 2px 12px rgba(0,0,0,.08);
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--hup-text);
  line-height: 1.6;
  background: #fff;
}
a { color: var(--hup-primary-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--hup-primary); }
img { max-width: 100%; height: auto; display: block; }

.hup-container { max-width: var(--hup-container); margin: 0 auto; padding: 0 1rem; }
.hup-section { padding: 4rem 0; }
.hup-section--light { background: var(--hup-light); }
.hup-section__title { text-align: center; margin: 0 0 2rem; font-size: 2rem; color: var(--hup-secondary); }
.hup-section__subtitle { text-align: center; margin: -1rem 0 2rem; color: #666; }
.hup-section__cta { text-align: center; margin-top: 2rem; }

.hup-grid { display: grid; gap: 1.5rem; }
.hup-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.hup-grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.hup-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.25rem; border-radius: var(--hup-radius);
  border: 2px solid transparent; font-weight: 600; cursor: pointer;
  transition: .2s ease;
}
.hup-btn--primary { background: var(--hup-primary); color: #222; border-color: var(--hup-primary); }
.hup-btn--primary:hover { background: var(--hup-primary-dark); border-color: var(--hup-primary-dark); color: #222; }
.hup-btn--secondary { background: #6c757d; color: #fff; border-color: #6c757d; }
.hup-btn--secondary:hover { background: #5a6268; color: #fff; }
.hup-btn--outline { background: transparent; border-color: var(--hup-primary); color: var(--hup-secondary); }
.hup-btn--outline:hover { background: var(--hup-primary); color: #222; }
.hup-btn--whatsapp { background: var(--hup-whatsapp); color: #fff; }
.hup-btn--lg { padding: .85rem 1.5rem; font-size: 1.05rem; }

.hup-input {
  width: 100%; padding: .65rem .85rem; border: 1px solid var(--hup-border);
  border-radius: var(--hup-radius); margin-bottom: .75rem;
}

/* Header */
.hup-header {
  background: var(--hup-white); border-bottom: 1px solid var(--hup-border);
  box-shadow: 0 2px 4px rgba(0,0,0,.08);
  position: sticky; top: 0; z-index: 1030;
}
.hup-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 70px; gap: 1rem;
}
.hup-logo a {
  display: flex; align-items: center; gap: .65rem; color: var(--hup-secondary);
}
.hup-logo a:hover { color: var(--hup-secondary); }
.hup-logo__img, .hup-logo .custom-logo { height: 40px; width: auto; max-width: 200px; }
.hup-logo__text { font-weight: 700; font-size: 1rem; color: var(--hup-secondary); white-space: nowrap; }
.hup-nav__list { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.hup-nav__list a { font-weight: 500; color: var(--hup-secondary); }
.hup-nav__list a:hover, .hup-nav__list .current-menu-item > a { color: var(--hup-primary-dark); }
.hup-header__actions { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.hup-hamburger { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--hup-secondary); }

.hup-lang-switcher {
  display: flex; gap: .25rem; border: 1px solid var(--hup-border); border-radius: var(--hup-radius); overflow: hidden;
}
.hup-lang-switcher a {
  padding: .35rem .6rem; font-size: .8rem; font-weight: 700; color: var(--hup-secondary); background: var(--hup-white);
}
.hup-lang-switcher a.is-active { background: var(--hup-primary); color: #222; }
.hup-lang-switcher a:hover:not(.is-active) { background: var(--hup-light); }

.hup-currency-switcher select {
  padding: .35rem .5rem; border: 1px solid var(--hup-border); border-radius: var(--hup-radius);
  font-size: .85rem; background: var(--hup-white);
}
.hup-currency-switcher select:focus { outline: none; border-color: var(--hup-primary); box-shadow: 0 0 0 2px rgba(255,193,7,.25); }

.hup-login-link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .4rem .75rem; border-radius: var(--hup-radius);
  border: 1px solid var(--hup-border); font-size: .85rem; font-weight: 600;
  color: var(--hup-secondary); background: var(--hup-white);
}
.hup-login-link:hover { border-color: var(--hup-primary); color: var(--hup-primary-dark); background: var(--hup-light); }

/* Hero — matches legacy home.css */
.hup-hero {
  position: relative; min-height: 380px; color: var(--hup-white);
  overflow: hidden; text-align: center; padding: 6rem 0;
}
.hup-hero__slides { position: absolute; inset: 0; z-index: 0; }
.hup-hero__slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  background-repeat: no-repeat; opacity: 0; transition: opacity 1.2s ease-in-out;
}
.hup-hero__slide.is-active { opacity: .35; }
.hup-hero::before {
  content: ""; position: absolute; inset: 0; background: var(--hup-secondary); z-index: 0;
}
.hup-hero__content {
  position: relative; z-index: 2; padding: 0 1rem; max-width: 900px; margin: 0 auto;
}
.hup-hero h1 { font-size: clamp(1.6rem, 5vw, 3.5rem); font-weight: 700; margin: 0 0 1rem; line-height: 1.15; }
.hup-hero__subtitle { font-size: clamp(1rem, 2.5vw, 1.25rem); margin: 0 auto 2rem; max-width: 700px; line-height: 1.6; }
.hup-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin: 0 0 1.25rem; }
.hup-hero__brands { font-size: .95rem; margin: 0; }
.hup-hero__brands a,
.hup-hero__brands a:visited {
  color: rgba(255,255,255,.85);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s ease, text-shadow .2s ease;
}
.hup-hero__brands a:hover,
.hup-hero__brands a:focus {
  color: #fff !important;
  text-shadow: 0 0 12px rgba(255,255,255,.45);
}
.hup-hero__brands-sep { opacity: .75; color: rgba(255,255,255,.7); }

/* Cards */
.hup-card {
  background: #fff; border-radius: var(--hup-radius); box-shadow: var(--hup-shadow);
  overflow: hidden; display: flex; flex-direction: column;
}
.hup-card__body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: .35rem; }
.hup-card__title { margin: 0; font-size: 1.05rem; }
.hup-card__price { font-weight: 700; color: var(--hup-accent); margin-top: auto; }

/* Features */
.hup-feature {
  text-align: center; padding: 1.5rem; background: #fff;
  border-radius: var(--hup-radius); box-shadow: var(--hup-shadow);
}
.hup-feature__icon {
  width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%;
  background: var(--hup-primary); color: #fff; display: flex;
  align-items: center; justify-content: center; font-size: 1.5rem;
}

/* Catalog */
.hup-page-header { background: var(--hup-secondary); color: #fff; padding: 2.5rem 0; }
.hup-page-header h1 { margin: 0; }
.hup-catalog-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 2rem;
  padding: 2rem 1rem; max-width: var(--hup-container); margin: 0 auto;
}
.hup-filters { background: var(--hup-light); padding: 1.25rem; border-radius: var(--hup-radius); height: fit-content; }
.hup-brand-card {
  display: block; padding: 2rem; border-radius: var(--hup-radius);
  color: #fff; text-align: center; font-size: 1.2rem;
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.hup-brand-card:hover { transform: translateY(-2px); box-shadow: var(--hup-shadow); }
.hup-brand-card--cat { background: var(--hup-primary); color: #222; }
.hup-brand-card--cat:hover { background: var(--hup-secondary); color: #fff; }
.hup-brand-card--komatsu { background: #27ae60; }
.hup-brand-card--komatsu:hover { background: #1e8449; color: #fff; }

/* Showroom */
.hup-showroom-item { position: relative; border-radius: var(--hup-radius); overflow: hidden; box-shadow: var(--hup-shadow); }
.hup-showroom-item img { width: 100%; height: 280px; object-fit: cover; }
.hup-showroom-item__overlay {
  position: absolute; inset: auto 0 0; padding: 1.25rem;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff;
}
.hup-showroom-item__overlay h3 { margin: 0; font-size: 1.15rem; }

/* Logistics */
.hup-logistics {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}
.hup-logistics__heading { margin-bottom: 2rem; }
.hup-logistics__banner {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.hup-logistics__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hup-logistics__banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: #fff;
  background: linear-gradient(135deg, rgba(52,58,64,.72) 0%, rgba(52,58,64,.45) 100%);
}
.hup-logistics__banner-overlay h3 {
  margin: 0 0 .75rem;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
}
.hup-logistics__banner-overlay p {
  margin: 0;
  max-width: 640px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: .95;
  line-height: 1.5;
}
.hup-logistics__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2rem;
}
.hup-logistics__copy { padding-top: .25rem; }
.hup-logistics__subtitle { font-size: 1.2rem; color: #34495e; margin: 0 0 1.25rem; line-height: 1.6; }
.hup-logistics__description { font-size: 1.1rem; color: #5a6c7d; margin: 0; line-height: 1.7; }
.hup-logistics__features { display: flex; flex-direction: column; gap: 1rem; }
.hup-logistics-feature {
  display: flex; align-items: flex-start; gap: 1.25rem;
  padding: 1.25rem; background: #fff; border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.1); transition: transform .3s ease, box-shadow .3s ease;
}
.hup-logistics-feature:hover { transform: translateY(-4px); box-shadow: 0 5px 20px rgba(0,0,0,.15); }
.hup-logistics-feature__icon {
  flex-shrink: 0; width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--hup-primary), var(--hup-primary-dark));
  color: #222; display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.hup-logistics-feature__content h4 { margin: 0 0 .5rem; color: var(--hup-secondary); font-size: 1.2rem; }
.hup-logistics-feature__content p { margin: 0; color: #5a6c7d; line-height: 1.5; }
.hup-logistics__cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* Single part */
.hup-single-part__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 2rem 0; }
.hup-spec-table { width: 100%; border-collapse: collapse; }
.hup-spec-table th, .hup-spec-table td { padding: .6rem; border-bottom: 1px solid var(--hup-border); text-align: left; }
.hup-single-part__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }

/* Footer */
.hup-footer { background: var(--hup-secondary); color: #ecf0f1; padding: 3rem 0 1.5rem; margin-top: 3rem; }
.hup-footer a { color: #bdc3c7; }
.hup-footer a:hover { color: #fff; }
.hup-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.hup-footer__widget ul { list-style: none; padding: 0; margin: 0; }
.hup-footer__widget li { margin-bottom: .4rem; }
.hup-footer__bottom { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-size: .9rem; }

/* WhatsApp float */
.hup-whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--hup-whatsapp); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.hup-whatsapp-float:hover { color: #fff; transform: scale(1.05); }

.hup-part-finder__form { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; max-width: 900px; margin: 0 auto; }
.hup-part-finder__form .hup-input { flex: 1; min-width: 180px; margin: 0; }
.hup-cta { background: var(--hup-secondary); color: #fff; text-align: center; }
.hup-cta a { color: #fff; }
.hup-contact__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
  align-items: start;
}
.hup-contact-info {
  background: var(--hup-light);
  padding: 2rem;
  border-radius: var(--hup-radius);
  box-shadow: var(--hup-shadow);
}
.hup-contact-info h2 {
  margin: 0 0 .75rem;
  color: var(--hup-secondary);
  font-size: 1.5rem;
}
.hup-contact-info > p {
  margin: 0 0 1.5rem;
  color: var(--hup-muted);
}
.hup-contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.hup-contact-info__item:last-child { margin-bottom: 0; }
.hup-contact-info__item i {
  color: var(--hup-primary-dark);
  font-size: 1.2rem;
  margin-top: .2rem;
  flex-shrink: 0;
}
.hup-contact-info__item strong {
  display: block;
  margin-bottom: .35rem;
  color: var(--hup-text);
}
.hup-contact-info__item p {
  margin: 0;
  color: var(--hup-muted);
  line-height: 1.5;
}
.hup-contact-map {
  background: var(--hup-light);
  padding: 2rem;
  border-radius: var(--hup-radius);
  box-shadow: var(--hup-shadow);
}
.hup-contact-map__title {
  margin: 0 0 1rem;
  color: var(--hup-secondary);
  font-size: 1.5rem;
}
.hup-contact-map__embed {
  position: relative;
  width: 100%;
  padding-bottom: 62%;
  height: 0;
  overflow: hidden;
  border-radius: var(--hup-radius);
  background: var(--hup-border);
}
.hup-contact-map__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hup-contact-map__address {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin: 1rem 0 0;
  color: var(--hup-muted);
  font-size: .95rem;
}
.hup-contact-map__address i {
  color: var(--hup-primary-dark);
  margin-top: .15rem;
}
.hup-contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 2rem 0; }
.hup-contact-card {
  display: block; padding: 2rem; text-align: center; background: var(--hup-light);
  border-radius: var(--hup-radius); box-shadow: var(--hup-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hup-contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.hup-contact-card i { font-size: 2rem; color: var(--hup-primary); margin-bottom: .75rem; }
.hup-contact-card h3 { margin: 0 0 .5rem; font-size: 1.1rem; color: var(--hup-secondary); }
.hup-contact-card p { margin: 0; color: var(--hup-muted); font-size: .95rem; word-break: break-word; }
.hup-pagination { margin: 2rem 0; text-align: center; }
.hup-pagination .page-numbers { display: inline-block; padding: .4rem .75rem; margin: 0 .15rem; border: 1px solid var(--hup-border); border-radius: 4px; }
.hup-pagination .current { background: var(--hup-primary); border-color: var(--hup-primary); }

@media (max-width: 992px) {
  .hup-logo__text { display: none; }
  .hup-hero { min-height: 320px; padding: 4.5rem 1.5rem; }
  .hup-logistics__split { grid-template-columns: 1fr; }
  .hup-logistics__banner { height: 240px; }
}

@media (max-width: 900px) {
  .hup-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--hup-border); padding: 1rem; box-shadow: var(--hup-shadow); }
  .hup-nav.is-open { display: block; }
  .hup-nav__list { flex-direction: column; }
  .hup-hamburger { display: block; }
  .hup-catalog-layout, .hup-single-part__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hup-hero { min-height: 280px; padding: 3.5rem 1rem; }
  .hup-logistics { padding: 3.75rem 0; }
  .hup-logistics__cta { flex-direction: column; }
  .hup-logistics__cta .hup-btn { width: 100%; justify-content: center; }
  .hup-logistics-feature { padding: 1rem; }
  .hup-logistics-feature__icon { width: 50px; height: 50px; font-size: 1.2rem; }
  .hup-contact__layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .hup-contact-info,
  .hup-contact-map { padding: 1.5rem; }
}
