/* ================================
   DCH Navigation — професійний стиль
================================ */

.dch-nav {
  border: 1px solid #ddd;
  background: #fafafa;
  border-radius: 10px;
  padding: 20px;
  max-width: 1000px;
  margin: 20px auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  box-sizing: border-box;
}

.dch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  justify-content: center; /* 🔸 центрування кнопки та полів */
}

.dch-col {
  flex: 1 1 220px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.dch-col label {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
  color: #333;
}

.dch-col select {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.dch-col select:focus {
  border-color: #ffb300;
  box-shadow: 0 0 0 2px rgba(255,179,0,0.2);
  outline: none;
}

.dch-action-col {
  flex: 0 0 160px;
  display: flex;
  justify-content: center; /* 🔸 кнопка завжди по центру */
  align-items: center;
  box-sizing: border-box;
}

.dch-btn {
  background: #ffb300;
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 11px 22px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.15s ease;
  width: auto;
  min-width: 140px;
  box-sizing: border-box;
  text-align: center;
}

.dch-btn:hover {
  background: #e6a200;
  transform: translateY(-1px);
}

.dch-current-city {
  margin-top: 12px;
  font-size: 14px;
  color: #333;
  word-wrap: break-word;
  text-align: center; /* 🔸 текст під кнопкою також центрований */
}

.dch-current-city a {
  margin-left: 8px;
  color: #0073aa;
  text-decoration: underline;
}

/* ================================
   🔸 Блок міста у шапці сайту
================================ */
.dch-header-city {
  background: #fff8e1;
  border-bottom: 1px solid #f0e0a0;
  text-align: center;
  padding: 8px 12px;
  font-size: 15px;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 1000;
  position: relative;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.dch-header-city-label {
  font-weight: 500;
  color: #444;
}

.dch-header-city-name {
  color: #ffb300;
  font-weight: 600;
}

#dch-header-change-city {
  margin-left: 10px;
  color: #0073aa;
  text-decoration: underline;
  font-size: 14px;
}

/* ================================
   📱 Адаптивність
================================ */

/* --- Планшети (до 1024px) --- */
@media (max-width: 1024px) {
  .dch-row {
    gap: 14px;
    justify-content: center;
  }

  .dch-col {
    flex: 1 1 calc(50% - 14px);
    min-width: unset;
  }

  .dch-action-col {
    flex: 1 1 100%;
    margin-top: 10px;
    justify-content: center;
  }

  .dch-btn {
    width: auto;
  }
}

/* --- Мобільні (до 768px) --- */
@media (max-width: 768px) {
  .dch-row {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .dch-col,
  .dch-action-col {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }

  .dch-col select {
    width: 100%;
    max-width: 100%;
  }

  .dch-action-col {
    justify-content: center;
  }

  .dch-btn {
    width: 80%;
    max-width: 300px;
    margin: 6px auto 0;
  }

  .dch-header-city {
    flex-direction: column;
    font-size: 14px;
    gap: 4px;
    padding: 10px;
  }
}

/* --- Маленькі телефони (до 480px) --- */
@media (max-width: 480px) {
  .dch-nav {
    padding: 14px;
  }

  .dch-col label {
    font-size: 12.5px;
  }

  .dch-col select {
    padding: 9px 10px;
    font-size: 13.5px;
  }

  .dch-btn {
    font-size: 14px;
    padding: 10px 16px;
    width: 100%;
    max-width: 280px;
  }

  .dch-current-city {
    font-size: 13px;
  }
}

/* ============================================================
   🔹 DCH Підкатегорії (Віджет)
============================================================ */

.dch-widget {
  background: #f8fafc;
  border: 1px solid #d9e2ec;
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 25px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.dch-widget:hover {
  box-shadow: 0 4px 18px rgba(79, 117, 150, 0.25);
  transform: translateY(-2px);
}

.dch-widget-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #263348;
  border-bottom: 2px solid #4f7596;
  padding-bottom: 6px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dch-widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dch-widget-list li {
  margin-bottom: 8px;
  transition: background 0.25s ease, padding-left 0.25s ease;
}

.dch-widget-list li:last-child {
  margin-bottom: 0;
}

.dch-widget-list li a {
  display: block;
  text-decoration: none;
  color: #4f7596;
  font-weight: 500;
  border-radius: 8px;
  padding: 6px 10px;
  transition: all 0.25s ease;
}

.dch-widget-list li a:hover {
  background: #e8f0f6;
  color: #263348;
  padding-left: 14px;
}

.dch-widget-list li.active a {
  background: linear-gradient(90deg, #4f7596 0%, #6690b7 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(79, 117, 150, 0.2);
  padding-left: 14px;
}

.dch-widget-list li.active a:hover {
  background: linear-gradient(90deg, #436a88 0%, #5e86a8 100%);
}

@media (max-width: 768px) {
  .dch-widget {
    padding: 16px;
  }

  .dch-widget-title {
    font-size: 1.1rem;
  }

  .dch-widget-list li a {
    font-size: 0.95rem;
  }
}
