:root {
  --black: #080706;
  --black-2: #14110f;
  --gold: #d7b56d;
  --gold-2: #b89042;
  --cream: #fbf6ec;
  --cream-2: #f4ead8;
  --white: #ffffff;
  --text: #211c18;
  --muted: #766d63;
  --border: rgba(8, 7, 6, 0.12);
  --shadow: 0 24px 70px rgba(8, 7, 6, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

body.cart-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 8px 18px;
  background: var(--black);
  color: var(--cream);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  text-align: center;
  flex-wrap: wrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(251, 246, 236, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-logo {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  object-fit: cover;
  background: var(--black);
  box-shadow: 0 12px 28px rgba(8, 7, 6, 0.18);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
}

.brand-copy span {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  font-weight: 700;
  color: var(--muted);
}

.main-nav a {
  position: relative;
  padding: 8px 2px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--black);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.menu-toggle,
.cart-button,
.icon-button {
  border: 0;
  background: transparent;
}

.menu-toggle {
  display: none;
  font-size: 1.6rem;
}

.cart-button {
  position: relative;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-size: 1.25rem;
  box-shadow: 0 14px 34px rgba(8, 7, 6, 0.18);
}

.cart-button small {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--gold);
  color: var(--black);
  font-size: 0.72rem;
  font-weight: 800;
  border: 2px solid var(--cream);
}

.hero,
.section,
.catalog-hero {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(58px, 8vw, 110px) clamp(18px, 4vw, 32px);
}

.hero-home {
  min-height: calc(100vh - 142px);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(34px, 7vw, 80px);
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--gold-2);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
}

h1,
h2 {
  font-family: "Playfair Display", serif;
  line-height: 0.98;
  color: var(--black);
}

h1 {
  font-size: clamp(3.1rem, 8vw, 6.6rem);
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(2.15rem, 4vw, 4.15rem);
  letter-spacing: -0.035em;
}

h3 {
  color: var(--black);
}

.hero-text,
.section-heading p,
.split-copy p,
.benefit-card p,
.steps p,
.footer p,
.faq-list p {
  color: var(--muted);
}

.hero-text {
  max-width: 620px;
  margin: 22px 0 30px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

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

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 22px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  box-shadow: 0 18px 40px rgba(8, 7, 6, 0.22);
}

.btn-primary:hover {
  background: var(--gold);
  color: var(--black);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--border);
  color: var(--black);
}

.btn-secondary:hover {
  border-color: var(--gold);
  box-shadow: 0 14px 28px rgba(8, 7, 6, 0.08);
}

.btn.full {
  width: 100%;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(22px, 4vw, 46px);
  background:
    radial-gradient(circle at 25% 20%, rgba(215, 181, 109, 0.32), transparent 35%),
    linear-gradient(145deg, var(--black), var(--black-2));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(215, 181, 109, 0.22);
  filter: blur(16px);
}

.hero-card::before {
  width: 160px;
  height: 160px;
  top: -40px;
  right: -36px;
}

.hero-card::after {
  width: 110px;
  height: 110px;
  bottom: 18px;
  left: -22px;
}

.hero-card img {
  width: min(330px, 82%);
  margin: 0 auto;
  border-radius: 30px;
  position: relative;
  z-index: 1;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.hero-card-badge {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 24px auto 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 700;
}

.muted-section {
  max-width: none;
  background: var(--white);
}

.muted-section > * {
  max-width: var(--max);
  margin-inline: auto;
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 38px;
}

.section-heading p {
  margin-top: 14px;
}

.category-grid,
.benefits-grid,
.steps,
.product-grid {
  display: grid;
  gap: 18px;
}

.category-grid {
  grid-template-columns: repeat(4, 1fr);
}

.category-card,
.benefit-card,
.steps article,
.product-card,
.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 36px rgba(8, 7, 6, 0.05);
}

.category-card {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(8, 7, 6, 0.08), rgba(8, 7, 6, 0.78)),
    radial-gradient(circle at top right, rgba(215, 181, 109, 0.42), transparent 38%),
    var(--black);
  color: var(--white);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.category-card span {
  font-family: "Playfair Display", serif;
  font-size: 1.85rem;
  line-height: 1;
}

.category-card small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
}

.product-grid {
  grid-template-columns: repeat(4, 1fr);
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(215, 181, 109, 0.75);
  box-shadow: var(--shadow);
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 30% 20%, rgba(215, 181, 109, 0.34), transparent 34%),
    #111;
}

.product-media img {
  width: 82%;
  max-height: 82%;
  object-fit: contain;
  border-radius: 18px;
  transition: transform 0.25s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.04);
}

.product-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--black);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 18px;
}

.product-info h3 {
  font-size: 1rem;
}

