/* ================================================
   ACHEDETUDO.COM.BR — Stylesheet Principal
   ================================================ */

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

:root {
  --bg:         #F7F5F0;
  --surface:    #FFFFFF;
  --text:       #1A1814;
  --muted:      #6B6860;
  --light:      #A09B93;
  --accent:     #C8A96E;
  --accent-d:   #9E7D44;
  --border:     #E8E4DB;
  --tag-bg:     #F0EDE6;
  --amazon:     #FF9900;
  --danger:     #E53935;
  --success:    #2E7D32;
  --radius:     12px;
  --radius-lg:  18px;
  --shadow:     0 4px 24px rgba(0,0,0,.07);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 16px; line-height: 1.6; }
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* TOPBAR */
.topbar { background: var(--text); color: #ccc; font-size: .78rem; padding: .4rem 0; }
.topbar-inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.topbar-links { display: flex; gap: 1rem; }
.topbar-links a { color: var(--accent); }

/* HEADER */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 200; }
.header-inner { max-width: 1280px; margin: 0 auto; padding: .9rem 1.5rem; display: flex; align-items: center; gap: 1.5rem; }

.logo { display: flex; align-items: baseline; gap: .1rem; font-family: 'DM Serif Display', serif; font-size: 1.5rem; letter-spacing: -.03em; }
.logo-icon { color: var(--accent); font-size: 1rem; margin-right: .2rem; }
.logo-text { color: var(--text); }
.logo-tld  { color: var(--accent); font-size: 1rem; }

.header-search { flex: 1; max-width: 480px; display: flex; align-items: center; background: var(--bg); border: 1.5px solid var(--border); border-radius: 999px; overflow: hidden; transition: border-color .2s; }
.header-search:focus-within { border-color: var(--accent); }
.header-search input { flex: 1; border: none; background: transparent; padding: .6rem 1rem; font-family: inherit; font-size: .9rem; outline: none; color: var(--text); }
.header-search button { background: var(--accent); border: none; padding: .6rem .9rem; color: var(--surface); cursor: pointer; transition: background .2s; }
.header-search button:hover { background: var(--accent-d); }

.header-nav { display: flex; gap: 1.5rem; }
.header-nav a { font-size: .88rem; font-weight: 500; color: var(--muted); transition: color .2s; }
.header-nav a:hover { color: var(--accent-d); }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .3rem; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }

/* CATS BAR */
.cats-bar { border-top: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.cats-bar::-webkit-scrollbar { display: none; }
.cats-bar-inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; display: flex; gap: .25rem; }
.cat-link { display: flex; align-items: center; gap: .35rem; padding: .6rem .9rem; font-size: .82rem; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; transition: all .2s; }
.cat-link:hover { color: var(--text); }
.cat-link.active { color: var(--accent-d); border-bottom-color: var(--accent); font-weight: 500; }

/* MOBILE NAV */
.mobile-nav { display: none; position: fixed; inset: 0; background: var(--surface); z-index: 300; flex-direction: column; padding: 4rem 2rem 2rem; gap: .25rem; overflow-y: auto; }
.mobile-nav a { padding: .8rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--border); }
body.nav-open .mobile-nav { display: flex; }

/* MAIN */
.site-main { min-height: 70vh; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* HERO */
.hero { background: var(--surface); padding: 4rem 0; }
.hero-inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero h1 { font-family: 'DM Serif Display', serif; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; letter-spacing: -.03em; margin-bottom: 1rem; }
.hero h1 em { color: var(--accent); font-style: italic; }
.hero p { color: var(--muted); font-size: 1.05rem; max-width: 420px; margin-bottom: 2rem; }
.hero-cta { display: inline-flex; align-items: center; gap: .6rem; background: var(--text); color: var(--bg); padding: .85rem 1.8rem; border-radius: 999px; font-weight: 500; font-size: .95rem; transition: background .2s; }
.hero-cta:hover { background: var(--accent-d); }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 2rem; }
.hero-stat-num { font-family: 'DM Serif Display', serif; font-size: 2rem; display: block; }
.hero-stat-lbl { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hero-image-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hero-mini-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.hero-mini-card:nth-child(2) { margin-top: 2rem; }
.hero-mini-card img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 1rem; background: var(--bg); }
.hero-mini-card-body { padding: .75rem 1rem; }
.hero-mini-card-body p { font-size: .8rem; font-weight: 500; line-height: 1.3; }
.hero-mini-card-body span { font-size: .85rem; color: var(--accent-d); }

