:root {
  --sp-gold: #D4AF37;
  --sp-gold-dark: #b99326;
  --sp-black: #000000;
  --sp-charcoal: #1B1B1B;
  --sp-white: #FFFFFF;
  --sp-surface: #ffffff;
  --sp-surface-alt: #f7f7f5;
  --sp-border: rgba(0, 0, 0, 0.08);
  --sp-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  --sp-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --sp-radius-xl: 28px;
  --sp-radius-lg: 20px;
  --sp-radius-md: 14px;
}

html { scroll-behavior: smooth; }
body.smartperu-theme {
  background: linear-gradient(180deg, #fffdf7 0%, #ffffff 24%, #f8f7f4 100%);
  color: var(--sp-charcoal);
  font-family: "DM Sans", system-ui, sans-serif;
}

body.smartperu-theme a { color: inherit; }
body.smartperu-theme img { max-width: 100%; height: auto; }
body.smartperu-theme .container { width: min(100% - 24px, 1320px); }
body.smartperu-theme h1,
body.smartperu-theme h2,
body.smartperu-theme h3,
body.smartperu-theme h4,
body.smartperu-theme h5,
body.smartperu-theme h6 {
  font-family: "Urbanist", "DM Sans", sans-serif;
  color: var(--sp-black);
  letter-spacing: -0.03em;
}
body.smartperu-theme h1 { font-size: clamp(2.1rem, 4vw, 4.25rem); line-height: 1.02; }
body.smartperu-theme h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
body.smartperu-theme h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
body.smartperu-theme p { color: #454545; }

body.smartperu-theme .bg-primary,
body.smartperu-theme .btn-primary,
body.smartperu-theme .text-primary,
body.smartperu-theme .hover\:text-primary:hover {
  color: var(--sp-gold) !important;
}
body.smartperu-theme .bg-primary { background-color: var(--sp-gold) !important; }
body.smartperu-theme .bg-primary-darker,
body.smartperu-theme .bg-dark,
body.smartperu-theme .bg-gray-900 {
  background-color: var(--sp-black) !important;
}
body.smartperu-theme .text-light-primary-text { color: var(--sp-black) !important; }
body.smartperu-theme .text-light-secondary-text,
body.smartperu-theme .text-gray-500,
body.smartperu-theme .text-gray-600 { color: #6a6a6a !important; }

body.smartperu-theme .btn,
body.smartperu-theme button,
body.smartperu-theme input,
body.smartperu-theme select,
body.smartperu-theme textarea {
  transition: all .25s ease;
}
body.smartperu-theme .btn,
body.smartperu-theme button[type="submit"],
body.smartperu-theme .ec-btn,
body.smartperu-theme .catalog-search-button {
  border-radius: 999px;
  font-weight: 700;
}
body.smartperu-theme .btn-primary,
body.smartperu-theme button[type="submit"],
body.smartperu-theme .catalog-search-button,
body.smartperu-theme .sp-header-search button,
body.smartperu-theme .sp-action-pill:hover {
  background: linear-gradient(135deg, var(--sp-gold) 0%, #f0cd65 100%);
  color: var(--sp-black) !important;
  border-color: transparent !important;
  box-shadow: 0 14px 30px rgba(212, 175, 55, 0.26);
}
body.smartperu-theme button[type="submit"]:hover,
body.smartperu-theme .btn-primary:hover,
body.smartperu-theme .catalog-search-button:hover,
body.smartperu-theme .sp-header-search button:hover {
  background: linear-gradient(135deg, var(--sp-gold-dark) 0%, #d7aa29 100%);
  transform: translateY(-1px);
}
body.smartperu-theme .btn-default,
body.smartperu-theme .outline,
body.smartperu-theme .border,
body.smartperu-theme .border-gray-300,
body.smartperu-theme .border-gray-200,
body.smartperu-theme .input-group,
body.smartperu-theme .form-control,
body.smartperu-theme input,
body.smartperu-theme textarea,
body.smartperu-theme select {
  border-color: var(--sp-border) !important;
}
body.smartperu-theme input,
body.smartperu-theme textarea,
body.smartperu-theme select,
body.smartperu-theme .input-group {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.02);
}
body.smartperu-theme input:focus,
body.smartperu-theme textarea:focus,
body.smartperu-theme select:focus {
  outline: none;
  border-color: rgba(212,175,55,.6) !important;
  box-shadow: 0 0 0 4px rgba(212,175,55,.12);
}

.sp-header { position: sticky; top: 0; z-index: 90; backdrop-filter: blur(12px); }
.sp-topbar {
  background: linear-gradient(90deg, #000 0%, #1B1B1B 100%);
  color: rgba(255,255,255,.9);
  font-size: 14px;
}
.sp-topbar-inner,
.sp-header-main-inner,
.sp-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.sp-topbar-inner { min-height: 48px; }
.sp-topbar-copy span,
.sp-topbar-links a { display: inline-flex; align-items: center; gap: 8px; }
.sp-topbar-links { display: flex; flex-wrap: wrap; gap: 18px; }
.sp-topbar a:hover { color: var(--sp-gold); }

.sp-header-main {
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 12px 32px rgba(0,0,0,.04);
}
.sp-header-main-inner { min-height: 96px; }
.sp-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.sp-brand-logo { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0,0,0,.18)); }
.sp-brand-copy { display: flex; flex-direction: column; gap: 3px; }
.sp-brand-copy strong { color: var(--sp-black); font-size: 1.2rem; letter-spacing: .08em; }
.sp-brand-copy span { color: #696969; font-size: .88rem; max-width: 250px; }

.sp-header-search {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(100%, 620px);
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(212,175,55,.18);
  box-shadow: 0 16px 40px rgba(0,0,0,.06);
}
.sp-header-search i { color: var(--sp-gold); font-size: 1.3rem; }
.sp-header-search input {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0;
  min-height: 46px;
}
.sp-header-search button { padding: 0 20px; min-height: 46px; }
.sp-header-search-mobile { width: 100%; margin-top: 14px; }
.sp-mobile-search { background: rgba(255,255,255,.96); padding-bottom: 14px; }

.sp-header-actions { display: flex; align-items: center; gap: 12px; }
.sp-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,.03);
}
.sp-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(212,175,55,.14);
  color: var(--sp-black);
  font-size: 1.3rem;
}
.sp-action-copy { flex-direction: column; line-height: 1.1; }
.sp-action-copy small { color: #777; font-size: .72rem; }
.sp-action-copy strong { font-size: .9rem; color: var(--sp-black); }

.sp-nav-wrap { background: #fff; border-bottom: 1px solid rgba(0,0,0,.06); }
.sp-nav { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: thin; }
.sp-nav a {
  white-space: nowrap;
  padding: 11px 18px;
  border-radius: 999px;
  color: #333;
  font-weight: 700;
}
.sp-nav a:hover,
.sp-nav a.active {
  background: rgba(212,175,55,.12);
  color: var(--sp-black) !important;
}

.sp-footer {
  background: radial-gradient(circle at top, rgba(212,175,55,.13), transparent 20%), linear-gradient(180deg, #121212 0%, #000000 100%);
  color: rgba(255,255,255,.86);
}
.sp-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 36px;
}
.sp-footer h5 { color: #fff; margin-bottom: 18px; font-size: 1.05rem; }
.sp-footer-logo { width: 110px; filter: drop-shadow(0 12px 26px rgba(212,175,55,.16)); }
.sp-footer-text { color: rgba(255,255,255,.76); max-width: 340px; line-height: 1.8; }
.sp-socials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.sp-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
}
.sp-socials a:hover { background: var(--sp-gold); color: #000; }
.sp-footer-links,
.sp-footer-contact { display: grid; gap: 12px; }
.sp-footer-links a,
.sp-footer-contact,
.sp-footer-contact a { color: rgba(255,255,255,.76); }
.sp-footer-links a:hover,
.sp-footer-contact a:hover { color: var(--sp-gold); }
.sp-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0 0;
  color: rgba(255,255,255,.65);
  flex-wrap: wrap;
}
.sp-footer-mini-links { display: flex; gap: 16px; flex-wrap: wrap; }
.sp-footer-mini-links a:hover { color: var(--sp-gold); }

.catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 14px;
}
@media (min-width: 1024px) {
  .catalog-hero { grid-template-columns: minmax(280px, 360px) minmax(0, 760px); justify-content: space-between; }
}
.catalog-title { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; }
.catalog-subtitle { max-width: 480px; color: #5d5d5d; }
.catalog-search-form { width: 100%; }
.catalog-search-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: center; }
@media (min-width: 640px) { .catalog-search-wrap { grid-template-columns: minmax(0, 1fr) auto; } }
.catalog-search-input,
.catalog-search-button { height: 58px; }
.catalog-search-input {
  border-radius: 999px;
  padding-inline: 22px;
  background: #fff;
  border: 1px solid rgba(212,175,55,.2);
  box-shadow: var(--sp-shadow-soft);
}
.catalog-search-button { min-width: 140px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }
.catalog-sidebar {
  align-self: start;
  position: sticky;
  top: 164px;
  border-radius: var(--sp-radius-lg);
}
.catalog-products-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 24px; }
@media (min-width: 768px) { .catalog-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .catalog-products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .catalog-products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.catalog-product-card,
body.smartperu-theme .rounded-3xl,
body.smartperu-theme .shadow-light-z-12,
body.smartperu-theme .product-card,
body.smartperu-theme .bg-white {
  border-radius: 24px !important;
}
.catalog-product-card,
body.smartperu-theme .product-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.96);
  box-shadow: var(--sp-shadow-soft);
}
.catalog-product-card:hover,
body.smartperu-theme .product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0,0,0,.09);
}
.catalog-product-image { height: 220px; background: linear-gradient(180deg, #f9f6eb, #f4f4f2); }
.catalog-product-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.catalog-product-actions .btn { min-height: 42px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.catalog-main-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 24px; }
@media (min-width: 1200px) { .catalog-main-grid { grid-template-columns: 280px minmax(0, 1fr); } }

body.smartperu-theme .page-header,
body.smartperu-theme .breadcrumb-wrap,
body.smartperu-theme .checkout-summary,
body.smartperu-theme .account-summary-card,
body.smartperu-theme .wishlist-card,
body.smartperu-theme .compare-table-wrap,
body.smartperu-theme .order-card,
body.smartperu-theme .admin-stat-card {
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--sp-shadow-soft);
}
body.smartperu-theme table { border-collapse: separate; border-spacing: 0; }
body.smartperu-theme table th {
  background: #111;
  color: #fff;
  border-color: rgba(255,255,255,.06) !important;
}
body.smartperu-theme table td { background: #fff; }
body.smartperu-theme .price,
body.smartperu-theme .product-price,
body.smartperu-theme .amount,
body.smartperu-theme .offer-price { color: var(--sp-gold-dark) !important; font-weight: 800; }
body.smartperu-theme .line-through { opacity: .55; }

body.smartperu-theme .footer-bottom-nav-btn,
body.smartperu-theme .footer-bottom-nav-btn i { color: var(--sp-black) !important; }
body.smartperu-theme .footer-bottom-nav-btn:hover,
body.smartperu-theme .footer-bottom-nav-btn:hover i { color: var(--sp-gold-dark) !important; }

body.smartperu-theme .admin-shell,
body.smartperu-theme .min-h-screen.bg-slate-100 { background: linear-gradient(180deg, #faf8f1, #f6f6f6) !important; }
body.smartperu-theme .admin-sidebar,
body.smartperu-theme .bg-slate-900,
body.smartperu-theme .bg-slate-950 { background: #111 !important; }
body.smartperu-theme .admin-sidebar a.active,
body.smartperu-theme .admin-sidebar a:hover { background: rgba(212,175,55,.16) !important; color: #fff !important; }

.sp-whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 90px;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #0f9d58;
  color: #fff;
  box-shadow: 0 14px 30px rgba(15,157,88,.3);
}
.sp-whatsapp-float:hover { transform: translateY(-2px); color: #fff; }

@media (max-width: 1199px) {
  .sp-header { position: static; }
  .sp-header-main-inner { min-height: 84px; flex-wrap: wrap; justify-content: space-between; }
  .sp-brand-logo { width: 58px; height: 58px; }
  .sp-header-actions { gap: 8px; }
  .sp-action-pill { padding: 8px 10px; }
  .catalog-sidebar { position: static; top: auto; }
  .sp-footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 767px) {
  body.smartperu-theme .container { width: min(100% - 18px, 1320px); }
  .sp-topbar { display: none; }
  .sp-header-main-inner { min-height: 76px; }
  .sp-brand { gap: 10px; }
  .sp-brand-logo { width: 50px; height: 50px; }
  .sp-header-actions { gap: 6px; }
  .sp-action-pill { padding: 8px; }
  .sp-nav { padding: 10px 0; }
  .sp-nav a { padding: 10px 14px; font-size: .92rem; }
  .sp-footer-grid { grid-template-columns: 1fr; }
  .sp-footer-bottom { padding-bottom: 12px; }
  .sp-whatsapp-float { bottom: 92px; right: 12px; padding: 11px 14px; }
  .catalog-product-image { height: 190px; }
}


/* =============================
   SMARTPERU UI FINAL POLISH
============================= */
body.smartperu-theme .text-primary,
body.smartperu-theme .hover\:text-primary:hover { color: var(--sp-gold) !important; }
body.smartperu-theme .bg-primary { background-color: var(--sp-gold) !important; }
body.smartperu-theme .btn.bg-primary,
body.smartperu-theme a.bg-primary,
body.smartperu-theme button.bg-primary,
body.smartperu-theme .btn.btn-primary,
body.smartperu-theme .ec-btn.btn-primary,
body.smartperu-theme .catalog-search-button,
body.smartperu-theme .sp-header-search button,
body.smartperu-theme button[type="submit"] {
  color: var(--sp-black) !important;
}

body.smartperu-theme .btn,
body.smartperu-theme button,
body.smartperu-theme .ec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  border-radius: 999px;
}
body.smartperu-theme .btn-lg { min-height: 52px; padding: 13px 26px; }
body.smartperu-theme .btn-medium { min-height: 44px; padding: 10px 18px; }
body.smartperu-theme .btn-default,
body.smartperu-theme .btn-outline,
body.smartperu-theme a.border,
body.smartperu-theme button.border {
  background: #fff;
  color: var(--sp-charcoal) !important;
  border: 1px solid rgba(0,0,0,.10) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.03);
}
body.smartperu-theme .btn-default:hover,
body.smartperu-theme .btn-outline:hover,
body.smartperu-theme a.border:hover,
body.smartperu-theme button.border:hover {
  border-color: rgba(212,175,55,.45) !important;
  color: var(--sp-black) !important;
  box-shadow: 0 14px 30px rgba(212,175,55,.11);
  transform: translateY(-1px);
}
body.smartperu-theme button:disabled,
body.smartperu-theme .btn:disabled {
  opacity: .58;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
body.smartperu-theme .btn.bg-primary:hover,
body.smartperu-theme a.bg-primary:hover,
body.smartperu-theme button.bg-primary:hover,
body.smartperu-theme .btn.btn-primary:hover,
body.smartperu-theme .catalog-search-button:hover,
body.smartperu-theme .sp-header-search button:hover,
body.smartperu-theme button[type="submit"]:hover {
  color: var(--sp-black) !important;
}

.sp-nav-wrap {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(212,175,55,.08);
  border-bottom: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 12px 24px rgba(0,0,0,.03);
}
.sp-nav {
  gap: 10px;
  padding: 14px 0;
}
.sp-nav a {
  position: relative;
  padding: 12px 18px;
  color: #2f2f2f;
  font-weight: 800;
  letter-spacing: -.01em;
}
.sp-nav a::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 7px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--sp-gold), #f0cd65);
  opacity: 0;
  transform: scaleX(.3);
  transition: all .25s ease;
}
.sp-nav a:hover {
  background: rgba(212,175,55,.10);
  color: var(--sp-black) !important;
  transform: translateY(-1px);
}
.sp-nav a:hover::after,
.sp-nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}
.sp-nav a.active {
  background: linear-gradient(135deg, rgba(212,175,55,.18), rgba(212,175,55,.08));
  color: var(--sp-black) !important;
  box-shadow: inset 0 0 0 1px rgba(212,175,55,.16), 0 8px 20px rgba(212,175,55,.10);
}

.sp-action-pill {
  min-height: 54px;
}
.sp-action-pill:hover {
  color: var(--sp-black);
}
.sp-action-pill:hover .sp-action-icon {
  background: rgba(0,0,0,.10);
}

.catalog-product-card .btn,
.catalog-product-card button,
.catalog-product-card a.btn {
  min-height: 42px;
}
.catalog-product-card .btn.bg-primary,
.catalog-product-card button.bg-primary {
  min-width: 162px;
}
.catalog-product-card .btn.border,
.catalog-product-card button.border {
  background: #fff;
}

section .btn.text-white,
section a.text-white.btn,
section button.text-white {
  color: var(--sp-black) !important;
}

.sp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.sp-hero-actions .btn,
.sp-hero-actions a {
  min-width: 190px;
}

@media (max-width: 991.98px) {
  .sp-header-main-inner {
    min-height: 86px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 14px 0;
  }
  .sp-header-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .sp-action-pill {
    flex: 1 1 calc(33.333% - 8px);
    min-width: 0;
  }
  .sp-nav {
    padding: 10px 0 12px;
  }
}

@media (max-width: 767.98px) {
  .sp-brand-logo { width: 58px; height: 58px; }
  .sp-action-pill {
    flex: 1 1 calc(50% - 8px);
    padding-right: 10px;
  }
  .sp-header-search {
    grid-template-columns: auto minmax(0,1fr);
  }
  .sp-header-search button {
    grid-column: 1 / -1;
    width: 100%;
  }
  .sp-nav a {
    padding: 10px 14px;
    font-size: .95rem;
  }
  .sp-hero-actions .btn,
  .sp-hero-actions a {
    width: 100%;
    min-width: 0;
  }
}


/* =============================
   SMARTPERU ADMIN UX POLISH
============================= */
body.smartperu-theme .admin-ui {
  background: linear-gradient(180deg, #fbfaf6 0%, #f4f4f3 100%) !important;
}
.admin-sidebar {
  background: linear-gradient(180deg, #101010 0%, #171717 100%) !important;
  box-shadow: inset -1px 0 0 rgba(255,255,255,.04);
}
.admin-brand-title {
  display:block;
  color:#fff;
  font-size:1.35rem;
  font-weight:800;
  letter-spacing:-.02em;
}
.admin-brand-text {
  margin-top:6px;
  color:rgba(255,255,255,.58);
  font-size:.92rem;
  line-height:1.45;
}
.admin-nav-link {
  display:block;
  padding:14px 16px;
  border-radius:18px;
  color:rgba(255,255,255,.78);
  font-weight:700;
  transition:all .22s ease;
}
.admin-nav-link:hover,
.admin-nav-link.active {
  color:#fff;
  background:linear-gradient(135deg, rgba(212,175,55,.22), rgba(212,175,55,.10));
  box-shadow: inset 0 0 0 1px rgba(212,175,55,.14);
}
.admin-topbar {
  margin: 16px 16px 0;
  padding: 22px 24px;
  border-radius: 26px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 18px 40px rgba(0,0,0,.04);
  backdrop-filter: blur(14px);
}
.admin-kicker {
  color: var(--sp-gold-dark);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 800;
}
.admin-page-title {
  margin-top: 6px;
  color: #111;
  font-size: clamp(2rem, 3.2vw, 3.5rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.04em;
}
.admin-page-subtitle {
  margin-top: 8px;
  color: #666;
  font-size: 1rem;
}
.admin-topbar-actions { display:flex; flex-wrap:wrap; gap:10px; }
.admin-content-wrap { padding-top: 18px; }
.admin-panel {
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:26px;
  padding:24px;
  box-shadow:0 18px 40px rgba(0,0,0,.04);
}
.admin-panel-header {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:18px;
}
.admin-panel-title {
  font-size:1.9rem;
  line-height:1.1;
  font-weight:900;
  letter-spacing:-.03em;
  color:#111;
}
.admin-stat-grid {
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:16px;
}
.admin-stat-card {
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:24px;
  padding:22px;
  box-shadow:0 16px 36px rgba(0,0,0,.04);
}
.admin-stat-label { color:#6f6f6f; font-size:.92rem; font-weight:600; }
.admin-stat-value { margin-top:8px; font-size:2rem; line-height:1; font-weight:900; color:#111; }
.admin-stat-note { margin-top:8px; color:#8a8a8a; font-size:.82rem; }
.admin-grid-main {
  display:grid;
  grid-template-columns:minmax(0,1.75fr) minmax(320px, .95fr);
  gap:24px;
}
.admin-table-wrap, .admin-table-panel { overflow:auto; }
.admin-table {
  width:100%;
  min-width:780px;
  border-collapse:separate;
  border-spacing:0;
  font-size:.94rem;
}
.admin-table th {
  padding:14px 16px;
  background:#f5f4ef;
  color:#494949;
  font-size:.78rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  border-bottom:1px solid rgba(0,0,0,.08);
}
.admin-table th:first-child { border-top-left-radius:16px; }
.admin-table th:last-child { border-top-right-radius:16px; }
.admin-table td {
  padding:15px 16px;
  border-bottom:1px solid rgba(0,0,0,.06);
  vertical-align:top;
  color:#232323;
}
.admin-table tbody tr:hover td { background:rgba(212,175,55,.045); }
.admin-list { display:grid; gap:10px; color:#555; }
.admin-quick-grid {
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:12px;
}
.admin-quick-grid a {
  display:block;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.08);
  background:#fcfcfc;
  font-weight:700;
  color:#222;
  transition:all .2s ease;
}
.admin-quick-grid a:hover {
  transform:translateY(-1px);
  border-color:rgba(212,175,55,.45);
  box-shadow:0 10px 24px rgba(212,175,55,.10);
}
body.smartperu-theme .admin-ui .btn { min-height:44px; }
body.smartperu-theme .admin-ui .btn-sm { min-height:38px; padding:9px 14px; font-size:.82rem; }
body.smartperu-theme .admin-ui .btn-primary { background:linear-gradient(135deg, #d4af37, #e5c45b); color:#111 !important; }
body.smartperu-theme .admin-ui .btn-dark { background:#111; color:#fff !important; }
body.smartperu-theme .admin-ui .btn-danger { background:#dc2626; color:#fff !important; }
body.smartperu-theme .admin-ui .btn-default { background:#fff; color:#1f1f1f !important; border:1px solid rgba(0,0,0,.10) !important; }
.admin-search-row, .admin-filter-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
}
.admin-filter-grid { grid-template-columns:220px minmax(0,1fr) auto; }
body.smartperu-theme .admin-ui input,
body.smartperu-theme .admin-ui select,
body.smartperu-theme .admin-ui textarea {
  border-radius:16px !important;
  border:1px solid rgba(0,0,0,.10) !important;
  background:#fff !important;
  box-shadow:none !important;
}
body.smartperu-theme .admin-ui input:focus,
body.smartperu-theme .admin-ui select:focus,
body.smartperu-theme .admin-ui textarea:focus {
  border-color: rgba(212,175,55,.55) !important;
  box-shadow: 0 0 0 4px rgba(212,175,55,.12) !important;
  outline:none;
}
@media (max-width: 1279.98px) {
  .admin-stat-grid { grid-template-columns:repeat(2, minmax(0,1fr)); }
  .admin-grid-main { grid-template-columns:1fr; }
}
@media (max-width: 767.98px) {
  .admin-topbar { margin: 10px 10px 0; padding: 18px 16px; border-radius: 22px; }
  .admin-page-title { font-size: 2.2rem; }
  .admin-stat-grid { grid-template-columns:1fr; }
  .admin-search-row, .admin-filter-grid { grid-template-columns:1fr; }
  .admin-quick-grid { grid-template-columns:1fr; }
}


/* =============================
   ADMIN FINAL UX FIXES
============================= */
.admin-sidebar {
  color: rgba(255,255,255,.92) !important;
}
.admin-nav-link {
  color: rgba(255,255,255,.88) !important;
  letter-spacing: .01em;
}
.admin-nav-link:hover,
.admin-nav-link.active {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(212,175,55,.30), rgba(212,175,55,.14)) !important;
  box-shadow: inset 0 0 0 1px rgba(212,175,55,.28), 0 10px 24px rgba(0,0,0,.22);
}
.admin-brand-title {
  color: #d9b54c !important;
}
.admin-brand-text {
  color: rgba(255,255,255,.72) !important;
}
.admin-help {
  color:#6a6a6a;
  font-size:.92rem;
  line-height:1.55;
}
.admin-section-card {
  background: linear-gradient(180deg, rgba(250,247,239,.95), #fff);
  border:1px solid rgba(212,175,55,.20);
  border-radius:22px;
  padding:18px;
}
.admin-preview-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(140px, 1fr));
  gap:14px;
}
.admin-image-card {
  border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  background:#fff;
  padding:12px;
  box-shadow:0 10px 24px rgba(0,0,0,.04);
}
.admin-image-label {
  display:inline-block;
  font-size:.78rem;
  font-weight:800;
  color:#7a6840;
  margin-bottom:8px;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.admin-image-thumb {
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:14px;
  background:#f4f4f4;
  border:1px solid rgba(0,0,0,.06);
}
.admin-image-thumb-banner {
  aspect-ratio:16/7;
}
.admin-empty-hint {
  min-height:160px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:20px;
  border:1px dashed rgba(212,175,55,.45);
  border-radius:18px;
  background:rgba(212,175,55,.06);
  color:#8a7330;
  font-weight:600;
}
.admin-table td .btn,
.admin-table td button.btn {
  white-space:nowrap;
}
body.smartperu-theme .admin-ui .btn {
  min-height:44px;
  border-radius:16px;
  font-weight:800;
  box-shadow:none;
}
body.smartperu-theme .admin-ui .btn-primary {
  background:linear-gradient(135deg, #d4af37, #f1d777) !important;
  color:#111 !important;
}
body.smartperu-theme .admin-ui .btn-default {
  background:#fff !important;
  color:#1b1b1b !important;
  border:1px solid rgba(0,0,0,.12) !important;
}
body.smartperu-theme .admin-ui .btn-default:hover {
  border-color:rgba(212,175,55,.48) !important;
  background:#fffaf0 !important;
}
body.smartperu-theme .admin-ui .btn-dark:hover {
  background:#222 !important;
}
body.smartperu-theme .admin-ui .btn-danger:hover {
  background:#b91c1c !important;
}
body.smartperu-theme .admin-ui label {
  color:#1e1e1e;
}
body.smartperu-theme .admin-ui .admin-panel textarea {
  line-height:1.5;
}
@media (max-width: 1279.98px) {
  .admin-sidebar {
    width: 100%;
  }
}