.product-info p {
  color: var(--muted);
  font-size: 0.92rem;
}

.product-price {
  margin-top: auto;
  font-size: 1.28rem;
  font-weight: 900;
  color: var(--black);
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 4px;
}

.product-actions .btn {
  min-height: 42px;
  padding: 10px 14px;
  font-size: 0.9rem;
}

.quick-view {
  width: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  font-weight: 900;
  transition: background 0.2s ease, transform 0.2s ease;
}

.quick-view:hover {
  background: var(--cream-2);
  transform: translateY(-2px);
}

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 38px;
  align-items: center;
}

.split-copy {
  max-width: 520px;
}

.split-copy p:not(.eyebrow) {
  margin-top: 18px;
}

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

.benefit-card,
.steps article {
  padding: 24px;
}

.benefit-card span {
  font-size: 1.8rem;
}

.benefit-card h3,
.steps h3 {
  margin: 10px 0 8px;
}

.steps {
  grid-template-columns: repeat(3, 1fr);
}

.steps strong {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--black);
  color: var(--gold);
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 830px;
  margin: 0 auto;
}

.faq-list details {
  padding: 20px 22px;
}

.faq-list summary {
  font-weight: 900;
  cursor: pointer;
  color: var(--black);
}

.faq-list p {
  margin-top: 12px;
}

.catalog-hero {
  padding-bottom: 34px;
}

.catalog-hero h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.catalog-toolbar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 32px) 28px;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
  gap: 14px;
}

.catalog-toolbar label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.catalog-toolbar input,
.catalog-toolbar select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  padding: 0 16px;
  color: var(--black);
  outline: none;
  box-shadow: 0 10px 30px rgba(8, 7, 6, 0.04);
}

.catalog-toolbar input:focus,
.catalog-toolbar select:focus {
  border-color: var(--gold-2);
  box-shadow: 0 0 0 4px rgba(215, 181, 109, 0.2);
}

.catalog-section {
  padding-top: 20px;
}

.catalog-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.catalog-meta p {
  color: var(--muted);
  font-weight: 700;
}

.empty-state {
  margin: 24px auto 0;
  max-width: 520px;
  text-align: center;
  padding: 34px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
}

.footer {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px;
  padding: clamp(42px, 7vw, 74px) clamp(18px, 4vw, 56px);
  background: var(--black);
  color: var(--cream);
}

.footer-logo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: 14px;
}

.footer h3 {
  color: var(--gold);
  margin-bottom: 12px;
}

.footer a,
.footer p {
  display: block;
  color: rgba(251, 246, 236, 0.72);
  margin-bottom: 8px;
}

.footer a:hover {
  color: var(--gold);
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 7, 6, 0.54);
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cart-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 200;
  width: min(440px, 100vw);
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  background: var(--cream);
  box-shadow: -24px 0 70px rgba(8, 7, 6, 0.22);
  transform: translateX(105%);
  transition: transform 0.28s ease;
}

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

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 1.7rem;
  line-height: 1;
}

.cart-items {
  list-style: none;
  display: grid;
  gap: 12px;
  overflow-y: auto;
  padding-right: 4px;
  flex: 1;
}

.cart-empty {
  color: var(--muted);
  text-align: center;
  padding: 40px 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.cart-item img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--black);
}

.cart-item h3 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.cart-item p {
  color: var(--muted);
  font-size: 0.86rem;
}

.cart-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-controls button,
.remove-item {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--cream);
  font-weight: 900;
}

.remove-item {
  color: #a92020;
}

.cart-summary {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
}

.cart-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.cart-summary span {
  color: var(--muted);
}

.cart-summary .total {
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 1.15rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(8, 7, 6, 0.62);
}

.modal.visible {
  display: grid;
}

.modal-card {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 24px;
  width: min(880px, 100%);
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.modal-card > img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: var(--radius-lg);
  background: var(--black);
  padding: 22px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.modal-info {
  align-self: center;
  padding-right: 16px;
}

.modal-info h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.modal-price {
  margin: 14px 0;
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--black);
}

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 0;
  display: none;
  background: var(--black);
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(8, 7, 6, 0.22);
}

.scroll-top.visible {
  display: grid;
  place-items: center;
}

