:root {
  --bg-light: #f9f9fb;
  --surface: #ffffff;
  --accent: #4f46e5;
  --accent-glow: #6366f1;
  --text-dark: #1e1e2f;
  --text-soft: #4b4b62;
  --shadow-sm: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 20px 30px -8px rgba(79, 70, 229, 0.12), 0 8px 15px -6px rgba(0,0,0,0.05);
  --border-radius-card: 24px;
  --border-radius-btn: 40px;
  --font-primary: 'Inter', 'Poppins', sans-serif;
  --transition: all 0.25s cubic-bezier(0.2, 0.9, 0.4, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.5;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ----- STICKY HEADER ----- */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  border-bottom: 1px solid rgba(0,0,0,0.02);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-dark);
  text-decoration: none;
}
.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 48px;
}
.nav-link {
  text-decoration: none;
  font-weight: 500;
  color: var(--text-dark);
  font-size: 1.05rem;
  transition: color 0.2s;
  position: relative;
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.mobile-menu-btn span {
  width: 100%;
  height: 2px;
  background: var(--text-dark);
  border-radius: 4px;
  transition: var(--transition);
}

/* ----- HERO CAROUSEL ----- */
.hero-section {
  margin-top: 8px;
  width: 100%;
}
.carousel-container {
  position: relative;
  width: 100%;
  height: clamp(400px, 65vh, 720px);
  overflow: hidden;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 20px 35px -10px rgba(0,0,0,0.1);
}
.carousel-slides {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease-in-out;
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  background-size: cover;
  background-position: center 30%;
  position: relative;
}
.carousel-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.1) 70%);
}
.slide-content {
  position: relative;
  z-index: 5;
  max-width: 600px;
  padding: 0 10%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  text-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.slide-content h2 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.slide-content p {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 32px;
}
.cta-button {
  display: inline-block;
  background: white;
  color: var(--text-dark);
  padding: 16px 40px;
  border-radius: var(--border-radius-btn);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: var(--transition);
  align-self: flex-start;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}
.cta-button:hover {
  background: var(--accent);
  color: white;
  transform: scale(1.02);
  box-shadow: 0 15px 30px -5px var(--accent-glow);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(4px);
  border: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  z-index: 20;
}
.carousel-arrow:hover {
  background: white;
  box-shadow: var(--shadow-hover);
  color: var(--accent);
}
.carousel-arrow.prev { left: 24px; }
.carousel-arrow.next { right: 24px; }

.carousel-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  z-index: 20;
}
.dot {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.5);
  border-radius: 20px;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.dot.active {
  background: white;
  width: 32px;
  box-shadow: 0 0 12px white;
}

/* ----- PRODUCTS SECTION ----- */
.products-section {
  padding: 80px 0 60px;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}
.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-soft);
  margin-top: 8px;
}
.view-all-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: var(--transition);
}
.view-all-link:hover {
  color: var(--accent-glow);
  transform: translateX(4px);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.view-all-container {
  text-align: center;
}
.view-all-btn {
  display: inline-block;
  padding: 16px 48px;
  background: var(--surface);
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: var(--border-radius-btn);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: var(--transition);
}
.view-all-btn:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* PRODUCT CARD */
.product-card {
  background: var(--surface);
  border-radius: var(--border-radius-card);
  padding: 20px 20px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.02);
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 0.6s forwards;
}
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}
.product-card:hover {
  transform: scale(1.01) translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(79,70,229,0.1);
}
.product-img {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  object-fit: cover;
  border-radius: 18px;
  background: #e2e8f0;
  margin-bottom: 18px;
  transition: var(--transition);
  cursor: pointer;
}
.product-card:hover .product-img {
  filter: brightness(1.02);
}
.product-name {
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 6px;
  line-height: 1.3;
}
.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.product-desc {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.5;
  flex: 1;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.quantity-selector button {
  background: #f0f2f7;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 40px;
  font-size: 1.4rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-dark);
}
.quantity-selector button:hover {
  background: var(--accent);
  color: white;
}
.quantity-selector span {
  min-width: 28px;
  text-align: center;
  font-weight: 600;
}

