/* ============================================
   Mi Tienda Personal - Estilo Moderno
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap');

:root {
	--my-store-bg: #f3f6fb;
	--my-store-bg-card: #ffffff;
	--my-store-bg-hover: #eef2f9;
	--my-store-border: #d9e2ef;
	--my-store-accent-pink: #e0529f;
	--my-store-accent-purple: #8b5cf6;
	--my-store-text: #1e293b;
	--my-store-text-muted: #64748b;
	--my-store-danger: #e5484d;
	--my-store-success: #0ea372;
	--my-store-warning: #b37400;
	--my-store-shadow: 0 4px 16px rgba(15, 50, 90, 0.1);
	--my-store-shadow-strong: 0 8px 28px rgba(15, 50, 90, 0.16);
	--my-store-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--my-store-font-display: 'Sora', 'Inter', -apple-system, 'Segoe UI', sans-serif;
}

/* Reset y base */
.my-store-body {
	background: var(--my-store-bg);
	color: var(--my-store-text);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	margin: 0;
	padding: 0;
	min-height: 100vh;
}

.my-store-app {
	display: flex;
	min-height: 100vh;
}

.my-store-main {
	display: flex;
	width: 100%;
}

/* ============================================
   Sidebar
   ============================================ */
.my-store-sidebar {
	width: 260px;
	background: var(--my-store-bg-card);
	border-right: 1px solid var(--my-store-border);
	display: flex;
	flex-direction: column;
	padding: 20px 0;
	position: sticky;
	top: 0;
	height: 100vh;
	overflow-y: auto;
}

.my-store-sidebar-header {
	text-align: center;
	padding: 0 20px 20px;
	border-bottom: 1px solid var(--my-store-border);
	margin-bottom: 20px;
}

.my-store-logo,
.my-store-logo-placeholder {
	width: 150px;
	height: 52px;
	border-radius: 10px;
	margin: 0 auto 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	font-weight: bold;
	color: var(--my-store-bg);
	background: linear-gradient(135deg, #2346a7, #008fd1);
	box-shadow: var(--my-store-shadow-strong);
	overflow: hidden;
}

/* El logo es el propio <img>: tamaño fijo horizontal (150x52). La imagen
   se ajusta al cuadro con object-fit: contain (el logo se muestra COMPLETO,
   sin recortes, encajado en el cuadro) SIN alterar el tamaño del cuadro ni
   empujar el resto del layout. */
.my-store-logo {
	object-fit: contain;
	margin: 0 auto 10px;
}

.my-store-store-name {
	color: #2346a7;
	font-size: 18px;
	margin: 0 0 4px;
	text-shadow: 0 0 10px rgba(35, 70, 167, 0.3);
	/* Nombres largos (p. ej. "Miltiherramientas"): se mantienen en una sola
	   línea; si no caben, el JS reduce la tipografía hasta que se lean
	   completos (el corte con ellipsis es solo el respaldo sin JS). */
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.my-store-user-role {
	color: var(--my-store-text-muted);
	font-size: 12px;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.my-store-nav {
	flex: 1;
	padding: 0 10px;
}

.my-store-nav-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	margin-bottom: 4px;
	border-radius: 8px;
	color: var(--my-store-text);
	text-decoration: none;
	transition: all 0.3s ease;
	border: 1px solid transparent;
}

.my-store-nav-item:hover,
.my-store-nav-item:focus {
	background: var(--my-store-bg-hover) !important;
	color: #2346a7 !important;
	border-color: var(--my-store-border) !important;
}

.my-store-nav-item.active {
	background: rgba(35, 70, 167, 0.1) !important;
	color: #2346a7 !important;
	border-color: #2346a7 !important;
	box-shadow: var(--my-store-shadow);
}

.my-store-nav-icon {
	font-size: 18px;
	width: 24px;
	text-align: center;
}

.my-store-nav-label {
	font-size: 14px;
}

.my-store-sidebar-footer {
	padding: 20px 10px 0;
	border-top: 1px solid var(--my-store-border);
}

.my-store-logout {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border-radius: 8px;
	color: var(--my-store-text);
	text-decoration: none;
	transition: all 0.3s ease;
	border: 1px solid transparent;
}

.my-store-logout:hover,
.my-store-logout:focus {
	background: var(--my-store-bg-hover) !important;
	color: #2346a7 !important;
	border-color: var(--my-store-border) !important;
}

/* QR del dashboard del vendedor: enlace a la tienda pública (equiparbol.com).
   El QR se genera en JS dentro de .my-store-qr-code; el contenedor blanco da
   el contraste necesario para que los teléfonos lo lean. */
.my-store-qr {
	padding: 14px;
	margin-bottom: 12px;
	border: 1px solid var(--my-store-border);
	border-radius: 12px;
	background: var(--my-store-bg-hover);
	text-align: center;
}

.my-store-qr-title {
	margin: 0 0 10px;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--my-store-text-muted);
}

.my-store-qr-code {
	display: inline-block;
	min-width: 100px;
	min-height: 100px;
	padding: 8px;
	background: #ffffff;
	border-radius: 10px;
	line-height: 0;
	box-shadow: var(--my-store-shadow);
}

.my-store-qr-code svg {
	display: block;
	max-width: 100%;
	height: auto;
}

.my-store-qr-error {
	display: block;
	font-size: 11px;
	line-height: 1.4;
	word-break: break-all;
	color: var(--my-store-text);
}

.my-store-qr-url {
	display: block;
	margin-top: 10px;
	font-size: 10.5px;
	line-height: 1.4;
	word-break: break-all;
	color: #2346a7;
	text-decoration: none;
}

.my-store-qr-url:hover {
	text-decoration: underline;
}

/* ============================================
   Contenido principal
   ============================================ */
.my-store-content {
	flex: 1;
	padding: 30px;
	overflow-y: auto;
}

.my-store-section-header {
	margin-bottom: 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

.my-store-section-title {
	color: #2346a7;
	font-size: 28px;
	margin: 0;
	text-shadow: 0 0 15px rgba(35, 70, 167, 0.2);
}

.my-store-section-subtitle {
	color: var(--my-store-text-muted);
	margin: 4px 0 0;
	font-size: 14px;
}

/* ============================================
   Botones
   ============================================ */
.my-store-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: 8px;
	border: 1px solid var(--my-store-border);
	background: var(--my-store-bg-card);
	color: var(--my-store-text);
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
}

.my-store-btn:hover {
	border-color: #2346a7;
	box-shadow: var(--my-store-shadow);
}

.my-store-btn-primary {
	background: linear-gradient(135deg, #2346a7, #008fd1) !important;
	color: #ffffff !important;
	border: none !important;
	font-weight: bold;
}

.my-store-btn-primary:hover {
	background: linear-gradient(135deg, #2346a7, #008fd1) !important;
	color: #ffffff !important;
	box-shadow: var(--my-store-shadow-strong);
	transform: translateY(-1px);
}

.my-store-btn-secondary {
	border-color: #008fd1;
	color: #008fd1;
}

.my-store-btn-secondary:hover {
	background: #008fd1;
	color: #ffffff;
	border-color: #008fd1;
}

.my-store-btn-danger {
	border-color: var(--my-store-danger);
	color: var(--my-store-danger);
}

.my-store-btn-danger:hover {
	background: var(--my-store-danger);
	color: #ffffff;
	border-color: var(--my-store-danger);
}

/* ============================================
   Inputs
   ============================================ */
.my-store-input,
.my-store-select {
	width: 100%;
	padding: 10px 14px;
	border-radius: 8px;
	border: 1px solid var(--my-store-border);
	background: var(--my-store-bg-card);
	color: var(--my-store-text);
	font-size: 14px;
	transition: all 0.3s ease;
}

.my-store-input:focus,
.my-store-select:focus {
	outline: none;
	border-color: #2346a7;
	box-shadow: var(--my-store-shadow);
}

.my-store-input::placeholder {
	color: var(--my-store-text-muted);
}

/* ============================================
   Toolbar
   ============================================ */
.my-store-toolbar {
	display: flex;
	gap: 12px;
	margin-bottom: 20px;
	flex-wrap: wrap;
	align-items: center;
}

.my-store-toolbar .my-store-input {
	max-width: 300px;
}

.my-store-toolbar .my-store-select {
	max-width: 200px;
}

.my-store-toolbar .my-store-per-page {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.my-store-toolbar .my-store-per-page label {
	font-size: 13px;
	color: var(--my-store-text-muted);
	white-space: nowrap;
}

.my-store-toolbar .my-store-per-page select {
	width: auto;
	max-width: 90px;
}

/* ============================================
   Tablas
   ============================================ */
.my-store-table-wrapper {
	background: var(--my-store-bg-card);
	border: 1px solid var(--my-store-border);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--my-store-shadow);
}

.my-store-table {
	width: 100%;
	border-collapse: collapse;
}

.my-store-table th {
	background: var(--my-store-bg-hover);
	color: #2346a7;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 12px 16px;
	text-align: left;
	border-bottom: 1px solid var(--my-store-border);
}

.my-store-table td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--my-store-border);
	font-size: 14px;
}

.my-store-table tr:last-child td {
	border-bottom: none;
}

.my-store-table tbody tr {
	transition: background 0.3s ease;
}

.my-store-table tbody tr:hover {
	background: #dde8f6;
}

.my-store-table tbody tr:hover td {
	color: var(--my-store-text);
}

/* ============================================
   Tabla de productos: botones compactos y alineados
   ============================================ */
.my-store-table .my-store-btn {
	padding: 5px 11px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 6px;
	gap: 5px;
	vertical-align: middle;
	line-height: 1.6;
}

.my-store-table .my-store-table-actions {
	white-space: nowrap;
}

.my-store-table .my-store-table-actions .my-store-btn + .my-store-btn {
	margin-left: 6px;
}

.my-store-table .my-store-visits-cell {
	color: #2346a7;
	font-weight: 600;
	white-space: nowrap;
}
.my-store-loading {
	color: var(--my-store-text-muted);
	text-align: center;
	padding: 20px;
}

/* ============================================
   Dashboard - Stats
   ============================================ */
.my-store-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	margin-bottom: 24px;
}

