:root {
  --bg: #05070b;
  --ink: #f2f6ff;
  --paper: rgba(12, 17, 24, 0.82);
  --paper-2: rgba(15, 22, 30, 0.9);
  --accent: #ff6c3d;
  --accent-2: #3ad0ff;
  --line: rgba(184, 206, 240, 0.24);
  --line-strong: rgba(205, 223, 252, 0.42);
  --muted: #a7b6cf;
  --shadow: 0 22px 46px rgba(2, 6, 12, 0.54);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 108, 61, 0.12), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(58, 208, 255, 0.11), transparent 30%),
    linear-gradient(160deg, #05070b 0%, #09101a 45%, #04060a 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

.bg-shape {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 40% 60% 70% 30% / 40% 30% 70% 60%;
  z-index: -1;
  filter: blur(12px);
  opacity: 0.35;
}

.bg-shape-1 {
  top: -90px;
  left: -70px;
  background: #872f18;
  animation: drift 8s ease-in-out infinite alternate;
}

.bg-shape-2 {
  right: -80px;
  bottom: -100px;
  background: #1d4f64;
  animation: drift 9s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(24px) rotate(8deg); }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(6, 10, 16, 0.8);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(14px, 3vw, 36px);
}

.entry-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 32px 16px;
  position: relative;
  isolation: isolate;
  background-color: #111;
  background-image:
    linear-gradient(150deg, rgba(5, 8, 13, 0.68), rgba(5, 8, 13, 0.45) 38%, rgba(5, 8, 13, 0.72)),
    url("assets/Bape milo.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.entry-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 45%);
  z-index: -1;
}

.orb-wrap {
  width: min(230px, 56vw);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.entry-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.45));
  animation: floatOrb 5s ease-in-out infinite alternate;
}

.entry-date {
  margin: 0;
  letter-spacing: 0.18em;
  font-size: 0.88rem;
  font-weight: 700;
  color: #f3f6fb;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.entry-menu {
  display: grid;
  gap: 12px;
  text-align: center;
}

.entry-menu a {
  color: #f7fbff;
  text-decoration: none;
  letter-spacing: 0.14em;
  font-size: clamp(1.1rem, 2.6vw, 1.65rem);
  font-weight: 700;
  transition: transform 0.22s ease, color 0.22s ease, text-shadow 0.22s ease;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.entry-menu a:hover,
.entry-menu a:focus-visible {
  color: #ffba8d;
  transform: translateX(6px);
  text-shadow: 0 2px 20px rgba(255, 121, 73, 0.45);
}

.entry-social {
  margin-top: 16px;
  display: flex;
  gap: 10px;
}

.entry-social a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #f0f5ff;
  border: 1px solid rgba(240, 245, 255, 0.55);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}

.entry-social a:hover,
.entry-social a:focus-visible {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.entry-social svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.entry-social a[aria-label="YouTube"] svg,
.entry-social a[aria-label="TikTok"] svg {
  fill: currentColor;
  stroke: none;
}

.brand {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  letter-spacing: 0.06em;
  text-decoration: none;
  color: #f0f5ff;
}

.menu {
  display: flex;
  gap: 18px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(11, 20, 33, 0.9);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: #f0f5ff;
}

.menu a {
  text-decoration: none;
  color: #d7e5ff;
  font-weight: 500;
}

.menu a:hover,
.menu a:focus-visible {
  color: #ffffff;
}

.cart-btn {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(11, 20, 33, 0.9);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 700;
}

.count {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  display: inline-block;
  min-width: 22px;
  padding: 2px 6px;
  margin-left: 6px;
}

main {
  width: 100%;
  margin: 34px 0 80px;
  padding-inline: clamp(14px, 2.2vw, 34px);
}

#catalogo.panel {
  width: 100%;
  border: none;
  background: rgba(6, 13, 22, 0.92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.hero {
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, rgba(14, 20, 30, 0.95), rgba(8, 13, 20, 0.94));
  padding: clamp(20px, 5vw, 46px);
  border-radius: 24px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.8s ease;
}

.tag {
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  color: #ff966f;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  line-height: 1.04;
  font-size: clamp(1.9rem, 5.4vw, 3.4rem);
}

.hero-text {
  margin-top: 12px;
  max-width: 62ch;
  color: var(--muted);
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid rgba(217, 229, 255, 0.36);
  border-radius: 12px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(2, 6, 12, 0.4);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-primary {
  color: #0b1119;
  background: linear-gradient(120deg, #f8faff, #dbe3ef);
  border-color: rgba(242, 246, 255, 0.7);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  color: #e9f1ff;
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
}

.panel {
  margin-top: 24px;
  background: linear-gradient(145deg, var(--paper), var(--paper-2));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(16px, 3vw, 24px);
  box-shadow: var(--shadow);
  animation: fadeUp 0.7s ease;
}

.panel h2,
.panel h3,
.panel label,
.panel p,
.panel span,
.panel strong {
  color: #eaf1ff;
}

.panel-head {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

input[type="search"],
select {
  width: 100%;
  border: 1px solid rgba(198, 215, 245, 0.25);
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  background: rgba(4, 10, 18, 0.72);
  color: #eef5ff;
}

input::placeholder {
  color: #9eb0ce;
}

.panel-head input[type="search"] {
  width: min(320px, 100%);
}

#catalogo .panel-head input[type="search"] {
  border: none;
  background: rgba(9, 17, 28, 0.86);
}

.filters {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  border: 1px solid rgba(213, 228, 255, 0.32);
  background: rgba(255, 255, 255, 0.03);
  color: #e6f0ff; 
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.filter-chip.active {
  background: rgba(58, 208, 255, 0.24);
  color: #f2f8ff;
  border-color: rgba(58, 208, 255, 0.6);
}

#catalogo .filter-chip {
  border: none;
  background: rgba(255, 255, 255, 0.08);
}

#catalogo .filter-chip.active {
  border: none;
  background: rgba(58, 208, 255, 0.3);
}

.product-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 320px));
  justify-content: center;
  gap: 30px 20px;
}