/* SECTION */
.section { padding: 3.5rem 0; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.75rem; }
.section-header h2 { font-family: 'DM Serif Display', serif; font-size: 1.8rem; letter-spacing: -.025em; }
.section-header a { font-size: .85rem; color: var(--accent-d); font-weight: 500; }

/* PRODUCT GRID */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }

/* PRODUCT CARD */
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; animation: fadeUp .4s both; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
@keyframes fadeUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }

.card-img { background: var(--bg); padding: 1.5rem; display: flex; align-items: center; justify-content: center; aspect-ratio: 1/.85; position: relative; overflow: hidden; }
.card-img img { max-height: 150px; object-fit: contain; transition: transform .3s; }
.product-card:hover .card-img img { transform: scale(1.06); }
.card-badge { position: absolute; top: 10px; left: 10px; font-size: .65rem; font-weight: 500; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.badge-destaque { background: var(--accent); color: #fff; }
.badge-promo    { background: var(--danger); color: #fff; }
.badge-novo     { background: #1565C0; color: #fff; }
.badge-mais_vendido { background: #6A1B9A; color: #fff; }

.card-body { padding: 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.card-cat  { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-d); }
.card-name { font-size: .9rem; font-weight: 500; line-height: 1.4; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-stars { display: flex; align-items: center; gap: 4px; font-size: .75rem; color: var(--muted); }
.stars-ico  { color: var(--amazon); }
.card-price-row { display: flex; align-items: flex-end; gap: .5rem; flex-wrap: wrap; }
.card-price  { font-family: 'DM Serif Display', serif; font-size: 1.25rem; }
.card-old    { font-size: .8rem; color: var(--light); text-decoration: line-through; }
.card-disc   { font-size: .72rem; color: var(--danger); font-weight: 500; margin-left: auto; }
.card-btn    { display: block; text-align: center; background: var(--text); color: var(--bg); border-radius: 10px; padding: .6rem; font-size: .82rem; font-weight: 500; margin-top: .25rem; transition: background .2s; }
.card-btn:hover { background: var(--accent-d); }

/* BLOG GRID */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform .25s, box-shadow .25s; animation: fadeUp .4s both; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.blog-card-img img { width: 100%; height: 100%; object-fit: contain; object-position: center; background: var(--bg); transition: transform .4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.03); }
.blog-card-body { padding: 1.25rem; }
.blog-cat  { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-d); margin-bottom: .4rem; }
.blog-card-body h3 { font-family: 'DM Serif Display', serif; font-size: 1.15rem; line-height: 1.3; margin-bottom: .5rem; }
.blog-card-body p  { font-size: .88rem; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-meta { display: flex; gap: 1rem; margin-top: .75rem; font-size: .75rem; color: var(--light); }

/* BREADCRUMB */
.breadcrumb { font-size: .82rem; color: var(--muted); padding: 1rem 0; display: flex; gap: .5rem; align-items: center; }
.breadcrumb a { color: var(--accent-d); }
.breadcrumb span { color: var(--light); }

/* PAGINATION */
.pagination { display: flex; gap: .5rem; justify-content: center; padding: 2.5rem 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: .5rem .9rem; border: 1px solid var(--border); border-radius: 8px; font-size: .85rem; color: var(--muted); transition: all .2s; }
.pagination a:hover { border-color: var(--accent); color: var(--accent-d); }
.pagination .current { background: var(--text); color: var(--bg); border-color: var(--text); }

/* EMPTY STATE */
.empty { text-align: center; padding: 5rem 2rem; color: var(--muted); }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty h3 { font-family: 'DM Serif Display', serif; font-size: 1.4rem; color: var(--text); margin-bottom: .5rem; }

/* ARTICLE CONTENT */
.article-content { max-width: 760px; margin: 0 auto; }
.article-content h1 { font-family: 'DM Serif Display', serif; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.03em; line-height: 1.2; margin-bottom: 1rem; }
.article-content h2 { font-family: 'DM Serif Display', serif; font-size: 1.5rem; margin: 2rem 0 .75rem; padding-bottom: .5rem; border-bottom: 2px solid var(--border); }
.article-content h3 { font-family: 'DM Serif Display', serif; font-size: 1.2rem; margin: 1.5rem 0 .5rem; color: var(--accent-d); }
.article-content p { margin-bottom: 1rem; color: var(--text); line-height: 1.8; }
.article-content img { border-radius: var(--radius); margin: 1.5rem 0; max-width: 100%; }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-content li { margin-bottom: .5rem; line-height: 1.7; }
.article-content strong { font-weight: 600; }
.article-meta { display: flex; gap: 1.5rem; color: var(--muted); font-size: .85rem; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; }

/* FILTERS */
.filters { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter-btn { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .45rem 1rem; font-family: inherit; font-size: .83rem; color: var(--muted); cursor: pointer; transition: all .2s; }
.filter-btn:hover, .filter-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* PRODUCT DETAIL */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 2.5rem 0; }
.product-detail-img { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; display: flex; align-items: center; justify-content: center; }
.product-detail-img img { max-height: 320px; object-fit: contain; }
.product-detail-info h1 { font-family: 'DM Serif Display', serif; font-size: 1.8rem; line-height: 1.2; margin-bottom: .75rem; }
.product-detail-price { font-family: 'DM Serif Display', serif; font-size: 2.2rem; color: var(--text); }
.product-detail-old   { font-size: 1rem; color: var(--light); text-decoration: line-through; }
.product-detail-btn   { display: block; text-align: center; background: var(--amazon); color: var(--text); border-radius: var(--radius); padding: 1rem; font-size: 1rem; font-weight: 500; margin-top: 1.5rem; transition: filter .2s; }
.product-detail-btn:hover { filter: brightness(.92); }

/* SIDEBAR */
.with-sidebar { display: grid; grid-template-columns: 1fr 280px; gap: 2rem; }
.sidebar-widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 1.25rem; }
.sidebar-widget h4 { font-family: 'DM Serif Display', serif; font-size: 1.1rem; margin-bottom: 1rem; }
.sidebar-widget a { display: block; padding: .4rem 0; font-size: .88rem; color: var(--muted); border-bottom: 1px solid var(--border); transition: color .2s; }
.sidebar-widget a:last-child { border-bottom: none; }
.sidebar-widget a:hover { color: var(--accent-d); }

/* ALERT */
.alert { padding: .85rem 1.1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .9rem; }
.alert-success { background: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; }
.alert-error   { background: #FFEBEE; color: #C62828; border: 1px solid #FFCDD2; }
.alert-info    { background: #E3F2FD; color: #1565C0; border: 1px solid #90CAF9; }

/* FOOTER */
.site-footer { background: var(--text); color: #A09B93; padding: 4rem 0 0; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem 3rem; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer-brand .logo { color: #F7F5F0; }
.footer-brand .logo-text { color: #F7F5F0 !important; }
.footer-brand .logo-tld { color: var(--accent); }
.footer-brand p { font-size: .85rem; color: #6B6860; margin: 1rem 0; max-width: 280px; line-height: 1.7; }
.footer-socials { display: flex; gap: 1rem; }
.footer-socials a { font-size: .82rem; color: var(--accent); }
.footer-col h4 { font-family: 'DM Serif Display', serif; color: #F7F5F0; font-size: 1rem; margin-bottom: 1rem; }
.footer-col a  { display: block; font-size: .85rem; color: #6B6860; margin-bottom: .5rem; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid #2C2825; padding: 1.5rem; text-align: center; font-size: .78rem; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-inner, .with-sidebar { grid-template-columns: 1fr; }
  .hero-image-grid { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .header-nav, .topbar-links { display: none; }
  .mobile-toggle { display: flex; }
  .product-detail { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .section-header { flex-direction: column; gap: .5rem; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .blog-grid { grid-template-columns: 1fr; }
}
