:root {
  color-scheme: dark;
  --bg: #050712;
  --panel: rgba(14, 18, 35, 0.86);
  --card: #151b30;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --ink: #f8fbff;
  --muted: #a9b4c7;
  --soft: #d7def0;
  --violet: #a855f7;
  --magenta: #e249ff;
  --cyan: #25d5ff;
  --gold: #f6c244;
  --danger: #ef4444;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.featured-categories button {
  --glow: #a855f7;
  --glow-rgb: 168, 85, 247;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.featured-categories .blue {
  --glow: #25d5ff;
  --glow-rgb: 37, 213, 255;
}

.featured-categories .red {
  --glow: #ff5964;
  --glow-rgb: 255, 89, 100;
}

.featured-categories .cyan {
  --glow: #2dd4bf;
  --glow-rgb: 45, 212, 191;
}

.featured-categories .gold {
  --glow: #f6c244;
  --glow-rgb: 246, 194, 68;
}

.featured-categories button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border: 1px solid transparent;
  border-radius: inherit;
  opacity: 0;
  background:
    linear-gradient(115deg, transparent 0 25%, var(--glow) 34%, transparent 42% 62%, var(--glow) 70%, transparent 78%) border-box,
    linear-gradient(rgba(var(--glow-rgb), 0.18), transparent) border-box;
  background-size: 220% 100%, 100% 100%;
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: opacity 180ms ease;
}

.featured-categories button:hover,
.featured-categories button:focus-visible {
  border-color: var(--glow);
  box-shadow:
    0 0 0 1px rgba(var(--glow-rgb), 0.52),
    0 0 24px rgba(var(--glow-rgb), 0.42),
    0 22px 48px rgba(0, 0, 0, 0.36);
}

.featured-categories button:hover::after,
.featured-categories button:focus-visible::after {
  opacity: 1;
  animation: neon-border-spark 1200ms linear infinite;
}

.featured-categories button:hover .category-art,
.featured-categories button:focus-visible .category-art {
  filter: saturate(1.18) contrast(1.05);
  transform: scale(1.045);
}

.featured-categories .category-copy,
.category-arrow {
  z-index: 3;
}

@keyframes neon-border-spark {
  from {
    background-position: 180% 0, 0 0;
  }

  to {
    background-position: -40% 0, 0 0;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 16%, rgba(37, 213, 255, 0.14), transparent 24rem),
    radial-gradient(circle at 82% 8%, rgba(226, 73, 255, 0.18), transparent 22rem),
    linear-gradient(180deg, #050712 0%, #070a16 52%, #0b1020 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 80%);
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
.admin-link,
.primary-cta,
.ghost-cta,
.outline-link {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

button:hover,
.admin-link:hover,
.primary-cta:hover,
.ghost-cta:hover,
.outline-link:hover {
  transform: translateY(-1px);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: rgba(6, 9, 19, 0.74);
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(37, 213, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(37, 213, 255, 0.14);
}

textarea {
  min-height: 88px;
  resize: vertical;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%), linear-gradient(135deg, var(--cyan) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 13px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.store-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 86px;
  padding: 14px clamp(16px, 4vw, 54px);
  display: grid;
  grid-template-columns: auto minmax(380px, 1fr) auto;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 18, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: max-content;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(168, 85, 247, 0.65);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.94), rgba(37, 213, 255, 0.16));
  box-shadow: 0 0 32px rgba(168, 85, 247, 0.45);
  font-size: 15px;
  font-weight: 900;
}

.brand strong {
  display: block;
  letter-spacing: 4px;
  font-size: 19px;
}

.brand strong span {
  color: var(--violet);
}

.brand small {
  display: block;
  margin-top: 3px;
  letter-spacing: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.3vw, 34px);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  padding: 12px 0;
  color: var(--soft);
  text-decoration: none;
}

.main-nav a.active,
.main-nav a:hover {
  color: #fff;
}

.main-nav a.active::after,
.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--violet), var(--magenta));
}

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

.header-search {
  position: relative;
  display: block;
  width: min(320px, 22vw);
}

.header-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.header-search input {
  height: 52px;
  padding-right: 42px;
  border-radius: 10px;
  background: rgba(8, 11, 25, 0.78);
}

.header-search::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--soft);
  border-radius: 50%;
  transform: translateY(-55%);
  opacity: 0.9;
}

.header-search::before {
  content: "";
  position: absolute;
  top: calc(50% + 7px);
  right: 15px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--soft);
  transform: rotate(45deg);
  z-index: 1;
}

.icon-button {
  position: relative;
  min-width: 76px;
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

#cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--violet);
  font-size: 12px;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.7);
}

.admin-link {
  color: #fff;
  border-color: rgba(37, 213, 255, 0.28);
  background: rgba(37, 213, 255, 0.1);
}

.hero {
  position: relative;
  min-height: min(680px, calc(100vh - 86px));
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 82px clamp(18px, 6vw, 120px) 120px;
  border-bottom: 1px solid var(--line);
}

.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.16) contrast(1.04);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 7, 18, 0.94) 0%, rgba(5, 7, 18, 0.72) 34%, rgba(5, 7, 18, 0.26) 68%, rgba(5, 7, 18, 0.74) 100%),
    linear-gradient(180deg, rgba(5, 7, 18, 0.1) 0%, rgba(5, 7, 18, 0.42) 65%, #050712 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(580px, 100%);
}

.hero-kicker,
.eyebrow {
  margin-bottom: 10px;
  color: #bb82ff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(48px, 7.4vw, 94px);
  line-height: 0.98;
  font-style: italic;
  font-weight: 950;
  text-transform: uppercase;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(90deg, #8b5cf6, #e249ff, #25d5ff);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy {
  width: min(500px, 100%);
  margin-bottom: 24px;
  color: #dce4f6;
  font-size: 18px;
  line-height: 1.45;
}

.hero-actions,
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.primary-cta {
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #d946ef);
  box-shadow: 0 15px 36px rgba(168, 85, 247, 0.32);
}

.ghost-cta,
.outline-link {
  color: #d9c9ff;
  border-color: rgba(168, 85, 247, 0.36);
  background: rgba(255, 255, 255, 0.04);
}

.hero-proof {
  margin-top: 32px;
}

.hero-proof span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 800;
}

.benefits {
  position: relative;
  z-index: 2;
  width: min(1760px, calc(100% - clamp(32px, 8vw, 108px)));
  margin: -58px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(15, 21, 40, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.benefits article {
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 108px;
  padding: 22px 28px;
  border-right: 1px solid var(--line);
}

.benefits article:last-child {
  border-right: 0;
}

.benefits span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(37, 213, 255, 0.42);
  border-radius: 50%;
  color: var(--cyan);
  font-weight: 950;
}

.benefits strong {
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.benefits p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.category-showcase,
.shop-layout,
.admin-layout {
  width: min(1760px, calc(100% - clamp(32px, 8vw, 108px)));
  margin-inline: auto;
}

.category-showcase {
  padding: 30px 0 16px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 16px;
}

.section-head h2,
.catalog h2,
.cart-panel h2 {
  margin-bottom: 0;
  font-size: clamp(22px, 2.2vw, 32px);
}

.featured-categories {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.featured-categories button {
  position: relative;
  min-height: 160px;
  overflow: hidden;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  text-align: center;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.34), rgba(10, 14, 30, 0.92));
}

.featured-categories button::before {
  content: "";
  position: absolute;
  inset: auto -30px -42px auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.featured-categories strong {
  position: relative;
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
  text-transform: uppercase;
}

.featured-categories span {
  position: relative;
  color: var(--muted);
  font-weight: 700;
}

.featured-categories .blue {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.42), rgba(10, 14, 30, 0.92));
}

.featured-categories .red {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.4), rgba(10, 14, 30, 0.92));
}

.featured-categories .cyan {
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.42), rgba(10, 14, 30, 0.92));
}

.featured-categories .gold {
  background: linear-gradient(135deg, rgba(202, 138, 4, 0.48), rgba(10, 14, 30, 0.92));
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 22px;
  padding: 22px 0 56px;
  align-items: start;
}

.catalog,
.cart-panel,
.admin-card,
.sync-card,
.modal-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 18, 34, 0.82);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.catalog {
  padding: 18px;
}

.status-banner {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  border: 1px solid rgba(37, 213, 255, 0.22);
  border-radius: 8px;
  padding: 13px 15px;
  color: #d7f6ff;
  background: rgba(37, 213, 255, 0.08);
}

.status-banner strong {
  color: #fff;
}

.status-banner span {
  color: var(--muted);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 10px;
  margin-bottom: 18px;
}

.toolbar button,
.load-more,
.order-form button,
#modal-add,
.save-product,
#save-settings,
#manual-sync,
.order-actions button {
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #d946ef);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #090d1c;
}

.image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.product-info {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.product-info h3 {
  margin: 0;
  min-height: 44px;
  font-size: 16px;
  line-height: 1.35;
}

.muted,
.product-info p {
  color: var(--muted);
}

.product-info p {
  margin: 0;
}

.price-row,
.total-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.price-row strong,
.total-row strong {
  color: #fff;
  font-size: 18px;
}

.product-actions {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 8px;
}

.product-actions input {
  text-align: center;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 70;
}

.cart-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(420px, 100vw);
  padding: 18px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 80;
  overflow-y: auto;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-panel-head h2 {
  margin: 0;
}

#cart-close {
  min-height: 34px;
  min-width: 34px;
  border-radius: 999px;
}

.cart-items {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.04);
}

.cart-item p {
  margin-bottom: 5px;
}

.cart-item button {
  min-height: 34px;
  padding: 7px 10px;
  color: #ffd7dc;
  border-color: rgba(255, 89, 100, 0.28);
  background: rgba(255, 89, 100, 0.12);
}

