/* ============================================
   MÓVEIS3B — Estilos Principais
   ============================================ */
:root {
  --yellow: #ffcc03;
  --yellow-dark: #e6b800;
  --black: #000;
  --gray-900: #111;
  --gray-800: #1a1a1a;
  --gray-700: #2a2a2a;
  --gray-400: #888;
  --gray-200: #e0e0e0;
  --gray-100: #f5f5f5;
  --white: #fff;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f97316;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: var(--gray-100); color: var(--black); }
a { text-decoration: none; }

/* HEADER */
header { background: var(--black); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 20px rgba(0,0,0,.5); }
.header-top { background: var(--yellow); text-align: center; padding: 6px; font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.header-main { display: flex; align-items: center; gap: 20px; padding: 14px 32px; }
.logo { font-family: 'Black Han Sans', sans-serif; font-size: 28px; color: var(--yellow); letter-spacing: -1px; }
.logo span { color: var(--white); }
.search-bar { flex: 1; max-width: 500px; display: flex; border: 2px solid var(--yellow); border-radius: 6px; overflow: hidden; }
.search-bar input { flex: 1; padding: 10px 16px; border: none; outline: none; font-size: 14px; background: var(--gray-900); color: var(--white); font-family: inherit; }
.search-bar button { background: var(--yellow); border: none; padding: 0 18px; cursor: pointer; font-size: 16px; font-weight: 700; color: var(--black); }
.search-bar button:hover { background: var(--yellow-dark); }
.header-actions { display: flex; gap: 12px; align-items: center; margin-left: auto; }
.btn-header { background: none; border: 2px solid var(--gray-700); color: var(--white); padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; transition: all .2s; white-space: nowrap; font-family: inherit; }
.btn-header:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-cart { background: var(--yellow); border-color: var(--yellow); color: var(--black); position: relative; }
.btn-cart:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); color: var(--black); }
.cart-badge { position: absolute; top: -8px; right: -8px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }
nav { background: var(--gray-900); display: flex; padding: 0 32px; overflow-x: auto; scrollbar-width: none; }
nav::-webkit-scrollbar { display: none; }
nav a { color: var(--gray-400); padding: 12px 18px; font-size: 13px; font-weight: 600; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; transition: all .2s; letter-spacing: .5px; text-transform: uppercase; }
nav a:hover, nav a.active { color: var(--yellow); border-bottom-color: var(--yellow); }