.admin-panel {
  margin-top: 20px;
}

.admin-form {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  min-width: 0;
}

.admin-form input,
.admin-form select {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  background: rgba(9, 16, 27, 0.88);
  color: #eef5ff;
}

.admin-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.admin-list {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.admin-row {
  background: rgba(9, 16, 27, 0.74);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.orders-heading {
  margin-top: 28px;
}

.orders-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.order-row {
  background: rgba(9, 16, 27, 0.74);
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}

.order-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.order-status {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.order-status-pending {
  background: rgba(255, 193, 61, 0.18);
  color: #ffcf6b;
}

.order-status-paid {
  background: rgba(61, 214, 140, 0.18);
  color: #6fe3a8;
}

.order-status-preparing {
  background: rgba(58, 208, 255, 0.18);
  color: #7fd8ff;
}

.order-status-shipped {
  background: rgba(154, 122, 255, 0.2);
  color: #c1b0ff;
}

.order-status-delivered {
  background: rgba(61, 214, 140, 0.24);
  color: #8ff0bc;
}

.order-status-failed,
.order-status-refunded {
  background: rgba(255, 108, 61, 0.18);
  color: #ff8f68;
}

.order-meta {
  color: #c6d5ee;
  font-size: 0.92rem;
}

.order-items {
  color: #9fb0cc;
  font-size: 0.88rem;
}

.order-status-control label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #c6d5ee;
}

.order-status-control select {
  width: auto;
  padding: 6px 8px;
}

.admin-meta {
  color: #d9e6fc;
  font-size: 0.95rem;
}

.admin-row .btn {
  padding: 8px 12px;
  border: none;
}

.admin-controls {
  display: flex;
  gap: 8px;
}

.look-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  width: 100%;
  max-width: 320px;
}

.look-media {
  width: 100%;
  height: clamp(220px, 28vw, 290px);
  border-radius: 20px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: visible;
}

.look-media::before {
  content: "";
  position: absolute;
  width: clamp(180px, 72%, 300px);
  height: clamp(100px, 56%, 170px);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.22) 45%, rgba(255, 255, 255, 0) 78%);
  filter: blur(10px);
  z-index: 0;
}

.piece-photo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

.piece-shape {
  position: relative;
  z-index: 1;
  width: 76%;
  height: 76%;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.5));
}