.total-row {
  margin: 12px 0 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.order-form {
  display: grid;
  gap: 10px;
}

.message {
  min-height: 20px;
  margin: 12px 0 0;
  color: #d7f6ff;
}

.hidden {
  display: none !important;
}

.load-more {
  width: 100%;
  margin-top: 18px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(2, 4, 12, 0.78);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  width: min(980px, 100%);
  max-height: min(880px, 92vh);
  overflow: auto;
  padding: 20px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.modal-content {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  gap: 24px;
}

.modal-main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080c19;
}

.modal-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.modal-thumbs button {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: transparent;
}

.modal-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.modal-details {
  padding-right: 42px;
}

.detail-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.detail-list p {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.detail-list span {
  color: var(--muted);
}

.admin-layout {
  padding: 26px 0 52px;
}

.topbar {
  min-height: 86px;
  padding: 16px clamp(16px, 4vw, 54px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 18, 0.9);
}

.topbar h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
}

.topbar p {
  margin-bottom: 0;
  color: var(--muted);
}

.admin-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  padding: 24px clamp(16px, 4vw, 54px);
}

.login-box,
.admin-card,
.sync-card,
.settings-form {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(13, 18, 34, 0.86);
}

.orders,
.admin-products,
.sync-runs {
  display: grid;
  gap: 12px;
}

.order-card,
.admin-product,
.sync-run {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.order-actions .cancel {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

.admin-product {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) repeat(4, minmax(120px, 160px));
  gap: 10px;
  align-items: center;
}

.status {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 9px;
  color: #d7f6ff;
  background: rgba(37, 213, 255, 0.12);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .store-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-search {
    width: min(360px, 42vw);
  }

  .featured-categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .store-header {
    position: relative;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .header-actions {
    justify-content: stretch;
  }

  .header-search {
    width: 100%;
    flex: 1 1 auto;
  }

  .hero {
    min-height: 680px;
    align-items: end;
    padding: 80px 22px 92px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(5, 7, 18, 0.88), rgba(5, 7, 18, 0.5)),
      linear-gradient(180deg, rgba(5, 7, 18, 0.16), #050712 86%);
  }

  .benefits,
  .shop-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .benefits {
    margin-top: -34px;
  }

  .benefits article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .benefits article:last-child {
    border-bottom: 0;
  }

  .featured-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar,
  .product-actions,
  .admin-product,
  .modal-content {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    width: 100vw;
  }

  .modal-details {
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  .brand strong {
    font-size: 15px;
    letter-spacing: 3px;
  }

  .brand small {
    letter-spacing: 5px;
  }

  .main-nav {
    gap: 18px;
    font-size: 12px;
  }

  .header-actions {
    display: grid;
    grid-template-columns: 1fr auto auto;
  }

  .icon-button {
    min-width: 58px;
    padding-inline: 10px;
  }

  .admin-link {
    padding-inline: 12px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .category-showcase,
  .shop-layout,
  .benefits {
    width: calc(100% - 28px);
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .featured-categories {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-info {
    padding: 11px;
  }

  .product-info h3 {
    min-height: 58px;
    font-size: 14px;
  }
}

/* Home polish pass */
body {
  font-family: Montserrat, Inter, Arial, Helvetica, sans-serif;
}

.hero h1 {
  font-family: Oswald, Montserrat, Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

.icon-button,
.icon-link {
  display: inline-grid;
  place-items: center;
  width: 54px;
  min-width: 54px;
  height: 54px;
  padding: 0;
}

.icon-button svg,
.icon-link svg,
.benefits svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-link.icon-link {
  border-color: rgba(168, 85, 247, 0.34);
  background: rgba(255, 255, 255, 0.04);
}

.benefits article {
  position: relative;
}

.benefits article::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  pointer-events: none;
}

.benefits span {
  width: 56px;
  height: 56px;
  border-radius: 18px;
}

.benefit-secure span {
  color: #b65cff;
  border-color: rgba(182, 92, 255, 0.54);
  background: rgba(182, 92, 255, 0.1);
}

.benefit-secure::before {
  background: #b65cff;
}

.benefit-shipping span {
  color: #25d5ff;
  border-color: rgba(37, 213, 255, 0.54);
  background: rgba(37, 213, 255, 0.1);
}

.benefit-shipping::before {
  background: #25d5ff;
}

.benefit-price span {
  color: #ff5964;
  border-color: rgba(255, 89, 100, 0.54);
  background: rgba(255, 89, 100, 0.1);
}

.benefit-price::before {
  background: #ff5964;
}

.benefit-support span {
  color: #9be56d;
  border-color: rgba(155, 229, 109, 0.54);
  background: rgba(155, 229, 109, 0.1);
}

.benefit-support::before {
  background: #9be56d;
}

.featured-categories {
  grid-template-columns: repeat(5, minmax(180px, 1fr));
}

.featured-categories button {
  isolation: isolate;
  min-height: 170px;
  padding: 20px;
}

.featured-categories .category-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(8, 11, 25, 0.86) 0%, rgba(8, 11, 25, 0.36) 58%, rgba(8, 11, 25, 0.08) 100%),
    var(--category-image, linear-gradient(135deg, transparent, transparent)),
    radial-gradient(circle at 78% 38%, rgba(255, 255, 255, 0.28), transparent 44%),
    linear-gradient(135deg, rgba(168, 85, 247, 0.66), rgba(10, 14, 30, 0.95));
  background-position: center, right center, center, center;
  background-repeat: no-repeat;
  background-size: cover, auto 124%, cover, cover;
}

.featured-categories button::before {
  display: none;
}

.featured-categories .blue .category-art {
  background:
    linear-gradient(90deg, rgba(8, 11, 25, 0.86), rgba(8, 11, 25, 0.34)),
    var(--category-image, linear-gradient(135deg, transparent, transparent)),
    radial-gradient(circle at 78% 38%, rgba(37, 213, 255, 0.42), transparent 44%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.74), rgba(10, 14, 30, 0.95));
}

.featured-categories .red .category-art {
  background:
    linear-gradient(90deg, rgba(8, 11, 25, 0.86), rgba(8, 11, 25, 0.34)),
    var(--category-image, linear-gradient(135deg, transparent, transparent)),
    radial-gradient(circle at 78% 38%, rgba(255, 89, 100, 0.45), transparent 44%),
    linear-gradient(135deg, rgba(185, 28, 28, 0.74), rgba(10, 14, 30, 0.95));
}

.featured-categories .cyan .category-art {
  background:
    linear-gradient(90deg, rgba(8, 11, 25, 0.86), rgba(8, 11, 25, 0.34)),
    var(--category-image, linear-gradient(135deg, transparent, transparent)),
    radial-gradient(circle at 78% 38%, rgba(45, 212, 191, 0.45), transparent 44%),
    linear-gradient(135deg, rgba(8, 145, 178, 0.74), rgba(10, 14, 30, 0.95));
}

.featured-categories .gold .category-art {
  background:
    linear-gradient(90deg, rgba(8, 11, 25, 0.88) 0%, rgba(8, 11, 25, 0.58) 43%, rgba(8, 11, 25, 0.12) 100%),
    var(--category-image, linear-gradient(135deg, transparent, transparent)),
    radial-gradient(circle at 78% 38%, rgba(246, 194, 68, 0.48), transparent 44%),
    linear-gradient(135deg, rgba(161, 98, 7, 0.74), rgba(10, 14, 30, 0.95));
}

.featured-categories .blue .category-art,
.featured-categories .red .category-art,
.featured-categories .cyan .category-art,
.featured-categories .gold .category-art {
  background-position: center, right center, center, center;
  background-repeat: no-repeat;
  background-size: cover, auto 124%, cover, cover;
}

.category-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  max-width: 68%;
}

.featured-categories .category-copy strong {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.08;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.featured-categories .category-copy em {
  color: #e4e9f7;
  font-size: 12px;
  line-height: 1.25;
  font-style: normal;
  font-weight: 700;
}

.featured-categories .category-copy small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
}

.category-arrow {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: #fff;
  font-style: normal;
  font-weight: 900;
}

.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  align-items: stretch;
}

.product-card {
  --product-card-bg: #f8f8fb;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  color: #f9fbff;
  background: #0d1322;
  box-shadow: none;
}

.product-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-2px);
  transition: transform 160ms ease, border-color 160ms ease;
}

.product-card img {
  width: 100%;
  aspect-ratio: 320 / 280;
  object-fit: contain;
  padding: 28px;
  background: var(--product-card-bg);
}

.product-body {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  flex: 1;
  min-height: 224px;
  padding: 18px 20px 20px;
  border-top: 1px solid var(--line);
}

.product-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  max-width: calc(100% - 42px);
  padding: 8px 14px 7px;
  overflow: hidden;
  color: #fff;
  background: #000;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-badge::after {
  content: "";
  position: absolute;
  top: 0;
  right: -18px;
  border-style: solid;
  border-width: 31px 18px 0 0;
  border-color: #000 transparent transparent transparent;
}

