:root {
  --primary: #7b2d40;
  --primary-dark: #4a1a28;
  --primary-light: #fdf3f5;
  --accent: #9c5b6e;
  --accent-light: #e8d5d9;
  --bg: #fff;
  --bg2: #fdf3f5;
  --border: #e8d5d9;
  --text: #4a1a28;
  --text2: #9c5b6e;
  --radius: 10px;
  --shadow: 0 2px 16px rgba(123,45,64,.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--primary-light);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(123,45,64,.07);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 88px;
}
.header-logo { display: flex; align-items: center; }
.header-logo img { height: 72px; width: auto; }
.header-nav { display: flex; gap: 20px; align-items: center; }
.header-nav a { font-size: .85rem; color: var(--accent); }
.header-nav a:hover { color: var(--primary); }
.cart-btn {
  background: var(--primary); color: #fff; border: none; cursor: pointer;
  padding: 7px 16px; border-radius: 20px; font-size: .82rem; font-weight: 700;
  display: flex; align-items: center; gap: 6px; letter-spacing: .3px;
}
.cart-btn:hover { background: var(--primary-dark); }
.cart-count {
  background: #fff; color: var(--primary);
  border-radius: 50%; width: 18px; height: 18px;
  font-size: .68rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.page { padding-top: 32px; padding-bottom: 32px; }

/* Hero */
.hero {
  background: var(--bg2);
  padding: 44px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: 1.9rem; font-weight: 400; color: var(--primary-dark);
  letter-spacing: .5px; margin-bottom: 8px;
}
.hero p { color: var(--accent); font-size: .95rem; letter-spacing: .3px; }

/* ── Site Header (index) ── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--primary-light);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(123,45,64,.07);
}
.site-header-inner {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 24px;
  max-width: 1300px; margin: 0 auto;
  padding: 0 40px; height: 100px;
}
.site-logo { display: flex; align-items: center; }
.site-logo img { height: 84px; width: auto; }
.site-cats {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; flex-wrap: nowrap; overflow-x: auto;
}
.site-cats::-webkit-scrollbar { display: none; }
.site-cat {
  padding: 6px 14px; font-size: .82rem; font-weight: 600;
  letter-spacing: .5px; text-transform: uppercase;
  color: var(--accent); text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: all .2s;
  position: relative;
}
.site-cat:hover, .site-cat.active { color: var(--primary); border-bottom-color: var(--primary); }
.site-actions { display: flex; align-items: center; gap: 8px; }
.action-icon {
  width: 40px; height: 40px; border-radius: 50%; border: none; background: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); cursor: pointer; transition: all .2s; position: relative;
  text-decoration: none;
}
.action-icon:hover { background: var(--border); color: var(--primary); }
.cart-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--primary); color: #fff;
  font-size: .6rem; font-weight: 700; min-width: 16px; height: 16px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}
/* Search bar dropdown */
.site-search-bar {
  background: var(--bg); border-top: 1px solid var(--border);
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
}
.site-search-bar.open { max-height: 72px; }
.site-search-inner {
  display: flex; align-items: center; gap: 12px;
  max-width: 1300px; margin: 0 auto; padding: 12px 40px;
  color: var(--accent);
}
.site-search-inner input {
  flex: 1; border: none; outline: none; font-size: .95rem; color: var(--text);
  background: none;
}
.site-search-inner button {
  border: none; background: none; cursor: pointer; color: var(--accent); font-size: 1rem;
}

/* ── Hero Carousel ── */
.hero-carousel {
  position: relative; overflow: hidden;
  height: 480px;
}
.hero-track {
  display: flex; height: 100%;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.hero-slide {
  flex-shrink: 0; width: 100%; height: 100%;
  display: flex; align-items: center; padding: 0 10%;
}
.hero-text { max-width: 500px; }
.hero-label {
  display: inline-block; font-size: .8rem; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,.8);
  margin-bottom: 16px; font-weight: 600;
}
.hero-text h1 {
  font-size: 3.2rem; font-weight: 300; color: #fff; line-height: 1.1;
  margin-bottom: 16px; letter-spacing: .5px;
}
.hero-text p { color: rgba(255,255,255,.75); font-size: 1.05rem; margin-bottom: 32px; }
.hero-cta {
  display: inline-block; background: #fff; color: var(--primary);
  padding: 13px 32px; border-radius: 30px; font-size: .9rem;
  font-weight: 700; letter-spacing: .5px; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.hero-cta-alt { background: var(--primary); color: #fff; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.25); border: none; color: #fff;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s; backdrop-filter: blur(4px); line-height: 1;
}
.hero-arrow:hover { background: rgba(255,255,255,.45); }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }
.hero-dots {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.5); border: none; cursor: pointer;
  transition: all .2s; padding: 0;
}
.hero-dot.active { background: #fff; width: 24px; border-radius: 4px; }

/* ── Trust row ── */
.trust-row {
  display: flex; justify-content: center; gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.trust-item {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 32px; flex: 1; max-width: 280px;
  border-right: 1px solid var(--border);
  color: var(--accent);
}
.trust-item:last-child { border-right: none; }
.trust-item svg { flex-shrink: 0; color: var(--primary); }
.trust-item strong { display: block; font-size: .9rem; color: var(--text); font-weight: 600; }
.trust-item span { font-size: .8rem; }

/* ── Section rows (Novidades etc) ── */
.section-row { padding: 44px 0 36px; }
.section-catalog { padding: 20px 0 48px; background: var(--bg2); }
.row-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.row-title {
  font-size: 1.3rem; font-weight: 400; color: var(--primary-dark);
  letter-spacing: .5px; position: relative; padding-bottom: 8px;
}
.row-title::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 32px; height: 2px; background: var(--primary); border-radius: 2px;
}
.row-nav { display: flex; gap: 8px; }
.scroll-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg);
  font-size: 1.3rem; color: var(--accent); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; line-height: 1;
}
.scroll-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Horizontal products scroll ── */
.products-scroll-wrap { position: relative; }
.products-scroll {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-behavior: smooth;
  padding-bottom: 8px; cursor: grab;
}
.products-scroll:active { cursor: grabbing; }
.products-scroll::-webkit-scrollbar { height: 4px; }
.products-scroll::-webkit-scrollbar-track { background: var(--border); border-radius: 2px; }
.products-scroll::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }
.products-scroll .product-card { flex-shrink: 0; width: 240px; cursor: pointer; }
.products-scroll .product-card-img { aspect-ratio: 3/4; object-fit: cover; }
.products-scroll .product-card-img-placeholder { aspect-ratio: 3/4; }

