/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

:root {
  --primary-color: #f8c3d3;
  --secondary-color: #333;
  --accent-color: #ff6b98;
  --light-color: #fff;
  --dark-color: #222;
  --background-color: #f9f1f5;
}

body {
  background-color: var(--background-color);
}

/* Navigation Bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--dark-color);
  padding: 15px 5%;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--light-color);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--primary-color);
  margin-left: 5px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--light-color);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

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

.nav-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-icon {
  color: var(--light-color);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.3s;
}

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

.cart-icon {
  position: relative;
}

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

/* Hero Section */
.hero {
  height: 80vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('/images/hero-background.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--light-color);
  position: relative;
}

.hero-logo {
  margin-bottom: 20px;
}

.hero-logo img {
  width: 180px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 3px;
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 600px;
}

.cta-button {
  background-color: var(--primary-color);
  color: var(--dark-color);
  border: none;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
}

.cta-button:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

/* Categories Section */
.categories {
  display: flex;
  padding: 0;
  overflow: hidden;
}

.category {
  flex: 1;
  height: 300px;
  position: relative;
  overflow: hidden;
}

.category img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.category:hover img {
  transform: scale(1.05);
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.6));
  display: flex;
  justify-content: center;
  align-items: center;
}

.category-title {
  color: var(--light-color);
  font-size: 24px;
  font-weight: 600;
  text-align: center;
}

/* Featured Products Section */
.featured-products {
  padding: 60px 5%;
  text-align: center;
}

.section-title {
  font-size: 36px;
  margin-bottom: 40px;
  color: var(--secondary-color);
  position: relative;
  display: inline-block;
}

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

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 250px); /* Ensure columns are fixed width and auto-fit for proper centering */
  gap: 30px;
  justify-content: center; /* Center grid items along the row axis */
}

.product-card {
  background-color: var(--light-color);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-image {
  height: 250px;
  overflow: hidden;
}

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

.product-info {
  padding: 20px;
}

.product-name {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.product-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.add-to-cart {
  background-color: var(--primary-color);
  color: var(--dark-color);
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.add-to-cart:hover {
  background-color: var(--accent-color);
  color: var(--light-color);
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 40px 5%;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-column p,
.footer-column a {
  display: block;
  margin-bottom: 10px;
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  justify-content: center; /* Centers the group of icons horizontally */
}

.social-icon {
  color: var(--light-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #444;
  display: flex;
  align-items: center; /* Vertically centers content (the <i> tag) in the circle */
  justify-content: center; /* Horizontally centers content (the <i> tag) in the circle */
}

.social-icon i { /* Added base style for icon itself */
  transition: transform 0.3s;
  display: inline-block; /* Allows transform to work as expected */
}

.social-icon:hover i { /* Hover effect now targets the icon */
  transform: translateY(-2px);
}

/* Individual icon transform examples (adjust as needed) */

/* Facebook icon */
.social-links .social-icon:nth-child(1) i { /* Target <i> tag */
  transform: translateX(12px) translateY(12px); /* Adjust 0px values to move icon */
}

/* Instagram icon */
.social-links .social-icon:nth-child(2) i { /* Target <i> tag */
  transform: translateX(12px) translateY(12px); /* Adjust 0px values to move icon */
}

/* Twitter icon */
.social-links .social-icon:nth-child(3) i { /* Target <i> tag */
  transform: translateX(12px) translateY(12px); /* Adjust 0px values to move icon */
}

/* Pinterest icon */
.social-links .social-icon:nth-child(4) i { /* Target <i> tag */
  transform: translateX(12px) translateY(12px); /* Adjust 0px values to move icon */
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.newsletter-form input {
  padding: 12px;
  border: none;
  border-radius: 4px;
  background-color: #444;
  color: var(--light-color);
}

.newsletter-form input::placeholder {
  color: #aaa;
}

.newsletter-form button {
  padding: 12px;
  border: none;
  border-radius: 4px;
  background-color: var(--primary-color);
  color: var(--dark-color);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.newsletter-form button:hover {
  background-color: var(--accent-color);
  color: var(--light-color);
}

.footer-bottom {
  margin-top: 40px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

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

  .hero-subtitle {
    font-size: 18px;
  }

  .categories {
    flex-direction: column;
  }

  .category {
    height: 200px;
  }

  .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

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