/* 
 * Estilos para o Sistema de Rastreamento de Pedidos Marvit
 * Design moderno e responsivo
 */

/* ============================================
   NOVOS ESTILOS PARA ÁREA "MINHAS COMPRAS"
   ============================================ */

.marvit-my-orders-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.my-orders-header {
	text-align: center;
	margin-bottom: 30px;
}

.my-orders-header h2 {
	color: #2c3e50;
	font-size: 28px;
	margin-bottom: 10px;
	font-weight: 600;
}

.my-orders-header p {
	color: #7f8c8d;
	font-size: 16px;
}

/* Grade de pedidos */
.orders-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

/* Cards de pedido */
.order-card {
	background: white;
	border-radius: 12px;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	transition: all 0.3s ease;
	border: 1px solid #e1e8ed;
}

.order-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
}

.order-card-header {
	padding: 20px;
	border-bottom: 1px solid #f1f3f4;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.order-info h4 {
	color: #2c3e50;
	margin: 0 0 5px 0;
	font-size: 16px;
	font-weight: 600;
}

.order-date {
	color: #7f8c8d;
	font-size: 12px;
}

/* Status badges */
.status-badge {
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.status-pending {
	background: #fff3cd;
	color: #856404;
}

.status-processing {
	background: #d1ecf1;
	color: #0c5460;
}

.status-on-hold {
	background: #f8d7da;
	color: #721c24;
}

.status-completed {
	background: #d4edda;
	color: #155724;
}

.status-cancelled,
.status-refunded,
.status-failed {
	background: #f8d7da;
	color: #721c24;
}

/* Corpo do card */
.order-card-body {
	padding: 20px;
}

.order-product {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 20px;
}

.product-thumb {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid #e1e8ed;
}

.product-info {
	display: flex;
	align-items: center;
	gap: 15px;
	flex: 1;
}

.product-details {
	flex: 1;
}

.product-name {
	display: block;
	color: #2c3e50;
	font-weight: 500;
	font-size: 14px;
	margin-bottom: 5px;
	line-height: 1.4;
}

.order-total {
	color: #6f4a83;
	font-weight: 700;
	font-size: 16px;
	text-align: right;
	white-space: nowrap;
}

/* Mini timeline */
.mini-timeline {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
	padding: 15px 0;
}

.mini-timeline::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 20px;
	right: 20px;
	height: 2px;
	background: #e1e8ed;
	z-index: 1;
}

.timeline-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	z-index: 2;
	flex: 1;
}

.timeline-step.completed .step-dot {
	background: #27ae60;
	border-color: #27ae60;
}

.step-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #e1e8ed;
	border: 2px solid #e1e8ed;
	margin-bottom: 8px;
	transition: all 0.3s ease;
}

.timeline-step span {
	font-size: 10px;
	color: #7f8c8d;
	text-align: center;
	line-height: 1.2;
}

.timeline-step.completed span {
	color: #27ae60;
	font-weight: 500;
}

/* Rodapé do card */
.order-card-footer {
	padding: 15px 20px;
	background: #f8f9fa;
	display: flex;
	gap: 10px;
}

.btn-view-details {
	flex: 1;
	padding: 10px 15px;
	background: #6f4a83;
	color: white;
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	text-align: center;
}

.btn-view-details:hover {
	background: #462d53;
	transform: translateY(-1px);
}