/* ── Cat-banner (category page effect) ── */
.cat-banner {
  display: none;
  background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff; padding: 48px 0; text-align: center;
  position: relative; overflow: hidden;
}
.cat-banner.visible { display: block; }
.cat-banner::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,.12);
}
.cat-banner-name {
  position: relative; font-size: 3.5rem; font-weight: 700;
  letter-spacing: 6px; text-transform: uppercase;
  text-shadow: 0 2px 20px rgba(0,0,0,.2);
}
.cat-banner-sub {
  position: relative; font-size: .9rem; letter-spacing: 3px;
  opacity: .75; margin-top: 8px; text-transform: uppercase;
}
.cat-banner-clear {
  position: absolute; top: 16px; right: 24px;
  background: rgba(255,255,255,.2); border: none; color: #fff;
  padding: 6px 14px; border-radius: 20px; cursor: pointer;
  font-size: .8rem; letter-spacing: 1px;
}
.cat-banner-clear:hover { background: rgba(255,255,255,.35); }

/* ── Catálogo oculto na homepage; aparece só ao selecionar categoria ── */
@media (min-width: 641px) {
  #catalog { display: none; }
}
#catalog.visible { display: block !important; }

/* ── Bigger product cards (catalog grid) ── */
.products-grid { gap: 24px; }
.product-card-img { aspect-ratio: 3/4 !important; }
.product-card-img-placeholder { aspect-ratio: 3/4 !important; }

