  body {
    word-wrap: break-word;
    word-break: break-word;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
  }
  .box {
    max-width: 1000px;
    margin: 0 auto;
  }
  .menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #333;
    padding: 10px 20px;
    position: relative;
    z-index: 10;
  }
  .logo {
    color: #fff;
    font-size: 1.5em;
    font-weight: bold;
  }
  .cart-icon {
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    position: relative;
  }
  .cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: red;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
  }
  .burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
  }
  .burger span {
    width: 17px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: 0.3s;
  }

  /* Меню */
  .menu-items {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-around;
    z-index: 11;
    background-color: #444;
  }
  .menu-item {
    position: relative;
    color: #fff;
    text-decoration: none;
    font-size: 1em;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s;
  }
  .menu-item:hover {
    color: #ddd;
  }

  /* Стиль для динамических подпунктов */
  ul.dynamic-submenu {
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    padding: 0;
    margin: 0;
    list-style: none;
    z-index: 12;
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    max-height: 400px;
    overflow-y: auto;
  }

  ul.dynamic-submenu li {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
  }

  ul.dynamic-submenu li:hover {
    background-color: #f0f0f0;
  }

  /* Адаптивность */
  @media (max-width: 768px) {
    .sub-list {
      background-color: #fdfeff;
    }
    .menu-items {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      height: 100vh;
      width: 250px;
      flex-direction: column;
      padding: 20px;
      background: rgba(0,0,0,0.9);
      box-shadow: 2px 0 5px rgba(0,0,0,0.5);
      transition: transform 0.3s ease;
      transform: translateX(-100%);
    }
    .menu-items.show {
      display: flex;
      justify-content: start;
      transform: translateX(0);
    }
    .menu-item {
      color: #ffffff;
      margin-bottom: 15px;
    }
    .menu-item:hover {
      color: #ddd;
    }
    .overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.7);
      display: none;
      z-index: 9;
    }
    .overlay.show {
      display: block;
    }
    .burger {
      display: flex;
    }
  }
  .burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .burger.open span:nth-child(2) {
    opacity: 0;
  }
  .burger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  /* Контент */
  #content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* Главная страница */
  .welcome-section {
    text-align: center;
    padding: 40px 20px;
    background-color: #fff;
    /* border-radius: 8px; */
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: #c0b8e2;
  }

  .welcome-section img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  object-fit: contain; /* сохраняет пропорции и полностью показывает изображение */
  border-radius: 40px;
}
  
  .welcome-section h1 {
    color: #333;
    margin-bottom: 20px;
  }
  
  .welcome-section p {
    color: #050202;
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px;
  }
  
  .featured-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
  }
  
  .product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
  }
  
  .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  }
  
  .product-image {
    width: 100%;
    /* height: 200px; */
    object-fit: cover;
  }
  
  .product-info {
    padding: 15px;
  }
  
  .product-title {
    font-size: 1.1em;
    margin: 0 0 10px;
    color: #333;
  }
  
  .product-price {
    font-weight: bold;
    color: #e53935;
    margin-bottom: 10px;
  }
  
  .product-old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
    margin-right: 10px;
  }
  
  .product-discount {
    background-color: #e53935;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    display: inline-block;
  }
  
  /* Скрытый контент */
  .hidden-content {
    display: none;
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ccc;
    background: #f9f9f9;
  }
  
  .hidden-content.show {
    display: block;
  }
  
  /* Фильтры */
  .filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  .filter-group {
    flex: 1;
    min-width: 150px;
  }
  
  .filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
  }
  
  .filter-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
  }
  
  /* Модальное окно товара */
  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 20;
    overflow-y: auto;
  }
  
  .modal-content {
    background-color: #fff;
    margin: 50px auto;
    padding: 20px;
    border-radius: 8px;
    max-width: 900px;
    width: 90%;
    position: relative;
  }
  
  .close-modal {
    position: absolute;
    top: 15px;
    right: 45px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
  }
  
  .product-modal {
    display: flex;
    flex-direction: column;
  }
  
  @media (min-width: 768px) {
    .product-modal {
      flex-direction: row;
    }
  }
  
  .product-modal-images {
    flex: 1;
    min-width: 300px;
  }
  
  .product-modal-main-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s;
    background-color: #f9f9f9;
  }
  
  .product-modal-main-image.zoomed {
    transform: scale(1.5);
    cursor: zoom-out;
    margin-top: 120px;
  
  }
  
  .product-modal-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
  }
  
  .product-modal-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
  }
  
  .product-modal-thumbnail.active {
    border-color: #e53935;
  }
  
  .product-modal-info {
    flex: 1;
    padding: 0 20px;
  }
  
  .product-modal-title {
    font-size: 1.8em;
    margin: 0 0 10px;
    color: #333;
  }
  
  .product-modal-price {
    font-size: 1.5em;
    font-weight: bold;
    color: #e53935;
    margin-bottom: 15px;
  }
  
  .product-modal-old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.2em;
    margin-right: 15px;
  }
  
  .product-modal-discount {
    background-color: #e53935;
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.9em;
  }
  
  .product-modal-description {
    margin: 20px 0;
    color: #555;
    line-height: 1.6;
  }
  
  .product-modal-sizes {
    margin: 20px 0;
  }
  
  .size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .size-option {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .size-option.selected {
    background-color: #333;
    color: #fff;
    border-color: #333;
  }
  
  .size-option.unavailable {
    color: #999;
    text-decoration: line-through;
    cursor: not-allowed;
  }
  
  .add-to-cart-btn {
    background-color: #e53935;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1.1em;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
    display: inline-block;
  }
  
  .add-to-cart-btn:hover {
    background-color: #c62828;
  }
  
  /* Корзина */
  .cart-modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: #fff;
    z-index: 20;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    overflow-y: auto;
  }
  
  .cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
  }
  
  .cart-title {
    font-size: 1.5em;
    margin: 0;
  }
  
  .close-cart {
    font-size: 24px;
    cursor: pointer;
    color: #333;
  }
  
  .cart-items {
    padding: 15px;
  }
  
  .cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
  }
  
  .cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
  }
  
  .cart-item-info {
    flex: 1;
  }
  
  .cart-item-title {
    font-size: 1em;
    margin: 0 0 5px;
  }
  
  .cart-item-price {
    font-weight: bold;
    color: #e53935;
    margin-bottom: 5px;
  }
  
  .cart-item-remove {
    color: #999;
    cursor: pointer;
    font-size: 0.9em;
  }
  
  .cart-total {
    padding: 15px;
    border-top: 1px solid #eee;
    font-size: 1.2em;
    font-weight: bold;
    text-align: right;
  }
  
  .cart-form {
    padding: 15px;
  }
  
  .form-group {
    margin-bottom: 15px;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
  }
  
  .form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
  }
  
  .checkout-btn {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    font-size: 1.1em;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .checkout-btn:hover {
    background-color: #388e3c;
  }
  
  .self-pickup {
    margin-top: 15px;
    font-size: 0.9em;
    color: #666;
  }
  
  /* Адаптивные стили */
  @media (max-width: 768px) {
    .modal-content {
      margin: 20px auto;
      width: 95%;
    }
    
    .product-modal {
      flex-direction: column;
    }
    
    .product-modal-info {
      padding: 20px 0 0 0;
    }
    
    .product-modal-main-image {
      height: 300px;
    }
    
    .cart-modal {
      max-width: 100%;
    }

  
     .featured-products {
    display: grid;
    margin: 20px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));}
  }