@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background: #fffbe6; color: #2d2137; line-height: 1.6; }

/* ANIMATIONS */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* HEADER */
.header { background: #fffbe6; padding: 1rem 2rem; box-shadow: 0 2px 8px rgba(218, 165, 32, 0.08); position: sticky; top: 0; z-index: 1000; }
.header-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.logo { text-decoration: none; display: flex; align-items: center; gap: 0.5rem; }
.logo-img { height: 50px; width: auto; max-width: 200px; transition: transform 0.3s ease; }
.logo:hover .logo-img { transform: scale(1.05); }
.nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav a {
  text-decoration: none;
  color: #bfa14a;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: #bfa14a;
  transition: width 0.3s ease;
}
.nav a:hover::after { width: 100%; }
.cart-link { position: relative; }
.cart-badge {
  background: #bfa14a;
  color: #fff;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  margin-left: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 1.5em;
  min-height: 1.5em;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(218, 165, 32, 0.08);
}
.cart-badge:empty {
  /* removed, now handled by .active class */
.cart-badge.active {
.buy-btn {
  background: linear-gradient(90deg,#bfa14a,#ffe066) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(218, 165, 32, 0.12);
}
.buy-btn:hover {
  background: linear-gradient(90deg,#ffe066,#bfa14a) !important;
}
  display: inline-flex;
}
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: #bfa14a;
  z-index: 1101;
}
.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background: #333;
  margin: 5px 0;
  transition: all 0.3s ease;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
.cart-badge {
  background: #da70d6;
  color: white;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  margin-left: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 1.5em;
  min-height: 1.5em;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}
.cart-badge.active {
  display: inline-flex !important;
}
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* MAIN CONTENT */
main { max-width: 1200px; margin: 0 auto; padding: 2rem; min-height: calc(100vh - 100px); }

/* HOME PAGE */
.image-banner { width: 100%; max-height: 500px; overflow: hidden; margin-bottom: 2rem; animation: slideDown 0.5s ease; }
.image-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero { text-align: center; padding: 3rem 2rem; background: linear-gradient(135deg, #fef5fb 0%, #fff8f0 100%); border-radius: 8px; margin-bottom: 3rem; animation: slideDown 0.6s ease; }
.hero h1 { font-size: 2.8rem; color: #da70d6; margin: 1rem 0; }
.hero p { font-size: 1.1rem; color: #666; margin-bottom: 2rem; }
.cta-button { background: #da70d6; color: white; padding: 0.8rem 2rem; border: none; border-radius: 25px; font-size: 1rem; cursor: pointer; transition: all 0.3s ease; text-decoration: none; display: inline-block; }
.cta-button:hover { background: #c85bc0; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(218, 112, 214, 0.3); }

/* HERO BANNER */
.hero-banner { max-width: 100%; margin: 0 auto 3rem; height: 600px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; animation: slideDown 0.7s ease; }
.hero-banner-image { width: 100%; height: 100%; overflow: hidden; }
.hero-banner-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-banner-content { background: linear-gradient(135deg, #2a1a3a 0%, #1a0f2e 100%); color: white; padding: 4rem 3rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.5rem; position: relative; overflow: hidden; }
.hero-banner-content::before { content: ''; position: absolute; top: -50%; right: -50%; width: 600px; height: 600px; background: rgba(218, 112, 214, 0.05); border-radius: 50%; filter: blur(100px); }
.hero-banner-subtitle { font-size: 1.2rem; font-weight: 500; margin: 0; display: flex; gap: 0.5rem; align-items: center; }
.heart { color: #ff1744; font-size: 1.4rem; animation: pulse 1.5s ease-in-out infinite; }
.hero-banner-title { font-size: 3.5rem; margin: 0; font-weight: 700; line-height: 1.1; position: relative; z-index: 1; }
.hero-banner-offer { margin-top: 1rem; gap: 0; }
.offer-tagline { font-size: 0.9rem; letter-spacing: 2px; color: #ccc; margin: 0; }
.offer-discount { font-size: 3rem; font-weight: 800; color: #ffd700; margin: 0; display: flex; align-items: baseline; gap: 0.5rem; }
.offer-discount span { font-size: 1.5rem; color: white; }
.offer-text { font-size: 1.1rem; font-weight: 600; color: white; margin: 0.5rem 0 0; }
.offer-note { font-size: 0.85rem; color: #999; margin: 0.5rem 0 0; }
.hero-banner-btn { display: inline-block; background: #ff1744; color: white; padding: 1rem 2.5rem; border: none; border-radius: 4px; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: all 0.3s ease; margin-top: 1rem; letter-spacing: 1px; position: relative; z-index: 1; }
.hero-banner-btn:hover { background: #e20442; transform: translateY(-3px); box-shadow: 0 10px 30px rgba(255, 23, 68, 0.3); }

/* FAQ SECTION */
.faq-container { max-width: 1200px; margin: 0 auto 3rem; padding: 0 1rem; }
.faq-wrapper { background: white; border-radius: 12px; padding: 3rem 2rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); }
.faq-title { font-size: 2rem; color: #222; margin-bottom: 2rem; text-align: left; }
.faq-list { display: grid; gap: 1rem; }
.faq-item { border: 1px solid #eee; border-radius: 8px; overflow: hidden; }
.faq-question { width: 100%; background: white; border: none; padding: 1.25rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 1rem; font-weight: 500; color: #333; transition: background 0.2s ease; }
.faq-question:hover { background: #f8f8f8; }
.faq-toggle { font-size: 1.5rem; font-weight: 300; color: #da70d6; }
.faq-answer { display: none; padding: 1rem 1.25rem; background: #fafafa; color: #666; border-top: 1px solid #eee; line-height: 1.6; }

/* PRODUCTS PAGE */
.products-header { text-align: center; margin-bottom: 2rem; }
.products-header h1 { font-size: 2.5rem; color: #da70d6; margin-bottom: 0.5rem; }
.products-header p { color: #666; font-size: 1.1rem; }
.products-title {
  color: #FFD700;
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 10px;
}
.products-filter { display: flex; gap: 1rem; justify-content: center; margin-bottom: 2rem; flex-wrap: wrap; }
.filter-btn { text-decoration: none; padding: 0.6rem 1.2rem; border: 2px solid #eee; border-radius: 25px; background: white; color: #333; font-weight: 500; cursor: pointer; transition: all 0.3s ease; }
.filter-btn:hover { border-color: #da70d6; color: #da70d6; }
.filter-btn.active { border-color: #da70d6; background: #da70d6; color: white; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.product-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); transition: all 0.3s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); }
.product-image {
  width: 100%;
  /* maintain square ratio rather than fixed height so cards align nicely on small screens */
  position: relative;
  padding-bottom: 100%;
  overflow: hidden;
}
.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* keep footer at bottom */
}
.product-info h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.product-rating { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.75rem; }
.stars { color: #ffc107; font-size: 0.9rem; }
.rating-value { font-weight: 700; color: #333; }
.reviews { color: #999; font-size: 0.85rem; }
.product-description { color: #666; font-size: 0.9rem; margin-bottom: 1rem; line-height: 1.5; }
.product-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.price { font-size: 1.3rem; font-weight: 700; color: #da70d6; }
.add-btn {
  background: #da70d6;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-right: 0.5rem;
}
.add-btn:hover { background: #c85bc0; transform: scale(1.05); }
.buy-btn {
  background: #27ae60;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-right: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(39,174,96,0.08);
  display: inline-block;
}
}
.buy-btn:hover {
  background: #219150;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(39,174,96,0.18);
}

/* CART PAGE */
.cart-container h2 { margin-bottom: 2rem; color: #333; }
.empty-cart { text-align: center; padding: 3rem; }
.empty-icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-message { font-size: 1.5rem; color: #333; margin-bottom: 0.5rem; }
.empty-subtext { color: #666; margin-bottom: 2rem; }
.continue-shopping-btn { background: #da70d6; color: white; padding: 0.8rem 2rem; text-decoration: none; border-radius: 6px; display: inline-block; }
.cart-content { display: flex; gap: 2rem; }
.cart-items-section { flex: 2; }
.cart-items { background: white; border-radius: 8px; }
.cart-item { display: flex; gap: 1.5rem; align-items: center; padding: 1.5rem; border-bottom: 1px solid #eee; }
.item-image { width: 100px; }
.item-image img { width: 100%; height: 100px; object-fit: cover; border-radius: 6px; }
.item-details { flex: 1; }
.item-details h4 { margin-bottom: 0.25rem; }
.item-type { color: #999; font-size: 0.9rem; margin-bottom: 0.25rem; }
.item-quantity { display: flex; gap: 0.5rem; align-items: center; }
.qty-btn { padding: 0.3rem 0.6rem; border: 1px solid #ddd; background: white; cursor: pointer; border-radius: 4px; font-weight: 700; }
.qty-btn:hover { border-color: #da70d6; color: #da70d6; }
.qty-value { padding: 0 0.5rem; }
.item-subtotal { font-weight: 700; }
.remove-btn { background: none; border: none; color: #999; cursor: pointer; font-size: 1.2rem; }
.remove-btn:hover { color: #da70d6; }
.coupon-section { background: white; padding: 1.5rem; border-radius: 8px; margin-top: 1rem; }
.coupon-input-group { display: flex; gap: 0.5rem; margin: 1rem 0; }
.coupon-input { flex: 1; padding: 0.6rem; border: 1px solid #ddd; border-radius: 6px; }
.coupon-btn { background: #da70d6; color: white; padding: 0.6rem 1.2rem; border: none; border-radius: 6px; cursor: pointer; }
.coupon-hint { font-size: 0.85rem; color: #999; }
.cart-summary-section { flex: 1; background: white; padding: 1.5rem; border-radius: 8px; height: fit-content; }
.cart-summary-section h3 { margin-bottom: 1.5rem; }
.summary-box { display: flex; flex-direction: column; gap: 0.75rem; }
.summary-row { display: flex; justify-content: space-between; }
.summary-row.discount { color: #27ae60; }
.summary-row.total { border-top: 2px solid #eee; padding-top: 0.75rem; font-weight: 700; font-size: 1.2rem; }
.free { color: #27ae60; }
.free-shipping-hint { font-size: 0.85rem; color: #da70d6; margin-top: 0.5rem; }
.action-buttons { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.checkout-btn { background: #da70d6; color: white; padding: 0.8rem 1.5rem; text-decoration: none; border-radius: 6px; text-align: center; font-weight: 600; }
.continue-shopping-link { background: none; border: 2px solid #da70d6; color: #da70d6; padding: 0.6rem 1.5rem; text-decoration: none; border-radius: 6px; text-align: center; }
.cart-info { margin-top: 1.5rem; font-size: 0.9rem; color: #666; }
.cart-info p { margin-bottom: 0.5rem; }

/* CHECKOUT PAGE */
.checkout-wrapper { display: flex; gap: 2rem; }
.checkout-form-section { flex: 2; background: white; padding: 2rem; border-radius: 8px; }
.form-step { margin-bottom: 2rem; }
.form-step h3 { margin-bottom: 1.5rem; color: #333; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-group input { width: 100%; padding: 0.75rem; border: 1px solid #ddd; border-radius: 6px; }
.form-buttons { display: flex; gap: 1rem; margin-top: 2rem; }
.btn-primary, .btn-secondary { padding: 0.8rem 2rem; border-radius: 6px; font-weight: 600; cursor: pointer; border: none; }
.btn-primary { background: #da70d6; color: white; }
.btn-primary:hover:not(:disabled) { background: #c85bc0; }
.btn-secondary { background: white; border: 2px solid #da70d6; color: #da70d6; }
.btn-pay { background: #27ae60; color: white; }
.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.payment-method-item { display: flex; align-items: center; gap: 0.75rem; padding: 1rem; background: #f8f8f8; border-radius: 6px; font-size: 0.95rem; }
.security-info { display: flex; gap: 0.75rem; align-items: center; padding: 1rem; background: #e8f5e9; border-radius: 6px; margin-top: 1.5rem; }
.order-summary-section { flex: 1; background: white; padding: 2rem; border-radius: 8px; height: fit-content; }
.order-summary h3 { margin-bottom: 1.5rem; }
.summary-items { margin-bottom: 1rem; }
.summary-item { display: flex; justify-content: space-between; padding: 0.75rem 0; }
.item-info { display: flex; gap: 1.5rem; }
.item-qty { color: #999; }
.summary-divider { border-bottom: 1px solid #eee; margin: 1rem 0; }
.summary-details { margin-bottom: 1rem; }
.detail-row { display: flex; justify-content: space-between; padding: 0.5rem 0; }
.summary-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.2rem; padding: 0.75rem 0; }
.total-amount { color: #da70d6; }
.trust-badges { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.5rem; }
.badge { background: #f0f0f0; padding: 0.5rem; border-radius: 4px; font-size: 0.85rem; text-align: center; }

/* NOTIFICATIONS */
.notification { position: fixed; right: 20px; top: 20px; background: #222; color: white; padding: 0.8rem 1.2rem; border-radius: 6px; opacity: 0; transition: opacity 0.2s ease; z-index: 1001; }
.notification.active { opacity: 1; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-banner { grid-template-columns: 1fr; height: auto; }
  .hero-banner-image { display: none; }
  .hero-banner-content { padding: 2.5rem 1.5rem; }
  .hero-banner-title { font-size: 2.2rem; }
  .offer-discount { font-size: 2rem; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
  .cart-content { flex-direction: column; }
  .cart-summary-section { width: 100%; }
  .checkout-wrapper { flex-direction: column; }
  .order-summary-section { width: 100%; }
  .nav {
    position: absolute;
    top: 70px;
    right: 20px;
    background: #fff;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border-radius: 10px;
    min-width: 160px;
    display: none;
    z-index: 1100;
    padding: 0.5rem 0;
    align-items: stretch;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.1rem;
    color: #333;
  }
  .nav a:last-child {
    border-bottom: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  /* tighter filter buttons on mobile so they wrap cleanly */
  .filter-btn { padding: 0.5rem 1rem; font-size: 0.9rem; }
}
