/* Стили для секции продуктов (products) */


.products {
  padding: 40px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 30px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--dark);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--gray);
  font-weight: 400;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Стили для кнопок */
.btn {
  display: inline-block;
  padding: 14px 32px;
  background-color: var(--gold);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  border: 2px solid var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 15px;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
}

.btn:hover {
  background-color: transparent;
  color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 540px;
  height: 100%;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  position: relative;
  opacity: 0;
  transform: translateY(30px);
}

.product-card.animated {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--gold);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

.product-image {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  margin-bottom: 16px;
}

.product-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.product-category {
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.product-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
  line-height: 1.2;
  font-weight: 700;
}

.product-description {
  color: var(--gray);
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.5;
}

.product-action {
  margin-top: auto;
  display: flex;
  justify-content: center;
}

/* Адаптивность */
@media (max-width: 768px) {
  .products {
    padding: 30px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
    white-space: normal;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .product-card {
    min-height: auto;
  }
  
  .btn {
    padding: 12px 28px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .products {
    padding: 25px 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
    white-space: normal;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .product-card {
    min-height: auto;
  }
  
  .product-image {
    height: 180px;
  }
  
  .product-content {
    padding: 15px;
  }
  
  .product-title {
    font-size: 1.1rem;
  }
  
  .product-description {
    font-size: 14px;
  }
  
  .btn {
    padding: 10px 24px;
    font-size: 13px;
  }
}

/* Стили для модального окна заказа оптом */
.wholesale-modal {
  display: none;
  position: fixed;
  z-index: 9999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.wholesale-modal.active {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.wholesale-modal-content {
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(10px);
  margin: auto;
  padding: 0;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  position: relative;
  z-index: 10000000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideDown 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
  opacity: 1;
  visibility: visible;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.wholesale-modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  color: var(--white);
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000001;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.wholesale-modal-close:hover,
.wholesale-modal-close:focus {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.wholesale-modal-content .hero-form {
  padding: 40px 30px;
  margin: 0;
  position: relative;
  background: transparent;
  box-shadow: none;
  transform: none;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 1;
}

.wholesale-modal-content .form-title {
  margin-bottom: 25px;
  text-align: center;
  color: #fff !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.wholesale-modal-content form {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.wholesale-modal-content .form-guarantee {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Адаптивность модалки */
@media (max-width: 768px) {
  .wholesale-modal-content {
    width: 95%;
    max-width: none;
    border-radius: 15px;
    max-height: 95vh;
  }
  
  .wholesale-modal-content .hero-form {
    padding: 30px 20px;
  }
  
  .wholesale-modal-close {
    right: 15px;
    top: 15px;
    font-size: 28px;
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 480px) {
  .wholesale-modal-content {
    width: 100%;
    border-radius: 0;
    max-height: 100vh;
  }
  
  .wholesale-modal-content .hero-form {
    padding: 25px 15px;
  }
  
  .wholesale-modal-close {
    right: 10px;
    top: 10px;
    font-size: 24px;
    width: 30px;
    height: 30px;
  }
}

