/* VastuGuruji site design fixes — 2026-12-02
   Loaded last (from product/_footer.php and includes/footer.php). Design only.
   Undo: /home/vastuguruji.in/vg-design-1202/site/UNDO.txt */

/* ---------- 1. Elements with the [hidden] attribute must stay hidden ---------- */
.crt-grid[hidden],
.crt-mobile-bar[hidden],
.vsc-fab .cnt[hidden]{display:none !important}

/* ---------- 2. Trust strip: items never squeeze into each other; soft fade shows it scrolls ---------- */
.vg-trust-inner span{flex:0 0 auto}
@media (max-width:480px){
  .vg-trust-inner{-webkit-mask-image:linear-gradient(90deg,#000 88%,transparent);mask-image:linear-gradient(90deg,#000 88%,transparent)}
}

/* ---------- 3. Header search box: same font as the rest of the header ---------- */
#vgpTopbar input[type="search"],
#vgpTopbar input[type="text"]{font-family:Inter,"Noto Sans Devanagari",system-ui,-apple-system,sans-serif}

/* ---------- 4. "Free tools / related guides" link box (was plain blue underlined list) ---------- */
nav.vg-topic-links{
  box-sizing:border-box;
  width:calc(100% - 32px) !important;
  margin:28px auto 12px !important;
  padding:18px 18px 14px !important;
  border:1px solid #eadfca !important;
  border-left:4px solid #C65D00 !important;
  border-radius:14px !important;
  background:#fffaf1 !important;
  font-family:Inter,"Noto Sans Devanagari",system-ui,-apple-system,sans-serif !important;
  font-size:15px !important;
  box-shadow:0 4px 16px rgba(30,58,95,.06);
}
nav.vg-topic-links > p{font-size:16px;color:#1E3A5F !important;margin:0 0 10px !important;font-family:inherit}
nav.vg-topic-links ul{list-style:none;padding-left:0 !important;columns:2 240px !important}
nav.vg-topic-links li{break-inside:avoid;margin:0 0 2px}
nav.vg-topic-links a{
  display:block;padding:8px 0 8px 18px;position:relative;
  color:#1E3A5F;text-decoration:none;font-weight:600;line-height:1.4;
  border-bottom:1px dashed #efe3cc;
}
nav.vg-topic-links a::before{content:"›";position:absolute;left:4px;top:7px;color:#C65D00;font-weight:800}
nav.vg-topic-links a:hover{color:#C65D00}

/* ---------- 5. "Next festival" bar above the footer: site font, tidy on phone ---------- */
.vgf-fest-banner{font-family:Inter,"Noto Sans Devanagari",system-ui,-apple-system,sans-serif !important;line-height:1.5}
.vgf-fest-banner strong{font-weight:700}
.vgf-fest-banner a{font-family:inherit;white-space:nowrap}
@media (max-width:560px){
  .vgf-fest-banner{padding:12px 16px !important;font-size:13.5px !important}
  .vgf-fest-banner a{display:table !important;margin:8px auto 0 !important;padding:7px 16px !important;border-radius:999px !important}
}

/* ---------- 6. Floating things: never cover sticky buttons or each other ---------- */
/* App install card: fits on one line on phone, sits above sticky bottom bars */
#vg-pwa-banner .vg-pwa-text strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:559px){
  body:has(.cons-sticky-mobile) #vg-pwa-banner,
  body:has(.crt-mobile-bar:not([hidden])) #vg-pwa-banner{bottom:84px !important}
  /* Google rating badge + other round buttons lift above sticky bottom bars */
  body:has(.cons-sticky-mobile) #___ratingbadge_0{bottom:76px !important}
  body:has(.cons-sticky-mobile) .vgtts-fab{bottom:80px !important}
  /* blog round buttons sit above the Google badge on the left */
  .vbh-fabs{bottom:78px !important}
}
/* While the install card is open, hide the small Google badge behind it (comes back after close) */
body:has(#vg-pwa-banner) #___ratingbadge_0{visibility:hidden}
/* Listen (सुनें) button: smaller on phone so it does not sit on footer text */
@media (max-width:559px){
  .vgtts-fab{transform:scale(.88);transform-origin:right bottom}
}

/* ---------- 7. Home hero buttons: same size, neat grid on phone ---------- */
@media (max-width:560px){
  .hv-hero__ctas{display:grid !important;grid-template-columns:1fr 1fr;gap:10px !important;width:100%}
  .hv-hero__ctas .hv-cta{justify-content:center;text-align:center;width:auto !important;min-height:50px;padding:13px 10px !important;font-size:15px !important;margin:0 !important}
  .hv-hero__ctas .hv-cta--primary{grid-column:1 / -1}
}

/* ---------- 8. Category / shop lists ---------- */
/* product names were underlined links */
.vgc-card a,.vgc-card h2 a,.vgc-card h3 a{text-decoration:none}
/* stock / new / off badges (style was only loaded on the idols page) */
.vgc-thumb{position:relative}
.vgc-badge{position:absolute;z-index:2;padding:4px 10px;border-radius:999px;font-family:Inter,system-ui,sans-serif;font-size:11px;font-weight:800;letter-spacing:.04em;line-height:1.2;text-transform:uppercase;box-shadow:0 1px 3px rgba(0,0,0,.15)}
.vgc-badge-off{top:10px;left:10px;background:#c0392b;color:#fff}
.vgc-badge-new{top:10px;right:10px;background:#1E3A5F;color:#fff}
.vgc-badge-low{top:10px;right:10px;background:#f59e0b;color:#fff}
.vgc-badge-off + .vgc-badge-low,.vgc-badge-new + .vgc-badge-low{top:38px}
/* sort dropdown (was a plain browser select on most categories) */
.vgx-sortform{display:flex;align-items:center}
.vgx-sort{display:inline-flex;align-items:center;gap:8px;font-family:Inter,system-ui,sans-serif;font-size:13px;color:#555}
.vgx-sort span{font-weight:700}
.vgx-sort select{padding:8px 28px 8px 12px;border:1px solid #d4cab2;border-radius:8px;background:#fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M0 0l5 6 5-6z' fill='%231E3A5F'/></svg>") no-repeat right 10px center;font:600 13px Inter,system-ui,sans-serif;color:#1E3A5F;cursor:pointer;-webkit-appearance:none;appearance:none;min-height:38px}
/* second "Showing N products" line repeated the first count */
.vgx-bar-live .vgx-count{display:none}
/* "← Prev" on page 1 does nothing — keep its space, hide the dead button */
.vgc-pagebtn.is-disabled{visibility:hidden}
/* Filters button: same font as the rest */
.vgx-filter-toggle{font-family:Inter,system-ui,sans-serif}

/* ---------- 9. Cart ---------- */
.crt-head h1{font-family:Inter,"Noto Sans Devanagari",system-ui,sans-serif;flex-wrap:wrap;row-gap:2px;line-height:1.2}
.crt-head h1 small{flex-basis:100%}
.crt-empty{margin:24px auto 8px}
.crt-empty-btn,.crt-empty-btn:visited{color:#fff !important}
@media (max-width:560px){
  .crt-also{padding:16px 14px}
  .crt-also-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:10px}
  .crt-also-card-body{padding:10px}
  .crt-also-card strong{-webkit-line-clamp:2}
}

/* ---------- 10. Consultation: comparison table hint on phone ---------- */
@media (max-width:700px){
  .cons-table-wrap{position:relative;-webkit-overflow-scrolling:touch;box-shadow:inset -14px 0 12px -12px rgba(30,58,95,.25)}
}

/* =================== ROUND 2 — 2-Dec-2026 =================== */
/* ---------- 11. Header stays on top while scrolling (phone + desktop) ---------- */
:root{--vg-hdr:110px}
@media (min-width:901px){:root{--vg-hdr:116px}}
/* product pages had html,body{height:100%} — sticky header left after one screen */
html:root body{height:auto;min-height:100%}
.vgp-nav-v2{position:-webkit-sticky;position:sticky;top:0;z-index:200;background:#fff}
/* the old hide-on-scroll moved the header away — keep it in place */
.vgp-nav-v2.nav-collapsed,.vgp-nav-v2.nav-strip-up,.vgp-nav-v2.nav-collapsed.nav-strip-up{transform:none !important}
/* jump links (#section) land below the header, not under it */
html{scroll-padding-top:calc(var(--vg-hdr) + 12px)}
/* other sticky boxes sit below the header */
.ck-summary,.crt-summary{top:calc(var(--vg-hdr) + 16px) !important}
.vg-sidebar{top:calc(var(--vg-hdr) + 16px) !important}
.vgp-grid>.vgp-gallery,.vgs-grid>.vgp-gallery,.dv3-gallery,.vmr-gallery,.idol-gal,.vgx-filter-sidebar{top:calc(var(--vg-hdr) + 16px) !important}
.vgo-buy,.vgs-buy,.vgd-buy,.av-nav,.av-buy{top:calc(var(--vg-hdr) + 16px) !important}
.av-topbar,.dv3-tabnav,.vdf-compass-wrap,.cs-topbar{top:var(--vg-hdr) !important}

/* ---------- 12. Courses: show the whole course picture ---------- */
.vcl-card-img{aspect-ratio:1/1;background:#fff}
.vcl-card-img img{object-fit:contain}
.vcl-featured-img{background:#fff}
.vcl-featured-img img{object-fit:contain}