/* ── Responsive site-header ── */
@media (max-width: 900px) {
  .site-header-inner { padding: 0 20px; gap: 12px; }
  .site-logo img { height: 44px; }
  .site-cat { padding: 6px 10px; font-size: .75rem; }
}
@media (max-width: 640px) {
  .site-header-inner { grid-template-columns: auto 1fr auto; padding: 0 16px; height: 60px; }
  .site-cats { display: none; }
  .site-logo img { height: 38px; }
  .hero-carousel { height: 320px; }
  .hero-slide { padding: 0 6%; }
  .hero-text h1 { font-size: 2rem; }
  .trust-row { flex-wrap: wrap; }
  .trust-item { min-width: 50%; border-bottom: 1px solid var(--border); }
  .trust-item:nth-child(even) { border-right: none; }
  .site-search-inner { padding: 12px 16px; }
}

/* ── Legacy hero-logo (kept for no-op) ── */
.hero-logo { display: none; }

/* ── Footer ── */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  margin-top: 48px;
}
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px; max-width: 1300px; margin: 0 auto;
  padding: 56px 40px 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand img { height: 56px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.65); line-height: 1.6; }
.footer-brand .footer-wa {
  display: inline-flex; align-items: center; gap: 8px;
  color: #25D366; font-weight: 600; font-size: .9rem; text-decoration: none;
}
.footer-brand .footer-wa:hover { color: #4be083; }
.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.8); transition: background .2s; text-decoration: none;
}
.footer-social a:hover { background: rgba(255,255,255,.25); color: #fff; }
.footer-col h4 {
  font-size: .78rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: #fff;
  margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: .88rem; color: rgba(255,255,255,.65);
  text-decoration: none; transition: color .2s;
}
.footer-col ul li a:hover { color: #fff; }
.footer-payment { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-badge {
  background: rgba(255,255,255,.95); color: #333;
  padding: 6px 12px; border-radius: 6px;
  font-size: .75rem; font-weight: 700; letter-spacing: .5px;
  display: flex; align-items: center; gap: 4px;
}
.pay-badge.pix { background: #32BCAD; color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center; padding: 20px 40px;
  font-size: .8rem; color: rgba(255,255,255,.4);
}
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; padding: 40px 20px 32px; }
}
@media (max-width: 540px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 32px 20px; }
  .footer-brand img { height: 44px; }
  .footer-bottom { padding: 16px 20px; }
}