.my-store-stat-card {
	background: var(--my-store-bg-card);
	border: 1px solid var(--my-store-border);
	border-radius: 12px;
	padding: 20px;
	display: flex;
	align-items: center;
	gap: 16px;
	transition: all 0.3s ease;
}

.my-store-stat-card:hover {
	border-color: #2346a7;
	box-shadow: var(--my-store-shadow);
	transform: translateY(-2px);
}

.my-store-stat-icon {
	font-size: 32px;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(35, 70, 167, 0.12);
	border-radius: 12px;
}

.my-store-stat-value {
	font-size: 24px;
	font-weight: bold;
	color: #2346a7;
	display: block;
	text-shadow: 0 0 10px rgba(35, 70, 167, 0.18);
}

.my-store-stat-label {
	font-size: 12px;
	color: var(--my-store-text-muted);
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* ============================================
   Dashboard - Grid
   ============================================ */
.my-store-dashboard-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 20px;
}

@media (max-width: 1024px) {
	.my-store-dashboard-grid {
		grid-template-columns: 1fr;
	}
}

.my-store-chart-card,
.my-store-recent-orders {
	background: var(--my-store-bg-card);
	border: 1px solid var(--my-store-border);
	border-radius: 12px;
	padding: 20px;
}

.my-store-card-title {
	color: #2346a7;
	font-size: 16px;
	margin: 0 0 16px;
}

/* Cabecera del gráfico: título + selector de rango. */
.my-store-chart-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 16px;
}

.my-store-chart-head .my-store-card-title {
	margin: 0;
}

.my-store-chart-ranges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.my-store-range-btn {
	background: var(--my-store-bg-card);
	border: 1px solid var(--my-store-border);
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 12px;
	line-height: 1.2;
	font-weight: 500;
	color: var(--my-store-text);
	cursor: pointer;
	transition: all 0.3s ease;
}

.my-store-range-btn:hover {
	border-color: #2346a7;
	color: #2346a7;
}

