.ecux-account-favorites,
.ecux-recent,
.ecux-account-favorites *,
.ecux-recent * { box-sizing: border-box; }

.ecux-account-favorites { color: #5f6264; }
.ecux-account-favorites__header,
.ecux-recent__header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 0 0 30px; padding-bottom: 20px; border-bottom: 1px solid #e8e5e1; }
.ecux-account-favorites h2,
.ecux-recent h2 { margin: 0 0 8px; color: #2f2f2f; font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; line-height: 1.15; letter-spacing: .08em; text-transform: uppercase; }
.ecux-account-favorites p,
.ecux-recent__header p { margin: 0; color: #74777a; font-family: inherit; font-size: 16px; line-height: 1.5; letter-spacing: 0; }
.ecux-btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; border: 1px solid #72c0a1; background: #72c0a1; color: #fff !important; cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-decoration: none !important; text-transform: uppercase; }
.ecux-btn:hover,
.ecux-btn:focus { background: #5eaa8d; border-color: #5eaa8d; outline: 2px solid rgba(114,192,161,.25); outline-offset: 2px; }
.ecux-btn--ghost { background: #fff; color: #4d9f80 !important; }
.ecux-btn--small { min-height: 38px; padding: 9px 14px; }
.ecux-empty { padding: 34px; border: 1px solid #e8e5e1; background: #f8f7f5; }
.ecux-empty p { margin-bottom: 18px; }
.ecux-favorite-list { border-top: 1px solid #e8e5e1; }
.ecux-favorite-row { position: relative; display: grid; grid-template-columns: 86px minmax(0,1fr) auto 32px; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid #e8e5e1; }
.ecux-favorite-row__image { width: 86px; height: 70px; overflow: hidden; background: #f8f7f5; }
.ecux-favorite-row__image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.ecux-favorite-row__body span { color: #72c0a1; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.ecux-favorite-row__body h3 { margin: 5px 0 0; color: #333; font-size: 16px; font-weight: 500; line-height: 1.3; }
.ecux-favorite-row__body a { color: inherit; text-decoration: none; }
.ecux-favorite-remove { width: 32px; height: 32px; border: 0; background: transparent; color: #999; cursor: pointer; font-size: 24px; line-height: 1; }
.ecux-favorite-remove:hover,
.ecux-favorite-remove:focus { color: #333; outline: 2px solid rgba(114,192,161,.35); }

.ecux-recent { width: 100%; clear: both; margin: 54px 0 28px; padding: 34px 0 0; border-top: 1px solid #e8e5e1; }
.ecux-recent__grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 28px; }
/* Reuse the Related Products card component without changing its styles. */
.ecux-recent .ecpu-related-card { border-radius: 8px; overflow: hidden; }
.ecux-recent .ecpu-related-card h3.ecpu-related-card__title,
.ecux-recent .ecpu-related-card h3.ecpu-related-card__title a { font-family: "Playfair Display", Georgia, "Times New Roman", serif !important; font-size: 20px !important; line-height: 1.14 !important; font-weight: 600 !important; color: #2f2f2f !important; letter-spacing: 0 !important; text-transform: none !important; word-spacing: 0 !important; }
.ecux-recent .ecpu-related-card h3.ecpu-related-card__title { min-height: 46px; max-height: 46px; overflow: hidden; overflow-wrap: break-word; word-break: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ecux-recent .ecpu-related-card h3.ecpu-related-card__title a { display: block !important; overflow-wrap: break-word !important; }
.ecux-recent__grid--loading { min-height: 330px; }
.ecux-recent__skeleton { min-width: 0; border: 1px solid #e6e1dc; border-radius: 8px; overflow: hidden; background: #fff; }
.ecux-recent__skeleton-image { aspect-ratio: 4 / 3; background: linear-gradient(90deg,#f7f6f4 25%,#fbfaf8 37%,#f7f6f4 63%); background-size: 400% 100%; animation: ecux-recent-skeleton 1.2s ease-in-out infinite; }
.ecux-recent__skeleton-body { height: 112px; border-top: 1px solid #e6e1dc; background: linear-gradient(90deg,#fff 25%,#fbfaf8 37%,#fff 63%); background-size: 400% 100%; animation: ecux-recent-skeleton 1.2s ease-in-out infinite; }
@keyframes ecux-recent-skeleton { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .ecux-recent__skeleton-image, .ecux-recent__skeleton-body { animation: none; } }

@media (max-width: 900px) {
	.ecux-recent__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.ecux-recent .ecpu-related-card h3.ecpu-related-card__title,
	.ecux-recent .ecpu-related-card h3.ecpu-related-card__title a { font-size: 19px !important; }
	.ecux-favorite-row { grid-template-columns: 72px minmax(0,1fr) 32px; }
	.ecux-favorite-row__image { width: 72px; height: 64px; }
	.ecux-favorite-row .ecux-btn { grid-column: 2 / 4; justify-self: start; }
}

@media (max-width: 560px) {
	.ecux-account-favorites__header,
	.ecux-recent__header { align-items: stretch; flex-direction: column; }
	.ecux-recent { margin-top: 38px; }
	.ecux-recent__grid { grid-template-columns: 1fr; }
	.ecux-recent .ecpu-related-card h3.ecpu-related-card__title,
	.ecux-recent .ecpu-related-card h3.ecpu-related-card__title a { font-size: 18px !important; }
	.ecux-favorite-row { grid-template-columns: 64px minmax(0,1fr) 30px; gap: 12px; }
	.ecux-favorite-row__image { width: 64px; height: 58px; }
}
