/* =========================================================================
   Taneelo components · v1. Requires tokens.css. All classes are prefixed tn-
   so they never collide with WooCommerce or WordPress core styles.
   ========================================================================= */

/* ---------- Base ---------- */
.tn-base, .tn-base *, .tn-base *::before, .tn-base *::after { box-sizing: border-box; }
.tn-base { font-family: var(--tn-font-body); font-size: var(--tn-text-body); line-height: var(--tn-leading-body); color: var(--tn-ink); background: var(--tn-white); -webkit-font-smoothing: antialiased; }
:where(.tn-base) img { max-width: 100%; height: auto; display: block; }   /* :where() = zero specificity, so components always win */
:where(.tn-base) a { color: inherit; }
:where(.tn-base) :focus-visible { outline: none; box-shadow: var(--tn-focus); border-radius: var(--tn-r-sm); }
.tn-wrap { max-width: var(--tn-wrap); margin-inline: auto; padding-inline: var(--tn-gutter); }
.tn-section { padding-block: var(--tn-section); }
.tn-section--mist { background: var(--tn-mist); }
.tn-icon { width: 24px; height: 24px; flex: none; color: currentColor; }
.tn-icon--sm { width: 18px; height: 18px; }
.tn-icon--lg { width: 32px; height: 32px; }
.tn-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
/* Display + section titles: Unbounded, lowercase, end on a teal dot (one dot per headline). */
.tn-display, .tn-h1, .tn-h2 { font-family: var(--tn-font-display); font-weight: 700; text-transform: lowercase; letter-spacing: var(--tn-track-display); line-height: var(--tn-leading-tight); margin: 0; }
.tn-display { font-size: var(--tn-text-display); }
.tn-h1 { font-size: var(--tn-text-h1); }
.tn-h2 { font-size: var(--tn-text-h2); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; }
.tn-dot { display: inline-block; width: .24em; height: .24em; border-radius: var(--tn-dot); background: var(--tn-teal); margin-left: .05em; vertical-align: baseline; }
.tn-h3 { font-family: var(--tn-font-body); font-weight: 600; font-size: var(--tn-text-h3); letter-spacing: -.01em; line-height: 1.3; margin: 0; }
.tn-lead { font-size: var(--tn-text-lead); line-height: 1.55; color: var(--tn-ink-80); }
.tn-muted { color: var(--tn-ink-60); }
.tn-label { font-family: var(--tn-font-mono); font-size: var(--tn-text-caption); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--tn-ink-60); }
.tn-link { color: var(--tn-teal-deep); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--tn-teal); }
.tn-link:hover { text-decoration-color: var(--tn-teal-deep); }