.my-store-range-btn.is-active {
	background: linear-gradient(135deg, #2346a7, #008fd1);
	border-color: transparent;
	color: #ffffff;
}

/* Resumen del rango seleccionado (totales + conversión). */
.my-store-chart-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--my-store-border);
	font-size: 13px;
	color: var(--my-store-text-muted);
}

.my-store-chart-stat strong {
	color: var(--my-store-text);
	font-size: 16px;
	margin-right: 2px;
}

/* Selector de rango personalizado (fechas desde/hasta). */
.my-store-chart-custom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
	padding: 12px;
	background: var(--my-store-bg-hover);
	border: 1px solid var(--my-store-border);
	border-radius: 8px;
}

.my-store-chart-custom[hidden] {
	display: none;
}

.my-store-chart-custom label {
	font-size: 12px;
	color: var(--my-store-text-muted);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.my-store-chart-custom .my-store-input {
	flex: 1 1 150px;
	max-width: 190px;
}

/* ============================================
   Dashboard - Filtros, tendencias y stock bajo
   ============================================ */
/* Filtro del historial (solo admin): tienda y producto. */
.my-store-chart-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.my-store-chart-filter .my-store-input {
	flex: 1 1 200px;
	max-width: 320px;
}

/* Variación en las tarjetas de estadísticas. */
.my-store-stat-trend {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 600;
}

.my-store-stat-trend.is-up {
	color: #2346a7;
}

.my-store-stat-trend.is-down {
	color: var(--my-store-accent-pink);
}

/* Ranking de productos en dos columnas (clics y visitas). */
.my-store-top-products-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

@media (max-width: 768px) {
	.my-store-top-products-grid {
		grid-template-columns: 1fr;
	}
}

.my-store-subtitle {
	margin: 0 0 8px;
	font-size: 12px;
	color: var(--my-store-text-muted);
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Insignia de stock bajo. */
.my-store-low-stock-badge {
	background: rgba(224, 82, 159, 0.12);
	color: var(--my-store-accent-pink);
	border-radius: 999px;
	padding: 2px 8px;
	font-size: 12px;
	font-weight: 600;
}

.my-store-export-btn {
	white-space: nowrap;
}

/* ============================================
   Tarjeta "Comparte tu tienda" del dashboard
   ============================================ */
.my-store-share-card {
	margin-top: 24px;
}

.my-store-share-hint {
	margin: 0 0 16px;
	font-size: 13px;
	color: var(--my-store-text-muted);
}

.my-store-share-layout {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 24px;
	align-items: start;
}

.my-store-share-layout .my-store-qr {
	margin-bottom: 0;
	min-width: 200px;
}

.my-store-share-info {
	min-width: 0;
}

.my-store-share-info .my-store-subtitle:not(:first-child) {
	margin-top: 18px;
}

.my-store-share-url {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.my-store-share-url .my-store-input {
	flex: 1;
	min-width: 0;
}

.my-store-share-url .my-store-btn {
	flex: 0 0 auto;
	white-space: nowrap;
}

.my-store-share-url .my-store-btn svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

#my-store-copy-url.is-copied {
	background: #2346a7;
	border-color: #2346a7;
	color: #ffffff;
}

.my-store-share-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.my-store-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border: none;
	border-radius: 8px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	color: #ffffff !important;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.my-store-share-btn:hover,
.my-store-share-btn:focus {
	color: #ffffff !important;
	opacity: 0.88;
	transform: translateY(-1px);
}

.my-store-share-btn svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.my-store-share-whatsapp {
	background-color: #25d366;
}

.my-store-share-facebook {
	background-color: #1877f2;
}

.my-store-share-x {
	background-color: #000000;
}

.my-store-share-telegram {
	background-color: #229ed9;
}

.my-store-share-linkedin {
	background-color: #0a66c2;
}

.my-store-share-email {
	background-color: #6b7280;
}

.my-store-share-native {
	background-color: #ffde16;
	color: #2346a7 !important;
}

.my-store-share-native:hover,
.my-store-share-native:focus {
	background-color: #2346a7;
	color: #ffffff !important;
}

@media (max-width: 782px) {
	.my-store-share-layout {
		grid-template-columns: 1fr;
	}
	.my-store-share-url {
		flex-direction: column;
	}
	.my-store-share-url .my-store-btn {
		justify-content: center;
	}
	.my-store-share-btn {
		flex: 1 1 auto;
		justify-content: center;
	}
}

/* ============================================
   Modal
   ============================================ */
.my-store-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.8);
	z-index: 9999;
	align-items: center;
	justify-content: center;
}

.my-store-modal.active {
	display: flex;
}

.my-store-modal-content {
	background: var(--my-store-bg-card);
	border: 1px solid #2346a7;
	border-radius: 12px;
	width: 90%;
	max-width: 500px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: var(--my-store-shadow-strong);
}

.my-store-modal-lg {
	max-width: 700px;
}

.my-store-modal-xl {
	max-width: 920px;
}

.my-store-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--my-store-border);
	background: linear-gradient(180deg, rgba(35, 70, 167, 0.06), transparent);
}

.my-store-modal-header h3 {
	font-family: var(--my-store-font-display);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.3;
	margin: 0;
	color: #2346a7;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	background-image: linear-gradient(135deg, #2346a7, #008fd1);
}

.my-store-modal-header h3::before {
	content: '';
	display: inline-block;
	width: 6px;
	height: 20px;
	margin-right: 10px;
	border-radius: 3px;
	background: linear-gradient(180deg, #2346a7, #008fd1);
	vertical-align: -2px;
}

.my-store-modal-close {
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1px solid var(--my-store-border);
	background: var(--my-store-bg-card);
	color: var(--my-store-text);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: all 0.3s ease;
}

.my-store-modal-close:hover {
	background: var(--my-store-danger);
	border-color: var(--my-store-danger);
	color: #ffffff;
}

.my-store-modal-body {
	padding: 20px;
}

.my-store-modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	padding: 16px 20px;
	border-top: 1px solid var(--my-store-border);
}

/* ============================================
   Editor WYSIWYG (descripción del producto)
   ============================================ */
