/* ============================================
   iPaint 3.0 - White Theme E-commerce
   Inspired by Shopee, Amazon, modern marketplaces
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   Variables
   ============================================ */
:root {
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;

  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-200: #e9d5ff;
  --purple-300: #d8b4fe;
  --purple-400: #a78bfa;
  --purple-500: #7c3aed;
  --purple-600: #6d28d9;
  --purple-700: #5b21b6;

  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-200: #fed7aa;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;

  --blue-50: #f0f9ff;
  --blue-500: #0ea5e9;
  --blue-600: #0284c7;

  --green-50: #f0fdf4;
  --green-500: #22c55e;
  --green-600: #16a34a;

  --red-50: #fef2f2;
  --red-500: #ef4444;
  --red-600: #dc2626;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
}

/* ============================================
   Reset
   ============================================ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

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

/* ============================================
   Header - Shopee Style
   ============================================ */
.header {
  position: relative;
  background: transparent;
  border: none;
  box-shadow: none;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header-logo img { height: 36px; width: auto; }
.header-logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #7c3aed, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Search Bar */
.search-bar {
  flex: 1;
  max-width: 600px;
  position: relative;
  display: flex;
}
.search-bar input {
  width: 100%;
  padding: 10px 16px;
  padding-right: 48px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  background: var(--gray-50);
  transition: all 0.3s ease;
  outline: none;
}
.search-bar input:focus {
  border-color: var(--purple-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(124,58,237,0.08);
}
.search-bar button {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  width: 40px;
  border: none;
  background: var(--purple-500);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}
.search-bar button:hover { background: var(--purple-600); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.header-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.7rem;
  color: var(--gray-600);
  background: none;
  border: none;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  position: relative;
}
.header-action-btn:hover { color: var(--purple-500); }
.header-action-btn svg { width: 22px; height: 22px; }

.cart-badge {
  position: absolute;
  top: -2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange-500);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-bottom {
  padding: 0 0 0px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.header-bottom::-webkit-scrollbar { display: none; }

.nav-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all 0.3s ease;
}
.nav-category:hover {
  background: var(--purple-50);
  color: var(--purple-600);
}
.nav-category.active {
  background: var(--purple-500);
  color: white;
}

/* ============================================
   Hero Carousel
   ============================================ */
.hero-carousel-wrap {
  margin-top: 40px;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: none;
  background: transparent;
}

.hero-carousel-viewport {
  overflow: hidden;
  width: 100%;
  position: relative;
  border-radius: 16px;
  border: none;
}

.hero-carousel-track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.hero-carousel-slide {
  min-width: 100%;
  width: 100%;
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  border: none;
}

.hero-carousel-slide img {
  width: 100%;
  height: auto;
  max-height: 800px;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.hero-carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.hero-carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.hero-carousel-dot.active {
  background: white;
  border-color: white;
  transform: scale(1.25);
  box-shadow: 0 0 12px rgba(255,255,255,0.3);
}


/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--purple-500);
  color: white;
  box-shadow: 0 4px 14px rgba(124,58,237,0.3);
}
.btn-primary:hover {
  background: var(--purple-600);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124,58,237,0.4);
}
.btn-white {
  background: white;
  color: var(--purple-600);
}
.btn-white:hover {
  background: var(--gray-50);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--gray-300);
  color: var(--gray-700);
}
.btn-outline:hover {
  border-color: var(--purple-500);
  color: var(--purple-600);
  background: var(--purple-50);
}
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ============================================
   Section Common
   ============================================ */
.section {
  padding: 60px 0;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
}
.section-link {
  font-size: 0.85rem;
  color: var(--purple-500);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.3s ease;
}
.section-link:hover { gap: 8px; }

.section-header-center {
  text-align: center;
  flex-direction: column;
  margin-bottom: 40px;
}
.section-header-center .section-title {
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.section-subtitle {
  color: var(--gray-600);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================
   Categories
   ============================================ */
.categories-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 8px;
  scrollbar-width: none;
}
.categories-scroll::-webkit-scrollbar { display: none; }

.category-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  min-width: 100px;
  transition: all 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
}
.category-pill:hover {
  border-color: var(--purple-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.category-pill-icon {
  font-size: 1.8rem;
  line-height: 1;
}
.category-pill-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-700);
  text-align: center;
}

