body {
    margin: 0;
    padding-top: 70px;
    font-family: Arial, sans-serif;
  }
  
  .navbar {
    position: fixed; 
    top: 0;          
    left: 0;
    width: 95%;    
    z-index: 1000; 
    background-color: #FE8400;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 100px;
    color: #fff;
  }
  
  .logo {
    margin-top: 25px;
    width: 50%;
  }
  
  .navbar-left, .navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  .navbar-left a, .navbar-right a {
    text-decoration: none;
    color: #fff;
    margin: 0 15px;
    font-size: 16px;
    display: flex;
  }
  
  .navbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-25%);
  }
  
  .navbar-right img {
    width: 32px;
    height: 32px;
  }
  
  .category-title {
    font-size: 28px;
    padding: 40px;
    color: #444;
  }
  
  .menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 20px;
    width: 30px;
    cursor: pointer;
  }
  
  .menu-icon div {
    height: 4px;
    background-color: #fff;
    border-radius: 2px;
  }
  
  .hero {
    background: url('/static/images/fon.png') no-repeat center center;
    background-size: cover;
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 0 200px;
    color: #fff;
  }
  
  .hero-content {
    max-width: 600px;
  }
  
  .hero-title, .hero-subtitle {
    font-weight: bold;
    color: #FE8400;
    margin: 0;
  }
  
  .hero-title {
    font-size: 128px;
  }
  
  .hero-subtitle {
    font-size: 40px;
    margin: 20px 0;
  }
  
  .hero-button {
    display: inline-block;
    width: 270px;
    height: 95px;
    line-height: 95px;
    text-align: center;
    background-color: #4F79FF;
    color: #fff;
    font-size: 64px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .hero-button:hover {
    background-color: #3C62D6;
  }
  
  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
  }
  
  .modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    width: 350px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
  }
  
  .modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
  }
  
  .modal-close:hover {
    color: #333;
  }
  
  .modal-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
  }
  
  .modal-input {
    width: 90%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
  }
  
  .modal-button {
    width: 100%;
    padding: 12px;
    background-color: #FE8400;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s ease;
  }
  
  .modal-button:hover {
    background-color: #e57300;
  }
  
  .admin-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
  }
  
  .admin-container h2 {
    text-align: center;
    color: #FE8400;
  }
  
  section {
    margin-bottom: 30px;
  }
  
  form {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  input, button {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  button {
    background: #FE8400;
    color: white;
    border: none;
    cursor: pointer;
    transition: 0.3s;
  }
  
  button:hover {
    background: #cc6c00;
  }
  
  .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 60px; 
    padding: 60px;
    justify-content: center;
  }
  
  .product-card {
    background: white;
    border-radius: 15px;
    border: 3px solid #FE8400;
    padding: 15px;
    text-align: center;
    width: 250px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative; 
    overflow: hidden;
    cursor: pointer;
  }
  
  .product-image {
    width: 100%;
    height: 200px; 
    object-fit: scale-down;
    border-radius: 10px;
    cursor: pointer;
  }
  
  .product-title {
    font-size: 18px;
    margin: 10px 0;
    color: #333;
    cursor: pointer;
  }
.product-page {
  padding: 40px;
  max-width: 1200px;
  margin: auto;
}

.product-container {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.product-image img {
  max-width: 400px;
  border-radius: 16px;
  object-fit: cover;
  width: 100%;
}

.product-info {
  flex: 1;
}


.product-description {
  font-size: 18px;
  color: #444;
  margin-bottom: 20px;
}

.product-price {
  font-size: 24px;
  color: #00aa77;
  margin-bottom: 20px;
}

.add-to-cart-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.add-to-cart-btn {
  padding: 10px 20px;
  font-size: 18px;
  background-color: #00aa77;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
}

.add-to-cart-btn:hover {
  background-color: #008f65;
}

.out-of-stock {
  color: red;
  font-weight: bold;
  font-size: 18px;
}

  
  .product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px; 
  }
  
  .product-articul {
    font-size: 14px;
    color: #666;
  }
  
  .product-button {
    background: #FE8400;
    color: white;
    border: none;
    padding: 12px 0;
    width: 65%; 
    font-size: 20px;
    font-weight: bold;
    position: absolute;
    border-radius: 0px 5px 0px 0px;
    bottom: 0;
    left: 0; 
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .quantity-control {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 65%; 
    position: relative;
}

.quantity-control button {
    width: 30%;
    height: 40px; 
    font-size: 18px;
    border: 2px solid #FE8400;
    background-color: white;
    color: #FE8400;
    cursor: pointer;
    transition: background 0.3s;
}

.quantity-control button:hover {
    background: #E67300;
}

.quantity-control .quantity {
    width: 40%;
    text-align: center;
    font-size: 18px;
}

.product-button.hidden {
    display: none;
}

  .product-button:hover {
    background: #E67300;
  }

  .quantity-control {
    width: 65%;
  }
  
  .hidden {
    display: none;
  }
  
  .hidden-product {
    opacity: 0.5;
    background-color: #f8d7da;
  }
  .category-cards {
    text-align: center;
    padding: 2rem;
  }
  
  .cards-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  .category-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 180px;
    cursor: pointer;
    transition: transform 0.2s ease;
    overflow: hidden;
  }
  
  .category-card:hover {
    transform: scale(1.05);
  }
  
  .category-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
  }
  
  .category-card p {
    margin: 0;
    padding: 0.5rem;
    font-weight: bold;
  }
  
  .contact-section {
    padding: 30px 20px;
    text-align: center;
    background-color: #fff;
  }
  
  .contact-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
  }
  
  .contact-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
  }
  
  .contact-card {
    display: flex;
    align-items: center;
    background: #FE8400;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    min-width: 280px;
    max-width: 400px;
    gap: 20px;
    transition: transform 0.3s;
  }
  
  .contact-card:hover {
    transform: translateY(-5px);
  }
  
  .contact-card img {
    width: 40px;
    height: 40px;
  }
  
  .contact-card h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
  }
  
  .contact-card p {
    margin: 5px 0 0;
  }
  
  .contact-card a {
    color: #ffffff;
    text-decoration: none;
  }
  
  .contact-card a:hover {
    text-decoration: underline;
  }
  
  
  .product-detail {
    max-width: 800px;
    height: calc(100vh - 200px);
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
  }
  
  .product-detail img {
    max-width: 350px;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
  }
  
  .product-detail h1 {
    font-size: 28px;
    margin-bottom: 10px;
  }
  
  .product-detail p {
    font-size: 16px;
    line-height: 1.5;
  }
  
  .product-actions {
    margin-top: 20px;
  }
  
  .add-to-cart-btn {
    background-color: #ff8c42;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s;
  }
  
  .add-to-cart-btn:hover {
    background-color: #e76f1d;
  }

