/* Maré tools pages: wishlist, compare, offers (coupon), search. Prefix: .tl- */

/* ---------- Page head (matches shop .cat-title) ---------- */
.tl-head { text-align: center; padding: clamp(64px, 8vw, 110px) var(--pad) clamp(40px, 4.5vw, 64px); }
.tl-head h1 { font-size: clamp(56px, 6.6vw, 96px); margin-top: 18px; }
.tl-head h1 .tl-n { font-size: .42em; vertical-align: super; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.tl-head .tl-sub { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.8vw, 24px); color: var(--muted); margin: 12px auto 0; max-width: 620px; line-height: 1.35; }

/* ---------- Toolbar row (matches .shop-row) ---------- */
.tl-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px var(--pad); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.tl-row .tl-acts { display: flex; align-items: center; gap: 28px; }
.tl-row button, .tl-row a { display: inline-flex; align-items: center; gap: 8px; letter-spacing: inherit; text-transform: inherit; font-size: inherit; transition: opacity .25s; }
.tl-row button:hover, .tl-row a:hover { opacity: .55; }
.tl-row svg { width: 15px; height: 15px; }

/* ---------- Product card (reuses .pcard look) ---------- */
.tl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; padding: 48px var(--pad) clamp(80px, 9vw, 120px); }
.tl-grid.tl-four { grid-template-columns: repeat(4, 1fr); gap: 32px 24px; padding: 0; }
.tl-card { position: relative; display: flex; flex-direction: column; }
.tl-card .tl-mlink { display: block; }
.tl-card .media { aspect-ratio: 5 / 6; background: var(--panel); }
.tl-card .media .alt { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.tl-card .tl-mlink:hover .media .alt:not(.missing), .tl-card .tl-mlink:focus-visible .media .alt:not(.missing) { opacity: 1; }
.tl-pill { position: absolute; right: 14px; bottom: 14px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; opacity: 0; transform: scale(.6); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.tl-pill svg { width: 15px; height: 15px; transform: rotate(-45deg); transition: transform .5s cubic-bezier(.19, 1, .22, 1); }
.tl-mlink:hover .tl-pill, .tl-mlink:focus-visible .tl-pill { opacity: 1; transform: none; }
.tl-mlink:hover .tl-pill svg { transform: rotate(0deg); }
.tl-flag { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.tl-heart { position: absolute; top: 10px; right: 10px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.92); transition: background .25s, transform .25s; }
.tl-heart:hover { transform: scale(1.06); }
.tl-heart svg { width: 19px; height: 19px; }
.tl-heart[aria-pressed="true"] svg { fill: currentColor; }
.tl-cap { padding: 18px 8px 0; text-align: center; }
.tl-cap .n { font-family: var(--serif); font-size: 24px; line-height: 1.1; }
.tl-cap .n a:hover { opacity: .6; }
.tl-cap .t { font-size: 12px; color: var(--muted); letter-spacing: .06em; margin-top: 3px; }
.tl-cap .p { font-size: 13px; letter-spacing: .22em; margin-top: 8px; }
.tl-buy { display: flex; gap: 8px; margin-top: 18px; }
.tl-card > .tl-cap { margin-bottom: 18px; }
.tl-card > .tl-buy { margin-top: auto; }
.tl-buy .btn { flex: 1; height: 48px; padding: 0 16px; font-size: 12px; }
.tl-size { position: relative; flex: 0 0 104px; }
.tl-size select { width: 100%; height: 48px; border: 1px solid var(--line); background: #fff; padding: 0 28px 0 14px; font-size: 13px; appearance: none; -webkit-appearance: none; border-radius: 0; cursor: pointer; }
.tl-size::after { content: ""; position: absolute; right: 13px; top: 50%; width: 6px; height: 6px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.tl-size select:focus { border-color: var(--ink); outline: none; }
.tl-size.tl-bad select { border-color: #a2412e; }
.tl-line { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.tl-line button { letter-spacing: inherit; text-transform: inherit; font-size: inherit; color: var(--muted); transition: color .25s; display: inline-flex; align-items: center; gap: 8px; }
.tl-line button:hover { color: var(--ink); }
.tl-check { width: 14px; height: 14px; border: 1px solid currentColor; display: inline-grid; place-items: center; }
.tl-cmp[aria-pressed="true"] { color: var(--ink); }
.tl-cmp[aria-pressed="true"] .tl-check::after { content: ""; width: 8px; height: 8px; background: var(--ink); }
.tl-card.tl-out { opacity: 0; transform: translateY(10px); transition: opacity .35s var(--ease), transform .35s var(--ease); }

/* Compare tray on wishlist */
.tl-tray { position: fixed; right: var(--pad); bottom: 24px; z-index: 60; transform: translateY(calc(100% + 40px)); display: flex; align-items: center; gap: 18px; padding: 10px 10px 10px 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08); transition: transform .45s var(--ease), visibility 0s .45s; visibility: hidden; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.tl-tray.on { transform: none; visibility: visible; transition: transform .45s var(--ease); }
.tl-tray .tl-thumbs { display: flex; gap: 6px; }
.tl-tray .tl-thumbs img { width: 40px; height: 48px; object-fit: cover; background: var(--panel); }
.tl-tray .btn { height: 44px; padding: 0 20px; font-size: 12px; }

/* Empty + suggestions */
.tl-empty { text-align: center; padding: clamp(40px, 5vw, 72px) var(--pad) clamp(56px, 6vw, 88px); border-top: 1px solid var(--line); }
.tl-empty h2 { font-size: clamp(34px, 3.4vw, 48px); }
.tl-empty p { color: var(--muted); margin: 14px auto 0; max-width: 460px; }
.tl-empty .btn { margin-top: 30px; }
.tl-more { padding: clamp(56px, 6vw, 96px) var(--pad) clamp(80px, 9vw, 120px); border-top: 1px solid var(--line); }
.tl-more .sec-head { margin-bottom: 36px; }
.tl-more .sec-head h2 { font-size: clamp(34px, 3.6vw, 52px); }
.tl-shared { margin: 0 var(--pad) 8px; padding: 18px 22px; background: var(--panel); display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.tl-shared p { font-size: 15px; }
.tl-shared .btn { height: 44px; font-size: 12px; }

/* ---------- Compare ---------- */
.tl-cwrap { padding: 0 var(--pad) clamp(80px, 9vw, 120px); }
.tl-cbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.tl-cbar label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.tl-cbar input { width: 15px; height: 15px; accent-color: var(--ink); margin: 0; }
.tl-cbar button { letter-spacing: inherit; text-transform: inherit; font-size: inherit; }
.tl-cbar button:hover, .tl-cbar a:hover { opacity: .55; }
.tl-cbar .tl-acts { display: flex; gap: 28px; align-items: center; }
.tl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--line); }
.tl-table { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 760px; }
.tl-table col.tl-c0 { width: 200px; }
.tl-table th, .tl-table td { text-align: left; vertical-align: top; padding: 20px 22px; border-bottom: 1px solid var(--line); font-weight: 400; font-size: 15px; line-height: 1.55; }
.tl-table td + td, .tl-table th + td { border-left: 1px solid var(--line); }
.tl-table th[scope="row"] { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); padding-left: 0; position: sticky; left: 0; background: #fff; z-index: 5; }
.tl-table tr.tl-diff td { background: #fff; }
.tl-table tr.tl-diff th[scope="row"] { color: var(--ink); }
.tl-table td ul li { position: relative; padding-left: 14px; }
.tl-table td ul li + li { margin-top: 4px; }
.tl-table td ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 5px; height: 1px; background: var(--muted); }
.tl-table .tl-ph { position: relative; }
.tl-table .tl-ph .media { aspect-ratio: 5 / 6; }
.tl-x { position: absolute; top: 30px; right: 32px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.94); display: grid; place-items: center; transition: transform .25s; }
.tl-x:hover { transform: rotate(90deg); }
.tl-x svg { width: 17px; height: 17px; }
.tl-table .tl-name { font-family: var(--serif); font-size: 28px; line-height: 1.1; display: block; }
.tl-table .tl-name:hover { opacity: .6; }
.tl-table .tl-type { color: var(--muted); font-size: 13px; letter-spacing: .04em; }
.tl-table .tl-price { font-size: 14px; letter-spacing: .2em; }
.tl-table .tl-muted { color: var(--muted); }
.tl-table .tl-buy { margin-top: 0; flex-wrap: wrap; }
.tl-table .tl-buy .btn { min-width: 140px; }
.tl-table .tl-rmv { margin-top: 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tl-table .tl-rmv:hover { color: var(--ink); }
.tl-slot { aspect-ratio: 5 / 6; border: 1px dashed #d8d8d8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; text-align: center; }
.tl-slot .tl-plus { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 22px; font-weight: 300; }
.tl-slot p { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.tl-slot .tl-size { flex: none; width: 100%; max-width: 220px; }
.tl-slot .tl-size select { font-size: 13px; }
.tl-cnote { text-align: center; color: var(--muted); max-width: 520px; margin: 36px auto 0; padding: 0 16px; }
.tl-cnote .ulink { font-size: 12px; color: var(--ink); }

/* ---------- Offers ---------- */
.tl-offers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 0 var(--pad) clamp(64px, 7vw, 100px); }
.tl-row + .tl-offers { padding-top: 48px; }
.tl-offer { position: relative; border: 1px solid var(--line); padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; transition: border-color .3s; }
.tl-offer:hover { border-color: #cfcfcf; }
.tl-offer.on { border-color: var(--ink); }
.tl-offer .tl-ot { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 26px; }
.tl-badge { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.tl-offer h2 { font-size: clamp(34px, 3.2vw, 46px); margin-top: 26px; }
.tl-code { display: inline-flex; align-items: center; align-self: flex-start; margin-top: 22px; padding: 12px 18px; border: 1px dashed #c9c9c9; font-size: 15px; letter-spacing: .3em; }
.tl-offer ul { margin-top: 24px; color: var(--muted); font-size: 15px; }
.tl-offer ul li { position: relative; padding-left: 16px; }
.tl-offer ul li + li { margin-top: 6px; }
.tl-offer ul li::before { content: ""; position: absolute; left: 0; top: .78em; width: 6px; height: 1px; background: var(--muted); }
.tl-exp { margin-top: 24px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.tl-ob { display: flex; gap: 10px; margin-top: auto; padding-top: 30px; flex-wrap: wrap; }
.tl-ob .btn { height: 48px; padding: 0 24px; font-size: 12px; }
.tl-ob .tl-cart { align-self: center; margin-left: 8px; font-size: 12px; }
.tl-terms { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding: clamp(56px, 6vw, 88px) var(--pad) clamp(80px, 9vw, 120px); border-top: 1px solid var(--line); }
.tl-terms h2 { font-size: clamp(34px, 3.4vw, 48px); margin-top: 14px; }
.tl-terms ol { margin: 0; padding: 0; list-style: none; counter-reset: t; }
.tl-terms ol li { counter-increment: t; display: grid; grid-template-columns: 44px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); color: #4a4a4a; }
.tl-terms ol li:first-child { border-top: 1px solid var(--line); }
.tl-terms ol li::before { content: counter(t, decimal-leading-zero); font-size: 12px; letter-spacing: .18em; color: var(--muted); padding-top: 3px; }
.tl-terms a { border-bottom: 1px solid currentColor; }

/* ---------- Search ---------- */
.tl-shead { padding: clamp(56px, 7vw, 96px) var(--pad) 0; max-width: 1180px; margin: 0 auto; }
.tl-sform { position: relative; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--ink); margin-top: 22px; }
.tl-sform svg.ico { width: 30px; height: 30px; flex: none; color: var(--muted); }
.tl-sform input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-family: var(--serif); font-size: clamp(40px, 5.4vw, 76px); line-height: 1.2; padding: 8px 0 14px; }
.tl-sform input::placeholder { color: #c4c4c4; }
.tl-sform input::-webkit-search-cancel-button { display: none; }
.tl-clear { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); flex: none; }
.tl-clear:hover { color: var(--ink); }
.tl-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.tl-chips .eyebrow { margin-right: 8px; }
.tl-chips .chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tl-hint { margin-top: 16px; font-size: 13px; color: var(--muted); }
.tl-hint kbd { font: inherit; font-size: 11px; border: 1px solid var(--line); padding: 1px 6px; margin: 0 2px; }
.tl-res { max-width: 1180px; margin: 0 auto; padding: 40px var(--pad) clamp(80px, 9vw, 120px); }
.tl-count { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.tl-count b { color: var(--ink); font-weight: 400; }
.tl-group { margin-top: 44px; }
.tl-ghead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; }
.tl-ghead h2 { font-size: clamp(28px, 2.6vw, 36px); }
.tl-ghead span { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.tl-sgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 22px; }
.tl-sgrid .tl-cap { padding-top: 14px; }
.tl-sgrid .tl-cap .n { font-size: 22px; }
.tl-list a { display: grid; grid-template-columns: 72px 1fr auto; gap: 22px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); transition: background .25s, padding .3s var(--ease); }
.tl-list a:first-child { border-top: 1px solid var(--line); }
.tl-list a:hover, .tl-list a:focus-visible { background: var(--panel); padding-left: 14px; padding-right: 14px; outline: none; }
.tl-list .media { width: 72px; aspect-ratio: 1; }
.tl-list .tl-ic { width: 72px; height: 72px; display: grid; place-items: center; background: var(--panel); font-family: var(--serif); font-size: 26px; color: var(--muted); }
.tl-list .tl-lt { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.tl-list .tl-ld { color: var(--muted); font-size: 14px; margin-top: 4px; }
.tl-list .tl-go { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .25s, color .25s, border-color .25s; }
.tl-list a:hover .tl-go, .tl-list a:focus-visible .tl-go { background: var(--ink); color: #fff; border-color: var(--ink); }
mark.tl-hl { background: none; color: inherit; box-shadow: inset 0 -.32em 0 #e9e9e9; }
.tl-none { text-align: center; padding: 56px 0 8px; }
.tl-none h2 { font-size: clamp(34px, 3.4vw, 48px); }
.tl-none p { color: var(--muted); margin-top: 12px; }
.tl-none .tl-chips { justify-content: center; }
.tl-sgrid .tl-card:focus-within { outline: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .tl-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .tl-grid.tl-four, .tl-sgrid { grid-template-columns: repeat(2, 1fr); }
  .tl-offers { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .tl-terms { grid-template-columns: 1fr; gap: 24px; }
  .tl-table { min-width: 0; width: 764px; }
  .tl-table col.tl-c0 { width: 104px; }
  .tl-table col.tl-cp { width: 220px; }
  .tl-table th, .tl-table td { padding: 16px 14px; font-size: 14px; }
  .tl-table th[scope="row"] { font-size: 10px; letter-spacing: .18em; padding-right: 10px; box-shadow: 1px 0 0 var(--line); }
  .tl-table .tl-name { font-size: 24px; }
  .tl-x { top: 24px; right: 22px; }
  .tl-cwrap { padding-right: 0; }
  .tl-cbar { padding-right: var(--pad); flex-direction: column; align-items: flex-start; gap: 12px; font-size: 11px; }
  .tl-cbar .tl-acts { width: 100%; justify-content: space-between; gap: 16px; }
}
@media (max-width: 560px) {
  .tl-head h1 { font-size: 54px; }
  .tl-grid { gap: 28px 12px; padding-top: 28px; }
  .tl-grid.tl-four { gap: 24px 12px; padding: 0; }
  .tl-cap { padding: 12px 2px 0; }
  .tl-cap .n { font-size: 20px; }
  .tl-cap .t { font-size: 11px; }
  .tl-buy { flex-direction: column; gap: 6px; }
  .tl-size { flex: none; }
  .tl-buy .btn { flex: none; }
  .tl-buy .btn, .tl-size select { height: 42px; font-size: 11px; letter-spacing: .12em; padding: 0 10px; }
  .tl-line { flex-direction: column; gap: 8px; font-size: 11px; }
  .tl-heart { width: 34px; height: 34px; top: 8px; right: 8px; }
  .tl-flag { display: none; }
  .tl-row { flex-wrap: wrap; }
  .tl-row .tl-acts { gap: 18px; }
  .tl-tray { display: none; }
  .tl-ob .btn { flex: 1 1 auto; padding: 0 14px; white-space: nowrap; }
  .tl-ob .tl-cart { margin: 10px 0 0; }
  .tl-row#tl-applied { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tl-sform svg.ico { width: 22px; height: 22px; }
  .tl-sform { gap: 10px; }
  .tl-sform input { font-size: 38px; }
  .tl-hint { display: none; }
  .tl-sgrid { gap: 24px 12px; }
  .tl-list a { grid-template-columns: 56px 1fr; gap: 14px; }
  .tl-list .media, .tl-list .tl-ic { width: 56px; height: 56px; }
  .tl-list .tl-go { display: none; }
  .tl-list .tl-lt { font-size: 22px; }
  .tl-pill { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-card.tl-out, .tl-tray, .tl-pill, .tl-list a { transition: none; }
}

/* Black and white theme: outlines replace the old grey panel fills */
.tl-shared { border: 1px solid var(--line); }
.tl-list .tl-ic { border: 1px solid var(--line); }
