/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme/
Description: Hello Elementor Child — adds a grouped-by-subcategory product category archive.
Author: Your Name
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* ==========================================================================
   Product category archive — grouped by subcategory
   ========================================================================== */
.site-header, .site-footer {
    display: none!important;
}
main > .container {
    max-width: 1440px;
    width: 100%;
    margin: auto;
    padding: 140px 20px 80px;
}
.hdg-product-archive {
  padding: 2rem 0;
}

.hdg-archive-title {
  margin: 0 0 2rem;
}

.hdg-product-subcategory {
  margin-bottom: 3.5rem;
}

/* green subcategory title with the little arrow */
.hdg-x-small-title-with-arrow {
  color: #8cc63f;                 /* match Aermec green exactly */
  font-weight: 700;
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: 1.75rem;
}
.hdg-x-small-title-with-arrow::before {
  content: "";
  border-left: 7px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.hdg-product-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hdg-product-thumb {
  position: relative;
  display: block;
  aspect-ratio: 51 / 70;                /* consistent square cells */
  overflow: hidden;
  background: url('https://aermekalbania.com/wp-content/uploads/2026/06/products-bg.png') center / cover no-repeat;
}
.hdg-product-thumb .hdg-img-primary,
.hdg-product-thumb .hdg-img-secondary {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;                 /* product sits on the backdrop, never cropped */
  transition: opacity .4s ease;
}
/* second image sits on top, hidden until hover */
.hdg-product-thumb .hdg-img-secondary { opacity: 0; }
.hdg-product-thumb.has-hover:hover .hdg-img-secondary { opacity: 1; }
.hdg-product-thumb.has-hover:hover .hdg-img-primary { opacity: 0; }

.hdg-product-card {
    padding-bottom: 20px !important;
    border-bottom: 1px solid #003f52!important;
}
.hdg-product-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1b3a4b;
  margin: 1.25rem 0 .9rem;
}
.hdg-product-name a {
  color: inherit;
  text-decoration: none;
}

.hdg-product-view {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #1b3a4b;
  text-decoration: none;
  font-size: .9rem;
  
}
.hdg-product-view::before {
  content: "";
  border-left: 6px solid #8cc63f;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

@media (max-width: 900px) {
  .hdg-product-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    main > .container {
    padding: 60px 20px 40px;
}
  .hdg-product-list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Single product — custom layout
   ========================================================================== */

.hdg-single-product {
  padding: 2.5rem 0;
}

.hdg-sp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

/* left: image on light gray */
.hdg-sp-media {
  background: #f0f0f0;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hdg-sp-media img { width: 100%; height: auto; display: block; }

/* breadcrumb */
.hdg-sp-breadcrumb {
  font-size: .8rem;
  color: #9aa7ae;
  margin-bottom: 1.5rem;
}
.hdg-sp-breadcrumb a { color: #9aa7ae; text-decoration: none; }
.hdg-sp-breadcrumb a:hover { text-decoration: underline; }
.hdg-sp-crumb-sep { margin: 0 .5rem; }

/* title */
.hdg-sp-title {
  color: #8cc63f;                 /* match Aermec green exactly */
  font-weight: 600;
  font-size: 25px;
  margin: 0 0 1.5rem;
}

/* intro + feature list (from short description) */
.hdg-sp-intro { color: #1b3a4b; margin-bottom: 1.75rem; }
.hdg-sp-intro > p:first-of-type { font-weight: 700; }
.hdg-sp-intro ul {
  list-style: disc;
  columns: 2;
  column-gap: 2.5rem;
  padding-left: 1.1rem;
  margin: 1.25rem 0 0;
}
.hdg-sp-intro li { margin: 0 0 .5rem; break-inside: avoid; }

/* green section headings */
.hdg-sp-heading {
  color: #8cc63f;
  font-weight: 600;
  font-size: 1rem;
  margin: 2rem 0 1rem;
}

/* specifications body */
.hdg-sp-specs { color: #1b3a4b; font-size: .9rem; line-height: 1.6; }
.hdg-sp-specs p { margin: 0 0 1rem; }

/* downloads */
.hdg-sp-download-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dotted #c7d0d5;
  border-bottom: 1px dotted #c7d0d5;
  padding: .75rem 0;
}
.hdg-sp-download-name { font-weight: 700; color: #1b3a4b; font-size: .9rem; }
.hdg-sp-download-link { color: #2f8f83; text-decoration: none; font-size: .9rem; }

/* action links */
.hdg-sp-actions { display: flex; gap: 3rem; margin-top: 2.5rem; }
.hdg-sp-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  color: #1b3a4b; text-decoration: none; font-weight: 700; font-size: .95rem;
  border-bottom: 1px solid #c7d0d5; padding-bottom: .6rem;
}
.hdg-sp-btn::before {
  content: ""; border-left: 7px solid #8cc63f;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
/* NEW */


.grid-applications .elementor-image-box-wrapper {
    position: relative;
}
.grid-applications .elementor-image-box-wrapper > .elementor-image-box-content {
    position: absolute;
    z-index: 1000;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
	visibility: hidden;
}
.grid-applications .elementor-image-box-wrapper .elementor-image-box-img {
	background: #003F52;
}
.grid-applications > div:hover .elementor-image-box-wrapper > .elementor-image-box-content {
	visibility: visible;
}
.grid-applications > div:hover .elementor-image-box-img img {
	opacity: 0.5!important;
}
.grid-produkte > div > div {
	background-color: transparent;
  
}
.grid-produkte > div > div img {

	display: block;
    width: 100%;
    height: 98%;
    object-fit: contain!important;
	max-width: 100%;
}

@media (max-width: 768px) {
  .hdg-sp-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hdg-sp-intro ul { columns: 1; }
  .hdg-sp-actions { flex-direction: column; gap: 1rem; }
}