.my-store-editor {
	border: 1px solid var(--my-store-border);
	border-radius: 8px;
	overflow: hidden;
	background: var(--my-store-bg-card);
	transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.my-store-editor:focus-within {
	border-color: #2346a7;
	box-shadow: var(--my-store-shadow);
}

.my-store-editor-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 8px;
	border-bottom: 1px solid var(--my-store-border);
	background: var(--my-store-bg-hover);
}

.my-store-editor-btn {
	background: var(--my-store-bg-card);
	border: 1px solid var(--my-store-border);
	border-radius: 6px;
	padding: 6px 10px;
	font-size: 13px;
	line-height: 1.2;
	font-weight: 500;
	color: var(--my-store-text);
	cursor: pointer;
	transition: all 0.3s ease;
}

.my-store-editor-btn:hover {
	border-color: #2346a7;
	color: #2346a7;
}

/* Botón "Limpiar": contraste reforzado para que no se vea pastel/apagado. */
.my-store-editor-btn[data-cmd="removeFormat"] {
	border-color: #94a3b8;
	color: var(--my-store-text);
}

.my-store-editor-btn[data-cmd="removeFormat"]:hover {
	background: var(--my-store-danger);
	border-color: var(--my-store-danger);
	color: #ffffff;
}

.my-store-editor-sep {
	align-self: stretch;
	width: 1px;
	background: var(--my-store-border);
	margin: 2px 6px;
}

.my-store-editor-body {
	min-height: 160px;
	max-height: 320px;
	overflow-y: auto;
	padding: 12px 14px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--my-store-text);
	outline: none;
}

.my-store-editor-body-sm {
	min-height: 70px;
	max-height: 160px;
}

.my-store-editor-body:empty::before {
	content: attr(data-placeholder);
	color: var(--my-store-text-muted);
	pointer-events: none;
}

.my-store-editor-body p {
	margin: 0 0 8px;
}

.my-store-editor-body ul,
.my-store-editor-body ol {
	margin: 0 0 8px;
	padding-left: 22px;
}

.my-store-editor-body h3 {
	margin: 0 0 8px;
	font-size: 16px;
	color: #2346a7;
}

.my-store-editor-source {
	display: none;
}

/* ============================================
   Formularios
   ============================================ */
.my-store-form-group {
	margin-bottom: 16px;
}

.my-store-form-group label {
	display: block;
	color: var(--my-store-text);
	font-size: 13px;
	margin-bottom: 6px;
}

.my-store-settings-hint {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	color: var(--my-store-text-muted);
}

.my-store-form-actions {
	margin-top: 24px;
}

/* ============================================ 
   Settings
   ============================================ */
.my-store-settings-form {
	max-width: 600px;
	background: var(--my-store-bg-card);
	border: 1px solid var(--my-store-border);
	border-radius: 12px;
	padding: 24px;
}

.my-store-upload-field {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.my-store-image-preview {
	flex: 0 0 110px;
	width: 110px;
	height: 110px;
	border: 1px dashed var(--my-store-border);
	border-radius: 10px;
	background: var(--my-store-bg-hover);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	color: var(--my-store-text-muted);
	font-size: 12px;
	text-align: center;
	padding: 4px;
}

.my-store-image-preview img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 6px;
}

.my-store-image-preview-wide {
	flex-basis: 240px;
	width: 240px;
	height: 120px;
}

.my-store-upload-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}

.my-store-save-status {
	display: none;
	margin-top: 16px;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	border: 1px solid transparent;
}

.my-store-save-status-success {
	display: block;
	background: rgba(14, 163, 114, 0.12);
	color: var(--my-store-success);
	border-color: rgba(14, 163, 114, 0.35);
}

.my-store-save-status-error {
	display: block;
	background: rgba(229, 72, 77, 0.12);
	color: var(--my-store-danger);
	border-color: rgba(229, 72, 77, 0.35);
}

/* ============================================
   Paginación
   ============================================ */
.my-store-pagination {
	display: flex;
	gap: 8px;
	margin-top: 20px;
	justify-content: center;
}

.my-store-pagination button {
	background: var(--my-store-bg-card);
	border: 1px solid var(--my-store-border);
	color: var(--my-store-text);
	padding: 8px 14px;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.my-store-pagination button:hover:not(:disabled) {
	border-color: #2346a7;
	color: #2346a7;
}

.my-store-pagination button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.my-store-pagination button.active {
	background: #2346a7;
	color: var(--my-store-bg);
	border-color: #2346a7;
}

/* ============================================
   Estados de pedido
   ============================================ */
.my-store-status {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.my-store-status-pending {
	background: rgba(217, 119, 6, 0.12);
	color: var(--my-store-warning);
}

.my-store-status-processing {
	background: rgba(0, 143, 209, 0.12);
	color: #008fd1;
}

.my-store-status-completed {
	background: rgba(14, 163, 114, 0.12);
	color: var(--my-store-success);
}

.my-store-status-cancelled,
.my-store-status-refunded {
	background: rgba(229, 72, 77, 0.12);
	color: var(--my-store-danger);
}

.my-store-status-publish {
	background: rgba(14, 163, 114, 0.14);
	color: var(--my-store-success);
}

.my-store-status-draft {
	background: rgba(100, 116, 139, 0.15);
	color: var(--my-store-text-muted);
}

.my-store-status-on-hold {
	background: rgba(139, 92, 246, 0.12);
	color: var(--my-store-accent-purple);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
	/* Cabecera del sidebar (logo/nombre): se oculta en móvil. Las categorías
	   pasan a la barra inferior fija y las acciones (tienda pública / cerrar
	   sesión) se mueven a una barra superior compacta. */
	.my-store-sidebar-header {
		display: none;
	}

	/* Barra superior fija: acciones de la tienda como botones compactos. */
	.my-store-sidebar-footer {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 1001;
		display: flex;
		justify-content: flex-end;
		align-items: center;
		gap: 8px;
		padding: 8px 12px;
		border-top: none;
		border-bottom: 1px solid var(--my-store-border);
		background: var(--my-store-bg-card);
		box-shadow: var(--my-store-shadow);
	}

	.my-store-sidebar-footer .my-store-logout {
		padding: 8px 10px;
		gap: 6px;
		border: 1px solid var(--my-store-border);
		border-radius: 999px;
		background: var(--my-store-bg);
	}

	.my-store-sidebar-footer .my-store-nav-label {
		display: none; /* solo íconos en la barra superior móvil */
	}

	/* Si la barra de WordPress está visible (46px en móvil) se baja la barra. */
	body.admin-bar .my-store-sidebar-footer {
		top: 46px;
	}

	/* Menú de categorías: barra fija en la parte de abajo con los íconos. */
	.my-store-sidebar {
		position: fixed;
		top: auto;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		height: auto;
		flex-direction: row;
		align-items: stretch;
		padding: 6px 4px;
		padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid var(--my-store-border);
		border-right: none;
		overflow: visible;
		z-index: 1000;
		box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.18);
	}

	.my-store-nav {
		flex: 1;
		display: flex;
		justify-content: space-around;
		align-items: stretch;
		padding: 0;
	}

	.my-store-nav-item {
		flex: 1;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 2px;
		padding: 6px 2px;
		margin: 0;
		border-radius: 10px;
		min-width: 0;
	}

	.my-store-nav-icon {
		font-size: 22px;
		width: auto;
		line-height: 1;
	}

	.my-store-nav-label {
		display: block;
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		font-size: 10px;
		line-height: 1.2;
	}

	/* Espacio en el contenido para las dos barras fijas (superior e inferior). */
	.my-store-content {
		padding: 64px 16px 96px;
	}

	body.admin-bar .my-store-content {
		padding-top: 110px;
	}

	.my-store-stats-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 480px) {
	.my-store-stats-grid {
		grid-template-columns: 1fr;
	}

	.my-store-table-wrapper {
		overflow-x: auto;
	}
}

/* ============================================
   Vendedores
   ============================================ */
.my-store-permissions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 4px;
}

