/* Product Page Styles */

/* Navigation Styling for Product Page */
.navbar {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #2c3e50;
  font-weight: 700;
  font-size: 1.2rem;
}

/* Product Page Cart Icon Styling */
.nav-header .cart-link {
  background: #34495e;
  color: white !important;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  text-decoration: none;
  margin-left: 2rem; /* Add separation from logo */
  box-shadow: 0 3px 12px rgba(52, 73, 94, 0.2);
}

.nav-header .cart-link:hover {
  background: #2c3e50;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(52, 73, 94, 0.3);
}

.nav-header .cart-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #ecf0f1;
}

.nav-header #cartCount {
  font-weight: 700;
  background: #e74c3c;
  color: white;
  border-radius: 50%;
  min-width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
}

.nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

/* Product Detail Layout */
.product-detail {
  max-width: 1200px;
  margin: 6rem auto 2rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.product-image-section {
  display: flex;
  justify-content: center;
}
.product-main-img {
  width: 100%;
  max-width: 500px;
  height: 450px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 6px 30px rgba(39, 174, 96, 0.15);
  background: linear-gradient(135deg, #f8faf5 0%, #e8f5e8 100%);
  padding: 1.5rem;
  transition: transform 0.1s ease;
  border: 3px solid #e1e8e3;
}
.product-main-img:hover {
  transform: scale(1.01);
  border-color: #27ae60;
}
.product-info-section {
  padding: 1rem 0;
}
.product-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.product-price {
  font-size: 2rem;
  font-weight: 700;
  color: #27ae60;
  margin-bottom: 1.5rem;
}
.product-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 2rem;
  background: #f8faf5;
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid #27ae60;
}
.product-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}
.add-to-cart-btn {
  background: #27ae60;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
  flex: 1;
}
.add-to-cart-btn:hover {
  background: #219150;
}
.whatsapp-btn {
  background: #25d366;
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.3s;
  text-align: center;
  flex: 1;
}
.whatsapp-btn:hover {
  background: #20b858;
}
.back-link {
  display: inline-flex;
  align-items: center;
  background: #f8faf5;
  color: #27ae60;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  border: 1px solid #27ae60;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  cursor: pointer;
}
.back-link:hover {
  background: #27ae60;
  color: white;
}
.back-link:active {
  transform: scale(0.98);
}
.product-features {
  background: #f8faf5;
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 2rem;
}
.product-features h3 {
  color: #27ae60;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}
.product-features ul {
  list-style: none;
  padding: 0;
}
.product-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e1e8e3;
}
.product-features li:last-child {
  border-bottom: none;
}
.product-features li:before {
  content: "✓";
  color: #27ae60;
  font-weight: bold;
  margin-right: 0.5rem;
}
@media (max-width: 768px) {
  .nav-header {
    padding: 0 1rem;
  }
  
  .nav-brand {
    font-size: 1rem;
  }
  
  .nav-logo {
    width: 35px;
    height: 35px;
  }
  
  .nav-header {
    padding: 0 1rem;
    gap: 1rem;
  }
  
  .nav-header .cart-link {
    padding: 0.5rem 1rem;
    gap: 0.4rem;
    margin-left: 1rem; /* Reduced separation for mobile */
    border-radius: 10px;
  }
  
  .nav-header .cart-icon {
    width: 20px;
    height: 20px;
  }
  
  .nav-header #cartCount {
    min-width: 20px;
    height: 20px;
    font-size: 0.75rem;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 5rem auto 1rem auto;
    padding: 0 1rem;
  }
  .product-title {
    font-size: 1.8rem;
  }
  .product-price {
    font-size: 1.6rem;
  }
  .product-actions {
    flex-direction: column;
  }
  .back-link {
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* Cart Popup Styles */
.cart-popup {
  display: none;
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: #27ae60;
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(39, 174, 96, 0.18);
  font-size: 1rem;
  z-index: 99999;
  transition: opacity 0.3s;
}
