/* === ОБЩИЕ СТИЛИ === */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #1a1a1a;
    color: #fff;
    min-height: 100vh;
  }
  
  body {
    font-family: 'Arial', sans-serif;
    color: #fff;
    background-color: #1a1a1a;
    /* Фоновое изображение */
    background-image: url(' /static/img/pot.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 100vh;
}

  /* === ШАПКА (HEADER) === */
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background-color: transparent; /* Прозрачный фон — ложится на hero-section */
  }
  
  .logo img {
    width: 100px;    /* задайте нужную ширину */
    height: auto;   /* сохраняет пропорции */
    max-width: 100%; /* не позволит выйти за пределы контейнера */
  }
  

  .logo {
    width: 150px;
  }
  
  

  .nav ul {
    display: flex;
    list-style: none;
    gap: 60px;
    margin: 5;
    padding: 0;
  }
  
  .nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s;
  }
  
  .nav a:hover {
    background-color: rgba(76, 175, 80, 0.2); /* Лёгкая зелёная подсветка */
  }
  
  /* === ГЛАВНЫЙ БЛОК (HERO-SECTION) === */
  .hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 0;
    background: url('/static/img/pot.png') no-repeat center center/cover;
    text-align: center;
  }
  
  .hero-content {
    max-width: 600px;
    margin-top: 50px;
  }
  
  .hero-content h1 {
    font-size: 48px;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.2;
  }
  
  .hero-content p {
    font-size: 24px;
    margin-bottom: 30px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
  }
  
  .hero-content button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  
  .hero-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
  }
  
  /* === КОНТЕНТНАЯ ЧАСТЬ (PRODUCTS/INFO) === */
  .content-section {
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin: 50px auto;
    gap: 30px;
  }
  
  .left-content {
    width: 60%;
  }
  
  .left-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
  }
  
  .left-content p {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
  }
  
  .right-content {
    width: 35%;
    background-color: #333;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  
  .right-content h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
  }
  
  /* === МОДАЛЬНОЕ ОКНО (LOGIN/REGISTER) === */
  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
  }
  
  .modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    position: relative;
  }
  
  .close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #555;
  }
  
  /* === АДАПТИВНОСТЬ (MEDIA QUERIES) === */
  @media (max-width: 768px) {
    .content-section {
      flex-direction: column;
      gap: 20px;
      width: 90%;
      margin: 30px auto;
    }
    
    .left-content,
    .right-content {
      width: 100%;
    }
    
    .hero-section {
      padding: 80px 0 40px;
    }
    
    .hero-content h1 {
      font-size: 36px;
    }
    
    .hero-content p {
      font-size: 20px;
    }
    
    .hero-content button {
      padding: 10px 20px;
      font-size: 14px;
    }
  }
  
  @media (max-width: 480px) {
    .hero-section {
      padding: 60px 0 30px;
    }
    
    .hero-content h1 {
      font-size: 28px;
    }
    
    .hero-content p {
      font-size: 16px;
    }
    
    .modal-content {
      margin: 15% auto;
      padding: 20px;
      width: 95%;
    }
  }
  
  /* === ФОРМЫ ВВОДА (INPUTS) === */
  input[type="text"],
  input[type="email"],
  input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background-color: #222;
    color: #fff;
    transition: border-color 0.3s;
  }
  
  input:focus {
    border-color: #4CAF50;
    outline: none;
  }
  
  /* === ССЫЛКИ ПЕРЕКЛЮЧЕНИЯ (LOGIN/REGISTER) === */
  .switch-link {
    text-align: center;
    margin-top: 20px;
    color: #555;
  }
  
  .switch-link a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
  }
  
  /* === ФУТЕР (FOOTER) === */

  
 
  

  .footer {
    position: fixed;          /* Фиксирует элемент на экране */
    left: 0;                /* Прижимает к левому краю */
    bottom: 0;              /* Размещает в самом низу окна браузера */
    width: 100%;            /* Занимает всю ширину экрана */
    
    background-color: rgba(0, 0, 0, 0.0); /* Полупрозрачный чёрный фон */
    color: #fff;            /* Белый цвет текста */
    text-align: center;     /* Центрирует текст */
    padding: 10px 0;        /* Отступы сверху и снизу */
    font-size: 8px;      /* Размер шрифта */
    z-index: 1000;         /* Чтобы футер не перекрывался другими элементами */
    backdrop-filter: blur(0px); /* Лёгкое размытие фона за футером (опционально) */
    -webkit-backdrop-filter: blur(5px); /* Поддержка для Safari */
  }
  
  .footer p {
    margin: 0;              /* Убирает стандартные отступы у <p> */
    line-height: 0;     /* Межстрочный интервал */
  }
  

  /* Сетка для товаров */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px 0;
    justify-content: flex-start; /* Выравнивание слева */
  }
  
  .product-card {
    flex: 0 1 220px; /* Минимум 220px, может расти до 300px */
    max-width: 300px;
    background-color: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
  }
  
  .product-card:hover {
    transform: translateY(-5px); /* Лёгкий подъём при наведении */
  }
  
  /* Изображение товара */
  .product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Обрезает изображение под размер блока */
    border-bottom: 1px solid #333;
  }
  
  /* Название товара */
  .product-card h4 {
    margin: 15px 0 5px;
    font-size: 16px;
    color: #fff;
    line-height: 1.4;
  }
  
  /* Цена */
  .product-card .price {
    color: #4CAF50;
    font-weight: bold;
    margin: 5px 0;
    font-size: 14px;
  }
  
  /* Кнопка "Подробнее" */
  .product-card .btn {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    margin: 15px;
    transition: background-color 0.3s;
  }
  
  .product-card .btn:hover {
    background-color: #388039;
  }

  
  @media (max-width: 768px) {
    .product-grid {
      justify-content: center; /* Центрируем на узких экранах */
      padding: 0 10px;
    }
  
    .product-card {
      flex: 0 1 100%; /* На мобильных — карточка на всю ширину */
      max-width: 100%;
      margin-bottom: 15px;
    }
  }

 /* Сетка для товаров — основное правило */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px;
    justify-content: flex-start;
  }
  
  /* Карточка товара */
  .product-card {
    flex: 0 1 180px;
    max-width: 240px;
    background-color: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
  }
  
  .product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  /* Изображение в карточке */
  .product-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: 1px solid #333;
  }
  
  /* Название товара */
  .product-card h4 {
    margin: 12px 0 6px;
    font-size: 14px;
    color: #fff;
    line-height: 1.3;
    min-height: 40px;
  }
  
  /* Цена */
  .product-card .price {
    color: #4CAF50;
    font-weight: bold;
    margin: 8px 0;
    font-size: 13px;
  }
  
  /* Кнопка "Подробнее" */
  .product-card .btn {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    margin: 10px 0 15px;
    transition: background-color 0.3s;
  }
  
  .product-card .btn:hover {
    background-color: #388039;
  }
  
  /* Адаптивные настройки */
  @media (min-width: 1200px) {
    .product-card {
      flex: 0 1 230px;
      max-width: 260px;
    }
  }
  
  @media (min-width: 768px) and (max-width: 1199px) {
    .product-card {
      flex: 0 1 240px;
      max-width: 270px;
    }
  }
  
  @media (min-width: 480px) and (max-width: 767px) {
    .product-grid {
      justify-content: center;
      gap: 12px;
    }
    .product-card {
      flex: 0 1 46%;
      max-width: 46%;
      margin-bottom: 12px;
    }
  }
  
  @media (max-width: 479px) {
    .product-grid {
      padding: 8px;
    }
    .product-card {
      flex: 0 1 92%;
      max-width: 92%;
      margin: 8px auto;
    }
  }

  
  .cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  .cart-table th, .cart-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-weight: 500;
  }
  
  .cart-table th {
    background-color: #4CAF50;
    color: white;
  }
  
  .cart-table td {
    vertical-align: middle;
  }
  
  .cart-table input[type="number"] {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    text-align: center;
  }
  
  .btn-update {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
  }
  
  .btn-update:hover {
    background-color: #3e8e41;
  }
  
  .cart-total {
    background-color: #746161;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 600;
  }
  
  
  
  
  
  .form-group {
    margin-bottom: 15px;
  }

  .tooltip {
    font-size: 0.8em;
    color: #666;
    margin-left: 5px;
  }

  input[title]:hover {
    border-color: #333;
  }

  .btn-calculate {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
  }

  .btn-calculate:hover {
    background-color: #3e8e41;
  }

  .btn-confirm, .btn-pay {
    display: inline-block;
    background-color: #2196F3;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    margin: 10px 5px 0 0;
  }

  .btn-confirm:hover, .btn-pay:hover {
    background-color: #0d47a1;
  }

  .btn-whatsapp {
    display: inline-block;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    margin: 10px 5px 0 0;
  }

  .btn-whatsapp:hover {
    background-color: #128C7E;
  }



  
  .btn-back {
    display: inline-block;
    background-color: #607D8B;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    margin: 10px 5px 0 0;
  }

  .btn-back:hover {
    background-color: #455A64;
  }

  .delivery-info {
    margin-top: 20px;
    padding: 15px;
    background-color: #6c6868;
    border: 1px solid #ddd;
    border-radius: 4px;
  }

  .cart-total {
    margin-top: 20px;
    font-size: 1.2em;
    font-weight: bold;
  }

  .action-buttons {
    margin-top: 20px;
  }

  .loading {
    color: gray;
    text-align: center;
    padding: 10px;
  }
  