.category-image {
    width: 100%;
}

/* START LOGO mob size */
@media only screen and (max-width: 1024px) {
#logo a > img {
    height: 58px;
}
@media only screen and (max-width: 340px) {
#logo a > img {
    height: 28px;
}
}

/* START Product List */
.main-products. product-list .product-thumb .btn-cart.btn {
    margin-top: -10px;
}
.main-products.product-list.product-list .product-layout .image {
    height: 100px !important;
    width: 100px !important;
}
/* END Product List */

}
/* Disable brand logo click */
.module-manufacturers a {
    pointer-events: none;
    cursor: default;
}
/* Paslēpj X-Payment Payment Details sadaļu Checkout lapā */
.checkout-payment-details.payment-xpayment1 {
    display: none !important;
}

.delivery-option .content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.delivery-option .content.active {
  max-height: 150px;
}

.delivery-option .header {
  cursor: pointer;
}

/*JAUNS*/
.delivery-option .hint-text {
  font-size: 13px;
  font-weight: normal;
  color: #888;
  transition: color 0.3s ease;
}

.delivery-option:hover .hint-text {
  color: #555;
  text-decoration: underline;
  cursor: pointer;

}

.delivery-option .content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.delivery-option .content.active {
  max-height: 1000px;
}

/* Rotācija */
.delivery-option .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.delivery-option > div.open .arrow {
  transform: rotate(180deg);
}

/* BEZMAKSAS SAŅEMŠANA – Grozs pulsē */
.module-item.module-item-1 .icon-block {
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* PIEGĀDE AR AUTO – Auto kustas */
.module-item.module-item-2 .icon-block {
  animation: drive 3s ease-in-out infinite;
}
@keyframes drive {
  0%   { transform: translateX(0) rotate(0); }
  25%  { transform: translateX(20px) rotate(1deg); }
  50%  { transform: translateX(0) rotate(0); }
  75%  { transform: translateX(-20px) rotate(-1deg); }
  100% { transform: translateX(0) rotate(0); }
}

/* SERVISS – vibrē */
.module-item.module-item-3 .icon-block {
  animation: shake 0.6s linear infinite;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-1px); }
  50% { transform: translateX(1px); }
  75% { transform: translateX(-1px); }
}

/*POGA*/
.button-like {
  background-color: #ff3e17;
  color: white;
  padding: 6px 16px;
  border-radius: 10px;
  display: inline-block;
  font-size: 14px;
  margin-top: 10px;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.button-like:hover {
  background-color: #e23614;
}

/* ----------------------------------
   CIPARI – Skaitītāju bloks
---------------------------------- */
.modern-counter-wrapper {
  display: flex;
  justify-content: flex-start;
  gap: 50px;
  margin-top: -10px;
  flex-wrap: wrap;
}

/* Katrs skaitītājs */
.modern-counter-box {
  text-align: center;
  position: relative;
  line-height: 1.1;
}

/* Lielais cipars */
.modern-number {
  font-size: 66px;
  font-weight: bold;
  color: #ff3e17;
  opacity: 1.0;
  transition: all 0.3s ease;
  display: inline-block;
  vertical-align: middle;
}

/* + simbols blakus */
.plus-symbol {
  font-size: 26px;
  font-weight: bold;
  color: #ff3e17;
  opacity: 0;
  margin-left: 6px;
  vertical-align: middle;
  transition: opacity 0.6s ease;
}

.plus-symbol.visible {
  opacity: 1.0;
}

/* Teksts zem cipara */
.modern-label {
  margin-top: 10px;
  font-size: 30px;
  font-weight: bold;
  color: #ff3e17;
  opacity: 0; /* tiks ieslēgts ar JS */
  text-transform: uppercase;
  display: block;
  transition: opacity 0.6s ease;
}

.modern-label.visible {
  opacity: 1.0;
}

/* Par mums CTA */
.service-cta {
  background-color: #ff3e17;
  padding: 30px 20px;
  text-align: center;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  border-radius: 8px;
  margin-top: 10px;
}

.cta-text {
  font-size: 24px;
  font-weight: bold;
}

.cta-button {
  background-color: #ffffff;
  color: #123c33;
  padding: 12px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
}

.cta-button:hover {
  background-color: #333333;
  color: white;
}
/*TEXTA FADE*/
.modern-label {
  opacity: 0;
  transition: opacity 0.6s ease;
  margin-top: -15px;
  font-size: 16px;
  font-weight: bold;
  color: #ff3e17;
  text-transform: uppercase;
  display: block;
}

/* Kad pievieno klasīti visible – parādās */
.modern-label.visible {
  opacity: 1;
}

/*PAR MUMS JAUNAIS STILS*/
.about-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1140px;
  margin: 40px auto;
  padding: 0 20px;
}

