/* TipTop outlet product card — shared by the Drop, Product Rail, Shop Archive and Product widgets.
 * Photo in a 4:5 white well (second photo on hover), "−50%" and "Last size" flags,
 * brand, name, now price beside the struck-through RRP, sizes still in stock. */
.tt .tt-card { position: relative; display: grid; gap: 0; align-content: start; min-width: 0; }
.tt .tt-card[hidden] { display: none; }
/* position + absolute image: Safari resolves height:100% against the padded box otherwise. */
.tt .tt-card__img { position: relative; aspect-ratio: 1 / 1; background-color: var(--tt-mist); border-radius: var(--tt-r); overflow: hidden; }
.tt .tt-card__img > a { position: absolute; inset: 0; }
.tt .tt-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .6s var(--tt-ease), opacity .45s; }
.tt .tt-card__alt { opacity: 0; mix-blend-mode: multiply; } /* hover photos are the originals on white: multiply them onto the grey */
@media (hover: hover) {
	.tt .has-swap .tt-card:hover .tt-card__alt { opacity: 1; }
	.tt .tt-card:hover .tt-card__main { transform: scale(1.03); }
}
.tt .tt-card.is-out .tt-card__main { opacity: .55; }
.tt .tt-card__off { position: absolute; z-index: 2; left: 10px; top: 10px; padding: 5px 9px; border-radius: 2px; background-color: var(--tt-red); color: var(--tt-white); font-size: 13px; font-weight: 800; letter-spacing: .03em; line-height: 1.2; }
.tt .tt-card__off.is-out { background-color: var(--tt-ink); text-transform: uppercase; font-size: 12px; letter-spacing: .06em; }
.tt .tt-card__last { position: absolute; z-index: 2; right: 10px; top: 10px; padding: 5px 9px; border-radius: 2px; background-color: var(--tt-ink); color: var(--tt-white); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; }
.tt .tt-card__badge { position: absolute; z-index: 2; left: 10px; top: 10px; padding: 5px 9px; background-color: var(--tt-ink); color: var(--tt-white); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; border-radius: 2px; }
.tt .tt-card__add { position: absolute; z-index: 3; right: 10px; bottom: 10px; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 0; background-color: var(--tt-ink); color: var(--tt-white); display: grid; place-items: center; cursor: pointer; transition: transform .2s var(--tt-ease), background-color .2s; }
.tt .tt-card__add:hover, .tt .tt-card__add:focus-visible { transform: scale(1.06); background-color: var(--tt-red); }
.tt .tt-card__add svg { width: 18px; height: 18px; }
.tt .tt-card__row { display: grid; gap: 0; padding-top: 12px; }
.tt .tt-card__brand { font-size: 14px; font-weight: 800; line-height: 1.3; color: var(--tt-ink); }
.tt .tt-card__name { margin: 2px 0 6px; font-size: 14px; font-weight: 400; line-height: 1.35; color: var(--tt-mute); text-decoration: none; }
.tt .tt-card__name::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tt .tt-card__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.tt .tt-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.tt .tt-card__now { font-size: 15px; font-weight: 800; line-height: 1.2; }
.tt .tt-card__price:has(.tt-card__rrp) .tt-card__now { color: var(--tt-red); }
.tt .tt-card__rrp { font-size: 13px; color: var(--tt-mute); }
.tt .tt-card__rrp s { text-decoration-thickness: 1px; }
.tt .tt-card__sizes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.tt .tt-card__sizes li { font-size: 11px; font-weight: 600; line-height: 1; padding: 4px 6px; border: 1px solid var(--tt-line); border-radius: 2px; background: var(--tt-white); color: var(--tt-mute); }
.tt .tt-card__sizes li.is-match { background: var(--tt-ink); color: var(--tt-white); border-color: var(--tt-ink); }
@media (max-width: 767px) {
	.tt .tt-card__brand, .tt .tt-card__name, .tt .tt-card__now { font-size: 13px; }
	.tt .tt-card__rrp { font-size: 12px; }
	.tt .tt-card__last { display: none; }
	.tt .tt-card__add { width: 40px; height: 40px; right: 8px; bottom: 8px; }
}

/* Pagination, shared by the Shop Archive and Post Grid widgets. */
.tt .tt-pager { margin-top: clamp(40px, 5vw, 64px); }
.tt .tt-pager ul { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.tt .tt-pager a, .tt .tt-pager span.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1.5px solid var(--tt-line); border-radius: var(--tt-r); background: var(--tt-white); text-decoration: none; font-size: 14px; font-weight: 700; }
.tt .tt-pager a:hover { border-color: var(--tt-ink); }
.tt .tt-pager .current { background-color: var(--tt-ink); border-color: var(--tt-ink); color: #fff; }
.tt .tt-pager .dots { border-color: transparent; background: none; }
