/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #ff3f6c;
  --secondary-color: #3e4152;
  --accent-color: #535766;
  --background-color: #ffffff;
  --text-color: #282c3f;
  --sale-color: #ff3f6c;
  --gray-light: #f5f5f6;
  --gray-medium: #eaeaec;
  --success-color: #03a685;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

/* Navigation Styles */
nav {
  background-color: var(--background-color);
  padding: 0.8rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
  text-decoration: none;
}

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

.cart-icon {
  position: relative;
  margin-left: 1rem;
}

.cart-icon a {
  color: var(--text-color);
  font-size: 1.5rem;
}

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

/* Main Content Styles */
main {
  margin-top: 100px;
  padding: 2rem;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

section {
  display: none;
  padding: 2rem 0;
}

.active-section {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Featured Banner */
.featured-banner {
  background: linear-gradient(45deg, #ff3f6c, #ff7eb3);
  color: white;
  padding: 3rem;
  border-radius: 12px;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.featured-banner h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.sale-tag {
  font-size: 1.5rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 2rem;
  border-radius: 30px;
  display: inline-block;
}

/* Product Grid Styles */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

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

.sale-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--sale-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  z-index: 1;
}

.product-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem;
  background: white;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.product-price {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.original-price {
  color: #94969f;
  text-decoration: line-through;
  font-size: 0.9rem;
}

.sale-price {
  color: var(--text-color);
  font-weight: 700;
  font-size: 1.2rem;
}

.add-to-cart {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.add-to-cart:hover {
  background-color: #e6375f;
  transform: translateY(-2px);
}

/* Cart Styles */
.cart-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cart-items {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cart-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 2rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-medium);
  align-items: center;
}

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

.cart-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quantity-btn {
  background-color: var(--gray-light);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-color);
  transition: all 0.2s ease;
}

.quantity-btn:hover {
  background-color: var(--gray-medium);
}

.quantity-display {
  font-weight: 600;
  min-width: 30px;
  text-align: center;
}

.remove-item {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.remove-item:hover {
  opacity: 1;
}

.cart-summary {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 100px;
}

.cart-summary h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin: 1rem 0;
  font-size: 1rem;
  color: var(--accent-color);
}

.total {
  border-top: 2px solid var(--gray-medium);
  padding-top: 1rem;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-color);
}

.checkout-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 8px;
  width: 100%;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1.5rem;
  letter-spacing: 0.5px;
}

.checkout-btn:hover {
  background-color: #e6375f;
  transform: translateY(-2px);
}

/* Footer Styles */
footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 4rem 2rem 2rem;
  margin-top: 6rem;
}

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

.footer-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.footer-section .link{
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
}

/*--------------------HOVER ADD ------------------------------------------*/

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

.social-links a {
  color: white;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

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

/* Responsive Design */
@media (max-width: 768px) {
  nav {
    padding: 1rem;
    height: auto;
    flex-direction: column;
  }

  .nav-links {
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .cart-container {
    grid-template-columns: 1fr;
  }

  .featured-banner {
    padding: 2rem;
  }

  .featured-banner h2 {
    font-size: 2rem;
  }

  .cart-item {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }

  .cart-item img {
    margin: 0 auto;
  }

  .quantity-controls {
    justify-content: center;
  }
}

/* Animation for Added to Cart */
@keyframes addedToCart {
  0% { transform: scale(1); }
  50% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.added-animation {
  animation: addedToCart 0.3s ease;
}