/* ---------- Buttons ---------- */
.tn-btn { --b-bg: var(--tn-ink); --b-fg: var(--tn-white); --b-bd: var(--tn-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  font: 600 15px/1 var(--tn-font-body); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  color: var(--b-fg); background: var(--b-bg); border: 2px solid var(--b-bd); border-radius: var(--tn-r-pill); cursor: pointer;
  transition: transform var(--tn-dur-1) var(--tn-ease), background var(--tn-dur-2) var(--tn-ease), border-color var(--tn-dur-2) var(--tn-ease); }
.tn-btn:hover { transform: translateY(-1px); }
.tn-btn:active { transform: translateY(0); }
.tn-btn[disabled], .tn-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.tn-btn--dot::before { content: ''; width: 8px; height: 8px; border-radius: var(--tn-dot); background: var(--tn-teal); }
.tn-btn--teal { --b-bg: var(--tn-teal); --b-fg: var(--tn-ink); --b-bd: var(--tn-teal); }
.tn-btn--outline { --b-bg: transparent; --b-fg: var(--tn-ink); --b-bd: var(--tn-ink); }
.tn-btn--white { --b-bg: var(--tn-white); --b-fg: var(--tn-ink); --b-bd: var(--tn-white); }
.tn-btn--whatsapp { --b-bg: var(--tn-white); --b-fg: var(--tn-ink); --b-bd: var(--tn-line); }
.tn-btn--whatsapp::before { content: ''; width: 9px; height: 9px; border-radius: var(--tn-dot); background: #25D366; }
.tn-btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.tn-btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.tn-btn--block { width: 100%; }
/* Round action button: the "dot" add-to-cart */
.tn-dotbtn { width: 48px; height: 48px; border-radius: var(--tn-dot); border: 0; display: grid; place-items: center; background: var(--tn-ink); color: var(--tn-white); cursor: pointer;
  transition: transform var(--tn-dur-2) var(--tn-ease-pop), background var(--tn-dur-2) var(--tn-ease); }
.tn-dotbtn:hover { transform: scale(1.08); background: var(--tn-teal); color: var(--tn-ink); }
.tn-dotbtn .tn-icon { --tn-icon-dot: currentColor; }

/* ---------- Chips & badges ---------- */
.tn-chip { --c: var(--tn-sol-connected); display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--tn-r-pill);
  background: var(--c); color: var(--tn-ink); font: 600 12px/1.2 var(--tn-font-body); text-decoration: none; white-space: nowrap; }
.tn-chip--connected { --c: var(--tn-sol-connected); } .tn-chip--power { --c: var(--tn-sol-power); } .tn-chip--desk { --c: var(--tn-sol-desk); }
.tn-chip--kitchen { --c: var(--tn-sol-kitchen); } .tn-chip--watch { --c: var(--tn-sol-watch); }
.tn-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--tn-r-pill); font: 500 11px/1.3 var(--tn-font-mono); letter-spacing: .06em; text-transform: uppercase; }
.tn-badge::before { content: ''; width: 6px; height: 6px; border-radius: var(--tn-dot); background: currentColor; }
.tn-badge--ok { background: var(--tn-teal-pale); color: var(--tn-teal-deep); }
.tn-badge--sale { background: #FFE6E1; color: var(--tn-signal-text); }  /* genuine sales only */
.tn-badge--out { background: var(--tn-mist); color: var(--tn-ink-60); }
.tn-badge--new { background: var(--tn-ink); color: var(--tn-white); }
.tn-badge--new::before { background: var(--tn-teal); }

/* ---------- The dot stage (signature) ---------- */
/* Product sits on a teal dot. Dark products blend straight on; light products get a white inner disc (--light). */
.tn-stage { position: relative; aspect-ratio: 1; border-radius: var(--tn-dot); background: var(--tn-teal); display: grid; place-items: center; isolation: isolate; }
.tn-stage > img { width: 66%; mix-blend-mode: multiply; object-fit: contain; aspect-ratio: 1; }
.tn-stage--light::before { content: ''; position: absolute; inset: 14%; border-radius: var(--tn-dot); background: var(--tn-white); z-index: -1; }
.tn-stage--light > img { mix-blend-mode: normal; width: 48%; } /* fits inside the inner disc (72% ÷ √2) */
.tn-stage--pale { background: var(--tn-teal-pale); }
.tn-stage--pale > img { mix-blend-mode: multiply; }
/* Price dot: ink circle with a mono label */
.tn-pricedot { position: absolute; width: 30%; aspect-ratio: 1; border-radius: var(--tn-dot); background: var(--tn-ink); color: var(--tn-white);
  display: grid; place-content: center; text-align: center; font: 700 clamp(14px, 2vw, 24px)/1 var(--tn-font-display); letter-spacing: -.03em; }
.tn-pricedot small { display: block; font: 500 10px/1 var(--tn-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tn-teal); margin-bottom: 6px; }
.tn-pricedot--tr { top: 3%; right: 3%; } .tn-pricedot--bl { bottom: 3%; left: 3%; }

/* ---------- Price ---------- */
.tn-price { white-space: nowrap; font: 600 22px/1 var(--tn-font-display); letter-spacing: -.035em; color: var(--tn-ink); }
.tn-price small { font: 500 12px var(--tn-font-body); letter-spacing: 0; color: var(--tn-ink-60); margin-right: 4px; }
.tn-price del { font-size: .62em; color: var(--tn-ink-60); margin-left: 6px; text-decoration-thickness: 1.5px; } /* genuine sales only */
.tn-price--lg { font-size: clamp(30px, 3.4vw, 42px); }

/* ---------- Product card ---------- */
.tn-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 16px; border-radius: var(--tn-r-lg); background: var(--tn-mist); color: var(--tn-ink); text-decoration: none;
  transition: background var(--tn-dur-2) var(--tn-ease), box-shadow var(--tn-dur-2) var(--tn-ease); }
