/* Demo alert styling */
.demo-swal-popup {
  border-radius: 16px !important;
  padding: 1.5rem !important;
}

.demo-alert-body {
  text-align: center;
  padding: 0.5rem 0 0.25rem;
}

.demo-alert-icon {
  display: block;
  font-size: 3.5rem;
  color: #3BB77E;
  margin: 0 auto 1rem;
  line-height: 1;
}

.demo-alert-body p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #253d4e;
  margin: 0;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.swal2-icon.swal2-warning {
  border-color: #f0ad4e !important;
  color: #f0ad4e !important;
}

.api .telefon a {
  background: #3bb77e;
}

.demo-alert-badge {
  display: inline-block;
  background: linear-gradient(135deg, #3BB77E, #29A367);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.demo-alert-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #253d4e;
  margin: 0 0 0.75rem;
}

.demo-alert-text {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #5c6c75;
  margin: 0;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

#logo img.img-responsive,
.logo img,
.header-wrap .logo img {
  max-height: 52px;
  width: auto;
}

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 64px;
  height: 64px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 36px;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  text-decoration: none;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.05); }
@media (max-width: 767px) {
  .whatsapp-float { bottom: 56px; right: 16px; width: 56px; height: 56px; font-size: 30px; }
}

/* Layout safety net — ensures grid works when @import chain fails locally */
.row,
.row.product-grid-4 {
  display: flex !important;
  flex-wrap: wrap !important;
}

.row > [class*="col-"] {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  min-height: 1px;
}

.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 576px) {
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
}

@media (min-width: 768px) {
  .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
}

@media (min-width: 992px) {
  .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
  .product-grid-4 > .col-lg-1-5,
  .col-lg-1-5 { flex: 0 0 20%; max-width: 20%; width: 20%; }
}

@media (min-width: 1200px) {
  .product-grid-4 > .col-lg-1-5,
  .col-lg-1-5 { flex: 0 0 20%; max-width: 20%; width: 20%; }
  .col-xl-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-xl-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
}

/* Footer — keep columns side by side */
footer.main .featured .row,
footer.main .footer-mid .row,
footer.main .container > .row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start;
}
footer.main .footer-mid .row > .col-md-2 {
  flex: 0 0 16.666667% !important;
  max-width: 16.666667% !important;
  width: auto !important;
}
footer.main .footer-mid .row > .col-md-4 {
  flex: 0 0 33.333333% !important;
  max-width: 33.333333% !important;
  width: auto !important;
}
footer.main .featured .row > .col-lg-3 {
  flex: 0 0 25% !important;
  max-width: 25% !important;
  width: auto !important;
}
@media (max-width: 991px) {
  footer.main .featured .row > .col-lg-3,
  footer.main .footer-mid .row > .col-md-2,
  footer.main .footer-mid .row > .col-md-4 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
}
@media (max-width: 767px) {
  footer.main .featured .row > .col-lg-3,
  footer.main .footer-mid .row > [class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}

/* Homepage promo banners — side by side on desktop */
.banners .row {
  display: flex !important;
  flex-wrap: wrap !important;
}
.banners .row > .col-lg-6,
.banners .row > .col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
}
@media (max-width: 767px) {
  .banners .row > .col-lg-6,
  .banners .row > .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Prevent hero slider stacking / shift before Slick init */
.hero-slider-1:not(.slick-initialized) .single-hero-slider:not(:first-child) {
  display: none !important;
}
.hero-slider-1:not(.slick-initialized) .single-hero-slider:first-child {
  display: block !important;
}
.hero-slider-1 .single-hero-slider {
  min-height: 420px;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* Stabilize homepage images (no layout jump) */
.banners .banner-img {
  min-height: 180px;
  background: #f4f6fa;
}
.banners .banner-img img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 760 / 400;
  object-fit: cover;
}

.product-cart-wrap .product-img-action-wrap .product-img a {
  display: block;
  aspect-ratio: 1 / 1;
  background: #f8f9fa;
}
.product-cart-wrap .product-img-action-wrap .product-img a img,
.product-cart-wrap .product-img-action-wrap .product-img a img.lazy {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  opacity: 1 !important;
  filter: none !important;
}

.popular-categories .card-2 figure {
  width: 100px;
  height: 100px;
  margin: 0 auto 10px;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
}
.popular-categories .card-2 figure img,
.popular-categories .card-2 figure img.lazy {
  width: 100px !important;
  height: 100px !important;
  object-fit: cover !important;
  opacity: 1 !important;
  filter: none !important;
  border-radius: 50%;
}

img.lazy {
  opacity: 1;
  filter: none;
}
img.lazy-loaded {
  opacity: 1;
  filter: none;
}

.product-grid-4 {
  display: flex;
  flex-wrap: wrap;
}

/* Product detail image zoom */
.detail-gallery {
  position: relative;
}
.detail-gallery a.img-popup {
  cursor: zoom-in;
  display: block;
}
.detail-gallery .zoom-icon {
  pointer-events: none;
}
.detail-gallery .product-image-slider .slick-slide img {
  width: 100%;
  height: auto;
  display: block;
}


/* Header: keep logo visible and categories label uncut */
.logo.logo-width-1 {
  min-width: 160px;
  flex-shrink: 0;
}
.logo.logo-width-1 a img {
  max-height: 52px !important;
  width: auto !important;
  max-width: 200px;
  display: block;
}
.header-wrap {
  align-items: center;
  gap: 16px;
}
.search-style-2 form select.select-active,
.search-style-2 form select {
  width: 170px !important;
  min-width: 170px;
  max-width: 190px;
  text-overflow: ellipsis;
}

/* Category carousel: avoid stacking before Slick init */
.carausel-8-columns:not(.slick-initialized) {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
}
.carausel-8-columns:not(.slick-initialized) > .card-2 {
  flex: 0 0 12.5%;
  max-width: 12.5%;
  box-sizing: border-box;
}
@media (max-width: 991px) {
  .carausel-8-columns:not(.slick-initialized) > .card-2 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}
@media (max-width: 575px) {
  .carausel-8-columns:not(.slick-initialized) > .card-2 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Featured icons row stability */
.featured .banner-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
