/* =====================================================
   STORE PRODUCTS - Layout y Componentes
   Sistema de diseño profesional para tiendas
   ===================================================== */

/* Variables de diseño */
:root {
	--color-primary: #009688;
	--color-primary-dark: #00796b;
	--color-primary-light: #4db6ac;
	--color-accent: #ff5722;
	--color-text: #333;
	--color-text-light: #666;
	--color-text-muted: #999;
	--color-border: #e0e0e0;
	--color-bg: #f8f9fa;
	--color-white: #fff;
	--shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
	--shadow-md: 0 4px 12px rgba(0,0,0,0.1);
	--shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
	--radius-sm: 6px;
	--radius-md: 10px;
	--radius-lg: 16px;
	--sidebar-width: 260px;
	--transition: all 0.3s ease;
}

/* =====================================================
   LAYOUT PRINCIPAL
   ===================================================== */

.store-products-section {
	background: var(--color-bg);
	min-height: 60vh;
	padding-bottom: 40px;
}

.store-layout {
	display: flex;
	gap: 24px;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
}

/* =====================================================
   SIDEBAR DE FILTROS (Desktop)
   ===================================================== */

.filters-sidebar {
	width: var(--sidebar-width);
	flex-shrink: 0;
	position: sticky;
	top: 100px;
	height: fit-content;
	max-height: calc(100vh - 120px);
	overflow-y: auto;
	background: var(--color-white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
}

.filters-header {
	padding: 20px;
	border-bottom: 1px solid var(--color-border);
	position: sticky;
	top: 0;
	background: var(--color-white);
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.filters-header h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--color-text);
	display: flex;
	align-items: center;
	gap: 8px;
}

.filters-header i {
	color: var(--color-primary);
}

.filters-content {
	padding: 12px;
}

/* Elementos de filtro */
.filter-item {
	margin-bottom: 2px;
}

.filter-item-all {
	margin-bottom: 8px;
}

.filter-link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	color: var(--color-text);
	text-decoration: none;
	cursor: pointer;
	transition: var(--transition);
	font-size: 13px;
}

.filter-link:hover {
	background: var(--color-bg);
	color: var(--color-primary);
}

.filter-link.active {
	background: var(--color-primary);
	color: white;
}

.filter-link.active .filter-count {
	background: rgba(255,255,255,0.2);
	color: white;
}

.filter-name {
	display: flex;
	align-items: center;
	gap: 8px;
}

.filter-count {
	background: var(--color-bg);
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	color: var(--color-text-muted);
}

.filter-divider {
	height: 1px;
	background: var(--color-border);
	margin: 12px 0;
}

/* Grupos de filtros */
.filter-group {
	margin-bottom: 16px;
}

.filter-group-title {
	font-size: 12px;
	font-weight: 700;
	color: var(--color-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 8px 14px 6px;
	margin-bottom: 4px;
}

/* =====================================================
   BARRA MÓVIL DE FILTROS
   ===================================================== */

.mobile-filter-bar {
	display: none;
	position: sticky;
	top: 70px;
	z-index: 50;
	background: var(--color-white);
	padding: 12px 16px;
	border-bottom: 1px solid var(--color-border);
	gap: 12px;
	align-items: center;
}

.mobile-filter-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	font-size: 14px;
	font-weight: 500;
	color: var(--color-text);
	cursor: pointer;
	transition: var(--transition);
}

.mobile-filter-btn:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
}

.mobile-filter-btn i {
	font-size: 16px;
}

.mobile-sort {
	flex: 1;
}

.category-select {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-white);
	font-size: 14px;
	color: var(--color-text);
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
}

.category-select:focus {
	outline: none;
	border-color: var(--color-primary);
}

/* =====================================================
   DRAWER DE FILTROS (Móvil)
   ===================================================== */

.filter-drawer-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.5);
	z-index: 1000;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.filter-drawer-overlay.open {
	display: block;
	opacity: 1;
}

.filter-drawer {
	position: fixed;
	top: 0;
	left: 0;
	width: 85%;
	max-width: 320px;
	height: 100%;
	background: var(--color-white);
	z-index: 1001;
	transform: translateX(-100%);
	transition: transform 0.3s ease;
	display: flex;
	flex-direction: column;
}

.filter-drawer.open {
	transform: translateX(0);
}

.drawer-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	border-bottom: 1px solid var(--color-border);
	background: var(--color-bg);
}

.drawer-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
}

.drawer-close {
	width: 36px;
	height: 36px;
	border: none;
	background: var(--color-white);
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: var(--color-text-muted);
	transition: var(--transition);
}

.drawer-close:hover {
	background: var(--color-border);
	color: var(--color-text);
}

.drawer-content {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
}

.drawer-footer {
	padding: 16px;
	border-top: 1px solid var(--color-border);
	background: var(--color-bg);
}

.apply-filters-btn {
	width: 100%;
	padding: 14px;
	background: var(--color-primary);
	color: white;
	border: none;
	border-radius: var(--radius-md);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: var(--transition);
}

.apply-filters-btn:hover {
	background: var(--color-primary-dark);
}

/* =====================================================
   ÁREA PRINCIPAL DE PRODUCTOS
   ===================================================== */

.products-main {
	flex: 1;
	min-width: 0;
}

/* Header de productos */
.products-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	background: var(--color-white);
	border-radius: var(--radius-lg);
	margin-bottom: 20px;
	box-shadow: var(--shadow-sm);
}

.products-count {
	font-size: 15px;
	color: var(--color-text);
	margin: 0;
	font-weight: 500;
}

.products-sort {
	display: flex;
	align-items: center;
	gap: 10px;
}

.sort-select {
	padding: 10px 36px 10px 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-white);
	font-size: 14px;
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	min-width: 160px;
}

.sort-select:focus {
	outline: none;
	border-color: var(--color-primary);
}

/* =====================================================
   GRID DE PRODUCTOS
   ===================================================== */

.products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
}

/* Tarjeta de producto */
.product-card {
	position: relative;
	background: var(--color-white);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: var(--transition);
	box-shadow: var(--shadow-sm);
}

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

.product-link {
	text-decoration: none;
	color: inherit;
	display: block;
}

/* Imagen del producto */
.product-image-container {
	position: relative;
	width: 100%;
	padding-top: 100%;
	overflow: hidden;
	background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.product-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.product-card:hover .product-image {
	transform: scale(1.1);
}

/* Badge de descuento */
.discount-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
	color: white;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	z-index: 2;
	box-shadow: 0 2px 8px rgba(238,90,90,0.4);
}

/* Overlay hover */
.product-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to top, rgba(0,150,136,0.9) 0%, rgba(0,150,136,0.7) 50%, transparent 100%);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 30px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
	opacity: 1;
}

.quick-view-text {
	color: white;
	font-weight: 600;
	font-size: 14px;
	padding: 12px 24px;
	background: rgba(255,255,255,0.2);
	border-radius: 25px;
	backdrop-filter: blur(4px);
}

/* Info del producto */
.product-info {
	padding: 16px;
}

.product-name {
	font-size: 14px;
	font-weight: 600;
	color: var(--color-text);
	margin: 0 0 8px 0;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 40px;
}

.product-store {
	font-size: 12px;
	color: var(--color-text-muted);
	margin: 0 0 12px 0;
}

.product-price-container {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
}

.product-price-current {
	font-size: 20px;
	font-weight: 700;
	color: var(--color-primary);
}

.product-price-original {
	font-size: 14px;
	color: var(--color-text-muted);
	text-decoration: line-through;
}

/* Botón favorito */
.favorite-btn {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background: var(--color-white);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-md);
	transition: var(--transition);
	z-index: 3;
}

.favorite-btn:hover {
	transform: scale(1.15);
}

.favorite-btn i {
	font-size: 18px;
	color: var(--color-text-muted);
	transition: var(--transition);
}

.favorite-btn:hover i {
	color: #e74c3c;
}

.favorite-btn.active i {
	color: #e74c3c;
}