.my-store-check {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	color: var(--my-store-text);
	font-size: 14px;
	user-select: none;
}

.my-store-check input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	border: 2px solid var(--my-store-border);
	border-radius: 4px;
	background: var(--my-store-bg);
	cursor: pointer;
	transition: all 0.2s ease;
	position: relative;
}

.my-store-check input[type="checkbox"]:checked {
	background: #2346a7;
	border-color: #2346a7;
	box-shadow: 0 0 8px rgba(35, 70, 167, 0.35);
}

.my-store-check input[type="checkbox"]:checked::after {
	content: '';
	position: absolute;
	left: 4px;
	top: 0px;
	width: 4px;
	height: 9px;
	border: solid var(--my-store-bg);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.my-store-field-hint {
	color: var(--my-store-text-muted);
	font-size: 12px;
	font-style: italic;
	margin-top: 4px;
}

.my-store-permission-chip {
	display: inline-block;
	padding: 3px 10px;
	margin: 2px 4px 2px 0;
	border-radius: 12px;
	font-size: 12px;
	background: rgba(35, 70, 167, 0.1);
	color: #2346a7;
	border: 1px solid rgba(35, 70, 167, 0.3);
}

/* ============================================
   Tienda pública — layout moderno
   ============================================ */
.my-store-storefront {
	max-width: 1180px;
	margin: 0 auto;
	padding: 40px 20px 100px;
	font-family: var(--my-store-font-body);
	color: var(--my-store-text);
}

.my-store-storefront .my-store-sf-breadcrumb {
	margin-bottom: 20px;
}

/* Banner principal a lo ancho. */
.my-store-sf-banner {
	width: 100%;
	border-radius: 20px;
	overflow: hidden;
	margin-bottom: 40px;
	background: var(--my-store-bg-hover);
	border: 1px solid var(--my-store-border);
	box-shadow: var(--my-store-shadow-strong);
}

.my-store-sf-banner img {
	width: 100%;
	height: 280px;
	object-fit: cover;
	display: block;
}

/* Cuerpo: sidebar de marca + zona de productos. */
.my-store-sf-body {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 36px;
	align-items: start;
}

/* --- Sidebar de marca --- */
.my-store-sf-sidebar {
	position: sticky;
	top: 24px;
	background: var(--my-store-bg-card);
	border: 1px solid var(--my-store-border);
	border-radius: 20px;
	padding: 30px 26px 24px;
	box-shadow: var(--my-store-shadow);
	text-align: center;
}

/* Logo de la tienda en la sidebar de la tienda pública: contenedor ANCHO
   (100% de la columna) con altura fija (box-sizing: border-box). El atributo
   object-fit: contain rellena el ancho disponible con el logo completo:
   los logos horizontales ya NO se recortan, se centran dentro del marco
   blanco redondeado. */
.my-store-sf-logo {
	display: block;
	width: 100%;
	height: 96px;
	object-fit: contain;
	margin: 0 auto 18px;
	padding: 6px 10px;
	border-radius: 16px;
	border: 3px solid #fff;
	background: #fff;
	box-shadow: 0 0 0 4px var(--my-store-border), var(--my-store-shadow-strong);
	box-sizing: border-box;
}

.my-store-sf-logo-circle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 96px;
	font-family: var(--my-store-font-display);
	font-size: 36px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, #2346a7, #008fd1);
}

.my-store-sf-name {
	font-family: var(--my-store-font-display);
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: var(--my-store-text);
	margin: 0 0 12px;
	overflow-wrap: anywhere; /* nombres muy largos: se parten y no desbordan */
}

.my-store-sf-description {
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--my-store-text-muted);
	margin: 0 0 22px;
	overflow-wrap: break-word;
}

.my-store-sf-city {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--my-store-text-muted);
	margin: 0 0 22px;
}

.my-store-sf-city svg {
	flex-shrink: 0;
	opacity: 0.85;
}

.my-store-sf-meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 20px;
	border-top: 1px solid var(--my-store-border);
	text-align: left;
}

.my-store-sf-meta a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 10px;
	border-radius: 12px;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--my-store-text);
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.my-store-sf-meta a:hover {
	background: rgba(35, 70, 167, 0.08);
	color: #2346a7;
	transform: translateX(3px);
}

