/* ===== БАЗА ===== */
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f5f5f7;
  color: #111;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  background: linear-gradient(90deg, #e30613, #ff3c3c);
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
}

/* ===== LOGO ===== */
.logo-img {
  height: 42px;
  transition: 0.2s;
}
.logo-img:hover {
  transform: scale(1.05);
}

/* ===== SEARCH ===== */
.header-search {
  flex: 1;
  margin: 0 20px;
}

.header-search input {
  width: 100%;
  padding: 12px 18px;
  border-radius: 30px;
  border: none;
  outline: none;
  font-size: 14px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.1);
}

/* ===== ACTIONS ===== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  font-size: 18px;
  color: white;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s;
}
.icon-btn:hover {
  transform: scale(1.15);
}

/* ===== BUTTONS ===== */
.btn {
  background: #00ff88;
  border: none;
  padding: 10px 15px;
  border-radius: 12px;
  color: black;
  font-weight: bold;
  cursor: pointer;
  transition: 0.25s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-small {
  background: white;
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: black;
}

/* ===== NAVBAR ===== */
.nav-bar {
  background: linear-gradient(90deg, #0074d9, #0099ff);
}

.nav-inner {
  display: flex;
  gap: 20px;
  padding: 10px 15px;
  overflow-x: auto;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 8px;
  white-space: nowrap;
}
.nav-link:hover {
  background: rgba(255,255,255,0.2);
}

/* ===== PROMO ===== */
.promo-slider {
  height: 320px;
  margin-top: 15px;
  overflow: hidden;
  border-radius: 16px;
  position: relative;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: 0.6s;
}
.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== БРЕНДЫ ===== */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.brand-card {
  background: white;
  padding: 15px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  cursor: pointer;
  transition: 0.25s;
}

.brand-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.brand-card img {
  max-width: 100%;
  max-height: 50px;
  object-fit: contain;
}

/* ===== PRODUCTS ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.product-card {
  background: white;
  padding: 12px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  transition: 0.3s;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.product-img {
  width: 100%;
  height: 160px;
  object-fit: contain;
}

.no-image {
  height: 160px;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-title {
  font-size: 14px;
  margin-top: 10px;
  height: 40px;
  overflow: hidden;
}

.price {
  font-weight: bold;
  color: #00a86b;
  margin-top: 5px;
}

.product-actions {
  margin-top: 10px;
  display: flex;
  gap: 5px;
}

/* ===== FILTER ===== */
.filter-box {
  display: none;
  width: 350px;
  background: white;
  padding: 20px;
  margin-top: 15px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* ===== FOOTER ===== */
.footer {
  background: #111;
  color: white;
  margin-top: 50px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 30px 20px;
}

.footer-col {
  max-width: 250px;
}

.footer a {
  color: #ccc;
  text-decoration: none;
}

.footer a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding: 12px;
  background: #000;
  font-size: 13px;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  .header-search {
    display: none;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .promo-slider {
    height: 200px;
  }

}