.btn-whatsapp-mini {
	padding: 10px 15px;
	background: #25d366;
	color: white;
	text-decoration: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.btn-whatsapp-mini:hover {
	background: #1da851;
	color: white;
	text-decoration: none;
	transform: translateY(-1px);
}

/* Modal para detalhes */
.order-modal {
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(4px);
}

.modal-content {
	background-color: #fefefe;
	margin: 2% auto;
	padding: 0;
	border-radius: 12px;
	width: 90%;
	max-width: 900px;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
	from {
		opacity: 0;
		transform: translateY(-50px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.modal-close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
	position: absolute;
	right: 20px;
	top: 15px;
	z-index: 1000;
	cursor: pointer;
	transition: color 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
	color: #000;
}

#modal-order-content {
	padding: 20px;
}

/* ============================================
   ESTILOS ORIGINAIS (MANTIDOS)
   ============================================ */

.marvit-order-tracking-container {
	max-width: 800px;
	margin: 0 auto;
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Formulário de rastreamento */
.tracking-form-wrapper {
	background: #fff;
	border-radius: 12px;
	padding: 40px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	text-align: center;
}

.tracking-form-wrapper h2 {
	color: #2c3e50;
	margin-bottom: 10px;
	font-size: 28px;
	font-weight: 600;
}

.tracking-form-wrapper p {
	color: #7f8c8d;
	margin-bottom: 30px;
	font-size: 16px;
}

.tracking-form {
	max-width: 400px;
	margin: 0 auto;
}

.form-group {
	margin-bottom: 20px;
	text-align: left;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	color: #2c3e50;
	font-weight: 500;
	font-size: 14px;
}

.form-group input {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid #e1e8ed;
	border-radius: 8px;
	font-size: 16px;
	transition: border-color 0.3s ease;
	box-sizing: border-box;
}

.form-group input:focus {
	outline: none;
	border-color: #3498db;
}

.btn-track-order {
	width: 100%;
	padding: 14px;
	background: linear-gradient(135deg, #3498db, #2980b9);
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	margin-top: 10px;
}

.btn-track-order:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

/* Página de rastreamento */
.marvit-order-tracking-page {
	max-width: 900px;
	margin: 0 auto;
	padding: 20px;
	background: #f8f9fa;
	border-radius: 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Timeline do pedido */
.order-header {
	background: white;
	border-radius: 12px;
	padding: 30px;
	margin-bottom: 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.order-timeline {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	position: relative;
	padding: 20px 0;
}

.order-timeline::before {
	content: "";
	position: absolute;
	top: 26%;
	left: 50px;
	right: 50px;
	height: 4px;
	background: #333333;
	z-index: 1;
	transform: translateY(-50%);
}

.timeline-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	z-index: 2;
	flex: 1;
	text-align: center;
}

.timeline-step.completed .step-icon {
	background: #27ae60;
	color: white;
	border-color: #27ae60;
}

.timeline-step.completed::before {
	background: #27ae60;
}

.step-icon {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: #cccccc;
	border: 4px solid #cccccc;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	margin-bottom: 15px;
	transition: all 0.3s ease;
	color: white;
}

/* Estilo para ícones Font Awesome dentro dos steps */
.timeline-step i {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: #cccccc;
	border: 4px solid #cccccc;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	margin-bottom: 15px;
	transition: all 0.3s ease;
	color: white;
}

.timeline-step.completed i {
	background: #6f4a83;
	border-color: #6f4a83;
	color: white;
	box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.step-info {
	text-align: center;
}

.step-date {
	font-size: 12px;
	color: #2c3e50;
	font-weight: 600;
	margin-bottom: 2px;
}

.step-time {
	font-size: 11px;
	color: #7f8c8d;
	margin-bottom: 5px;
}

.step-label {
	font-size: 13px;
	color: #2c3e50;
	font-weight: 500;
	line-height: 1.3;
}

/* Conteúdo do pedido */
.order-content {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 20px;
	margin-bottom: 20px;
}

.product-info {
	background: white;
	border-radius: 12px;
	padding: 25px;
	display: flex;
	gap: 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-image {
	flex-shrink: 0;
}

.product-image img {
	width: 100px;
	height: 100px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid #e1e8ed;
}

.product-details h3 {
	color: #2c3e50;
	margin: 0 0 8px 0;
	font-size: 18px;
	font-weight: 600;
}

.product-specs {
	color: #7f8c8d;
	font-size: 14px;
	margin: 0 0 15px 0;
}

.product-dimensions {
	color: #2c3e50;
	font-size: 14px;
	line-height: 1.6;
}

.order-summary {
	background: white;
	border-radius: 12px;
	padding: 25px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	height: fit-content;
}

.order-summary h4 {
	color: #2c3e50;
	margin: 0 0 20px 0;
	font-size: 16px;
	font-weight: 600;
}

.summary-item {
	margin-bottom: 12px;
	font-size: 14px;
	color: #2c3e50;
	line-height: 1.5;
}

/* Seção de status e ações */
.order-status-section {
	background: white;
	border-radius: 12px;
	padding: 25px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.current-status {
	background: #e8f5e8;
	border-left: 4px solid #27ae60;
	padding: 15px 20px;
	border-radius: 0 8px 8px 0;
	margin-bottom: 25px;
	font-size: 14px;
	color: #1e7e34;
	font-weight: 500;
}

.order-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
}

.action-buttons {
	display: flex;
	gap: 15px;
}

.btn-remove {
	padding: 10px 20px;
	background: #e74c3c;
	color: white;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-weight: 500;
}

.btn-remove:hover {
	background: #c0392b;
	transform: translateY(-1px);
}

.btn-whatsapp {
	padding: 10px 20px;
	background: #25d366;
	color: white;
	text-decoration: none;
	border-radius: 6px;
	font-size: 14px;
	transition: all 0.3s ease;
	display: inline-block;
	font-weight: 500;
}

.btn-whatsapp:hover {
	background: #1da851;
	color: white;
	text-decoration: none;
	transform: translateY(-1px);
}

.help-section {
	text-align: right;
}

.help-section p {
	font-size: 12px;
	color: #7f8c8d;
	margin: 0 0 8px 0;
	line-height: 1.4;
}

.btn-help-whatsapp {
	display: inline-block;
	padding: 12px 20px;
	background: #25d366;
	color: white;
	text-decoration: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.3s ease;
	margin-top: 10px;
}

.btn-help-whatsapp:hover {
	background: #1da851;
	color: white;
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* Estados de erro */
.tracking-error {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
	padding: 15px 20px;
	border-radius: 8px;
	text-align: center;
	font-weight: 500;
}

/* Loading state */
.tracking-loading {
	text-align: center;
	padding: 40px;
	color: #7f8c8d;
}

.loading-spinner {
	display: inline-block;
	width: 40px;
	height: 40px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #3498db;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-bottom: 15px;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

/* Responsividade */
@media (max-width: 768px) {
	/* Responsividade para "Minhas Compras" */
	.marvit-my-orders-container {
		padding: 15px;
	}

	.orders-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.order-card-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.order-product {
		flex-direction: column;
		text-align: center;
		gap: 10px;
	}

	.mini-timeline {
		flex-direction: column;
		gap: 15px;
	}

	.mini-timeline::before {
		display: none;
	}

	.timeline-step {
		flex-direction: row;
		justify-content: flex-start;
		text-align: left;
		gap: 10px;
	}

	.step-dot {
		margin-bottom: 0;
	}

	.order-card-footer {
		flex-direction: column;
		gap: 10px;
	}

	.modal-content {
		width: 95%;
		margin: 5% auto;
	}

	/* Responsividade original */
	.marvit-order-tracking-container,
	.marvit-order-tracking-page {
		padding: 15px;
	}

	.tracking-form-wrapper {
		padding: 25px;
	}

	.order-timeline {
		flex-direction: column;
		gap: 20px;
	}

	.order-timeline::before {
		display: none;
	}

	.timeline-step {
		flex-direction: row;
		text-align: left;
		justify-content: flex-start;
	}

	.step-icon {
		margin-right: 15px;
		margin-bottom: 0;
		width: 40px;
		height: 40px;
		font-size: 16px;
	}

	.order-content {
		grid-template-columns: 1fr;
	}

	.product-info {
		flex-direction: column;
		text-align: center;
	}

	.order-actions {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.action-buttons {
		justify-content: center;
	}

	.help-section {
		text-align: center;
	}
}

@media (max-width: 480px) {
	.my-orders-header h2 {
		font-size: 24px;
	}

	.product-name {
		font-size: 13px;
	}

	.order-total {
		font-size: 14px;
		color: #6f4a83;
	}

	.timeline-step span {
		font-size: 9px;
	}

	.btn-view-details,
	.btn-whatsapp-mini {
		font-size: 12px;
		padding: 8px 12px;
	}

	/* Responsividade original */
	.timeline-step {
		flex-direction: column;
		text-align: center;
	}

	.step-icon {
		margin-right: 0;
		margin-bottom: 10px;
	}

	.action-buttons {
		flex-direction: column;
	}
}

/* ============================================
   NOVOS ESTILOS PARA HEADER MODIFICADO
   ============================================ */

/* Header top - timeline e botão WhatsApp lado a lado */
.header-top {
	background: white;
	padding: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	border-radius: 12px;
}

.timeline-container {
	flex: 1;
}

/* Botão WhatsApp no header */
.whatsapp-help-button {
	flex-shrink: 0;
}

.btn-whatsapp-help {
	background: #25d366;
	color: white;
	text-decoration: none;
	padding: 16px 32px;
	border-radius: 30px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 16px;
	box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
	white-space: nowrap;
	min-height: 55px;
}

.btn-whatsapp-help:hover {
	background: #22c55e;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
	color: white;
	text-decoration: none;
}

.whatsapp-icon {
	font-size: 20px;
}

/* Timeline integrada no header */
.order-header .order-timeline {
	background: transparent;
	color: #2c3e50;
	padding: 0;
	margin: 0;
	border-radius: 0;
	border-top: none;
}

.order-header .order-timeline::before {
	background: #333333;
	height: 4px;
	top: 26%;
	left: 50px;
	right: 50px;
}

.order-header .step-icon,
.order-header .timeline-step i {
	background: #cccccc;
	border-color: #cccccc;
	color: white;
	width: 80px;
	height: 80px;
	font-size: 32px;
	border-width: 4px;
}

.order-header .timeline-step.completed .step-icon,
.order-header .timeline-step.completed i {
	background: #6f4a83;
	border-color: #6f4a83;
	color: white;
	box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.order-header .step-date,
.order-header .step-time,
.order-header .step-label {
	color: #333333;
}

.order-header .step-time {
	opacity: 0.9;
}

.order-header .step-label {
	opacity: 1;
	font-weight: 600;
	font-size: 16px;
	margin-top: 12px;
}

.order-header .timeline-step.completed .step-label {
	color: #333333;
	font-weight: 600;
}

/* Responsivo para header modificado */
@media (max-width: 768px) {
	.header-top {
		flex-direction: column;
		gap: 20px;
		align-items: stretch;
	}

	.whatsapp-help-button {
		align-self: center;
	}

	.order-timeline {
		flex-wrap: wrap;
		gap: 15px;
		justify-content: center;
	}

	.order-timeline::before {
		display: none;
	}

	.timeline-step {
		max-width: 100px;
		flex: 0 1 auto;
	}

	.step-icon,
	.timeline-step i {
		width: 60px;
		height: 60px;
		font-size: 24px;
	}

	.step-label {
		font-size: 14px;
	}

	.btn-whatsapp-help {
		padding: 12px 24px;
		font-size: 14px;
		min-height: 45px;
	}
}
