/* ======================================
   GLOBAL WRAPPER
====================================== */
.bgc-wrapper {
  background: #111;
  padding: 40px 0 60px;
  overflow: hidden;
}

/* ======================================
   CATEGORY TABS
====================================== */
.bgc-tabs {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.bgc-tab {
  background: transparent;
  border: none;
  color: #9a9a9a;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  padding-bottom: 6px;
  text-transform: uppercase;
  position: relative;
}

.bgc-tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #f39c12;
  transition: width .3s ease;
}

.bgc-tab.active {
  color: #fff;
}

.bgc-tab.active::after {
  width: 100%;
}

/* ======================================
   CAROUSEL
====================================== */
.bgc-carousel {
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 40px;
}

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

.bgc-track {
  display: flex;
  gap: 22px;
}

.bgc-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  z-index: 5;
}

.bgc-carousel-arrow.left {
  left: 10px;
}

.bgc-carousel-arrow.right {
  right: 10px;
}

.bgc-carousel-arrow:hover {
  background: rgba(0, 0, 0, .85);
}


/* ======================================
   CAROUSEL ITEM
====================================== */
.bgc-item {
  width: 250px;
  height: 250px;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: transform .35s ease;
}

.bgc-item:hover {
  transform: scale(1.03);
}

.bgc-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

/* ======================================
   POPUP (UNCHANGED FUNCTIONALITY)
====================================== */
#bgc-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#bgc-popup img {
  width: 90%;
  height: 85%;
  object-fit: contain;
}

/* ======================================
   POPUP CONTROLS
====================================== */
.bgc-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 38px;
  color: #fff;
  cursor: pointer;
}

.bgc-prev,
.bgc-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 46px;
  color: #fff;
  cursor: pointer;
  padding: 10px;
}

.bgc-prev {
  left: 30px;
}

.bgc-next {
  right: 30px;
}

.bgc-counter {
  position: absolute;
  bottom: 25px;
  color: #fff;
  font-size: 15px;
}

/* ======================================
   RESPONSIVE
====================================== */
@media (max-width: 1024px) {
  .bgc-item {
    min-width: 300px;
    height: 400px;
  }
}

@media (max-width: 768px) {
  .bgc-carousel {
    padding: 0 20px;
  }

  .bgc-item {
    min-width: 260px;
    height: 360px;
  }

  .bgc-prev,
  .bgc-next {
    font-size: 34px;
  }
}