:root {
  --pink: #F00020;
  --pink-2: #F00020;
  --bg: #07070a;
  --panel: rgba(22, 22, 25, 0.78);
  --panel-2: rgba(42, 42, 45, 0.68);
  --line: rgba(255,255,255,.12);
  --text: #fff;
  --muted: rgba(255,255,255,.65);
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: #050508;
}

button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }

.background-art {
  position: fixed;
  inset: 72px 0 0;
  z-index: -5;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 0, 72, .24), transparent 35%),
    radial-gradient(circle at 26% 55%, rgba(255, 255, 255, .08), transparent 22%),
    linear-gradient(90deg, rgba(8,9,11,.98), rgba(18,19,23,.8) 45%, rgba(6,6,8,.96)),
    linear-gradient(135deg, #111217, #050507);
}

.background-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(255,0,72,.50) 0 9%, transparent 9% 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 95px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 90px);
  opacity: .85;
}

.background-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0 45%, rgba(0,0,0,.78) 82%, #050508 100%),
    radial-gradient(circle at 66% 48%, rgba(0,0,0,.02), rgba(0,0,0,.72) 70%);
}

.bg-logo {
  position: absolute;
  left: 46%;
  top: 24%;
  transform: translate(-50%, -50%) skew(-10deg);
  font-size: clamp(8rem, 24vw, 24rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.18em;
  color: rgba(255,255,255,.16);
  text-shadow: 0 0 2px rgba(255,255,255,.25);
}

.bg-character {
  position: absolute;
  bottom: 6%;
  width: 250px;
  height: 560px;
  border-radius: 140px 140px 45px 45px;
  background:
    radial-gradient(circle at 50% 10%, rgba(255,255,255,.75) 0 12%, transparent 13%),
    linear-gradient(100deg, rgba(255,255,255,.16), rgba(255,255,255,.03)),
    rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.05);
  filter: blur(.2px);
  opacity: .42;
}

.bg-character::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 34%;
  width: 430px;
  height: 34px;
  border-radius: 999px;
  transform: translateX(-50%) rotate(17deg);
  background: rgba(0,0,0,.72);
  box-shadow: 0 0 0 1px rgba(255,255,255,.05), 0 10px 50px rgba(0,0,0,.5);
}

.bg-character.one { right: 24%; }
.bg-character.two {
  right: 10%;
  bottom: 0;
  transform: scale(.72);
  opacity: .32;
}

.dark-layer {
  position: fixed;
  inset: 72px 0 0;
  z-index: -4;
  background: rgba(0,0,0,.38);
  pointer-events: none;
}

.red-slash {
  position: fixed;
  left: -120px;
  top: 72px;
  z-index: -3;
  width: 460px;
  height: 230px;
  background: var(--pink);
  clip-path: polygon(0 0, 100% 0, 62% 100%, 0% 100%);
  opacity: .85;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 72px;
  padding: 0 280px;
  display: grid;
  grid-template-columns: 260px minmax(260px, 520px) 260px;
  align-items: center;
  gap: 28px;
  background: rgba(8, 8, 11, .96);
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo-box {
  width: 64px;
  height: 22px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.logo-only {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.store-name {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .96rem;
  font-weight: 900;
  letter-spacing: -.03em;
}

.verified {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #3485ff;
  color: #fff;
  font-size: .72rem;
  font-weight: 950;
  flex: 0 0 auto;
}

.search-box {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}

.search-box svg {
  width: 20px;
  height: 20px;
  fill: rgba(255,255,255,.58);
  flex: 0 0 auto;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font-size: .95rem;
}
.search-box input::placeholder { color: rgba(255,255,255,.58); }

.top-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.support-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.035);
  color: rgba(255,255,255,.8);
}
.support-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: .92;
}

.cart-button {
  height: 44px;
  min-width: 128px;
  border: 0;
  border-radius: 9px;
  background: var(--pink);
  color: #030306;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.cart-button b {
  min-width: 20px;
  height: 20px;
  display: none;
  place-items: center;
  border-radius: 999px;
  background: #030306;
  color: #fff;
  font-size: .75rem;
}
.cart-button b:not(:empty) { display: grid; }

.store-layout {
  position: relative;
  z-index: 5;
  padding: 142px 280px 70px;
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  gap: 20px;
}

.side-menu {
  position: sticky;
  top: 142px;
  height: fit-content;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 11px;
  background: rgba(50, 50, 52, .58);
  backdrop-filter: blur(8px);
  display: grid;
  gap: 4px;
}