/* PAGES */
.page { display: none; }
.page.active { display: block; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* HERO */
.hero { background: var(--black); color: #fff; padding: 60px 32px; display: flex; align-items: center; gap: 40px; min-height: 320px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; right: -100px; top: -100px; width: 500px; height: 500px; background: var(--yellow); border-radius: 50%; opacity: .07; }
.hero-text { flex: 1; z-index: 1; }
.hero-eyebrow { background: var(--yellow); color: var(--black); font-size: 11px; font-weight: 800; letter-spacing: 2px; padding: 4px 12px; border-radius: 2px; display: inline-block; margin-bottom: 20px; text-transform: uppercase; }
.hero h1 { font-family: 'Black Han Sans', sans-serif; font-size: clamp(36px, 5vw, 64px); line-height: 1; margin-bottom: 16px; letter-spacing: -2px; }
.hero h1 span { color: var(--yellow); }
.hero p { color: var(--gray-400); font-size: 16px; margin-bottom: 28px; max-width: 420px; line-height: 1.6; }
.btn-primary { background: var(--yellow); color: var(--black); border: none; padding: 14px 32px; font-size: 14px; font-weight: 800; border-radius: 6px; cursor: pointer; letter-spacing: .5px; text-transform: uppercase; transition: all .2s; display: inline-flex; align-items: center; gap: 8px; font-family: inherit; }
.btn-primary:hover { background: var(--yellow-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,204,3,.3); }
.hero-stats { display: flex; gap: 32px; z-index: 1; }
.stat { text-align: center; }
.stat-num { font-family: 'Black Han Sans', sans-serif; font-size: 36px; color: var(--yellow); }
.stat-label { font-size: 11px; color: var(--gray-400); text-transform: uppercase; letter-spacing: 1px; }

/* CATEGORIES STRIP */
.categories-strip { background: var(--yellow); display: flex; overflow-x: auto; scrollbar-width: none; }
.categories-strip::-webkit-scrollbar { display: none; }
.cat-item { flex: 1; min-width: 100px; text-align: center; padding: 14px 20px; cursor: pointer; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--black); border-right: 1px solid rgba(0,0,0,.1); transition: background .2s; white-space: nowrap; }
.cat-item:hover, .cat-item.active { background: var(--black); color: var(--yellow); }
.cat-icon { font-size: 20px; display: block; margin-bottom: 4px; }

/* SECTION */
.section { padding: 40px 32px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title { font-family: 'Black Han Sans', sans-serif; font-size: 28px; letter-spacing: -1px; }
.section-title span { color: var(--yellow); }
.filters-bar { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.filter-btn { background: #fff; border: 1px solid var(--gray-200); padding: 7px 16px; border-radius: 20px; font-size: 12px; font-weight: 700; cursor: pointer; transition: all .2s; color: var(--gray-700); font-family: inherit; }
.filter-btn:hover, .filter-btn.active { background: var(--black); color: var(--yellow); border-color: var(--black); }

/* PRODUCT GRID */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.product-card { background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid var(--gray-200); cursor: pointer; transition: all .25s; position: relative; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.12); border-color: var(--yellow); }
.product-img { background: var(--gray-100); height: 180px; display: flex; align-items: center; justify-content: center; font-size: 60px; position: relative; }
.badge-new, .badge-sale { position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 3px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.badge-new { background: var(--black); color: var(--yellow); }
.badge-sale { background: var(--danger); color: #fff; }
.stock-dot { position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; }
.dot-green { background: var(--success); }
.dot-yellow { background: var(--warning); }
.dot-red { background: var(--danger); }
.product-info { padding: 14px; }
.product-cat { font-size: 10px; color: var(--gray-400); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 4px; }
.product-name { font-size: 14px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.price-row { display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 18px; font-weight: 900; }
.price-old { font-size: 12px; color: var(--gray-400); text-decoration: line-through; }
.btn-add { background: var(--black); color: var(--yellow); border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; font-weight: 900; }
.btn-add:hover { background: var(--yellow); color: var(--black); transform: scale(1.1); }
.btn-add:disabled { opacity: .3; cursor: not-allowed; }

/* CART */
.cart-container { max-width: 900px; margin: 0 auto; padding: 32px; }
.cart-title { font-family: 'Black Han Sans', sans-serif; font-size: 32px; margin-bottom: 24px; letter-spacing: -1px; }
.cart-title span { color: var(--yellow); }
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item { background: #fff; border-radius: 8px; padding: 16px; display: flex; gap: 16px; align-items: center; border: 1px solid var(--gray-200); }
.cart-item-emoji { font-size: 40px; width: 60px; text-align: center; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.cart-item-cat { font-size: 11px; color: var(--gray-400); }
.cart-item-price { font-size: 16px; font-weight: 900; }
.qty-ctrl { display: flex; align-items: center; gap: 8px; }
.qty-btn { background: var(--gray-100); border: 1px solid var(--gray-200); width: 28px; height: 28px; border-radius: 4px; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; font-weight: 700; transition: all .15s; font-family: inherit; }
.qty-btn:hover { background: var(--yellow); border-color: var(--yellow); }
.qty-val { font-weight: 700; min-width: 24px; text-align: center; }
.btn-rm { background: none; border: none; color: var(--gray-400); cursor: pointer; font-size: 16px; transition: color .2s; }
.btn-rm:hover { color: var(--danger); }
.cart-summary { background: #fff; border-radius: 8px; padding: 24px; border: 1px solid var(--gray-200); height: fit-content; position: sticky; top: 120px; }
.summary-title { font-weight: 800; font-size: 16px; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--gray-100); }
.summary-total { display: flex; justify-content: space-between; padding: 12px 0; font-weight: 900; font-size: 18px; }
.btn-checkout { background: var(--yellow); color: var(--black); border: none; width: 100%; padding: 14px; border-radius: 6px; font-size: 14px; font-weight: 800; cursor: pointer; text-transform: uppercase; letter-spacing: .5px; margin-top: 16px; transition: all .2s; font-family: inherit; }
.btn-checkout:hover { background: var(--yellow-dark); }

/* MODAL */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 2000; align-items: center; justify-content: center; }
.modal-overlay.show { display: flex; }
.modal-box { background: #fff; border-radius: 12px; padding: 32px; width: 90%; max-width: 480px; animation: fadeIn .3s ease; max-height: 90vh; overflow-y: auto; }
.modal-title { font-family: 'Black Han Sans', sans-serif; font-size: 22px; margin-bottom: 20px; letter-spacing: -1px; }
.modal-title span { color: var(--yellow); }
.btn-close { float: right; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--gray-400); margin-top: -8px; }

/* FORM */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--gray-400); }
.form-group input, .form-group select { padding: 10px 14px; border: 1px solid var(--gray-200); border-radius: 6px; font-size: 14px; font-family: inherit; outline: none; transition: border-color .2s; }
.form-group input:focus, .form-group select:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,204,3,.15); }

/* TOAST */
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--black); color: #fff; padding: 14px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; border-left: 4px solid var(--yellow); box-shadow: 0 8px 32px rgba(0,0,0,.3); z-index: 9999; display: none; max-width: 340px; }
.toast.show { display: block; animation: slideUp .3s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* EMPTY / LOADING */
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-400); }
.empty-state .icon { font-size: 60px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; font-weight: 700; color: var(--black); margin-bottom: 8px; }
.loading { text-align: center; padding: 60px; color: var(--gray-400); font-size: 16px; grid-column: 1/-1; }
.success-box { text-align: center; padding: 20px 0; }
.success-icon { font-size: 56px; margin-bottom: 12px; }
.success-box h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.success-box p { color: var(--gray-400); font-size: 14px; }
.order-num { font-size: 13px; color: var(--gray-400); margin-top: 8px; }
.order-num span { font-weight: 800; color: var(--black); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .header-main { padding: 12px 16px; gap: 12px; }
  .hero { flex-direction: column; padding: 40px 20px; }
  .hero-stats { gap: 20px; }
  .section { padding: 24px 16px; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}
