/* Biekar — Sell / Category Selection */
.bk-category-page {
  font-family: 'Plus Jakarta Sans', 'Open Sans', sans-serif;
  background: #f4f6fa;
  min-height: 100vh;
  padding-top: 100px;
  padding-bottom: 3.5rem;
}

.bk-category-page__header {
  background: linear-gradient(135deg, #1a1d26 0%, #2d3344 55%, #3d2a14 100%);
  padding: 2.25rem 0 2.75rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.bk-category-page__header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 90% 20%, rgba(247, 149, 31, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(247, 149, 31, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.bk-category-page__header .container {
  position: relative;
  z-index: 1;
}

.bk-category-page__header h1 {
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.bk-category-page__header h1 i {
  color: #f7951f;
}

.bk-category-page__header p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  max-width: 520px;
}

/* Steps */
.bk-cat-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.bk-cat-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #9ca3af;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.25s ease;
}

.bk-cat-step__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e8eaef;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.bk-cat-step.is-active .bk-cat-step__num,
.bk-cat-step.is-done .bk-cat-step__num {
  background: linear-gradient(135deg, #f7951f, #e67e22);
  color: #fff;
  box-shadow: 0 4px 14px rgba(247, 149, 31, 0.4);
}

.bk-cat-step.is-active {
  color: #1a1d26;
}

.bk-cat-step.is-done {
  color: #f7951f;
}

.bk-cat-step__label {
  display: none;
}

@media (min-width: 576px) {
  .bk-cat-step__label {
    display: inline;
  }
}

.bk-cat-step__connector {
  width: 40px;
  height: 2px;
  background: #e0e3ea;
  margin: 0 0.35rem;
  transition: background 0.3s ease;
}

.bk-cat-step__connector.is-done {
  background: linear-gradient(90deg, #f7951f, #ffb347);
}

/* Breadcrumb path */
.bk-cat-path {
  background: #fff;
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.9rem;
  min-height: 48px;
}

.bk-cat-path__item {
  color: #6b7280;
}

.bk-cat-path__item.is-set {
  color: #1a1d26;
  font-weight: 600;
}

.bk-cat-path__sep {
  color: #d1d5db;
}

.bk-cat-path__empty {
  color: #9ca3af;
  font-style: italic;
}

/* Panels layout */
.bk-cat-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 991px) {
  .bk-cat-layout {
    grid-template-columns: 1fr;
  }
}

.bk-cat-panel {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  opacity: 0.55;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.bk-cat-panel.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.bk-cat-panel.is-complete {
  opacity: 1;
  pointer-events: auto;
}

.bk-cat-panel__head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f0f1f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.bk-cat-panel__head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1d26;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bk-cat-panel__head h3 i {
  color: #f7951f;
  font-size: 1.1rem;
}

.bk-cat-panel__badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  background: #fff4e6;
  color: #e67e22;
}

.bk-cat-panel__body {
  padding: 1rem;
  max-height: 420px;
  overflow-y: auto;
}

.bk-cat-panel__body::-webkit-scrollbar {
  width: 5px;
}

.bk-cat-panel__body::-webkit-scrollbar-thumb {
  background: #f7951f;
  border-radius: 4px;
}

/* Main category hero card */
.bk-cat-main-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  border: 2px solid #f0f1f5;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  position: relative;
  overflow: hidden;
}

.bk-cat-main-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(247, 149, 31, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bk-cat-main-card:hover,
.bk-cat-main-card.is-selected {
  border-color: #f7951f;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(247, 149, 31, 0.18);
}

.bk-cat-main-card:hover::before,
.bk-cat-main-card.is-selected::before {
  opacity: 1;
}

.bk-cat-main-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f7951f, #ffb347);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 20px rgba(247, 149, 31, 0.35);
  position: relative;
  z-index: 1;
}

.bk-cat-main-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1a1d26;
  margin-bottom: 0.35rem;
  position: relative;
  z-index: 1;
}

.bk-cat-main-card__desc {
  font-size: 0.82rem;
  color: #6b7280;
  margin: 0;
  position: relative;
  z-index: 1;
}

.bk-cat-main-card__arrow {
  margin-top: 1rem;
  color: #f7951f;
  font-size: 1.25rem;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.bk-cat-main-card:hover .bk-cat-main-card__arrow {
  transform: translateX(4px);
}

/* Category option chips */
.bk-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}

.bk-cat-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid #eef0f4;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  background: #fafbfc;
  text-align: left;
}

.bk-cat-option:hover {
  border-color: #f7951f;
  background: #fff9f0;
  transform: translateX(3px);
}

.bk-cat-option.is-selected {
  border-color: #f7951f;
  background: linear-gradient(135deg, #fff9f0, #fff4e6);
  box-shadow: 0 4px 12px rgba(247, 149, 31, 0.15);
}

.bk-cat-option__icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: #f0f1f5;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.25s ease;
}

.bk-cat-option.is-selected .bk-cat-option__icon,
.bk-cat-option:hover .bk-cat-option__icon {
  background: linear-gradient(135deg, #f7951f, #e67e22);
  color: #fff;
}

.bk-cat-option__text {
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.25;
}

.bk-cat-option.is-selected .bk-cat-option__text {
  color: #1a1d26;
}

.bk-cat-option__check {
  margin-left: auto;
  color: #f7951f;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.25s ease;
}

.bk-cat-option.is-selected .bk-cat-option__check {
  opacity: 1;
  transform: scale(1);
}

/* Mobile back */
.bk-cat-mobile-back {
  display: none;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  color: #f7951f;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0;
  margin-bottom: 1rem;
  cursor: pointer;
}

@media (max-width: 991px) {
  .bk-cat-mobile-back.is-visible {
    display: inline-flex;
  }

  .bk-cat-panel:not(.is-mobile-visible) {
    display: none;
  }

  .bk-cat-panel.is-mobile-visible {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

/* Empty state */
.bk-cat-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #9ca3af;
}

.bk-cat-empty i {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

/* Tips card */
.bk-cat-tips {
  background: linear-gradient(135deg, #1a1d26, #2d3344);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  margin-top: 2rem;
  color: #fff;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.bk-cat-tips__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(247, 149, 31, 0.2);
  color: #ffc266;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.bk-cat-tips h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.bk-cat-tips p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.bk-cat-tips ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.bk-cat-tips ul li {
  margin-bottom: 0.25rem;
}

/* Loading overlay */
.bk-cat-loading {
  position: fixed;
  inset: 0;
  background: rgba(26, 29, 38, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}

.bk-cat-loading.is-visible {
  display: flex;
}

.bk-cat-loading__spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #f7951f;
  border-radius: 50%;
  animation: bkCatSpin 0.8s linear infinite;
}

@keyframes bkCatSpin {
  to { transform: rotate(360deg); }
}

.bk-cat-loading span {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Panel placeholder */
.bk-cat-panel__placeholder {
  padding: 2.5rem 1rem;
  text-align: center;
  color: #b0b5c0;
  font-size: 0.88rem;
}

.bk-cat-panel__placeholder i {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
  opacity: 0.4;
}

@media (max-width: 479.98px) {
  .bk-cat-tips {
    padding: 1.1rem 1rem;
    flex-direction: column;
    gap: 0.75rem;
  }
  .bk-cat-tips h4 { font-size: 0.9rem; }
}
