/* ============================================
   ACHADINHOS SHOPEE — style.css
   Tema: Quente, vibrante, moderno e confiável
   Paleta: Laranja Shopee + tons quentes
   ============================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:      #EE4D2D;
  --orange-dark: #C73E24;
  --orange-light:#FF7150;
  --orange-glow: rgba(238, 77, 45, 0.18);
  --yellow:      #FFD100;
  --yellow-soft: #FFF3CD;
  --cream:       #FFFAF6;
  --white:       #FFFFFF;
  --dark:        #1A1207;
  --dark-mid:    #2D2010;
  --gray:        #8B7D72;
  --gray-light:  #F5EDE8;
  --gray-border: #E8DDD6;
  --success:     #28A745;
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   36px;
  --shadow-sm:   0 2px 12px rgba(26,18,7,0.08);
  --shadow-md:   0 6px 28px rgba(26,18,7,0.14);
  --shadow-lg:   0 16px 48px rgba(26,18,7,0.18);
  --font-display:'Poppins', sans-serif;
  --font-body:   'Inter', sans-serif;
  --transition:  0.22s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 99px; }

/* ---- CONTAINER ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--orange);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--dark);
  transition: var(--transition);
}
.logo:hover { opacity: 0.85; }
.logo-icon { font-size: 1.6rem; }
.logo-text em {
  font-style: normal;
  color: var(--orange);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray);
  transition: var(--transition);
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: var(--transition);
}
.main-nav a:hover { color: var(--orange); }
.main-nav a:hover::after { width: 100%; }

.menu-toggle {
  display: none;
  font-size: 1.4rem;
  color: var(--dark);
  padding: 6px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--gray-border);
  padding: 16px 20px;
  gap: 16px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-weight: 500;
  font-size: 1rem;
  color: var(--dark);
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-border);
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #FFF5F2 0%, #FFFAF0 60%, #FFF8F0 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: blobFloat 8s ease-in-out infinite alternate;
}
.blob-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #FFD10066, transparent);
  top: -100px; right: -80px;
  animation-delay: 0s;
}
.blob-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #EE4D2D44, transparent);
  bottom: -60px; left: 10%;
  animation-delay: 2s;
}
.blob-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, #FF715044, transparent);
  top: 30%; right: 25%;
  animation-delay: 4s;
}
@keyframes blobFloat {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(20px, -20px) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}

.hero-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 6px 18px;
  border-radius: 99px;
  margin-bottom: 20px;
  animation: fadeUp 0.6s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--dark);
  max-width: 700px;
  margin-bottom: 20px;
  animation: fadeUp 0.6s 0.1s ease both;
}
.hero-title .highlight {
  color: var(--orange);
  position: relative;
  display: inline-block;
}
.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0;
  width: 100%; height: 6px;
  background: var(--yellow);
  z-index: -1;
  border-radius: 3px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 560px;
  margin-bottom: 32px;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 36px;
  animation: fadeUp 0.6s 0.3s ease both;
}
.stat {
  text-align: center;
  padding: 0 24px;
}
.stat:first-child { padding-left: 0; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--orange);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-border);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 99px;
  transition: var(--transition);
  box-shadow: 0 8px 24px var(--orange-glow);
  animation: fadeUp 0.6s 0.4s ease both;
}
.hero-cta:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--orange-glow);
}

.hero-deco {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(80px, 12vw, 160px);
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
  animation: heroFloat 4s ease-in-out infinite alternate;
}
@keyframes heroFloat {
  0% { transform: translateY(-50%) rotate(-5deg); }
  100% { transform: translateY(calc(-50% - 20px)) rotate(5deg); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   FILTROS
   ============================================ */
.filters-section {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  padding: 16px 0;
  position: sticky;
  top: 70px;
  z-index: 90;
}

.filters-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.filters-wrap::-webkit-scrollbar { display: none; }

.filter-btn {
  white-space: nowrap;
  padding: 8px 18px;
  border-radius: 99px;
  border: 1.5px solid var(--gray-border);
  background: var(--white);
  color: var(--gray);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.88rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.filter-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.filter-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 12px var(--orange-glow);
}

/* ============================================
   PRODUTOS GRID
   ============================================ */
.products-section {
  padding: 60px 0 80px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--dark);
  margin-bottom: 8px;
}
.section-sub {
  color: var(--gray);
  font-size: 1rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.products-grid.mini {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* ---- CARD ---- */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--gray-border);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  animation: cardIn 0.5s ease both;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--orange-light);
  box-shadow: var(--shadow-md);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Staggered delay for cards */
