/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul { list-style: none; }
.hidden { display: none !important; }

/* ========== LAYOUT ========== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ========== NAV ========== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid #eee;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.nav-logo { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.5px; }
.nav-logo span { color: #5046e5; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 0.88rem; color: #555; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: #1a1a1a; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.currency-sel {
  padding: 6px 10px; border: 1px solid #ddd; border-radius: 6px;
  font-size: 0.8rem; color: #333; background: #fff; cursor: pointer;
}
.btn-link { font-size: 0.88rem; color: #5046e5; font-weight: 500; }
.hamburger { display: none; font-size: 1.4rem; color: #333; }

/* Auth */
.btn-login {
  padding: 8px 18px; background: #5046e5; color: #fff;
  border-radius: 6px; font-size: 0.82rem; font-weight: 600; transition: background 0.2s;
}
.btn-login:hover { background: #3f37c9; }
.user-avatar { position: relative; }
.user-avatar img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #eee; }
.user-menu { position: relative; }
.user-dropdown {
  position: absolute; top: 44px; right: 0; width: 220px;
  background: #fff; border: 1px solid #eee; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1); padding: 16px; z-index: 200;
}
.ud-name { font-weight: 600; font-size: 0.9rem; }
.ud-email { font-size: 0.78rem; color: #888; margin-bottom: 4px; }
.user-dropdown hr { border: none; border-top: 1px solid #eee; margin: 10px 0; }
.user-dropdown a, .user-dropdown button {
  display: block; width: 100%; text-align: left;
  padding: 6px 0; font-size: 0.85rem; color: #555; background: none; border: none;
}
.user-dropdown a:hover, .user-dropdown button:hover { color: #5046e5; }

/* Cart toggle */
.cart-toggle {
  position: relative; font-size: 1.1rem; padding: 6px 8px;
  background: none; color: #333;
}
.cart-count {
  position: absolute; top: 0; right: 0;
  background: #e53e3e; color: #fff;
  font-size: 0.6rem; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ========== AUTH MODAL ========== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center;
}
.modal {
  background: #fff; border-radius: 12px; padding: 36px; width: 100%; max-width: 400px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15); position: relative;
}
.modal-close {
  position: absolute; top: 14px; right: 16px;
  font-size: 1.1rem; color: #999; background: none;
}
.modal h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.modal-sub { font-size: 0.88rem; color: #666; margin-bottom: 24px; }
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px;
  font-size: 0.9rem; font-weight: 600; color: #333; background: #fff; transition: all 0.2s;
}
.btn-google:hover { background: #f9f9f9; border-color: #bbb; }
.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: #ccc; font-size: 0.8rem;
}
.divider::before, .divider::after { content: ''; flex: 1; border-top: 1px solid #eee; }
.input {
  width: 100%; padding: 11px 14px; border: 1px solid #ddd; border-radius: 8px;
  font-size: 0.88rem; margin-bottom: 12px; transition: border 0.2s; outline: none;
}
.input:focus { border-color: #5046e5; }
.modal-footer-text { font-size: 0.75rem; color: #999; margin-top: 16px; text-align: center; }
.modal-footer-text a { color: #5046e5; }

/* ========== CART DRAWER ========== */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 400; background: rgba(0,0,0,0.3);
}
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 90vw;
  background: #fff; z-index: 401; display: flex; flex-direction: column;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1); transform: translateX(100%);
  transition: transform 0.3s ease;
}
.cart-drawer.open { transform: translateX(0); }
.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px; border-bottom: 1px solid #eee;
}
.drawer-header h3 { font-size: 1.05rem; font-weight: 700; }
.drawer-close { font-size: 1.2rem; color: #999; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px; }
.cart-empty { text-align: center; padding: 40px 0; color: #999; }
.cart-empty p { margin-bottom: 16px; }
.drawer-footer { padding: 20px; border-top: 1px solid #eee; }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 0.95rem; margin-bottom: 10px; }
.cart-reassurance { font-size: 0.78rem; color: #888; margin-bottom: 14px; line-height: 1.5; }
.btn-block { width: 100%; text-align: center; }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }

.cart-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid #f5f5f5;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 0.88rem; font-weight: 600; }
.cart-item-price { font-size: 0.82rem; color: #666; margin-top: 2px; }
.cart-item-remove { font-size: 0.75rem; color: #e53e3e; font-weight: 500; padding: 4px 8px; }
.cart-item-remove:hover { text-decoration: underline; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 28px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; transition: all 0.2s;
}
.btn-primary { background: linear-gradient(135deg, #5046e5, #6c5ce7); color: #fff; box-shadow: 0 2px 8px rgba(80,70,229,0.25); }
.btn-primary:hover { background: linear-gradient(135deg, #3f37c9, #5046e5); box-shadow: 0 4px 16px rgba(80,70,229,0.35); transform: translateY(-1px); }
.btn-outline { border: 1px solid #ddd; color: #333; background: #fff; }
.btn-outline:hover { border-color: #999; }

/* ========== HERO ========== */
.hero {
  padding: 90px 0 70px; text-align: center;
  background: linear-gradient(168deg, #f8f7ff 0%, #eef2ff 40%, #e0e7ff 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -120px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(80,70,229,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700;
  letter-spacing: -0.5px; line-height: 1.25; margin-bottom: 14px; color: #111;
  animation: fadeUp 0.6s ease;
}
.hero p { font-size: 1.05rem; color: #666; max-width: 540px; margin: 0 auto 28px; animation: fadeUp 0.6s 0.1s ease both; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; animation: fadeUp 0.6s 0.2s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ========== TRUST BAR ========== */
.trust-bar { padding: 24px 0; border-bottom: 1px solid #f0f0f0; background: #fafafa; }
.trust-items { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: #666; font-weight: 500; }

/* ========== PRODUCT GRID ========== */
.products-section { padding: 60px 0; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px; flex-wrap: wrap; gap: 16px;
}
.section-head h2 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.3px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-btn {
  padding: 7px 16px; border-radius: 20px; font-size: 0.8rem; font-weight: 500;
  color: #555; border: 1px solid #e0e0e0; background: #fff; transition: all 0.2s;
}
.filter-btn:hover { border-color: #999; }
.filter-btn.active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }

.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px;
}
.product-card {
  border: 1px solid #eee; border-radius: 12px; overflow: hidden;
  background: #fff; transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.product-card:hover { box-shadow: 0 12px 36px rgba(80,70,229,0.1); transform: translateY(-4px); }
.card-thumb { aspect-ratio: 4/3; background: #f5f5f5; position: relative; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .card-thumb img { transform: scale(1.05); }
.card-tag {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 10px; background: #1a1a1a; color: #fff;
  font-size: 0.65rem; font-weight: 600; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px;
}
.card-badge-instant {
  position: absolute; bottom: 10px; right: 10px;
  padding: 3px 10px; background: #fff; color: #5046e5;
  font-size: 0.65rem; font-weight: 600; border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.card-body { padding: 16px; }
.card-cat { font-size: 0.72rem; color: #5046e5; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.card-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; color: #111; line-height: 1.35; }
.card-desc {
  font-size: 0.8rem; color: #888; margin-bottom: 14px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-bottom { display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 1.05rem; font-weight: 700; color: #111; }
.price .was { font-size: 0.8rem; color: #aaa; text-decoration: line-through; font-weight: 400; margin-left: 6px; }
.add-btn {
  padding: 8px 18px; background: #5046e5; color: #fff;
  font-size: 0.78rem; font-weight: 600; border-radius: 6px; transition: background 0.2s;
}
.add-btn:hover { background: #3f37c9; }
.add-btn.added { background: #16a34a; }

/* ========== FEATURES ========== */
.features { padding: 60px 0; background: #fafafa; border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; }
.features h2 { font-size: 1.4rem; font-weight: 700; text-align: center; margin-bottom: 36px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature-card { padding: 28px 24px; background: #fff; border: 1px solid #eee; border-radius: 10px; }
.feature-card .f-ico { font-size: 1.5rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; }
.feature-card p { font-size: 0.82rem; color: #777; line-height: 1.6; }

/* ========== FAQ ========== */
.faq { padding: 60px 0; }
.faq h2 { font-size: 1.4rem; font-weight: 700; text-align: center; margin-bottom: 32px; }
.faq-list { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1px solid #eee; border-radius: 8px; overflow: hidden; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 16px 20px; font-size: 0.9rem; font-weight: 600; color: #222; text-align: left; background: #fff; transition: background 0.2s;
}
.faq-q:hover { background: #fafafa; }
.faq-q .arrow { font-size: 1rem; color: #999; transition: transform 0.25s; }
.faq-item.open .arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a-inner { padding: 0 20px 16px; font-size: 0.85rem; color: #666; line-height: 1.7; }

/* ========== CTA BANNER ========== */
.cta-banner { padding: 60px 0; background: linear-gradient(135deg, #5046e5 0%, #6c5ce7 50%, #7c3aed 100%); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; top: -60px; left: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,0.06); }
.cta-banner::after { content: ''; position: absolute; bottom: -40px; right: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,0.04); }
.cta-banner h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; position: relative; }
.cta-banner p { font-size: 0.95rem; opacity: 0.85; margin-bottom: 24px; position: relative; }
.btn-white {
  background: #fff; color: #5046e5; padding: 12px 32px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 600; display: inline-flex; transition: all 0.2s;
  position: relative; box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }

/* ========== FOOTER ========== */
.footer { padding: 48px 0 24px; border-top: 1px solid #eee; color: #888; font-size: 0.82rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand p { margin-top: 10px; line-height: 1.6; }
.footer-col h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: #333; margin-bottom: 14px; font-weight: 600; }
.footer-col a { display: block; color: #888; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: #333; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px; border-top: 1px solid #eee; flex-wrap: wrap; gap: 12px;
}
.pay-icons { display: flex; gap: 8px; }
.pay-icons span { padding: 3px 8px; border: 1px solid #ddd; border-radius: 4px; font-size: 0.7rem; font-weight: 600; color: #666; }

/* ========== TOAST ========== */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  padding: 12px 24px; background: #1a1a1a; color: #fff; border-radius: 8px;
  font-size: 0.85rem; font-weight: 500; z-index: 600;
  animation: toast-in 0.3s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translateX(-50%) translateY(10px); } }

/* ========== CHECKOUT PAGE ========== */
.checkout-page { padding: 40px 0 80px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.checkout-summary h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 24px; }
.summary-item { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f0f0f0; font-size: 0.9rem; }
.summary-line { display: flex; justify-content: space-between; padding: 10px 0; font-size: 0.9rem; color: #555; }
.summary-total { font-size: 1.05rem; color: #111; border-top: 2px solid #111; margin-top: 8px; padding-top: 12px; }
.summary-reassurance { margin-top: 20px; padding: 16px; background: #f9fafb; border-radius: 8px; }
.summary-reassurance p { font-size: 0.82rem; color: #666; margin-bottom: 6px; }
.empty-note { color: #888; font-size: 0.9rem; }
.empty-note a { color: #5046e5; }

.checkout-payment h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.checkout-payment h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 12px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: #333; margin-bottom: 6px; }
.form-hint { font-size: 0.75rem; color: #999; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.payment-options { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.pay-option {
  flex: 1; min-width: 120px; padding: 10px 14px; border: 1px solid #ddd; border-radius: 8px;
  font-size: 0.8rem; font-weight: 500; text-align: center; transition: all 0.2s; background: #fff;
}
.pay-option:hover { border-color: #999; }
.pay-option.active { border-color: #5046e5; background: #f5f3ff; color: #5046e5; }

.btn-pay { margin-top: 20px; font-size: 1rem; padding: 14px; }
.pay-secure { font-size: 0.78rem; color: #999; text-align: center; margin-top: 10px; }

/* Razorpay payment badges */
.razorpay-info { margin: 8px 0 4px; }
.payment-methods-badge { display: flex; gap: 8px; flex-wrap: wrap; }
.payment-methods-badge .badge {
  padding: 8px 16px; border: 1px solid #e0e0e0; border-radius: 8px;
  font-size: 0.82rem; font-weight: 500; color: #444; background: #f9fafb;
}

/* Promo code */
.promo-group { margin-bottom: 16px; }
.promo-input-row { display: flex; gap: 8px; align-items: center; }
.promo-input-row .input { flex: 1; }
.btn-apply-promo { padding: 10px 20px; font-size: 0.82rem; white-space: nowrap; flex-shrink: 0; }
.promo-feedback { margin-top: 8px; font-size: 0.82rem; line-height: 1.5; padding: 8px 12px; border-radius: 6px; }
.promo-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.promo-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.promo-remove {
  background: none; border: none; color: #991b1b; font-size: 0.78rem;
  text-decoration: underline; cursor: pointer; margin-left: 8px; padding: 0;
}
.promo-discount-line { color: #059669; }
.promo-discount-line .discount-value { color: #059669; }
.promo-tag {
  display: inline-block; padding: 1px 8px; background: #e0e7ff; color: #3730a3;
  border-radius: 4px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.5px; margin-left: 4px;
}

/* ========== SUCCESS PAGE ========== */
.success-page { padding: 60px 0; }
.success-card { max-width: 600px; margin: 0 auto; text-align: center; }
.success-icon { font-size: 3rem; margin-bottom: 16px; }
.success-card h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.success-sub { font-size: 0.95rem; color: #666; margin-bottom: 32px; }
.success-order { text-align: left; margin-bottom: 28px; }
.order-meta { display: flex; justify-content: space-between; font-size: 0.82rem; color: #888; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #eee; }
.order-item { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.9rem; border-bottom: 1px solid #f5f5f5; }
.success-downloads { text-align: left; margin-bottom: 24px; }
.success-downloads h3 { font-size: 1rem; font-weight: 600; margin-bottom: 12px; }
.download-btn {
  display: block; padding: 12px 16px; border: 1px solid #ddd; border-radius: 8px;
  font-size: 0.88rem; font-weight: 500; color: #5046e5; margin-bottom: 8px; transition: background 0.2s; text-align: left;
}
.download-btn:hover { background: #f5f3ff; }
.dl-note { font-size: 0.75rem; color: #999; margin-top: 8px; }
.success-email-note { padding: 16px; background: #f9fafb; border-radius: 8px; margin-bottom: 24px; text-align: left; }
.success-email-note p { font-size: 0.85rem; color: #555; }
.success-email-note .hint { font-size: 0.78rem; color: #999; margin-top: 4px; }
.success-email-note a { color: #5046e5; }
.success-actions { margin-top: 8px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 60px; left: 0; right: 0; background: #fff; border-bottom: 1px solid #eee;
    padding: 16px 20px; gap: 14px;
  }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 50px 0 40px; }
  .checkout-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-items { gap: 16px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .payment-options { flex-direction: column; }
}
