/* Esso Front - Custom Styles */
body {
  font-family: 'EMprint', system-ui, sans-serif;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'EMprint', system-ui, sans-serif;
}

/* Override bootscore defaults on home template */
.home #page,
.page-template-template-home #page { padding: 0; }
.home .site-header,
.home .bootscore-footer,
.home .top-button,
.page-template-template-home .site-header,
.page-template-template-home .bootscore-footer,
.page-template-template-home .top-button { display: none !important; }

/* Red vertical line */
.esso-red-line {
  position: fixed;
  right: 1.25rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: #DA291C;
  z-index: 9999;
  pointer-events: none;
}

/* Banner grid: mobile = text on top, image below; desktop = image LEFT, text RIGHT */
.esso-banner-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0;
}
.esso-banner-grid .esso-banner-text { order: 1; }
.esso-banner-grid .esso-banner-image { order: 2; }

@media (min-width: 1024px) {
  .esso-banner-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 2.5rem;
    align-items: center;
    min-height: 420px;
  }
  .esso-banner-grid .esso-banner-image {
    order: 1 !important;
    grid-column: 1;
    grid-row: 1;
  }
  .esso-banner-grid .esso-banner-text {
    order: 2 !important;
    grid-column: 2;
    grid-row: 1;
  }
}

/* Swiper banner overrides */
.esso-banner-swiper { overflow: hidden; }
.esso-banner-swiper .swiper-slide { height: auto; }
.esso-banner-swiper .swiper-pagination { position: relative; margin-top: 1.5rem; }
.esso-banner-swiper .swiper-pagination-bullet {
  width: 0.625rem;
  height: 0.625rem;
  background: #9ca3af;
  opacity: 1;
  transition: all 0.3s ease;
}
.esso-banner-swiper .swiper-pagination-bullet-active {
  background: #DA291C;
  transform: scale(1.25);
}

/* Leaflet popup overrides */
.leaflet-popup-content-wrapper {
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  padding: 0;
  background: white;
}
.leaflet-popup-content { margin: 0; }
.leaflet-popup-tip { background: white; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.leaflet-popup-close-button { color: #DA291C; font-size: 20px; padding: 4px 8px; }
.leaflet-popup-close-button:hover { color: #B02015; }
.custom-marker-icon,
.leaflet-marker-icon { cursor: pointer !important; pointer-events: auto !important; }
.leaflet-div-icon { background: transparent !important; border: none !important; }

/* Product card red corner */
.esso-card-corner {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-top: 60px solid #DA291C;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
}

/* Scroll to top */
.esso-scroll-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 50;
  background-color: #DA291C;
  color: white;
  padding: 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  display: none;
}
.esso-scroll-top:hover {
  background-color: rgba(218, 41, 28, 0.8);
  transform: scale(1.1);
}
.esso-scroll-top.visible { display: block; }

/* Product carousel dots */
.esso-dot {
  height: 0.625rem;
  width: 0.625rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}
.esso-dot.active {
  background-color: #DA291C;
  transform: scale(1.25);
}
.esso-dot:not(.active) {
  background-color: #9ca3af;
}

/* Product showcase dots */
.esso-showcase-dot {
  height: 0.5rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}
.esso-showcase-dot.active {
  width: 2rem;
  background-color: #DA291C;
}
.esso-showcase-dot:not(.active) {
  width: 0.5rem;
  background-color: #d1d5db;
}