/* ============================================
   Product Card - Shopee Style
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.product-card-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--purple-50), var(--orange-50));
  position: relative;
}

.product-card-discount {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--orange-500);
  color: white;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
}

.product-card-body {
  padding: 12px 14px 14px;
}

.product-card-category {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.product-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}
.product-card-rating svg { width: 14px; height: 14px; color: #f59e0b; }
.product-card-rating span {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.product-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.product-card-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orange-500);
}
.product-card-price-old {
  font-size: 0.8rem;
  color: var(--gray-400);
  text-decoration: line-through;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--gray-100);
}
.product-card-sold {
  font-size: 0.75rem;
  color: var(--gray-500);
}
.product-card-btn {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--purple-200);
  background: var(--purple-50);
  color: var(--purple-600);
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
}
.product-card-btn:hover {
  background: var(--purple-500);
  color: white;
  border-color: var(--purple-500);
}

/* ============================================
   B2B / Reseller Section
   ============================================ */
.b2b-section {
  background: linear-gradient(135deg, var(--purple-50), var(--blue-50));
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.b2b-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--purple-100);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--purple-700);
  margin-bottom: 12px;
}
.b2b-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
  line-height: 1.2;
}
.b2b-desc {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 24px;
}
.b2b-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.b2b-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
}
.b2b-feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.b2b-image {
  display: flex;
  align-items: center;
  justify-content: center;
}
.b2b-image img {
  max-width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

/* ============================================
   Pricing / Plans
   ============================================ */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.plan-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
}
.plan-card:hover {
  border-color: var(--purple-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.plan-card.featured {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 4px rgba(124,58,237,0.08);
}
.plan-card.featured::before {
  content: 'Mais Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--purple-500);
  color: white;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}
.plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.plan-desc {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 20px;
}
.plan-price {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.plan-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--gray-500);
}
.plan-period {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 20px;
}
.plan-features {
  list-style: none;
  margin-bottom: 24px;
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li svg { color: var(--green-500); flex-shrink: 0; }

/* ============================================
   Steps / How It Works
   ============================================ */
.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step-item {
  text-align: center;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}
.step-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.step-number-round {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--purple-500);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-weight: 800;
  font-size: 1.1rem;
}
.step-item-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.step-item-desc {
  font-size: 0.8rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ============================================
   FAQ
   ============================================ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.faq-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.faq-box:hover { border-color: var(--purple-300); }
.faq-box-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-800);
}
.faq-box-icon {
  transition: transform 0.3s ease;
  color: var(--gray-400);
}
.faq-box.open .faq-box-icon { transform: rotate(45deg); color: var(--purple-500); }
.faq-box-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-box.open .faq-box-answer {
  max-height: 200px;
  margin-top: 12px;
}
.faq-box-answer p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ============================================
   Footer - Shopee Style
   ============================================ */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding: 50px 0 0;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a78bfa, #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.footer-about {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
  max-width: 300px;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 8px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  transition: all 0.3s ease;
}
.footer-social a:hover {
  background: var(--purple-500);
  color: white;
  border-color: var(--purple-500);
}
.footer-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-link {
  display: block;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  padding: 4px 0;
  transition: all 0.3s ease;
}
.footer-link:hover { color: var(--purple-400); transform: translateX(4px); }
.footer-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  padding: 4px 0;
}
.footer-contact:hover { color: var(--purple-400); }
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.footer-badge {
  padding: 4px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}
.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  color: rgba(255,255,255,0.25);
  font-size: 0.8rem;
}

/* ============================================
   Scroll Animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Fade in animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .b2b-section { grid-template-columns: 1fr; padding: 32px; }
}

@media (max-width: 768px) {
  .search-bar { display: none; }
  .header-bottom { display: none; }
  
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .plans-grid { grid-template-columns: 1fr; }
  
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  
  .b2b-features { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; }
  
  .section { padding: 40px 0; }
  .section-header-center .section-title { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-card-image { height: 150px; font-size: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-actions { gap: 8px; }
  .header-action-btn { padding: 4px; }
}