.reveal {
  animation: rise 0.7s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-home,
  .split-section,
  .modal-card {
    grid-template-columns: 1fr;
  }

  .hero-home {
    min-height: auto;
  }

  .hero-card {
    max-width: 560px;
    margin: 0 auto;
  }

  .category-grid,
  .product-grid,
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .catalog-toolbar label:first-child {
    grid-column: 1 / -1;
  }

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

@media (max-width: 760px) {
  .site-header {
    gap: 12px;
  }

  .brand-logo {
    width: 54px;
    height: 54px;
    border-radius: 15px;
  }

  .brand-copy strong {
    font-size: 1.22rem;
  }

  .brand-copy span {
    font-size: 0.68rem;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 14px;
    border-radius: 12px;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a:hover,
  .main-nav a.active {
    background: var(--cream);
  }

  .cart-button {
    width: 48px;
    height: 48px;
  }

  .hero,
  .section,
  .catalog-hero {
    padding-block: 48px;
  }

  .hero-actions,
  .center-actions {
    align-items: stretch;
  }

  .hero-actions .btn,
  .center-actions .btn {
    width: 100%;
  }

  .category-grid,
  .product-grid,
  .benefits-grid,
  .steps,
  .catalog-toolbar,
  .footer {
    grid-template-columns: 1fr;
  }

  .catalog-toolbar label:first-child {
    grid-column: auto;
  }

  .catalog-meta {
    display: block;
  }

  .catalog-meta p {
    margin-top: 8px;
  }

  .footer {
    text-align: center;
  }

  .footer-logo {
    margin-inline: auto;
  }

  .cart-panel {
    padding: 18px;
  }

  .modal-card {
    padding: 16px;
  }

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

@media (max-width: 460px) {
  .topbar {
    font-size: 0.75rem;
    gap: 8px;
  }

  .brand-copy {
    display: none;
  }

  h1 {
    font-size: 3.15rem;
  }

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

  .quick-view {
    width: 100%;
    height: 42px;
  }
}
/* =========================
   ADMIN VANILUXE
========================= */

.admin-body {
  background:
    radial-gradient(circle at top left, rgba(215, 181, 109, 0.22), transparent 32rem),
    linear-gradient(180deg, #fbf6ec, #f3e6d0);
  min-height: 100vh;
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.admin-login {
  min-height: calc(100vh - 84px);
  display: grid;
  place-items: center;
}

.admin-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(8, 7, 6, 0.12);
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 24px 70px rgba(8, 7, 6, 0.13);
}

.admin-login .admin-card {
  width: min(460px, 100%);
}

.admin-card h1,
.admin-card h2,
.admin-header h1 {
  font-family: "Playfair Display", serif;
}

.admin-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
  color: #211c18;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  border: 1px solid rgba(8, 7, 6, 0.14);
  border-radius: 16px;
  padding: 13px 14px;
  font: inherit;
  background: #fffaf2;
  color: #211c18;
  outline: none;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  border-color: #d7b56d;
  box-shadow: 0 0 0 4px rgba(215, 181, 109, 0.18);
}

.admin-error {
  color: #b3261e;
  font-weight: 800;
  margin-top: 12px;
}

.admin-message {
  color: #167a3d;
  font-weight: 800;
  margin-top: 12px;
}

.admin-panel {
  display: grid;
  gap: 26px;
}

.admin-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.admin-header h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

.admin-header p {
  color: #74675b;
}

.admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 22px;
  align-items: start;
}

.admin-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.admin-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.admin-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.admin-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-checks input {
  width: auto;
}

.admin-table-wrapper {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  border-bottom: 1px solid rgba(8, 7, 6, 0.1);
  padding: 14px 10px;
  vertical-align: middle;
}

.admin-table th {
  color: #74675b;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-product-cell img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
  background: #f3e6d0;
}

.admin-product-cell small {
  display: block;
  color: #74675b;
  margin-top: 2px;
}

.admin-status {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-status.active {
  background: rgba(22, 122, 61, 0.12);
  color: #167a3d;
}

.admin-status.inactive {
  background: rgba(179, 38, 30, 0.12);
  color: #b3261e;
}

.admin-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-row-actions button {
  border: 1px solid rgba(8, 7, 6, 0.12);
  background: #fffaf2;
  color: #211c18;
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 900;
  cursor: pointer;
}

.admin-row-actions button:hover {
  background: #d7b56d;
}

.admin-row-actions .danger {
  background: #fff0ee;
  color: #b3261e;
}

@media (max-width: 920px) {
  .admin-header,
  .admin-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .admin-actions {
    width: 100%;
  }

  .admin-actions .btn {
    flex: 1;
  }
}

@media (max-width: 560px) {
  .admin-shell {
    width: min(100% - 20px, 1180px);
    padding: 20px 0;
  }

  .admin-card {
    padding: 18px;
    border-radius: 22px;
  }

  .admin-two-cols {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    flex-direction: column;
  }
}
/* FIX: ocultar correctamente vistas del admin */
[hidden] {
  display: none !important;
}

#login-view[hidden],
#admin-view[hidden] {
  display: none !important;
}
.admin-login {
  min-height: 100vh;
  padding: 40px 16px;
}

.admin-panel {
  padding-top: 40px;
}

.admin-grid {
  margin-top: 24px;
}