.product-category {
  margin: 0;
  overflow: hidden;
  color: #bb82ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-body h3 {
  display: -webkit-box;
  min-height: 46px;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-specs {
  display: grid;
  gap: 5px;
  min-height: 84px;
  margin: 0;
  padding: 0;
  color: #c5cedf;
  font-size: 13px;
  line-height: 1.35;
  list-style: none;
}

.product-specs li {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-specs li::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: 2px;
  background: var(--cyan);
}

.price-row {
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 14px;
}

.price-row span:first-child {
  display: grid;
  gap: 1px;
}

.price-row small {
  color: #aab4c7;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.price-row strong {
  font-size: 21px;
  line-height: 1;
}

.card-actions {
  display: flex;
  gap: 8px;
  align-items: end;
}

.card-actions button {
  min-height: 38px;
  border-radius: 0;
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.quick-view {
  display: grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.quick-view svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-actions button[data-add] {
  color: #fff;
  background: #000;
}

.card-actions button[data-add]:hover {
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #d946ef);
}

.secondary-button {
  color: #d9c9ff;
  border-color: rgba(168, 85, 247, 0.32);
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 1180px) {
  .store-header {
    grid-template-columns: 1fr;
  }

  .header-actions {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 54px 54px;
    width: 100%;
  }

  .header-search {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .store-header {
    min-height: 0;
    padding: 14px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 14px;
    width: 100%;
    padding-bottom: 2px;
    overflow: visible;
    font-size: 12px;
  }

  .main-nav a {
    padding: 7px 0;
    text-align: center;
  }

  .header-actions {
    grid-template-columns: 1fr 50px 50px;
  }

  .icon-button,
  .icon-link {
    width: 50px;
    min-width: 50px;
    height: 50px;
  }

  .hero {
    min-height: 640px;
    padding-top: 54px;
  }

  .benefits article {
    min-height: 96px;
    padding: 18px;
  }

  .featured-categories {
    grid-template-columns: 1fr;
  }

  .featured-categories button {
    min-height: 136px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card img {
    aspect-ratio: 320 / 245;
    padding: 8px;
  }

  .product-body {
    padding: 11px;
  }

  .product-body h3 {
    min-height: 40px;
    font-size: 14px;
  }

  .product-description {
    display: none;
  }

  .product-specs {
    min-height: 0;
  }

  .card-actions button[data-add] {
    min-width: 92px;
  }
}

.featured-categories button {
  --glow: #a855f7;
  --glow-rgb: 168, 85, 247;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.featured-categories .blue {
  --glow: #25d5ff;
  --glow-rgb: 37, 213, 255;
}

.featured-categories .red {
  --glow: #ff5964;
  --glow-rgb: 255, 89, 100;
}

.featured-categories .cyan {
  --glow: #2dd4bf;
  --glow-rgb: 45, 212, 191;
}

.featured-categories .gold {
  --glow: #f6c244;
  --glow-rgb: 246, 194, 68;
}

.featured-categories .category-copy,
.featured-categories .category-arrow {
  position: relative;
  z-index: 3;
}

.featured-categories button:hover,
.featured-categories button:focus-visible {
  border-color: var(--glow);
  box-shadow:
    0 0 0 1px rgba(var(--glow-rgb), 0.55),
    0 0 24px rgba(var(--glow-rgb), 0.42),
    0 22px 48px rgba(0, 0, 0, 0.36);
}

.featured-categories button:hover::after,
.featured-categories button:focus-visible::after {
  opacity: 1;
  animation: neon-border-spark 1200ms linear infinite;
}

.featured-categories button:hover .category-art,
.featured-categories button:focus-visible .category-art {
  filter: saturate(1.2) contrast(1.08) brightness(1.04);
  transform: scale(1.05);
}

.featured-categories .gold {
  background:
    linear-gradient(135deg, rgba(255, 213, 79, 0.38), rgba(167, 103, 6, 0.42) 48%, rgba(10, 14, 30, 0.9)),
    rgba(10, 14, 30, 0.95);
  border-color: rgba(246, 194, 68, 0.34);
}

.featured-categories .gold .category-art {
  background:
    linear-gradient(90deg, rgba(39, 25, 4, 0.86) 0%, rgba(90, 57, 8, 0.6) 42%, rgba(246, 194, 68, 0.1) 100%),
    var(--category-image, linear-gradient(135deg, transparent, transparent)),
    radial-gradient(circle at 76% 42%, rgba(255, 224, 102, 0.58), transparent 42%),
    linear-gradient(135deg, rgba(236, 178, 39, 0.88), rgba(116, 71, 8, 0.86) 48%, rgba(10, 14, 30, 0.95));
  background-position: center, right center, center, center;
  background-repeat: no-repeat;
  background-size: cover, auto 122%, cover, cover;
}

.featured-categories .gold .category-copy {
  text-shadow: 0 2px 12px rgba(30, 20, 4, 0.72);
}

.featured-categories .gold:hover,
.featured-categories .gold:focus-visible {
  box-shadow:
    0 0 0 1px rgba(246, 194, 68, 0.66),
    0 0 26px rgba(246, 194, 68, 0.5),
    0 0 44px rgba(255, 213, 79, 0.18),
    0 22px 48px rgba(0, 0, 0, 0.36);
}

body {
  background:
    radial-gradient(circle at 18% 12%, rgba(168, 85, 247, 0.12), transparent 22rem),
    radial-gradient(circle at 82% 6%, rgba(37, 213, 255, 0.1), transparent 20rem),
    #000;
}

body::before {
  opacity: 0.42;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.64), transparent 76%);
}

.site-header,
.topbar {
  background: rgba(0, 0, 0, 0.82);
}

.shop-layout,
.cart-panel,
.product-card,
.modal-panel,
.admin-card,
.admin-product,
.orders-list article,
.order-detail {
  background-color: rgba(7, 7, 10, 0.92);
}

.modal {
  padding: clamp(12px, 2.6vw, 34px);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
}

.modal-panel {
  width: min(1180px, 100%);
  max-height: min(860px, 92vh);
  padding: clamp(16px, 2.4vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(18, 18, 22, 0.98), rgba(0, 0, 0, 0.96)),
    #050505;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(168, 85, 247, 0.08);
}

.modal-close {
  top: 18px;
  right: 18px;
  border-radius: 50%;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: var(--violet);
  background: rgba(168, 85, 247, 0.18);
}

.modal-content {
  grid-template-columns: minmax(320px, 535px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: start;
}

.modal-gallery {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.modal-main-image {
  aspect-ratio: 1 / 1;
  padding: clamp(12px, 2vw, 22px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.1), transparent 18rem),
    #f7f7f8;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.modal-thumbs {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.modal-thumbs button {
  border-radius: 10px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.modal-thumbs button:hover,
.modal-thumbs button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.72);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.22);
}

.modal-thumbs img {
  padding: 6px;
  object-fit: contain;
  background: #f7f7f8;
}

.modal-details {
  padding-right: 46px;
}

.modal-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.modal-kicker .eyebrow {
  margin: 0;
}

.modal-stock-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid rgba(155, 229, 109, 0.32);
  border-radius: 999px;
  color: #c7ff9f;
  background: rgba(155, 229, 109, 0.1);
  font-size: 13px;
  font-weight: 800;
}

.modal-details h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.02;
  letter-spacing: 0;
}

.modal-details > .muted {
  max-width: 56ch;
  color: #c8cedb;
  line-height: 1.6;
}

.modal-price-row {
  display: grid;
  gap: 6px;
  margin: 22px 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(37, 213, 255, 0.08)),
    rgba(255, 255, 255, 0.04);
}

.modal-price-row span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.modal-price-row strong {
  display: block;
  color: #fff;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
}

.modal-price-row small {
  color: var(--muted);
  font-size: 14px;
}

.modal-buy-box {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.modal-quantity {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.modal-quantity button,
.modal-quantity input {
  width: 100%;
  height: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  text-align: center;
  font-weight: 900;
}

.modal-quantity button {
  min-width: 0;
  padding: 0;
  font-size: 20px;
}

.modal-quantity button:hover,
.modal-quantity button:focus-visible {
  color: #fff;
  background: rgba(168, 85, 247, 0.22);
}

.modal-quantity input {
  padding: 0;
  border-inline: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 16px;
}

#modal-add {
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #e249ff);
  box-shadow: 0 18px 34px rgba(168, 85, 247, 0.24);
  font-size: 15px;
  font-weight: 900;
}

#modal-add:hover,
#modal-add:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(226, 73, 255, 0.28);
}

.modal-assurances {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.modal-assurances article {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.modal-assurances strong,
.modal-assurances span {
  display: block;
}

.modal-assurances strong {
  margin-bottom: 5px;
  color: #fff;
  font-size: 14px;
}

.modal-assurances span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.detail-list {
  padding: 14px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-list p {
  padding-bottom: 10px;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.detail-list p:last-child {
  border-bottom: 0;
}

.admin-product-data {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(246, 194, 68, 0.24);
  border-radius: 6px;
  background: rgba(246, 194, 68, 0.055);
}

.admin-product-data::before {
  content: "Datos internos";
  display: block;
  margin-bottom: 10px;
  color: #f6c244;
  font-size: 12px;
  font-weight: 700;
}

.admin-product-data.hidden,
#modal-detail-text.hidden {
  display: none;
}

@media (max-width: 900px) {
  .modal-content {
    grid-template-columns: 1fr;
  }

  .modal-details {
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  .modal {
    padding: 0;
    place-items: stretch;
  }

  .modal-panel {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
    padding: 15px;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(0, 0, 0, 0.72);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.44);
  }

  .modal-content {
    gap: 18px;
  }

  .modal-main-image {
    border-radius: 12px;
  }

  .modal-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .modal-details h2 {
    font-size: 28px;
  }

  .modal-buy-box,
  .modal-assurances {
    grid-template-columns: 1fr;
  }

  .modal-quantity {
    grid-template-columns: 52px 1fr 52px;
  }
}

:root {
  --bg: #000;
  --panel: rgba(8, 8, 12, 0.9);
  --card: #09090d;
}

body {
  background: #000;
}

main,
.category-showcase,
.shop-layout {
  background: transparent;
}

.shop-layout {
  grid-template-columns: 1fr;
}

.catalog,
.admin-card,
.sync-card,
.modal-panel {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    #050505;
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.46);
}

.status-banner {
  color: #f7f3ff;
  border-color: rgba(168, 85, 247, 0.28);
  background:
    linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(255, 255, 255, 0.025)),
    #060606;
}

.status-banner span {
  color: #c8c8d2;
}

.toolbar select,
.toolbar input,
input,
textarea {
  background-color: #050505;
}

.product-card {
  background: #050505;
  border-color: rgba(255, 255, 255, 0.12);
}

.product-card:hover {
  background: #070707;
}

.product-body {
  background: #050505;
}

.store-header {
  background:
    linear-gradient(180deg, rgba(12, 12, 14, 0.96), rgba(0, 0, 0, 0.92)),
    #000;
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42);
}

