/* ===== Catalog styles (extends style.css) ===== */

/* mega-menu — compact, top-level categories only */
.has-mega{position:relative}
.mega{position:absolute;left:50%;top:100%;transform:translateX(-50%);margin-top:.3rem;
  background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 18px 50px rgba(8,101,157,.18);
  padding:.9rem;width:min(560px,94vw);
  opacity:0;visibility:hidden;transform:translateX(-50%) translateY(6px);transition:opacity .15s,transform .15s;z-index:60}
.has-mega:hover .mega{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0)}
/* invisible bridge so moving the mouse from the link into the panel doesn't drop the hover */
.mega::before{content:"";position:absolute;left:0;right:0;top:-18px;height:18px}
.nav-links{align-items:center}
.has-mega{display:flex;align-items:center}
.mega-grid{display:grid;grid-template-columns:1fr 1fr;gap:.1rem .5rem}
.mega-cell{display:flex;align-items:center;gap:.55rem;padding:.5rem .6rem;border-radius:7px;font-weight:600;font-size:.9rem;color:var(--ink)}
.mega-cell span{font-size:1.15rem;line-height:1;width:1.5rem;text-align:center}
.mega-cell:hover{background:var(--bg2);color:var(--blue)}
.mega-all{display:block;margin:.5rem .4rem 0;padding-top:.7rem;border-top:1px solid var(--line);color:var(--blue);font-weight:700;font-size:.88rem}
.mega-all:hover{color:var(--blue-dark)}
@media(max-width:1000px){.has-mega .mega{display:none}}
.nav-search{font-size:1.15rem;text-decoration:none}

/* services grid — four cards (Rent / Buy / Repair / Delivery) */
.svc-grid{grid-template-columns:repeat(4,1fr)}
@media(max-width:920px){.svc-grid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.svc-grid{grid-template-columns:1fr}}
.svc{display:flex;flex-direction:column}
.svc-link{margin-top:auto;padding-top:.8rem;color:var(--blue);font-weight:700;font-size:.9rem}
.svc-link:hover{color:var(--blue-dark)}

