/* Wrapper */
.cmp10-wrap {
  --cmp10-accent: #f90;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Title */
.cmp10-wrap .cmp10-title {
  margin: 0 0 1rem;
  text-align: center;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  font-weight: 800;
}

/* Tabs container (parents) */
.cmp10-wrap .cmp10-tabs {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  flex-wrap: nowrap;
  width: 100%;
  margin-bottom: 20px;
}

/* Parent tab card */
.cmp10-wrap .cmp10-tab {
  min-height: 161px;
  flex: 1; 
  background: #FFFFED;
  border-radius: 20px;
  padding: 20px 24px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform .2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cmp10-wrap .cmp10-tab:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* Icon circle */
.cmp10-wrap .cmp10-tab-icon {
  width: 73px;
  height: 73px;
  border-radius: 50%;
  background: #ffb200;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 4px rgba(0,0,0,0.16);
}
.cmp10-wrap .cmp10-tab-img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}
.cmp10-wrap .cmp10-tab-name {
    font-family: 'Poppins';
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

/* Subcategories container */
.cmp10-wrap .cmp10-subgrid {
  list-style: none;
  margin: 0;
  padding: 20px;
  display: grid;
  align-items: stretch;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(calc(100% / 5), 1fr));
  width: 100%;         
  background: #000;
  border-radius: 12px;
  box-sizing: border-box;
}
.cmp10-wrap .cmp10-chip{
   width: 100%; 
}

/* Subcategory chip */
.cmp10-wrap .cmp10-chip-link {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: transparent;
  border: 1px solid #fff;
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  text-decoration: none;
  transition: all .2s ease;
  height: 100%;
  box-sizing: border-box;
  gap: 10px;
}
.cmp10-wrap .cmp10-chip-link:hover {
  background: #f90;
  color: #000;
  border-color: #f90;
}
.cmp10-wrap .cmp10-chip-name {
  font-weight: 500;
  font-family: 'Poppins';
  font-size: 15px;
}
.cmp10-wrap .cmp10-chip-arrow {
  top: 5px;
  position: relative;
  color: currentColor;
}

/* Empty state */
.cmp10-wrap .cmp10-empty {
  margin: 0;
  color: #aaa;
}
button.cmp10-arrow {
    display: none;
}


/* create tooltip dynamically from element's own text */
.cmp10-chip-name[title]:hover::after {
  content: attr(title);
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 6px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.4;
  max-width: 250px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(4px);
  z-index: 10;
  white-space: normal;
}

.cmp10-chip-name[title]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* --- Accordion behavior and slider for mobile only --- */
@media (max-width: 768px) {

 .cmp10-subgrid-container {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  overflow: hidden;
}

  .cmp10-subgrid-wrap {
  overflow-x: auto;
  scroll-behavior: smooth;
  flex: 1;
  padding: 0; 
  -webkit-overflow-scrolling: touch;
  }

  .cmp10-tabs {
    display: flex;
    flex-direction: column;
    gap: 10px !important;
  }

  .cmp10-tab {
    width: 100%;
    padding: 15px !important;
    flex-direction: row !important;
    min-height: 70px !important;
    text-align: left;
  }

  .cmp10-panels {
    display: block;
    margin-top: 0;
  }

  .cmp10-panel.is-active {
  padding: 0 24px !important;
}

  .cmp10-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #000;
    border-radius: 12px;
    margin-top: 8px;
  }

  .cmp10-panel.is-active {
    max-height: 1000px !important; 
    padding: 15px !important;
  }

  /* Slider layout */
  .cmp10-subgrid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
    gap: 20px !important;
    width: max-content; 
    padding: 0 15px !important;
    box-sizing: border-box;
    scroll-padding: 15px !important;
  }

  .cmp10-panel .cmp10-chip {
  flex: 0 0 100% !important;
  scroll-snap-align: start;
  }

  /* .cmp10-subgrid::after {
    content: "";
    flex: 0 0 10px !important; 
  }

  .cmp10-panel .cmp10-subgrid::-webkit-scrollbar {
    display: none !important;
  } */

  /* Fix link layout inside cards */
  .cmp10-chip-link {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding: 10px !important;
    font-size: 14px !important;
    height: 100% !important;
    box-sizing: border-box !important;
  }

  .cmp10-chip-arrow {
    display: none;
  }

  .cmp10-wrap .cmp10-tab-icon {
    width: 50px !important;
    height: 50px !important;
  }
  .cmp10-arrow {
    display: block !important;
    position: absolute;
    background: none !important;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    color: #fff;
    font-size: 16px;
    border: none;
    cursor: pointer;
    padding: 0px;
    transition: background 0.2s ease;
  }

  .cmp10-arrow:hover {
    color: #ffb200 !important;
  }

  .cmp10-arrow--left {
    left: 0px;
  }

  .cmp10-arrow--right {
    right: 0px;
  }
}