/* ============================================================
   DivisionStore — Loja de informática
   Identidade: preto profundo + roxo (violet), DM Sans. Sem amarelo/laranja.
   ============================================================ */
:root {
  --ds-bg:        #0a0812;
  --ds-bg-2:      #110e1c;
  --ds-surface:   #161225;
  --ds-surface-2: #1d1830;
  --ds-border:    #2b2542;
  --ds-text:      #f2f2f5;
  --ds-text-2:    #b4b4c2;
  --ds-muted:     #7c7c8e;
  /* acento roxo (nomes antigos mantidos como alias p/ compatibilidade) */
  --ds-accent:    #8b5cf6;   /* roxo principal (violet-500) */
  --ds-accent-2:  #a78bfa;   /* roxo claro (hover/links) */
  --ds-accent-3:  #7c3aed;   /* roxo escuro (pressed) */
  --ds-accent-glow: rgba(139,92,246,.25);
  --ds-gold:      var(--ds-accent);
  --ds-gold-2:    var(--ds-accent-2);
  --ds-orange:    #c084fc;   /* roxo vivo p/ badges de desconto (era laranja) */
  --ds-green:     #2ecc71;
  --ds-red:       #ff4d4f;
  --ds-radius:    12px;
  --ds-shadow:    0 6px 24px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--ds-bg);
  color: var(--ds-text);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ds-gold-2); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -.01em; }
.text-secondary { color: var(--ds-text-2) !important; }
.text-muted { color: var(--ds-muted) !important; }

