/* Vitrine no padrão da referência, com a paleta azul da loja. */

.store-stage {
  width: min(1180px, calc(100% - 64px));
  margin: 20px auto 48px;
}
.store-banner {
  width: 100%;
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #141b27;
}
.store-banner[hidden] { display: none !important; }
.store-banner img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.store-stage .app-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  min-height: 0;
}
.store-stage .sidebar {
  position: sticky;
  top: 92px;
  width: auto;
  height: auto;
  max-height: calc(100vh - 112px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #121820;
  padding: 8px;
}
body.has-coupon-banner .store-stage .sidebar {
  top: 128px;
  max-height: calc(100vh - 148px);
}
@media (min-width: 981px) {
  .store-stage .sidebar-brand { display: none; }
  .store-stage .main-col { padding-bottom: calc(var(--site-footer-h) + 24px); }
  .store-stage .content { padding: 4px 4px 28px 0; }
}

.sidebar-section > .nav-item,
.sidebar-section > .sidebar-label:not(.sidebar-label-catalog),
.sidebar-foot,
.catalog-search-inline,
.catalog-hero .rail-eyebrow { display: none !important; }
.sidebar-label-catalog { display: none !important; }
.category-list { display: flex; flex-direction: column; gap: 2px; }
.cat-item {
  min-height: 42px;
  color: #d7e0ec;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cat-item.active {
  background: rgba(16, 136, 240, 0.18);
  box-shadow: inset 3px 0 0 #1088f0;
}
.cat-has-subs .cat-count { display: none; }
.cat-has-subs::after {
  content: "+";
  margin-left: auto;
  color: #9aa8bc;
  font-weight: 700;
}
.catalog-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 14px;
  padding: 0;
}
.catalog-hero h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.shelf-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 60%, #7eb8f0, #1088f0 55%, transparent 56%);
  box-shadow: 0 0 0 4px rgba(16, 136, 240, 0.18);
}
#catalogSub {
  margin: 0;
  color: #9aa8bc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.catalog-controls { margin-left: auto; }
.view#view-home { display: none !important; }

.coupon-banner {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 7px 16px;
  border: 0;
  background: #1088f0;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.coupon-banner[hidden] { display: none !important; }
.coupon-banner:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
}
.coupon-banner strong {
  padding: 2px 8px;
  border-radius: 6px;
  background: #0c1018;
  color: #fff;
  letter-spacing: 0.12em;
}

.topbar.store-topbar {
  position: sticky;
  top: 0;
  z-index: 45;
  display: flex !important;
  align-items: center;
  gap: 16px;
  height: 72px;
  padding: 0 max(32px, calc((100% - 1180px) / 2));
  background: #0c1018;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
body.has-coupon-banner .store-topbar { top: 36px; }
.store-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
  color: inherit;
  text-decoration: none;
}
.store-brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.store-brand strong {
  display: block;
  font-size: 15px;
  letter-spacing: -0.03em;
}
.store-brand small {
  display: block;
  color: #9aa8bc;
  font-size: 11px;
}
.store-search {
  flex: 1;
  max-width: 560px;
  margin: 0 auto;
}
.store-search input {
  width: 100%;
  height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: #171e2b;
  color: #f4f7fb;
  outline: none;
}
.store-search input:focus {
  border-color: #1088f0;
  box-shadow: 0 0 0 3px rgba(16, 136, 240, 0.22);
}
.store-topbar .topbar-title { display: none; }
.cart-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: #1088f0;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.cart-toggle:hover { background: #3da0f5; }
.cart-toggle:focus-visible,
.card-buy:focus-visible,
.product-card:focus-visible {
  outline: 2px solid #7eb8f0;
  outline-offset: 2px;
}
.cart-toggle em {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #fff;
  color: #0c1018;
  font-style: normal;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}
.cart-toggle em[hidden] { display: none !important; }

.app-shell { min-height: 0; }
@media (min-width: 981px) {
  .sidebar-brand { display: none; }
}
.sidebar-foot { margin-top: auto; }
.nav-item,
.cat-item {
  width: 100%;
  border-radius: 10px;
}
.cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 10px;
  color: #d7e0ec;
  text-align: left;
}
.cat-item.active,
.nav-item.active {
  background: rgba(16, 136, 240, 0.16);
  color: #fff;
}
.cat-name { flex: 1; }
.cat-count {
  margin-left: auto;
  color: #6b7382;
  font-size: 12px;
}

