/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

/* Navigation Bar */
.navbar {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 1rem 5%;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #e63946;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #e63946;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1490300472339-79e4adc6be45?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 0 5%;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 800px;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: #e63946;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #d62828;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 5%;
}

/* Categories Section */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.category-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.category-content {
  padding: 1.5rem;
  text-align: center;
}

.category-content h3 {
  margin-bottom: 0.5rem;
}

/* Product List */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  text-decoration: none;
  color: #333;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.product-content {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.product-price {
  color: #e63946;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.product-rating {
  color: #fca311;
  margin-bottom: 1rem;
}

/* Product Detail Page */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.detail-gallery {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
}

.thumbnail-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
}

.thumbnail-img.active {
  border-color: #e63946;
}

.main-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 8px;
}

.detail-info h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.detail-price {
  font-size: 1.8rem;
  color: #e63946;
  font-weight: 700;
  margin-bottom: 1rem;
}

.detail-rating {
  color: #fca311;
  margin-bottom: 2rem;
}

.detail-description {
  margin-bottom: 2rem;
  line-height: 1.8;
}

.size-selector {
  margin-bottom: 2rem;
}

.size-selector h3 {
  margin-bottom: 1rem;
}

.size-options {
  display: flex;
  gap: 1rem;
}

.size-btn {
  padding: 0.5rem 1.2rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  transition: all 0.3s;
}

.size-btn:hover, .size-btn.active {
  background: #e63946;
  color: white;
  border-color: #e63946;
}

.add-to-cart {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: #e63946;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

.add-to-cart:hover {
  background: #d62828;
}

/* Footer */
.footer {
  background: #333;
  color: white;
  padding: 4rem 5%;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-col h3 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.8rem;
}

.footer-col a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid #444;
  color: #ccc;
}

/* About/Contact Pages */
.page-content {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.page-content h1 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: #333;
}

.page-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.contact-form {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
}

.form-group input, .form-group textarea {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

/* Cart Page */
.cart-items {
  background: white;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  margin-bottom: 2rem;
}

.cart-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 1.5rem;
  background: #f8f9fa;
  font-weight: 700;
}

.cart-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 1.5rem;
  border-top: 1px solid #eee;
  align-items: center;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 1rem;
}

.cart-item-details {
  display: flex;
  align-items: center;
}

.cart-summary {
  background: white;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  padding: 2rem;
  max-width: 400px;
  margin-left: auto;
}

.cart-summary h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.summary-total {
  font-weight: 700;
  font-size: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-links li {
    margin: 0.5rem 1rem;
  }
  
  .cart-header, .cart-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .detail-gallery {
    grid-template-columns: 1fr;
  }
  
  .thumbnail-img {
    width: 60px;
    height: 60px;
  }
  
  .thumbnail-container {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
  }
}