.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; align-items: stretch; }
/* The Recent grid uses the same Related Products card contract and declarations. */
.ecux-recent .ecpu-related-card { display:flex; flex-direction:column; height:100%; min-height:0; background:#fff; border:1px solid #e6e1dc; border-radius:8px; overflow:hidden; color:#555; transition:transform .25s ease, border-color .25s ease; }
.ecux-recent .ecpu-related-card:hover,
.ecux-recent .ecpu-related-card:focus-within { transform:translateY(-3px); border-color:rgba(114,192,161,.65); }
.ecux-recent .ecpu-related-card__media { position:relative; display:block; aspect-ratio:4/3; background:#f8f7f5; overflow:hidden; text-decoration:none!important; border:0!important; padding:0!important; margin:0!important; }
.ecux-recent .ecpu-related-card__media img,
.ecux-recent .ecpu-related-card__image { width:100%!important; height:100%!important; object-fit:cover!important; object-position:center; display:block; transition:transform .32s ease; border:0!important; box-shadow:none!important; }
.ecux-recent .ecpu-related-card:hover .ecpu-related-card__media img { transform:scale(1.03); }
.ecux-recent .ecpu-related-card__hover-actions { position:absolute; top:14px; right:14px; display:flex; gap:8px; opacity:0; transform:translateY(6px); transition:opacity .22s ease, transform .22s ease; }
.ecux-recent .ecpu-related-card:hover .ecpu-related-card__hover-actions,
.ecux-recent .ecpu-related-card:focus-within .ecpu-related-card__hover-actions { opacity:1; transform:translateY(0); }
.ecux-recent .ecpu-related-card__hover-actions span,
.ecux-recent .ecpu-related-card__hover-actions button { width:38px; height:38px; border-radius:50%; border:1px solid #e6e1dc; background:#fff; color:#2f2f2f; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; padding:0; }
.ecux-recent .ecpu-related-card__hover-actions svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.ecux-recent .ecpu-related-card__content { display:flex; flex-direction:column; flex:1; padding:22px 22px 0; min-height:0; }
.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 .ecpu-related-card__category { font-size:11px; line-height:1.2; font-weight:600; letter-spacing:1.4px; text-transform:uppercase; color:#6f7173; margin:0 0 11px; display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }
.ecux-recent .ecpu-related-card__microcopy { font-size:13px; line-height:1.45; color:#777; margin:0 0 14px; }
.ecux-recent .ecpu-related-card__selection { display:flex; align-items:center; justify-content:flex-start; gap:10px; min-height:50px; margin:auto -22px 0; padding:0 22px; border:0; border-top:1px solid #e6e1dc; background:#fbfaf8; color:#4d9f80; font-size:14px; font-weight:500; cursor:pointer; transition:background .22s ease; }
.ecux-recent .ecpu-related-card__selection:hover { background:#edf7f3; }
.ecux-recent .ecpu-related-card__selection span { width:24px; height:24px; border:1px solid #72c0a1; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; line-height:1; flex:0 0 auto; }

@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; }
}