/* Estado vacío */
.empty-state {
	text-align: center;
	padding: 80px 20px;
	background: var(--color-white);
	border-radius: var(--radius-lg);
}

.empty-icon {
	font-size: 72px;
	color: var(--color-border);
	margin-bottom: 24px;
}

.empty-state h3 {
	color: var(--color-text);
	margin-bottom: 12px;
	font-size: 20px;
}

.empty-state p {
	font-size: 15px;
	color: var(--color-text-muted);
	max-width: 400px;
	margin: 0 auto;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* Tablets */
@media (max-width: 1024px) {
	.store-layout {
		padding: 0 16px;
	}

	.filters-sidebar {
		width: 220px;
	}

	.products-grid {
		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
		gap: 16px;
	}
}

/* Móviles */
@media (max-width: 768px) {
	.filters-sidebar {
		display: none;
	}

	.mobile-filter-bar {
		display: flex;
	}

	.store-layout {
		padding: 0;
	}

	.products-main {
		padding: 0 12px;
	}

	.products-header {
		margin: 12px 0;
		padding: 14px 16px;
		border-radius: var(--radius-md);
	}

	.products-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.product-card {
		border-radius: var(--radius-md);
	}

	.product-info {
		padding: 12px;
	}

	.product-name {
		font-size: 13px;
		min-height: 36px;
	}

	.product-price-current {
		font-size: 17px;
	}

	.product-price-original {
		font-size: 12px;
	}

	.discount-badge {
		top: 8px;
		left: 8px;
		padding: 4px 10px;
		font-size: 11px;
	}

	.favorite-btn {
		top: 8px;
		right: 8px;
		width: 34px;
		height: 34px;
	}

	.favorite-btn i {
		font-size: 15px;
	}

	/* Ocultar overlay en táctil */
	.product-overlay {
		display: none;
	}

	.products-count {
		font-size: 14px;
	}

	.sort-select {
		min-width: 140px;
		font-size: 13px;
		padding: 8px 30px 8px 12px;
	}
}

/* Móviles pequeños */
@media (max-width: 400px) {
	.products-grid {
		gap: 10px;
	}

	.product-info {
		padding: 10px;
	}

	.product-name {
		font-size: 12px;
		min-height: 34px;
	}

	.product-store {
		font-size: 11px;
		margin-bottom: 8px;
	}

	.product-price-current {
		font-size: 15px;
	}

	.mobile-filter-bar {
		padding: 10px 12px;
		gap: 10px;
	}

	.mobile-filter-btn {
		padding: 8px 12px;
		font-size: 13px;
	}
}

/* Scrollbar personalizado para sidebar */
.filters-sidebar::-webkit-scrollbar {
	width: 6px;
}

.filters-sidebar::-webkit-scrollbar-track {
	background: transparent;
}

.filters-sidebar::-webkit-scrollbar-thumb {
	background: var(--color-border);
	border-radius: 3px;
}

.filters-sidebar::-webkit-scrollbar-thumb:hover {
	background: var(--color-text-muted);
}


/* =====================================================
   REVIEWS / RESEÑAS SECTION
   ===================================================== */

.reviews-section {
	max-width: 900px;
	margin: 0 auto;
	padding: 20px 0;
}

.reviews-header {
	margin-bottom: 24px;
}

.reviews-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--color-text);
	margin: 0;
	display: flex;
	align-items: center;
	gap: 12px;
}

.reviews-title i {
	color: var(--color-primary);
}

/* Resumen de calificaciones */
.reviews-summary {
	display: flex;
	gap: 40px;
	padding: 28px;
	background: var(--color-white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	margin-bottom: 24px;
}

.summary-score {
	text-align: center;
	min-width: 140px;
}

.score-number {
	font-size: 56px;
	font-weight: 700;
	color: var(--color-text);
	line-height: 1;
	margin-bottom: 8px;
}

.stars-container {
	display: inline-flex;
	gap: 2px;
	color: #ffc107;
}

.stars-container i {
	font-size: 14px;
}

.stars-large i {
	font-size: 20px;
}

.score-total {
	font-size: 14px;
	color: var(--color-text-muted);
	margin-top: 8px;
}

/* Barras de distribución */
.summary-bars {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	justify-content: center;
}

.rating-bar-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.bar-label {
	width: 50px;
	font-size: 13px;
	color: var(--color-text-light);
	display: flex;
	align-items: center;
	gap: 4px;
}

.bar-label i {
	color: #ffc107;
	font-size: 11px;
}

.bar-track {
	flex: 1;
	height: 8px;
	background: var(--color-bg);
	border-radius: 4px;
	overflow: hidden;
}

.bar-fill {
	height: 100%;
	background: linear-gradient(90deg, #ffc107, #ffca28);
	border-radius: 4px;
	transition: width 0.5s ease;
}

.bar-count {
	width: 30px;
	font-size: 13px;
	color: var(--color-text-muted);
	text-align: right;
}

/* Lista de reseñas */
.reviews-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Tarjeta de reseña */
.review-card {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	padding: 24px;
	box-shadow: var(--shadow-sm);
	transition: var(--transition);
}

.review-card:hover {
	box-shadow: var(--shadow-md);
}

.review-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 16px;
}

.reviewer-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.reviewer-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.reviewer-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.reviewer-avatar i {
	font-size: 22px;
	color: white;
}

.reviewer-details {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.reviewer-name {
	font-weight: 600;
	color: var(--color-text);
	font-size: 15px;
}

.review-date {
	font-size: 13px;
	color: var(--color-text-muted);
}

.review-rating {
	flex-shrink: 0;
}

/* Contenido de la reseña */
.review-content {
	margin-bottom: 0;
}

.review-text {
	font-size: 15px;
	line-height: 1.6;
	color: var(--color-text);
	margin: 0 0 16px 0;
}

/* Producto relacionado */
.review-product {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	background: var(--color-bg);
	border-radius: var(--radius-md);
	margin-top: 8px;
}

.review-product .product-thumb {
	width: 50px;
	height: 50px;
	object-fit: cover;
	border-radius: var(--radius-sm);
}

.review-product .product-name {
	font-size: 13px;
	color: var(--color-text-light);
	display: flex;
	align-items: center;
	gap: 6px;
}

.review-product .product-name i {
	color: var(--color-primary);
}

/* Respuesta del vendedor */
.seller-response {
	margin-top: 16px;
	padding: 16px;
	background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
	border-radius: var(--radius-md);
	border-left: 4px solid var(--color-primary);
}

.response-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--color-primary-dark);
}

.response-header i {
	font-size: 14px;
}

.response-text {
	font-size: 14px;
	line-height: 1.5;
	color: var(--color-text);
	margin: 0;
}

/* Botón cargar más */
.reviews-load-more {
	text-align: center;
	margin-top: 24px;
}

.load-more-btn {
	padding: 14px 32px;
	background: var(--color-white);
	border: 2px solid var(--color-primary);
	border-radius: var(--radius-md);
	color: var(--color-primary);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: var(--transition);
}

.load-more-btn:hover {
	background: var(--color-primary);
	color: white;
}

