main {
    max-width: none !important;
    width: 80vw;
}
.catalog-section {
  font-family: Arial, sans-serif;
  padding: 20px;
  background: rgba(200, 200, 200, 0.2); 
  backdrop-filter: blur(10px); 
  -webkit-backdrop-filter: blur(10px); 
  border-radius: 12px; 
  border: 1px solid rgba(255, 255, 255, 0.3); 
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.1), 
    inset 0 0 15px rgba(255, 255, 255, 0.2); 
  padding: 20px;
}

.container {
  display: flex;
  gap: 20px;
}

.category-menu {
  flex: 0 0 180px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-menu button {
  padding: 10px 18px;
  border: 1px solid #d0d0d0;
  background-color: #f9f9f9;
  color: #333;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.category-menu button:hover {
  background-color: #ebeff5;
  border-color: #c5cdd8;
  color: #1a1a1a;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.category-menu button.active {
  background-color: #97a6f8;  
  border-color: transparent;
}


.product-list {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  max-width: 480px;
  gap: 15px;
}

.product-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  margin-bottom: 10px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
}

.product-card h4 {
  font-weight: 400;
  margin: 0 0 6px;
  color: #dfdfdf;
  font-size: 16px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.product-card .price {
  padding: 10px;
  font-weight: 400;          
  font-size: 1.3rem;         
  color: #fdfdfd;          
  letter-spacing: 0.04em;    
  text-transform: uppercase; 
  text-shadow: 0 1px 3px rgba(13, 110, 253, 0.4); 
  cursor: default;
  transition: color 0.3s ease;
  user-select: none;
}



.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  overflow-y: auto;
  padding: 40px 20px; 
  box-sizing: border-box;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal.hidden {
  display: none;
}

.modal-content {
  margin: 0 auto;
  background: white;
  border-radius: 8px;
  max-width: 700px;
  width: 100%;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  overflow: hidden;
  padding: 20px;
  box-sizing: border-box;
  max-height: none;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  z-index: 1001;
  width: 40px;
  height: 40px;
  font-size: 24px;              /* немного меньше для баланса */
  line-height: 1;               /* убираем лишнюю высоту символа */
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.1s ease;
  padding: 0;   
  transform: translateY(1px)                /* убираем лишние отступы */
}

.modal-close:hover {
  background-color: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.modal-slider {
  position: relative;
  text-align: center;
  margin-bottom: 15px;
}

.modal-slider img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 6px;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(74, 144, 226, 0.8);
  border: none;
  color: white;
  font-size: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
}

#prev-image {
  left: 5px;
}

#next-image {
  right: 5px;
}

.slider-dots {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.slider-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background-color 0.3s;
}

.slider-dots span.active {
  background: #4a90e2;
}

.modal-short-specs {
  margin-bottom: 15px;
  font-size: 0.9em;
  color: #333;
}

.modal-short-specs div {
  margin-bottom: 4px;
}

.modal-description {
  margin-bottom: 20px;
  font-size: 1em;
  color: #555;
}

.btn-group {
  display: flex;
  gap: 10px;
  width: 100%;
}

.btn-add-cart,
.btn-consult {
  flex: 1;
  text-align: center;
  padding: 12px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  font-size: 16px;        /* одинаковый размер шрифта */
  line-height: 1.4;       /* одинаковая высота строки */
  font-weight: 500;       /* при необходимости */
}

/* Синяя кнопка */
.btn-add-cart {
  background: #4a90e2;
  color: white;
}

.btn-add-cart:hover {
  background: #357ABD;
  transform: scale(1.02);
}

/* Телеграм-кнопка */
.btn-consult {
  background: #0088cc;
  color: white;
  text-decoration: none;
}

.btn-consult:hover {
  background: #0077b5;
  transform: scale(1.02);
}
.modal-navigation {
  display: flex;
  justify-content: space-between;
}

.product-nav {
  background: #ddd;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
}

.product-nav:hover {
  background: #4a90e2;
  color: white;
}
@media (min-width: 600px) {
  .product-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .container {
    flex-direction: column; /* Меню и товары будут сверху вниз */
  }

  .category-menu {
    flex: none;
    width: 100%; /* Меню будет на всю ширину сверху */
    display: flex;
    flex-wrap: wrap; /* Кнопки меню на несколько строк */
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
  }

  .product-list {
    max-width: 100% !important; /* Убрать ограничение */
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    justify-items: center;
  }
}

@media (min-width: 900px) {
  .product-list {
    grid-template-columns: repeat(2, 1fr); 
  }
}
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Блюр-фон с прозрачностью */
.loader-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  backdrop-filter: blur(5px);
  background: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  z-index: 1;
}

/* Круг с анимацией вращения */
.loader-circle {
  position: relative;
  width: 60px;
  height: 60px;
  border: 6px solid #3498db;
  border-top-color: transparent; 
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 2;
}


@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.cart-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.cart-modal {
  background: white;
  border-radius: 10px;
  padding: 20px;
  width: 90%;
  max-width: 500px;
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.3s ease;
  position: relative;
}
.cart-overlay.visible .cart-modal {
  transform: scale(1);
  opacity: 1;
}

.close-btn {
  position: absolute;
  top: 10px; right: 15px;
  background: none;
  font-size: 24px;
  border: none;
  cursor: pointer;
}

.cart-step {
  display: none;
}
.cart-step.active,
.cart-step:not(.hidden):not(.active) {
  display: block;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #2d7ef7;
  color: white;
  border: none;
  border-radius: 5px;
  margin-top: 15px;
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: 0px;
  right: -10px;
  background: red;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 12px;
  text-align: center;
  line-height: 18px;
}
.hidden {
  display: none !important;
}

.cart-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
}
.item-image {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}
.item-title {
  font-weight: bold;
}
.item-price {
  font-size: 14px;
  color: #555;
}
.item-controls {
  margin-top: 5px;
}
.item-controls button {
  padding: 2px 6px;
  margin-right: 5px;
  font-size: 14px;
  cursor: pointer;
}
.cart-total {
  margin-top: 20px;
  font-size: 18px;
  text-align: right;
}
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff5722;
  color: #fff;
  padding: 4px 10px;
  font-size: 14px;
  border-radius: 4px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 5;
}
.LR6-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.LR6-modal-content {
  background: #ffffff;
  color: #000000;
  padding: 20px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.7);
  max-width: 90%;
  width: 500px;
}

.LR6-modal-content button {
  margin-top: 15px;
  padding: 10px 20px;
  font-size: 14px;
  background: #82c7ff;
  border: none;
  border-radius: 6px;
  color: #111;
  cursor: pointer;
  margin-right: 10px;
}

.LR6-modal-content button:hover {
  background: #5fa0dd;
}