/*
Theme Name: Genuine Remotes
Description: Custom storefront for genuineremotes.co.nz - genuine OEM remote controls.
Version: 1.0
Author: TLM Tech Limited
*/
:root{
  --ink:#0f172a; --panel:#1e293b; --accent:#2563eb; --accent-2:#38bdf8;
  --bg:#f8fafc; --card:#ffffff; --text:#0f172a; --muted:#64748b; --border:#e2e8f0;
  --ok:#16a34a; --radius:12px;
}
*{box-sizing:border-box}
html{font-size:16px}
body{margin:0;font-family:'Nunito Sans',system-ui,sans-serif;background:var(--bg);color:var(--text);line-height:1.55}
h1,h2,h3,h4,.gr-logo{font-family:'Rubik',system-ui,sans-serif}
img{max-width:100%;height:auto}
a{color:var(--accent)}
button,.button,input[type=submit]{cursor:pointer}
:focus-visible{outline:3px solid var(--accent-2);outline-offset:2px}
@media (prefers-reduced-motion: reduce){*{animation:none!important;transition:none!important}}

/* Header */
.gr-header{background:var(--ink);color:#fff;position:sticky;top:0;z-index:50;box-shadow:0 2px 10px rgba(15,23,42,.35)}
.gr-header-in{max-width:1200px;margin:0 auto;display:flex;align-items:center;gap:24px;padding:10px 20px}
.gr-logo{font-weight:700;font-size:1.3rem;letter-spacing:.04em;color:#fff;text-decoration:none;white-space:nowrap}
.gr-logo span{color:var(--accent-2)}
.gr-nav{display:flex;gap:20px;margin-left:auto;align-items:center}
.gr-nav a{color:#e2e8f0;text-decoration:none;font-weight:600;padding:10px 4px;min-height:44px;display:inline-flex;align-items:center;transition:color .2s}
.gr-nav a:hover{color:var(--accent-2)}
.gr-cart{position:relative;display:inline-flex;align-items:center;gap:6px}
.gr-cart .count{background:var(--accent);border-radius:999px;font-size:.75rem;padding:2px 8px;font-weight:700}

/* Hero */
.gr-hero{position:relative;background:#0f172a;color:#fff;padding:64px 20px 72px;text-align:center;overflow:hidden}
.gr-hero::before{content:'';position:absolute;inset:0;background:url('assets/img/hero.jpg') center 62%/cover no-repeat;opacity:.9;z-index:0}
.gr-hero::after{content:'';position:absolute;inset:0;background:radial-gradient(ellipse 70% 62% at 50% 46%,rgba(15,23,42,.88) 0%,rgba(15,23,42,.72) 45%,rgba(15,23,42,.22) 78%,rgba(15,23,42,0) 100%),linear-gradient(180deg,rgba(15,23,42,.6) 0%,rgba(15,23,42,.3) 45%,rgba(15,23,42,.8) 100%);z-index:1}
.gr-hero > *{position:relative;z-index:2}
.gr-hero h1{font-size:clamp(1.8rem,4.5vw,3rem);margin:0 0 12px;font-weight:700}
.gr-hero p.sub{color:#cbd5e1;max-width:640px;margin:0 auto 32px;font-size:1.1rem}
.gr-search{max-width:640px;margin:0 auto;position:relative}
.gr-search form{display:flex;background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:0 8px 30px rgba(2,6,23,.4)}
.gr-search input[type=search]{flex:1;border:0;padding:16px 20px;font-size:1.05rem;min-height:56px;font-family:inherit}
.gr-search input[type=search]:focus{outline:none}
.gr-search button{border:0;background:var(--accent);color:#fff;padding:0 28px;font-size:1rem;font-weight:700;min-height:56px;transition:background .2s}
.gr-search button:hover{background:#1d4ed8}
.gr-suggest{position:absolute;left:0;right:0;top:calc(100% + 6px);background:#fff;border-radius:var(--radius);box-shadow:0 12px 40px rgba(2,6,23,.45);text-align:left;overflow:hidden;display:none;z-index:60}
.gr-suggest a{display:flex;gap:12px;align-items:center;padding:10px 14px;text-decoration:none;color:var(--text);border-bottom:1px solid var(--border)}
.gr-suggest a:last-child{border-bottom:0}
.gr-suggest a:hover,.gr-suggest a.active{background:#eff6ff}
.gr-suggest img{width:44px;height:44px;object-fit:contain;flex:none;background:#f1f5f9;border-radius:8px}
.gr-suggest .t{font-weight:600;font-size:.92rem;line-height:1.3}
.gr-suggest .p{margin-left:auto;font-weight:700;color:var(--accent);white-space:nowrap}
.gr-suggest .none{padding:12px 14px;color:var(--muted)}
.gr-trust{display:flex;flex-wrap:wrap;gap:10px 28px;justify-content:center;margin-top:34px;color:#e2e8f0;font-weight:600;font-size:.95rem}
.gr-trust li{display:flex;align-items:center;gap:8px;list-style:none}
.gr-trust svg{width:18px;height:18px;color:var(--accent-2);flex:none}
.gr-trust{padding:0}

/* Sections */
.gr-section{max-width:1200px;margin:0 auto;padding:52px 20px}
.gr-section h2{font-size:1.6rem;margin:0 0 24px}
.gr-brands{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:14px}
.gr-brand{display:flex;align-items:center;justify-content:center;background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:18px 10px;font-weight:700;font-family:'Rubik',sans-serif;color:var(--ink);text-decoration:none;min-height:64px;transition:border-color .2s,transform .2s,box-shadow .2s}
.gr-brand:hover{border-color:var(--accent);transform:translateY(-2px);box-shadow:0 6px 18px rgba(37,99,235,.15)}
.gr-cats{display:flex;flex-wrap:wrap;gap:10px}
.gr-cats a{background:#e2e8f0;color:var(--ink);border-radius:999px;padding:10px 18px;text-decoration:none;font-weight:600;min-height:44px;display:inline-flex;align-items:center;transition:background .2s}
.gr-cats a:hover{background:var(--accent);color:#fff}

/* Woo grid */
.woocommerce ul.products li.product{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:16px;text-align:center;transition:transform .2s,box-shadow .2s}
.woocommerce ul.products li.product:hover{transform:translateY(-3px);box-shadow:0 10px 26px rgba(2,6,23,.12)}
.woocommerce ul.products li.product img{border-radius:8px;object-fit:contain;aspect-ratio:1/1;background:#fff}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:.98rem;font-weight:700;line-height:1.35;font-family:'Nunito Sans',sans-serif}
.woocommerce ul.products li.product .price{color:var(--accent);font-weight:700;font-size:1.05rem}
.woocommerce ul.products li.product .button{background:var(--ink);color:#fff;border-radius:8px;min-height:44px;display:inline-flex;align-items:center;transition:background .2s}
.woocommerce ul.products li.product .button:hover{background:var(--accent)}
.woocommerce span.onsale{background:var(--accent);border-radius:8px}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active{border-bottom-color:var(--card)}
.woocommerce div.product form.cart .button,.woocommerce #respond input#submit.alt,.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt{background:var(--accent);border-radius:8px;min-height:48px;padding:0 26px;display:inline-flex;align-items:center;font-weight:700}
.woocommerce div.product form.cart .button:hover,.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover{background:#1d4ed8}
.gr-content{max-width:1200px;margin:0 auto;padding:36px 20px;min-height:50vh}
.gr-pdp-trust{display:flex;flex-wrap:wrap;gap:8px 22px;margin:18px 0 0;padding:14px 0 0;border-top:1px solid var(--border);color:var(--muted);font-size:.9rem;font-weight:600}
.gr-pdp-trust li{display:flex;gap:7px;align-items:center;list-style:none}
.gr-pdp-trust svg{width:16px;height:16px;color:var(--ok);flex:none}

/* Footer */
.gr-footer{background:var(--ink);color:#94a3b8;margin-top:56px}
.gr-footer-in{max-width:1200px;margin:0 auto;padding:40px 20px;display:flex;flex-wrap:wrap;gap:28px;justify-content:space-between}
.gr-footer a{color:#cbd5e1;text-decoration:none}
.gr-footer a:hover{color:var(--accent-2)}
.gr-footer .gr-logo{font-size:1.1rem}
.gr-footer small{display:block;margin-top:8px}

@media(max-width:640px){
  .gr-header-in{gap:12px;flex-wrap:wrap}
  .gr-nav{gap:12px}
  .gr-hero{padding:44px 16px 52px}
  .gr-search form{flex-direction:column}
  .gr-search button{min-height:50px;padding:12px}
}

/* Woo controls */
.woocommerce .woocommerce-ordering select,select{font-family:inherit;font-size:.95rem;padding:10px 14px;border:1px solid var(--border);border-radius:8px;background:#fff;min-height:44px;color:var(--text)}
.woocommerce .woocommerce-result-count{color:var(--muted)}
.woocommerce nav.woocommerce-pagination ul{border:0}
.woocommerce nav.woocommerce-pagination ul li{border:0;margin:0 3px}
.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{border-radius:8px;min-width:40px;min-height:40px;display:inline-flex;align-items:center;justify-content:center;font-weight:600}
.woocommerce nav.woocommerce-pagination ul li span.current{background:var(--accent);color:#fff}
.woocommerce-store-notice{background:var(--accent)}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea{border:1px solid var(--border);border-radius:8px;padding:12px;min-height:44px}
.woocommerce-message,.woocommerce-info{border-top-color:var(--accent)}

/* remote-finder page: widget provides its own heading */
.page-id-162 .gr-content > article > h1{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* Hero AI finder */
.gr-ai-badge{display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(56,189,248,.55);color:var(--accent-2);border-radius:999px;padding:7px 16px;font-family:'Rubik',sans-serif;font-weight:700;font-size:.8rem;letter-spacing:.12em;margin-bottom:18px;background:rgba(56,189,248,.08);animation:gr-glow 2.6s ease-in-out infinite}
.gr-ai-badge svg{width:15px;height:15px}
@keyframes gr-glow{0%,100%{box-shadow:0 0 0 0 rgba(56,189,248,.35)}50%{box-shadow:0 0 22px 3px rgba(56,189,248,.25)}}
.gr-hero-finder{max-width:780px;margin:6px auto 0;text-align:left}
.gr-hero-finder .tlm-rf--compact{background:linear-gradient(165deg,rgba(255,255,255,.97) 0%,rgba(233,240,250,.95) 55%,rgba(214,226,242,.94) 100%);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-radius:16px;padding:26px 26px 20px;box-shadow:0 22px 70px rgba(2,6,23,.6),inset 0 1px 0 rgba(255,255,255,.9),0 0 0 1px rgba(56,189,248,.28)}
.gr-hero-finder .tlm-rf__compact-header{display:flex;gap:14px;align-items:flex-start;margin-bottom:16px;color:var(--ink)}
.gr-hero-finder .tlm-rf__compact-header svg{color:var(--accent);flex:none}
.gr-hero-finder .tlm-rf__compact-title{margin:0 0 4px;font-size:1.15rem}
.gr-hero-finder .tlm-rf__compact-sub{margin:0;color:var(--muted);font-size:.92rem}
.gr-hero-finder .tlm-rf__results{max-height:520px;overflow:auto;margin-top:14px}
@media(max-width:640px){.gr-hero-finder .tlm-rf--compact{padding:18px 14px 14px}}

/* Brand logos */
.gr-brand img{max-height:34px;max-width:78%;width:auto;object-fit:contain}

/* Brand strip: single full-width row */
.gr-section--brands{max-width:none;padding-left:24px;padding-right:24px}
.gr-section--brands .gr-brands{display:flex;flex-wrap:nowrap;gap:14px;overflow-x:auto;scrollbar-width:thin;padding-bottom:4px}
.gr-section--brands .gr-brand{flex:1 1 0;min-width:120px;min-height:72px}
.gr-section--brands .gr-brand img{max-height:38px;max-width:80%}

/* Why genuine */
.gr-why{background:var(--ink);color:#e2e8f0;padding:56px 20px}
.gr-why-in{max-width:1200px;margin:0 auto}
.gr-why h2{color:#fff;font-size:1.7rem;margin:0 0 10px}
.gr-why-lead{max-width:760px;color:#cbd5e1;margin:0 0 30px;font-size:1.03rem}
.gr-why-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.gr-why-card{background:rgba(255,255,255,.05);border:1px solid rgba(148,163,184,.22);border-radius:var(--radius);padding:20px}
.gr-why-card h3{margin:0 0 8px;font-size:1.02rem;color:var(--accent-2)}
.gr-why-card p{margin:0;font-size:.94rem;color:#cbd5e1;line-height:1.55}
.gr-why-cta{margin:28px 0 0}
.gr-btn{display:inline-flex;align-items:center;min-height:48px;padding:0 26px;background:var(--accent);color:#fff;font-weight:700;border-radius:8px;text-decoration:none;transition:background .2s}
.gr-btn:hover{background:#1d4ed8}

/* Logo */
.gr-logo--img{display:inline-flex;align-items:center;padding:2px 0}
.gr-logo--img img{height:64px;width:auto;display:block}
.gr-logo--footer{height:52px;width:auto;display:block;margin-bottom:10px}
@media(max-width:640px){.gr-logo--img img{height:46px}.gr-logo--footer{height:40px}}
