/*
Theme Name: Hello Elementor Child
Theme URI: https://tecsolutions.luminoscloud.com
Description: Child theme for TecSolutions. Hosts the ACF "Product Details" field group (acf-json) and the product import tooling. Keeps customizations out of the parent theme so they survive updates.
Author: Luminos Agency
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* ===== Single product listing (single-product.php) =====
   Site-matched: Inter, orange #F97415 accent, navy #141D2E, #DADCE2 borders.
   Full-width color bands + premium navy hero. Motion: settle easing,
   brand-tinted shadows, scroll reveals, interactive gallery. */
.ts-product {
  --ts-accent: #F97415;
  --ts-accent-dark: #CA5A09;
  --ts-accent-soft: rgba(249,116,21,.12);
  --ts-navy: #141D2E;
  --ts-ink: #2b3340;
  --ts-muted: #6A7181;
  --ts-border: #DADCE2;
  --ts-light: #F6F7F9;
  --ts-ease: cubic-bezier(.16,1,.3,1);
  width: 100%; overflow-x: clip;
  font-family: "Inter","Roboto",-apple-system,BlinkMacSystemFont,sans-serif;
  color: var(--ts-ink); font-size: 16px; line-height: 1.65;
}

/* ---- Full-width bands ---- */
.ts-band { position: relative; left: 50%; transform: translateX(-50%); width: 100vw; padding: 76px 0; }
.ts-band--white { background: #fff; }
.ts-band--light { background: var(--ts-light); }
.ts-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.ts-product h2 {
  display: flex; align-items: center; gap: 11px;
  font-size: 1.65rem; font-weight: 700; color: var(--ts-navy);
  margin: 0 0 26px; padding-bottom: 13px; position: relative;
}
.ts-product h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 54px; height: 3px; background: var(--ts-accent); border-radius: 2px; }
.ts-ic { width: 23px; height: 23px; color: var(--ts-accent); flex: 0 0 auto; }
.ts-product h3 { font-size: 1.08rem; font-weight: 600; margin: 28px 0 12px; color: var(--ts-navy); }

/* ---- Scroll reveal ---- */
.ts-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ts-ease), transform .7s var(--ts-ease); }
.ts-reveal.is-visible { opacity: 1; transform: none; }
.ts-features .ts-feature,
.ts-related .ts-card,
.ts-specs tbody tr,
.ts-highlights li { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s var(--ts-ease); }
.ts-reveal.is-visible .ts-feature,
.ts-reveal.is-visible .ts-card,
.ts-reveal.is-visible .ts-specs tbody tr,
.ts-reveal.is-visible .ts-highlights li { opacity: 1; transform: none; }
.ts-reveal.is-visible :is(.ts-feature,.ts-card,.ts-specs tbody tr,.ts-highlights li):nth-child(2) { transition-delay: .06s; }
.ts-reveal.is-visible :is(.ts-feature,.ts-card,.ts-specs tbody tr,.ts-highlights li):nth-child(3) { transition-delay: .12s; }
.ts-reveal.is-visible :is(.ts-feature,.ts-card,.ts-specs tbody tr,.ts-highlights li):nth-child(4) { transition-delay: .18s; }
.ts-reveal.is-visible :is(.ts-feature,.ts-card,.ts-specs tbody tr,.ts-highlights li):nth-child(n+5) { transition-delay: .24s; }

