html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #eaeaea;
  font-family: 'Audiowide', sans-serif;
  padding-top: 90px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;              /* вместо width:100% (лучше для адаптивности) */
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  background: #000;
  box-sizing: border-box; /* чтобы padding не вылазил за пределы */
}

.header-left {
  display: flex;
  align-items: center;
  gap: 25px;
}

.logo-img {
  width: 45px;
  height: 45px;
  background: url("Photo/image.png") no-repeat center/cover;
  border-radius: 6px;
}

.logo-text {
  font-size: 28px;
  color: #fff;
}

.header-nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.header-nav a {
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  transition: 0.3s;
  position: relative;
}

.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: #00aaff;
  transition: width 0.3s;
}

.header-nav a:hover::after {
  width: 100%;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0; /* запрет сжиматься */
}

.header-icons img {
  width: 25px;
  height: 25px;
}

.header-icons img:hover {
  transform: scale(1.1);
}

/* Большая картинка */
.big-image {
  width: 100%;
  height: 500px;
  margin-top: -15px;
  background: url("Photo/image (4).png") no-repeat center/cover;
}

/* Заголовок */
.main-title {
  text-align: center;
  font-size: 48px;
  margin: 50px 0;
  color: #000;
}

/* Сетка категорий */
.categories {
  max-width: 1600px;
  margin: 0 auto;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.row {
  display: flex;
  gap: 30px;
  justify-content: center;
}

/* Верхний ряд (2 карточки) */
.top-row .category {
  flex: 1;
  height: 545px;
}

/* Нижний ряд (3 карточки) */
.bottom-row .category {
  flex: 1;
  height: 530px;
}

.category {
  background: #fff;
  border-radius: 17px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-decoration: none;
  color: #000;
  transition: transform 0.3s, box-shadow 0.3s;
}

.category img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: auto;
}

.category:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.big-image-Steering-Wheel-category {
  width: 100%;
  height: 450px;
  background: url("Photo/image (10).png") no-repeat center/cover;
  margin-top: 50px;
}

.big-image-Wheel-Base-category {
  width: 100%;
  height: 450px;
  background: url("Photo/image_big.png") no-repeat center/cover;
  margin-top: 50px;
}

.pedals-image-wrapper {
  display: flex;
  justify-content: center;
  margin: 50px 0;
}

.pedals-image-wrapper img {
  height: 450px;       
  width: auto;           
  object-fit: contain;   
  display: block;
  max-width: 100%;       
}

.big-image-Add-ons-category{
  width: 100%;
  height: 450px;
  background: url("Photo/image (11).png") no-repeat center/cover;
  margin-top: 50px;
}

.big-image-Cockpits-category{
  width: 100%;
  height: 450px;
  background: url("Photo/image (12).png") no-repeat center/cover;
  margin-top: 50px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin: 50px auto;
  padding: 20px;
}

.product-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  font-family: 'Audiowide', sans-serif;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

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

.product-title {
  font-size: 18px;
  margin: 15px 0 5px;
  color: #000;
}

.product-price {
  font-size: 20px;
  font-weight: bold;
  margin: 5px 0;
  color: #000;
}

.product-status {
  font-size: 14px;
  margin: 5px 0 15px;
}

.product-status.available {
  color: green;
}

.product-status.out-of-stock {
  color: red;
}

.product-btn {
  background: #000;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}

.product-btn:hover {
  background: #00aaff;
  transform: scale(1.05);
}

.footer {
  background: #111;
  color: #fff;
  padding: 50px 20px 30px;
  font-family: 'Audiowide', sans-serif;
}

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

.footer-column {
  flex: 1;
  min-width: 220px;
}

.footer-column h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #00aaff;
}

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

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

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

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

.social-icons a {
  display: inline-block;
  margin-right: 15px;
  transition: transform 0.3s;
}

.social-icons img {
  width: 25px;
  height: 25px;
}

.social-icons a:hover {
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #444;
  padding-top: 20px;
  color: #888;
  font-size: 14px;
}

/* ===========================
   Стили корзины (панель справа)
   =========================== */
.cart {
  position: fixed;
  top: 0;
  right: -420px; /* спрятана справа */
  width: 400px;
  max-width: 95%;
  height: 100%;
  background: #fff;
  box-shadow: -6px 0 30px rgba(0,0,0,0.25);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transition: right 0.28s cubic-bezier(.2,.9,.2,1);
  font-family: 'Audiowide', sans-serif;
}

.cart.active {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #000;
  color: #fff;
}

.cart-header h2 {
  margin: 0;
  font-size: 20px;
}

.close-cart {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  background: #fafafa;
}

.cart-item {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.cart-item img {
  width: 64px;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 14px;
  margin: 0 0 6px 0;
}

.cart-item-price {
  font-weight: 700;
  font-size: 14px;
  margin: 0;
}

.remove-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #666;
}

/* Футер корзины */
.cart-footer {
  padding: 16px;
  border-top: 1px solid #eee;
  background: #fff;
}

.cart-footer p {
  margin: 0 0 10px 0;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-total {
  font-weight: 800;
}

/* Кнопка checkout */
.checkout-btn {
  width: 100%;
  background: #000;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
}

.checkout-btn:hover {
  background: #00aaff;
}

/* Оверлей */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  z-index: 1100;
  transition: opacity 0.25s, visibility 0.25s;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.quantity-controls button {
  background: #000;
  color: #fff;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background 0.2s;
}

.quantity-controls button:hover {
  background: #00aaff;
}

/* ===== Checkout модуль ===== */
.checkout-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}

.checkout-modal.active {
  opacity: 1;
  visibility: visible;
}

.checkout-content {
  background: #fff;
  width: 90%;
  max-width: 600px;
  padding: 25px 30px;
  border-radius: 10px;
  max-height: 90%;
  overflow-y: auto;
  font-family: 'Audiowide', sans-serif;
}

.checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.checkout-header h2 {
  margin: 0;
}

.close-checkout {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
}

.checkout-form input {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.checkout-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.checkout-buttons button {
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
}

.back-to-cart {
  background: #eee;
}

.confirm-order {
  background: #000;
  color: #fff;
}

.confirm-order:hover {
  background: #00aaff;
}