.store-header::before {
  opacity: 0;
}

.main-nav {
  background: transparent;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.84);
}

.header-search input,
.header-search {
  background: #050505;
}

.header-search {
  border-color: rgba(255, 255, 255, 0.16);
}

.header-search input {
  color: #fff;
}

.icon-button,
.icon-link {
  background: #050505;
  border-color: rgba(255, 255, 255, 0.16);
}

@media (max-width: 760px) {
  .store-header {
    background: #000;
  }

  .main-nav {
    border-color: rgba(255, 255, 255, 0.1);
    background: #050505;
  }
}

body {
  font-family: Inter, Arial, Helvetica, sans-serif;
}

.main-nav {
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  flex-wrap: wrap;
  row-gap: 6px;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0;
}

.main-nav a.active,
.main-nav a:hover {
  color: #fff;
}

.main-nav a.active::after,
.main-nav a:hover::after {
  height: 1px;
  background: #fff;
  box-shadow: none;
}

button,
.primary-cta,
.ghost-cta,
.outline-link,
.card-actions button,
#modal-add,
.toolbar button,
.load-more,
.order-form button,
.save-product,
#save-settings,
#manual-sync,
.order-actions button {
  min-height: 42px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  background: #262622;
  box-shadow: none;
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

button:hover,
button:focus-visible,
.primary-cta:hover,
.primary-cta:focus-visible,
.ghost-cta:hover,
.ghost-cta:focus-visible,
.outline-link:hover,
.outline-link:focus-visible,
.card-actions button:hover,
.card-actions button:focus-visible,
#modal-add:hover,
#modal-add:focus-visible,
.toolbar button:hover,
.toolbar button:focus-visible,
.load-more:hover,
.load-more:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  background: #34342f;
  box-shadow: none;
  transform: translateY(-1px);
}

.primary-cta,
.toolbar button,
.load-more,
#modal-add,
.card-actions button[data-add] {
  background: #2d2d28;
}

.ghost-cta,
.outline-link,
.secondary-button,
.quick-view,
.icon-button,
.icon-link,
.modal-thumbs button {
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
}

.ghost-cta:hover,
.outline-link:hover,
.secondary-button:hover,
.quick-view:hover,
.icon-button:hover,
.icon-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

.card-actions {
  gap: 10px;
}

.card-actions button {
  min-height: 42px;
  padding: 10px 14px;
}

.quick-view {
  width: 42px;
  min-width: 42px;
}

#modal-add {
  min-height: 54px;
  font-size: 15px;
}

.modal-price-row {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
    #0b0b0b;
  border-color: rgba(255, 255, 255, 0.12);
}

.modal-price-row strong,
.price-row strong {
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.sort-filter {
  position: relative;
  align-self: end;
  width: min(270px, 100%);
  justify-self: start;
}

.native-sort {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.sort-toggle {
  width: 100%;
  min-height: 42px;
  padding: 0 2px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 15px;
}

.sort-toggle:hover,
.sort-toggle:focus-visible {
  color: #fff;
  border: 0;
  background: transparent;
  transform: none;
}

.sort-toggle strong {
  color: #fff;
  font-weight: 600;
}

.sort-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.sort-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.sort-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  z-index: 40;
  width: min(250px, 90vw);
  padding: 7px 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: #f4f4f2;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.sort-menu.hidden {
  display: none;
}

.sort-menu button {
  width: 100%;
  min-height: 34px;
  padding: 8px 15px;
  justify-content: flex-start;
  color: #111;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
}

.sort-menu button:hover,
.sort-menu button:focus-visible,
.sort-menu button.active {
  color: #111;
  background: #d7d7d7;
  transform: none;
}

.shop-layout {
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.category-tree {
  position: sticky;
  top: 104px;
  max-height: calc(100vh - 128px);
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.01)),
    #050505;
}

.category-tree-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.category-tree-head span {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.category-tree-head button {
  min-height: 30px;
  padding: 5px 9px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  background: transparent;
}

.category-tree-list {
  display: grid;
  gap: 2px;
}

.category-tree-list button {
  min-height: 38px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-radius: 2px;
  color: rgba(255, 255, 255, 0.74);
  background: transparent;
  text-align: left;
}

.category-tree-list button:hover,
.category-tree-list button:focus-visible,
.category-tree-list button.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  transform: none;
}

.category-tree-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-tree-list strong {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 600;
}

.catalog-search-bar {
  display: flex;
  margin-bottom: 18px;
}

.catalog-search-field {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 480px;
}

.catalog-search-field .search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition: stroke 160ms ease;
}

.catalog-search-field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 40px 10px 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: all 180ms ease;
}

.catalog-search-field input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.catalog-search-field input:focus {
  border-color: rgba(168, 85, 247, 0.7);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.18);
}

.catalog-search-field input:focus ~ .search-icon {
  stroke: #c084fc;
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  display: grid;
  place-items: center;
  min-height: 24px;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #eee;
  font-size: 11px;
  cursor: pointer;
  transition: background 140ms ease;
}

.search-clear-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.search-clear-btn.hidden {
  display: none;
}

.toolbar {
  grid-template-columns: minmax(180px, 1.25fr) repeat(2, minmax(120px, 0.7fr)) minmax(150px, 0.9fr) minmax(104px, 0.55fr) auto;
  align-items: end;
}

.filter-field {
  display: grid;
  gap: 6px;
}

.filter-field span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  font-weight: 600;
}

.filter-field select,
.filter-field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  color: #fff;
  background-color: #050505;
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.catalog-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding: 0 1px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.catalog-page-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-arrow {
  min-width: 28px;
  min-height: 28px;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--soft);
  font-size: 16px;
  line-height: 1;
}

.page-arrow:hover:not(:disabled) {
  border-color: var(--line-strong);
  color: #fff;
  transform: none;
}

.page-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.pagination button,
.pagination span {
  min-width: 42px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 2px;
}

.pagination button {
  padding: 8px 13px;
  background: transparent;
}

.pagination button.active {
  color: #111;
  border-color: #fff;
  background: #fff;
}

.pagination button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.pagination button:disabled:hover {
  background: transparent;
  transform: none;
}

.pagination span {
  color: rgba(255, 255, 255, 0.4);
}

.header-search {
  position: relative;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: #070707;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.58);
}

.search-suggestions.hidden {
  display: none;
}

.search-suggestions button {
  min-height: 58px;
  padding: 7px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  text-align: left;
}

.search-suggestions button:hover,
.search-suggestions button:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  transform: none;
}

.search-suggestions button span {
  position: static;
  width: auto;
  height: auto;
  opacity: 1;
  pointer-events: auto;
}

.search-suggestions img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 2px;
  background: #f6f6f7;
}

.search-suggestions strong,
.search-suggestions small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggestions strong {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.search-suggestions small,
.search-suggestions p {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
}

@media (max-width: 1180px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .category-tree {
    position: static;
    max-height: 330px;
  }

  .category-tree-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .category-tree-list,
  .toolbar {
    grid-template-columns: 1fr;
  }

  .catalog-meta {
    display: grid;
  }

  .search-suggestions {
    position: fixed;
    top: 84px;
    left: 14px;
    right: 14px;
  }
}

@media (min-width: 1181px) {
  .toolbar {
    grid-template-columns: minmax(250px, 270px);
  }
}

.sort-toggle {
  white-space: nowrap;
}

.sort-menu {
  width: 100%;
}

.native-filter {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.toolbar {
  justify-content: start;
}

.filter-field input {
  color-scheme: dark;
  appearance: textfield;
  background: #050505;
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.filter-field input::-webkit-outer-spin-button,
.filter-field input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.filter-field input:focus {
  border-color: rgba(255, 255, 255, 0.34);
  outline: none;
  box-shadow: none;
}

.filter-field input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.admin-page:not(.admin-authenticated) {
  min-height: 100vh;
  background: #000;
}

.admin-page:not(.admin-authenticated)::before {
  opacity: 0.22;
}

.admin-page:not(.admin-authenticated) .admin-top {
  display: none;
}

.admin-page:not(.admin-authenticated) .admin-layout {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.admin-login-screen {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(420px, 1fr);
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background: #000;
}

.admin-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #f5f5f6;
  box-shadow: none;
}

.dashboard-sidebar {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  min-height: 100%;
  padding: 24px 16px;
  color: #f7f7f7;
  background: #030303;
  overflow-y: auto;
}

.dashboard-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
}

.dashboard-logo span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #ed3d55;
  font-weight: 950;
}

.dashboard-sidebar nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.dashboard-sidebar a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 23px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-weight: 700;
}

.dashboard-sidebar a.active,
.dashboard-sidebar a:hover,
.dashboard-sidebar a:focus-visible {
  color: #fff;
  background: #7d5be8;
}

.dashboard-store-link {
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-actions {
  display: grid;
  gap: 10px;
}

.dashboard-actions button {
  min-height: 46px;
  border: 0;
  border-radius: 23px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
  text-align: left;
}

.dashboard-actions button:hover,
.dashboard-actions button:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 22px 24px 44px;
  color: #0b0b0d;
  background: #f7f7f8;
  -webkit-overflow-scrolling: touch;
}