/* Filtros */
.filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.search-input {
  width: 100%;
  padding: 10px 16px; border: 1px solid var(--border); border-radius: 8px;
  font-size: .95rem; outline: none; color: var(--text);
}
.search-input:focus { border-color: var(--accent); }
.filter-cats { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-btn {
  padding: 8px 18px; border: 1px solid var(--border); border-radius: 20px;
  background: var(--bg); color: var(--text2); font-size: .85rem; cursor: pointer; transition: all .2s;
}
.cat-btn.active, .cat-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Grid de produtos */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.product-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: transform .2s, box-shadow .2s;
  background: var(--bg);
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card-img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg2); }
.product-card-img-placeholder {
  width: 100%; aspect-ratio: 1; background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: .85rem;
}
.product-card-body { padding: 14px; }
.product-card-name { font-size: .95rem; font-weight: 500; color: var(--text); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card-category { font-size: .78rem; color: var(--accent); margin-bottom: 8px; letter-spacing: .2px; }
.product-card-price { display: flex; align-items: baseline; gap: 8px; }
.price-current { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.price-original { font-size: .85rem; color: var(--accent); text-decoration: line-through; }
.price-sale { color: var(--primary-dark); }

/* Detalhe */
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.detail-gallery { position: sticky; top: 72px; }
.detail-main-img { width: 100%; aspect-ratio: 3/4; object-fit: contain; border-radius: var(--radius); background: var(--bg2); }
.detail-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.detail-thumb { width: 68px; height: 68px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; }
.detail-thumb.active { border-color: var(--primary); }
.detail-info { padding: 8px 0; }
.detail-name { font-size: 1.5rem; font-weight: 400; color: var(--primary-dark); margin-bottom: 12px; letter-spacing: .3px; }
.detail-price { margin-bottom: 24px; }
.detail-price .price-current { font-size: 1.9rem; }
.detail-desc { color: var(--accent); line-height: 1.7; margin-bottom: 24px; white-space: pre-wrap; }
.detail-category { font-size: .82rem; color: var(--accent); margin-bottom: 16px; letter-spacing: .5px; text-transform: uppercase; }
.btn-add-cart {
  width: 100%; padding: 14px; border: 2px solid var(--primary); border-radius: var(--radius);
  background: transparent; color: var(--primary); font-size: .95rem; font-weight: 600;
  cursor: pointer; transition: all .2s; margin-bottom: 12px; letter-spacing: .3px;
}
.btn-add-cart:hover { background: var(--primary); color: #fff; }
.btn-whatsapp {
  width: 100%; padding: 14px; border: none; border-radius: var(--radius);
  background: #25D366; color: #fff; font-size: .95rem; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; letter-spacing: .3px;
}
.btn-whatsapp:hover { background: #1ebe5d; }
.back-link { display: inline-block; color: var(--accent); font-size: .88rem; margin-bottom: 28px; }
.back-link:hover { color: var(--primary); }

/* Carrinho */
.cart-empty { text-align: center; padding: 60px 0; color: var(--accent); }
.cart-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.cart-item {
  display: flex; gap: 16px; align-items: center;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 14px;
}
.cart-item-img { width: 80px; height: 100px; object-fit: contain; border-radius: 6px; background: var(--bg2); flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 500; color: var(--text); margin-bottom: 4px; }
.cart-item-price { color: var(--accent); font-size: .9rem; }
.cart-item-qty { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty-btn { width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); cursor: pointer; font-size: 1rem; color: var(--primary); }
.cart-item-remove { color: var(--accent); cursor: pointer; font-size: .85rem; margin-left: auto; }
.cart-item-remove:hover { color: var(--primary); }
.cart-summary {
  border: 2px solid #25D366; border-radius: var(--radius);
  padding: 20px 24px; background: #f0fff4;
  margin-top: 8px;
}
.cart-summary-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.cart-total { font-size: 1.3rem; font-weight: 600; color: var(--primary-dark); }
.btn-checkout {
  width: 100%; padding: 16px; border: none; border-radius: var(--radius);
  background: #25D366; color: #fff; font-size: 1rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
  letter-spacing: .3px; transition: background .2s;
}
.btn-checkout:hover { background: #1ebe5d; }

/* Utilitários */
.empty { text-align: center; padding: 60px; color: var(--accent); }
.error { text-align: center; padding: 40px; color: var(--primary); }
.loading { text-align: center; padding: 60px; color: var(--accent); }
.badge-sale {
  background: var(--primary); color: #fff;
  font-size: .68rem; font-weight: 700; padding: 2px 8px;
  border-radius: 4px; margin-left: 8px; vertical-align: middle; letter-spacing: .3px;
}

/* Paginação */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 36px; }
.page-btn {
  padding: 8px 16px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--bg); cursor: pointer; font-size: .9rem; color: var(--text2);
}
.page-btn.active, .page-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Responsivo */
@media (max-width: 768px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-gallery { position: static; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .container { padding: 0 20px !important; }
  .page { padding: 20px 0; }
  .filters { gap: 8px; }
  .search-input { min-width: 0; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .container { padding: 0 16px !important; }
}
