/* =============================================
   RetailSupport.hu — Shoprenter-inspired theme
   Inspired by: shoprenter.hu/blog
   ============================================= */

/* === Google Font Import === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* === Global Font & Body === */
body, html {
  font-family: 'Poppins', sans-serif !important;
  font-size: 15px !important;
  background-color: #f9f9f9 !important;
  color: #585858 !important;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif !important;
  color: #282828 !important;
}
p, a, span, li, td, th, div, input, select, textarea, button, label {
  font-family: 'Poppins', sans-serif !important;
}

/* === Header — Dark Green === */
header.sticky-head,
.header-top-row,
.header-bottom {
  background-color: #043e2f !important;
}
header a,
header .header-bottom a,
.main-menu a,
.navbar-nav > li > a {
  color: #ffffff !important;
  font-weight: 500 !important;
  font-size: 15px !important;
}
header .header-bottom a:hover,
.main-menu a:hover {
  color: #AAE600 !important;
}
/* Logo area */
.header-logo img {
  filter: brightness(0) invert(1);
}
/* Search bar */
header .search-input,
header input[type="text"] {
  border-radius: 8px !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  background: #ffffff !important;
  color: #333 !important;
}
/* Cart icon area */
.header-cart-info,
.header-cart a,
.header-user a {
  color: #ffffff !important;
}

/* === Footer — Dark Green with Rounded Top === */
footer.d-print-none {
  background-color: #043e2f !important;
  color: #ffffff !important;
  border-radius: 24px 24px 0 0 !important;
  margin-top: 40px !important;
  padding: 48px 0 32px !important;
}
footer a {
  color: rgba(255,255,255,0.8) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  transition: color 0.2s !important;
}
footer a:hover {
  color: #AAE600 !important;
  text-decoration: none !important;
}
footer .footer-rows h4,
footer .footer-rows .footer-col-title,
footer h4 {
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  margin-bottom: 16px !important;
}
footer .footer-rows {
  color: rgba(255,255,255,0.7) !important;
}
footer .footer-rows p,
footer .footer-rows span,
footer .footer-rows div {
  color: rgba(255,255,255,0.7) !important;
}
/* Copyright bar */
footer .copyright,
footer .footer-bottom {
  color: rgba(255,255,255,0.5) !important;
  font-size: 13px !important;
  border-top: 1px solid rgba(255,255,255,0.1) !important;
  margin-top: 32px !important;
  padding-top: 16px !important;
}
/* Social icons in footer */
footer .social-icon a,
footer .fa {
  color: #ffffff !important;
}