.category-btn {
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  text-align: left;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: .73rem;
  font-weight: 850;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.category-btn:hover,
.category-btn.active {
  background: rgba(255,255,255,.16);
  transform: translateX(2px);
}

.catalog {
  min-width: 0;
  padding-bottom: 80px;
}

.category-section {
  min-height: 425px;
  scroll-margin-top: 96px;
  margin-bottom: 74px;
}

.section-title {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  margin: 0 0 32px;
  border: 2px solid var(--pink);
  border-radius: 8px;
  background: rgba(255,0,72,.03);
  color: #fff;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: -.03em;
  text-transform: uppercase;
}

.product-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 16px;
}

.product-card {
  min-height: 456px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(9,9,12,.86);
  box-shadow: 0 18px 70px rgba(0,0,0,.35);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
  will-change: transform;
}

.product-card:hover {
  transform: translateY(-9px) scale(1.018);
  border-color: var(--pink);
  background: rgba(12,12,16,.94);
  box-shadow: 0 18px 75px rgba(255,0,72,.18), 0 24px 80px rgba(0,0,0,.5);
}

.product-image {
  position: relative;
  height: 322px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(10,10,14,.82);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .28s ease, filter .28s ease;
}

.product-fallback {
  display: none;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 24px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,0,72,.85), rgba(9,9,12,.95));
  color: #fff;
  font-size: 2rem;
  font-weight: 950;
  letter-spacing: -.05em;
}

.product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0 38%, rgba(255,255,255,.22) 48%, transparent 58% 100%);
  transform: translateX(-120%);
  transition: transform .45s ease;
  pointer-events: none;
}

.product-card:hover .product-img {
  transform: scale(1.08);
  filter: saturate(1.18) contrast(1.08);
}

.product-card:hover .product-image::after {
  transform: translateX(120%);
}

.product-body {
  padding: 16px 13px 13px;
}
.product-body h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}
.price {
  display: block;
  margin-bottom: 14px;
  font-size: 1.08rem;
  font-weight: 950;
}
.buy-btn {
  width: 100%;
  height: 39px;
  border: 0;
  border-radius: 5px;
  background: var(--pink);
  color: #07070a;
  font-weight: 950;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.buy-btn:hover { filter: brightness(1.08); }
.buy-btn.adding {
  animation: addPulse .46s ease;
}

.fly-cart-item {
  position: fixed;
  z-index: 999;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--pink);
  box-shadow: 0 0 22px rgba(255,0,72,.75);
  pointer-events: none;
  animation: flyToCart .72s cubic-bezier(.18,.9,.28,1) forwards;
}

@keyframes addPulse {
  0% { transform: scale(1); }
  35% { transform: scale(.94); }
  65% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes flyToCart {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(var(--fly-x), var(--fly-y)) scale(.2); opacity: 0; }
}

.empty-search {
  padding: 24px;
  border-radius: 10px;
  background: rgba(0,0,0,.55);
  color: var(--muted);
}

.btn, .icon-btn {
  border: 0;
  color: #fff;
  cursor: pointer;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 900;
}
.btn.primary {
  background: var(--pink);
  color: #050508;
}
.btn.full { width: 100%; }

.cart-drawer {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  width: min(430px, 92vw);
  height: 100vh;
  transform: translateX(105%);
  transition: transform .22s ease;
  background: rgba(8, 8, 11, .98);
  border-left: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }

.cart-head, .modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.cart-head h2, .modal-head h2 { margin: 0; }
.cart-head small, .modal-head small { color: var(--muted); }
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: rgba(255,255,255,.08);
  font-size: 1.4rem;
}
.cart-items {
  flex: 1;
  overflow: auto;
  padding: 18px 0;
  display: grid;
  align-content: start;
  gap: 10px;
}
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 13px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
}
.cart-item strong, .cart-item span { display: block; }
.cart-item span { margin-top: 4px; color: var(--muted); font-size: .86rem; }
.cart-item button {
  width: 31px;
  height: 31px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: rgba(255,0,72,.18);
  cursor: pointer;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}
.cart-total strong { font-size: 1.35rem; }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  background: rgba(0,0,0,.68);
  transition: opacity .2s ease;
}
.overlay.show { opacity: 1; pointer-events: auto; }