.my-store-sf-meta-icon {
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: rgba(35, 70, 167, 0.12);
	color: #2346a7;
}

.my-store-sf-meta-label {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* --- Zona de productos --- */
.my-store-sf-content {
	min-width: 0;
}

.my-store-sf-section-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 26px;
}

.my-store-sf-section-title {
	font-family: var(--my-store-font-display);
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--my-store-text);
	margin: 0;
}

.my-store-sf-section-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 28px;
	padding: 0 10px;
	border-radius: 999px;
	background: rgba(35, 70, 167, 0.12);
	color: #2346a7;
	font-size: 14px;
	font-weight: 700;
}

.my-store-sf-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 24px;
}

.my-store-sf-card {
	background: var(--my-store-bg-card);
	border: 1px solid var(--my-store-border);
	border-radius: 18px;
	overflow: hidden;
	transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.my-store-sf-card:hover {
	transform: translateY(-6px);
	border-color: #2346a7;
	box-shadow: var(--my-store-shadow-strong);
}

.my-store-sf-card-link {
	display: block;
	text-decoration: none;
	color: var(--my-store-text);
}

.my-store-sf-card-image {
	height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: var(--my-store-bg-hover);
	padding: 14px;
}

.my-store-sf-card-image img {
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
	transition: transform 0.3s ease;
}

.my-store-sf-card:hover .my-store-sf-card-image img {
	transform: scale(1.05);
}

.my-store-sf-card-body {
	padding: 16px 18px 20px;
}

.my-store-sf-card .my-store-sf-card-name {
	font-family: var(--my-store-font-display);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.3;
	margin: 0 0 8px;
	color: var(--my-store-text);
}

.my-store-sf-card-price {
	color: #2346a7;
	font-weight: 700;
	font-size: 15px;
}

.my-store-sf-card-btn {
	display: block;
	margin: 0 18px 18px;
	padding: 10px 16px;
	text-align: center;
	text-decoration: none;
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: #2346a7;
	background: rgba(35, 70, 167, 0.1);
	border: 2px solid #2346a7;
	border-radius: 999px;
	transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.my-store-sf-card-btn:hover {
	background: linear-gradient(90deg, #2346a7, #008fd1);
	color: #fff;
	border-color: #2346a7;
	box-shadow: 0 6px 16px rgba(35, 70, 167, 0.35);
	transform: translateY(-1px);
}

@media (max-width: 900px) {
	.my-store-sf-body {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.my-store-sf-sidebar {
		position: static;
	}
}

@media (max-width: 600px) {
	.my-store-sf-banner img {
		height: 170px;
	}

	.my-store-sf-grid {
		grid-template-columns: 1fr 1fr;
		gap: 14px;
	}

	.my-store-sf-card-image {
		height: 150px;
		padding: 10px;
	}

	.my-store-sf-card-body {
		padding: 12px 14px 16px;
	}

	.my-store-sf-card .my-store-sf-card-name {
		font-size: 13px;
	}

	.my-store-sf-card-btn {
		margin: 0 14px 16px;
		padding: 9px 14px;
		font-size: 12.5px;
	}
}

/* ============================================
   Página de producto dentro de la tienda
   ============================================ */
.my-store-product-page {
	padding-top: 28px;
}

.my-store-sf-breadcrumb {
	margin-bottom: 20px;
	font-size: 14px;
	color: var(--my-store-text-muted);
}

.my-store-sf-breadcrumb a {
	color: #008fd1;
	font-weight: 600;
	text-decoration: none;
}

.my-store-sf-breadcrumb a:hover {
	text-decoration: underline;
}

.my-store-breadcrumb-sep {
	margin: 0 8px;
	color: var(--my-store-border);
}

.my-store-breadcrumb-current {
	color: var(--my-store-text);
	font-weight: 700;
}

.my-store-product-layout {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 28px;
	background: var(--my-store-bg-card);
	border: 1px solid var(--my-store-border);
	border-radius: 14px;
	padding: 28px;
	box-shadow: var(--my-store-shadow);
}

.my-store-product-media .my-store-sf-card-image {
	height: auto;
	display: block;
	margin-bottom: 0;
	background: var(--my-store-bg-hover);
	border-radius: 10px;
}

.my-store-product-media .my-store-sf-card-image img {
	width: 100%;
	height: auto;
	max-height: 420px;
}

.my-store-product-info {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.my-store-product-title {
	font-size: 30px;
	line-height: 1.2;
	color: var(--my-store-text);
	margin: 0 0 8px;
}

.my-store-product-price-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 16px;
	margin-bottom: 16px;
}

.my-store-product-sku {
	color: var(--my-store-text-muted);
	margin: 0;
	font-size: 14px;
}

.my-store-product-price {
	font-size: 26px;
	font-weight: 800;
	color: #2346a7;
	margin: 0;
}

.my-store-provider {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin-bottom: 14px;
}

.my-store-provider-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #d9f6e9;
	color: #0e6b4a;
	border: 1px solid #a7e6c8;
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
}

.my-store-provider-name {
	color: var(--my-store-text-muted);
	font-size: 14px;
}

.my-store-provider-name a {
	color: #008fd1;
	font-weight: 600;
	text-decoration: none;
}

.my-store-provider-name a:hover {
	text-decoration: underline;
}

.my-store-availability {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--my-store-bg);
	color: var(--my-store-text);
	border: 1px solid var(--my-store-border);
	border-radius: 10px;
	padding: 8px 14px;
	margin: 0 0 18px;
	font-size: 15px;
}

.my-store-availability strong {
	color: #2346a7;
}

.my-store-stock {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 10px;
	padding: 8px 14px;
	margin: 0 0 18px;
	font-size: 15px;
}

.my-store-stock strong {
	color: inherit;
}

.my-store-stock-in {
	background: rgba(23, 201, 100, 0.12);
	color: #1fae57;
	border: 1px solid rgba(23, 201, 100, 0.35);
}

.my-store-stock-out {
	background: rgba(229, 72, 77, 0.1);
	color: #e5484d;
	border: 1px solid rgba(229, 72, 77, 0.35);
}

.my-store-stock-backorder {
	background: rgba(243, 158, 24, 0.12);
	color: #d97706;
	border: 1px solid rgba(243, 158, 24, 0.4);
}

.my-store-product-short {
	color: var(--my-store-text);
	margin-bottom: 16px;
}

.my-store-product-short p {
	margin: 0 0 10px;
}

.my-store-product-long {
	color: var(--my-store-text-muted);
	line-height: 1.6;
	margin-bottom: 22px;
}

.my-store-product-actions .cart {
	margin: 0;
}

.my-store-storefront .my-store-btn {
	display: inline-block;
	padding: 13px 26px;
	border: none;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.25s ease;
}

.my-store-storefront .my-store-btn-primary {
	background: linear-gradient(90deg, #2346a7, #008fd1);
	color: #fff;
	box-shadow: 0 6px 16px rgba(35, 70, 167, 0.35);
}

.my-store-storefront .my-store-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(35, 70, 167, 0.45);
}

.my-store-storefront .my-store-btn-disabled {
	background: var(--my-store-bg-hover);
	color: var(--my-store-text-muted);
	cursor: not-allowed;
}

.my-store-product-footer {
	margin-top: 22px;
	padding: 14px 18px;
	background: var(--my-store-bg-card);
	border: 1px solid var(--my-store-border);
	border-radius: 12px;
	color: var(--my-store-text-muted);
}

.my-store-product-footer a {
	color: #008fd1;
	font-weight: 600;
	text-decoration: none;
}

.my-store-sf-meta.my-store-product-footer {
	display: block;
	text-align: center;
}

.my-store-sf-meta.my-store-product-footer a {
	display: inline;
	padding: 0;
	margin: 0;
	border-radius: 0;
	background: none;
	font-size: inherit;
	line-height: inherit;
}

.my-store-sf-meta.my-store-product-footer a:hover {
	background: none;
	transform: none;
}

.my-store-product-meta {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
}

.my-store-product-meta li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--my-store-text-muted);
	font-size: 14px;
}

