:root {
  --bs-body-font-size: 14px;
}

body {
  font-size: var(--bs-body-font-size);
}

a {
  color: #1f2937;
  transition: color 0.2s ease;
}

a:hover {
  color: #edbb6f;
}

.header {
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
}

.glorex-header-main {
  display: flex;
  align-items: center;
  min-height: 116px;
  padding: 0;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.glorex-header-main .container-md {
  width: 100%;
}

.glorex-header-main__row {
  display: grid;
  grid-template-columns: minmax(180px, 240px) auto;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.glorex-header-main__title {
  margin: 0;
  font-size: 0;
  line-height: 0;
}

.glorex-header-main__logo-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.glorex-header-main__logo-image {
  display: block;
  width: 100%;
  max-width: 14rem;
  height: auto;
}

.glorex-header-main__utilities {
  display: flex;
  gap: 0.95rem;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.72rem;
  white-space: nowrap;
}

.glorex-social-links,
.glorex-footer__social {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.glorex-social-links__link,
.glorex-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f2937;
  text-decoration: none;
  transition: color 0.2s ease;
}

.glorex-social-links__link {
  width: 1.75rem;
  height: 1.75rem;
}

.glorex-social-links__link svg,
.glorex-footer__social a svg {
  display: block;
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.glorex-social-links__link:hover,
.glorex-footer__social a:hover {
  color: #edbb6f;
}

.glorex-header-main__language {
  display: flex;
  align-items: center;
  padding-left: 0.6rem;
  border-left: 1px solid rgba(15, 23, 42, 0.12);
}

.glorex-header-main__language #_desktop_ps_languageselector,
.glorex-header-main__language .ps-languageselector {
  display: flex;
  align-items: center;
}

.glorex-header-main__language .form-select {
  min-width: auto;
  padding: 0 1.35rem 0 0;
  font-size: 0.72rem;
  color: #5b6470;
  background-position: right 0 center;
  border: 0;
  box-shadow: none;
}

.glorex-header-categories {
  background: #e8e8e8;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.glorex-header-categories__inner {
  min-height: 45px;
  border-top: 1px solid rgba(255, 255, 255, 0.85);
}

.glorex-header-categories__placeholder {
  display: block;
  width: 100%;
  min-height: 45px;
}

.footer__main.glorex-footer {
  min-height: 280px;
  padding: 0;
  color: #374151;
  background: #fff;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.footer__main.glorex-footer .container-md {
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.glorex-footer__columns {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  align-content: center;
  min-height: 210px;
  padding: 2rem 0 1rem;
}

.glorex-footer__title {
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #111827;
}

.glorex-footer__links a {
  display: inline-block;
  padding: 0.22rem 0;
  font-size: 0.74rem;
  color: #6b7280;
  text-decoration: none;
}

.glorex-footer__links a:hover {
  color: #edbb6f;
}

.glorex-footer__meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 70px;
  padding: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.glorex-footer__copyright {
  font-size: 0.66rem;
  color: #6b7280;
}

.glorex-footer__social {
  justify-self: center;
}

.glorex-footer__social a {
  width: 1rem;
  height: 1rem;
  font-size: 0.78rem;
}

@media (max-width: 991.98px) {
  .glorex-header-main__row {
    grid-template-columns: minmax(160px, 220px) auto;
  }

  .glorex-header-main__utilities {
    grid-column: 1 / -1;
    justify-content: space-between;
    padding-top: 0.35rem;
  }
}

@media (max-width: 767.98px) {
  .glorex-header-main {
    min-height: 0;
    padding: 0.85rem 0;
  }

  .glorex-header-main__row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .glorex-header-main__utilities {
    justify-content: flex-start;
    gap: 0.8rem;
    padding-top: 0;
  }

  .glorex-header-main__language {
    padding-left: 0;
    border-left: 0;
  }

  .glorex-header-categories {
    display: none;
  }

  .footer__main.glorex-footer {
    min-height: 0;
  }

  .footer__main.glorex-footer .container-md {
    min-height: 0;
  }

  .glorex-footer__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1rem;
    min-height: 0;
    padding: 1.5rem 0;
  }

  .glorex-footer__meta {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    justify-items: start;
    min-height: 70px;
  }

  .glorex-footer__social {
    justify-self: start;
  }
}

.glorex-home {
  padding: 2.5rem 0 1rem;
}

.glorex-home__tile,
.glorex-home__banner,
.glorex-home__catalog-card {
  display: block;
  overflow: hidden;
}

.glorex-home__tile img,
.glorex-home__banner img,
.glorex-home__catalog-card img {
  display: block;
  width: 100%;
  height: auto;
}

.glorex-home__catalog-title {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.glorex-home__catalog-link {
  display: block;
  margin-top: 0.75rem;
  color: inherit;
  text-align: center;
  text-decoration: none;
}

.glorex-home__catalog-link:hover {
  text-decoration: underline;
}

@media (max-width: 575.98px) {
  .glorex-footer__columns {
    grid-template-columns: 1fr;
  }
}


#cms .page-title-section {
  display: none !important;
}

/* Breadcrumb bleibt sichtbar — glorex.com fuehrt ihn auf der Produktseite
   ("Floristik & Deco / Deco-Sand / 69102001") und er ist bei 314 Kategorien
   die wichtigste Orientierung. Nur auf CMS-Seiten stoert er. */
#cms .breadcrumb__wrapper {
  display: none !important;
}

body#cms.cms-id-14 .page-content--cms .row.bm-5 section {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

body#cms.cms-id-14 #carousel-last-viewed,
body#cms.cms-id-14 #carousel-last-viewed2,
body#cms.cms-id-14 #carousel-last-viewed3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

body#cms.cms-id-14 #carousel-last-viewed > div,
body#cms.cms-id-14 #carousel-last-viewed2 > div,
body#cms.cms-id-14 #carousel-last-viewed3 > div {
  display: block;
}

body#cms.cms-id-14 .article-overview {
  height: 100%;
}