.dashboard-head,
.dashboard-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-head {
  margin-bottom: 24px;
}

.dashboard-head h2 {
  margin: 0;
  color: #050505;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

.dashboard-main .eyebrow {
  color: #8062dd;
}

.dashboard-main button,
.dashboard-main select,
.dashboard-main input {
  color: #111;
  border-color: rgba(0, 0, 0, 0.12);
  background: #fff;
}

.dashboard-main button {
  background: #272722;
  color: #fff;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.stat-card {
  min-height: 116px;
  padding: 18px;
  border-radius: 18px;
  color: #171717;
  background: #eceef0;
}

.stat-card.dark {
  color: #fff;
  background: #070707;
}

.stat-card.violet {
  color: #fff;
  background: linear-gradient(135deg, #7d5be8, #a87df5);
}

.stat-card.green {
  background: #e9f8ee;
}

.stat-card.cyan {
  background: #e7f6fb;
}

.stat-card span,
.stat-card small {
  display: block;
  color: inherit;
  opacity: 0.72;
  font-size: 13px;
  font-weight: 700;
}

.stat-card strong {
  display: block;
  margin: 12px 0 8px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
}

.dashboard-card {
  display: none !important;
  min-height: 0;
  margin-bottom: 0;
  padding: 22px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.dashboard-products-card {
  width: 100%;
}

/* Ocultar header "Dashboard" y stats cards cuando se navega a otras secciones para dar foco total al panel */
body:not([data-admin-view="dashboard"]) .dashboard-head,
body:not([data-admin-view="dashboard"]) #admin-stats {
  display: none !important;
}

body[data-admin-view="dashboard"] #products-panel {
  display: block !important;
}

body[data-admin-view="products"] #products-panel {
  display: block !important;
}

body[data-admin-view="orders"] #orders-panel {
  display: block !important;
}

body[data-admin-view="clients"] #clients-panel {
  display: block !important;
}

body[data-admin-view="settings"] #settings-panel {
  display: block !important;
}

body[data-admin-view="meli"] #meli-panel {
  display: block !important;
}

.dashboard-card h3 {
  margin: 2px 0 0;
  color: #111;
  font-size: 24px;
}

.admin-product-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 12px;
}

.admin-product-filters input[type="search"] {
  flex: 1 1 260px;
  min-height: 42px;
}

.admin-product-filters select {
  flex: 0 1 190px;
  min-height: 42px;
}

.products-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-sync-inline {
  background: #7d5be8;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: all 140ms ease;
}

.btn-sync-inline:hover {
  background: #6c46e0;
}

.admin-product-filters input,
.admin-product-filters select,
.dashboard-card-head select,
.settings-form input {
  min-height: 42px;
  border-radius: 21px;
  padding: 0 16px;
}

.admin-products-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.admin-products-table {
  min-width: 1120px;
  display: grid;
  gap: 6px;
  padding: 10px;
}

.admin-products-header,
.admin-product-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.3fr) 80px 76px 76px 76px 54px 116px 88px 340px;
  gap: 8px;
  align-items: center;
}