/* === SEO Module Below Footer — DOUBLE SIZE === */
.footer-seo-container {
  font-size: 16px !important;
  line-height: 1.7 !important;
  padding: 48px 20px !important;
  color: #3a3a3a !important;
  max-width: 100% !important;
  margin: 0 !important;
  background-color: #e9f5ef !important;
}
.footer-seo-container > * {
  max-width: 1100px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.footer-seo-container h3 {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #282828 !important;
  margin-bottom: 16px !important;
}
.footer-seo-container h4 {
  font-size: 22px !important;
  font-weight: 600 !important;
  color: #282828 !important;
  margin-bottom: 12px !important;
  margin-top: 24px !important;
}
.footer-seo-container p {
  font-size: 16px !important;
  line-height: 1.7 !important;
  margin-bottom: 12px !important;
}
.footer-seo-container a {
  color: #043e2f !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border-bottom: 2px solid #AAE600 !important;
  transition: color 0.2s !important;
}
.footer-seo-container a:hover {
  color: #AAE600 !important;
}

/* === Button accent color === */
.btn-primary,
.btn-success,
.add-to-cart,
.kosarba {
  background-color: #043e2f !important;
  border-color: #043e2f !important;
  border-radius: 8px !important;
}
.btn-primary:hover,
.btn-success:hover {
  background-color: #065a43 !important;
}

/* === Product cards === */
.product-card,
.product-item {
  border-radius: 12px !important;
  overflow: hidden !important;
}

/* === Tudástár landing page === */
.tudastar-hero {
  background: linear-gradient(135deg, #043e2f 0%, #065a43 50%, #087a5a 100%) !important;
}

/* === Breadcrumb === */
.breadcrumb {
  font-size: 13px !important;
  color: #888 !important;
}

/* === Scroll to top button === */
.scroll-top-but {
  background-color: #043e2f !important;
  border-radius: 50% !important;
}
/* === Category Sidebar Fix === */
.category-module .module-body a {
  color: #585858 !important;
  font-weight: 400 !important;
  font-size: 14px !important;
}
.category-module .module-body a:hover {
  color: #043e2f !important;
  font-weight: 500 !important;
}
.category-module .module-body {
  background: #ffffff !important;
}
.category-module .module-head {
  background-color: #043e2f !important;
}
/* === Footer Partner Badges === */
footer .customcontent .module-body {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  align-items: center !important;
}
footer .customcontent .module-body img {
  max-width: 120px !important;
  max-height: 45px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  opacity: 0.85 !important;
  transition: opacity 0.2s !important;
}
footer .customcontent .module-body img:hover {
  opacity: 1 !important;
}
footer .customcontent .module-body p,
footer .customcontent .module-body div {
  margin: 0 !important;
  padding: 0 !important;
}
/* Hide broken images */
footer .customcontent .module-body img[src=""] { display: none !important; }

/* === Category Page Description Styling === */
.category-fulltext-box,
.category-description {
  font-family: 'Poppins', sans-serif !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: #3a3a3a !important;
  max-width: 960px !important;
  padding: 24px 16px !important;
}
.category-fulltext-box h2,
.category-description h2 {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #043e2f !important;
  margin: 20px 0 10px !important;
}
.category-fulltext-box h3,
.category-description h3 {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #282828 !important;
}
.category-fulltext-box a,
.category-description a {
  color: #043e2f !important;
  border-bottom: 2px solid #AAE600 !important;
  text-decoration: none !important;
}
.category-fulltext-box a:hover,
.category-description a:hover {
  color: #AAE600 !important;
}
/* Mobile readability */
@media (max-width: 768px) {
  .category-fulltext-box,
  .category-description {
    font-size: 14px !important;
    padding: 16px 12px !important;
    line-height: 1.6 !important;
  }
  .category-fulltext-box h2,
  .category-description h2 {
    font-size: 19px !important;
  }
}
/* Fix: header dropdown menu text color */
.headermenu-list .dropdown-item,
.headermenu-list .dropdown-item a,
.headermenu-list .dropdown-menu a {
  color: #333 !important;
}
.headermenu-list .dropdown-item:hover,
.headermenu-list .dropdown-item:hover a,
.headermenu-list .dropdown-menu a:hover {
  color: #043e2f !important;
  background-color: #f0f0f0 !important;
}

/* ============================================
   RESPONSIVE FIX - Category & Information pages
   Mobile-friendly overrides for inline-styled content
   Added: 2026-03-26
   ============================================ */

/* --- Tablet (max-width: 768px) --- */
@media (max-width: 768px) {
  /* Hero gradient blocks - reduce padding */
  .category-description div[style*="padding:40px"],
  .category-description div[style*="padding: 40px"],
  .category-fulltext-box div[style*="padding:40px"],
  .category-fulltext-box div[style*="padding: 40px"],
  .information-fulltext-box div[style*="padding:40px"],
  .information-fulltext-box div[style*="padding: 40px"],
  .information div[style*="padding:40px"],
  .information div[style*="padding: 40px"] {
    padding: 24px 18px !important;
    margin-bottom: 20px !important;
  }

  /* H1 titles in hero */
  .category-description h1,
  .category-fulltext-box h1,
  .information-fulltext-box h1,
  .information h1 {
    font-size: 24px !important;
  }

  /* H2 section headings */
  .category-description h2,
  .category-fulltext-box h2,
  .information-fulltext-box h2,
  .information h2 {
    font-size: 19px !important;
  }

  /* Section cards - reduce padding */
  .category-description div[style*="padding:24px 28px"],
  .category-description div[style*="padding: 24px 28px"],
  .category-fulltext-box div[style*="padding:24px 28px"],
  .information-fulltext-box div[style*="padding:24px 28px"],
  .information div[style*="padding:24px 28px"] {
    padding: 16px 14px !important;
  }

  /* CTA blocks - reduce padding */
  .category-description div[style*="padding:28px 32px"],
  .category-description div[style*="padding: 28px 32px"],
  .category-fulltext-box div[style*="padding:28px 32px"],
  .information-fulltext-box div[style*="padding:28px 32px"],
  .information div[style*="padding:28px 32px"] {
    padding: 20px 16px !important;
  }

  /* Grids: 2-col to 1-col */
  .category-description div[style*="grid-template-columns:1fr 1fr"],
  .category-description div[style*="grid-template-columns: 1fr 1fr"],
  .category-fulltext-box div[style*="grid-template-columns:1fr 1fr"],
  .information-fulltext-box div[style*="grid-template-columns:1fr 1fr"],
  .information div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* repeat() grids to 2-col */
  .category-description div[style*="grid-template-columns:repeat"],
  .category-fulltext-box div[style*="grid-template-columns:repeat"],
  .information-fulltext-box div[style*="grid-template-columns:repeat"],
  .information div[style*="grid-template-columns:repeat"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Reduce large margins */
  .category-description div[style*="margin-bottom:32px"],
  .category-fulltext-box div[style*="margin-bottom:32px"],
  .information-fulltext-box div[style*="margin-bottom:32px"],
  .information div[style*="margin-bottom:32px"] {
    margin-bottom: 20px !important;
  }

  /* Body text sizing */
  .category-description p[style*="font-size:17px"],
  .category-fulltext-box p[style*="font-size:17px"],
  .information-fulltext-box p[style*="font-size:17px"],
  .information p[style*="font-size:17px"] {
    font-size: 15px !important;
  }
}

/* --- Mobile (max-width: 480px) --- */
@media (max-width: 480px) {
  /* Hero: even smaller padding */
  .category-description div[style*="padding:40px"],
  .category-description div[style*="padding: 40px"],
  .category-description div[style*="padding:24px 18px"],
  .category-fulltext-box div[style*="padding:40px"],
  .information-fulltext-box div[style*="padding:40px"],
  .information div[style*="padding:40px"] {
    padding: 18px 14px !important;
    border-radius: 8px !important;
  }

  /* H1 smaller on phone */
  .category-description h1,
  .category-fulltext-box h1,
  .information-fulltext-box h1,
  .information h1 {
    font-size: 20px !important;
    line-height: 1.3 !important;
  }

  .category-description h2,
  .category-fulltext-box h2,
  .information-fulltext-box h2,
  .information h2 {
    font-size: 17px !important;
  }

  /* All grids single column on phone */
  .category-description div[style*="grid-template-columns"],
  .category-fulltext-box div[style*="grid-template-columns"],
  .information-fulltext-box div[style*="grid-template-columns"],
  .information div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Cards tighter */
  .category-description div[style*="padding:24px"],
  .category-description div[style*="padding: 24px"],
  .category-fulltext-box div[style*="padding:24px"],
  .information-fulltext-box div[style*="padding:24px"],
  .information div[style*="padding:24px"] {
    padding: 14px 12px !important;
  }

  /* CTA buttons full width */
  .category-description a[style*="display:inline-block"],
  .category-fulltext-box a[style*="display:inline-block"],
  .information-fulltext-box a[style*="display:inline-block"],
  .information a[style*="display:inline-block"] {
    display: block !important;
    text-align: center !important;
    padding: 12px 16px !important;
  }

  /* Contact/footer bar */
  .category-description div[style*="padding:16px 20px"],
  .category-fulltext-box div[style*="padding:16px 20px"],
  .information-fulltext-box div[style*="padding:16px 20px"],
  .information div[style*="padding:16px 20px"] {
    padding: 12px 10px !important;
  }

  .category-description div[style*="padding:16px 20px"] p,
  .information-fulltext-box div[style*="padding:16px 20px"] p,
  .information div[style*="padding:16px 20px"] p {
    font-size: 12px !important;
  }
}