.about-text {
  flex: 1 1 50%;
  font-size: 16px;
  line-height: 1.7;
}

.about-text ul {
  margin: 1em 0;
  padding-left: 20px;
}

.about-text ul li {
  margin-bottom: 6px;
}

.about-image {
  flex: 1 1 50%;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  height: auto;
}

/*ATSTARPES SAMAZINĀŠANA*/
h1, .page-title {
  margin-top: -5px !important; /* Samazini cik vajag */
}

/*TELEFONAM*/
@media (max-width: 768px) {

  /* 1. CTA poga – samazināts augstums un padding */
  .cta-button {
    padding: 10px 20px !important;
    font-size: 14px !important;
  }

  .cta-text {
    font-size: 18px !important;
  }

  .service-cta {
    padding: 25px 15px !important;
    flex-direction: column;
    gap: 15px;
  }

  /* 2. Ciparu bloks – centrēts mobilajā */
  .modern-counter-wrapper {
    justify-content: center !important;
    padding-left: 0 !important;
    text-align: center;
  }

/*SARAKSTA FADEIN*/
}
.fade-in-point {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in-delay-1 { animation-delay: 0.4s; }
.fade-in-delay-2 { animation-delay: 0.8s; }
.fade-in-delay-3 { animation-delay: 1.2s; }
.fade-in-delay-4 { animation-delay: 1.6s; }
.fade-in-delay-5 { animation-delay: 2.0s; }
.fade-in-delay-6 { animation-delay: 2.4s; }
.fade-in-delay-7 { animation-delay: 2.8s; }
.fade-in-delay-8 { transition-delay: 3.2s; }
.fade-in-delay-9 { transition-delay: 3.6s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*Ciparu papildinājums*/
.number-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
}

/*SALABO MOBILO*/
@media (max-width: 768px) {
  .journal-content {
    flex-direction: column !important;
    align-items: center !important;
    padding: 0 15px;
  }

  .journal-content > div {
    width: 100% !important;
    max-width: 100%;
    text-align: center;
  }

  .modern-counter-wrapper {
    justify-content: center !important;
    padding-left: 0 !important;
    text-align: center;
    gap: 30px;
  }

  .modern-label {
    padding-top: 12px !important;
  }
}
@media (max-width: 768px) {
  .journal-content {
    flex-direction: column;
    align-items: center !important;
    gap: 20px;
    padding: 0 15px;
  }

  .journal-content > div {
    width: 100% !important;
    max-width: 100%;
    text-align: center;
  }

  .modern-counter-wrapper {
    justify-content: center !important;
    text-align: center;
    gap: 30px;
    padding-left: 0 !important;
  }

  .modern-label {
    display: block;
    padding-top: 10px !important;
  }
}
@media (max-width: 768px) {
  .modern-counter-wrapper {
    margin-bottom: 20px !important;
  }
}

/*FILTRA CHECKMARKS*/
/* Vispārīgā stila maiņa filtriem */
input[type="checkbox"]:checked {
  accent-color: #ff3e17;
}
/*CHECKOUT CHECKMARKS*/
input[type="radio"]:checked,
input[type="checkbox"]:checked {
  accent-color: #ff3e17;
}
/*MEGA TESTS*/
@media (max-width: 768px) {
  .sticky-offer-banner {
    display: none !important;
  }
}

.sticky-offer-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  color: white;
  text-align: center;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: bold;
  z-index: 9999;
}

.sticky-offer-banner .offer-text {
  background-color: rgba(0, 0, 0, 0.55);
  display: inline-block;
  padding: 10px 16px;
  border-radius: 6px;
}

.sticky-offer-banner a {
  color: #ff3e17;
  text-decoration: underline;
  margin-left: 8px;
}

/*BLOGA CHECKMARKS*/
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px 40px;
  margin-top: 30px;
  margin-bottom: 30px;
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}
.check-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background-color: #6aa627; /* Viessmann zaļais */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}
.check-icon::before {
  content: "✔";
  color: #fff;
  font-size: 14px;
}
.checklist-text {
  flex: 1;
}
/* Bloga dropdown ar unikālām klasēm */
.blog-dropdowns .blog-accordion-wrapper {
  border: 1px solid #eee;
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden; /* This is important for hiding overflow during transition */
}