.content {
  background:
    radial-gradient(280px 180px at 100% 8%, rgba(16, 136, 240, 0.08), transparent 70%),
    #0c1018;
}
.site-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  min-height: 250px;
  margin-bottom: 22px;
  padding: 28px 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(420px 220px at 82% 50%, rgba(16, 136, 240, 0.38), transparent 68%),
    linear-gradient(100deg, #121926 0%, #18283f 55%, #101722 100%);
}
.site-hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
}
.rail-head h2,
.catalog-hero h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rail-eyebrow { color: #7eb8f0; }

.product-grid,
.store-rail .product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.product-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  aspect-ratio: 3 / 4.15;
  background: #10151e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: none;
  transform: none;
}
.product-card:hover {
  border-color: rgba(16, 136, 240, 0.55);
  transform: translateY(-2px);
}
.product-card .art {
  grid-area: 1 / 1;
  position: relative;
  aspect-ratio: auto;
  height: 100%;
  min-height: 0;
  background: #0c1018;
}
.product-card .art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-tags {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: calc(100% - 20px);
}
.card-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(8, 12, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.card-tag-launch {
  background: #1088f0;
  border-color: transparent;
}
.card-tag-promo {
  background: #15803d;
  border-color: transparent;
}
.card-tag-locked {
  background: #475569;
  border-color: transparent;
}
.product-card .body {
  grid-area: 1 / 1;
  align-self: end;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 22px 12px 6px;
  background: linear-gradient(180deg, rgba(8, 12, 18, 0) 0%, rgba(8, 12, 18, 0.9) 38%, #10151e 100%);
}
.product-card h3 {
  margin: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}
.product-card .product-price-stack,
.product-card .product-price-row,
.product-card .product-price-old-row { gap: 0 6px; }
.product-card .price-brl {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}
.product-card .price-brl-old,
.product-card .price-gems {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  line-height: 1.2;
}
.card-pix {
  color: #d5deea;
  font-size: 11px;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
.card-buy {
  grid-area: 2 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  margin: 0 8px 8px;
  border-radius: 8px;
  background: #1088f0;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-footer {
  left: 0;
  right: 0;
  padding-left: 16px;
  padding-right: 16px;
}
.site-footer .footer-credit {
  grid-column: 1;
  justify-self: start;
  text-align: left;
}

.modal {
  max-width: min(1180px, calc(100vw - 1.25rem));
}
.modal-shell {
  background: #121821;
  border-radius: 18px;
}
.modal-layout {
  grid-template-columns: minmax(260px, 0.9fr) minmax(340px, 1.15fr) 230px;
}
.modal-media { background: #0c1018; }
.modal-trust {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 56px 14px 16px;
  background: #10151e;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.modal-trust article {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: #171e2b;
}
.modal-trust strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}
.modal-trust p {
  margin: 0;
  color: #9aa8bc;
  font-size: 12px;
  line-height: 1.45;
}
.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checkout-actions .btn.primary,
#cartCheckout {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  background: #1088f0;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.checkout-actions .btn.secondary {
  width: 100%;
  min-height: 40px;
  border-radius: 10px;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.62);
}
.cart-backdrop[hidden] { display: none !important; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  width: min(390px, 100vw);
  height: 100dvh;
  background: #12151c;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  color: #f4f7fb;
}
.cart-drawer[hidden] { display: none !important; }
.cart-head,
.cart-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
}
.cart-head { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.cart-head h2 { margin: 0; font-size: 1.15rem; }
.cart-foot {
  flex-direction: column;
  align-items: stretch;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-height: 62dvh;
  overflow: auto;
}
.cart-note {
  margin: 0;
  color: #9aa8bc;
  font-size: 12px;
  line-height: 1.4;
}
.cart-field {
  display: block;
  margin-top: 8px;
  color: #d5deea;
  font-size: 12px;
  font-weight: 700;
}
.cart-field span { color: #9aa8bc; font-weight: 600; }
.cart-foot input {
  width: 100%;
  height: 38px;
  margin-top: 6px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #0c1018;
  color: #f4f7fb;
}
.cart-inline { display: flex; gap: 8px; }
.cart-inline input { flex: 1; }
.cart-inline .btn { margin-top: 6px; white-space: nowrap; }
.cart-buyer { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cart-buyer input:last-child { grid-column: 1 / -1; }
.cart-hint { margin: 4px 0 0; color: #9aa8bc; font-size: 12px; }
.cart-hint.ok { color: #4ade80; }
.cart-hint.err { color: #f87171; }
.cart-coupon-tag {
  display: inline-flex;
  margin-top: 4px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #15803d;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
}
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  overflow: auto;
}
.cart-empty { color: #9aa8bc; text-align: center; padding: 28px 8px; }
.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #171e2b;
}
.cart-line img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: #0c1018;
}
.cart-line strong { display: block; font-size: 13px; }
.cart-line small,
.cart-line span { display: block; color: #9aa8bc; font-size: 12px; }
.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cart-qty button,
.cart-remove {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: #0c1018;
  color: #fff;
  cursor: pointer;
}
.cart-remove { background: #b42318; }

@media (max-width: 1200px) {
  .product-grid,
  .store-rail .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .modal-layout { grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1fr); }
  .modal-trust { display: none; }
}
@media (max-width: 980px) {
  .store-stage { width: 100%; margin: 0; }
  .store-stage .app-shell { display: block; }
  .store-stage .store-banner { margin: 12px 12px 0; width: auto; }
  .store-stage .sidebar {
    position: fixed;
    top: 0 !important;
    height: 100dvh !important;
    max-height: none;
    border-radius: 0;
  }
  .topbar.store-topbar { padding-left: 12px; padding-right: 12px; }
  .store-brand small,
  .cart-toggle span { display: none; }
  .store-brand { min-width: 0; }
  .store-search { max-width: none; }
  .site-hero { grid-template-columns: 1fr; min-height: 0; padding: 22px; }
  .site-hero-visual { display: none; }
  .product-grid,
  .store-rail .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .product-grid,
  .store-rail .product-grid { grid-template-columns: 1fr; }
  .store-topbar { height: auto; min-height: 64px; padding: 10px 12px; flex-wrap: wrap; }
  .store-search { order: 3; flex: 1 1 100%; }
}
