.product-flags-big .product-flag {
    line-height: 2.5;
}

/* Alert box */
.alert-box {
      background-color: #ececec;
      padding: 20px;
      border: 1px solid #ccc;
      border-radius: 5px;
     /* font-family: Arial, sans-serif;*/
      font-size: 16px;
      color: #333;
      width: 97%;
      margin: 20px auto;
      text-align: left;
}


/* CSS for table with ID "product_desc" */
#product_desc {
  border-collapse: collapse;
  width: 100%;
}

.image-cell {
  text-align: center;
}

#product_desc td p,
#product_desc td h2 {
  max-width: 400px;
}

/* Add spacing between rows with margin-top and margin-bottom */
#product_desc tr img {
  margin-bottom: 20px; /* Adjust the gap between rows */
}

@media (max-width: 768px) {
  #product_desc {
    display: block;
  }

  #product_desc tr {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px; /* Add margin for mobile view */
  }

  #product_desc td {
    flex: 1 1 auto;
    padding: 10px;
  }

  #product_desc td:nth-child(odd) {
    order: 2;
  }
}

#header .vertical-center {
    justify-content: flex-end;
}

/* Clear the float after every 3rd card on ≥ 768 px (Bootstrap-3 “sm”) */
@media (min-width: 768px) {
  .customer-gallery .col-sm-4:nth-child(3n+1) {
    clear: both;
  }
}

/* ------------------ FAQ SEKCIA ------------------------------------- */

/* Kontajner pre celé FAQ */
.custom-faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}
/* --- 1. ÚROVEŇ: HLAVNÉ SEKCIE --- */
.faq-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #fff;
    overflow: hidden; /* Pre zaoblené rohy */
}
.faq-section-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    transition: background-color 0.3s;
}
.faq-section-header:hover {
    background-color: #f0f0f0;
}
.faq-section-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #001d35; /* Tvoja tmavomodrá farba */
}
.faq-section-icon {
    font-size: 24px;
    font-weight: bold;
    color: #001d35;
    transition: transform 0.3s ease;
}
/* Obsah sekcie (zoznam otázok) - na začiatku skrytý */
.faq-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    opacity: 0;
}
/* Keď je sekcia aktívna */
.faq-section.active .faq-section-header {
    background-color: #eef3f6; /* Jemne modré pozadie pri otvorení */
}
.faq-section.active .faq-section-icon {
    transform: rotate(45deg);
}
.faq-section.active .faq-section-content {
    max-height: 2000px; /* Dostatočná výška pre všetky otázky */
    opacity: 1;
    transition: max-height 0.8s ease-in, opacity 0.5s ease-in;
}
/* --- 2. ÚROVEŇ: OTÁZKY A ODPOVEDE --- */
.faq-item {
    border-top: 1px solid #eee;
    margin: 0;
}
.faq-question {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
.faq-icon {
    font-size: 20px;
    font-weight: bold;
    color: #999;
    transition: transform 0.3s ease;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    opacity: 0;
    background-color: #fff;
    padding: 0 20px; /* Padding len po bokoch, výška sa rieši cez max-height */
}
.faq-answer p {
    padding-bottom: 15px;
    padding-top: 5px;
    margin: 0;
    color: #666;
    line-height: 1.6;
}
/* Keď je otázka aktívna */
.faq-item.active .faq-question {
    background-color: #fff;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: #001d35;
}
.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
    transition: max-height 0.5s ease-in, opacity 0.5s ease-in;
}


/* ------------------ FAQ SEKCIA END ------------------------------------- */

/* ------------------ CUSTOMER GALLERY ------------------------------------- */

/* Customer Gallery Styles - FIXED VERSION */
/* Aplikuje sa LEN na CMS stránke ID 7 (info/7-*) */

/* Základný grid len pre CMS 7 */
body.cms-id-7 .custom-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
  padding: 0;
}

body.cms-id-7 .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  background: #fff;
}

body.cms-id-7 .gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

body.cms-id-7 .gallery-image-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
}

/* KRITICKÉ: Špecifický selektor LEN pre gallery obrázky v CMS 7 */
body.cms-id-7 .custom-gallery-grid .gallery-item .gallery-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

/* Flag icon exception */
body.cms-id-7 .gallery-image-wrapper .flag-icon {
  position: static !important;
  width: 24px !important;
  height: 18px !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
}

body.cms-id-7 .country-badge {
  position: absolute;
  bottom: 25px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
  padding: 5px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

body.cms-id-7 .gallery-caption {
  padding: 15px;
  text-align: center;
  background: #fff;
}

body.cms-id-7 .gallery-caption strong {
  display: block;
  font-size: 16px;
  margin-bottom: 5px;
  color: #333;
}

/* Lightbox Styles - globálne (lebo sa otvára cez celú stránku) */
#customLightbox {
  display: none;
  position: fixed;
  z-index: 99999 !important;
  left: 0;
  top: 0;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(0, 0, 0, 0.95) !important;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#lightboxImg {
  width: 90vw !important;
  height: 80vh !important;
  min-width: 300px;
  min-height: 300px;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  margin-bottom: 15px;
}

#lightboxCaption {
  color: #fff;
  margin-top: 15px;
  font-size: 16px;
  text-align: center;
  max-width: 90vw;
  padding: 10px;
}

#closeLightbox {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 100000;
  background: rgba(0,0,0,0.5);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s;
}

#closeLightbox:hover {
  background: rgba(0,0,0,0.8);
}

#prevBtn, #nextBtn {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 30px;
  transition: 0.3s;
  user-select: none;
  background-color: rgba(0,0,0,0.5);
  border: none;
  border-radius: 3px;
  z-index: 100000;
}

#prevBtn { left: 20px; }
#nextBtn { right: 20px; }

#prevBtn:hover, #nextBtn:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Mobile - len pre CMS 7 */
@media (max-width: 768px) {
  body.cms-id-7 .custom-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  #lightboxImg {
    width: 95vw !important;
    height: 70vh !important;
  }
  
  #prevBtn, #nextBtn {
    padding: 10px;
    font-size: 20px;
  }
  
  #closeLightbox {
    top: 10px;
    right: 10px;
    font-size: 30px;
    width: 40px;
    height: 40px;
  }
}

/* ------------------ CUSTOMER GALLERY END ------------------------------------- */