/* ---- barra superior ---- */
.ds-topbar { background: #07060d; color: var(--ds-text-2); padding: 6px 0; border-bottom: 1px solid var(--ds-border); }
.ds-topbar i { color: var(--ds-gold); }

/* ---- header ---- */
.ds-header { background: var(--ds-bg-2); position: sticky; top: 0; z-index: 1030; box-shadow: 0 2px 12px rgba(0,0,0,.5); }
.ds-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 1.35rem; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.ds-brand b { color: var(--ds-gold); font-weight: 700; }
.ds-brand:hover { color: #fff; }

.ds-search { display: flex; background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: 10px; overflow: hidden; transition: border-color .15s; }
.ds-search:focus-within { border-color: var(--ds-gold); box-shadow: 0 0 0 3px var(--ds-accent-glow); }
.ds-search input { background: transparent; border: 0; color: #fff; padding: 10px 18px; box-shadow: none !important; }
.ds-search input::placeholder { color: var(--ds-muted); }
.ds-search button { border: 0; background: var(--ds-accent); color: #fff; width: 46px; font-size: 1rem; }
.ds-search button:hover { background: var(--ds-gold-2); }

.ds-action { color: var(--ds-text); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.ds-action i { font-size: 1.35rem; }
.ds-action:hover { color: var(--ds-gold); }
.ds-cart { position: relative; }
.ds-cart-badge { position: absolute; top: -6px; left: 14px; background: var(--ds-accent); color: #fff; font-size: .68rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.dropdown-menu { background: var(--ds-surface-2); border: 1px solid var(--ds-border); }
.dropdown-item { color: var(--ds-text); }
.dropdown-item:hover { background: var(--ds-surface); color: var(--ds-gold); }
.dropdown-divider { border-color: var(--ds-border); }

/* ---- nav categorias ---- */
.ds-nav { background: #07060d; border-top: 1px solid var(--ds-border); }
.ds-nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.ds-nav-list::-webkit-scrollbar { display: none; }
.ds-nav-list > li > a { display: block; padding: 10px 12px; color: var(--ds-text-2); font-size: .88rem; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; }
.ds-nav-list > li > a:hover { color: #fff; border-bottom-color: var(--ds-gold); }
.ds-nav-all { position: relative; }
.ds-nav-all > a { color: #fff !important; background: var(--ds-surface-2); }
.ds-nav-promo > a { color: var(--ds-accent-2) !important; }
.ds-nav-sep > a { border-left: 1px solid var(--ds-border); margin-left: 8px; padding-left: 20px; }
.ds-mega { display: none; position: absolute; left: 0; top: 100%; width: min(920px, 92vw); background: var(--ds-surface-2); border: 1px solid var(--ds-border); border-radius: 0 0 var(--ds-radius) var(--ds-radius); padding: 18px; box-shadow: var(--ds-shadow); z-index: 1040; }
.ds-nav-all:hover .ds-mega { display: block; }
.ds-mega-title { display: block; color: var(--ds-gold); font-weight: 700; margin-bottom: 6px; }
.ds-mega-item { display: block; color: var(--ds-text-2); font-size: .88rem; padding: 2px 0; }
.ds-mega-item:hover { color: #fff; }

/* ---- main ---- */
.ds-main { min-height: 60vh; padding-bottom: 48px; }
.ds-flash-wrap { padding-top: 12px; }
.ds-flash { border-radius: 10px; }
.ds-section { margin: 44px 0; }
.ds-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.ds-section-head h2 { font-size: 1.35rem; margin: 0; }
.ds-section-head h2 i { display: none; }
.ds-section-head a { font-size: .85rem; color: var(--ds-text-2); } .ds-section-head a:hover { color: #fff; }
.ds-section-head small { display: block; margin-top: 2px; font-size: .82rem; }
.ds-trust-strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--ds-border); border-bottom: 1px solid var(--ds-border); padding: 14px 0; font-size: .85rem; color: var(--ds-text-2); } .ds-trust-strip b { color: var(--ds-text); font-weight: 600; }
.breadcrumb { --bs-breadcrumb-divider-color: var(--ds-muted); font-size: .85rem; margin: 14px 0; }
.breadcrumb a { color: var(--ds-text-2); }
.breadcrumb-item.active { color: var(--ds-muted); }

/* ---- hero / banner ---- */
.ds-hero { border-radius: var(--ds-radius); overflow: hidden; background: var(--ds-surface); border: 1px solid var(--ds-border); position: relative; min-height: 260px; display: flex; align-items: center; padding: 40px 44px; margin-top: 18px; }
.ds-hero::after { display: none; }
.ds-hero h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; max-width: 640px; }
.ds-hero h1 span { color: inherit; }
.ds-hero p { color: var(--ds-text-2); max-width: 520px; }
.ds-hero .badge { background: var(--ds-accent); font-weight: 700; }
.ds-hero-img { position: absolute; right: 30px; bottom: 0; height: 90%; opacity: .95; }
@media (max-width: 767px) { .ds-hero { min-height: 220px; padding: 26px 22px; } .ds-hero-img { display: none; } }

.ds-cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.ds-cat-tile { display: flex; align-items: center; gap: 10px; background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: var(--ds-radius); padding: 11px 14px; text-align: left; color: var(--ds-text); transition: border-color .15s, background .15s; }
.ds-cat-tile:hover { background: var(--ds-surface-2); border-color: #4a3f75; color: #fff; }
.ds-cat-tile i { font-size: 1.1rem; color: var(--ds-text-2); display: inline; margin: 0; }
.ds-cat-tile:hover i { color: var(--ds-accent-2); }
.ds-cat-tile span { font-size: .85rem; font-weight: 500; }

/* ---- card de produto ---- */
.ds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; }
.ds-card { background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: var(--ds-radius); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: border-color .15s, background .15s; }
.ds-card:hover { border-color: #4a3f75; }
.ds-card-img { aspect-ratio: 1; background: #fff; display: flex; align-items: center; justify-content: center; padding: 14px; }
.ds-card-img img { max-height: 100%; object-fit: contain; }
.ds-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.ds-card-brand { font-size: .72rem; color: var(--ds-muted); text-transform: uppercase; letter-spacing: .06em; }
.ds-card-title { font-size: .92rem; font-weight: 500; color: var(--ds-text); line-height: 1.3; margin: 4px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.ds-card-title:hover { color: var(--ds-gold); }
.ds-price-old { font-size: .8rem; color: var(--ds-muted); text-decoration: line-through; }
.ds-price { font-size: 1.25rem; font-weight: 700; color: #fff; line-height: 1.1; }
.ds-price small { font-size: .78rem; color: var(--ds-text-2); font-weight: 400; display: block; margin-top: 2px; }
.ds-badge-off { position: absolute; top: 10px; left: 10px; background: var(--ds-accent-3); color: #fff; font-weight: 700; font-size: .72rem; padding: 3px 7px; border-radius: 4px; z-index: 2; }
.ds-badge-out { position: absolute; top: 10px; left: 10px; background: #444; color: #fff; font-size: .72rem; padding: 3px 8px; border-radius: 6px; z-index: 2; }
.ds-card-foot { margin-top: auto; padding-top: 10px; display: flex; gap: 8px; }
.ds-stock { font-size: .75rem; }
.ds-stock.success { color: var(--ds-green); } .ds-stock.warning { color: var(--ds-text-2); font-weight: 600; } .ds-stock.danger { color: var(--ds-red); }

/* ---- botões ---- */
.btn-ds { background: var(--ds-accent); color: #fff; font-weight: 700; border: 0; border-radius: 8px; padding: 10px 18px; }
.btn-ds:hover, .btn-ds:focus { background: var(--ds-accent-2); color: #fff; }
.btn-ds:disabled { background: #444; color: #999; }
.btn-ds-o { background: transparent; color: var(--ds-text); border: 1px solid var(--ds-border); border-radius: 8px; padding: 9px 16px; font-weight: 500; }
.btn-ds-o:hover { border-color: var(--ds-gold); color: var(--ds-gold); }
.btn-ds-sm { padding: 6px 12px; font-size: .85rem; border-radius: 6px; }
.btn-ds-icon { width: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.btn-ds-alt { background: var(--ds-orange); color: #fff; font-weight: 700; border: 0; border-radius: 8px; padding: 10px 18px; }
.btn-ds-alt:hover { background: var(--ds-accent-2); color: #fff; }
.ds-card .btn-ds-icon { background: transparent; border: 1px solid var(--ds-border); color: var(--ds-text-2); }
.ds-card .btn-ds-icon:hover { background: var(--ds-accent); border-color: var(--ds-accent); color: #fff; }

/* ---- filtros / catálogo ---- */
.ds-filters { background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: var(--ds-radius); padding: 16px; position: sticky; top: 118px; }
.ds-filters h6 { font-size: .9rem; font-weight: 700; color: var(--ds-text); margin: 16px 0 8px; }
.ds-filters h6:first-child { margin-top: 0; }
.ds-filters .form-check-label { font-size: .9rem; color: var(--ds-text-2); cursor: pointer; }
.ds-filters a { color: var(--ds-text-2); }
.ds-filters a:hover { color: #fff; }
.ds-filters .ds-marcas { max-height: 240px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.ds-filters .form-check-input { background-color: var(--ds-surface-2); border-color: var(--ds-border); }
.ds-filters .form-check-input:checked { background-color: var(--ds-gold); border-color: var(--ds-gold); }
.ds-filters .form-control, .form-control, .form-select { background: var(--ds-surface-2); border-color: var(--ds-border); color: #fff; }
.form-control:focus, .form-select:focus { background: var(--ds-surface-2); border-color: var(--ds-gold); color: #fff; box-shadow: 0 0 0 3px var(--ds-accent-glow); }
.form-control::placeholder { color: var(--ds-muted); }
.form-select { background-repeat: no-repeat; background-position: right .75rem center; background-size: 16px 12px; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23b4b4c2' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.ds-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--ds-surface-2); border: 1px solid var(--ds-border); border-radius: 999px; padding: 4px 10px; font-size: .8rem; color: var(--ds-text); }
.ds-chip a { color: var(--ds-muted); }
.ds-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ds-toolbar .form-select { width: auto; }
.pagination .page-link { background: var(--ds-surface); border-color: var(--ds-border); color: var(--ds-text-2); }
.pagination .page-item.active .page-link { background: var(--ds-accent); border-color: var(--ds-accent); color: #fff; }
.pagination .page-item.disabled .page-link { background: var(--ds-surface); color: var(--ds-muted); }
.offcanvas { background: var(--ds-bg-2); color: var(--ds-text); }
.btn-close { filter: invert(1); }

/* ---- página do produto ---- */
.ds-gallery-main { background: #fff; border-radius: var(--ds-radius); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.ds-gallery-main img { max-height: 100%; object-fit: contain; }
.ds-gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.ds-gallery-thumbs img { width: 68px; height: 68px; object-fit: contain; background: #fff; border-radius: 8px; border: 2px solid transparent; cursor: pointer; padding: 4px; }
.ds-gallery-thumbs img.active { border-color: var(--ds-gold); }
.ds-buybox { background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: var(--ds-radius); padding: 22px; }
.ds-buybox .ds-price { font-size: 2rem; }
.ds-qty { display: inline-flex; border: 1px solid var(--ds-border); border-radius: 8px; overflow: hidden; }
.ds-qty button { background: var(--ds-surface-2); border: 0; color: #fff; width: 38px; font-size: 1.1rem; }
.ds-qty input { width: 52px; text-align: center; background: transparent; border: 0; color: #fff; }
.ds-specs { width: 100%; font-size: .9rem; }
.ds-specs th { width: 34%; color: var(--ds-text-2); font-weight: 500; padding: 9px 12px; background: var(--ds-surface-2); border-bottom: 1px solid var(--ds-border); }
.ds-specs td { padding: 9px 12px; border-bottom: 1px solid var(--ds-border); }
.nav-tabs { border-color: var(--ds-border); }
.nav-tabs .nav-link { color: var(--ds-text-2); border: 0; border-bottom: 2px solid transparent; }
.nav-tabs .nav-link.active { background: transparent; color: var(--ds-gold); border-bottom-color: var(--ds-gold); }
.ds-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.ds-trust div { font-size: .75rem; color: var(--ds-text-2); text-align: center; }
.ds-trust i { display: block; font-size: 1.3rem; color: var(--ds-gold); margin-bottom: 3px; }
.ds-stars { color: var(--ds-gold); font-size: .9rem; }

/* ---- carrinho / checkout ---- */
.ds-box { background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: var(--ds-radius); padding: 20px; }
.ds-cart-item { display: grid; grid-template-columns: 80px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--ds-border); }
.ds-cart-item:last-child { border-bottom: 0; }
.ds-cart-item img { width: 80px; height: 80px; object-fit: contain; background: #fff; border-radius: 8px; padding: 6px; }
.ds-cart-item .ds-qty { transform: scale(.9); transform-origin: left; }
.ds-summary-row { display: flex; justify-content: space-between; padding: 6px 0; color: var(--ds-text-2); }
.ds-summary-total { display: flex; justify-content: space-between; padding: 12px 0 0; margin-top: 8px; border-top: 1px solid var(--ds-border); font-size: 1.25rem; font-weight: 700; }
.ds-steps { display: flex; gap: 6px; margin: 18px 0 24px; }
.ds-steps span { flex: 1; text-align: center; padding: 8px; font-size: .8rem; color: var(--ds-muted); border-bottom: 3px solid var(--ds-border); }
.ds-steps span.on { color: var(--ds-gold); border-bottom-color: var(--ds-gold); font-weight: 700; }
.ds-steps span.done { color: var(--ds-green); border-bottom-color: var(--ds-green); }
.ds-radio-card { display: block; background: var(--ds-surface-2); border: 1px solid var(--ds-border); border-radius: 10px; padding: 12px 14px; cursor: pointer; margin-bottom: 8px; }
.ds-radio-card:has(input:checked) { border-color: var(--ds-gold); background: rgba(139,92,246,.08); }
.ds-radio-card input { accent-color: var(--ds-gold); margin-right: 8px; }
.ds-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.ds-status.aguardando_pagamento { background: #2a2140; color: var(--ds-accent-2); }
.ds-status.pago, .ds-status.em_separacao { background: #0f2f3f; color: #4fc3f7; }
.ds-status.enviado { background: #1a2b4a; color: #82b1ff; }
.ds-status.entregue { background: #0f3320; color: var(--ds-green); }
.ds-status.cancelado, .ds-status.estornado { background: #3a1010; color: var(--ds-red); }
.table { --bs-table-bg: transparent; --bs-table-color: var(--ds-text); --bs-table-border-color: var(--ds-border); }
.table thead th { color: var(--ds-text-2); font-weight: 500; font-size: .85rem; }

/* ---- conta / auth ---- */
.ds-auth { max-width: 460px; margin: 40px auto; }
.ds-auth .ds-box { padding: 30px; }
.ds-account-nav a { display: block; padding: 9px 12px; color: var(--ds-text-2); border-radius: 8px; }
.ds-account-nav a.active, .ds-account-nav a:hover { background: var(--ds-surface-2); color: var(--ds-gold); }

/* ---- footer ---- */
.ds-footer { background: #07060d; border-top: 1px solid var(--ds-border); margin-top: 40px; }
.ds-footer h6 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.ds-footer a { color: var(--ds-text-2); }
.ds-footer a:hover { color: var(--ds-gold); }
.ds-footer li { margin-bottom: 5px; }
.ds-footer-bottom { border-top: 1px solid var(--ds-border); color: var(--ds-text-2); }
.ds-pay i { font-size: 1.15rem; color: var(--ds-muted); margin-right: 10px; }

/* ---- utilidades ---- */
.ds-empty { text-align: center; padding: 60px 20px; color: var(--ds-text-2); }
.ds-empty i { font-size: 3rem; color: var(--ds-muted); display: block; margin-bottom: 12px; }
.ds-toast { position: fixed; right: 18px; bottom: 18px; z-index: 2000; background: var(--ds-surface-2); border: 1px solid var(--ds-gold); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: var(--ds-shadow); display: flex; align-items: center; gap: 10px; animation: dsIn .2s ease; }
.ds-toast i { color: var(--ds-gold); font-size: 1.2rem; }
@keyframes dsIn { from { transform: translateY(12px); opacity: 0 } to { transform: none; opacity: 1 } }
.ds-skeleton { background: linear-gradient(90deg, var(--ds-surface) 25%, var(--ds-surface-2) 50%, var(--ds-surface) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }

@media (max-width: 991px) {
  .ds-filters { position: static; }
  .ds-header .ds-brand span { display: none; }
}
@media (max-width: 575px) {
  .ds-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ds-card-body { padding: 10px; }
  .ds-price { font-size: 1.05rem; }
  .ds-cart-item { grid-template-columns: 64px 1fr; }
  .ds-cart-item > :last-child { grid-column: 1 / -1; }
}
.text-accent { color: var(--ds-accent-2) !important; } .border-accent { border-color: var(--ds-accent) !important; }

/* aba do programa SIA na navegação: fora da lista rolável, sempre visível à direita */
.ds-nav-wrap { display: flex; align-items: stretch; }
.ds-nav-wrap > .ds-nav-list { flex: 1 1 auto; min-width: 0; }
.ds-nav-sia { flex: 0 0 auto; position: relative; display: flex; align-items: stretch; padding-left: 10px; margin-left: 4px; }
.ds-nav-sia::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 1px; background: var(--ds-border); }
.ds-nav-sia > a { display: flex; align-items: center; gap: 8px; padding: 10px 4px 10px 6px; color: #fff; font-size: .9rem; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; }
.ds-nav-sia img { width: 18px; height: 18px; border-radius: 50%; }
.ds-nav-sia b { color: var(--ds-accent-2); font-weight: 700; }
.ds-nav-sia.on > a, .ds-nav-sia > a:hover { border-bottom-color: var(--ds-accent-2); color: #fff; }
@media (max-width: 575px) { .ds-nav-sia > a span { display: none; } .ds-nav-sia > a::after { content: "SIA"; color: var(--ds-accent-2); font-weight: 700; } }
/* hero da home: três caminhos da loja à direita (novo / outlet / leilão) */
.ds-hero { justify-content: space-between; gap: 40px; }
.ds-hero-paths { list-style: none; margin: 0; padding: 0; flex: 0 0 340px; border-left: 1px solid var(--ds-border); }
.ds-hero-paths li + li { border-top: 1px solid var(--ds-border); }
.ds-hero-paths a { display: flex; flex-direction: column; gap: 2px; padding: 14px 0 14px 22px; color: var(--ds-text); position: relative; }
.ds-hero-paths a::after { content: "→"; position: absolute; right: 2px; top: 14px; color: var(--ds-muted); transition: color .15s, transform .15s; }
.ds-hero-paths a:hover { color: #fff; } .ds-hero-paths a:hover::after { color: var(--ds-accent-2); transform: translateX(3px); }
.ds-hero-paths b { font-weight: 600; }
.ds-hero-paths span { font-size: .82rem; color: var(--ds-text-2); }
@media (max-width: 991px) { .ds-hero { flex-direction: column; align-items: stretch; gap: 22px; } .ds-hero-paths { flex: none; border-left: 0; border-top: 1px solid var(--ds-border); } .ds-hero-paths a { padding-left: 0; padding-right: 22px; } }