.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.10s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.20s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.30s; }

.badge-discount {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 5;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 99px;
}
.badge-top {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 5;
  background: var(--yellow);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 99px;
}

.card-image-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--gray-light);
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .card-img { transform: scale(1.06); }

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(238,77,45,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.product-card:hover .card-overlay { opacity: 1; }
.overlay-btn {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  background: rgba(255,255,255,0.2);
  padding: 10px 20px;
  border-radius: 99px;
  border: 2px solid rgba(255,255,255,0.5);
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.card-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-title a:hover { color: var(--orange); }

.card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.stars { display: flex; gap: 1px; }
.star { font-size: 0.85rem; color: #DDD; }
.star.filled { color: var(--yellow); }
.star.half { color: #FFD100; }
.rating-num {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
}
.shop-rating {
  font-size: 0.75rem;
  color: var(--gray);
  background: var(--gray-light);
  padding: 2px 8px;
  border-radius: 99px;
}

.card-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin-top: 4px;
}
.price-old {
  font-size: 0.82rem;
  color: var(--gray);
  text-decoration: line-through;
}
.price-current {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--orange);
}
.price-save {
  width: 100%;
  font-size: 0.78rem;
  color: var(--success);
  font-weight: 600;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--gray-border);
}

.like-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--gray);
  transition: var(--transition);
  padding: 4px 8px;
  border-radius: 99px;
}
.like-btn:hover, .like-btn.liked {
  color: #E53935;
  background: #FFF0F0;
}
.like-btn.liked .heart { color: #E53935; }
.heart { font-size: 1rem; transition: var(--transition); }
.like-btn.liked .heart { transform: scale(1.3); }

.btn-shopee {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-shopee:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-shopee.mini { font-size: 0.75rem; padding: 6px 12px; }

/* ---- NO RESULTS ---- */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
}
.no-results-icon { font-size: 3rem; margin-bottom: 12px; }
.no-results button {
  margin-top: 16px;
  background: var(--orange);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 99px;
  font-weight: 600;
}

/* ============================================
   AFFILIATE BANNER
   ============================================ */
.affiliate-banner {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  padding: 48px 0;
}

.banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.banner-text h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 8px;
}
.banner-text p {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  max-width: 500px;
}

.banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}
.social-btn.yt {
  background: #FF0000;
  color: var(--white);
}
.social-btn.ig {
  background: var(--white);
  color: var(--orange);
}
.social-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

/* ============================================
   ABOUT
   ============================================ */
.about-section {
  padding: 80px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--dark);
}
.about-text p {
  color: var(--gray);
  margin-bottom: 12px;
  line-height: 1.7;
}
.about-text strong { color: var(--dark); }

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.about-card {
  background: var(--gray-light);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  border: 1.5px solid var(--gray-border);
  transition: var(--transition);
}
.about-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
}
.about-icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.about-card h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.about-card p {
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-cards { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 480px) {
  .about-cards { grid-template-columns: 1fr; }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--dark);
  padding: 40px 0;
}

.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-inner .logo-text {
  color: var(--white);
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  max-width: 600px;
  line-height: 1.6;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  background: var(--gray-light);
  border-bottom: 1px solid var(--gray-border);
  padding: 10px 0;
  font-size: 0.82rem;
  color: var(--gray);
}
.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--orange); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--gray); }

/* ============================================
   RELATED SECTION
   ============================================ */
.related-section {
  padding: 60px 0 80px;
  background: var(--gray-light);
}
.related-section .section-title {
  margin-bottom: 32px;
}

/* ============================================
   UTILITY
   ============================================ */
.hidden { display: none !important; }
.product-card.hide { display: none; }

/* Toast notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--dark);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  transition: transform 0.3s ease;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (max-width: 600px) {
  .hero { min-height: 420px; }
  .hero-stats { gap: 0; }
  .stat { padding: 0 14px; }
  .stat-num { font-size: 1.2rem; }
  .banner-inner { flex-direction: column; text-align: center; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .card-body { padding: 12px; }
  .card-title { font-size: 0.85rem; }
  .card-footer { flex-direction: column; align-items: stretch; }
  .btn-shopee { text-align: center; justify-content: center; }
}

@media (max-width: 360px) {
  .products-grid { grid-template-columns: 1fr; }
}