.my-store-product-meta strong {
	color: var(--my-store-text);
	font-weight: 700;
}

.my-store-product-meta a {
	color: #008fd1;
	text-decoration: none;
	font-weight: 600;
}

.my-store-product-meta a:hover {
	text-decoration: underline;
}

.my-store-product-section-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--my-store-text);
	margin: 0 0 10px;
}

.my-store-storefront .my-store-btn-whatsapp {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #25d366;
	color: #fff;
	box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.my-store-storefront .my-store-btn-whatsapp:hover,
.my-store-storefront .my-store-btn-whatsapp:focus {
	transform: translateY(-2px);
	background: #1eb958;
	color: #fff;
	box-shadow: 0 10px 22px rgba(37, 211, 102, 0.45);
}

.my-store-storefront .my-store-btn-whatsapp svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
	flex-shrink: 0;
}

.my-store-field-hint {
	display: block;
	margin-top: 6px;
	color: var(--my-store-text-muted);
	font-size: 12px;
	line-height: 1.4;
}
@media (max-width: 700px) {
	.my-store-product-layout {
		grid-template-columns: 1fr;
		padding: 18px;
	}

	.my-store-product-title {
		font-size: 24px;
	}
}
/* ============================================
   Productos relacionados — slider lento
   ============================================ */
.my-store-related {
	margin-top: 46px;
	border-top: 1px solid var(--my-store-border);
	padding-top: 30px;
}

.my-store-related .my-store-product-section-title {
	margin-bottom: 22px;
}