/* delivery page */
.delivery-wrap{display:grid;grid-template-columns:1fr 1.2fr;gap:2rem;align-items:start;margin-top:1.5rem}
@media(max-width:820px){.delivery-wrap{grid-template-columns:1fr}}
.delivery-rates h3{color:var(--blue-dark);font-size:1.3rem;margin-bottom:1rem}
.rate-table{width:100%;border-collapse:collapse;margin-bottom:1rem;background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.rate-table td{padding:.85rem 1.1rem;border-bottom:1px solid var(--line);font-weight:500}
.rate-table tr:last-child td{border-bottom:0}
.rate-table .rate{text-align:right;font-weight:800;color:var(--blue-dark);white-space:nowrap}
.rate-note{color:var(--muted);font-size:.92rem;margin-bottom:1.2rem}
.rate-note a{color:var(--blue);font-weight:600}
.delivery-map{height:440px;width:100%;border-radius:12px;border:1px solid var(--line);z-index:1}
.map-cap{color:var(--muted);font-size:.85rem;margin-top:.6rem}

/* footer logo on a white chip so it's always visible */
.foot-logo{display:inline-block;background:#fff;padding:.45rem .7rem;border-radius:8px;margin-bottom:1rem;filter:none;height:auto}
.foot-logo img{height:34px;width:auto;display:block}

/* category cards (home + rentals) */
.ccard{display:flex;flex-direction:column;gap:.35rem;background:#fff;border:1px solid var(--line);
  border-left:4px solid var(--blue);border-radius:8px;padding:1.1rem 1.2rem;transition:transform .12s,box-shadow .18s,border-color .18s}
.ccard:hover{transform:translateY(-3px);box-shadow:0 8px 20px rgba(8,101,157,.14);border-left-color:var(--blue-light)}
.ccard-ico{font-size:1.7rem;line-height:1}
.ccard-name{font-weight:700;color:var(--ink)}
.ccard-count{font-size:.85rem;color:var(--muted)}

/* rentals index */
.rentcat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem;margin-top:2rem}
@media(max-width:900px){.rentcat-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.rentcat-grid{grid-template-columns:1fr}}
.rentcat-head{display:flex;align-items:center;gap:.5rem;font-weight:800;color:var(--blue-dark);font-size:1.1rem;padding-bottom:.4rem;border-bottom:2px solid var(--line);margin-bottom:.5rem}
.rentcat-head span{font-size:1.4rem}
.rentcat-head:hover{color:var(--blue)}
.rentcat-subs{display:flex;flex-direction:column}
.rentcat-subs a{color:var(--muted);padding:.2rem 0;font-size:.92rem}
.rentcat-subs a:hover{color:var(--blue)}

/* breadcrumbs */
.crumbs{font-size:.9rem;color:var(--muted);margin-bottom:1.2rem}
.crumbs a{color:var(--blue);font-weight:600}
.crumbs span{color:var(--ink)}

/* subcategory chips */
.subchips{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 1.8rem}
.subchips a{background:#fff;border:1px solid var(--line);border-radius:100px;padding:.4rem .9rem;font-size:.9rem;font-weight:600;color:var(--blue-dark)}
.subchips a b{color:var(--muted);font-weight:500}
.subchips a:hover{border-color:var(--blue);color:var(--blue)}

/* product grid + cards */
.prod-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.3rem;margin-top:1rem}
@media(max-width:960px){.prod-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:680px){.prod-grid{grid-template-columns:repeat(2,1fr)}}
.pcard{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden;transition:transform .12s,box-shadow .18s}
.pcard:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(8,101,157,.15)}
.pcard-img{aspect-ratio:4/3;background:#f0f4f8;display:flex;align-items:center;justify-content:center;overflow:hidden}
.pcard-img img{width:100%;height:100%;object-fit:cover}
.noimg{font-size:2.4rem;opacity:.4}
.noimg.big{font-size:4rem;padding:3rem}
.pcard-body{padding:.9rem 1rem;display:flex;flex-direction:column;gap:.35rem;flex:1}
.pcard-body h3{font-size:1rem;line-height:1.25;color:var(--ink)}
.card-rate{color:var(--blue-dark);font-weight:700;font-size:.9rem}
.pcard-cta{margin-top:auto;color:var(--blue);font-weight:700;font-size:.85rem}
.empty{color:var(--muted);padding:2rem 0}

/* product detail */
.product{display:grid;grid-template-columns:1fr 1fr;gap:2.5rem;align-items:start;margin-top:.5rem}
@media(max-width:820px){.product{grid-template-columns:1fr}}
.product-media{background:#f0f4f8;border:1px solid var(--line);border-radius:12px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.product-media img{width:100%;height:auto;display:block}
.product-info h1{font-size:clamp(1.6rem,3.4vw,2.3rem);font-weight:900;line-height:1.12;margin-bottom:1rem;color:var(--ink)}
.specs{background:var(--bg2);border:1px solid var(--line);border-left:4px solid var(--blue);border-radius:8px;padding:1rem 1.2rem;margin-bottom:1.2rem;line-height:1.7}
.specs p{margin:.2rem 0}
.specs strong{color:var(--blue-dark)}
.prose{color:var(--muted);margin-bottom:1.2rem;line-height:1.7}
.prose img{border-radius:8px;margin:.6rem 0}
.quote-box{background:#fff;border:1px solid var(--line);border-radius:12px;padding:1.4rem;box-shadow:0 4px 14px rgba(8,101,157,.06)}
.quote-lead{font-weight:700;margin-bottom:.8rem;color:var(--blue-dark)}
.quote-box .btn{display:block;text-align:center;margin-bottom:.6rem}
.btn-ghost-blue{background:#fff;color:var(--blue);border:2px solid var(--blue)}
.btn-ghost-blue:hover{background:var(--bg2)}
.quote-note{font-size:.82rem;color:var(--muted);margin-top:.4rem}
.rel-h{font-size:1.4rem;margin:3rem 0 0}

/* search page */
.search-page{max-width:640px;margin:1rem 0}
.search-page input{width:100%;padding:.9rem 1.1rem;border:2px solid var(--line);border-radius:8px;font-size:1.05rem;font-family:inherit}
.search-page input:focus{outline:none;border-color:var(--blue)}

/* ============ WOW pack: search, mobile, quote ============ */

/* header search + typeahead (shared: header / hero / mobile) */
.nav-search-wrap{position:relative;margin-left:1rem}
.nav-search-input{width:190px;padding:.5rem .8rem;border:1px solid var(--line);border-radius:100px;font-family:inherit;font-size:.9rem;background:var(--bg2)}
.nav-search-input:focus{outline:none;border-color:var(--blue);background:#fff;width:230px;transition:width .15s}
.search{position:relative}.search-page{position:relative}.msearch{position:relative}
.ta-results{position:absolute;top:calc(100% + 6px);left:0;right:0;min-width:280px;background:#fff;border:1px solid var(--line);
  border-radius:12px;box-shadow:0 18px 50px rgba(8,101,157,.20);z-index:70;overflow:hidden;display:none;max-height:70vh;overflow-y:auto}
.ta-results.open{display:block}
.ta-results a{display:flex;align-items:center;gap:.7rem;padding:.6rem .8rem;border-bottom:1px solid var(--line);color:var(--ink)}
.ta-results a:last-child{border-bottom:0}
.ta-results a:hover{background:var(--bg2)}
.ta-img{width:46px;height:46px;flex:0 0 46px;border-radius:6px;background:#f0f4f8;display:flex;align-items:center;justify-content:center;overflow:hidden;font-size:1.2rem}
.ta-img img{width:100%;height:100%;object-fit:cover}
.ta-txt{display:flex;flex-direction:column;line-height:1.2}
.ta-txt b{font-size:.92rem;font-weight:600}
.ta-txt small{color:var(--muted);font-size:.78rem}
.ta-all{justify-content:center;font-weight:700;color:var(--blue) !important;font-size:.88rem}
.ta-none{padding:.9rem;color:var(--muted);font-size:.9rem}
.ta-none a{display:inline;padding:0;border:0;color:var(--blue);font-weight:700}
.search .ta-results{top:calc(100% + 6px)}

/* hamburger + mobile nav */
.hamburger{display:none;flex-direction:column;gap:5px;background:none;border:0;cursor:pointer;padding:.4rem;margin-left:.6rem}
.hamburger span{width:26px;height:3px;background:var(--blue-dark);border-radius:2px;transition:.2s}
body.mobile-open .hamburger span:nth-child(1){transform:translateY(8px) rotate(45deg)}
body.mobile-open .hamburger span:nth-child(2){opacity:0}
body.mobile-open .hamburger span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
.mobile-nav{display:none;flex-direction:column;background:#fff;border-bottom:1px solid var(--line);padding:1rem 5vw;box-shadow:0 12px 30px rgba(8,101,157,.12);position:sticky;top:0;z-index:45}
body.mobile-open .mobile-nav{display:flex}
.mobile-nav a{padding:.75rem 0;border-bottom:1px solid var(--line);font-weight:600;color:var(--ink)}
.mobile-nav a:hover{color:var(--blue)}
.mobile-nav .msearch input{width:100%;padding:.7rem .9rem;border:1px solid var(--line);border-radius:8px;font-family:inherit;font-size:1rem;margin-bottom:.5rem}
.mnav-call{color:var(--blue-dark) !important;font-weight:800 !important;border-bottom:0 !important}
@media(max-width:900px){
  .nav-links{display:none}
  .nav-search-wrap{display:none}
  .hamburger{display:flex}
}
@media(max-width:420px){ .nav-call{display:none} }

/* product card refactor (card = container, link + quote button) */
.pcard{position:relative}
.pcard-link{display:flex;flex-direction:column;flex:1;color:inherit}
.pcard-quote{position:absolute;top:.5rem;right:.5rem;background:rgba(255,255,255,.95);border:1px solid var(--line);
  color:var(--blue-dark);font-weight:700;font-size:.78rem;padding:.3rem .6rem;border-radius:100px;cursor:pointer;
  box-shadow:0 2px 6px rgba(0,0,0,.12);transition:background .15s,color .15s;font-family:inherit;z-index:2}
.pcard-quote:hover{background:var(--blue);color:#fff;border-color:var(--blue)}
.pcard-quote.added{background:#1f9d55;color:#fff;border-color:#1f9d55}

/* add-to-quote button on product page */
.quote-add.added{background:#1f9d55}
.quote-add.added:hover{background:#188044}

/* floating quote FAB */
.quote-fab{position:fixed;right:1.1rem;bottom:1.1rem;z-index:80;background:var(--blue);color:#fff;font-weight:800;
  padding:.85rem 1.3rem;border-radius:100px;box-shadow:0 10px 30px rgba(8,101,157,.4);align-items:center;gap:.4rem;font-size:.98rem}
.quote-fab:hover{background:var(--blue-dark)}

/* quote page */
.quote-items{margin:1.5rem 0;max-width:720px}
.qrow{display:flex;align-items:center;gap:1rem;background:#fff;border:1px solid var(--line);border-radius:10px;padding:.7rem 1rem;margin-bottom:.7rem}
.qimg{width:56px;height:56px;flex:0 0 56px;border-radius:8px;background:#f0f4f8;display:flex;align-items:center;justify-content:center;overflow:hidden;font-size:1.4rem}
.qimg img{width:100%;height:100%;object-fit:cover}
.qname{flex:1;font-weight:600;color:var(--ink)}
.qname:hover{color:var(--blue)}
.qdel{background:none;border:0;color:#c0392b;font-weight:600;cursor:pointer;font-family:inherit;font-size:.9rem}
.qdel:hover{text-decoration:underline}
.quote-actions{display:flex;flex-wrap:wrap;gap:.8rem;max-width:720px}
.quote-actions .btn{flex:1;min-width:200px;text-align:center}