.admin-products-header {
  padding: 8px 14px;
  color: rgba(0, 0, 0, 0.52);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.col-meli-head {
  color: #c48b00;
  font-weight: 900;
}

.col-meli-profit-head {
  color: #0d8236;
  font-weight: 900;
}

.admin-product-row,
.dashboard-row {
  min-height: 60px;
  padding: 8px 12px;
  border-radius: 14px;
  color: #141414;
  background: #f4f5f7;
  transition: background 140ms ease, box-shadow 140ms ease;
}

.admin-product-row:hover {
  background: #ebedf0;
}

.product-cell {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  cursor: pointer;
}

.product-cell > div {
  min-width: 0;
}

.product-cell img {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
}

.product-cell strong,
.dashboard-row strong {
  display: block;
  overflow: hidden;
  color: #111;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-cell p,
.dashboard-row p {
  margin: 3px 0 0;
  overflow: hidden;
  color: rgba(0, 0, 0, 0.54);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profit {
  color: #159947;
}

.meli-col-box {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}

.badge-meli-pct {
  font-size: 11px;
  font-weight: 850;
  padding: 2px 7px;
  border-radius: 5px;
  line-height: 1.2;
}

.badge-meli-pct.tier-std {
  background: #fef08a;
  color: #854d0e;
  border: 1px solid #facc15;
}

.badge-meli-pct.tier-high {
  background: #ede9fe;
  color: #6b21a8;
  border: 1px solid #c4b5fd;
}

.meli-col-price {
  font-size: 13px;
  font-weight: 850;
  color: #1e293b;
}

.badge-meli-active {
  font-size: 9px;
  font-weight: 750;
  color: #0369a1;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  padding: 0 4px;
  border-radius: 3px;
  line-height: 1.3;
}

.profit-meli {
  color: #0f8239;
  background: rgba(46, 226, 116, 0.16);
  padding: 4px 6px;
  border-radius: 6px;
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.margin-pct {
  color: rgba(0, 0, 0, 0.5);
  font-size: 13px;
}

.product-controls {
  display: grid;
  grid-template-columns: 78px 78px 104px 64px;
  gap: 8px;
  align-items: center;
}

.product-controls input,
.product-controls select {
  min-width: 0;
  height: 36px;
  border-radius: 18px;
  padding: 0 10px;
}

.find-image-btn {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
}

.product-controls label,
.inline-check {
  color: rgba(0, 0, 0, 0.68);
  font-size: 13px;
  font-weight: 700;
}

.dashboard-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto auto auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 8px;
}

.row-arrow {
  min-width: 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  color: #111;
  background: #fff;
}

.row-actions {
  display: flex;
  gap: 7px;
}

.row-actions button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 17px;
  font-size: 12px;
}

.row-actions .cancel {
  background: #f2dfdf;
  color: #a32135;
}

.row-actions .delete-order {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  font-weight: 700;
  cursor: pointer;
  transition: all 140ms ease;
}

.row-actions .delete-order:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #dc2626;
  transform: translateY(-1px);
}

.client-row {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
}

.client-row strong:last-child {
  color: #159947;
}

.dashboard-card .settings-form {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-card .settings-form label {
  display: grid;
  gap: 7px;
  color: rgba(0, 0, 0, 0.62);
  font-weight: 700;
}

.dashboard-card .sync-runs {
  max-height: 260px;
  overflow: auto;
  margin-top: 14px;
}

.dashboard-card .sync-run {
  color: #111;
  background: #f1f2f4;
}

.dashboard-card .message {
  color: #3f2c7d;
}

.admin-authenticated .topbar {
  display: none;
}

.admin-page.admin-authenticated {
  overflow: hidden;
  background: #f7f7f8;
}

.admin-page.admin-authenticated .admin-layout {
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
}

.admin-product-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
}

.admin-product-modal.hidden {
  display: none;
}

.admin-product-detail {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  gap: 28px;
  width: min(980px, 100%);
  max-height: min(720px, 92vh);
  overflow: auto;
  padding: 28px;
  border-radius: 24px;
  color: #111;
  background: #fff;
}

.admin-product-close {
  position: absolute;
  top: 14px;
  right: 14px;
  min-width: 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  color: #111;
  background: #f1f2f4;
}

.admin-product-detail-gallery {
  display: grid;
  place-items: center;
  min-height: 420px;
  border-radius: 18px;
  background: #f5f5f6;
}

.admin-product-detail-gallery img {
  width: min(100%, 380px);
  max-height: 420px;
  object-fit: contain;
}

.admin-product-detail-body {
  align-self: center;
}

.admin-product-detail-body h3 {
  margin: 8px 0 12px;
  color: #111;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.admin-product-detail-body > p {
  color: rgba(0, 0, 0, 0.62);
  line-height: 1.5;
}

.admin-product-numbers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.admin-product-numbers p {
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  background: #f1f2f4;
}

.admin-product-numbers span {
  display: block;
  margin-bottom: 6px;
  color: rgba(0, 0, 0, 0.52);
  font-size: 13px;
  font-weight: 800;
}

.admin-product-numbers strong {
  color: #111;
}

@media (max-width: 1080px) {
  .admin-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .dashboard-sidebar {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .dashboard-sidebar nav {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
  }

  .dashboard-sidebar nav a {
    white-space: nowrap;
    padding: 0 14px;
    min-height: 38px;
    font-size: 13px;
  }

  .dashboard-sidebar .dashboard-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .dashboard-main {
    height: auto;
    overflow: visible;
    padding: 16px 14px 40px;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-card .settings-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .dashboard-sidebar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
  }

  .dashboard-sidebar .dashboard-actions {
    justify-content: space-between;
  }

  .dashboard-main {
    padding: 12px 10px 40px;
  }

  .dashboard-head,
  .dashboard-card-head {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .dashboard-card .settings-form {
    grid-template-columns: 1fr;
  }

  .dashboard-row,
  .client-row {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .row-arrow {
    display: none;
  }

  .admin-product-detail {
    grid-template-columns: 1fr;
    padding: 20px 16px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .admin-product-detail-gallery {
    min-height: 240px;
  }

  .admin-product-detail-gallery img {
    max-height: 240px;
  }
}

.admin-login-screen.hidden {
  display: none;
}

.login-brand-row {
  position: absolute;
  top: 22px;
  left: 28px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Inter, Arial, Helvetica, sans-serif;
}

.login-brand-row strong {
  font-size: 18px;
  letter-spacing: 0.02em;
}

.login-brand-row span,
.login-art-copy span {
  color: #c13cff;
}

.login-brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #d75aff, #8b2dff);
  font-weight: 950;
}

.login-back {
  position: absolute;
  top: 56px;
  left: 0;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  text-decoration: none;
}

.login-form-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  width: min(100%, 440px);
  margin-inline: auto;
  padding: 120px 38px 64px;
}

.login-mask {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin-bottom: 20px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 42% 58% 52% 48%;
  color: #111;
  background:
    radial-gradient(circle at 32% 34%, #fff 0 7px, transparent 8px),
    radial-gradient(circle at 68% 34%, #fff 0 7px, transparent 8px),
    linear-gradient(145deg, #f8fbff, #c6e3ff 68%, #32c7e9);
  box-shadow: 0 16px 42px rgba(124, 58, 237, 0.28);
  font-size: 30px;
  font-weight: 950;
}

.login-kicker {
  margin: 0 0 6px;
  color: #c882ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-form-panel h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: 0;
}

.login-subtitle {
  width: min(100%, 300px);
  margin: 8px 0 28px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  line-height: 1.45;
}

.anime-login-form {
  display: grid;
  gap: 16px;
  width: min(100%, 320px);
}

.anime-login-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 600;
}

.anime-login-form input {
  height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 7px;
  color: #fff;
  background: #868686;
  font-size: 15px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.anime-login-form input::placeholder {
  color: rgba(255, 255, 255, 0.66);
}

.anime-login-form input:focus {
  border-color: #e878ff;
  background: #767676;
  box-shadow: 0 0 0 3px rgba(216, 90, 255, 0.22);
}

.anime-login-form button {
  height: 54px;
  margin-top: 8px;
  border: 0;
  border-radius: 7px;
  color: #25122d;
  background: linear-gradient(135deg, #ef86ff, #c84bf4);
  box-shadow: 0 14px 30px rgba(200, 75, 244, 0.26);
  font-weight: 850;
}

.admin-login-screen .message {
  min-height: 22px;
  margin-top: 14px;
  color: #ff5d7a;
  text-align: center;
}

.login-art-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.12), transparent 18rem),
    linear-gradient(135deg, #35104f, #57155f 55%, #21052c);
}

.login-moon {
  position: absolute;
  top: 9%;
  width: min(46vw, 470px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at 44% 34%, #f3a2ff, #d96dff 68%, #c052e9);
  box-shadow: 0 0 80px rgba(216, 109, 255, 0.2);
}

.login-art-panel img {
  position: relative;
  z-index: 2;
  width: min(54vw, 620px);
  max-height: 72vh;
  object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5));
  transform: translateY(-4%);
}

.login-art-copy {
  position: absolute;
  z-index: 3;
  bottom: 58px;
  left: 50%;
  width: min(82%, 520px);
  transform: translateX(-50%);
  text-align: center;
}

.login-art-copy h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 5vw, 74px);
  line-height: 0.9;
  letter-spacing: 0;
}

.login-art-copy p {
  width: min(100%, 410px);
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .admin-login-screen {
    grid-template-columns: 1fr;
  }

  .login-art-panel {
    min-height: min(34vh, 280px);
    order: -1;
  }

  .login-moon {
    top: 8%;
    width: min(68vw, 320px);
  }

  .login-art-panel img {
    width: min(76vw, 380px);
    max-height: 28vh;
  }

  .login-art-copy {
    display: none;
  }

  .login-form-panel {
    padding: 36px 22px 42px;
  }
}

@media (max-width: 540px) {
  .login-brand-row {
    left: 18px;
    top: 16px;
  }

  .login-back {
    top: 48px;
  }

  .login-art-panel {
    min-height: 236px;
  }

  .login-moon {
    width: min(72vw, 250px);
  }

  .login-art-panel img {
    width: min(78vw, 320px);
    max-height: 224px;
  }

  .login-mask {
    width: 62px;
    height: 62px;
    margin-bottom: 14px;
    font-size: 24px;
  }

  .login-form-panel h2 {
    font-size: 30px;
  }

  .login-subtitle {
    margin-bottom: 18px;
    font-size: 14px;
  }

  .login-form-panel,
  .anime-login-form {
    width: 100%;
  }
}

/* ============================================================
   Alice Shop — Option C (Dark Editorial)
   Final palette + typography + product-card pass. Wins the
   cascade over every earlier reskin block in this file.
   ============================================================ */

:root {
  --violet: #d989ab;
  --magenta: #5cb3e0;
  --cyan: #5cb3e0;
  --gold: #c99a4a;
  --ink: #ece7dd;
  --muted: #9a9690;
  --soft: #d9d4c8;
  --line: rgba(236, 231, 221, 0.14);
  --line-strong: rgba(236, 231, 221, 0.24);
}

:root {
  --bg: #0a0a0d;
  --panel: rgba(16, 16, 20, 0.9);
  --card: #f4efe4;
}

body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

h1, h2, h3,
.brand,
.hero h1,
.mock-h2,
.product-card h3,
#modal-title,
.cart-panel h2,
.login-form-panel h2 {
  font-family: 'Fraunces', Georgia, serif;
  letter-spacing: 0;
}

.brand-logo {
  height: 58px;
  width: auto;
  display: block;
}

.login-brand-logo {
  height: 30px;
  width: auto;
  display: block;
}

.dashboard-logo img {
  height: 26px;
  width: auto;
  display: block;
}

.main-nav a.active::after,
.main-nav a:hover::after {
  background: linear-gradient(90deg, var(--magenta), var(--violet));
}

.hero-kicker,
.mock-kicker {
  color: var(--violet);
}

.hero {
  min-height: min(720px, calc(100vh - 86px));
  padding-bottom: 90px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1.06;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-proof {
  margin-top: 20px;
}

.hero h1 span,
.mock-h2 em {
  color: var(--magenta);
}

.primary-cta {
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
}

.ghost-cta {
  border-radius: 999px;
  border-color: var(--line-strong);
}

.login-art-panel img {
  width: min(54vw, 620px);
}

.login-mask {
  border-color: rgba(236, 231, 221, 0.7);
}

/* Product card */

.product-card {
  border-radius: 16px;
  border-color: var(--line);
  background: #101014;
  overflow: hidden;
}

.product-card:hover {
  border-color: rgba(217, 137, 171, 0.4);
}

.product-card img {
  background: var(--card);
  padding: 22px;
}

.product-specs {
  display: none;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--card);
  color: #1a1a22;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-body {
  border-top: 1px solid var(--line);
  padding: 14px 16px 16px;
  gap: 8px;
}

.product-category {
  color: var(--violet);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

.product-card h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.price-row strong {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--ink);
}

.card-actions button[data-add] {
  background: var(--magenta);
  color: #06202e;
  border: none;
  border-radius: 999px;
  font-weight: 700;
}

.card-actions button[data-add]:hover {
  background: #79c6ef;
}

.quick-view {
  border-radius: 999px;
  border-color: var(--line);
}

/* Cart drawer */

#order-form button[type="submit"] {
  background: var(--magenta);
  color: #06202e;
  border: none;
  font-weight: 700;
}

#order-form button[type="submit"]:hover {
  background: #79c6ef;
}

#cart-close {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.cart-panel {
  background: #0a0a0d;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}

.order-confirmation {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 40px 8px;
}

.order-confirmation-check {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: rgba(92, 179, 224, 0.16);
  color: var(--magenta);
  font-size: 26px;
  font-weight: 700;
}

.order-confirmation h3 {
  margin: 0;
  font-size: 22px;
}

.order-confirmation p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 10px;
}

.whatsapp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: 14px;
  border-radius: 999px;
  background: #25d366;
  color: #06280f;
  font-weight: 700;
  text-decoration: none;
}

.whatsapp-cta:hover {
  background: #2fe377;
}

#confirmation-new-order {
  margin-top: 10px;
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}

/* Category tree + sort menu contrast fixes */

.category-tree-list button {
  min-height: 0;
  align-items: flex-start;
  padding: 9px 10px;
}

.category-tree-list span {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.3;
}

.sort-menu {
  background: var(--card);
}

.sort-menu button {
  color: #1a1a22;
}

.sort-menu button:hover,
.sort-menu button:focus-visible,
.sort-menu button.active {
  color: #1a1a22;
  background: #e6dfd0;
}

/* Featured category card: 6th tone for "Otros" */

.featured-categories .pink {
  --glow: #d989ab;
  --glow-rgb: 217, 137, 171;
  background:
    linear-gradient(135deg, rgba(217, 137, 171, 0.38), rgba(92, 179, 224, 0.32) 60%, rgba(10, 14, 30, 0.9)),
    rgba(10, 14, 30, 0.95);
  border-color: rgba(217, 137, 171, 0.34);
}

.featured-categories .pink .category-art {
  background:
    linear-gradient(90deg, rgba(20, 10, 16, 0.86) 0%, rgba(50, 24, 36, 0.5) 48%, rgba(217, 137, 171, 0.14) 100%),
    var(--category-image, linear-gradient(135deg, transparent, transparent)),
    radial-gradient(circle at 76% 42%, rgba(217, 137, 171, 0.5), transparent 44%),
    linear-gradient(135deg, rgba(217, 137, 171, 0.7), rgba(92, 179, 224, 0.5) 60%, rgba(10, 14, 30, 0.95));
  background-position: center, right center, center, center;
  background-repeat: no-repeat;
  background-size: cover, auto 128%, cover, cover;
}

.featured-categories .pink:hover,
.featured-categories .pink:focus-visible {
  box-shadow:
    0 0 0 1px rgba(217, 137, 171, 0.66),
    0 0 26px rgba(217, 137, 171, 0.5),
    0 22px 48px rgba(0, 0, 0, 0.36);
}