.tn-card:hover { background: var(--tn-white); box-shadow: var(--tn-shadow-2); }
.tn-card__media { position: relative; border-radius: calc(var(--tn-r-lg) - 6px); background: var(--tn-white); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.tn-card__media::before { content: ''; position: absolute; width: 74%; aspect-ratio: 1; border-radius: var(--tn-dot); background: var(--tn-teal-pale); transition: transform var(--tn-dur-3) var(--tn-ease), background var(--tn-dur-3) var(--tn-ease); }
.tn-card:hover .tn-card__media::before { transform: scale(1.08); background: var(--tn-teal); }
.tn-card__media img { position: relative; width: 70%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; transition: transform var(--tn-dur-3) var(--tn-ease); }
.tn-card:hover .tn-card__media img { transform: scale(1.04); }
.tn-card__flags { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; gap: 6px; z-index: 1; }
.tn-card__body { display: flex; flex-direction: column; gap: 6px; padding: 0 6px; flex: 1; }
.tn-card__brand { font: 500 11px var(--tn-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tn-teal-deep); }
.tn-card__title { font: 500 15px/1.38 var(--tn-font-body); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.76em; }
.tn-card__title a { color: inherit; text-decoration: none; }
.tn-card__title a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable */
.tn-card__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; margin-top: auto; padding-top: 4px; }
.tn-card__row .tn-dotbtn, .tn-card__row .tn-btn { position: relative; z-index: 2; }
.tn-card__meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--tn-ink-60); }
.tn-card__meta .tn-icon { width: 16px; height: 16px; }
.tn-card__options { font-size: 13px; color: var(--tn-ink-80); }
.tn-card--out { opacity: .78; }
.tn-card--out .tn-card__media img { filter: grayscale(1); }

/* ---------- Chat bubbles (help moments) ---------- */
.tn-bubble { max-width: 88%; padding: 13px 16px; border-radius: 22px; font: 500 15px/1.45 var(--tn-font-body); }
.tn-bubble small { display: block; margin-top: 5px; font: 500 11px var(--tn-font-mono); opacity: .65; }
.tn-bubble--in { background: var(--tn-white); border: 1px solid var(--tn-line); border-bottom-left-radius: 6px; justify-self: start; }
.tn-bubble--out { background: var(--tn-teal); border-bottom-right-radius: 6px; justify-self: end; }
.tn-bubble--ink { background: var(--tn-ink); color: var(--tn-white); border-bottom-right-radius: 6px; justify-self: end; }
.tn-help { display: grid; gap: 12px; padding: 20px; border-radius: var(--tn-r-lg); background: var(--tn-teal-pale); }
.tn-help__title { font: 600 18px/1.25 var(--tn-font-body); margin: 0; }

/* ---------- Trust strip ---------- */
.tn-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-block: 1px solid var(--tn-line); }
.tn-trust__item { display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px; font-size: 14px; color: var(--tn-ink-60); }
.tn-trust__item + .tn-trust__item { border-left: 1px solid var(--tn-line); }
.tn-trust__item b { display: block; color: var(--tn-ink); font-size: 15px; font-weight: 600; }

/* ---------- Solution tile (B · Colour Code) ---------- */
.tn-tile { --c: var(--tn-sol-connected); position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 260px; padding: 22px;
  border-radius: var(--tn-r-xl); background: var(--c); color: var(--tn-ink); text-decoration: none; overflow: hidden; isolation: isolate; }
.tn-tile__title { font: 600 clamp(18px, 1.5vw, 24px)/1.02 var(--tn-font-display); letter-spacing: -.04em; text-transform: lowercase; margin: 0; }
.tn-tile__from { font: 500 12px var(--tn-font-mono); letter-spacing: .06em; text-transform: uppercase; }
.tn-tile__disc { align-self: flex-end; width: 62%; aspect-ratio: 1; border-radius: var(--tn-dot); background: var(--tn-white); display: grid; place-items: center; box-shadow: var(--tn-shadow-1);
  transition: transform var(--tn-dur-3) var(--tn-ease-pop); }
.tn-tile__disc img { width: 72%; aspect-ratio: 1; object-fit: contain; }
.tn-tile:hover .tn-tile__disc { transform: scale(1.05) rotate(-4deg); }
.tn-tile--connected { --c: var(--tn-sol-connected); } .tn-tile--power { --c: var(--tn-sol-power); } .tn-tile--desk { --c: var(--tn-sol-desk); }
.tn-tile--kitchen { --c: var(--tn-sol-kitchen); } .tn-tile--watch { --c: var(--tn-sol-watch); }