.blog-dropdowns .blog-accordion-toggle {
  width: 100%;
  background-color: #f8f8f8;
  color: #333;
  padding: 14px 20px;
  text-align: left;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  outline: none;
  transition: background-color 0.3s ease;
}

.blog-dropdowns .blog-accordion-toggle:hover {
  background-color: #e9e9e9;
}

/* Base style for the content, without display: none */
.blog-dropdowns .blog-accordion-content {
  padding: 0px 20px;
  background-color: #fff;
  border-top: 1px solid #ff3e17;
  max-height: 0; /* Initial hidden state */
  overflow: hidden; /* Crucial for hiding content that overflows max-height */
  transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease; /* Add padding to transition */
  opacity: 0; /* Initial hidden state */
  /* Remove display: none; from here */
}

/* This rule should be consistent with the above one, or merge them */
/* If this is meant to be a more general rule, ensure it doesn't conflict */
/* Ideally, you'd only have one set of initial properties for blog-accordion-content */
/* Let's merge them for clarity */
/*
.blog-accordion-content {
  padding: 20px;
  background-color: #fff;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}
*/

.blog-accordion-content.open {
  max-height: 3000px; /* Large enough value to accommodate content */
  opacity: 1;
  padding-top: 15px; /* Ensure padding is applied when open */
  padding-bottom: 15px; /* Ensure padding is applied when open */
}

.blog-dropdowns .blog-accordion-content ul {
  padding-left: 20px;
  list-style-type: disc;
}

.blog-dropdowns .blog-accordion-content ul li {
  margin-bottom: 8px;
}

.blog-accordion-toggle {
  position: relative;
  padding-right: 30px;
  cursor: pointer;
}

.blog-accordion-toggle::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  border: solid #ff3e17;
  border-width: 0 2px 2px 0;
  padding: 5px;
  transition: transform 0.3s ease;
}

.blog-accordion-toggle.active::after {
  transform: translateY(-50%) rotate(-135deg);
}

.blog-dropdowns img,
.blog-accordion-content img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  margin: 15px auto;
  border-radius: 6px;
  object-fit: contain; /* vai cover, ja gribi piegriezt pilnībā */
}

/*FIXO MOBILE BLOGU*/
@media (max-width: 768px) {
  .blog-accordion-content img {
    max-width: 100%;
    height: auto !important;
    display: block;
    margin: 0 auto;
  }

  .blog-accordion-content h1 {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
  }

  .blog-accordion-content {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
}
/*HOMEPAGE H1*/
body.common-home h1 {
  font-size: 78px;
  font-weight: 700;
  color: #000;
  text-align: center;
  line-height: 1.2;
}

/* ✅ Pamata layout – tikai top līmeņa izvēlnei */
.mobile-main-menu-container .main-menu > .j-menu {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px 4% !important;
  padding-left: 0 !important;
 
}

/* ✅ Tālruņa bloks */
.mobile-main-menu-container .main-menu > .j-menu > li:nth-child(1) {
  width: 100% !important;
  margin-bottom: 0px !important;
}

/* ✅ Kolonnu layout tikai 2.–7. izvēlnei */
.mobile-main-menu-container .main-menu > .j-menu > li:nth-child(n+2):nth-child(-n+7) {
  width: 46% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* ✅ Produktu katalogs: pilnā platumā */
.mobile-main-menu-container .main-menu > .j-menu > li.main-menu-item-10 {
  width: 100% !important;
  flex: 0 0 100% !important;
  display: block !important;
  margin-top: 10px !important;
}

/* ✅ Noņem flex tikai no submenu zem Produktu katalogs */
.mobile-main-menu-container .main-menu .main-menu-item-10 .j-menu {
  display: block !important;
  flex-wrap: nowrap !important;
}

/* ✅ Katrā Produkta katalogs punktā <li> atkal pilnā rindā */
.mobile-main-menu-container .main-menu .main-menu-item-10 .j-menu > li {
  width: 100% !important;
}

/* ✅ Ikonu un teksta rinda visur */
.mobile-main-menu-container .main-menu .j-menu a {
  display: flex !important;
  align-items: center !important;
  gap: 0px !important;
  white-space: normal !important;
  text-align: left !important;
}

/* ✅ Neļauj sadalīt tekstu produktos */
.mobile-main-menu-container .main-menu .main-menu-item-10 li.multi-level a span.links-text {
  white-space: nowrap !important;
}

/* ✅ Samazina atstarpi starp ikonu un tekstu tikai kolonnu rindās */
.mobile-main-menu-container .main-menu > .j-menu > li:nth-child(n+2):nth-child(-n+7) a {
  gap: 0px !important;
}