.featured-categories .amber {
  --glow: #e0a05c;
  --glow-rgb: 224, 160, 92;
  background:
    linear-gradient(135deg, rgba(224, 160, 92, 0.38), rgba(217, 137, 171, 0.28) 60%, rgba(10, 14, 30, 0.9)),
    rgba(10, 14, 30, 0.95);
  border-color: rgba(224, 160, 92, 0.34);
}

.featured-categories .amber .category-art {
  background:
    linear-gradient(90deg, rgba(30, 18, 6, 0.86) 0%, rgba(70, 40, 12, 0.55) 48%, rgba(224, 160, 92, 0.12) 100%),
    var(--category-image, linear-gradient(135deg, transparent, transparent)),
    radial-gradient(circle at 76% 42%, rgba(224, 160, 92, 0.5), transparent 44%),
    linear-gradient(135deg, rgba(224, 160, 92, 0.78), rgba(150, 82, 30, 0.8) 55%, rgba(10, 14, 30, 0.95));
  background-position: center, right center, center, center;
  background-repeat: no-repeat;
  background-size: cover, auto 122%, cover, cover;
}

.featured-categories .amber:hover,
.featured-categories .amber:focus-visible {
  box-shadow:
    0 0 0 1px rgba(224, 160, 92, 0.66),
    0 0 26px rgba(224, 160, 92, 0.5),
    0 22px 48px rgba(0, 0, 0, 0.36);
}

.featured-categories {
  display: flex;
  flex-wrap: wrap;
}

.featured-categories button {
  flex: 1 1 260px;
}

@media (max-width: 640px) {
  .featured-categories button {
    flex-basis: 100%;
  }
}

.catalog-title {
  margin: 0 0 4px;
  text-align: center;
  font-size: clamp(22px, 2.4vw, 30px);
}

.catalog-subtitle {
  margin: 0 0 16px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.subtype-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 16px;
}

.subtype-filter button {
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.subtype-filter button.active {
  border-color: var(--magenta);
  background: rgba(92, 179, 224, 0.14);
  color: var(--ink);
}

/* Admin: image optimizer */

.find-image-btn {
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #d8dae0;
  background: #fff;
  color: #333;
  font-size: 12.5px;
  font-weight: 600;
}

.find-image-btn.enhanced {
  border-color: #1fa774;
  color: #12724f;
  background: #eafbf3;
}

.image-finder-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(720px, 92vh);
  overflow: auto;
  padding: 28px;
  border-radius: 24px;
  color: #111;
  background: #fff;
}

.image-finder-current {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  font-size: 13px;
  color: #666;
}

.image-finder-search-form {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.image-finder-search-form input {
  flex: 1;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #d8dae0;
  background: #f8f8fb;
  font-size: 13px;
}

.admin-yuan-link {
  display: inline-block;
  margin: 4px 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: #7c3aed;
  text-decoration: none;
}

.admin-yuan-link:hover {
  text-decoration: underline;
}

.image-finder-search-form button {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  border: none;
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

.image-finder-current img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  background: #f8f8fb;
}

.image-finder-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.image-finder-card {
  border: 1px solid #e2e2e2;
  border-radius: 14px;
  overflow: hidden;
  background: #f8f8fb;
}

.image-finder-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  display: block;
}

.image-finder-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.image-finder-actions button {
  min-height: 32px;
  border-radius: 8px;
  border: 1px solid #d8dae0;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #222;
}

.image-finder-actions button[data-apply-main] {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* Image lightbox / zoom */

[data-zoomable] {
  cursor: zoom-in;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.92);
  padding: 40px;
}

.image-lightbox.hidden {
  display: none;
}

.image-lightbox img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.25s ease;
  user-select: none;
}

.image-lightbox img.zoomed {
  transform: scale(2.4);
  cursor: zoom-out;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 16px;
}

.lightbox-hint {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

/* Footer (agregado 11/09/2026) */
.site-footer {
  margin-top: 48px;
  padding: 36px clamp(16px, 4vw, 54px) 28px;
  border-top: 1px solid var(--line);
  background: rgba(5, 7, 18, 0.6);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
}

.footer-logo {
  height: 34px;
  width: auto;
  display: block;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social .icon-link {
  width: 40px;
  min-width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
}

.footer-social .icon-link:hover {
  color: #fff;
  border-color: var(--line-strong);
}

.footer-social .icon-link svg {
  width: 20px;
  height: 20px;
}

.footer-copy {
  max-width: 1280px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Página de Términos y condiciones */
.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px clamp(16px, 4vw, 40px) 40px;
}

.legal-page h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 5vw, 42px);
}

.legal-page .legal-updated {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 14px;
}

.legal-page h2 {
  margin: 36px 0 12px;
  font-size: 20px;
  color: var(--soft);
}

.legal-page p,
.legal-page li {
  color: var(--soft);
  line-height: 1.65;
  font-size: 15px;
}

.legal-page ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.legal-page mark {
  background: rgba(246, 194, 68, 0.22);
  color: var(--gold);
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 700;
}

.legal-page .back-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--violet);
  font-weight: 700;
  text-decoration: none;
}

.legal-page .back-link:hover {
  text-decoration: underline;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #fff;
  background: #25d366;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
  stroke: none;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.14);
}

@media (max-width: 640px) {
  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float svg {
    width: 27px;
    height: 27px;
  }
}

/* ============================================================
   Avisos de Venta y Precios Mayoristas
   ============================================================ */
.announcement-bar {
  position: relative;
  z-index: 40;
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.2), rgba(37, 213, 255, 0.15), rgba(226, 73, 255, 0.2)), #090c1a;
  border-bottom: 1px solid rgba(168, 85, 247, 0.32);
  color: var(--ink);
  font-size: 13px;
  padding: 8px 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.announcement-content {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  text-align: center;
}

.announcement-pill {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #a855f7, #e249ff);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.6px;
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
}

.announcement-text {
  color: #e2e8f5;
  font-weight: 500;
}

.announcement-text strong {
  color: #fff;
  font-weight: 700;
}

.announcement-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 180ms ease;
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.35);
}

.announcement-cta:hover,
.announcement-cta:focus-visible {
  background: #20ba59;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.5);
  color: #fff;
}

/* Modal notice */
.wholesale-notice-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 0 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.wholesale-notice-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.2);
  color: var(--magenta);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wholesale-notice-body {
  flex: 1;
  min-width: 0;
}

.wholesale-notice-body strong {
  display: block;
  font-size: 13px;
  color: #fff;
  margin-bottom: 2px;
}

.wholesale-notice-body p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.wholesale-notice-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  background: rgba(37, 211, 102, 0.16);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #2ee274;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 160ms ease;
}

.wholesale-notice-btn:hover,
.wholesale-notice-btn:focus-visible {
  background: #25d366;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

/* Cart notice */
.cart-wholesale-box {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.24);
  border-radius: 10px;
  padding: 12px;
  margin: 14px 0;
  font-size: 12px;
  line-height: 1.45;
}

.cart-wholesale-tag {
  display: inline-block;
  background: rgba(168, 85, 247, 0.25);
  color: #e249ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.cart-wholesale-box p {
  margin: 0;
  color: var(--soft);
}

@media (max-width: 640px) {
  .announcement-bar {
    font-size: 12px;
    padding: 7px 12px;
  }
  .announcement-content {
    gap: 6px 10px;
  }
  .announcement-cta {
    font-size: 11px;
    padding: 4px 10px;
  }
  .wholesale-notice-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .wholesale-notice-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   Mercado Libre Integración Styles
   ============================================================ */
.meli-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.meli-account-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.meli-badge {
  background: #ffe600;
  color: #2d3277;
  font-weight: 900;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}

.btn-meli {
  display: inline-flex;
  align-items: center;
  background: #ffe600;
  color: #2d3277;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 160ms ease;
  box-shadow: 0 4px 12px rgba(255, 230, 0, 0.35);
}

.btn-meli:hover {
  background: #f5dc00;
  transform: translateY(-1px);
}

.btn-meli-sync {
  background: #3483fa;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.btn-meli-sync:hover {
  background: #2968c8;
}

.meli-tips-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  margin: 16px 0;
  font-size: 13px;
  color: #334155;
}

.meli-tips-box h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #0f172a;
}

.meli-tips-box ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.6;
}

.badge-meli {
  display: inline-block;
  background: #ffe600;
  color: #2d3277;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
}

.admin-product-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.admin-product-meli-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-meli-small {
  background: #ffe600;
  color: #2d3277;
  border: none;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 140ms ease;
}

.btn-meli-small:hover {
  background: #f5dc00;
}

.btn-meli-view {
  background: #3483fa;
  color: #fff;
}

.btn-meli-view:hover {
  background: #2968c8;
}

.status-connected {
  color: #16a34a;
  font-weight: 700;
}

.status-disconnected {
  color: #ca8a04;
  font-weight: 700;
}

/* Mercado Libre Configuración & Simulador */
.meli-pricing-config-card,
.meli-simulator-card {
  margin-top: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 24px;
}

.meli-pricing-config-card h4,
.meli-simulator-card h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.meli-pricing-config-card p.muted,
.meli-simulator-card p.muted {
  margin: 0 0 16px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.meli-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.meli-pricing-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.meli-pricing-grid input {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
  transition: all 160ms ease;
}

.meli-pricing-grid input:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.meli-pricing-grid small {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
}

.meli-pricing-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
  align-items: center;
}

/* Botón Guardar Porcentaje (Amarillo Mercado Libre) */
#btn-save-meli-pricing {
  min-height: 42px;
  padding: 0 22px;
  border-radius: 21px;
  background: #ffe600;
  color: #2d3277;
  font-size: 13px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 230, 0, 0.4);
  transition: all 160ms ease;
}