.piece-camiseta {
  clip-path: polygon(18% 18%, 31% 9%, 69% 9%, 82% 18%, 92% 31%, 82% 41%, 76% 37%, 76% 88%, 24% 88%, 24% 37%, 18% 41%, 8% 31%);
  background: linear-gradient(160deg, #2b3c57, #1a2331 62%, #314868);
}

.piece-hoodie {
  clip-path: polygon(28% 14%, 39% 6%, 61% 6%, 72% 14%, 81% 28%, 76% 38%, 76% 88%, 24% 88%, 24% 38%, 19% 28%);
  background: linear-gradient(160deg, #4f5662, #3a404b 52%, #5d6470);
}

.piece-cargo {
  clip-path: polygon(30% 10%, 70% 10%, 76% 28%, 67% 88%, 51% 88%, 47% 58%, 43% 88%, 25% 88%, 24% 28%);
  background: linear-gradient(180deg, #47513d, #2f3629 60%, #5a664d);
}

.piece-tenis {
  clip-path: polygon(12% 67%, 22% 58%, 45% 58%, 59% 46%, 80% 48%, 93% 63%, 93% 74%, 76% 84%, 16% 84%, 8% 76%);
  background: linear-gradient(130deg, #d9dde6, #b5bdcb 56%, #eff2f8);
}

.look-name {
  margin: 0;
  font-size: 1.07rem;
  color: #f2f6ff;
}

.look-price {
  margin: 0;
  font-weight: 700;
  color: #f2f6ff;
  letter-spacing: 0.02em;
}

.look-card .btn {
  min-width: 170px;
}

#catalogo .look-card .btn {
  border: none;
}

.styler-grid {
  margin: 12px 0 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.styler-grid label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.recommendation {
  margin-top: 12px;
  min-height: 28px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 108, 61, 0.08);
  border: 1px dashed rgba(255, 170, 138, 0.44);
}

.about p {
  max-width: 68ch;
  color: #b6c6df;
}

.site-footer {
  margin: 24px 0 100px;
  padding: 0 clamp(16px, 2.4vw, 36px);
  text-align: center;
  color: #c6d5ee;
  display: grid;
  gap: 6px;
}

.site-footer p {
  margin: 0;
  letter-spacing: 0.02em;
}

.cart-drawer {
  position: fixed;
  right: -420px;
  top: 0;
  width: min(390px, 92vw);
  height: 100vh;
  background: linear-gradient(150deg, #0b1119, #060b11);
  border-left: 1px solid var(--line);
  box-shadow: -12px 0 30px rgba(1, 5, 10, 0.52);
  padding: 14px;
  display: flex;
  flex-direction: column;
  transition: right 0.32s ease;
  z-index: 30;
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.icon-btn {
  border: 1px solid rgba(201, 217, 245, 0.35);
  background: rgba(255, 255, 255, 0.03);
  color: #e8f0ff;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow: auto;
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 8px;
  margin: 12px 0;
}

.cart-item {
  border: 1px solid rgba(190, 210, 242, 0.24);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 6px;
  align-content: start;
  background: rgba(255, 255, 255, 0.02);
}

.cart-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.cart-row-main {
  align-items: flex-start;
}

.cart-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cart-main strong {
  line-height: 1.2;
}

.cart-thumb,
.cart-thumb-wrap {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-thumb::before,
.cart-thumb-wrap::before {
  content: "";
  position: absolute;
  width: 80%;
  height: 54%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.12) 45%, rgba(255, 255, 255, 0) 78%);
  filter: blur(5px);
  z-index: 0;
}

.cart-thumb .piece-photo,
.cart-thumb-wrap .piece-photo {
  max-width: 92%;
  max-height: 92%;
  z-index: 1;
}

.cart-thumb .piece-shape,
.cart-thumb-wrap .piece-shape {
  width: 86%;
  height: 86%;
  z-index: 1;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty button {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(200, 217, 246, 0.35);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  color: #ecf3ff;
  cursor: pointer;
}

.btn-full {
  width: 100%;
}

.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(90px);
  bottom: 16px;
  background: rgba(7, 15, 24, 0.95);
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  opacity: 0;
  transition: all 0.28s ease;
  z-index: 50;
  border: 1px solid rgba(187, 208, 244, 0.28);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.login-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 5, 9, 0.72);
  display: grid;
  place-items: center;
  z-index: 60;
  padding: 16px;
}

.login-modal[hidden] {
  display: none;
}

.login-form {
  width: min(360px, 100%);
  background: linear-gradient(150deg, #0b1119, #060b11);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow);
}

.login-form h3 {
  margin: 0;
}

.login-form label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
}

.login-form input {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  background: rgba(9, 16, 27, 0.88);
  color: #eef5ff;
}

.login-error {
  margin: 0;
  color: #ff9b7a;
  font-size: 0.9rem;
}

.login-note {
  margin: 0;
  color: #7fd8ff;
  font-size: 0.9rem;
}

.login-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.checkout-form {
  width: min(420px, 100%);
  max-height: 90vh;
  overflow-y: auto;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatOrb {
  from {
    transform: translateY(0) rotate(-2deg);
  }
  to {
    transform: translateY(10px) rotate(5deg);
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: flex;
    order: 2;
  }

  .cart-btn {
    order: 3;
  }

  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 10px clamp(14px, 3vw, 36px) 16px;
    background: rgba(6, 10, 16, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .menu.open {
    display: flex;
  }

  .menu a {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .hero {
    border-radius: 18px;
  }

  .entry-screen {
    gap: 18px;
  }
}