.checkout-modal {
  width: min(520px, 92vw);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #fff;
  background: rgba(8,8,11,.98);
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
  padding: 0;
}
.checkout-modal::backdrop { background: rgba(0,0,0,.74); }
.checkout-modal form, .payment-content {
  display: grid;
  gap: 13px;
  padding: 24px;
}
input, textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  color: #fff;
  background: rgba(255,255,255,.055);
  padding: 0 13px;
}
textarea {
  min-height: 105px;
  padding-top: 13px;
  resize: vertical;
}
.payment-status {
  padding: 12px 13px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
  font-weight: 850;
}
.payment-status[data-mode="approved"] {
  border-color: rgba(67, 255, 157, .5);
  background: rgba(67,255,157,.1);
}
.payment-status[data-mode="error"] {
  border-color: rgba(255,0,72,.55);
  background: rgba(255,0,72,.12);
}
.qr-wrap {
  display: grid;
  place-items: center;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
}
.qr-wrap img { width: min(260px,100%); height: auto; display: block; }
.pix-label, .payment-note { color: var(--muted); }
#pixCode { min-height: 120px; font-size: .82rem; line-height: 1.45; }

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(120%);
  max-width: 92vw;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 17px;
  background: rgba(8,8,11,.98);
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
  transition: transform .2s ease;
}
.toast.show { transform: translateX(-50%) translateY(0); }

@media (max-width: 1500px) {
  .topbar { padding: 0 160px; }
  .store-layout { padding-left: 160px; padding-right: 160px; }
  .product-row { grid-template-columns: repeat(3, minmax(220px, 1fr)); }
}

@media (max-width: 1100px) {
  .topbar {
    padding: 0 22px;
    grid-template-columns: 190px minmax(200px, 1fr) auto;
  }
  .store-layout { padding: 110px 22px 60px; grid-template-columns: 160px 1fr; }
  .product-row { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .bg-character.one { right: 8%; }
  .bg-character.two { display: none; }
}

@media (max-width: 720px) {
  .topbar {
    height: auto;
    min-height: 72px;
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand cart" "search search";
    gap: 10px;
    padding: 12px;
  }
  .brand { grid-area: brand; }
  .search-box { grid-area: search; }
  .top-actions { grid-area: cart; }
  .support-btn { display: none; }
  .store-layout {
    padding-top: 126px;
    grid-template-columns: 1fr;
  }
  .side-menu {
    position: relative;
    top: 0;
    display: flex;
    overflow-x: auto;
  }
  .category-btn { flex: 0 0 auto; min-width: 100px; text-align: center; }
  .product-row { grid-template-columns: 1fr; }
  .product-image { height: 270px; }
}


/* custom update: modal simplified + exact button/cart styling */
.cart-button {
  position: relative;
  height: 44px;
  min-width: 146px;
  padding: 0 18px;
  border-radius: 12px;
  background: #F00020;
  color: #000;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.cart-button .cart-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
}
.cart-button .cart-icon svg,
.buy-icon svg {
  width: 18px;
  height: 18px;
  fill: #000;
  display: block;
}
.cart-button .cart-label { line-height: 1; }
.cart-button b {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: #fff;
  color: #000;
  font-size: .72rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(0,0,0,.28);
}
.buy-btn {
  height: 44px;
  border-radius: 8px;
  background: #F00020;
  color: #000;
  font-size: .88rem;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.buy-btn:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(255, 10, 84, .18);
}
.buy-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
}
.checkout-modal form {
  gap: 12px;
}
.checkout-modal input {
  min-height: 48px;
  border-radius: 10px;
  background: rgba(255,255,255,.055);
}
.checkout-submit {
  height: 44px;
  border-radius: 8px;
  margin-top: 4px;
  background: #F00020 !important;
  color: #000 !important;
}
.modal-head .icon-btn {
  background: rgba(255,255,255,.08);
  color: #fff;
}


/* final update: uploaded background image + corrected logo visibility */
.background-art {
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,.10)),
    url('/assets/background.png') !important;
  background-size: cover !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
}

.background-art::before {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 1px, transparent 1px 95px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.010) 0 1px, transparent 1px 90px) !important;
  opacity: .18 !important;
}

.background-art::after {
  background:
    linear-gradient(180deg, rgba(0,0,0,.00) 0%, rgba(0,0,0,.22) 50%, rgba(0,0,0,.78) 100%) !important;
}

.bg-logo,
.bg-character,
.red-slash {
  display: none !important;
}

.dark-layer {
  background: rgba(0,0,0,.06) !important;
}

.logo-box {
  width: 84px !important;
  height: 30px !important;
  display: grid !important;
  place-items: center !important;
  overflow: visible !important;
  flex: 0 0 auto !important;
}

.logo-only {
  width: 84px !important;
  height: 30px !important;
  object-fit: contain !important;
  object-position: left center !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.store-name {
  max-width: 170px !important;
}
