body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background-color: #f7f7f7;
  color: #333;
}

header {
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  margin: 0;
  font-size: 24px;
  color: #000;
}

nav a {
  margin-left: 15px;
  text-decoration: none;
  font-weight: 500;
  color: #222;
}

main {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  max-width: 100%;
  border-radius: 8px;
}

.product-card h3 {
  font-size: 18px;
  margin: 15px 0 5px;
  color: #111;
}

.product-card .price {
  font-size: 16px;
  font-weight: bold;
  color: #222;
  margin-bottom: 10px;
}

.add-to-cart {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.add-to-cart:hover {
  background-color: #000;
}














/* Header */
.site-header {
  background: #111;
  color: #fff;
  padding: 20px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-links a {
  color: #fff;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  color: #ccc;
}

/* Footer */
.site-footer {
  background: #111;
  color: #eee;
  padding: 40px 20px 20px;
  font-size: 14px;
}

.footer-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.site-footer h3 {
  color: #fff;
  margin-bottom: 10px;
}

.site-footer a {
  color: #ccc;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  margin-top: 30px;
}





















.site-header {
  background: #111;
  color: white;
  padding: 10px 0;
  font-family: 'Segoe UI', sans-serif;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo a {
  color: #fff;
  font-size: 24px;
  text-decoration: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.main-nav a:hover {
  color: #f90;
}

.cart-link #cart-count {
  background: #f00;
  color: #fff;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 12px;
  margin-left: 4px;
}

/* dropdown */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 28px;
  background-color: #222;
  min-width: 140px;
  z-index: 10;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.dropdown-content a {
  display: block;
  padding: 10px;
  color: white;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: #444;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Search */
.search-form input {
  padding: 6px 10px;
  border-radius: 20px;
  border: none;
  outline: none;
}


.quantity-wrapper {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #ccc;
  margin-bottom: 5px;
}

.qty-input {
  width: 50px;
  text-align: center;
  border: none;
  outline: none;
  font-size: 16px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  font-size: 20px;
  background: #f1f1f1;
  border: none;
  cursor: pointer;
  user-select: none;
  line-height: 1;
}

.qty-btn:hover {
  background: #e0e0e0;
}





















/* Header */

.site-header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10px;
}

.logo a {
  font-size: 22px;
  color: #000;
  text-decoration: none;
}

.main-nav .nav-list {
  display: flex;
  list-style: none;
  gap: 20px;
}

.main-nav .nav-list li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-form input {
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.search-form button {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.cart-link {
  font-size: 20px;
  text-decoration: none;
}

/* Burger */
.burger {
  display: none;
  background: none;
  font-size: 24px;
  border: none;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .burger {
    display: block;
  }

  .mobile-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 10px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    z-index: 2000;
    padding: 15px;
    width: 200px;
  }

  .mobile-menu ul {
    list-style: none;
    padding: 0;
  }

  .mobile-menu ul li {
    margin-bottom: 10px;
  }

  .mobile-menu ul li a {
    color: #333;
    text-decoration: none;
  }

  .mobile-menu.active {
    display: block;
  }
}






















#Header




.dark-header {
  background: #111;
  color: #eee;
  padding: 20px 0;
  font-size: 14px;
  font-family: 'Segoe UI', sans-serif;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo a {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 20px;
}

.main-nav a {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
}

.main-nav a:hover {
  text-decoration: underline;
}

.burger {
  display: none;
  font-size: 22px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #111;
  padding: 15px 20px;
}

.mobile-menu a {
  color: #ccc;
  text-decoration: none;
  margin-bottom: 10px;
}

.mobile-menu a:hover {
  text-decoration: underline;
}

/* Mobile adaptation */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .burger {
    display: block;
  }

  .mobile-menu.active {
    display: flex;
  }
}


























    body {
      font-family: 'Segoe UI', sans-serif;
      margin: 0;
      background-color: #f7f7f7;
      color: #333;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    main {
      flex: 1;
      max-width: 1200px;
      margin: 30px auto;
      padding: 0 20px;
    }

    /* Header */
    .site-header {
      background: #111;
      color: #eee;
      padding: 15px 0;
      position: sticky;
      top: 0;
      z-index: 1000;
      box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }

    .header-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }

    .logo {
      margin-right: 20px;
    }

    .logo a {
      color: #fff;
      font-size: 22px;
      font-weight: 600;
      text-decoration: none;
      white-space: nowrap;
    }

    .main-nav {
      display: flex;
      flex: 1;
      justify-content: space-between;
      align-items: center;
    }

    .nav-links {
      display: flex;
      gap: 20px;
    }

    .nav-links a {
      color: #ccc;
      text-decoration: none;
      font-weight: 500;
      transition: color 0.2s;
      white-space: nowrap;
    }

    .nav-links a:hover {
      color: #fff;
    }

    .cart-link {
      color: #fff;
      text-decoration: none;
      margin-left: 15px;
      white-space: nowrap;
    }

    #cart-count {
      background: #f00;
      color: #fff;
      border-radius: 10px;
      padding: 2px 6px;
      font-size: 12px;
      margin-left: 4px;
    }

    .burger {
      display: none;
      background: none;
      border: none;
      color: #fff;
      font-size: 24px;
      cursor: pointer;
      margin-left: 15px;
    }

    /* Mobile menu */
    .mobile-menu {
      display: none;
      background: #222;
      padding: 15px 20px;
    }

    .mobile-menu.active {
      display: block;
    }

    .mobile-menu a {
      display: block;
      color: #ccc;
      text-decoration: none;
      padding: 10px 0;
      border-bottom: 1px solid #333;
    }

    .mobile-menu a:last-child {
      border-bottom: none;
    }

    .mobile-cart {
      background: #333;
      padding: 10px;
      border-radius: 5px;
      margin-top: 10px;
      display: flex;
      justify-content: space-between;
    }

    /* Footer */
    .site-footer {
      background: #111;
      color: #eee;
      padding: 40px 20px 20px;
      font-size: 14px;
      margin-top: 50px;
    }

    .footer-grid {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 30px;
    }

    .site-footer h3 {
      color: #fff;
      margin-bottom: 15px;
      font-size: 18px;
    }

    .site-footer p, .site-footer ul {
      margin: 0 0 15px;
    }

    .site-footer ul {
      padding-left: 0;
      list-style: none;
    }

    .site-footer li {
      margin-bottom: 8px;
    }

    .site-footer a {
      color: #ccc;
      text-decoration: none;
      transition: color 0.2s;
    }

    .site-footer a:hover {
      color: #fff;
    }

    .footer-bottom {
      text-align: center;
      padding-top: 20px;
      margin-top: 30px;
      border-top: 1px solid #333;
      color: #999;
    }

    /* Адаптация под мобильные */
    @media (max-width: 768px) {
      .nav-links {
        display: none;
      }

      .burger {
        display: block;
      }

      .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
      }

      .header-container {
        flex-wrap: wrap;
      }

      .main-nav {
        order: 2;
        flex-basis: 100%;
        margin-top: 10px;
        justify-content: flex-end;
      }
    }

    @media (max-width: 480px) {
      .footer-grid {
        grid-template-columns: 1fr;
      }

      .header-container {
        padding: 0 15px;
      }

      .logo a {
        font-size: 20px;
      }
    }



# Product

/* ==== GLOBAL ==== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}

a {
  text-decoration: none;
  color: #007bff;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ==== HEADER ==== */
.site-header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  padding: 1rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-links a {
  margin: 0 0.75rem;
  font-weight: 500;
}

.burger {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
}

/* ==== PRODUCT PAGE ==== */
.product-section {
  padding: 2rem 0;
}

.product-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.product-image img {
  width: 300px;
  max-width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.product-info {
  flex: 1;
}

.product-info h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.product-description {
  margin-bottom: 1rem;
}

.product-price {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.quantity-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.qty-btn {
  background-color: #eee;
  border: none;
  font-size: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
}

.qty-input {
  width: 3rem;
  text-align: center;
  margin: 0 0.5rem;
  padding: 0.3rem;
  font-size: 1rem;
}

.add-to-cart-btn {
  background-color: #28a745;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.add-to-cart-btn:hover {
  background-color: #218838;
}

.back-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: #555;
}

/* ==== FOOTER ==== */
.site-footer {
  background-color: #1f1f1f;
  color: #fff;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-grid h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid a {
  color: #ccc;
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: #888;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
  .product-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 4rem;
    right: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 1rem;
    border-radius: 8px;
  }

  .main-nav.active .nav-links {
    display: flex;
  }

  .burger {
    display: inline-block;
  }
}






.menu {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.menu > li {
  position: relative;
  display: inline-block;
}

.menu a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  background-color: #eee;
  color: #000;
}

/* Подменю */
.menu li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: #eee;
  border: 1px solid #ccc;
}

/* Показывать подменю при наведении */
.menu li:hover ul {
  display: block;
}

.menu li ul li a:hover {
  background-color: #ddd;
}


main {
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

main h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

main a {
  display: block;
  margin-bottom: 20px;
  color: #555;
  font-weight: 500;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.product-card h3 {
  font-size: 18px;
  margin: 10px 0;
}

.product-card p.price {
  font-weight: bold;
  color: #222;
  margin: 10px 0;
}

.product-card button {
  background: #333;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.product-card button:hover {
  background: #555;
}

/* Сетка карточек */
main > div {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;


.cart-display {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.cart-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #ddd;
}

.cart-info {
  flex: 1;
}

.cart-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 4px;
}

.cart-price {
  font-size: 14px;
  color: #555;
}

.remove-btn {
  background: #e53935;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.remove-btn:hover {
  background: #c62828;
}

.cart-total {
  margin-top: 10px;
  text-align: right;
  font-weight: bold;
  font-size: 18px;
}