body#cms.cms-id-14 .article-overview a {
  display: block;
}

body#cms.cms-id-14 .article-overview img {
  display: block;
  width: 100%;
  height: auto;
}

body#cms.cms-id-14 #carousel-last-viewed-controls,
body#cms.cms-id-14 #carousel-last-viewed2-controls,
body#cms.cms-id-14 #carousel-last-viewed3-controls {
  display: none;
}

/* ---------------------------------------------------------------------------
   Kategorieleiste — Design uebernommen von glorex.com
   ---------------------------------------------------------------------------
   Werte direkt aus der Live-Seite ausgelesen:
     Leiste      #e8e8e8, 45px hoch   (--main-gray)
     Hover-Pille #edbb6f, radius 10px (--main-yellow), Text wird weiss
     Panel       #fff, radius 5px, shadow 0 0 7px rgba(0,0,0,.12), kein Rand
     Schrift     13px / 19.5px
   Die Pille ist wie im Original ein ::after, das von 0 auf 100 % Breite
   waechst — deshalb liegt der Linktext im Template in einem <span>.
   --------------------------------------------------------------------------- */

.glorex-header-categories {
  position: relative;
  background: #e8e8e8;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.glorex-header-categories__inner {
  min-height: 45px;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.85);
}

.glorex-menu {
  width: 100%;
}

.glorex-menu__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.glorex-menu__item {
  position: relative;
}

.glorex-menu__link {
  position: relative;
  display: inline-block;
  padding: 6.5px 10px;
  font-size: 13px;
  font-weight: 400;
  line-height: 19.5px;
  color: #000;
  text-decoration: none;
  transition: color 0.25s;
}

.glorex-menu__link > span {
  position: relative;
  z-index: 10;
}

/* Die Pille waechst von links auf volle Breite. */
.glorex-menu__link::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  height: 100%;
  border-radius: 10px;
  background: #edbb6f;
  transition: width 0.25s;
  z-index: 1;
}

.glorex-menu__item:hover > .glorex-menu__link::after,
.glorex-menu__item:focus-within > .glorex-menu__link::after,
.glorex-menu__item--current > .glorex-menu__link::after {
  width: 100%;
}

.glorex-menu__item:hover > .glorex-menu__link,
.glorex-menu__item:focus-within > .glorex-menu__link,
.glorex-menu__item--current > .glorex-menu__link {
  color: #fff;
}

/* --- Panel der zweiten Ebene ------------------------------------------- */

.glorex-menu__panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  display: none;
  padding: 0.75rem 0.25rem;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 0 7px rgba(0, 0, 0, 0.12);
}

.glorex-menu__item:hover > .glorex-menu__panel,
.glorex-menu__item:focus-within > .glorex-menu__panel {
  display: block;
}

/* Mehrspaltig wie im Original: die Liste fliesst spaltenweise nach unten,
   dann nach rechts.
   Grid statt CSS-columns — columns braucht eine feste Breite am Element, um
   die Spaltenzahl zu bestimmen. In einem absolut positionierten Panel ohne
   Breite laufen die Spalten sonst aus dem weissen Kasten heraus.
   grid-auto-flow: column mit fester Zeilenzahl fuellt spaltenweise nach unten
   und waechst nach rechts — und ein Zweig mit drei Eintraegen bekommt genau
   eine Spalte statt eines leeren Vierer-Rasters. */
.glorex-menu__list--level2 {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(13, auto);
  grid-auto-columns: minmax(150px, max-content);
  gap: 0 1.5rem;
  margin: 0;
  padding: 0 0.75rem;
  list-style: none;
}

.glorex-menu__cell {
  position: relative;
  break-inside: avoid;
}

