body {
    font-family: 'Raleway', sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
  }
  .main-font {
    font-family: 'Jura', sans-serif !important;
    font-weight: 700;
    
  }

  .background {
    background-image: url('../img/background.jpg'); 
    background-size: cover;
    background-repeat: repeat;
    background-position: center center;
    height: 100vh; /* краще використовувати height замість min-height, щоб покрити весь екран */
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* на всяк випадок */
  }

  @media (max-width: 768px) {
    .background {
      background-position: center top; /* трохи підкоригує позицію на вузьких екранах */
      background-size: cover;
      height: 100vh;
    }
  }
  
  .login-box {
    background: rgba(255, 255, 255, 0.85); /* напівпрозорий білий */
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
}

h2 {
  font-weight: 700;
}
.table thead th {
  vertical-align: middle;
}
.cart-list li {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}
.logout-btn {
  min-width: 110px;
}

  .text-gray {
    color: #7D7D7D;
  }


.bg {
color:#3a454e
}

@media (max-width: 868px) {
  .sect-desc {
    font-size: 0.3rem; /* або інший розмір, який тобі подобається */
    line-height: 1.1;
  }
}


.custom-order-btn {
  background-color: #faf8f9;
  border: 2.5px solid #212529; /* Колір як у btn-dark */
  color: #212529; /* Текст того ж кольору */
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 12px;
  text-transform: uppercase;
  font-size: 12px;
  transition: all 0.3s ease;
}

.custom-order-btn:hover {
  background-color: #212529;
  color: #faf8f9;
}

.custom-order-btn-big {
  background-color: #faf8f9;
  border: 2.5px solid #212529; /* Колір як у btn-dark */
  color: #212529; /* Текст того ж кольору */
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 12px;
  text-transform: uppercase;
  font-size: 16px;
  transition: all 0.3s ease;
}

.custom-order-btn-big:hover {
  background-color: #212529;
  color: #faf8f9;
}

.custom-cart-btn {
  background-color: #faf8f9;
  border: 2.5px solid #212529;
  color: #212529;
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 18px;
  transition: all 0.3s ease;
}

.custom-cart-btn:hover {
  background-color: #212529;
  color:#faf8f9;
}

.custom-justify-text {
  text-align: justify;
}

.card {
  width: 100%;
  background-color: #faf8f9;
  max-width: 350px; /* або будь-який фіксований розмір */
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 
              0 4px 4px rgba(0, 0, 0, 0.03);
  margin: auto;
}

/* Обгортка з аспектним співвідношенням 1:1 */
.card-img-top {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  display: block;
}

/* Адаптивність для всіх малих екранів */
@media (max-width: 868px) {
  .card {
    max-width: 100%;
    padding: 0.75rem;
    box-sizing: border-box;
  }

  .card-body {
    padding: 0.6rem; /* трохи більший padding для зручності */
  }

  .card h5 {
    font-size: clamp(0.75rem, 2.5vw, 0.95rem); /* гнучке масштабування */
    line-height: 1.3;
    min-height: unset;
  }

  .card p {
    font-size: clamp(0.65rem, 2.3vw, 0.85rem);
    line-height: 1.4;
    min-height: unset;
  }

  .custom-order-btn,
  .custom-cart-btn,
  .custom-order-btn-big {
    font-size: clamp(10px, 3vw, 14px); /* автоадаптивний розмір */
    border: 2px solid #212529;
    border-radius: 10px;
    padding: 6px 12px;
  }

  .custom-order-btn-big {
    padding: 8px 16px;
  }

  .custom-cart-btn {
    padding: 4px 10px;
  }

  .card-img-top {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
  }
}



.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.5rem;
}

.card h5 {
  font-size: 1.1rem;
  margin: 0;
  text-transform: uppercase;
}

.card p {
  min-height: 50px;
  margin-bottom: 1rem;
  color: #333;
}

.custom-order-btn,
.custom-cart-btn {
  white-space: nowrap;
}

.contact-links .contact-link {
  font-size: 1.7rem;
  color:  #212529;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-links .contact-link:hover {
  color: #eca219;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  #contacts h2.main-font {
    font-size: 2rem !important;
  }
  #contacts h4 {
    font-size: 1.3rem !important;
  }
  /* Зменшуємо відступи в лівій частині */
  .contact-links {
    margin-left: 0.5rem !important;
    margin-right: 0.5rem !important;
  }
  /* Зменшуємо розмір тексту в contact-link */
  .contact-link strong,
  .contact-link span {
    font-size: 0.9rem;
  }
  /* Зменшуємо розмір полів форми */
  #contacts form .form-control {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
  /* Кнопка */
  .custom-order-btn-big {
    font-size: 1rem;
    padding: 0.5rem 2rem;
  }
}

@media (max-width: 480px) {
  /* В мобільній версії зробимо колонки одна під одною */
  #contacts .row.align-items-stretch.gx-5 > div {
    margin-bottom: 2rem;
  }
}

.step {
  transition: transform 0.3s ease;
}


.step:hover,
.step-circle:hover {
  transform: translateY(-3px);
  color: #306440;
}

.step-circle {
  width: 75px;
  height: 75px;
  border: 2px solid black;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 48px;
  margin-bottom: 10px;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-toggler {
  border: none; 
}

/* Базові стилі модального вікна */
.modal {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); 
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  margin: 5% auto;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1001;
  padding: 1.5rem;
}

/* Верхня кнопка закриття */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Вміст */
.modal-body {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.modal-left {
  flex: 1 1 40%;
}

.modal-left img {
  width: 100%;
  border-radius: 8px;
}

.modal-right {
  flex: 1 1 55%;
}

.modal-title {
  font-size: 1.6rem;
  margin-bottom: 0rem;
}

.modal-desc {
  font-size: 0.7rem;
  margin-bottom: 0rem;
}

/* Адаптація для мобільних */
@media (max-width: 600px) {
  .modal-body {
    flex-direction: column;
  }
}
.value-item {
  text-align: left;
  padding: 20px 0;
  transition: all 0.4s ease;
  border-radius: 10px;
  cursor: default;
}

.value-item i {
  font-size: 1.4rem;
  color: #212529;
  transition: color 0.4s ease, transform 0.4s ease;
}

.value-item h5 {
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #212529;
  transition: color 0.4s ease, transform 0.4s ease;
  margin: 0;
}


.value-item p {
  font-size: 0.9rem;
  color: #212529;
  font-weight: 300;
  line-height: 1.5;
  margin: 0;
  transition: color 0.4s ease, transform 0.4s ease;
}

.value-item:hover {
  transform: translateY(-6px);
}

.value-item:hover i,
.value-item:hover h5,
.value-item:hover p {
  color: #24445f;
  transform: translateY(-2px);
}

/* Анімація при появі */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUpAnim 0.8s ease-out forwards;
}

.fade-up:nth-child(1) { animation-delay: 0.2s; }
.fade-up:nth-child(2) { animation-delay: 0.4s; }
.fade-up:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeUpAnim {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#cart-count {
  font-size: 12px;
  padding: 4px 6px;
}

#cart-modal .modal-body {
  align-items: flex-start;
}

.cart-item-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

#cart-button {
  color: #212529;
  background: none;
  border: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

#cart-button:hover {
  transform: scale(1.1);
  color: #000;
}
