/* ══════════════════════════════════════════════════
   Industrial Design – Custom Overrides
   ══════════════════════════════════════════════════ */

/* ── Global polish ──────────────────────────────── */
html { scroll-behavior: smooth; }
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Service icons ───────────────────────────────── */
.single-service .icon-wrapper img {
  width: 60px !important;
  height: 60px !important;
  object-fit: contain !important;
}

/* ── Promo images ────────────────────────────────── */
.single-offer-product.verticle .promo-img {
  width: 100%;
  height: 680px !important;
  object-fit: cover !important;
}
.single-offer-product .promo-img {
  width: 100%;
  height: 328px !important;
  object-fit: cover !important;
}

/* ── Social links ────────────────────────────────── */
.gs-footer-section .footer-row .left-info .social-links {
  display: flex;
  gap: 8px;
}
.gs-footer-section .footer-row .left-info .social-links a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.gs-footer-section .footer-row .left-info .social-links a i {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
}
.gs-footer-section .footer-row .left-info .social-links a:hover {
  background: var(--accent, #2e86c1);
}
.gs-footer-section .footer-row .left-info .social-links a:hover i {
  color: #fff;
}

/* ── Footer contact info ─────────────────────────── */
.footer-contact-info a {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.6) !important;
  font-size: 13px;
  line-height: 1.5;
}
.footer-contact-info a:hover { color: #fff !important; }
.footer-contact-info i {
  margin-top: 3px;
  color: rgba(255,255,255,0.35);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

/* ── Footer category links ──────────────────────── */
.footer-category-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-category-links li { padding: 4px 0; }
.footer-category-links li a {
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-category-links li a:hover { padding-left: 4px; }

/* ── Payment fields ──────────────────────────────── */
#cardNumber,
#securityCode,
#expirationDate {
  height: 60px;
  border: 1px solid var(--border, #dce1e6);
  border-radius: 5px;
  background-color: #fff;
  color: #505050;
  font-size: 14px;
  padding: 0 18px;
  margin-bottom: 18px;
  transition: border-color 0.25s;
}

/* ── Sidebar active color ────────────────────────── */
.sidebar-active-color {
  color: var(--primary, #1a5276) !important;
  font-weight: 600;
}

/* ── Header adjustments ──────────────────────────── */
.header-section .header-top .create-navbar { min-height: 58px; }
.header-section .info-bar .info-row { min-height: 30px; }

/* ── Sticky header ───────────────────────────────── */
.header-top.sticky {
  background: var(--primary, #1a5276) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.15) !important;
  padding: 8px 0 !important;
}
.header-top.sticky .nav-menus > li > a,
.header-top.sticky .has-submenu > a,
.header-top.sticky .has-megamenu > a,
.header-top.sticky .logo-text { color: #fff !important; }
.header-top.sticky .icon-circle button svg path,
.header-top.sticky .icon-circle a svg path,
.header-top.sticky .header-toggle svg path { stroke: #fff !important; }
.header-top.sticky .esporim-search-bar {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
}
.header-top.sticky .has-submenu-icon svg path { fill: #fff !important; }

/* ── Product card hover ──────────────────────────── */
.single-product .add-to-cart {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  display: flex;
  gap: 6px;
  z-index: 2;
  transition: all 0.3s ease;
}
.single-product:hover .add-to-cart {
  transform: translateX(-50%) translateY(0);
}
.single-product .add-to-cart .add-cart,
.single-product .add-to-cart .details {
  background: var(--primary, #1a5276);
  color: #fff;
  padding: 7px 14px;
  border-radius: var(--radius, 6px);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.single-product .add-to-cart .add-cart:hover {
  background: var(--primary-dark, #154360);
}
.single-product .add-to-cart .details {
  background: #fff;
  color: var(--primary, #1a5276);
  border: 1px solid var(--primary, #1a5276);
}
.single-product .add-to-cart .details:hover {
  background: var(--primary, #1a5276);
  color: #fff;
}

/* ── Product images: always contain ──────────────── */
.single-product .img-wrapper .product-img,
.single-product-list-view .img-wrapper .product-img {
  -o-object-fit: contain !important;
  object-fit: contain !important;
  transition: transform 0.4s ease;
}
.single-product:hover .img-wrapper .product-img {
  transform: scale(1.04);
}

/* ── Brand items ─────────────────────────────────── */
.esporim-brands .brand-item {
  background: #fff;
  border: 1px solid var(--border, #dce1e6);
  border-radius: var(--radius, 6px);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  transition: all 0.25s ease;
}
.esporim-brands .brand-item:hover {
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.08));
  border-color: var(--accent, #2e86c1);
}
.esporim-brands .brand-item img {
  max-height: 45px;
  max-width: 100%;
  object-fit: contain;
}

/* ── Feature boxes ───────────────────────────────── */
.esporim-feature-box { border-right: 1px solid var(--border-light, #ecf0f1); }
.row > div:last-child .esporim-feature-box { border-right: none; }

/* ── Search bar ──────────────────────────────────── */
.search-bar {
  background: var(--light-bg, #f4f6f9);
  border-bottom: 1px solid var(--border, #dce1e6);
}
.search-bar .search-form .input-group {
  border-radius: var(--radius, 6px);
  overflow: hidden;
  border: 1px solid var(--border, #dce1e6);
}
.search-bar .search-form .form-control { border: none; }
.search-bar .search-form .btn-primary { border-radius: 0 !important; }

/* ── Grid/list toggle ────────────────────────────── */
.grid-btn {
  background: #f0f0f0;
  border: 1px solid #ddd;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  color: #999;
}
.grid-btn.active, .grid-btn:hover {
  background: var(--primary, #1a5276);
  border-color: var(--primary, #1a5276);
  color: #fff;
}
.grid-btn.active svg path, .grid-btn:hover svg path { fill: #fff; }

/* ── Nice select ─────────────────────────────────── */
.nice-select {
  border-color: var(--border, #dce1e6);
  border-radius: 4px;
  font-size: 13px;
  height: 38px;
  line-height: 36px;
}

/* ── Pagination ──────────────────────────────────── */
.pagination .page-link {
  color: var(--primary, #1a5276);
  border-color: var(--border, #dce1e6);
}
.pagination .page-item.active .page-link {
  background-color: var(--primary, #1a5276);
  border-color: var(--primary, #1a5276);
  color: #fff;
}

/* ── CTA section ─────────────────────────────────── */
.esporim-cta {
  background: linear-gradient(135deg, var(--primary-darker, #0e2f44) 0%, var(--primary, #1a5276) 100%) !important;
  border: none;
  text-align: center !important;
  padding: 55px 0 !important;
}
.esporim-cta h5 { color: rgba(255,255,255,0.7) !important; }
.esporim-cta h2 { color: #fff !important; }
.esporim-cta .stars { color: var(--warning, #f39c12) !important; }

/* ── Sticky spacer ───────────────────────────────── */
.sticky-spacer { display: none; width: 100%; }

/* ── Homepage category sidebar ───────────────────── */
.home-cat-sidebar {
  background: #fff;
  border: 1px solid var(--border, #dce1e6);
  border-radius: var(--radius-lg, 10px);
  overflow: hidden;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.06));
}
.home-cat-sidebar__title {
  background: var(--primary, #1a5276);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 18px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.home-cat-sidebar__list { list-style: none; padding: 0; margin: 0; }
.home-cat-sidebar__list li { border-bottom: 1px solid var(--border-light, #ecf0f1); }
.home-cat-sidebar__list li:last-child { border-bottom: none; }
.home-cat-sidebar__list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  color: var(--text, #2c3e50) !important;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.home-cat-sidebar__list li a:hover {
  background: var(--light-bg, #f4f6f9);
  color: var(--primary, #1a5276) !important;
  padding-left: 22px;
}
.home-cat-sidebar__list li a i {
  font-size: 9px;
  color: var(--text-muted, #95a5a6);
  transition: color 0.2s ease;
}
.home-cat-sidebar__list li a:hover i { color: var(--primary, #1a5276); }

/* ── View All link ──────────────────────────────── */
.view-all-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent, #2e86c1) !important;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.view-all-link:hover { color: var(--primary, #1a5276) !important; }
.view-all-link i { transition: transform 0.2s ease; }
.view-all-link:hover i { transform: translateX(3px); }

/* ── Section spacing ─────────────────────────────── */
.gs-explore-product-section + .gs-explore-product-section {
  border-top: 1px solid var(--border-light, #ecf0f1);
}
.esporim-section-title { color: var(--primary, #1a5276); font-size: 20px; }

/* ── Product detail gallery ──────────────────────── */
.gs-product-details-gallery-wrapper {
  border: 1px solid var(--border, #dce1e6);
  border-radius: var(--radius, 6px);
  overflow: hidden;
  background: var(--light-bg, #f4f6f9);
}
.gs-product-details-gallery-wrapper .product-main-slider { padding: 20px; }
.gs-product-details-gallery-wrapper .product-nav-slider {
  border-top: 1px solid var(--border, #dce1e6);
  padding: 10px;
}

/* ── Hero section ────────────────────────────────── */
.hero-slider-wrapper { overflow: hidden; width: 100%; }
.gs-hero-section::before { display: none !important; }

/* ── Category sidebar sticky ────────────────────── */
.gs-product-sidebar-wrapper .single-product-widget {
  position: sticky;
  top: 80px;
}
.gs-product-sidebar-wrapper .accordion li a {
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.gs-product-sidebar-wrapper .accordion li a:hover { padding-left: 4px; }

/* ── Responsive ──────────────────────────────────── */
@media screen and (max-width: 991px) {
  .esporim-feature-box {
    border-right: none;
    border-bottom: 1px solid var(--border-light, #ecf0f1);
  }
}
@media screen and (max-width: 767px) {
  .single-offer-product .promo-img { height: 200px !important; }
  .single-offer-product.verticle .promo-img { height: 400px !important; }
  .esporim-feature-box { padding: 10px 0; }
}
