/* ORIVEGA Auto Gear — Premium Commerce UI V2.4 (TASK-008, staging only)
   Loaded AFTER responsive-v23.css. Builds on V2.3; does not rebuild the site.
   Palette stays white / blue (primary #1a5fb4). No prices, reviews, rankings,
   or products are added by this file — ranking sections ship as empty states
   until verified data exists. */

:root{
  --blue:#1a5fb4;
  --blue-dark:#144a8c;
  --blue-soft:#e8f1fb;
  --ink:#0f2a4a;
}

/* ---- Utility bar above the header ---- */
.utility-bar{background:var(--blue-soft);color:var(--ink);font-size:.85rem;border-bottom:1px solid var(--line)}
.utility-inner{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:36px}
.utility-inner a{color:var(--blue);font-weight:700;text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.utility-inner a:hover{text-decoration:underline}

/* ---- Hero, compacted ~40% vs V2.3 ---- */
.intro{padding:20px 0 16px;gap:16px}
.intro h1{font-size:clamp(1.9rem,3.4vw,2.9rem);max-width:640px}
.intro .dek{font-size:1rem;margin-bottom:.6em}
.intro .discover-link{font-size:.95rem}
.feature{padding:16px 18px}
.feature h2{font-size:1.25rem;margin-bottom:.3em}
.feature p{margin-bottom:0}
.hero-art{max-height:80px;margin-bottom:10px}

/* ---- Section headers (commerce, not landing page) ---- */
.section-head{display:flex;justify-content:space-between;align-items:baseline;gap:16px;flex-wrap:wrap;margin-bottom:14px}
.section-head h2{margin:0}
.section-head a{color:var(--blue);font-weight:700;text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.section-head a:hover{text-decoration:underline}
.commerce-section{padding:26px 0;border-top:1px solid var(--line)}
.commerce-section:first-of-type{border-top:0}

/* ---- Category strip: compact tiles near the top ---- */
.category-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.category-tile{display:block;padding:16px 18px;background:#fff;border:1px solid var(--line);border-radius:10px;text-decoration:none;color:inherit}
.category-tile:hover{border-color:var(--blue)}
.category-tile h3{margin:0 0 .25em;font-size:1.05rem}
.category-tile p{margin:0;color:var(--muted);font-size:.92rem}

/* ---- Product grid: 4 columns desktop, 2 columns mobile (when readable) ---- */
.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.product-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;min-width:0}
.product-card:hover{border-color:var(--blue)}
.product-card-media{background:#eef2f7;border-bottom:1px solid var(--line)}
.product-card-media .product-media-frame{aspect-ratio:4/3;margin:0;border:0;border-radius:0}
.product-card-body{display:flex;flex-direction:column;gap:8px;padding:16px;flex:1;min-width:0}
.product-card-brand{font-weight:750;font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:var(--blue);margin:0}
.product-card h3{margin:0;font-size:1.1rem;line-height:1.25}
.product-card h3 a{text-decoration:none}
.product-card h3 a:hover{text-decoration:underline}
.product-card-specs{list-style:none;margin:0;padding:0;color:var(--muted);font-size:.92rem;line-height:1.5}
.product-card-specs li+li{margin-top:2px}
.product-card-meta{margin:0;color:var(--muted);font-size:.82rem;overflow-wrap:anywhere}
.product-card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto;padding-top:8px}
.btn-primary,.btn-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 14px;border-radius:8px;font:inherit;font-weight:700;text-decoration:none;cursor:pointer}
.btn-primary{background:var(--blue);color:#fff;border:1px solid var(--blue)}
.btn-primary:hover{background:var(--blue-dark)}
.btn-secondary{background:#fff;color:var(--ink);border:1px solid #8a9aae}
.btn-secondary:hover{border-color:var(--blue);color:var(--blue)}
.product-card-actions .og-save{min-height:44px}
.browse-tile{display:flex;flex-direction:column;justify-content:center;gap:6px;padding:20px;background:var(--blue-soft);border:1px solid var(--line);border-radius:12px;text-decoration:none;color:var(--ink)}
.browse-tile:hover{border-color:var(--blue)}
.browse-tile h3{margin:0;font-size:1.1rem}
.browse-tile p{margin:0;color:var(--muted);font-size:.92rem}

/* ---- Ranking sections: empty states only until verified data exists ---- */
.ranking-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ranking-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px}
.ranking-card h3{margin:0 0 .4em;font-size:1.05rem}
.ranking-card p{margin:0 0 .8em;color:var(--muted);font-size:.92rem}
.ranking-card p:last-child{margin-bottom:0}

/* ---- Discover product tiles get the same card polish ---- */
#product-results .tile{display:flex;flex-direction:column}
#product-results .tile .og-category-art{height:120px}

/* ---- Footer: three columns, professional ---- */
.footer{display:grid;grid-template-columns:2fr 1fr 1fr;gap:28px}
.footer-col h3{font-size:.9rem;letter-spacing:.06em;text-transform:uppercase;color:#9ec3ea;margin:0 0 10px}
.footer-col nav{display:flex;flex-direction:column;gap:2px;align-items:start}
.footer-col nav a{color:#eff4fb;text-decoration:none;min-height:44px;display:inline-flex;align-items:center;padding:4px 0}
.footer-col nav a:hover{color:#fff;text-decoration:underline}
.footer-col p{margin:12px 0 0;color:#c0ccda}

/* ---- Breakpoints ---- */
@media(min-width:1440px){
  .product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .intro h1{font-size:clamp(2rem,3vw,3rem)}
}
@media(min-width:768px) and (max-width:1023px){
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ranking-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .category-strip{grid-template-columns:repeat(3,minmax(0,1fr))}
  .footer{grid-template-columns:1fr 1fr}
}
@media(max-width:767px){
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ranking-grid{grid-template-columns:1fr}
  .category-strip{grid-template-columns:1fr}
  .footer{grid-template-columns:1fr}
  .utility-inner span{display:none}
  .utility-inner{justify-content:flex-end}
  .product-card-body{padding:12px}
  .product-card h3{font-size:1rem}
  .product-card-specs{font-size:.85rem}
  .btn-primary,.btn-secondary{padding:9px 10px;font-size:.9rem}
}
@media(max-width:389px){
  /* Below 390px a second product column is too narrow to read: single column. */
  .product-grid{grid-template-columns:1fr}
  .category-strip{grid-template-columns:1fr}
}
