/* ==========================================================================
   Gu Tab Product — Royal Daedong Pill Tabs, 6-Col / Slider Showcase
   ========================================================================== */

.gu-tp-section {
  margin: 40px 0;
}

.gu-tp-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #5c0a0e;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 0 0 18px;
  text-align: center;
}

.gu-tp-heading em {
  font-style: normal;
  font-weight: 500;
  color: var(--gu-tp-accent, #c25e00);
}

.gu-tp-tabs-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
  max-width: 100%;
  padding-block: 6px;
}

.gu-tp-tabs {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  padding: 9px 8px;
  background: #fdf9f2;
  border: 1px solid #e6d5b8;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(92, 10, 14, 0.05);
  flex-wrap: nowrap;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scroll-behavior: smooth;
  scroll-padding-inline: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gu-tp-tabs::-webkit-scrollbar {
  display: none;
}

.gu-tp-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  white-space: nowrap;
  border: 1px solid transparent;
  background: transparent;
  color: #4a3531;
  font-size: 13.8px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gu-tp-tab-ico {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #d4a017;
  color: #c27803;
  font-size: 10.5px;
  background: rgba(212, 160, 23, 0.1);
  transition: all 0.2s ease;
}

.gu-tp-tab-btn:hover {
  color: var(--gu-tp-active-bg, #96161b);
  background: rgba(150, 22, 27, 0.05);
}

.gu-tp-tab-btn.active {
  background: linear-gradient(135deg, var(--gu-tp-active-bg, #96161b) 0%, #6e0e12 100%);
  border-color: rgba(212, 160, 23, 0.45);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(150, 22, 27, 0.28);
}

.gu-tp-tab-btn.active .gu-tp-tab-ico {
  border-color: #f4c430;
  background: rgba(244, 196, 48, 0.22);
  color: #ffd95a;
}

.gu-tp-tab-badge {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--gu-tp-accent, #c25e00);
  color: #ffffff;
}

.gu-tp-tab-btn.active .gu-tp-tab-badge {
  background: rgba(255, 255, 255, 0.22);
}

/* Horizontal Carousel Mode */
.gu-tp-carousel-wrap {
  position: relative;
}

.gu-tp-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 12px 4px 16px;
  margin-top: -8px;
}

.gu-tp-track::-webkit-scrollbar {
  display: none;
}

.gu-tp-slide {
  flex: 0 0 calc((100% - (var(--gu-tp-cols-desk, 6) - 1) * 14px) / var(--gu-tp-cols-desk, 6));
  max-width: calc((100% - (var(--gu-tp-cols-desk, 6) - 1) * 14px) / var(--gu-tp-cols-desk, 6));
  scroll-snap-align: start;
}

.gu-tp-nav {
  position: absolute;
  top: 44%;
  transform: translateY(-50%);
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(212, 160, 23, 0.45);
  background: #ffffff;
  color: #96161b;
  box-shadow: 0 6px 18px rgba(56, 6, 8, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.gu-tp-nav:hover {
  background: #96161b;
  color: #ffffff;
  border-color: #96161b;
}

.gu-tp-prev {
  left: -14px;
}

.gu-tp-next {
  right: -14px;
}

.gu-tp-footer {
  text-align: center;
  margin-top: 20px;
}

.gu-tp-viewall {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 26px;
  border: 1px solid #e2cfa9;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: #5c0a0e !important;
  background: #fdf9f2;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.gu-tp-viewall:hover {
  background: var(--gu-tp-active-bg, #96161b);
  border-color: var(--gu-tp-active-bg, #96161b);
  color: #ffffff !important;
}

@media (max-width: 1199.98px) {
  .gu-tp-slide {
    flex: 0 0 calc((100% - 3 * 14px) / 4);
    max-width: calc((100% - 3 * 14px) / 4);
  }
}

@media (max-width: 767.98px) {
  .gu-tp-section {
    margin: 28px 0;
  }

  .gu-tp-heading {
    font-size: 18px;
    gap: 10px;
  }

  .gu-tp-tabs-wrap {
    justify-content: flex-start;
    padding-block: 6px;
  }

  .gu-tp-tabs {
    width: 100%;
    border-radius: 999px;
    padding: 9px 8px;
    gap: 6px;
    scroll-padding-inline: 8px;
  }

  .gu-tp-tab-btn {
    font-size: 12.8px;
    padding: 7px 14px;
    border-color: #e6d5b8;
    background: #ffffff;
  }

  .gu-tp-tab-btn.active {
    border-color: rgba(212, 160, 23, 0.45);
  }

  .gu-tp-slide {
    flex: 0 0 calc((100% - (var(--gu-tp-cols-mob, 2) - 1) * 10px) / var(--gu-tp-cols-mob, 2));
    max-width: calc((100% - (var(--gu-tp-cols-mob, 2) - 1) * 10px) / var(--gu-tp-cols-mob, 2));
  }
}
