:root {
  --primary-color: #c41e3a;
  --primary-dark: #a01729;
  --secondary-color: #f4d03f;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --border-color: #e0e0e0;
  --success-color: #27ae60;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  background: var(--primary-color);
  color: var(--white);
  padding: 8px 0;
  font-size: 14px;
}

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

.contact-info {
  display: flex;
  gap: 20px;
  align-items: center;
}

.contact-info a {
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

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

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

.logo {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

nav a:hover {
  color: var(--primary-color);
}

nav a.active {
  color: var(--primary-color);
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
}

.cart-icon {
  position: relative;
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--secondary-color);
  color: var(--text-dark);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-dark);
}

.hero {
  height: 600px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.8), rgba(160, 23, 41, 0.7));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 56px;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 22px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.btn {
  display: inline-block;
  padding: 15px 35px;
  background: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 42px;
  margin-bottom: 50px;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.product-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-info {
  padding: 20px;
}

.product-title {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.product-description {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 15px;
  line-height: 1.5;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
}

.add-to-cart-btn {
  padding: 10px 20px;
  font-size: 14px;
}

.features {
  background: var(--bg-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.feature-item {
  text-align: center;
  padding: 30px;
  background: var(--white);
  border-radius: 12px;
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  fill: var(--primary-color);
}

.feature-item h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.feature-item p {
  color: var(--text-light);
  line-height: 1.6;
}

footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 60px 0 20px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.footer-section p,
.footer-section a {
  color: #bdc3c7;
  text-decoration: none;
  line-height: 2;
  display: block;
}

.footer-section a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #95a5a6;
}

.cart-page {
  min-height: 60vh;
  padding: 40px 0;
}

.cart-container {
  max-width: 1000px;
  margin: 0 auto;
}

.cart-items {
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item-details h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.cart-item-details p {
  color: var(--text-light);
  margin-bottom: 15px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.quantity-btn {
  width: 35px;
  height: 35px;
  border: 1px solid var(--border-color);
  background: var(--white);
  cursor: pointer;
  border-radius: 5px;
  font-size: 18px;
  transition: var(--transition);
}

.quantity-btn:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.quantity {
  font-size: 18px;
  font-weight: bold;
  min-width: 30px;
  text-align: center;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

.item-price {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
}

.remove-btn {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  text-decoration: underline;
  font-size: 14px;
}

.remove-btn:hover {
  color: var(--primary-color);
}

.cart-summary {
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.summary-row.total {
  border-bottom: none;
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  padding-top: 20px;
}

.checkout-btn {
  width: 100%;
  margin-top: 20px;
  padding: 18px;
  font-size: 18px;
}

.empty-cart {
  text-align: center;
  padding: 60px 20px;
}

.empty-cart h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--text-light);
}

.product-detail {
  padding: 40px 0;
}

.product-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-gallery {
  position: sticky;
  top: 100px;
}

.main-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

.thumbnail-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.thumbnail {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.thumbnail:hover,
.thumbnail.active {
  border-color: var(--primary-color);
}

.product-detail-info h1 {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.product-detail-price {
  font-size: 42px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 30px;
}

.product-detail-description {
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.product-detail-actions {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.product-detail-actions .btn {
  flex: 1;
  text-align: center;
  padding: 18px;
  font-size: 18px;
}

.thank-you-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.thank-you-content {
  text-align: center;
  max-width: 600px;
  background: var(--white);
  padding: 60px 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.success-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 30px;
  fill: var(--success-color);
}

.thank-you-content h1 {
  font-size: 42px;
  margin-bottom: 20px;
  color: var(--success-color);
}

.thank-you-content p {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.8;
}

.order-number {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin: 30px 0;
  padding: 20px;
  background: var(--bg-light);
  border-radius: 8px;
}

.thank-you-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .header-top {
    font-size: 12px;
  }

  .header-top .container {
    flex-direction: column;
    gap: 8px;
  }

  .contact-info {
    flex-direction: column;
    gap: 5px;
  }

  nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: var(--white);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
  }

  nav.active {
    left: 0;
  }

  nav ul {
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 0;
  }

  nav li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  nav a {
    display: block;
    padding: 15px 0;
  }

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

  .hero {
    height: 400px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 32px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .product-gallery {
    position: static;
  }

  .main-image {
    height: 300px;
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 15px;
  }

  .cart-item-image {
    width: 80px;
    height: 80px;
  }

  .cart-item-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    margin-top: 15px;
  }

  .product-detail-actions {
    flex-direction: column;
  }

  .thank-you-actions {
    flex-direction: column;
  }

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