.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:20px;padding:20px}.product-card{display:block;height:560px;cursor:pointer;background:#fff;border:1px solid #ddd;border-radius:5px;overflow:hidden;box-shadow:0 2px 5px #0000001a}.product-card img{width:100%;height:75%;object-fit:cover;display:block;border-bottom:1px solid #ddd}.product-card .info{height:11.5%;padding:8px;text-align:center}.product-card .info h3{margin:10px 0;font-size:18px;color:#333}.product-card .info p{color:#666}.product-card .actions{vertical-align:center;display:flex;justify-content:space-around;padding:10px;border-top:1px solid #ddd;background:#f9f9f9}.product-card .actions .add-to-cart{background-color:#272829;color:#fff;padding:10px;font-size:14px;border:none;border-radius:3px;cursor:pointer}.product-card .actions .add-to-cart:hover{background-color:#3c3d3f;color:#fff}.product-card .actions .buy-now{text-align:center;width:100%;padding:10px;font-size:14px;border:none;border-radius:3px;cursor:pointer;background-color:#272829;color:#fff}.product-card .actions .buy-now:hover{background-color:#3c3d3f;color:#fff}.container{width:95%;margin:20px auto;padding:10px}.product{display:flex;flex-wrap:wrap;gap:20px}.product img{width:100%;max-width:500px;border-radius:5px}.product-details{flex:1}.product-details h1{font-size:24px;margin:0}.price{font-size:20px;color:#333;margin:10px 0}.description{margin:15px 0;font-size:14px;color:#555}.options{margin:10px 0}.options span{display:block;margin:10px 0 5px;font-weight:700}.sizes,.colors{display:flex;gap:10px;cursor:pointer;border:none;margin:5px}.options .sizes button,.options .colors button{display:flex;align-items:center;justify-content:center;text-align:center;border:none;margin:5px;padding:10px 15px;border-radius:5px}.actions{margin:20px 0}.actions button{width:99.5%;background-color:#272829;color:#fff;border:none;padding:10px 20px;border-radius:5px;cursor:pointer;font-size:16px;margin-right:10px}.actions button:hover{background-color:#3c3d3f;color:#fff;border:none;padding:10px 20px;border-radius:5px;cursor:pointer;font-size:16px;margin-right:10px}.in-cart{background-color:#ccc;cursor:not-allowed}.choice{padding:10px;border:1px solid #ccc;background-color:#fff;cursor:pointer;transition:.3s}.choice:hover{background-color:#f0f0f0}.choice.active{background-color:#333;color:#fff}.actions button:disabled{opacity:.5;cursor:not-allowed}.actions button:enabled{opacity:1;cursor:pointer}.choice.selected{border-color:#000;transform:scale(1.2)}.carousel{position:relative;width:100%;max-width:400px;margin:0 auto}.carousel-image{width:100%;height:auto;border-radius:10px}.carousel-controls{position:absolute;top:50%;width:100%;display:flex;justify-content:space-between;transform:translateY(-250%)}.carousel-controls button{background-color:#0000;color:#fff;border:none;cursor:pointer;font-size:24px;width:32px;height:32px;border-radius:50%}@media screen and (max-width: 800px){.carousel-controls{position:absolute;top:50%;width:100%;display:flex;justify-content:space-between;transform:translateY(-100%)}}.product-page-wrapper{max-width:100%;padding:0 15px;box-sizing:border-box;margin:0 auto}.sizes,.colors{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.options .sizes button,.options .colors button{flex:0 1 auto;min-width:70px;text-align:center}.cart-container h1{font-size:22px;text-align:center;margin-bottom:10px}.cart-container ul{list-style:none;padding:0;margin:0}.cart-item{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ddd;padding:10px 0}.cart-item img{width:80px;height:80px;object-fit:cover;border-radius:5px;cursor:pointer}.item-details{flex:1;margin-left:10px;text-align:left}.item-details h3{font-size:16px;margin:5px 0;color:#272829;cursor:pointer;transition:color .2s ease-in-out}.item-details h3:hover{color:#555}.item-details p{font-size:13px;color:#555;margin:3px 0}.quantity-controls{display:flex;align-items:center;gap:5px;margin-top:5px}.quantity-controls button{background:#272829;color:#fff;border:none;padding:3px 8px;cursor:pointer;border-radius:4px;font-size:14px}.quantity-controls button:hover{background:#444}.quantity-controls span{font-size:14px;font-weight:700}.remove-btn{background:red;color:#fff;border:none;padding:5px 10px;cursor:pointer;border-radius:4px;font-size:14px;margin-top:5px}.remove-btn:hover{background:#8b0000}.total-price{font-size:18px;font-weight:700;text-align:center;margin:15px 0}.cart-buttons{display:flex;justify-content:space-between;margin-top:15px}.checkout-btn,.back-btn{background:green;color:#fff;border:none;padding-top:10px;padding-bottom:10px;font-size:16px;cursor:pointer;border-radius:4px;width:48%;text-align:center;text-decoration:none}.promo-btn{color:#fff;border:none;padding:5px;margin-left:5px;cursor:pointer;border-radius:4px;text-align:center;text-decoration:none}.promoCode-input{padding:5px;margin-top:5px;border:1px solid #ddd;border-radius:4px}.checkout-btn:hover{background:#006400}.back-btn,.promo-btn{background:#272829}.back-btn:hover,.promo-btn:hover{background:#444}@media (max-width: 480px){.cart-item{flex-direction:row;align-items:center;text-align:left}.item-details{margin-left:10px}.cart-buttons{flex-direction:column;gap:10px}.checkout-btn,.back-btn{width:100%}}.checkout-container{padding:15px;background:#fff;box-shadow:0 0 5px #0000001a;border-radius:8px}.checkout-container h1{font-size:22px;text-align:center;margin-bottom:10px}.checkout-container form{display:flex;flex-direction:column}.checkout-container label{margin-bottom:10px;font-size:14px}.checkout-container input,.checkout-container select{padding:8px;font-size:14px;margin-top:5px;border:1px solid #ddd;border-radius:4px;margin-left:10px}.checkout-container .payment_button{background:green;color:#fff;border:none;padding-bottom:10px;padding-top:10px;font-size:16px;cursor:pointer;border-radius:4px}.checkout-container .payment_button:hover{background:#006400}.error-message{margin-bottom:10px;font-size:16px;font-weight:700}.payment-container{padding:40px 20px;text-align:center}.payment-container h1{font-size:24px;margin-bottom:20px}.payment-container p{font-size:16px;margin-bottom:30px}.back-main-btn{background:#272829;color:#fff;border:none;padding:10px 20px;font-size:16px;cursor:pointer;border-radius:8px;width:100%;text-align:center;text-decoration:none;transition:background .3s}.back-main-btn:hover{background:#444}

/* Глобальные стили для body и html */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  text-decoration: none;
}

