html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  background-color: #e1e9f2;
  min-height: 100%;
  font-family: 'Inter', sans-serif;
  margin: 0;
}

.main {
  flex: 1;
}

a {
  text-decoration: none;
}

.container {
  padding-left: 1rem;
  padding-right: 1rem;
}

.flex-container {
  display: flex;
  gap: 20px;
  align-items: flex-start; /* выравнивание по верхнему краю */
}

input[type=checkbox]{
  accent-color: green;
}

.col-md-auto.d-flex {
  margin-top: 1rem;
}

.dropdown-toggle::after {
  content: none;
}

.custom-shadow {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  background-color: #fdfdfd;
}

.btn-green {
  background-color: #28a745;
  border-color: #28a745;
  color: #fff;
}

.btn-green:hover {
  background-color: #218838;
  border-color: #1e7e34;
}

.color-info {
  background-color: #02e659;
  border: none;
}

.color-info:hover {
   background-color: #63f29a;
}

.badge.bg-info.text-dark {
  position: absolute;
  top: 10px;
  right: 5px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 1rem;
  box-shadow: 2px 2px 15px 9px #000000;
}

.badge-banner {
  top: 80%;
  border-radius: 15px;
  font-size: 0.7rem;
}

.card {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 12px;
  background-color: #ffffff;
  padding: 2rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.card-img-top {
  object-fit: cover;
  height: 18em;
  object-fit: contain;
  width: 80%;
  padding: 0.5em;
  justify-content: center;
  margin-left: 2.5em;
}

.add-to-cart {
  border: none;
  transition: background-color 0.3s ease;
}

.add-to-cart:hover {
  background-color: #218838;
}

.card-title {
  color: #070808;
  text-align: left;
  font-size: 18px;
  text-decoration: none;
}

.card-text {
  font-size: 0.9rem;
  color: #555;
  height: 2em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-img {
  height: 30em;
  object-fit: contain;
  width: 100%;
  padding: 1em;
  justify-content: center;
}

.char-text {
  color: black;
  text-align: right;
}

.char-text-main {
  color: black;
  font-size: 20px;
}

h5.card-title {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1.2rem;
}


.product-card {
  height: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.15);
  transition: box-shadow 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.25);
}

.product-price {
  font-size: 20px;
}

.price-card {
  height: 190px;
  margin-top: 2em;
  padding-left: 2em;
  border-radius: 1em;
}

.product-details {
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.product-details:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.product-details .card-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-details .char-text-main {
    color: #28a745;
    font-size: 1.4rem;
}

.product-details .btn.add-to-cart {
    font-weight: 500;
    border-radius: 8px;
    padding: 0.6rem 1rem;
}

.button-basket {
  width: 100%;
  display: block;
  box-sizing: border-box;
  background-color: #02e659;
  padding: 0em;
  border-width: 0px;
  border-color: #212429;
  border-radius: 0.3em;
  opacity: 0.9;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.button-basket a.btn {
  width: 100%;
  padding: 0.4rem 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.button-basket:hover {
  background-color: #28c76f;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.button-text {
  font-size: 1.1em;
  text-align: center;
  vertical-align: middle;
  margin: 0.6em;
  color: #f7f7fa;
}

.add_style {
  display: block;
  text-align:center;
}

.category_card {
  background-color: white;
  height: 24em;
  border-radius: 1em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category_card a {
  font-size: 1.1rem;
  color: #333;
}

.category_card a:hover {
  color: #28a745;
}

.category_card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  background: linear-gradient(145deg, #ffffff, #f0f8ff);
}

.category-img {
  height: 14em;
  object-fit: contain;
  width: 100%;
  transition: transform 0.3s ease;
  padding: 1em;
}

.category_card:hover .category-img {
  transform: scale(1.05);
}

.row.categories-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.time-info {
  background-color: #a1e3ce;
  font-size: 0.8em;
  border-radius: 0.8em;
}

.contacts-info {
  background-color: #cee6ed;
  border-radius: 0.8em;
}

.social_media {
  height: 2em;
  width: 2em;
}

.sidebar {
  font-size: 1.1em;
  font-weight:bolder;
}

.form-check-input {
  accent-color: white;
}

.get-payment {
  height: 85%;
}

.footer-text {
  font-size: 0.9em;
  color: grey;
}

.footer-text-note {
  font-size: 0.6em;
  color: grey;
}

.footer-info {
  flex: 0 0 auto;
  margin-top: 2em;
}

.pag-info {
  margin: 2.5em;
}

.nav-btn {
  display: none;
}

.navbar.col-lg-3 {
  height: 100vh;
  overflow-y: auto;      /* чтобы был скролл, если контента много */
  color: white;
  position: sticky;      /* фиксируем сверху при прокрутке */
  top: 0;
  color: #333;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #dee2e6;
}

.accordion-button {
  font-weight: 500;
  background-color: #e9f6ef;
  color: #333;
}

.accordion-body {
  background-color: #fefefe;
}

.table-dark {
  background-color: #343a40;
}

.table-dark td, .table-dark th {
  color: #fff;
}

.table-dark a {
  color: #9ef3b0;
  text-decoration: underline;
}

.btn-dark {
    background-color: #343a40;
    border-color: #343a40;
}

.btn-dark:hover {
    background-color: #495057;
    border-color: #495057;
}

.pagination .page-item.disabled .page-link {
    pointer-events: none;
    opacity: 0.5;
}

.pagination .page-item.active .page-link {
    background-color: #198754;
    border-color: #198754;
    color: white;
}

.pag-info > div {
    display: flex;
    gap: 0.25rem;

#filtersCollapse {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

@media (min-width: 992px) {
  .navbar.col-lg-3 {
    height: 100vh;
    overflow-y: auto;
    position: sticky;
    top: 0;
  }
}

/* Для мобильных */
@media (max-width: 991.98px) {
  .navbar.col-lg-3 .collapse {
    max-height: 80vh;
    overflow-y: auto;
  }
}