/* ---------- Banner (campaigns, CTAs with photography) ---------- */
.tn-banner { position: relative; display: grid; align-content: end; gap: 14px; min-height: 340px; padding: clamp(24px, 4vw, 48px); border-radius: var(--tn-r-xl); overflow: hidden; color: var(--tn-white); isolation: isolate; background: var(--tn-ink); }
.tn-banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tn-banner::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,4,35,.2) 0%, rgba(0,4,35,.62) 40%, rgba(0,4,35,.9) 100%); }
.tn-banner .tn-h1, .tn-banner .tn-h2 { color: var(--tn-white); }
.tn-banner--solution { color: var(--tn-ink); background: var(--c, var(--tn-sol-power)); }
.tn-banner--solution::before { display: none; }
.tn-banner--solution .tn-h1, .tn-banner--solution .tn-h2 { color: var(--tn-ink); }

/* ---------- Forms ---------- */
.tn-field { display: grid; gap: 6px; }
.tn-field label { font-size: 14px; font-weight: 600; }
.tn-field label small { font-weight: 400; color: var(--tn-ink-60); }
.tn-input, .tn-select, .tn-textarea { width: 100%; min-height: 48px; padding: 12px 14px; font: 400 16px var(--tn-font-body); color: var(--tn-ink); background: var(--tn-white);
  border: 1.5px solid var(--tn-line); border-radius: var(--tn-r-sm); transition: border-color var(--tn-dur-2), box-shadow var(--tn-dur-2); }
.tn-input:focus, .tn-select:focus, .tn-textarea:focus { outline: none; border-color: var(--tn-teal-deep); box-shadow: 0 0 0 4px var(--tn-teal-pale); }
.tn-field--error .tn-input { border-color: var(--tn-signal); }
.tn-field__hint { font-size: 13px; color: var(--tn-ink-60); }
.tn-field--error .tn-field__hint { color: var(--tn-signal-text); }
.tn-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.tn-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--tn-ink); flex: none; }
.tn-qty { display: inline-flex; align-items: center; height: 48px; border: 1.5px solid var(--tn-line); border-radius: var(--tn-r-pill); background: var(--tn-white); }
.tn-qty button { width: 44px; height: 100%; border: 0; background: none; color: var(--tn-ink); cursor: pointer; display: grid; place-items: center; }
.tn-qty input { width: 36px; border: 0; text-align: center; font: 600 16px var(--tn-font-body); background: none; color: var(--tn-ink); }
/* Swatch picker for variable products (colour / pack size) */
.tn-options { display: flex; flex-wrap: wrap; gap: 8px; }
.tn-option { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--tn-line); border-radius: var(--tn-r-pill); background: var(--tn-white);
  font: 500 14px var(--tn-font-body); color: var(--tn-ink); cursor: pointer; }
.tn-option i { width: 16px; height: 16px; border-radius: var(--tn-dot); box-shadow: inset 0 0 0 1px rgba(0,4,35,.15); }
.tn-option[aria-pressed="true"] { border-color: var(--tn-ink); box-shadow: inset 0 0 0 1px var(--tn-ink); }
.tn-option[aria-disabled="true"] { color: var(--tn-ink-60); text-decoration: line-through; cursor: not-allowed; }

/* ---------- Notices ---------- */
.tn-notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--tn-r-md); font-size: 14px; background: var(--tn-mist); }
.tn-notice b { font-weight: 600; }
.tn-notice--info { background: var(--tn-teal-pale); }
.tn-notice--error { background: #FFF0ED; color: var(--tn-signal-text); }
.tn-notice--error .tn-icon { --tn-icon-dot: var(--tn-signal); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .tn-trust { grid-template-columns: 1fr 1fr; }
  .tn-trust__item:nth-child(3) { border-left: 0; }
  .tn-trust__item:nth-child(n+3) { border-top: 1px solid var(--tn-line); }
}
@media (max-width: 520px) {
  .tn-trust { grid-template-columns: 1fr; }
  .tn-trust__item { border-left: 0 !important; }
  .tn-trust__item + .tn-trust__item { border-top: 1px solid var(--tn-line); }
  .tn-tile { min-height: 220px; }
}