.whatsapp-btn {
  background: #25D366;
  color: white;
  border: none;
  padding: 14px 12px;
  border-radius: var(--border-radius-btn);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 6px 14px rgba(37, 211, 102, 0.3);
  width: 100%;
}
.whatsapp-btn:hover {
  background: #128C7E;
  box-shadow: 0 12px 22px -8px rgba(18, 140, 126, 0.4);
  transform: scale(1.01);
}

/* ----- FEATURES SECTION ----- */
.features-section {
  padding: 40px 0 80px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  background: var(--surface);
  padding: 40px 32px;
  border-radius: var(--border-radius-card);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.feature-card p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ----- NEWSLETTER SECTION ----- */
.newsletter-section {
  padding: 40px 0 80px;
}
.newsletter-card {
  background: linear-gradient(135deg, var(--accent), var(--accent-glow));
  padding: 60px 40px;
  border-radius: var(--border-radius-card);
  text-align: center;
  color: white;
  box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.3);
}
.newsletter-card h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.newsletter-card p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
}
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 16px 24px;
  border-radius: var(--border-radius-btn);
  border: none;
  font-size: 1rem;
  font-family: inherit;
}
.newsletter-form input:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}
.newsletter-form button {
  padding: 16px 32px;
  background: white;
  color: var(--accent);
  border: none;
  border-radius: var(--border-radius-btn);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}
.newsletter-form button:hover {
  background: var(--text-dark);
  color: white;
  transform: scale(1.02);
}

/* ----- FOOTER ----- */
.footer {
  background: white;
  padding: 56px 0 24px;
  margin-top: 40px;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -10px 30px -10px rgba(0,0,0,0.02);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-col h3, .footer-col h4 {
  margin-bottom: 20px;
  font-weight: 700;
}
.footer-col h3 span { color: var(--accent); }
.footer-col p { color: var(--text-soft); margin-bottom: 12px; }
.footer-col a {
  text-decoration: none;
  color: var(--text-soft);
  transition: var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.social-links {
  display: flex;
  gap: 24px;
  margin-top: 20px;
}
.social-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition);
}
.social-links a:hover {
  color: var(--accent);
}
.footer-bottom {
  text-align: center;
  margin-top: 56px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

/* ----- AUTH SECTION ----- */
.auth-section {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.auth-container {
  background: var(--surface);
  width: 100%;
  max-width: 420px;
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-sm);
  padding: 40px;
}

.auth-toggle {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  background: var(--bg-light);
  border-radius: 40px;
  padding: 6px;
}

.auth-tab {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: transparent;
  border-radius: 40px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  transition: var(--transition);
}

.auth-tab.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-form h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-subtitle {
  color: var(--text-soft);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: var(--font-primary);
  transition: var(--transition);
  background: var(--bg-light);
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group input::placeholder {
  color: #94a3b8;
}

.remember-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-soft);
  cursor: pointer;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.forgot-link {
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

.password-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: #94a3b8;
}

.auth-submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--border-radius-btn);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: var(--transition);
  margin-top: 12px;
}

.auth-submit-btn:hover {
  background: var(--accent-glow);
  transform: translateY(-2px);
}

.auth-footer-switch {
  text-align: center;
  margin-top: 24px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.switch-tab-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-primary);
}

.switch-tab-btn:hover {
  text-decoration: underline;
}

/* Toast */
.auth-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-dark);
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.auth-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.auth-toast.success {
  background: #10b981;
}

.auth-toast.error {
  background: #ef4444;
}

/* User Menu Dropdown */
.user-dropdown {
  position: relative;
}

.user-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
  padding: 8px 0;
  display: none;
  min-width: 140px;
}

.user-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.9rem;
}

.user-menu a:hover {
  background: var(--bg-light);
  color: var(--accent);
}

.user-dropdown.active .user-menu {
  display: block;
}

/* responsive */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .carousel-arrow { width: 44px; height: 44px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-title { font-size: 2.2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-card { padding: 40px 24px; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .carousel-arrow.prev { left: 12px; }
  .carousel-arrow.next { right: 12px; }
}