.main-grid .widget-container {
  margin-top: 50px;
}
.main-grid .sub-article .widget-container {
  margin-top: 0;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  gap: 1rem;
  background-color: #f3f3f3;
  padding: 12px;
}

.top-bar div {
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
}
.top-bar div:hover {
  cursor: pointer;
  border-color: black;
}

.store-logo {
  width: 100px;
}

.loader {
  text-align: center;
  font-size: 1.2rem;
  padding: 2rem;
  color: #444;
  font-style: italic;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  max-height: 388px;
  padding: 0 0 16px 0;
  background-color: #f3f3f3;
  margin-bottom: 20px;
}

.carousel-brochure {
  display: flex;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  max-height: 388px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start;
}

.carousel-brochure::-webkit-scrollbar {
  display: none;
}

#citySelect {
  background-color: transparent;
  border: none;
  font-family: "Sofia Sans Bold", sans-serif;
  cursor: pointer;
}

#citySelect button {
  cursor: pointer;
  font-size: 17px;
  line-height: 19px;
}

#citySelect:focus {
  outline: none;
  border: none;
}

.carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 16px));
  background-color: rgb(0, 0, 0);
  width: 38px;
  height: 38px;
  cursor: pointer;
  z-index: 10;
  border: none;
  padding: 0;
  margin: 0;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.carousel-btn.left {
  left: 6px;
}

.carousel-btn.right {
  right: 6px;
}

.carousel-btn.disabled {
  opacity: 0;
  pointer-events: none;
}

.brochure-card {
  flex: 0 0 100%;
  padding: 0;
  text-align: center;
  max-height: 388px;
  scroll-snap-align: start;
  overflow: hidden;
}

.brochure-card a {
  width: 100%;
  text-align: center;
}

.brochure-card img {
  max-width: 100%;
  height: 100%;
}

@media (min-width: 768px) {
  #carousel {
    overflow-x: visible;
  }
  .carousel-container {
    padding: 0 24px 16px 24px;
  }
  .brochure-card {
    flex: 0 0 calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
    display: block;
  }
  .carousel-brochure {
    gap: 24px;
  }
}
.custom-select {
  position: relative;
  display: inline-block;
  min-width: auto;
  font-family: "Sofia Sans Bold", sans-serif;
  cursor: pointer;
}

.custom-select .custom-arrow {
  position: absolute;
  display: inline-block;
  top: 50%;
  margin-top: -1px;
  margin-left: 10px;
  padding: 3px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  -webkit-transform: rotate(45deg);
  transition: transform 0.3s ease;
  transform: translateY(-50%) rotate(45deg);
  right: 0;
}

.custom-select.open .custom-arrow {
  transform: rotate(-135deg); /* when open: pointing up */
}

.custom-select-trigger {
  background: transparent;
  border: none;
  padding: 10px;
  padding-right: 20px;
  width: 100%;
  text-align: left;
}

.custom-options {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  background: white;
  border: 1px solid #efefef;
  z-index: 10;
  max-height: 200px;
  overflow-y: auto;
}

.custom-option {
  padding: 10px;
  white-space: nowrap;
}

.custom-option:hover,
.custom-option.selected {
  background-color: white;
}

.custom-select.open .custom-options {
  display: block;
  min-width: 200px;
}