.my-store-related-viewport {
	overflow: hidden;
	padding-bottom: 8px;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.my-store-related-track {
	display: flex;
	gap: 18px;
	width: max-content;
}

/* El slider solo se mueve a partir de 4 productos de la tienda. */
.my-store-related-track.my-store-related-moving {
	animation: my-store-related-slide 22.5s linear infinite;
}

.my-store-related-viewport:hover .my-store-related-track.my-store-related-moving {
	animation-play-state: paused;
}

/* Con menos de 4 productos: se muestran estáticos, en filas. */
.my-store-related-viewport.my-store-related-static {
	-webkit-mask-image: none;
	mask-image: none;
}

.my-store-related-track.my-store-related-static {
	flex-wrap: wrap;
	width: 100%;
}

.my-store-related-card {
	flex: 0 0 250px;
	background: var(--my-store-bg-hover);
	border: 1px solid var(--my-store-border);
	border-radius: 14px;
	overflow: hidden;
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.my-store-related-card:hover {
	transform: translateY(-3px);
	border-color: #2346a7;
	box-shadow: var(--my-store-shadow);
}

.my-store-related-card a {
	display: block;
	text-decoration: none;
	color: var(--my-store-text);
}

.my-store-related-card .my-store-sf-card-image {
	margin: 0;
	padding: 0;
}

.my-store-related-card .my-store-sf-card-image img {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: cover;
}

.my-store-related-name {
	display: block;
	padding: 12px 14px 19px;
	font-weight: 600;
	line-height: 1.3;
}

.my-store-related-card .my-store-related-btn {
	display: block;
	margin: 0 14px 14px;
	padding: 8px 14px;
	text-align: center;
	text-decoration: none;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: #2346a7;
	background: rgba(35, 70, 167, 0.1);
	border: 2px solid #2346a7;
	border-radius: 999px;
	transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.my-store-related-card .my-store-related-btn:hover {
	background: linear-gradient(90deg, #2346a7, #008fd1);
	color: #fff;
	border-color: #2346a7;
	box-shadow: 0 6px 16px rgba(35, 70, 167, 0.35);
	transform: translateY(-1px);
}

.my-store-related-price {
	display: block;
	padding: 0 14px 14px;
	color: #2346a7;
	font-weight: 600;
}

@keyframes my-store-related-slide {
	from { transform: translateX(-50%); }
	to   { transform: translateX(0); }
}
/* ============================================
   Campo de teléfono con prefijo fijo (+591)
   ============================================ */
.my-store-phone {
	position: relative;
}

.my-store-phone .my-store-phone-prefix {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 0 12px 0 14px;
	color: var(--my-store-text-muted);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.2px;
	pointer-events: none;
	white-space: nowrap;
}

.my-store-phone .my-store-phone-prefix svg {
	border-radius: 3px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.my-store-phone .my-store-input {
	padding-left: 112px;
}

/* ==============================================
   Contraseña: campo arriba, botones debajo
   ============================================== */
.my-store-pass-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.my-store-pass-actions .my-store-btn {
	white-space: nowrap;
	flex: 0 0 auto;
}

/* ==============================================
   Dashboard: productos mas consultados y top tiendas
   ============================================== */
.my-store-dashboard-grid + .my-store-dashboard-grid {
	margin-top: 20px;
}

.my-store-recent-list,
.my-store-recent-item {
	list-style: none;
	margin: 0;
	padding: 0;
}

.my-store-recent-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--my-store-border);
}

.my-store-recent-item:last-child {
	border-bottom: none;
}

.my-store-recent-number {
	font-weight: bold;
	color: #2346a7;
	min-width: 34px;
	font-size: 13px;
}

.my-store-recent-name {
	flex: 1;
	font-size: 14px;
	word-break: break-word;
}

.my-store-recent-name a {
	color: #2346a7;
	font-weight: 600;
	text-decoration: none;
}

.my-store-recent-name a:hover {
	text-decoration: underline;
}

.my-store-recent-total {
	font-size: 12px;
	font-weight: 600;
	color: var(--my-store-text-muted);
	text-align: right;
	white-space: nowrap;
}
/* ==============================================
   Admin Dashboard - KPIs, gráficas y listas
   ============================================== */
.my-store-progress {
	height: 6px;
	background: var(--my-store-bg-hover);
	border-radius: 999px;
	overflow: hidden;
	margin: 6px 0;
}

.my-store-progress-fill {
	height: 100%;
	background: linear-gradient(135deg, #2346a7, #008fd1);
	border-radius: 999px;
	transition: width 0.4s ease;
}

/* Bar chart de proveedores por mes (CSS puro). */
.my-store-bar-chart {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px;
	height: 220px;
	padding-top: 10px;
}

.my-store-bar-col {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	height: 100%;
	min-width: 0;
}

.my-store-bar-value {
	font-size: 13px;
	font-weight: 700;
	color: var(--my-store-text);
	margin-bottom: 4px;
}

.my-store-bar-track {
	width: 100%;
	max-width: 42px;
	flex: 1;
	display: flex;
	align-items: flex-end;
	background: var(--my-store-bg-hover);
	border-radius: 6px 6px 2px 2px;
	overflow: hidden;
}

.my-store-bar-fill {
	width: 100%;
	background: linear-gradient(180deg, #2346a7, #008fd1);
	border-radius: 6px 6px 2px 2px;
	min-height: 4px;
	transition: height 0.4s ease;
}

.my-store-bar-label {
	margin-top: 6px;
	font-size: 11px;
	font-weight: 600;
	color: var(--my-store-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Funnel de pedidos por estado. */
.my-store-status-funnel {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.my-store-status-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.my-store-status-label {
	flex: 0 0 110px;
	font-size: 13px;
	color: var(--my-store-text);
}

.my-store-status-track {
	flex: 1;
	height: 12px;
	background: var(--my-store-bg-hover);
	border-radius: 999px;
	overflow: hidden;
}

.my-store-status-bar {
	height: 100%;
	background: linear-gradient(135deg, #2346a7, #008fd1);
	border-radius: 999px;
	min-width: 2px;
}

.my-store-status-bar.is-completed {
	background: linear-gradient(135deg, #2346a7, #008fd1);
}

.my-store-status-bar.is-processing,
.my-store-status-bar.is-on-hold,
.my-store-status-bar.is-pending {
	background: linear-gradient(135deg, #b37400, #e0529f);
}

.my-store-status-bar.is-cancelled,
.my-store-status-bar.is-refunded,
.my-store-status-bar.is-failed {
	background: linear-gradient(135deg, #e5484d, #b37400);
}

.my-store-status-count {
	flex: 0 0 44px;
	text-align: right;
	font-weight: 700;
	color: var(--my-store-text);
}

/* Salud del marketplace. */
.my-store-health-item {
	padding: 12px 0;
	border-bottom: 1px solid var(--my-store-border);
}

.my-store-health-item:last-child {
	border-bottom: none;
}

.my-store-health-value {
	display: block;
	margin-top: 4px;
	font-size: 22px;
	font-weight: 700;
	color: #2346a7;
}

/* ============================================
   Modal de vendedores: campo "Ciudad"
   ============================================ */
#my-store-vendor-city-other,
#my-store-settings-city-other {
	margin-top: 8px;
}

/* ============================================
   Chips de ciudades seleccionadas (máximo 3)
   ============================================ */
.my-store-city-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
	min-height: 6px;
}

.my-store-city-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(35, 70, 167, 0.08);
	border: 1px solid rgba(35, 70, 167, 0.28);
	color: #2346a7;
	border-radius: 999px;
	padding: 4px 10px;
	font-size: 13px;
	font-weight: 500;
}

.my-store-city-chip-remove {
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	font-size: 15px;
	line-height: 1;
	padding: 0 2px;
}

.my-store-city-chip-remove:hover {
	color: #e5484d;
}

/* ============================================
   Panel — ocultar chatbox de IA (axiachat-ai)
   ============================================
   El plugin axiachat-ai imprime su widget global (flotante) en wp_footer(),
   y el layout del panel tambien ejecuta wp_footer(), por lo que el chatbox
   apareceria dentro del dashboard del vendedor/admin. Estas reglas lo
   ocultan unicamente dentro del panel (body.my-store-body), sin afectar
   al resto del sitio publico. */
body.my-store-body .aichat-widget,
body.my-store-body .aichat-widget.is-global,
body.my-store-body .aichat-widget:not(.is-global) {
display: none !important;
visibility: hidden !important;
opacity: 0 !important;
pointer-events: none !important;
height: 0 !important;
width: 0 !important;
overflow: hidden !important;
}