/* Estado vacío */
.reviews-empty {
	text-align: center;
	padding: 60px 20px;
	background: var(--color-white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
}

.reviews-empty .empty-icon {
	font-size: 64px;
	color: var(--color-border);
	margin-bottom: 20px;
}

.reviews-empty .empty-icon i {
	display: block;
}

.reviews-empty h3 {
	font-size: 20px;
	color: var(--color-text);
	margin: 0 0 8px 0;
}

.reviews-empty p {
	font-size: 15px;
	color: var(--color-text-muted);
	margin: 0;
	max-width: 400px;
	margin: 0 auto;
}

/* =====================================================
   REVIEWS - RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {
	.reviews-section {
		padding: 16px;
	}

	.reviews-summary {
		flex-direction: column;
		gap: 24px;
		padding: 20px;
	}

	.summary-score {
		min-width: auto;
	}

	.score-number {
		font-size: 48px;
	}

	.review-card {
		padding: 18px;
	}

	.review-header {
		flex-direction: column;
		gap: 12px;
	}

	.reviewer-avatar {
		width: 42px;
		height: 42px;
	}

	.reviewer-avatar i {
		font-size: 18px;
	}

	.review-text {
		font-size: 14px;
	}

	.review-product {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.seller-response {
		padding: 14px;
	}
}

@media (max-width: 480px) {
	.reviews-title {
		font-size: 18px;
	}

	.score-number {
		font-size: 42px;
	}

	.stars-large i {
		font-size: 16px;
	}

	.bar-label {
		width: 40px;
		font-size: 12px;
	}

	.review-card {
		padding: 16px;
	}

	.reviewer-name {
		font-size: 14px;
	}

	.review-date {
		font-size: 12px;
	}
}


/* =====================================================
   PRODUCT DETAIL PAGE
   ===================================================== */

.product-detail-page {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	padding-bottom: 100px;
}

/* Breadcrumbs */
.breadcrumbs {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--color-text-muted);
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.breadcrumbs a {
	color: var(--color-text-light);
	text-decoration: none;
	transition: var(--transition);
}

.breadcrumbs a:hover {
	color: var(--color-primary);
}

.breadcrumbs i {
	font-size: 10px;
	color: var(--color-border);
}

.breadcrumbs span {
	color: var(--color-text);
}

/* Main layout */
.product-main {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	margin-bottom: 48px;
}

/* Galería */
.product-gallery {
	position: sticky;
	top: 100px;
	height: fit-content;
}

.gallery-main {
	position: relative;
	background: var(--color-white);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}

.main-image-container {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: #fafafa;
}

.main-image {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.discount-badge-large {
	position: absolute;
	top: 16px;
	left: 16px;
	background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
	color: white;
	padding: 8px 16px;
	border-radius: 24px;
	font-size: 16px;
	font-weight: 700;
	z-index: 2;
	box-shadow: 0 4px 12px rgba(238,90,90,0.4);
}

.gallery-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: none;
	background: var(--color-white);
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-md);
	transition: var(--transition);
	z-index: 2;
}

.gallery-nav:hover {
	background: var(--color-primary);
	color: white;
}

.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }

.gallery-thumbs {
	display: flex;
	gap: 12px;
	margin-top: 16px;
	overflow-x: auto;
	padding: 4px;
}

.gallery-thumbs .thumb {
	width: 72px;
	height: 72px;
	flex-shrink: 0;
	border-radius: var(--radius-md);
	overflow: hidden;
	cursor: pointer;
	border: 2px solid transparent;
	transition: var(--transition);
	background: var(--color-white);
}

.gallery-thumbs .thumb:hover {
	border-color: var(--color-primary-light);
}

.gallery-thumbs .thumb.active {
	border-color: var(--color-primary);
}

.gallery-thumbs .thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Info del producto */
.product-info-section {
	padding-top: 8px;
}

/* Seller badge */
.seller-badge {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: var(--color-bg);
	border-radius: var(--radius-md);
	margin-bottom: 20px;
}

.seller-logo {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--color-white);
	box-shadow: var(--shadow-sm);
}

.seller-details {
	flex: 1;
}

.seller-name {
	font-weight: 600;
	color: var(--color-text);
	text-decoration: none;
	font-size: 15px;
}

.seller-name:hover {
	color: var(--color-primary);
}

.seller-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
}

.seller-rating .stars {
	color: #ffc107;
	font-size: 12px;
}

.seller-rating .rating-text {
	font-size: 13px;
	color: var(--color-text-muted);
}

/* Título del producto */
.product-title {
	font-size: 28px;
	font-weight: 700;
	color: var(--color-text);
	line-height: 1.3;
	margin: 0 0 16px 0;
}

/* Precio */
.product-pricing {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.current-price {
	font-size: 36px;
	font-weight: 700;
	color: var(--color-primary);
}

.original-price {
	font-size: 20px;
	color: var(--color-text-muted);
	text-decoration: line-through;
}

.discount-percent {
	background: #ffebee;
	color: #c62828;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
}

/* Promo banner */
.promo-banner {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	background: linear-gradient(135deg, #fff3e0, #ffe0b2);
	border-radius: var(--radius-md);
	margin-bottom: 24px;
	border-left: 4px solid #ff9800;
}

.promo-banner i {
	font-size: 24px;
	color: #ff9800;
}

.promo-banner span {
	font-size: 14px;
	color: var(--color-text);
}

.promo-banner strong {
	color: #e65100;
}

.promo-banner small {
	display: block;
	color: var(--color-text-muted);
	font-size: 12px;
	margin-top: 2px;
}

/* Descripción */
.product-description {
	margin-bottom: 24px;
}

.product-description h3 {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 12px 0;
	color: var(--color-text);
}

.description-text {
	font-size: 15px;
	line-height: 1.7;
	color: var(--color-text-light);
	max-height: 120px;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.description-text.expanded {
	max-height: 2000px;
}

.show-more-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	padding: 0;
	background: none;
	border: none;
	color: var(--color-primary);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.show-more-btn:hover {
	text-decoration: underline;
}

/* Personalización */
.customization-section {
	background: var(--color-bg);
	padding: 20px;
	border-radius: var(--radius-md);
	margin-bottom: 24px;
}

.customization-section h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	margin: 0 0 12px 0;
}

.customization-section h3 i {
	color: var(--color-primary);
}

.optional-badge, .required-badge {
	font-size: 11px;
	padding: 3px 8px;
	border-radius: 12px;
	font-weight: 500;
}

.optional-badge {
	background: #e3f2fd;
	color: #1976d2;
}

.required-badge {
	background: #ffebee;
	color: #c62828;
}

.customization-instructions {
	font-size: 14px;
	color: var(--color-text-light);
	margin: 0 0 12px 0;
}

.customization-input {
	width: 100%;
	min-height: 100px;
	padding: 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	font-size: 14px;
	resize: vertical;
	transition: var(--transition);
}

.customization-input:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.1);
}

/* Botones de acción */
.product-actions {
	display: flex;
	gap: 12px;
	margin-bottom: 24px;
}

.add-to-cart-form {
	flex: 1;
}

.btn-add-cart {
	width: 100%;
	padding: 16px 24px;
	background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
	color: white;
	border: none;
	border-radius: var(--radius-md);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	transition: var(--transition);
}

.btn-add-cart:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 150, 136, 0.4);
}

.btn-favorite {
	width: 56px;
	height: 56px;
	border: 2px solid var(--color-border);
	background: var(--color-white);
	border-radius: var(--radius-md);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	color: var(--color-text-muted);
	transition: var(--transition);
}

.btn-favorite:hover {
	border-color: #e74c3c;
	color: #e74c3c;
}

.btn-favorite.active {
	background: #ffebee;
	border-color: #e74c3c;
	color: #e74c3c;
}

/* Meta información */
.product-meta {
	background: var(--color-bg);
	border-radius: var(--radius-md);
	padding: 20px;
	margin-bottom: 24px;
}

.meta-item {
	display: flex;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid var(--color-border);
}

.meta-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.meta-item:first-child {
	padding-top: 0;
}

.meta-item > i {
	font-size: 20px;
	color: var(--color-primary);
	width: 24px;
	text-align: center;
}

.meta-item strong {
	display: block;
	font-size: 14px;
	color: var(--color-text);
	margin-bottom: 2px;
}

.meta-item span {
	font-size: 13px;
	color: var(--color-text-muted);
}

/* Contactar vendedor */
.contact-seller {
	display: flex;
	gap: 12px;
}

.btn-contact, .btn-report {
	flex: 1;
	padding: 12px 16px;
	border-radius: var(--radius-md);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: var(--transition);
}

.btn-contact {
	background: var(--color-white);
	border: 2px solid var(--color-primary);
	color: var(--color-primary);
}

.btn-contact:hover {
	background: var(--color-primary);
	color: white;
}

.btn-report {
	background: var(--color-white);
	border: 1px solid var(--color-border);
	color: var(--color-text-muted);
}

.btn-report:hover {
	border-color: var(--color-text-muted);
	color: var(--color-text);
}