.glorex-menu__sublink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 2px 6px;
  font-size: 13px;
  line-height: 19.5px;
  color: #000;
  text-decoration: none;
  border-radius: 3px;
  /* Ohne nowrap zieht ein umbrechender Eintrag ("Scheren und Werkzeuge") die
     gesamte Rasterzeile ueber alle Spalten hoch — das Ergebnis sind sichtbar
     ungleiche Zeilenabstaende. Die Live-Seite bricht ebenfalls nicht um. */
  white-space: nowrap;
}

.glorex-menu__sublink:hover,
.glorex-menu__sublink:focus {
  color: #000;
  background: rgba(237, 187, 111, 0.22);
}

.glorex-menu__chevron {
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 1;
  color: #6b7280;
}

/* --- Dritte Ebene: Flyout neben dem Eintrag ---------------------------- */

.glorex-menu__flyout {
  position: absolute;
  top: -0.5rem;
  left: 100%;
  z-index: 40;
  display: none;
  min-width: 190px;
  padding: 0.5rem 0.25rem;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 0 7px rgba(0, 0, 0, 0.12);
}

.glorex-menu__cell--parent:hover > .glorex-menu__flyout,
.glorex-menu__cell--parent:focus-within > .glorex-menu__flyout {
  display: block;
}

.glorex-menu__list--level3,
.glorex-menu__list--level4 {
  margin: 0;
  padding: 0 0.5rem;
  list-style: none;
}

/* --- Mobil -------------------------------------------------------------- */

.glorex-menu__mobile-toggle {
  display: none;
}

@media (max-width: 991.98px) {
  .glorex-header-categories {
    display: none;
  }
}

.glorex-menu__mobile-list,
.glorex-menu__mobile-list ul {
  padding-left: 0;
  list-style: none;
}

.glorex-menu__mobile-list ul {
  padding-left: 1rem;
}

.glorex-menu__mobile-list a {
  display: block;
  padding: 0.4rem 0;
  color: #000;
  text-decoration: none;
}

/* ---------------------------------------------------------------------------
   Produktseite — angeglichen an glorex.com
   --------------------------------------------------------------------------- */

/* Bildkarte: gerundeter heller Rahmen wie auf der Live-Seite.
   Der Cover-Container heisst in Hummingbird .product__images, nicht
   .product__cover — der Platzhalter fuer fehlende Bilder .product__no-image. */
/* .product__images ist der Wrapper aus Karussell + Thumbnail-Leiste. Der darf
   NICHT auf flex gesetzt werden, sonst stellen sich beide nebeneinander und
   das Cover kollabiert auf Thumbnail-Groesse. Nur begrenzen, nicht umbauen. */
.product__left .product__images {
  max-width: 420px;
}

/* Die Karte liegt auf dem Karussell, nicht auf dem Wrapper — sonst waere die
   Thumbnail-Leiste mit im Rahmen. */
.product__left .product__carousel {
  padding: 0.75rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
}

.product__left .product__thumbnails {
  margin-top: 0.6rem;
}

/* Fehlt das Bild, skaliert PrestaShops 853px-Platzhalter sonst auf die volle
   Spaltenbreite und zieht die Seite auf Viewport-Hoehe. */
.product__left .product__no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 420px;
  max-height: 320px;
  overflow: hidden;
}

.product__left .product__no-image img {
  max-height: 300px;
  width: auto;
  object-fit: contain;
}

.product__name {
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Registerkarten — aktive Karte traegt dieselbe Pille wie die Kategorieleiste. */
.glorex-tabs {
  margin-top: 2.5rem;
}

.glorex-tabs__nav {
  display: flex;
  gap: 0.35rem;
  margin: 0 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.glorex-tabs__tab {
  padding: 0.35rem 0.9rem;
  font-size: 13px;
  line-height: 19.5px;
  color: #000;
  background: transparent;
  border: 0;
  border-radius: 4px 4px 0 0;
  transition: background 0.2s, color 0.2s;
}

.glorex-tabs__tab:hover {
  background: rgba(237, 187, 111, 0.22);
}

.glorex-tabs__tab.active {
  color: #fff;
  background: #edbb6f;
}

.glorex-tabs__content {
  padding-top: 1.1rem;
  font-size: 13px;
  line-height: 1.55;
}

/* Artikeldetails als schlichte Definitionsliste. */
.glorex-details__list {
  margin: 0;
  max-width: 46rem;
}

.glorex-details__row {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.glorex-details__row:last-child {
  border-bottom: 0;
}

.glorex-details__row dt {
  font-weight: 600;
  color: #374151;
}

.glorex-details__row dd {
  margin: 0;
  color: #4b5563;
}

@media (max-width: 575.98px) {
  .glorex-details__row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

.glorex-benefits {
  margin: 0;
  padding-left: 1.1rem;
}

.glorex-benefits li {
  padding: 0.15rem 0;
}

/* Titel und rechte Spalte linksbündig — ohne Preise und Kaufbereich bleibt
   die Spalte sonst optisch in der Luft hängen. */
.product__right {
  text-align: left;
}