.hero-content-container {
  display: flex;
  align-items: center; /* Центрируем по вертикали */
  justify-content: space-between; /* Распределяем текст и картинку */
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
}

.hero-text {
  flex: 1; /* Занимает оставшееся место */
}

.hero-image img {
  max-width: 700px; /* Ограничиваем размер картинки */
  height: auto;
}


/* Бургер-меню */
.burger-menu {
position: fixed;
top: 0;
z-index: 3000;
right: -300px;
width: 250px;
height: 100%;
background-color: #FE8400;
box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
display: flex;
flex-direction: column;
padding: 20px;
transition: right 0.3s ease;
overflow-y: auto;
}

.burger-menu.open {
right: 0;
}

.burger-menu a {
color: white;
text-decoration: none;
font-size: 18px;
display: block;
padding: 8px 0;
}

.burger-menu .close-btn {
font-size: 30px;
align-self: flex-end;
cursor: pointer;
color: white;
margin-bottom: 20px;
}

/* Категории */
.category-list {
list-style: none;
padding: 0;
margin: 0;
}

.category-list li {
position: relative;
}

.category-link {
cursor: pointer;
font-weight: bold;
display: flex;
justify-content: space-between;
align-items: center;
}

.category-link::after {
font-size: 14px;
margin-left: 5px;
transition: transform 0.2s ease;
}

.has-submenu.open > .category-link::after {
transform: rotate(90deg);
}

/* Подменю */
.submenu {
display: none;
list-style: none;
padding-left: 15px;
margin-top: 5px;
}

.has-submenu.open > .submenu {
display: block;
}

.submenu li a {
font-weight: normal;
font-size: 16px;
padding: 4px 0;
color: #fff;
opacity: 0.9;
}

.submenu li a:hover {
opacity: 1;
text-decoration: underline;
}

.cart-count {
  font-size: 16px;
  font-weight: bold;        
  color: #fff;        
  background-color: #ff4500; 
  border-radius: 50%;       
  width: 24px;      
  height: 24px;     
  display: flex;            
  justify-content: center;  
  align-items: center;    
  position: absolute;       
  top: 40px;              
  right: 185px;         
  text-align: center;       
}

