/* =========================================
   CATEGORII – BARĂ PREMIUM COMPACTĂ
========================================= */

.fhd-header-categories,
.fhd-header-categories * {
  box-sizing: border-box;
}

.fhd-header-categories {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  margin: 11px 0;
  padding: 9px 10px;
  gap: 11px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 13px;
  background:
    radial-gradient(
      circle at 0% 50%,
      rgba(212, 175, 55, 0.1),
      transparent 25%
    ),
    linear-gradient(
      100deg,
      #15171b 0%,
      #0d0f13 100%
    );
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

/* Linie aurie foarte fină */

.fhd-header-categories::before {
  position: absolute;
  top: 11px;
  bottom: 11px;
  left: 0;
  width: 2px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(
    180deg,
    transparent,
    #d4af37,
    transparent
  );
  content: "";
}

/* Permite copiilor să intre în gridul principal */

.fhd-categories-top {
  display: contents;
}

/* =========================================
   TITLUL DIN STÂNGA
========================================= */

.fhd-categories-heading {
  grid-column: 1;
  display: flex;
  align-items: center;
  min-width: 176px;
  gap: 9px;
}

.fhd-categories-heading-icon {
  display: flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(212, 175, 55, 0.23);
  border-radius: 9px;
  background: rgba(212, 175, 55, 0.075);
  color: #d4af37;
}

.fhd-categories-heading-icon svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.fhd-categories-heading-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fhd-categories-heading-copy strong {
  color: #f2f2f2;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.fhd-categories-heading-copy small {
  margin-top: 2px;
  color: #777c85;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

/* =========================================
   CONȚINUTUL ORIGINAL UCOZ
========================================= */

.fhd-categories-raw {
  grid-column: 2;
  min-width: 0;
}

.fhd-categories-scroll {
  display: none;
}

.fhd-header-categories.is-ready
.fhd-categories-raw {
  display: none !important;
}

.fhd-header-categories.is-ready
.fhd-categories-scroll {
  display: block;
}

/* =========================================
   CATEGORII ORIZONTALE
========================================= */

.fhd-categories-scroll {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.fhd-categories-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.fhd-categories-list {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center;
  width: max-content !important;
  min-width: 100%;
  gap: 7px;
}

/* =========================================
   CARDURI MICI TIP CAPSULĂ
========================================= */

.fhd-category-item {
  position: relative;
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center;
  width: auto !important;
  min-width: 112px !important;
  height: 38px;
  min-height: 38px;
  margin: 0 !important;
  padding: 5px 10px 5px 6px;
  gap: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.052),
      rgba(255, 255, 255, 0.018)
    );
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transform: none !important;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.fhd-category-item:hover {
  border-color: rgba(212, 175, 55, 0.38);
  background: rgba(212, 175, 55, 0.085);
  color: #ffffff !important;
  text-decoration: none !important;
  transform: none !important;
}

/* Iconița categoriei */

.fhd-category-icon {
  display: flex;
  flex: 0 0 27px;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.07);
  color: #caa83e;
}

.fhd-category-icon svg {
  display: block;
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.fhd-category-item:hover
.fhd-category-icon {
  border-color: rgba(212, 175, 55, 0.32);
  background: rgba(212, 175, 55, 0.11);
  color: #e0bd54;
}

/* Textul categoriei */

.fhd-category-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fhd-category-name {
  display: block;
  overflow: hidden;
  max-width: 105px;
  color: #e8e8e9;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fhd-category-count {
  display: block;
  overflow: hidden;
  max-width: 105px;
  margin-top: 2px;
  color: #777c84;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fhd-category-item:hover
.fhd-category-count {
  color: #d4af37;
}

/* =========================================
   SĂGEȚILE DIN DREAPTA
========================================= */

.fhd-categories-controls {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 5px;
}

.fhd-categories-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  padding: 0 0 2px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  outline: none;
  background: rgba(255, 255, 255, 0.035);
  color: #9da1a9;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.fhd-categories-arrow:hover:not(:disabled) {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.08);
  color: #d4af37;
}

.fhd-categories-arrow:disabled {
  opacity: 0.24;
  cursor: default;
}

/* =========================================
   TELEFON
========================================= */

@media (max-width: 600px) {
  .fhd-header-categories {
    grid-template-columns: auto minmax(0, 1fr);
    margin: 8px 0;
    padding: 8px;
    gap: 8px;
    border-radius: 11px;
  }

  .fhd-categories-heading {
    min-width: 36px;
  }

  .fhd-categories-heading-icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  /*
   * Pe telefon păstrăm iconița în aceeași linie,
   * iar textul ocupă mai puțin spațiu.
   */

  .fhd-categories-heading-copy {
    display: none;
  }

  .fhd-categories-scroll {
    grid-column: 2;
  }

  .fhd-categories-controls {
    display: none;
  }

  .fhd-categories-list {
    gap: 6px;
  }

  .fhd-category-item {
    min-width: 106px !important;
    height: 36px;
    min-height: 36px;
    padding: 4px 9px 4px 5px;
    gap: 6px;
    border-radius: 9px;
  }

  .fhd-category-icon {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
    border-radius: 7px;
  }

  .fhd-category-name {
    max-width: 86px;
    font-size: 9px;
  }

  .fhd-category-count {
    max-width: 86px;
    font-size: 7px;
  }
}