/*
Theme Name: Selou AI Child
Description: Safe child theme customizations for Klimatechnik Selou.
Template: selou-glass
Version: 1.0.4
Text Domain: selou-ai-child
*/

.selou-random-products,
.selou-random-products * {
  box-sizing: border-box;
}

.selou-random-products {
  position: relative;
  min-height: 110px;
}

.selou-random-products__status {
  display: grid;
  min-height: 110px;
  place-items: center;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06));
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 18px 42px rgba(0, 17, 52, 0.2);
  color: rgba(240, 249, 255, 0.88);
  font-weight: 750;
  text-align: center;
}

.selou-random-products.is-error .selou-random-products__status {
  color: #ffd6d6;
}

#onlineshop .selou-random-products--homepage {
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  margin: 30px 0 0;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  background:
    radial-gradient(circle at 8% 0%, rgba(102, 211, 255, 0.16), transparent 34%),
    radial-gradient(circle at 95% 12%, rgba(91, 137, 255, 0.13), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045));
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 24px 60px rgba(0, 12, 42, 0.24);
}

#onlineshop .selou-random-products--homepage::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -120px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(81, 204, 255, 0.13);
  filter: blur(24px);
  pointer-events: none;
}

#onlineshop .selou-random-products__heading {
  display: grid;
  gap: 6px;
  margin: 0 0 22px;
}

#onlineshop .selou-random-products__heading > span {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid rgba(143, 228, 255, 0.25);
  border-radius: 999px;
  background: rgba(143, 228, 255, 0.08);
  color: #a9ecff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

#onlineshop .selou-random-products__heading h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  line-height: 1.12;
  text-shadow: 0 1px 18px rgba(74, 198, 255, 0.12);
}

#onlineshop .selou-random-products__heading p {
  max-width: 680px;
  margin: 0;
  color: rgba(231, 245, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.6;
}

#onlineshop .selou-random-products__status {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.84);
}

#onlineshop .selou-home-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

#onlineshop .selou-home-product-grid > li {
  margin: 0 !important;
  padding: 0;
  list-style: none !important;
}

#onlineshop .selou-home-product-card {
  position: relative;
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 23px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055));
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 16px 34px rgba(0, 13, 39, 0.18);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

#onlineshop .selou-home-product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 34%, transparent 72%, rgba(128, 221, 255, 0.05));
  pointer-events: none;
}

#onlineshop .selou-home-product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(155, 229, 255, 0.34);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.07));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 22px 44px rgba(0, 18, 54, 0.26),
    0 0 0 1px rgba(96, 205, 255, 0.05);
}

#onlineshop .selou-home-product-image {
  position: relative;
  z-index: 1;
  display: block;
  aspect-ratio: 1 / 0.78;
  margin: 8px 8px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 17px;
  background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.98), rgba(240, 247, 252, 0.9));
  box-shadow: inset 0 1px 0 #fff, 0 8px 22px rgba(0, 17, 49, 0.12);
  text-decoration: none !important;
}

#onlineshop .selou-home-product-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 8px;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: contain;
  transition: transform 260ms ease;
}

#onlineshop .selou-home-product-card:hover .selou-home-product-image img {
  transform: scale(1.035);
}

#onlineshop .selou-home-product-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 9px;
  padding: 16px;
}

#onlineshop .selou-home-product-category,
#onlineshop .selou-home-product-category a {
  color: #a9eaff;
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-decoration: none !important;
}

#onlineshop .selou-home-product-body h3 {
  margin: 0 !important;
  color: #f8fcff;
  font-size: 1rem;
  line-height: 1.38;
}

#onlineshop .selou-home-product-body h3 a {
  color: #f8fcff !important;
  text-decoration: none !important;
}

#onlineshop .selou-home-product-body p {
  margin: 0 !important;
  color: rgba(225, 241, 250, 0.68);
  font-size: 0.76rem;
  line-height: 1.58;
}

#onlineshop .selou-home-stock {
  display: inline-flex;
  align-self: flex-start;
  margin-top: auto;
  padding: 5px 8px;
  border: 1px solid rgba(113, 237, 173, 0.18);
  border-radius: 999px;
  background: rgba(38, 190, 112, 0.1);
  color: #9af0c1;
  font-size: 0.67rem;
  font-weight: 850;
  line-height: 1.2;
}

#onlineshop .selou-home-stock.is-out-of-stock {
  border-color: rgba(255, 157, 157, 0.2);
  background: rgba(211, 74, 74, 0.1);
  color: #ffc0c0;
}

#onlineshop .selou-home-product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
}

#onlineshop .selou-home-product-price {
  min-width: 0;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.3;
  text-shadow: 0 0 16px rgba(105, 215, 255, 0.12);
}

#onlineshop .selou-home-product-price .amount,
#onlineshop .selou-home-product-price bdi,
#onlineshop .selou-home-product-price .woocommerce-Price-currencySymbol {
  color: inherit !important;
}

#onlineshop .selou-home-product-price del {
  color: rgba(231, 245, 255, 0.48) !important;
  font-size: 0.82em;
  opacity: 1;
}

