:root {
  --primary-color: #e63946;
  --secondary-color: #457b9d;
  --accent-color: #f1c40f;
  --dark-color: #1d3557;
  --light-color: #f1faee;
  --grey-color: #a8dadc;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --error-color: #e74c3c;
  --text-color: #333;
  --text-light: #666;
  --body-font: 'Poppins', sans-serif;
  --heading-font: 'Montserrat', sans-serif;
  --transition: all 0.3s ease;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
}

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

body {
  font-family: var(--body-font);
  color: var(--text-color);
  line-height: 1.6;
  background-color: #fff;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--dark-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, .btn {
  cursor: pointer;
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  text-align: center;
}

button:hover, .btn:hover {
  background: #d62c3a;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 1rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
  width: auto;
}

.logo h1 {
  font-size: 1.8rem;
  margin-left: 1rem;
  margin-bottom: 0;
  color: var(--primary-color);
}

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

.nav-list {
  display: flex;
  margin-right: 2rem;
}

.nav-item {
  margin-left: 2rem;
}

.nav-link {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-color);
  position: relative;
}

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

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.cart-icon {
  position: relative;
  font-size: 1.5rem;
  color: var(--dark-color);
}

.cart-count {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: var(--primary-color);
  color: white;
  font-size: 0.75rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/1.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 8rem 0;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 3rem;
  color: white;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero .btn {
  margin: 0 0.5rem;
}

/* Features Section */
.features {
  padding: 5rem 0;
  background-color: var(--light-color);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

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

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

.feature-item {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.feature-text {
  color: var(--text-light);
}

/* About Section */
.about {
  padding: 5rem 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-text {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Products Section */
.products {
  padding: 5rem 0;
  background-color: #f9f9f9;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

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

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

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

.product-body {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.product-desc {
  color: var(--text-light);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.product-actions {
  display: flex;
  gap: 1rem;
}

.btn-add-to-cart {
  flex: 1;
  background-color: var(--dark-color);
}

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

.btn-buy-now {
  flex: 1;
}

/* Single Product Page */
.product-page {
  padding: 5rem 0;
}

.product-page-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

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

.product-gallery img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.product-details h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.product-details .product-price {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

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

.product-meta {
  margin-bottom: 2rem;
}

.meta-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.meta-label {
  font-weight: 600;
  width: 120px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.quantity-selector button {
  background-color: var(--grey-color);
  color: var(--dark-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.quantity-selector input {
  width: 60px;
  height: 40px;
  text-align: center;
  margin: 0 0.5rem;
  border: 2px solid var(--grey-color);
  border-radius: 4px;
}

.product-buttons {
  display: flex;
  gap: 1rem;
}

.product-buttons .btn {
  flex: 1;
}

/* Cart Page */
.cart-page {
  padding: 5rem 0;
}

.cart-empty {
  text-align: center;
  padding: 3rem;
  background-color: var(--light-color);
  border-radius: var(--border-radius);
}

.cart-empty i {
  font-size: 4rem;
  color: var(--grey-color);
  margin-bottom: 1rem;
}

.cart-empty h3 {
  margin-bottom: 1.5rem;
}

.cart-items {
  margin-bottom: 3rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.cart-item-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
}

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

.cart-item-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.cart-item-price {
  font-weight: 600;
  color: var(--primary-color);
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 2rem;
}

.cart-item-quantity button {
  background-color: var(--grey-color);
  color: var(--dark-color);
  width: 30px;
  height: 30px;
  font-size: 1rem;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cart-item-quantity input {
  width: 40px;
  height: 30px;
  text-align: center;
  border: 2px solid var(--grey-color);
  border-radius: 4px;
}

.cart-item-remove {
  color: var(--error-color);
  cursor: pointer;
  margin-left: 1rem;
}

.cart-summary {
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: var(--border-radius);
}

.cart-summary-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #ddd;
}

.cart-summary-item:last-child {
  border-bottom: none;
  font-size: 1.2rem;
  font-weight: 700;
  padding-top: 1.5rem;
}

.cart-summary .btn {
  width: 100%;
  margin-top: 1.5rem;
}

/* Checkout Page */
.checkout-page {
  padding: 5rem 0;
}

.checkout-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.checkout-form {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.checkout-summary {
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  position: sticky;
  top: 100px;
}

.checkout-summary h3 {
  margin-bottom: 2rem;
}

.checkout-items {
  margin-bottom: 1.5rem;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.checkout-item-title {
  font-weight: 600;
}

.checkout-totals {
  margin-top: 1.5rem;
  border-top: 1px solid #ddd;
  padding-top: 1.5rem;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.checkout-total-row:last-child {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 1rem;
}

.btn-order {
  width: 100%;
  margin-top: 2rem;
}

/* Success Page */
.success-page {
  padding: 8rem 0;
  text-align: center;
}

.success-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.success-icon {
  font-size: 5rem;
  color: var(--success-color);
  margin-bottom: 2rem;
}

.success-message h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.success-actions {
  margin-top: 2.5rem;
}

.success-actions .btn {
  margin: 0 0.5rem;
}

/* About Us Page */
.about-page {
  padding: 5rem 0;
}

.about-hero {
  text-align: center;
  margin-bottom: 4rem;
}

.about-hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-hero p {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-light);
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--grey-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -12px;
  background-color: white;
  border: 4px solid var(--primary-color);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(even)::after {
  left: -12px;
}

.timeline-content {
  padding: 20px 30px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.timeline-date {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.team {
  padding: 4rem 0;
}

.team-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.team-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.team-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.team-info {
  padding: 1.5rem;
}

.team-name {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.team-position {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.team-bio {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.team-social a {
  color: var(--text-light);
  font-size: 1.2rem;
  transition: var(--transition);
}

.team-social a:hover {
  color: var(--primary-color);
}

.testimonials {
  padding: 4rem 0;
  background-color: var(--light-color);
}

.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 4rem;
  line-height: 1;
  color: var(--primary-color);
  opacity: 0.2;
}

.testimonial-text {
  margin-bottom: 1.5rem;
  font-style: italic;
  color: var(--text-light);
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.testimonial-position {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Contact Page */
.contact-page {
  padding: 5rem 0;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info {
  background-color: var(--light-color);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-title {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  border-radius: 50%;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 1rem;
  font-size: 1.2rem;
}

.contact-text strong {
  display: block;
  margin-bottom: 0.25rem;
}

.contact-social {
  margin-top: 2.5rem;
}

.contact-social h4 {
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: var(--dark-color);
  border-radius: 50%;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

.contact-form-container {
  background-color: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-form h3 {
  margin-bottom: 2rem;
}

.contact-form button {
  margin-top: 1rem;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  padding: 4rem 0 2rem;
  color: white;
}

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

.footer-item h4 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-item h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #ccc;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  margin-bottom: 1rem;
}

.footer-contact i {
  color: var(--primary-color);
  margin-right: 1rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  transition: var(--transition);
}

.footer-social a:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

.footer-newsletter p {
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-size: 1rem;
}

.newsletter-form button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  padding: 0 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background-color: #d62c3a;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: white;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-text {
  margin-right: 2rem;
}

.cookie-text p {
  margin-bottom: 0.5rem;
}

.cookie-text a {
  color: var(--primary-color);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-cookie {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-accept {
  background-color: var(--success-color);
}

.btn-customize {
  background-color: var(--grey-color);
  color: var(--dark-color);
}

.btn-decline {
  background-color: var(--text-light);
}

/* Responsive styles */
@media (max-width: 992px) {
  .about-content,
  .product-page-container,
  .checkout-container,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav-list {
    margin-right: 1rem;
  }

  .nav-item {
    margin-left: 1rem;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -300px;
    height: 100vh;
    width: 250px;
    background-color: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 1001;
  }

  .nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    margin-right: 0;
    margin-bottom: 2rem;
  }

  .nav-item {
    margin: 0;
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
  }

  .cart-icon {
    margin-left: 0;
  }

  .close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .hero h2 {
    font-size: 2.5rem;
  }

  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-item::after {
    left: 18px;
  }

  .timeline-item:nth-child(even)::after {
    left: 18px;
  }

  .cookie-consent {
    flex-direction: column;
  }

  .cookie-text {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .products-grid,
  .features-container,
  .testimonials-container,
  .team-container {
    grid-template-columns: 1fr;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .feature-item,
  .product-card,
  .testimonial-card,
  .team-card {
    max-width: 350px;
    margin: 0 auto;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .product-buttons,
  .cart-item,
  .cart-item-quantity,
  .newsletter-form {
    flex-direction: column;
  }

  .product-buttons .btn,
  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .cart-item-img {
    display: none;
  }

  .cart-item-quantity {
    margin: 1rem 0;
  }
}