#btn-save-meli-pricing:hover {
  background: #f5dc00;
  transform: translateY(-1px);
}

/* Botón Guardar y Actualizar Precios en ML (Azul institucional) */
#btn-save-and-sync-meli {
  min-height: 42px;
  padding: 0 22px;
  border-radius: 21px;
  background: #3483fa;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(52, 131, 250, 0.35);
  transition: all 160ms ease;
}

#btn-save-and-sync-meli:hover {
  background: #2870db;
  transform: translateY(-1px);
}

/* Simulador de precios */
.meli-simulator-input-wrap {
  margin: 14px 0 18px;
}

.meli-simulator-input-wrap label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.meli-simulator-input-wrap input {
  width: 130px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
  transition: all 160ms ease;
}

.meli-simulator-input-wrap input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.meli-simulator-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.sim-col {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 160ms ease;
}

.sim-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
}

.sim-col strong {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
}

.sim-col small {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

/* Columna Mercado Libre Destacada */
.sim-col.highlight {
  background: #fefce8;
  border: 2px solid #facc15;
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.18);
}

.sim-col.highlight .sim-label {
  color: #854d0e;
}

.sim-col.highlight strong {
  color: #713f12;
  font-size: 24px;
}

.sim-col.highlight small {
  color: #a16207;
  font-weight: 700;
}

/* Columna Comisión */
.sim-col:nth-child(3) {
  background: #fff5f5;
  border: 1px solid #fed7d7;
}

.sim-col:nth-child(3) .sim-label {
  color: #9b2c2c;
}

.sim-col:nth-child(3) strong {
  color: #e53e3e;
}

.sim-col:nth-child(3) small {
  color: #c53030;
}

/* Columna Ganancia Neta */
.sim-col:nth-child(4) {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.sim-col:nth-child(4) .sim-label {
  color: #166534;
}

.sim-col:nth-child(4) strong {
  color: #16a34a;
}

.sim-col:nth-child(4) small {
  color: #15803d;
  font-weight: 700;
}

/* Badge de umbral en el simulador */
.sim-tier-badge {
  margin-top: 10px;
}

.badge-tier-high {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: #6d28d9;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
}

.badge-tier-high strong {
  color: #5b21b6;
  font-weight: 800;
}

.badge-tier-std {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
}

.badge-tier-std strong {
  color: #065f46;
  font-weight: 800;
}

/* Galería de fotos en el Modal de Producto */
.admin-product-gallery-list {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.modal-thumb {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  transition: all 140ms ease;
  background: #f8fafc;
}

.modal-thumb:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
}

.modal-thumb.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
}

/* Botón Cambiar / Mejorar fotos */
.btn-img-action {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 160ms ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-img-action:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Input manual para foto HD directa */
.image-finder-manual-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.image-finder-manual-box p {
  margin: 0 0 8px;
  font-size: 13px;
  color: #334155;
}

.image-finder-manual-row {
  display: flex;
  gap: 8px;
}

.image-finder-manual-row input {
  flex: 1;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 13px;
}

.image-finder-manual-row input:focus {
  border-color: #2563eb;
  outline: none;
}

.image-finder-manual-row button {
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 140ms ease;
}

.image-finder-manual-row button:hover {
  background: #1e293b;
}

/* Admin Session Box in Sidebar */
.admin-session-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 12px;
  margin-bottom: 8px;
  color: #475569;
}

.admin-session-box strong {
  color: #0f172a;
  font-weight: 750;
}

/* Admin Users Grid and Cards */
.admin-users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.admin-user-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-user-card.primary {
  border-left: 4px solid #7c3aed;
}

.admin-user-card.secondary {
  border-left: 4px solid #0891b2;
}

.admin-user-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-user-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0f172a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.admin-user-card.secondary .admin-user-avatar {
  background: #0891b2;
}

.admin-user-card.primary .admin-user-avatar {
  background: #7c3aed;
}

.admin-user-tag {
  font-size: 11px;
  font-weight: 750;
  padding: 2px 7px;
  border-radius: 6px;
}

.admin-user-tag.primary {
  background: #ede9fe;
  color: #6b21a8;
}

.admin-user-tag.secondary {
  background: #e0f2fe;
  color: #0369a1;
}

.admin-user-fields {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
}

.admin-user-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-user-row code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.btn-cred-action {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  color: #334155;
  transition: all 120ms ease;
}

.btn-cred-action:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Mercado Libre Delegación y Etiquetas */
.meli-delegated-badge {
  margin-top: 8px;
}

.meli-delegation-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 10px 14px;
  color: #166534;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 8px;
}

.meli-delegation-box p {
  margin: 4px 0 0;
  color: #15803d;
  font-size: 12.5px;
}

.badge-tag-delegated {
  display: inline-block;
  background: #22c55e;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.4px;
}

.meli-delegated-note {
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
  line-height: 1.4;
}

.modal-meli-account-hint {
  display: block;
  margin-top: 6px;
}

.modal-meli-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
}

/* Modal Admin Box en la tienda pública */
.modal-admin-box {
  margin: 16px 0;
  padding: 14px 16px;
  background: #111827;
  border: 1px solid #374151;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.modal-admin-box.hidden {
  display: none !important;
}

.modal-admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-admin-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
}

.modal-admin-user {
  font-size: 11.5px;
  color: #9ca3af;
  font-weight: 600;
}

.modal-admin-quick-links {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.admin-link-pill {
  font-size: 11px;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 120ms ease;
}

.admin-link-pill:hover {
  background: rgba(96, 165, 250, 0.25);
  color: #93c5fd;
}

.modal-admin-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.admin-metric-card {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-metric-card.meli-metric {
  background: rgba(254, 240, 138, 0.06);
  border-color: rgba(254, 240, 138, 0.2);
}

.metric-label {
  font-size: 10.5px;
  color: #9ca3af;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.metric-value {
  font-size: 15px;
  font-weight: 800;
  color: #f3f4f6;
}

.metric-value.meli-color {
  color: #fde047;
}

.metric-sub {
  font-size: 11px;
  font-weight: 700;
}

.metric-profit {
  color: #34d399;
}

.metric-profit-meli {
  color: #4ade80;
}

.modal-admin-meli-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-meli-zone {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.modal-meli-zone.hidden {
  display: none !important;
}

.btn-publish-meli-main {
  flex: 1;
  min-height: 38px;
  background: #ffe600;
  color: #2d3277;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 140ms ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-publish-meli-main:hover {
  background: #f5dc00;
  transform: translateY(-1px);
}

.btn-publish-meli-main:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.badge-meli-published {
  background: #064e3b;
  color: #6ee7b7;
  border: 1px solid #059669;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
}

.btn-meli-view-link {
  background: #2563eb;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 120ms ease;
}

.btn-meli-view-link:hover {
  background: #1d4ed8;
}

.btn-meli-sync-btn {
  background: #374151;
  color: #f3f4f6;
  border: 1px solid #4b5563;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 120ms ease;
}

.btn-meli-sync-btn:hover {
  background: #4b5563;
}

.modal-meli-feedback {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.modal-meli-feedback.loading {
  color: #38bdf8;
}

.modal-meli-feedback.success {
  color: #4ade80;
}

.modal-meli-feedback.error {
  color: #f87171;
}

@media (max-width: 600px) {
  .modal-admin-metrics {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Mercado Libre Admin Publications List Table & KPIs
   ========================================================================== */
.meli-publications-card {
  margin-top: 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.meli-publications-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.meli-publications-head h4 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.meli-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.meli-kpi-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meli-kpi-item span {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.meli-kpi-item strong {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
}

.meli-kpi-item.active strong {
  color: #16a34a;
}

.meli-kpi-item.paused strong {
  color: #d97706;
}

.meli-kpi-item.profit strong {
  color: #2563eb;
}

.meli-filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.meli-filter-bar input[type="search"] {
  flex: 1;
  min-width: 240px;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  background: #fff;
  transition: border-color 150ms ease;
}

.meli-filter-bar input[type="search"]:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.meli-filter-bar select {
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  outline: none;
}

.meli-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
}

.meli-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
  min-width: 950px;
}

.meli-table th {
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 14px;
  border-bottom: 1px solid #cbd5e1;
  white-space: nowrap;
}

.meli-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: #1e293b;
}

.meli-table tbody tr:hover {
  background: #f8fafc;
}

.cell-product-info {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 280px;
}

.meli-table-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
  background: #f8fafc;
}

.meli-table-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.meli-table-meta strong {
  font-size: 13px;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-tag-status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-tag-status.active {
  background: #dcfce7;
  color: #15803d;
}

.badge-tag-status.paused {
  background: #fef3c7;
  color: #b45309;
}

.badge-stock-in {
  color: #16a34a;
  font-weight: 600;
  font-size: 12px;
}

.badge-stock-out {
  color: #dc2626;
  font-weight: 600;
  font-size: 12px;
}

.cell-meli-price strong {
  color: #1d4ed8;
  font-size: 14px;
}

.cell-fees {
  color: #ef4444;
  font-weight: 600;
}

.cell-profit {
  white-space: nowrap;
}

.cell-profit strong {
  color: #16a34a;
  font-size: 14px;
}

.cell-profit small {
  color: #15803d;
  font-weight: 700;
  margin-left: 4px;
}

.meli-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 120ms ease;
  white-space: nowrap;
}

.meli-link-btn:hover {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
}

.cell-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-action-sync-item {
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 120ms ease;
}

.btn-action-sync-item:hover {
  background: #f59e0b;
  color: #ffffff;
  border-color: #f59e0b;
}

.btn-action-unlink-item {
  background: #fff;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 120ms ease;
}

.btn-action-unlink-item:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}


