/* ========= RESET & BASE ========= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: #f4f6f8; color: #1a2636; }

/* ========= HEADER ========= */
header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(135deg, #0d2137 0%, #1a3a5c 100%);
  box-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 12px 24px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { font-size: 1.9rem; }
.logo-text { font-size: 1.45rem; font-weight: 800; color: #fff; letter-spacing: .5px; }
.nav-links { display: flex; gap: 24px; margin-left: 8px; }
.nav-links a {
  color: #b8d4f0; text-decoration: none; font-weight: 500; font-size: .95rem;
  transition: color .2s;
}
.nav-links a:hover { color: #f39c12; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.search-box { display: flex; align-items: center; background: rgba(255,255,255,.12); border-radius: 8px; overflow: hidden; }
.search-box input {
  border: none; background: transparent; padding: 8px 12px; color: #fff; font-size: .9rem; width: 200px;
  outline: none;
}
.search-box input::placeholder { color: #8ab0d0; }
.search-btn {
  background: transparent; border: none; color: #8ab0d0; padding: 8px 10px;
  cursor: pointer; font-size: 1rem; transition: color .2s;
}
.search-btn:hover { color: #f39c12; }
.cart-btn {
  position: relative; background: #f39c12; border: none; border-radius: 50%; width: 44px; height: 44px;
  cursor: pointer; font-size: 1.25rem; display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .15s;
}
.cart-btn:hover { background: #e67e22; transform: scale(1.08); }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: #e74c3c; color: #fff; font-size: .65rem; font-weight: 700;
  border-radius: 50%; width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #0d2137;
}

/* ========= HERO ========= */
.hero {
  background: linear-gradient(135deg, #0d2137 0%, #1a4a7a 50%, #0d6e3b 100%);
  min-height: 380px; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 60px 24px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 30 Q15 0 30 30 Q45 60 60 30' stroke='rgba(255,255,255,0.04)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") repeat;
}
.hero-content { position: relative; z-index: 1; }
.hero-content h1 { font-size: 2.4rem; color: #fff; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.hero-content p { color: #b8d4f0; font-size: 1.15rem; margin-bottom: 24px; }
.hero-badges { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.badge {
  background: rgba(255,255,255,.12); color: #b8f0cc; font-size: .85rem; font-weight: 600;
  padding: 6px 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,.2);
}
.btn-hero {
  display: inline-block; background: #f39c12; color: #fff; text-decoration: none;
  padding: 14px 36px; border-radius: 10px; font-weight: 700; font-size: 1.05rem;
  transition: background .2s, transform .15s; box-shadow: 0 4px 16px rgba(243,156,18,.4);
}
.btn-hero:hover { background: #e67e22; transform: translateY(-2px); }

/* ========= CATEGORIAS ========= */
.categorias { max-width: 1280px; margin: 48px auto 0; padding: 0 24px; }
.categorias h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 20px; color: #1a2636; }
.cat-grid { display: flex; gap: 12px; flex-wrap: wrap; }
.cat-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: #fff; border: 2px solid #e0e8f0; border-radius: 12px;
  padding: 14px 20px; cursor: pointer; font-size: .85rem; font-weight: 600; color: #1a2636;
  transition: all .2s; min-width: 90px;
}
.cat-card span:first-child { font-size: 1.5rem; }
.cat-card:hover { border-color: #f39c12; color: #f39c12; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.cat-card.active { background: #0d2137; color: #f39c12; border-color: #0d2137; }

/* ========= PRODUTOS ========= */
.produtos { max-width: 1280px; margin: 40px auto 60px; padding: 0 24px; }
.produtos-header { display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px; }
.produtos-header h2 { font-size: 1.6rem; font-weight: 700; }
.count-badge {
  background: #e8f0f8; color: #1a4a7a; font-size: .8rem; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
}
.produtos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

/* ========= PRODUCT CARD ========= */
.prod-card {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.13); }
.prod-img-wrap {
  background: linear-gradient(135deg, #e8f4ff 0%, #d0e8f8 100%);
  display: flex; align-items: center; justify-content: center;
  height: 170px; cursor: pointer; position: relative;
}
.prod-emoji { font-size: 5rem; transition: transform .2s; }
.prod-img-wrap:hover .prod-emoji { transform: scale(1.1); }
.prod-badge {
  position: absolute; top: 10px; left: 10px;
  background: #e74c3c; color: #fff; font-size: .7rem; font-weight: 700;
  padding: 3px 8px; border-radius: 6px;
}
.prod-badge.novo { background: #27ae60; }
.prod-badge.dest { background: #8e44ad; }
.prod-info { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.prod-marca { font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; color: #7a90a8; font-weight: 600; margin-bottom: 4px; }
.prod-nome { font-size: .98rem; font-weight: 700; color: #1a2636; margin-bottom: 6px; cursor: pointer; line-height: 1.3; }
.prod-nome:hover { color: #1a4a7a; }
.prod-desc { font-size: .8rem; color: #6a7e94; margin-bottom: 12px; flex: 1; line-height: 1.5; }
.prod-price-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.prod-price { font-size: 1.3rem; font-weight: 800; color: #0d6e3b; }
.prod-price-old { font-size: .85rem; color: #a0b0c0; text-decoration: line-through; }
.prod-discount { font-size: .75rem; background: #ffecea; color: #e74c3c; font-weight: 700; padding: 2px 6px; border-radius: 5px; }
.btn-cart {
  width: 100%; padding: 11px; border: none; border-radius: 9px;
  background: linear-gradient(135deg, #0d2137, #1a4a7a);
  color: #fff; font-weight: 700; font-size: .9rem; cursor: pointer;
  transition: all .2s; letter-spacing: .3px;
}
.btn-cart:hover { background: linear-gradient(135deg, #f39c12, #e67e22); transform: translateY(-1px); }
.btn-cart:active { transform: translateY(0); }

/* ========= CART DRAWER ========= */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 200; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed; top: 0; right: -440px; width: 420px; height: 100vh;
  background: #fff; z-index: 201; display: flex; flex-direction: column;
  box-shadow: -4px 0 32px rgba(0,0,0,.2); transition: right .3s cubic-bezier(.4,0,.2,1);
}
.cart-drawer.open { right: 0; }
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; background: #0d2137; color: #fff;
}
.cart-header h3 { font-size: 1.1rem; font-weight: 700; }
.close-cart {
  background: rgba(255,255,255,.15); border: none; color: #fff; width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; font-size: 1rem; transition: background .2s;
}
.close-cart:hover { background: rgba(255,255,255,.3); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.cart-empty { color: #a0b0c0; text-align: center; margin-top: 60px; font-size: 1rem; }
.cart-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px; background: #f8fafc; border-radius: 10px; border: 1px solid #e8f0f8;
}
.cart-item-emoji { font-size: 2.2rem; min-width: 44px; text-align: center; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: .88rem; font-weight: 700; color: #1a2636; line-height: 1.3; }
.cart-item-marca { font-size: .74rem; color: #7a90a8; }
.cart-item-price { font-size: .9rem; font-weight: 700; color: #0d6e3b; margin-top: 4px; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn {
  width: 26px; height: 26px; border: 1px solid #d0dce8; border-radius: 6px;
  background: #fff; cursor: pointer; font-size: .9rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.qty-btn:hover { background: #0d2137; color: #fff; border-color: #0d2137; }
.qty-val { font-size: .9rem; font-weight: 700; min-width: 20px; text-align: center; }
.cart-item-remove {
  background: transparent; border: none; color: #c0ccd8; cursor: pointer; font-size: 1rem;
  padding: 4px; transition: color .2s;
}
.cart-item-remove:hover { color: #e74c3c; }
.cart-footer { padding: 20px 24px; border-top: 1px solid #e8f0f8; display: flex; flex-direction: column; gap: 10px; }
.cart-total { display: flex; justify-content: space-between; font-size: .9rem; color: #4a6080; }
.cart-total-final { font-size: 1.1rem; font-weight: 800; color: #1a2636; padding-top: 8px; border-top: 2px solid #e8f0f8; }
.cart-total-final span:last-child { color: #0d6e3b; }
.btn-checkout {
  width: 100%; padding: 14px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: #fff; font-weight: 800; font-size: 1rem; cursor: pointer;
  transition: all .2s; box-shadow: 0 4px 14px rgba(243,156,18,.4);
}
.btn-checkout:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(243,156,18,.5); }
.btn-clear {
  width: 100%; padding: 10px; border: 1px solid #d0dce8; border-radius: 10px;
  background: transparent; color: #7a90a8; font-size: .85rem; cursor: pointer;
  transition: all .2s;
}
.btn-clear:hover { background: #ffecea; color: #e74c3c; border-color: #e74c3c; }

/* ========= TOAST ========= */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: #0d2137; color: #fff; padding: 12px 24px; border-radius: 10px;
  font-size: .9rem; font-weight: 600; z-index: 300; opacity: 0;
  transition: all .35s cubic-bezier(.4,0,.2,1); white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ========= MODAL ========= */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 300; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -48%);
  background: #fff; border-radius: 16px; z-index: 301;
  width: min(560px, 94vw); max-height: 85vh; overflow-y: auto;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 12px 48px rgba(0,0,0,.25);
}
.modal.open { opacity: 1; pointer-events: all; transform: translate(-50%, -50%); }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: #f0f4f8; border: none; border-radius: 50%; width: 32px; height: 32px;
  cursor: pointer; font-size: 1rem; z-index: 1; transition: background .2s;
}
.modal-close:hover { background: #e0e8f0; }
.modal-content { padding: 32px; }
.modal-emoji { font-size: 6rem; display: block; text-align: center; margin-bottom: 20px; }
.modal-marca { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: #7a90a8; font-weight: 600; }
.modal-nome { font-size: 1.5rem; font-weight: 800; color: #1a2636; margin: 6px 0 12px; }
.modal-desc-full { color: #4a6080; line-height: 1.7; margin-bottom: 20px; }
.modal-specs { background: #f4f8fc; border-radius: 10px; padding: 16px; margin-bottom: 20px; }
.modal-specs h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; color: #7a90a8; margin-bottom: 10px; }
.modal-specs ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.modal-specs li { font-size: .88rem; color: #1a2636; display: flex; gap: 8px; align-items: flex-start; }
.modal-specs li::before { content: '✓'; color: #27ae60; font-weight: 700; flex-shrink: 0; }
.modal-price-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.modal-price { font-size: 2rem; font-weight: 800; color: #0d6e3b; }
.modal-price-old { font-size: 1rem; color: #a0b0c0; text-decoration: line-through; }
.modal-btn {
  width: 100%; padding: 14px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, #0d2137, #1a4a7a);
  color: #fff; font-weight: 800; font-size: 1rem; cursor: pointer;
  transition: all .2s;
}
.modal-btn:hover { background: linear-gradient(135deg, #f39c12, #e67e22); }

/* ========= SOBRE ========= */
.sobre { background: linear-gradient(135deg, #0d2137, #1a4a7a); padding: 64px 24px; }
.sobre-inner { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.sobre-text h2 { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 16px; }
.sobre-text p { color: #b8d4f0; line-height: 1.8; margin-bottom: 16px; }
.sobre-text ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sobre-text li { color: #b8d4f0; font-size: .95rem; }
.sobre-stats { display: flex; flex-direction: column; gap: 24px; }
.stat { display: flex; flex-direction: column; align-items: center; background: rgba(255,255,255,.1); border-radius: 12px; padding: 20px 28px; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: #f39c12; }
.stat span:last-child { font-size: .85rem; color: #b8d4f0; margin-top: 4px; }

/* ========= FOOTER ========= */
footer { background: #081624; color: #6a8098; text-align: center; padding: 22px; font-size: .85rem; }

/* ========= RESPONSIVE ========= */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 1.7rem; }
  .nav-links { display: none; }
  .search-box input { width: 130px; }
  .cart-drawer { width: 100vw; }
  .sobre-inner { grid-template-columns: 1fr; }
  .sobre-stats { flex-direction: row; justify-content: center; }
}
@media (max-width: 480px) {
  .header-inner { gap: 12px; }
  .search-box { display: none; }
}
