.category,
.furniture,
.cat-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
}
.category {
  width: 1280px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  align-content: center;
  gap: 8.9px;
}
.furniture,
.cat-card-header {
  box-sizing: border-box;
}
.furniture {
  height: 140px;
  width: 120px;
  box-shadow: 1px 1px 5px 1px rgba(0, 90, 141, 0.5);
  border-radius: 6px;
  background-color: #fff;
  flex-direction: column;
  padding: 2px;
  gap: 1.5px;
  cursor: pointer;
}
.cat-card-header {
  align-self: stretch;
  height: 18px;
  border-radius: 4px 4px 0 0 ;
  background-color: #786f6c;
  padding: 0 23px;
}
.cat-label-furniture,
.cat-label-lighting {
  height: 18px;
  width: 68px;
  position: relative;
  display: inline-block;
  font-weight: 700;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}
.cat-label-lighting {
  width: 55px;
}
.cat-card-img {
  align-self: stretch;
  flex: 1;
  position: relative;
  border-radius: 0 0 2px 2px;
  max-width: 100%;
  overflow: hidden;
  max-height: 100%;
  object-fit: contain;
}
.cat-label-decor {
  height: 18px;
  width: 40px;
  position: relative;
  display: inline-block;
  font-weight: 700;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}
.cat-card-appliances {
  height: 140px;
  width: 120px;
  box-shadow: 1px 1px 5px 1px rgba(0, 90, 141, 0.5);
  border-radius: 6px;
  background-color: #fff;
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 3px;
  box-sizing: border-box;
  gap: 1.5px;
  cursor: pointer;
}
.cat-label-appliances {
  height: 18px;
  width: 74px;
  position: relative;
  display: inline-block;
  font-weight: 700;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}
.cat-card-header-alt {
  align-self: stretch;
  height: 18px;
  border-radius:  2px 2px 0 0 ;
  background-color: #786f6c;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-label-electronics,
.cat-label-plumbing {
  height: 18px;
  width: 79px;
  position: relative;
  display: inline-block;
  font-weight: 700;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}
.cat-label-plumbing {
  width: 63px;
}
.cat-card-header-accessories {
  align-self: stretch;
  height: 18px;
  border-radius: 0 0 2px 2px;
  background-color: #786f6c;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px 0 18px;
  box-sizing: border-box;
}
.cat-label-accessories,
.cat-label-equipment,
.cat-label-equipments,
.cat-label-architecture {
  height: 18px;
  width: 81px;
  position: relative;
  display: inline-block;
  font-weight: 700;
  text-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.25);
}
.cat-label-equipment,
.cat-label-equipments,
.cat-label-architecture {
  width: 71px;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}
.cat-label-architecture {
  width: 89px;
}
.cat-card-transport {
  height: 140px;
  width: 120px;
  flex: 0 0 120px;
  box-shadow: 1px 1px 5px 1px rgba(0, 90, 141, 0.5);
  border-radius: 6px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3px;
  box-sizing: border-box;
  gap: 1.5px;
  cursor: pointer;
}
.cat-label-transport {
  height: 18px;
  width: 72px;
  position: relative;
  display: inline-block;
  font-weight: 700;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}
.cat-label-item {
  font-style: normal;
}

/* ── Main category carousel nav arrows ─────────────────────────── */
#main-categories-container {
  width: 1280px;
}
.main-category-section {
  position: relative;
  width: 100%;
}
.category--scrollable {
  flex-wrap: nowrap;
  overflow-x: scroll;
  overflow-y: visible;
  scrollbar-width: none;
  justify-content: flex-start;
  scroll-behavior: smooth;
  padding: 5px 1px;
  width: 1285px;
}
.category--scrollable::-webkit-scrollbar { display: none; }
.category--scrollable .furniture,
.category--scrollable .cat-card-appliances,
.category--scrollable .cat-card-transport {
  flex: 0 0 120px;
}
.main-category-nav {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.main-category-nav[disabled] { opacity: 0.35; cursor: not-allowed; }
.main-category-nav--prev { left: 0; transform: translate(-85%, -50%); }
.main-category-nav--next { right: 0; transform: translate(85%, -50%); }
.main-category-nav-icon {
  display: block;
  width: 14px;
  height: 32px;
  object-fit: contain;
  pointer-events: none;
}

@media screen and (max-width: 1280px) {
  #main-categories-container,
  .category,
  .category--scrollable {
    width: 100%;
    box-sizing: border-box;
  }
}

/* ── Tablet: up to 1024px ───────────────────────────────────────── */
@media screen and (max-width: 1024px) {
  .category {
    gap: 8px;
    justify-content: center;
  }
}

/* ── Mobile: up to 768px ────────────────────────────────────────── */
@media screen and (max-width: 768px) {
  /* category cards: horizontal scroll */
  .category {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 8px 6px;
    align-self: stretch;
  }
  .category::-webkit-scrollbar { display: none; }
  .furniture,
  .cat-card-appliances,
  .cat-card-transport {
    width: 100px;
    height: 120px;
    flex-shrink: 0;
  }
}

/* ── Small mobile: up to 480px ─────────────────────────────────── */
@media screen and (max-width: 480px) {
  .furniture,
  .cat-card-appliances,
  .cat-card-transport {
    width: 90px;
    height: 110px;
    flex-shrink: 0;
  }
}

/* Main category hover + selected states. */
[data-main-category] {
  transition: box-shadow 0.18s ease, background-color 0.18s ease;
}

[data-main-category]:hover {
  border-radius: 6px;
  background: #fff;
  box-shadow: 1px 1px 5px 1px rgba(0, 178, 255, 0.50);
}

[data-main-category].highlight {
  border-radius: 6px;
  background: #fff;
  box-shadow: 1px 1px 5px 1px #FF6608;
}