#onlineshop .selou-home-product-price ins {
  color: #fff !important;
  background: transparent !important;
  text-decoration: none !important;
}

#onlineshop .selou-home-product-details {
  flex: 0 0 auto;
  color: #a9eaff !important;
  font-size: 0.74rem;
  font-weight: 850;
  text-decoration: none !important;
}

#onlineshop .selou-home-product-details:hover {
  color: #fff !important;
}

#onlineshop .selou-home-product-body > .button {
  display: inline-flex !important;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin: 3px 0 0 !important;
  padding: 10px 13px !important;
  border: 1px solid rgba(157, 229, 255, 0.34) !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, rgba(28, 136, 221, 0.88), rgba(14, 98, 190, 0.82)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 18px rgba(0, 64, 145, 0.2) !important;
  color: #fff !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  text-align: center;
  text-decoration: none !important;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

#onlineshop .selou-home-product-body > .button:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 11px 24px rgba(0, 76, 165, 0.28) !important;
  filter: brightness(1.06);
}

@media (max-width: 1050px) {
  #onlineshop .selou-home-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  #onlineshop .selou-random-products--homepage {
    margin-top: 22px;
    padding: 18px;
    border-radius: 24px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: linear-gradient(145deg, rgba(7, 50, 96, 0.96), rgba(0, 91, 139, 0.92));
  }

  #onlineshop .selou-random-products--homepage::before {
    display: none;
  }

  #onlineshop .selou-random-products__heading {
    margin-bottom: 16px;
  }

  #onlineshop .selou-random-products__heading h3 {
    font-size: 1.55rem;
  }

  #onlineshop .selou-random-products__heading p {
    font-size: 0.82rem;
  }

  #onlineshop .selou-home-product-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px;
    width: 100% !important;
  }

  #onlineshop .selou-home-product-card {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto;
    border-radius: 20px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(255, 255, 255, 0.11);
    transform: none !important;
  }

  #onlineshop .selou-home-product-card::after {
    display: none;
  }

  #onlineshop .selou-home-product-image {
    width: auto !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    margin: 7px 7px 0;
    border-radius: 15px;
  }

  #onlineshop .selou-home-product-body {
    width: 100%;
    padding: 14px;
  }

  #onlineshop .selou-home-product-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  #onlineshop .selou-home-product-body > .button {
    min-height: 46px;
    font-size: 0.82rem !important;
  }
}

@media (max-width: 420px) {
  #onlineshop .selou-random-products--homepage {
    padding: 14px;
    border-radius: 20px;
  }

  #onlineshop .selou-home-product-image {
    aspect-ratio: 1 / 0.82;
  }

  #onlineshop .selou-home-product-body h3 {
    font-size: 0.96rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #onlineshop .selou-home-product-card,
  #onlineshop .selou-home-product-image img,
  #onlineshop .selou-home-product-body > .button {
    transition: none;
  }
}

/* Homepage mobile display fixes — 2026-08-15 */
@media (max-width: 820px) {
  body .sgx-home .sgx-about-badge {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    max-width: calc(100% - 24px);
    margin: -25px 12px 0 !important;
  }

  body .sgx-home .sgx-service-grid {
    grid-template-columns: 1fr !important;
  }

  body .sgx-home .sgx-service-wide {
    grid-column: auto !important;
  }

  body .sgx-home .sgx-button-glass,
  body .sgx-home .sgx-hero-image,
  body .sgx-home .sgx-float,
  body .sgx-home .sgx-benefit-grid,
  body .sgx-home .sgx-service-card,
  body .sgx-home .sgx-shop-grid > a,
  body .sgx-home .sgx-about-media,
  body .sgx-home .sgx-about-badge,
  body .sgx-home .sgx-check-grid span,
  body .sgx-home .sgx-process-grid li {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

@media (max-width: 700px) {
  body .sgx-home .sgx-hero-panel {
    padding: 32px 20px !important;
  }

  body .sgx-home .sgx-hero h1 {
    font-size: clamp(2.55rem, 13vw, 3.45rem) !important;
    line-height: 0.96 !important;
    letter-spacing: -0.055em !important;
  }

  body .sgx-home .sgx-service-card {
    display: flex !important;
    min-height: 0 !important;
    flex-direction: column;
    padding: 26px !important;
  }

  body .sgx-home .sgx-service-card > b {
    position: static !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
  }

  body .sgx-home .sgx-service-wide {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    min-height: 0 !important;
  }

  body .sgx-home .sgx-service-wide h3 {
    margin: 20px 0 7px !important;
  }

  body .sgx-home .sgx-service-wide > b {
    position: static !important;
    margin-top: 20px;
  }

  body .sgx-home .sgx-service-card p,
  body .sgx-home .sgx-heading p,
  body .sgx-home .sgx-about-copy > p,
  body .sgx-home .sgx-final p {
    overflow-wrap: break-word;
  }
}

@media (max-width: 420px) {
  body .sgx-home .sgx-hero h1 {
    font-size: clamp(2.4rem, 12vw, 3rem) !important;
  }
}