/* ===== HERO BAND (navy + warm glow) ===== */
.ts-hero-band {
  background:
    radial-gradient(115% 130% at 88% -10%, rgba(249,116,21,.22) 0%, rgba(249,116,21,0) 46%),
    linear-gradient(158deg, #1c2945 0%, #141d2e 56%, #0f1521 100%);
  color: #fff; padding: 88px 0 92px;
}
.ts-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.ts-hero__media { order: 1; }
.ts-hero__info { order: 2; }

.ts-hero .ts-eyebrow { margin: 0 0 14px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.ts-hero .ts-eyebrow .ts-brand { color: var(--ts-accent); }
.ts-hero .ts-eyebrow .ts-cat { color: #9fb0c9; margin-left: 12px; }
.ts-hero .ts-eyebrow a { color: inherit; text-decoration: none; }
.ts-hero .ts-title { font-size: 3.1rem; font-weight: 800; line-height: 1.06; margin: 0; color: #fff; letter-spacing: -.02em; }
.ts-hero .ts-tagline { font-size: 1.28rem; color: #b9c3d4; margin: 14px 0 0; font-weight: 500; }

.ts-hero .ts-highlights { list-style: none; margin: 26px 0 30px; padding: 0; }
.ts-hero .ts-highlights li { position: relative; padding: 11px 0 11px 38px; border-bottom: 1px solid rgba(255,255,255,.12); font-weight: 500; color: #e8edf4; transition: padding-left .2s; }
.ts-hero .ts-highlights li::before { content: "✓"; position: absolute; left: 0; top: 9px; width: 24px; height: 24px; display: grid; place-items: center; font-size: .8rem; font-weight: 800; color: var(--ts-accent); background: rgba(249,116,21,.18); border-radius: 50%; transition: transform .2s var(--ts-ease); }
.ts-hero .ts-highlights li:hover { padding-left: 42px; }
.ts-hero .ts-highlights li:hover::before { transform: scale(1.12); }

.ts-hero__cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ts-hero .ts-sku { font-size: .85rem; color: #8896ab; margin: 18px 0 0; }

/* ---- Gallery (bright card on navy) ---- */
.ts-gallery__main { margin: 0; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 34px 70px -28px rgba(0,0,0,.6); }
.ts-gallery__main img { width: 100%; height: auto; display: block; transition: opacity .25s ease, transform .5s var(--ts-ease); }
.ts-gallery__main:hover img { transform: scale(1.045); }
.ts-gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 14px; }
.ts-gallery__thumb { padding: 0; cursor: pointer; background: #fff; border: 2px solid rgba(255,255,255,.22); border-radius: 10px; overflow: hidden; aspect-ratio: 1/1; transition: border-color .2s, transform .2s var(--ts-ease), box-shadow .2s; }
.ts-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ts-gallery__thumb:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.5); }
.ts-gallery__thumb.is-active { border-color: var(--ts-accent); box-shadow: 0 0 0 3px rgba(249,116,21,.35); }

/* ---- Buttons ---- */
.ts-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 8px; font-weight: 600; font-size: 16px; text-decoration: none; transition: background .2s, transform .2s var(--ts-ease), box-shadow .2s, border-color .2s; }
.ts-btn svg { width: 18px; height: 18px; transition: transform .25s var(--ts-ease); }
.ts-btn--lg { padding: 18px 36px; font-size: 17px; }
.ts-btn--primary { background: var(--ts-accent); color: #fff; box-shadow: 0 10px 24px -8px rgba(249,116,21,.7); }
.ts-btn--primary:hover { background: var(--ts-accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(249,116,21,.85); }
.ts-btn--primary:hover svg { transform: translateX(4px); }
.ts-btn--ghost { background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.38); }
.ts-btn--ghost:hover { background: rgba(255,255,255,.16); border-color: #fff; transform: translateY(-2px); }
.ts-btn--ghost:hover svg { transform: translateY(3px); }
/* All product buttons sit on the navy bands — keep their text white in every
   state so a theme/Elementor a:hover color can't turn it dark-on-dark. */
.ts-product .ts-btn,
.ts-product .ts-btn:hover,
.ts-product .ts-btn:focus,
.ts-product .ts-btn:active,
.ts-product .ts-btn:visited { color: #fff !important; }

/* ---- Body sections ---- */
.ts-overview { font-size: 1.1rem; color: var(--ts-ink); max-width: 76ch; }
.ts-overview p { margin: 0 0 1.1em; }

.ts-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ts-feature { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--ts-border); border-radius: 12px; padding: 18px 20px; transition: transform .25s var(--ts-ease), box-shadow .25s, border-color .25s; }
.ts-band--white .ts-feature { background: var(--ts-light); }
.ts-feature::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--ts-accent); transform: scaleY(0); transform-origin: top; transition: transform .3s var(--ts-ease); }
.ts-feature:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -16px rgba(249,116,21,.4); border-color: rgba(249,116,21,.45); background: #fff; }
.ts-feature:hover::before { transform: scaleY(1); }
.ts-feature__title { display: block; font-weight: 700; color: var(--ts-navy); margin-bottom: 4px; }
.ts-feature__detail { display: block; color: var(--ts-muted); font-size: .95rem; }

.ts-specs { width: 100%; border-collapse: collapse; margin-bottom: 22px; border: 1px solid var(--ts-border); border-radius: 12px; overflow: hidden; background: #fff; }
.ts-specs th, .ts-specs td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--ts-border); vertical-align: top; transition: background .15s; }
.ts-specs tbody tr:last-child th, .ts-specs tbody tr:last-child td { border-bottom: 0; }
.ts-specs th { width: 32%; background: var(--ts-light); font-weight: 600; color: var(--ts-navy); }
.ts-specs tbody tr:hover th { background: var(--ts-accent-soft); }
.ts-specs tbody tr:hover td { background: #fffaf4; }
.ts-spec-heading { color: var(--ts-navy); }

.ts-box { columns: 2; column-gap: 40px; margin: 0; padding-left: 22px; }
.ts-box li { margin-bottom: 9px; }

.ts-video { width: 100%; max-width: 780px; border-radius: 14px; box-shadow: 0 22px 46px -22px rgba(20,29,46,.45); }

.ts-related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ts-card { display: block; text-decoration: none; color: var(--ts-navy); background: #fff; border: 1px solid var(--ts-border); border-radius: 12px; padding: 14px; transition: box-shadow .25s, transform .25s var(--ts-ease), border-color .25s; }
.ts-card:hover { box-shadow: 0 16px 32px -12px rgba(20,29,46,.2); transform: translateY(-4px); border-color: rgba(249,116,21,.45); }
.ts-card__img { display: block; aspect-ratio: 1/1; overflow: hidden; border-radius: 8px; margin-bottom: 10px; background: var(--ts-light); }
.ts-card__img img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .35s var(--ts-ease); }
.ts-card__img--ph { display: grid; place-items: center; background: linear-gradient(135deg, #eef1f5, #e1e6ee); }
.ts-card__img--ph .ts-ic { width: 42px; height: 42px; color: #a7b0c2; }
.ts-card:hover .ts-card__img img { transform: scale(1.05); }
.ts-card__title { display: block; font-size: .92rem; font-weight: 600; }
.ts-card__arrow { display: inline-block; margin-top: 6px; font-size: .82rem; font-weight: 600; color: var(--ts-accent); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s var(--ts-ease); }
.ts-card:hover .ts-card__arrow { opacity: 1; transform: none; }

/* ---- Closing CTA band ---- */
.ts-cta-band {
  background:
    radial-gradient(120% 150% at 10% 0%, rgba(249,116,21,.20) 0%, rgba(249,116,21,0) 46%),
    linear-gradient(120deg, #141d2e 0%, #1c2945 100%);
  color: #fff; padding: 66px 0;
}
.ts-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.ts-cta__text { flex: 1 1 360px; }
.ts-cta__title { font-size: 1.9rem; font-weight: 800; color: #fff; margin: 0; letter-spacing: -.01em; }
.ts-cta__sub { color: #b9c3d4; margin: 9px 0 0; font-size: 1.06rem; }

@media (max-width: 880px) {
  .ts-band { padding: 52px 0; }
  .ts-cta { flex-direction: column; align-items: flex-start; }
  .ts-hero-band { padding: 60px 0 64px; }
  .ts-hero { grid-template-columns: 1fr; gap: 32px; }
  .ts-hero__media { order: 1; }
  .ts-hero__info { order: 2; }
  .ts-hero .ts-title { font-size: 2.1rem; }
  .ts-features { grid-template-columns: 1fr; }
  .ts-related { grid-template-columns: repeat(2, 1fr); }
  .ts-box { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ts-product *, .ts-reveal { transition: none !important; animation: none !important; }
  .ts-reveal, .ts-feature, .ts-card, .ts-specs tbody tr, .ts-highlights li { opacity: 1 !important; transform: none !important; }
}

/* ===== Product archives — category.php / taxonomy-brand.php / archive-product.php =====
   Wrapper carries both .ts-product (tokens, bands, buttons, .ts-card, .ts-cta-band,
   reveal) and .ts-archive (header band + filter toolbar + catalog grid). */

/* ---- Header band (compact navy hero) ---- */
.ts-archive-hero {
  background:
    radial-gradient(110% 150% at 86% -25%, rgba(249,116,21,.20) 0%, rgba(249,116,21,0) 50%),
    linear-gradient(158deg, #1c2945 0%, #141d2e 58%, #0f1521 100%);
  color: #fff; padding: 62px 0 58px; text-align: center;
}
.ts-archive .ts-eyebrow { margin: 0 0 14px; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--ts-accent); }
.ts-archive .ts-eyebrow a { color: #9fb0c9; text-decoration: none; transition: color .2s; }
.ts-archive .ts-eyebrow a:hover { color: #fff; }
.ts-archive .ts-eyebrow__sep { color: #5f6c83; margin: 0 8px; }
.ts-archive .ts-ahead-title { font-size: 2.75rem; font-weight: 800; line-height: 1.07; letter-spacing: -.02em; margin: 0; color: #fff; }
.ts-archive .ts-ahead-desc { color: #b9c3d4; font-size: 1.12rem; line-height: 1.6; margin: 16px auto 0; max-width: 64ch; }
.ts-archive .ts-ahead-count { display: inline-block; margin-top: 20px; font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: #d2dae6; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); padding: 6px 15px; border-radius: 999px; }

/* ---- Filter toolbar ---- */
.ts-toolbar { display: flex; flex-direction: column; gap: 13px; margin-bottom: 36px; }
.ts-chiprow { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.ts-chiprow__label { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ts-muted); margin-right: 5px; }
.ts-chip { cursor: pointer; display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: .9rem; font-weight: 600; color: var(--ts-navy); background: #fff; border: 1.5px solid var(--ts-border); border-radius: 999px; padding: 8px 16px; transition: background .18s, border-color .18s, color .18s, transform .18s var(--ts-ease), box-shadow .18s; }
.ts-chip:hover { border-color: rgba(249,116,21,.5); transform: translateY(-1px); }
.ts-chip.is-active { background: var(--ts-accent); border-color: var(--ts-accent); color: #fff; box-shadow: 0 9px 20px -9px rgba(249,116,21,.75); }
.ts-chip__n { font-size: .72rem; font-weight: 700; line-height: 1; padding: 3px 7px; border-radius: 999px; background: var(--ts-light); color: var(--ts-muted); }
.ts-chip.is-active .ts-chip__n { background: rgba(255,255,255,.26); color: #fff; }

/* ---- Catalog grid ---- */
.ts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.ts-grid .ts-card--lg { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.ts-card--lg .ts-card__img { margin: 0; border-radius: 0; aspect-ratio: 4/3; background: #fff; padding: 18px; display: block; }
.ts-card--lg .ts-card__img.ts-card__img--ph { display: grid; place-items: center; background: linear-gradient(135deg, #eef1f5, #e1e6ee); }
.ts-card--lg .ts-card__img.ts-card__img--ph .ts-ic { width: 44px; height: 44px; color: #a7b0c2; }
.ts-card--lg .ts-card__img img { width: 100%; height: 100%; object-fit: contain; }
.ts-card--lg .ts-card__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 16px 18px 18px; border-top: 1px solid var(--ts-border); }
.ts-card--lg .ts-card__eyebrow { font-size: .71rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ts-accent); margin-bottom: 7px; }
.ts-card--lg .ts-card__title { font-size: 1.04rem; font-weight: 700; color: var(--ts-navy); line-height: 1.26; }
.ts-card--lg .ts-card__desc { font-size: .9rem; color: var(--ts-muted); line-height: 1.5; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ts-card--lg .ts-card__foot { margin-top: auto; padding-top: 15px; }
.ts-card--lg .ts-card__view { display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; font-weight: 700; color: var(--ts-accent); }
.ts-card--lg .ts-card__view svg { width: 15px; height: 15px; transition: transform .25s var(--ts-ease); }
.ts-card--lg:hover .ts-card__view svg { transform: translateX(4px); }
.ts-card.is-hidden { display: none !important; }

/* Entrance — CSS-only so the catalog always renders without JS, and degrades
   to the final (visible) state wherever animations are disabled. */
@keyframes tsArchIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.ts-grid .ts-card--lg { animation: tsArchIn .55s var(--ts-ease) both; }
.ts-grid .ts-card--lg:nth-child(2) { animation-delay: .04s; }
.ts-grid .ts-card--lg:nth-child(3) { animation-delay: .08s; }
.ts-grid .ts-card--lg:nth-child(4) { animation-delay: .12s; }
.ts-grid .ts-card--lg:nth-child(5) { animation-delay: .16s; }
.ts-grid .ts-card--lg:nth-child(6) { animation-delay: .20s; }
.ts-grid .ts-card--lg:nth-child(7) { animation-delay: .24s; }
.ts-grid .ts-card--lg:nth-child(n+8) { animation-delay: .28s; }
.ts-archive .ts-cta { animation: tsArchIn .6s var(--ts-ease) both .12s; }

/* ---- No-results / empty states ---- */
.ts-noresults { text-align: center; padding: 26px 0 6px; color: var(--ts-muted); }
.ts-noresults .ts-ic { width: 34px; height: 34px; color: #b3bccb; }
.ts-noresults p { margin: 10px 0 16px; font-weight: 500; }
.ts-empty { text-align: center; padding: 30px 0; }
.ts-empty__icon { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--ts-accent-soft); margin-bottom: 18px; }
.ts-empty__icon .ts-ic { width: 36px; height: 36px; color: var(--ts-accent); }
.ts-empty .ts-empty__title { display: block; font-size: 1.5rem; font-weight: 800; color: var(--ts-navy); margin: 0; padding: 0; }
.ts-empty .ts-empty__title::after { display: none; } /* cancel the single-product h2 underline bar (beats .ts-product h2) */
.ts-empty__sub { color: var(--ts-muted); font-size: 1.05rem; margin: 10px auto 24px; max-width: 52ch; }
.ts-empty__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Light-background ghost button (archives sit on white, not navy) */
.ts-btn--ghost-ink { background: #fff; border: 1.5px solid var(--ts-border); color: var(--ts-navy); cursor: pointer; }
.ts-btn--ghost-ink:hover { border-color: rgba(249,116,21,.55); color: var(--ts-navy); transform: translateY(-2px); box-shadow: 0 12px 26px -14px rgba(20,29,46,.35); }

@media (max-width: 1024px) { .ts-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .ts-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .ts-archive-hero { padding: 48px 0 44px; }
  .ts-archive .ts-ahead-title { font-size: 2rem; }
  .ts-archive .ts-ahead-desc { font-size: 1rem; }
}
@media (max-width: 430px) { .ts-grid { grid-template-columns: 1fr; } }
