/* MayVenta HN — Panel de productos (solo administradores) */
body.mv-canvas:has(.mvp) { background: #eef1f6 !important; }
.mv-root.mvp { min-height: 100vh; background: #eef1f6; color: var(--ink); }

/* inicio de sesión */
.mv-root .mvp-login { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; background: radial-gradient(110% 100% at 80% 0%, #10377a, var(--navy-900) 55%, var(--navy-950)); overflow: hidden; }
.mv-root .mvp-login__card { position: relative; z-index: 1; width: min(420px, 100%); background: #fff; border-radius: 26px; padding: 34px 30px; box-shadow: var(--shadow-lg); display: grid; gap: 14px; text-align: left; }
.mv-root .mvp-login__card img { width: 120px; height: auto; margin: 0 auto 4px; }
.mv-root .mvp-login__card h1 { font-size: 24px; font-weight: 600; text-align: center; }
.mv-root .mvp-login__card > p { color: var(--muted); text-align: center; font-size: 14px; margin-top: -8px; }
.mv-root .mvp-err { background: #fdecea; color: #8a1c14 !important; border-radius: 12px; padding: 10px 14px; font-size: 14px; margin: 0 !important; text-align: center; }
.mv-root .mvp-forgot { text-align: center; font-size: 13px; color: var(--blue); text-decoration: underline !important; }

/* campos */
.mv-root .mvp-f { display: grid; gap: 6px; min-width: 0; }
.mv-root .mvp-f > span { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.mv-root .mvp-in { width: 100%; min-height: 46px; padding: 10px 14px !important; border: 1.5px solid var(--line) !important; border-radius: 12px !important; background: #f7f9fc !important; font-size: 15px !important; color: var(--ink) !important; box-shadow: none !important; outline: 0; margin: 0; }
.mv-root .mvp-in:focus { border-color: var(--cyan) !important; background: #fff !important; box-shadow: 0 0 0 4px rgba(48, 162, 196, .15) !important; }
.mv-root .mvp-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.mv-root .mvp-check input { width: 18px; height: 18px; accent-color: var(--navy-700); margin: 0; }

/* barra superior */
.mv-root .mvp-top { position: relative; z-index: 50; background: var(--navy-900); color: #fff; }
.mvp-top__in { max-width: 1180px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.mv-root .mvp-brand { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.mv-root .mvp-brand img { height: 40px; width: auto; }
.mv-root .mvp-brand b { color: var(--cyan-2); }
.mv-root .mvp-top__act { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.mv-root .mvp-top__act a { color: #fff; opacity: .85; }
.mv-root .mvp-top__act a:hover { opacity: 1; text-decoration: underline !important; }
.mv-root .mvp-user { opacity: .6; }

/* lista */
.mvp-main { max-width: 1180px; margin: 0 auto; padding: 28px 20px 80px; }
.mvp-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.mv-root .mvp-head h1 { font-size: 30px; font-weight: 400; }
.mv-root .mvp-sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.mvp-tools { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.mvp-list { display: grid; gap: 10px; }
.mv-root .mvp-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: 0 1px 2px rgba(6, 22, 51, .06); border: 1px solid #e6eaf1; }
.mv-root .mvp-item.is-off { opacity: .6; }
.mv-root .mvp-item img { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.mvp-item__main { display: grid; gap: 3px; min-width: 0; }
.mv-root .mvp-item__main b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-root .mvp-item__main > span { font-size: 12.5px; color: var(--muted); }
.mvp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mv-root .mvp-tags i { font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: #f0f3f8; color: var(--muted); }
.mv-root .mvp-tags .t-on { background: #e6f6ec; color: #17693a; }
.mv-root .mvp-tags .t-off { background: #f3f0e8; color: #7a5600; }
.mv-root .mvp-tags .t-out { background: #fdecea; color: #8a1c14; }
.mv-root .mvp-tags .t-new { background: #e5f6fb; color: #0b6b85; }
.mv-root .mvp-item__price { font-weight: 800; color: var(--navy-900); text-align: right; white-space: nowrap; }
.mv-root .mvp-item__price small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mvp-item__act { display: flex; gap: 6px; }
.mv-root .mvp-b { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 14px; border-radius: 10px; border: 1.5px solid var(--line) !important; background: #fff; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; white-space: nowrap; }
.mv-root .mvp-b:hover { border-color: var(--navy-700) !important; }
.mv-root .mvp-b--main { background: var(--navy-900); color: #fff; border-color: var(--navy-900) !important; }
.mv-root .mvp-b--danger { color: #a32014; border-color: #f2c4bf !important; }
.mv-root .mvp-empty { text-align: center; color: var(--muted); padding: 40px; background: #fff; border-radius: 16px; }

/* editor */
.mvp-modal { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 16px; }
.mvp-modal__bg { position: absolute; inset: 0; background: rgba(4, 12, 31, .55); }
.mv-root .mvp-modal__panel { position: relative; width: min(920px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; }
.mvp-modal__panel form { display: flex; flex-direction: column; min-height: 0; max-height: calc(100vh - 32px); }
.mvp-ed__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.mv-root .mvp-ed__head h2 { font-size: 20px; font-weight: 600; }
.mvp-ed__body { overflow-y: auto; padding: 20px 22px; }
.mvp-ed__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); background: #f7f9fc; }
.mvp-ed__foot > div { display: flex; gap: 8px; }
.mvp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mvp-f--wide { grid-column: 1 / -1; }
.mvp-checks { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.mv-root .mvp-h3 { font-size: 16px; font-weight: 700; margin-top: 24px; }
.mv-root .mvp-help { color: var(--muted); font-size: 13px; margin: 4px 0 12px; }
.mvp-rows { display: grid; gap: 10px; margin-bottom: 12px; }
.mv-root .mvp-row { display: grid; grid-template-columns: 76px minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, .8fr) auto 34px; gap: 10px; align-items: end; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfe; }
.mv-root .mvp-photo { width: 76px; height: 76px; border-radius: 12px; border: 1.5px dashed #c8d0dc !important; background: #fff; display: grid; place-items: center; overflow: hidden; cursor: pointer; font-size: 12px; font-weight: 700; color: var(--muted); padding: 0; }
.mv-root .mvp-photo img { width: 100%; height: 100%; object-fit: contain; }
.mvp-colorin { display: flex; gap: 6px; }
.mv-root .mvp-colorin input[type=color] { width: 46px; min-width: 46px; height: 46px; padding: 3px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.mv-root .mvp-check--stock { min-height: 46px; }
.mv-root .mvp-x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #eef1f6; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; align-self: center; }
.mv-root .mvp-x:hover { background: #fdecea; color: #a32014; }

@media (max-width: 860px) {
	.mvp-tools, .mvp-grid { grid-template-columns: minmax(0, 1fr); }
	.mv-root .mvp-item { grid-template-columns: 56px minmax(0, 1fr); }
	.mv-root .mvp-item img { width: 56px; height: 56px; }
	.mv-root .mvp-item__price { grid-column: 2; text-align: left; }
	.mvp-item__act { grid-column: 1 / -1; }
	.mvp-item__act > * { flex: 1; }
	.mv-root .mvp-row { grid-template-columns: 76px minmax(0, 1fr) 34px; }
	.mv-root .mvp-row .mvp-photo { grid-row: span 3; }
	.mv-root .mvp-row > .mvp-f, .mv-root .mvp-row > .mvp-check { grid-column: 2 / 3; }
	.mv-root .mvp-row > .mvp-x { grid-column: 3; grid-row: 1; align-self: start; }
	.mvp-modal { padding: 0; }
	.mv-root .mvp-modal__panel { border-radius: 0; max-height: 100vh; height: 100vh; }
	.mvp-modal__panel form { max-height: 100vh; height: 100%; }
	.mvp-top__act .mvp-user { display: none; }
}