.cart-count.visible {
  display: flex;     
}

.cart-count.empty {
  display: none;           
}

/* Контейнер-обертка, чтобы занять место основной кнопки */
.controls-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 65%; /* Совпадает с шириной .product-button */
    height: 48px; /* Примерная высота кнопки (12px padding + font-size) */
}

/* Сам блок управления количеством */
.quantity-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FE8400; /* Твой оранжевый цвет */
    color: white;
    height: 100%;
    border-radius: 0px 5px 0px 0px;
    overflow: hidden;
}

/* Кнопки плюс и минус */
.quantity-control button {
    background: rgb(255 133 0);
    color: white;
    border: none;
    width: 35%;
    height: 100%;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.quantity-control button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.quantity-control button:active {
    background: rgba(0, 0, 0, 0.1);
}

/* Цифра количества */
.quantity-control .quantity {
    font-size: 18px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}
  


/* По умолчанию скрываем мобильную навигацию */
.mobile-nav-container {
  display: none;
}

/* Стили для ПК контейнера, чтобы он занимал всё место */
.pc-nav-container {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}


/* МЕДИА-ЗАПРОС ДЛЯ ТЕЛЕФОНОВ */
@media (max-width: 768px) {
  .pc-nav-container {
    display: none; /* Прячем ПК версию */
  }

  body {
    padding-top: 0;
    padding-bottom: 80px; /* Отступ снизу под навбар */
  }

  .navbar {
    top: auto;
    bottom: 0; /* Переносим вниз */
    left: 0;
    width: 100%;
    height: 70px;
    padding: 0;
    justify-content: center;
  }

  .mobile-nav-container {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: space-around;
  }

  .m-nav-group {
    display: flex;
    gap: 40px;
    align-items: center;
    flex: 1;
    justify-content: center;
  }

  .m-nav-logo {
    display: flex;
    justify-content: center;
  }

  .m-nav-logo img {
    height: 70px; /* Размер логотипа внизу */
    width: auto;
  }

  .m-icon img {
    width: 28px;
    height: 28px;
  }

  /* Бургер в мобилке */
  .menu-icon {
    margin: 0;
    width: 25px;
    height: 18px;
  }

  .burger-menu {
    top: auto;
    bottom: 70px; 
    right: -300px;
    height: calc(100% - 70px);
  }
  
  .burger-menu.active {
    right: 0;
  }

  .hero {
    height: auto;
    padding: 40px 20px 100px 20px; 
    background-attachment: scroll; 
  }

  .hero-content-container {
    flex-direction: column-reverse; 
    padding: 0;
    gap: 30px;
  }

  .hero-text {
    text-align: center;
  }

  .hero-title {
    font-size: 42px; 
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 18px; 
    margin: 15px 0 25px 0;
  }

  .hero-button {
    width: 200px;
    height: 60px;
    line-height: 60px;
    font-size: 24px; 
    border-radius: 12px;
  }

  .hero-image img {
    max-width: 100%;
    height: auto;
  }

  .modal-content {
    width: 90%;
    padding: 20px;
    box-sizing: border-box;
  }

  .modal-input {
    width: 100%;
    font-size: 16px; 
    padding: 12px;
    margin-bottom: 10px;
  }


  .burger-menu {
      position: fixed; 
      top: 0;
      right: -100%;   
      width: 100%;    
      height: 100dvh;  
      background-color: #FE8400;
      display: flex;
      flex-direction: column;
      padding: 20px;
      transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
      overflow-y: auto;
      box-sizing: border-box; 
  }

  .burger-menu.open {
      right: 0;
  }

  .burger-menu a, .category-link {
      color: white; 
      padding: 20px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.2); 
      font-size: 22px; 
      text-align: center; 
      text-decoration: none;
      display: block;
  }

  .burger-menu .close-btn {
    margin-bottom: 0px;
}

  .close-btn {
      align-self: flex-end; 
      font-size: 35px;
      color: white;
      border-bottom: none;
      text-decoration: none;
      padding: 10px;
      cursor: pointer;
  }
  section {
    padding: 20px;
    margin-bottom: 20px;
  }

  .hero-content-container, .container {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 2fr));
    gap: 40px;
    padding: 10px;
  }
  
  .product-card {
    width: 130px;
    padding: 15px;
  }
  .product-image {
    height: 200px;
  }
  .product-button {
    width: 100%;
  }

  .quantity-control {
    width: 100%;
  }

  .product-title {
    font-size: 14px;
  }
  .category-title {
    text-align: center;
}


}