/* Productos relacionados */
.related-products {
	margin-bottom: 40px;
}

.section-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--color-text);
	margin: 0 0 24px 0;
}

.related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 16px;
}

.related-card {
	background: var(--color-white);
	border-radius: var(--radius-md);
	overflow: hidden;
	text-decoration: none;
	transition: var(--transition);
	box-shadow: var(--shadow-sm);
}

.related-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}

.related-image {
	aspect-ratio: 1;
	overflow: hidden;
	background: #f5f5f5;
}

.related-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.related-info {
	padding: 12px;
}

.related-name {
	font-size: 13px;
	color: var(--color-text);
	margin: 0 0 4px 0;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.related-store {
	font-size: 12px;
	color: var(--color-text-muted);
	margin: 0 0 8px 0;
}

.related-price {
	font-size: 15px;
	font-weight: 700;
	color: var(--color-primary);
	margin: 0;
}

/* Tags */
.product-tags {
	margin-bottom: 40px;
}

.product-tags h3 {
	font-size: 16px;
	margin: 0 0 16px 0;
}

.tags-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tag {
	padding: 8px 16px;
	background: var(--color-primary);
	color: white;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
}

/* Barra sticky móvil */
.mobile-sticky-bar {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: var(--color-white);
	padding: 12px 16px;
	box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
	z-index: 100;
	justify-content: space-between;
	align-items: center;
}

.sticky-price {
	display: flex;
	flex-direction: column;
}

.sticky-current {
	font-size: 20px;
	font-weight: 700;
	color: var(--color-primary);
}

.sticky-original {
	font-size: 13px;
	color: var(--color-text-muted);
	text-decoration: line-through;
}

.sticky-btn {
	padding: 14px 28px;
	background: var(--color-primary);
	color: white;
	border: none;
	border-radius: var(--radius-md);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Producto no encontrado */
.product-not-found {
	text-align: center;
	padding: 80px 20px;
}

.product-not-found h2 {
	color: var(--color-text-muted);
	margin-bottom: 16px;
}

.product-not-found a {
	color: var(--color-primary);
}

/* =====================================================
   PRODUCT DETAIL - RESPONSIVE
   ===================================================== */

@media (max-width: 992px) {
	.product-main {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.product-gallery {
		position: relative;
		top: 0;
	}

	.product-title {
		font-size: 24px;
	}

	.current-price {
		font-size: 30px;
	}
}

@media (max-width: 768px) {
	.product-detail-page {
		padding: 16px;
		padding-bottom: 100px;
	}

	.breadcrumbs {
		font-size: 12px;
		margin-bottom: 16px;
	}

	.product-main {
		gap: 24px;
	}

	.gallery-thumbs .thumb {
		width: 60px;
		height: 60px;
	}

	.product-title {
		font-size: 20px;
	}

	.current-price {
		font-size: 26px;
	}

	.original-price {
		font-size: 16px;
	}

	.product-actions {
		flex-direction: column;
	}

	.btn-favorite {
		width: 100%;
		height: 48px;
	}

	.contact-seller {
		flex-direction: column;
	}

	.mobile-sticky-bar {
		display: flex;
	}

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

@media (max-width: 480px) {
	.seller-badge {
		padding: 10px 12px;
	}

	.seller-logo {
		width: 40px;
		height: 40px;
	}

	.product-title {
		font-size: 18px;
	}

	.current-price {
		font-size: 24px;
	}

	.btn-add-cart {
		padding: 14px 20px;
		font-size: 15px;
	}

	.gallery-nav {
		width: 36px;
		height: 36px;
	}

	.gallery-thumbs .thumb {
		width: 52px;
		height: 52px;
	}
}

/* ===========================================
   CART PAGE STYLES
   =========================================== */

.cart-page {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.cart-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 2px solid #f0f0f0;
}

.cart-title {
	font-size: 24px;
	font-weight: 600;
	color: #333;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 12px;
}

.cart-title i {
	color: var(--color-primary, #009688);
}

.cart-count {
	background: #f5f5f5;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 14px;
	color: #666;
}

/* Cart Layout */
.cart-layout {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 30px;
	align-items: start;
}

/* Cart Items */
.cart-items {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cart-store-group {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
	overflow: hidden;
}

.store-group-header {
	background: linear-gradient(135deg, var(--color-primary, #009688), var(--color-primary-dark, #00796b));
	color: #fff;
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 8px;
}

.store-group-header i {
	font-size: 16px;
}

/* Individual Cart Item */
.cart-item {
	display: grid;
	grid-template-columns: 100px 1fr auto auto;
	gap: 16px;
	padding: 16px;
	border-bottom: 1px solid #f0f0f0;
	align-items: center;
	transition: all 0.3s ease;
}

.cart-item:last-child {
	border-bottom: none;
}

.cart-item:hover {
	background: #fafafa;
}

.item-image {
	position: relative;
	width: 100px;
	height: 100px;
	border-radius: 8px;
	overflow: hidden;
	background: #f5f5f5;
}

.item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.item-discount-badge {
	position: absolute;
	top: 6px;
	left: 6px;
	background: #e53935;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 6px;
	border-radius: 4px;
}

.item-details {
	flex: 1;
	min-width: 0;
}

.item-name {
	font-size: 15px;
	font-weight: 500;
	color: #333;
	margin: 0 0 6px 0;
	line-height: 1.4;
}

.item-customization {
	font-size: 13px;
	color: #888;
	margin: 0 0 8px 0;
	display: flex;
	align-items: center;
	gap: 6px;
}

.item-customization i {
	color: var(--color-primary, #009688);
}

.item-quantity {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
}

.qty-label {
	color: #888;
}

.qty-value {
	background: #f0f0f0;
	padding: 4px 12px;
	border-radius: 4px;
	font-weight: 500;
	color: #333;
}

.item-pricing {
	text-align: right;
	min-width: 120px;
}

.original-price {
	display: block;
	font-size: 13px;
	color: #999;
	text-decoration: line-through;
	margin-bottom: 4px;
}

.final-price {
	display: block;
	font-size: 18px;
	font-weight: 600;
	color: #333;
}

.item-actions {
	display: flex;
	align-items: center;
}

.btn-remove {
	width: 40px;
	height: 40px;
	border: none;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	color: #999;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
}

.btn-remove:hover {
	background: #fee;
	border-color: #e53935;
	color: #e53935;
}

.remove-loading {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-primary, #009688);
}

/* Cart Bottom Actions */
.cart-actions-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0;
	border-top: 1px solid #f0f0f0;
	margin-top: 8px;
}

.btn-continue-shopping {
	color: var(--color-primary, #009688);
	text-decoration: none;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: color 0.2s;
}

.btn-continue-shopping:hover {
	color: var(--color-primary-dark, #00796b);
}

.btn-empty-cart {
	background: none;
	border: none;
	color: #999;
	font-size: 14px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border-radius: 6px;
	transition: all 0.2s;
}

.btn-empty-cart:hover {
	background: #fee;
	color: #e53935;
}

.empty-cart-confirm {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: #666;
}

.btn-cancel {
	padding: 6px 14px;
	border: 1px solid #ddd;
	background: #fff;
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
	transition: all 0.2s;
}

.btn-cancel:hover {
	background: #f5f5f5;
}

.btn-confirm-empty {
	padding: 6px 14px;
	border: 1px solid #e53935;
	background: #e53935;
	color: #fff;
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
	transition: all 0.2s;
}

.btn-confirm-empty:hover {
	background: #c62828;
}

.empty-cart-loading {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #666;
	font-size: 14px;
}

/* Cart Summary */
.cart-summary {
	position: sticky;
	top: 20px;
}

.summary-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.08);
	padding: 24px;
}

.summary-title {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	margin: 0 0 20px 0;
	padding-bottom: 16px;
	border-bottom: 1px solid #f0f0f0;
}

.summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	font-size: 14px;
	color: #666;
}

.summary-row.discount {
	color: #43a047;
}

.summary-row.discount i {
	margin-right: 4px;
}

.summary-row.shipping i {
	margin-right: 4px;
	color: #999;
}

.shipping-note {
	font-size: 12px;
	color: #999;
	font-style: italic;
}

.summary-divider {
	height: 1px;
	background: #f0f0f0;
	margin: 12px 0;
}

.summary-row.total {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	padding: 16px 0 0 0;
}

/* Coupon Section */
.coupon-section {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px dashed #e0e0e0;
}

.coupon-toggle {
	width: 100%;
	background: none;
	border: none;
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--color-primary, #009688);
	font-size: 14px;
	cursor: pointer;
	padding: 8px 0;
}

.coupon-toggle i:last-child {
	margin-left: auto;
	font-size: 12px;
	transition: transform 0.2s;
}

.coupon-form-container {
	margin-top: 12px;
}

.coupon-form {
	display: flex;
	gap: 8px;
}

.coupon-input {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
	text-transform: uppercase;
	transition: border-color 0.2s;
}

.coupon-input:focus {
	outline: none;
	border-color: var(--color-primary, #009688);
}

.coupon-btn {
	padding: 10px 16px;
	background: var(--color-primary, #009688);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s;
}

.coupon-btn:hover {
	background: var(--color-primary-dark, #00796b);
}

.coupon-loading {
	padding: 10px 16px;
	color: var(--color-primary, #009688);
}

.coupon-note {
	font-size: 12px;
	color: #999;
	margin: 10px 0 0 0;
	display: flex;
	align-items: flex-start;
	gap: 6px;
}

.coupon-note i {
	margin-top: 2px;
}

/* Checkout Button */
.checkout-form {
	margin-top: 24px;
}

.btn-checkout {
	width: 100%;
	padding: 16px 24px;
	background: linear-gradient(135deg, var(--color-primary, #009688), var(--color-primary-dark, #00796b));
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	transition: all 0.3s;
	box-shadow: 0 4px 15px rgba(0, 150, 136, 0.3);
}

.btn-checkout:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 150, 136, 0.4);
}

.btn-checkout:active {
	transform: translateY(0);
}

/* Security Badges */
.security-badges {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #f0f0f0;
}

.security-badges .badge {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #888;
}

.security-badges .badge i {
	color: #43a047;
}

/* Empty Cart State */
.cart-empty {
	text-align: center;
	padding: 60px 20px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cart-empty .empty-icon {
	width: 100px;
	height: 100px;
	background: linear-gradient(135deg, #f5f5f5, #eee);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 24px;
}

.cart-empty .empty-icon i {
	font-size: 40px;
	color: #bbb;
}

.cart-empty h2 {
	font-size: 22px;
	color: #333;
	margin: 0 0 10px 0;
}

.cart-empty p {
	color: #888;
	margin: 0 0 24px 0;
}

.btn-start-shopping {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	background: var(--color-primary, #009688);
	color: #fff;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 500;
	transition: all 0.3s;
}

.btn-start-shopping:hover {
	background: var(--color-primary-dark, #00796b);
	transform: translateY(-2px);
}

/* Responsive Cart */
@media (max-width: 900px) {
	.cart-layout {
		grid-template-columns: 1fr;
	}

	.cart-summary {
		position: static;
	}

	.cart-item {
		grid-template-columns: 80px 1fr;
		grid-template-rows: auto auto;
	}

	.item-image {
		width: 80px;
		height: 80px;
		grid-row: span 2;
	}

	.item-details {
		grid-column: 2;
	}

	.item-pricing {
		grid-column: 2;
		text-align: left;
		display: flex;
		align-items: center;
		gap: 12px;
	}

	.original-price {
		display: inline;
		margin: 0;
	}

	.final-price {
		font-size: 16px;
	}

	.item-actions {
		position: absolute;
		right: 16px;
		top: 50%;
		transform: translateY(-50%);
	}

	.cart-item {
		position: relative;
		padding-right: 60px;
	}
}

@media (max-width: 600px) {
	.cart-page {
		padding: 15px;
	}

	.cart-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.cart-title {
		font-size: 20px;
	}

	.cart-actions-bottom {
		flex-direction: column;
		gap: 12px;
		align-items: stretch;
	}

	.btn-continue-shopping {
		justify-content: center;
		padding: 12px;
		background: #f5f5f5;
		border-radius: 8px;
	}

	.empty-cart-action,
	.empty-cart-confirm {
		justify-content: center;
	}

	.summary-card {
		padding: 16px;
	}

	.btn-checkout {
		padding: 14px 20px;
		font-size: 15px;
	}
}

/* ===========================================
   CHECKOUT PAGE STYLES
   =========================================== */

.checkout-page {
	max-width: 1100px;
	margin: 0 auto;
	padding: 20px;
}

/* Progress Steps */
.checkout-progress {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 40px;
	padding: 20px 0;
}

.progress-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.step-icon {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: #e0e0e0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: #999;
	transition: all 0.3s;
}

.progress-step span {
	font-size: 13px;
	color: #999;
	font-weight: 500;
}

.progress-step.completed .step-icon {
	background: var(--color-primary, #009688);
	color: #fff;
}

.progress-step.completed span {
	color: var(--color-primary, #009688);
}

.progress-step.active .step-icon {
	background: linear-gradient(135deg, var(--color-primary, #009688), var(--color-primary-dark, #00796b));
	color: #fff;
	box-shadow: 0 4px 15px rgba(0, 150, 136, 0.4);
	transform: scale(1.1);
}

.progress-step.active span {
	color: #333;
	font-weight: 600;
}

.progress-line {
	width: 80px;
	height: 3px;
	background: #e0e0e0;
	margin: 0 10px;
	margin-bottom: 28px;
	border-radius: 2px;
}

.progress-line.completed {
	background: var(--color-primary, #009688);
}

/* Checkout Layout */
.checkout-layout {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 30px;
	align-items: start;
}

/* Payment Section */
.checkout-payment {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.payment-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	overflow: hidden;
}

.payment-header {
	background: linear-gradient(135deg, var(--color-primary, #009688), var(--color-primary-dark, #00796b));
	color: #fff;
	padding: 24px;
	text-align: center;
}

.payment-header h2 {
	margin: 0 0 8px 0;
	font-size: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.payment-header p {
	margin: 0;
	opacity: 0.9;
	font-size: 14px;
}

.payment-method {
	padding: 24px;
}

.method-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f0f0f0;
}

.paypal-logo {
	height: 28px;
}

.method-badge {
	background: #e8f5e9;
	color: #43a047;
	font-size: 11px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 12px;
	text-transform: uppercase;
}

.paypal-benefits {
	display: flex;
	justify-content: space-around;
	margin-bottom: 24px;
	padding: 16px;
	background: #f8f9fa;
	border-radius: 10px;
}

.paypal-benefits .benefit {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-align: center;
}

.paypal-benefits .benefit i {
	font-size: 20px;
	color: #0070ba;
}

.paypal-benefits .benefit span {
	font-size: 12px;
	color: #666;
}

.paypal-container {
	max-width: 400px;
	margin: 0 auto;
}

/* Payment Processing State */
.payment-processing {
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px;
	text-align: center;
}

.processing-spinner {
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, var(--color-primary, #009688), var(--color-primary-dark, #00796b));
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}

.processing-spinner i {
	font-size: 28px;
	color: #fff;
}

.payment-processing p {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	margin: 0 0 8px 0;
}

.payment-processing span {
	font-size: 13px;
	color: #888;
}

/* Payment Error State */
.payment-error {
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px;
	text-align: center;
}

.payment-error > i {
	font-size: 48px;
	color: #e53935;
	margin-bottom: 16px;
}

.payment-error p {
	font-size: 16px;
	color: #333;
	margin: 0 0 16px 0;
}

.btn-retry {
	padding: 12px 24px;
	background: var(--color-primary, #009688);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
}

.btn-retry:hover {
	background: var(--color-primary-dark, #00796b);
}

/* Security Info */
.security-info {
	padding: 20px 24px;
	background: #f8f9fa;
	border-top: 1px solid #f0f0f0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.security-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.security-item > i {
	font-size: 18px;
	color: #43a047;
	margin-top: 2px;
}

.security-item div {
	display: flex;
	flex-direction: column;
}

.security-item strong {
	font-size: 13px;
	color: #333;
}

.security-item span {
	font-size: 12px;
	color: #888;
}

.back-to-cart {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #666;
	text-decoration: none;
	font-size: 14px;
	padding: 10px 0;
	transition: color 0.2s;
}

.back-to-cart:hover {
	color: var(--color-primary, #009688);
}

/* Checkout Summary */
.checkout-summary {
	position: sticky;
	top: 20px;
}

.checkout-summary .summary-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	padding: 24px;
}

.checkout-summary .summary-header {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	margin: 0 0 20px 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.checkout-summary .summary-header i {
	color: var(--color-primary, #009688);
}

/* Products in Summary */
.summary-products {
	max-height: 250px;
	overflow-y: auto;
	margin-bottom: 16px;
}

.summary-product {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #f5f5f5;
}

.summary-product:last-child {
	border-bottom: none;
}

.product-thumb {
	position: relative;
	width: 50px;
	height: 50px;
	border-radius: 8px;
	overflow: hidden;
	background: #f5f5f5;
	flex-shrink: 0;
}

.product-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-qty {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 20px;
	height: 20px;
	background: var(--color-primary, #009688);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.product-info {
	flex: 1;
	min-width: 0;
}

.product-name {
	display: block;
	font-size: 13px;
	color: #333;
	line-height: 1.3;
}

.product-custom {
	display: block;
	font-size: 11px;
	color: #888;
	margin-top: 2px;
}

.product-price {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	white-space: nowrap;
}

/* Summary Totals */
.summary-totals {
	padding: 8px 0;
}

.total-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	font-size: 14px;
	color: #666;
}

.total-row.discount {
	color: #43a047;
}

.total-row.discount i {
	margin-right: 4px;
}

.free-shipping {
	color: #43a047;
	font-weight: 500;
}

.summary-final {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 0 8px 0;
}

.summary-final span:first-child {
	font-size: 16px;
	font-weight: 600;
	color: #333;
}

.final-amount {
	font-size: 24px;
	font-weight: 700;
	color: var(--color-primary, #009688);
}

.order-note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 12px;
	background: #fff8e1;
	border-radius: 8px;
	margin-top: 16px;
}

.order-note i {
	color: #f9a825;
	margin-top: 2px;
}

.order-note span {
	font-size: 12px;
	color: #666;
	line-height: 1.4;
}

/* Checkout Error State */
.checkout-error {
	text-align: center;
	padding: 60px 20px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	max-width: 500px;
	margin: 40px auto;
}

.checkout-error > i {
	font-size: 60px;
	color: #e53935;
	margin-bottom: 20px;
}

.checkout-error h3 {
	font-size: 22px;
	color: #333;
	margin: 0 0 10px 0;
}

.checkout-error p {
	color: #666;
	margin: 0 0 24px 0;
}

.btn-back-cart {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 24px;
	background: var(--color-primary, #009688);
	color: #fff;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 500;
	transition: all 0.2s;
}

.btn-back-cart:hover {
	background: var(--color-primary-dark, #00796b);
}

/* Responsive Checkout */
@media (max-width: 900px) {
	.checkout-layout {
		grid-template-columns: 1fr;
	}

	.checkout-summary {
		position: static;
		order: -1;
	}

	.checkout-progress {
		margin-bottom: 24px;
	}

	.progress-line {
		width: 40px;
	}

	.step-icon {
		width: 40px;
		height: 40px;
		font-size: 16px;
	}

	.progress-step span {
		font-size: 11px;
	}
}

@media (max-width: 600px) {
	.checkout-page {
		padding: 15px;
	}

	.checkout-progress {
		padding: 10px 0;
	}

	.progress-line {
		width: 25px;
		margin: 0 5px;
	}

	.step-icon {
		width: 36px;
		height: 36px;
		font-size: 14px;
	}

	.progress-step span {
		font-size: 10px;
	}

	.payment-header {
		padding: 20px 16px;
	}

	.payment-header h2 {
		font-size: 18px;
	}

	.payment-method {
		padding: 16px;
	}

	.paypal-benefits {
		flex-direction: column;
		gap: 12px;
	}

	.paypal-benefits .benefit {
		flex-direction: row;
		justify-content: flex-start;
		text-align: left;
	}

	.checkout-summary .summary-card {
		padding: 16px;
	}

	.final-amount {
		font-size: 20px;
	}

	.security-info {
		padding: 16px;
	}
}

/* ===========================================
   ORDER CONFIRMATION PAGE STYLES
   =========================================== */

.confirmation-page {
	max-width: 900px;
	margin: 0 auto;
	padding: 20px;
}

/* Success Header */
.confirmation-header {
	text-align: center;
	padding: 40px 20px;
}

.success-animation {
	margin-bottom: 24px;
}

.success-circle {
	width: 100px;
	height: 100px;
	background: linear-gradient(135deg, #43a047, #2e7d32);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
	animation: scaleIn 0.5s ease-out, pulse 2s ease-in-out infinite;
	box-shadow: 0 8px 30px rgba(67, 160, 71, 0.4);
}

.success-circle i {
	font-size: 48px;
	color: #fff;
}

@keyframes scaleIn {
	0% {
		transform: scale(0);
		opacity: 0;
	}
	50% {
		transform: scale(1.1);
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

@keyframes pulse {
	0%, 100% {
		box-shadow: 0 8px 30px rgba(67, 160, 71, 0.4);
	}
	50% {
		box-shadow: 0 8px 40px rgba(67, 160, 71, 0.6);
	}
}

.confirmation-header h1 {
	font-size: 28px;
	font-weight: 600;
	color: #333;
	margin: 0 0 8px 0;
}

.confirmation-subtitle {
	font-size: 16px;
	color: #666;
	margin: 0;
}

/* Order Info Card */
.order-info-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	padding: 24px;
	margin-bottom: 20px;
}

.order-number {
	text-align: center;
	padding-bottom: 20px;
	border-bottom: 1px dashed #e0e0e0;
	margin-bottom: 20px;
}

.order-number .label {
	display: block;
	font-size: 13px;
	color: #888;
	margin-bottom: 4px;
}

.order-number .value {
	font-size: 32px;
	font-weight: 700;
	color: var(--color-primary, #009688);
	font-family: monospace;
}

.order-details-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.detail-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	background: #f8f9fa;
	border-radius: 10px;
}

.detail-item > i {
	font-size: 20px;
	color: var(--color-primary, #009688);
}

.detail-item div {
	display: flex;
	flex-direction: column;
}

.detail-item .label {
	font-size: 11px;
	color: #888;
	text-transform: uppercase;
}

.detail-item .value {
	font-size: 14px;
	font-weight: 600;
	color: #333;
}

/* Email Notice */
.email-notice {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	background: #e8f5e9;
	border-radius: 10px;
	margin-bottom: 30px;
}

.email-notice > i {
	font-size: 24px;
	color: #43a047;
}

.email-notice strong {
	display: block;
	font-size: 14px;
	color: #2e7d32;
}

.email-notice p {
	margin: 4px 0 0 0;
	font-size: 13px;
	color: #558b2f;
}

/* Confirmation Content */
.confirmation-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-bottom: 30px;
}

/* Purchased Products */
.purchased-products {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	padding: 24px;
}

.purchased-products h2,
.next-steps h2 {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	margin: 0 0 20px 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.purchased-products h2 i,
.next-steps h2 i {
	color: var(--color-primary, #009688);
}

.products-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-height: 350px;
	overflow-y: auto;
}

.product-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	background: #f8f9fa;
	border-radius: 10px;
}

.product-item .product-image {
	width: 60px;
	height: 60px;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
}

.product-item .product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-item .product-details {
	flex: 1;
	min-width: 0;
}

.product-item .product-name {
	font-size: 14px;
	font-weight: 500;
	color: #333;
	margin: 0 0 4px 0;
	line-height: 1.3;
}

.product-item .product-store {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: #888;
}

.product-item .product-store i {
	font-size: 10px;
}

.product-item .product-custom {
	display: block;
	font-size: 11px;
	color: var(--color-primary, #009688);
	margin-top: 4px;
}

.product-qty-price {
	text-align: right;
}

.product-qty-price .qty {
	display: block;
	font-size: 12px;
	color: #888;
}

.product-qty-price .price {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: #333;
}

/* Next Steps */
.next-steps {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	padding: 24px;
}

.steps-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.step-item {
	display: flex;
	gap: 16px;
	padding: 16px;
	background: #f8f9fa;
	border-radius: 10px;
	transition: all 0.2s;
}

.step-item.highlight {
	background: linear-gradient(135deg, #e3f2fd, #e1f5fe);
	border: 1px solid #90caf9;
}

.step-icon {
	width: 44px;
	height: 44px;
	background: #fff;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.step-icon i {
	font-size: 20px;
	color: var(--color-primary, #009688);
}

.step-item.highlight .step-icon {
	background: linear-gradient(135deg, var(--color-primary, #009688), var(--color-primary-dark, #00796b));
}

.step-item.highlight .step-icon i {
	color: #fff;
}

.step-content h4 {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	margin: 0 0 4px 0;
}

.step-content p {
	font-size: 13px;
	color: #666;
	margin: 0 0 12px 0;
	line-height: 1.4;
}

.btn-download {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	background: linear-gradient(135deg, var(--color-primary, #009688), var(--color-primary-dark, #00796b));
	color: #fff;
	text-decoration: none;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.3s;
}

.btn-download:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 150, 136, 0.4);
}

.btn-secondary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: #fff;
	color: var(--color-primary, #009688);
	text-decoration: none;
	border: 1px solid var(--color-primary, #009688);
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.2s;
}

.btn-secondary:hover {
	background: var(--color-primary, #009688);
	color: #fff;
}

/* Confirmation Footer */
.confirmation-footer {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	padding: 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.support-info {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.support-info > i {
	font-size: 24px;
	color: #ffa000;
	margin-top: 2px;
}

.support-info strong {
	display: block;
	font-size: 14px;
	color: #333;
}

.support-info p {
	font-size: 13px;
	color: #666;
	margin: 4px 0 0 0;
}

.action-buttons {
	display: flex;
	gap: 12px;
}

.btn-messages {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	background: #fff;
	color: #666;
	text-decoration: none;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.2s;
}

.btn-messages:hover {
	border-color: var(--color-primary, #009688);
	color: var(--color-primary, #009688);
}

.btn-continue {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: linear-gradient(135deg, var(--color-primary, #009688), var(--color-primary-dark, #00796b));
	color: #fff;
	text-decoration: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.3s;
}

.btn-continue:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(0, 150, 136, 0.4);
}

/* Confirmation Error */
.confirmation-error {
	text-align: center;
	padding: 60px 20px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	max-width: 400px;
	margin: 40px auto;
}

.confirmation-error > i {
	font-size: 60px;
	color: #e53935;
	margin-bottom: 20px;
}

.confirmation-error h3 {
	font-size: 20px;
	color: #333;
	margin: 0 0 10px 0;
}

.confirmation-error p {
	color: #666;
	margin: 0 0 20px 0;
}

.btn-home {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: var(--color-primary, #009688);
	color: #fff;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 500;
}

/* Responsive Confirmation */
@media (max-width: 800px) {
	.confirmation-content {
		grid-template-columns: 1fr;
	}

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

	.confirmation-footer {
		flex-direction: column;
		text-align: center;
	}

	.support-info {
		flex-direction: column;
		align-items: center;
	}

	.action-buttons {
		flex-direction: column;
		width: 100%;
	}

	.btn-messages,
	.btn-continue {
		justify-content: center;
	}
}

@media (max-width: 500px) {
	.confirmation-page {
		padding: 15px;
	}

	.confirmation-header {
		padding: 30px 15px;
	}

	.confirmation-header h1 {
		font-size: 22px;
	}

	.success-circle {
		width: 80px;
		height: 80px;
	}

	.success-circle i {
		font-size: 36px;
	}

	.order-number .value {
		font-size: 24px;
	}

	.order-details-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.order-info-card,
	.purchased-products,
	.next-steps,
	.confirmation-footer {
		padding: 16px;
	}

	.email-notice {
		flex-direction: column;
		text-align: center;
	}

	.step-item {
		flex-direction: column;
		text-align: center;
	}

	.step-icon {
		margin: 0 auto;
	}
}

/* ===========================================
   MY ORDERS PAGE STYLES
   =========================================== */

.my-orders-page {
	max-width: 1000px;
	margin: 0 auto;
	padding: 20px;
}

/* Orders Header */
.orders-header {
	margin-bottom: 24px;
}

.orders-header .header-title h1 {
	font-size: 26px;
	font-weight: 600;
	color: #333;
	margin: 0 0 6px 0;
	display: flex;
	align-items: center;
	gap: 12px;
}

.orders-header .header-title h1 i {
	color: var(--color-primary, #009688);
}

.orders-header .header-title p {
	color: #888;
	margin: 0;
	font-size: 14px;
}

/* Stats Cards */
.orders-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 24px;
}

.stat-card {
	background: #fff;
	border-radius: 12px;
	padding: 16px;
	display: flex;
	align-items: center;
	gap: 14px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.stat-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
}

.stat-icon.total {
	background: #e3f2fd;
	color: #1976d2;
}

.stat-icon.completed {
	background: #e8f5e9;
	color: #43a047;
}

.stat-icon.pending {
	background: #fff8e1;
	color: #f9a825;
}

.stat-icon.spent {
	background: #fce4ec;
	color: #e91e63;
}

.stat-info {
	display: flex;
	flex-direction: column;
}

.stat-value {
	font-size: 20px;
	font-weight: 700;
	color: #333;
}

.stat-label {
	font-size: 12px;
	color: #888;
}

/* Filter Tabs */
.orders-filters {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
	padding: 4px;
	background: #f5f5f5;
	border-radius: 10px;
	width: fit-content;
}

.filter-tab {
	padding: 10px 18px;
	border-radius: 8px;
	font-size: 14px;
	color: #666;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s;
}

.filter-tab:hover {
	color: #333;
	background: #fff;
}

.filter-tab.active {
	background: #fff;
	color: var(--color-primary, #009688);
	font-weight: 500;
	box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Orders List */
.orders-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Order Card */
.order-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
	overflow: hidden;
}

.order-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	background: #fafafa;
	border-bottom: 1px solid #f0f0f0;
}

.order-main-info {
	display: flex;
	align-items: center;
	gap: 16px;
}

.order-number {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	font-family: monospace;
}

.order-date {
	font-size: 13px;
	color: #888;
	display: flex;
	align-items: center;
	gap: 6px;
}

.order-time {
	color: #aaa;
}

.order-status {
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 6px;
}

.order-status.status-completed {
	background: #e8f5e9;
	color: #43a047;
}

.order-status.status-pending {
	background: #fff8e1;
	color: #f9a825;
}

.order-status.status-review,
.order-status.status-issue {
	background: #ffebee;
	color: #e53935;
}

.order-card-body {
	padding: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.order-products-preview {
	display: flex;
	gap: 8px;
}

.product-thumb-mini {
	width: 50px;
	height: 50px;
	border-radius: 8px;
	overflow: hidden;
	background: #f5f5f5;
}

.product-thumb-mini img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-thumb-mini.more {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e0e0e0;
	font-size: 13px;
	font-weight: 600;
	color: #666;
}

.order-summary {
	display: flex;
	gap: 30px;
}

.order-summary .summary-item {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

.order-summary .label {
	font-size: 12px;
	color: #888;
}

.order-summary .value {
	font-size: 15px;
	font-weight: 600;
	color: #333;
}

.order-summary .summary-item.total .value {
	color: var(--color-primary, #009688);
	font-size: 18px;
}

.order-card-footer {
	padding: 16px 20px;
	border-top: 1px solid #f0f0f0;
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

.btn-order-action {
	padding: 10px 18px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s;
	background: #f5f5f5;
	color: #666;
}

.btn-order-action:hover {
	background: #e8e8e8;
	color: #333;
}

.btn-order-action.primary {
	background: linear-gradient(135deg, var(--color-primary, #009688), var(--color-primary-dark, #00796b));
	color: #fff;
}

.btn-order-action.primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 150, 136, 0.3);
}

.btn-order-action.download {
	background: #e8f5e9;
	color: #43a047;
}

.btn-order-action.download:hover {
	background: #c8e6c9;
}

/* Orders Empty */
.orders-empty {
	text-align: center;
	padding: 60px 20px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.orders-empty .empty-illustration {
	width: 100px;
	height: 100px;
	background: #f5f5f5;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 24px;
}

.orders-empty .empty-illustration i {
	font-size: 40px;
	color: #ccc;
}

.orders-empty h2 {
	font-size: 20px;
	color: #333;
	margin: 0 0 8px 0;
}

.orders-empty p {
	color: #888;
	margin: 0 0 20px 0;
}

.btn-view-all,
.orders-empty .btn-start-shopping {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: var(--color-primary, #009688);
	color: #fff;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 500;
}

/* ===========================================
   ORDER DETAIL PAGE STYLES
   =========================================== */

.order-detail-page {
	max-width: 900px;
	margin: 0 auto;
	padding: 20px;
}

.order-detail-error {
	text-align: center;
	padding: 60px 20px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
	max-width: 400px;
	margin: 40px auto;
}

.order-detail-error i {
	font-size: 50px;
	color: #e53935;
	margin-bottom: 16px;
}

.order-detail-error h3 {
	margin: 0 0 16px 0;
	color: #333;
}

.order-detail-error .btn-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	background: var(--color-primary, #009688);
	color: #fff;
	text-decoration: none;
	border-radius: 8px;
}

/* Order Detail Header */
.order-detail-header {
	background: #fff;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 20px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.order-detail-header .back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #888;
	text-decoration: none;
	font-size: 14px;
	margin-bottom: 16px;
}

.order-detail-header .back-link:hover {
	color: var(--color-primary, #009688);
}

.order-detail-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.order-detail-title h1 {
	font-size: 24px;
	font-weight: 600;
	color: #333;
	margin: 0;
}

.order-detail-date {
	font-size: 14px;
	color: #888;
	display: flex;
	align-items: center;
	gap: 6px;
}

.order-detail-total {
	text-align: right;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px dashed #e0e0e0;
}

.order-detail-total .label {
	display: block;
	font-size: 12px;
	color: #888;
}

.order-detail-total .amount {
	font-size: 24px;
	font-weight: 700;
	color: var(--color-primary, #009688);
}

/* Order Products List */
.order-products-list {
	background: #fff;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 20px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.order-products-list h2 {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	margin: 0 0 20px 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.order-products-list h2 i {
	color: var(--color-primary, #009688);
}

/* Order Product Card */
.order-product-card {
	display: grid;
	grid-template-columns: 100px 1fr auto;
	gap: 20px;
	padding: 20px;
	background: #fafafa;
	border-radius: 10px;
	margin-bottom: 16px;
	position: relative;
}

.order-product-card:last-child {
	margin-bottom: 0;
}

.product-image-large {
	width: 100px;
	height: 100px;
	border-radius: 10px;
	overflow: hidden;
	background: #f0f0f0;
}

.product-image-large img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-info-detail {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.product-info-detail .product-title {
	font-size: 16px;
	font-weight: 500;
	color: #333;
	margin: 0 0 6px 0;
}

.product-store-name {
	font-size: 13px;
	color: #888;
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
}

.product-customization {
	font-size: 13px;
	color: var(--color-primary, #009688);
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin-bottom: 8px;
}

.product-price-detail {
	font-size: 18px;
	font-weight: 600;
	color: #333;
}

.product-actions-detail {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}

.btn-download-product {
	padding: 12px 20px;
	background: linear-gradient(135deg, var(--color-primary, #009688), var(--color-primary-dark, #00796b));
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: all 0.2s;
}

.btn-download-product:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 150, 136, 0.3);
}

.btn-rate {
	padding: 10px 16px;
	background: #fff8e1;
	color: #f9a825;
	border: none;
	border-radius: 8px;
	font-size: 13px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
}

.btn-rate:hover {
	background: #ffecb3;
}

.already-rated {
	font-size: 13px;
	color: #43a047;
	display: flex;
	align-items: center;
	gap: 6px;
}

.waiting-notice {
	padding: 10px 16px;
	background: #f5f5f5;
	border-radius: 8px;
	font-size: 13px;
	color: #888;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Options Dropdown */
.product-options {
	position: relative;
}

.btn-options {
	width: 36px;
	height: 36px;
	border: 1px solid #e0e0e0;
	background: #fff;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #888;
}

.btn-options:hover {
	background: #f5f5f5;
}

.options-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.15);
	min-width: 180px;
	z-index: 100;
	display: none;
	overflow: hidden;
}

.option-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	font-size: 14px;
	color: #333;
	cursor: pointer;
	text-decoration: none;
}

.option-item:hover {
	background: #f5f5f5;
}

.option-item.disabled {
	color: #aaa;
	cursor: default;
}

/* Rating Form */
.rating-form-container {
	grid-column: 1 / -1;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px dashed #e0e0e0;
}

.rating-form h4 {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	margin: 0 0 16px 0;
}

.rating-row {
	margin-bottom: 16px;
}

.rating-row label {
	display: block;
	font-size: 13px;
	color: #666;
	margin-bottom: 6px;
}

.star-rating {
	display: flex;
	gap: 4px;
}

.star-rating i {
	font-size: 24px;
	color: #ddd;
	cursor: pointer;
	transition: all 0.15s;
}

.star-rating i.fa-star {
	color: #f9a825;
}

.star-rating i.hover {
	color: #ffc107;
	transform: scale(1.1);
}

.rating-row textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	font-size: 14px;
	resize: vertical;
	min-height: 80px;
}

.rating-row textarea:focus {
	outline: none;
	border-color: var(--color-primary, #009688);
}

.rating-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

.btn-cancel-rating {
	padding: 10px 18px;
	background: #f5f5f5;
	color: #666;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	cursor: pointer;
}

.btn-submit-rating {
	padding: 10px 18px;
	background: var(--color-primary, #009688);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
}

/* Order Help */
.order-help {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px 20px;
	background: #fff8e1;
	border-radius: 10px;
}

.order-help > i {
	font-size: 24px;
	color: #f9a825;
	margin-top: 2px;
}

.order-help strong {
	display: block;
	color: #333;
	font-size: 14px;
}

.order-help p {
	margin: 4px 0 0 0;
	font-size: 13px;
	color: #666;
}

/* Responsive Orders */
@media (max-width: 800px) {
	.orders-stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.order-card-body {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.order-summary {
		width: 100%;
		justify-content: space-between;
	}

	.order-product-card {
		grid-template-columns: 80px 1fr;
		grid-template-rows: auto auto;
	}

	.product-image-large {
		width: 80px;
		height: 80px;
	}

	.product-actions-detail {
		grid-column: 1 / -1;
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		flex-wrap: wrap;
	}
}

@media (max-width: 600px) {
	.my-orders-page,
	.order-detail-page {
		padding: 15px;
	}

	.orders-stats {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.stat-card {
		padding: 12px;
	}

	.stat-icon {
		width: 40px;
		height: 40px;
		font-size: 16px;
	}

	.stat-value {
		font-size: 16px;
	}

	.orders-filters {
		width: 100%;
		overflow-x: auto;
	}

	.filter-tab {
		padding: 8px 14px;
		font-size: 13px;
		white-space: nowrap;
	}

	.order-card-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.order-main-info {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.order-card-footer {
		flex-direction: column;
	}

	.btn-order-action {
		width: 100%;
		justify-content: center;
	}

	.order-detail-title {
		flex-direction: column;
		align-items: flex-start;
	}

	.order-detail-total {
		text-align: left;
	}
}