* {
  box-sizing: border-box; /* Включаем для всех элементов */
}


/* Контейнер для всей страницы */
body {
  display: flex;
  flex-direction: column;
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  text-decoration: none;
}

a {
  text-decoration: none;
}

/* Основное содержимое страницы */
main {
  flex: 1; /* Заставляет main растягиваться, занимая всё доступное пространство */
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #272829;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.menu-icon {
  font-size: 24px;
  cursor: pointer;
  user-select: none; /* Убираем выделение текста */
  color: white;
}

/* Боковое меню */
.sidebar {
  position: fixed;
  top: 0;
  left: -350px; /* Начальное положение */
  width: 250px;
  height: 100vh;
  background-color: #272829;
  color: white;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
  padding: 20px;
  transition: left 0.5s ease, opacity 0.5s ease; /* Плавность выезда и появления */
  opacity: 0; /* Невидимое изначально */
  overflow-y: auto;
}

.sidebar.active {
  left: 0; /* Меню выезжает */
  opacity: 1; /* И становится видимым */
}

.sidebar .search-bar {
  width: 91%;
  padding: 10px;
  margin-bottom: 20px;
  border: none;
  border-radius: 4px;
  background-color: #3c3d3f;
  color: white;
}

.sidebar .search-bar::placeholder {
  color: #b0b0b0;
}

.sidebar .categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar .categories li {
  margin: 10px 0;
}

.sidebar .categories li a {
  text-decoration: none;
  color: white;
  padding: 10px;
  display: block;
  transition: background-color 0.2s ease;
}

  .sidebar .categories li a:hover {
  background-color: #3c3d3f; /* Тёмно-серый фон при наведении */
}

.footer {
  background-color: #272829;
  padding: 20px;
  font-size: 14px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  flex: 1;
  min-width: 250px;
  color: white;
}

.footer-column p {
  font-size: 14px;
  margin: 5px 0;
  line-height: 1.2;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  text-decoration: none;
  color: white;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: #666666;
}

.payment-icons img {
  max-width: 60px;
  margin-right: 10px;
}

.agency-info {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.agency-info img {
  max-width: 40px;
  margin-right: 10px;
}

.working-hours {
  margin-top: 10px;
  font-size: 12px;
  color: #666;
}

.footer-column img {
  vertical-align: middle;
  max-height: 20px;
  margin-right: 10px;
}

.cart-container {
  position: relative;
  margin: 4px;
}

.cart-icon {
  width: 24px;
  height: 24px;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: red;
  color: white;
  font-size: 12px;
  font-weight: bold;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.dropbtn {
  background-color: #272829;
  color: white;
  padding: 10px 10px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

.dropdown-content {
  left: -6px;
  display: none; /* По умолчанию скрыто */
  position: absolute;
  background-color: #272829;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-content.active {
  display: block; /* Показываем, если класс active добавлен */
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #3c3d3f; /* Эффект наведения */
}

/* Боковое меню */


#sidebar.active {
  left: 0;
}

/* Выпадающее меню стран */


.dropdown-content.active {
  opacity: 1;
  visibility: visible;
}

/* Чтобы свайп работал */
.touch-area {
  width: 20px;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}


.search-container {
  width: 100%;
  padding: 10px;
}

.search-bar {
  width: 100%;
  padding: 10px 14px;
  font-size: 16px;
  border-radius: 8px;
  border: 2px solid #ccc;
  transition: border-color 0.3s ease, color 0.3s ease;
  outline: none;
}

.search-bar:focus {
  border-color: #999;
}

.search-bar.error {
  border-color: #e74c3c;
  color: #e74c3c;
}

body.lock-scroll {
  height: 100vh;
  overflow: hidden;
}
