/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #0a192f;
  --white: #ffffff;
  --light-gray: #f5f7fa;
  --accent: #d4af37; /* Gold accent */
  --text: #333333;
  --light-text: #a8b2d1;
}

body {
  font-family: 'Inter', 'Lato', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--light-gray);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header and Navigation */
header {
  background-color: var(--navy);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo {
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

nav ul {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

nav a:hover, nav a.active {
  background-color: var(--accent);
  color: var(--navy);
}

/* Main content */
main {
  padding: 40px 0;
}

.page-title {
  text-align: center;
  margin-bottom: 30px;
  color: var(--navy);
  font-size: 2.2rem;
}

/* Breadcrumbs */
.breadcrumbs {
  margin-bottom: 20px;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--light-text);
}

.breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* Hero section */
.hero {
  background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.9)), url('../images/warehouse.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

.btn {
  display: inline-block;
  background-color: var(--accent);
  color: var(--navy);
  padding: 12px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Category grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.category-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-img {
  height: auto;
  width: 100%;
  object-fit: cover;
}

.category-content {
  padding: 20px;
}

.category-content h3 {
  margin-bottom: 10px;
  color: var(--navy);
}

/* Product grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.product-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-img {
  height: auto;
  width: 100%;
  object-fit: cover;
}

.product-content {
  padding: 20px;
}

.product-content h3 {
  margin-bottom: 10px;
  color: var(--navy);
}

.product-content p {
  margin-bottom: 15px;
  color: var(--light-text);
}

/* Product detail page - ИСПРАВЛЕННЫЙ БЛОК */
.product-detail {
  background: var(--white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.product-detail-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}

.product-detail-image {
  flex: 1;
  min-width: 300px;
}

.product-detail-info {
  flex: 1;
  min-width: 300px;
}

.product-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.product-info h2 {
  color: var(--navy);
  margin-bottom: 20px;
  font-size: 1.8rem;
  line-height: 1.3;
}

.product-info p {
  margin-bottom: 20px;
  line-height: 1.6;
  color: var(--text);
}

.specs {
  background: var(--light-gray);
  padding: 20px;
  border-radius: 8px;
  margin: 25px 0;
}

.specs h3 {
  margin-bottom: 15px;
  color: var(--navy);
  font-size: 1.3rem;
}

.spec-item {
  display: flex;
  margin-bottom: 12px;
  align-items: flex-start;
}

.spec-label {
  font-weight: 600;
  min-width: 200px;
  color: var(--navy);
  flex-shrink: 0;
}

.spec-value {
  flex: 1;
  line-height: 1.4;
}

/* About page */
.about-content {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  line-height: 1.8;
}

.about-content p {
  margin-bottom: 20px;
}

/* Contact page */
.contact-info {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.contact-info h3 {
  color: var(--navy);
  margin-bottom: 20px;
}

.contact-details {
  margin-bottom: 20px;
}

.contact-details p {
  margin-bottom: 10px;
}

.contact-form {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--navy);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

.form-note {
  margin-top: 15px;
  color: var(--light-text);
  font-style: italic;
}

/* Footer */
footer {
  background-color: var(--navy);
  color: var(--white);
  padding: 30px 0;
  text-align: center;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-content p {
  margin-bottom: 10px;
}

/* Success message */
.success-message {
  background-color: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 4px;
  margin-top: 20px;
  display: none;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  width: 30px;
  height: 24px;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--white);
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle span:last-child {
  margin-bottom: 0;
}

/* Responsive design */
@media (max-width: 768px) {
  .page-title {
    font-size: 1.5rem;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--navy);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }
  
  nav.active {
    max-height: 500px;
    padding: 0;
  }
  
  nav ul {
    flex-direction: column;
    gap: 0;
    margin: 0;
  }
  
  nav li {
    width: 100%;
    text-align: center;
  }
  
  nav a {
    display: block;
    padding: 12px 15px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
  }
  
  nav a:hover, nav a.active {
    background-color: var(--accent);
    color: var(--navy);
  }

  nav li:first-child a {
    border-top: none;
  }
    
  nav li:last-child a {
    border-bottom: none;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
    
  .hero p {
    font-size: 1rem;
  }
  
  .categories-grid, .products-grid {
    grid-template-columns: 1fr;
  }
  
  /* МОБИЛЬНЫЕ СТИЛИ ДЛЯ КАРТОЧКИ ТОВАРА */
  .product-detail {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .product-detail-container {
    gap: 20px;
  }
  
  .product-detail-image,
  .product-detail-info {
    min-width: 100%;
    flex: 0 0 100%;
  }
  
  .product-info h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  
  .specs {
    padding: 15px;
    margin: 20px 0;
  }
  
  .specs h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }
  
  .spec-item {
    flex-direction: column;
    margin-bottom: 15px;
  }
  
  .spec-label {
    min-width: 100%;
    margin-bottom: 5px;
    font-size: 0.9rem;
  }
  
  .spec-value {
    font-size: 0.9rem;
  }
  
  .breadcrumbs {
    font-size: 0.8rem;
    margin-bottom: 15px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
  }

  header {
    padding: 10px 0;
  }
  
  main {
    padding: 20px 0;
  }
}

@media (max-width: 480px) {
  .product-detail {
    padding: 15px;
  }
  
  .product-info h2 {
    font-size: 1.3rem;
  }
  
  .specs {
    padding: 12px;
  }
  
  .spec-label,
  .spec-value {
    font-size: 0.85rem;
  }
  
  .container {
    width: 95%;
    padding: 0 10px;
  }
}

/* Utility classes */
.text-center {
  text-align: center;
}

.mb-30 {
  margin-bottom: 30px;
}