/* Qinggang homepage catalog layout. Scoped to body.qg-home so inner pages stay unchanged. */

body.qg-home{background:#fff}

/* CMS style.sections makes main a flex column and stamps inline order.
   Keep the catalog sequence even if those stored orders are stale. */
body.qg-home main{display:flex;flex-direction:column}
body.qg-home [data-section="hero"]{order:10 !important}
body.qg-home [data-section="categories"]{order:20 !important}
body.qg-home [data-section="about"]{order:30 !important}
body.qg-home [data-section="stock"]{order:40 !important}
body.qg-home [data-section="advantages"]{order:50 !important}
body.qg-home .qg-countries{order:60 !important}
body.qg-home [data-section="cta"]{order:70 !important}


/* Homepage content should be visible immediately (catalog layout, not fade-in) */
html.js body.qg-home .section,
html.js body.qg-home .cat-card,
html.js body.qg-home .pcard,
html.js body.qg-home .pcard.is-in:hover,
html.js body.qg-home .cat-card.is-in:hover{
  opacity:1 !important;
  transform:none !important;
}


/* Top utility bar */
.qg-topbar{
  background:var(--navy);
  color:#dbe7f3;
  font-size:.82rem;
  font-weight:650;
}
.qg-topbar-inner{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:.35rem 1rem;
  min-height:2.15rem;
  padding:.35rem 0;
}
.qg-topbar p{margin:0}
.qg-topbar a{
  color:#fff;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
}
.qg-topbar a:hover{color:#ffc49a}

/* Hero: full-width yard banner, left dark box, category row overlaps the bottom */
body.qg-home .qg-hero .slide img{object-position:center 50%}
body.qg-home .hero-slider.qg-hero{
  background:#111;
  overflow:visible;
}
body.qg-home .qg-hero .slides{
  aspect-ratio:4/3;
  min-height:22rem;
  max-height:34rem;
}
body.qg-home .qg-hero .slide-shade{display:none}
body.qg-home .qg-hero-panel{
  position:absolute;
  inset:0 0 5.5rem 0;
  z-index:3;
  display:flex;
  align-items:center;
  pointer-events:none;
}
body.qg-home .qg-hero-box{
  pointer-events:auto;
  max-width:min(32rem,100%);
  background:rgba(10,10,12,.62);
  color:#ffd100;
  padding:1.25rem 1.3rem 1.35rem;
}
body.qg-home .qg-hero-box h1{
  color:#ffd100;
  font-weight:800;
  letter-spacing:-.02em;
  font-size:clamp(1.45rem,4.4vw,2.35rem);
  line-height:1.15;
  margin:0 0 .9rem;
  text-shadow:none;
}
body.qg-home .qg-hero-points{
  list-style:none;
  margin:0 0 1.1rem;
  padding:0;
}
body.qg-home .qg-hero-points li{
  position:relative;
  margin:0 0 .45rem;
  padding:0 0 0 1.05rem;
  color:#ffd100;
  font-weight:700;
  font-size:.95rem;
  line-height:1.35;
}
body.qg-home .qg-hero-points li:last-child{margin-bottom:0}
body.qg-home .qg-hero-points li:before{
  content:"";
  position:absolute;
  left:0;
  top:.55em;
  width:.45rem;
  height:.12rem;
  background:#ffd100;
}
.qg-btn-yellow{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:2.55rem;
  padding:.5rem 1.25rem;
  background:#ffd100;
  color:#1a1a1a;
  font-weight:800;
  font-size:.95rem;
  text-decoration:none;
  border:0;
  transition:background-color .2s,transform .2s;
}
.qg-btn-yellow:hover{background:#ffe15a}
body.qg-home .qg-hero .slider-btn{
  z-index:6;
  width:2.7rem;
  height:2.7rem;
  border-radius:50%;
  background:rgba(0,0,0,.62);
  color:#fff;
  font-size:1.5rem;
}
body.qg-home .qg-hero .slider-btn:hover{background:#ffd100;color:#1a1a1a}
body.qg-home .qg-hero .slider-prev{left:.7rem}
body.qg-home .qg-hero .slider-next{right:.7rem}
body.qg-home .qg-hero .dots{z-index:6;bottom:16.5rem}
@media (width>=768px){
  body.qg-home .qg-hero .slides{
    aspect-ratio:16/7;
    min-height:28rem;
    max-height:38rem;
  }
  body.qg-home .qg-hero-box{padding:1.7rem 1.85rem 1.8rem}
  body.qg-home .qg-hero-points li{font-size:1.02rem}
  body.qg-home .qg-hero .dots{bottom:16.5rem}
}
@media (width>=1200px){
  body.qg-home .qg-hero .slides{
    aspect-ratio:16/7;
    min-height:32rem;
    max-height:42rem;
  }
}

/* Category cards: one row on a light panel overlapping the banner */
.qg-cat-band{
  position:relative;
  z-index:5;
  margin-top:-5.6rem;
  background:#f3f4f6;
  padding:0 0 1.2rem;
}
.qg-cat-band .wrap{
  transform:translateY(-1.8rem);
  margin-bottom:-1.8rem;
}
body.qg-home .cat-grid.qg-cat-icons{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.7rem;
}
body.qg-home .qg-cat-icons .cat-card{
  border:0;
  border-radius:.55rem;
  box-shadow:0 8px 22px #00000018;
  overflow:hidden;
  background:#fff;
}
body.qg-home .qg-cat-icons .cat-card p{display:none}
body.qg-home .qg-cat-icons .cat-card h3{
  margin:0;
  font-size:.88rem;
  text-align:center;
  font-weight:800;
}
body.qg-home .qg-cat-icons .cat-card>div:not(.media){
  padding:.55rem .4rem .7rem;
}
body.qg-home .qg-cat-icons .media{
  aspect-ratio:4/3;
  overflow:hidden;
}
@media (width>=700px){
  body.qg-home .cat-grid.qg-cat-icons{grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem}
  .qg-cat-band{margin-top:-6.2rem}
}
@media (width>=1100px){
  body.qg-home .cat-grid.qg-cat-icons{grid-template-columns:repeat(8,minmax(0,1fr));gap:.7rem}
  body.qg-home .qg-cat-icons .cat-card h3{font-size:.82rem}
  .qg-cat-band{margin-top:-6.6rem;padding-bottom:1.4rem}
  .qg-cat-band .wrap{transform:translateY(-2.1rem);margin-bottom:-1.4rem}
}

/* About us: copy on the left, yard video with play button on the right */
body.qg-home .qg-about-block{padding-top:2.2rem;padding-bottom:2.4rem;background:#fff}
body.qg-home .qg-about-block .about-grid{
  gap:1.4rem;
  grid-template-columns:1fr;
  align-items:center;
}
body.qg-home .qg-about-block .eyebrow{margin:0 0 .35rem}
body.qg-home .qg-about-block h2{
  margin:0 0 .55rem;
  font-size:clamp(1.45rem,3vw,2rem);
}
body.qg-home .qg-about-name{
  margin:0 0 .7rem;
  color:var(--navy);
  font-weight:800;
  font-size:1.05rem;
}
body.qg-home .qg-about-block ul{margin:.6rem 0 1rem;padding:0 0 0 1.1rem}
body.qg-home .qg-about-block li{margin:.25rem 0}
.qg-about-media{min-width:0}
.qg-video{
  position:relative;
  background:#111;
  overflow:hidden;
  box-shadow:var(--shadow);
}
.qg-video video{
  display:block;
  width:100%;
  height:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  background:#111;
}
.qg-play{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:4.4rem;
  height:4.4rem;
  border:0;
  border-radius:50%;
  background:#ffd100;
  color:#1a1a1a;
  cursor:pointer;
  display:grid;
  place-items:center;
  box-shadow:0 8px 24px #00000040;
  z-index:2;
}
.qg-play svg{width:1.7rem;height:1.7rem;fill:currentColor;margin-left:.15rem}
.qg-play:hover{background:#ffe15a}
.qg-video.is-playing .qg-play,
.qg-video.is-playing .qg-video-cap{display:none}
.qg-video:not(.is-playing) video::-webkit-media-controls{display:none!important}
.qg-video-cap{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  margin:0;
  padding:.55rem .8rem;
  color:#fff;
  font-size:.85rem;
  font-weight:700;
  background:linear-gradient(transparent,rgba(0,0,0,.55));
  pointer-events:none;
}
@media (width>=900px){
  body.qg-home .qg-about-block .about-grid{
    grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);
    gap:2rem;
  }
}

/* Featured stock — catalog density, year/hours/price visible */
body.qg-home .catalog{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.65rem;
}
body.qg-home .pcard-body{gap:.32rem;padding:.7rem .75rem .8rem}
body.qg-home .pcard h2,
body.qg-home .pcard h3{font-size:.92rem;line-height:1.3}
body.qg-home .pcard .facts{
  display:flex;
  flex-wrap:wrap;
  gap:.25rem;
  margin:0;
  padding:0;
  list-style:none;
}
body.qg-home .pcard .price{font-size:.95rem}
body.qg-home .stock-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
}
@media (width>=768px){
  body.qg-home .catalog{grid-template-columns:repeat(3,minmax(0,1fr));gap:.85rem}
  body.qg-home .pcard h2,
  body.qg-home .pcard h3{font-size:1rem}
}
@media (width>=1200px){
  body.qg-home .catalog{grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
}

/* Trust facts */
.qg-trust .adv-grid{
  grid-template-columns:1fr;
  gap:.7rem;
}
@media (width>=700px){
  .qg-trust .adv-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (width>=1100px){
  .qg-trust .adv-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
  .qg-trust .panel{padding:1rem .9rem 1.05rem}
  .qg-trust .panel h3{font-size:1rem}
}

/* CTA band */
body.qg-home .band-navy{padding:3rem 0}
body.qg-home .band-navy h2{color:#fff}
body.qg-home [data-section="cta"] .pair{gap:1.5rem}

/* Countries already have shared styles; extra space on the home catalog */
body.qg-home .qg-countries{padding-top:2.4rem}

/* Homepage dock: round yellow contact buttons on the right */
body.qg-home .float-stack.qg-dock{
  right:.7rem;
  bottom:calc(5.2rem + env(safe-area-inset-bottom));
  gap:.45rem;
}
body.qg-home .float-stack.qg-dock a{
  width:3.15rem;
  height:3.15rem;
  min-height:3.15rem;
  padding:0;
  border-radius:50%;
  justify-content:center;
  background:#ffd100;
  color:#1a1a1a;
  box-shadow:0 6px 16px #0000002e;
  animation:none;
}
body.qg-home .float-stack.qg-dock a:hover{background:#ffe15a;color:#1a1a1a}
body.qg-home .float-stack.qg-dock a span{
  clip:rect(0, 0, 0, 0);
  width:1px;
  height:1px;
  position:absolute;
  overflow:hidden;
}
body.qg-home .float-stack.qg-dock svg{width:1.35rem;height:1.35rem}

@media (width<=559px){
  body.qg-home .qg-hero .slides{min-height:20rem;max-height:28rem}
  body.qg-home .qg-hero-panel{inset:0 0 4.8rem 0;align-items:flex-end;padding:0 2.6rem .35rem}
  body.qg-home .qg-hero-box{padding:.8rem .85rem .85rem}
  body.qg-home .qg-hero-box h1{font-size:1.2rem;margin-bottom:.45rem}
  body.qg-home .qg-hero-points li{font-size:.8rem;margin-bottom:.22rem}
  body.qg-home .qg-hero-points{margin-bottom:.7rem}
  body.qg-home .qg-btn-yellow{min-height:2.2rem;padding:.35rem 1rem;font-size:.88rem}
  body.qg-home .qg-hero .dots{bottom:11.5rem}
  body.qg-home .qg-topbar{font-size:.75rem}
  .qg-cat-band{margin-top:-4.6rem}
  body.qg-home .float-stack.qg-dock{
    right:.45rem;
    bottom:calc(4.6rem + env(safe-area-inset-bottom));
    gap:.38rem;
  }
  body.qg-home .float-stack.qg-dock a{
    width:2.7rem;
    height:2.7rem;
    min-height:2.7rem;
  }
  .qg-play{width:3.6rem;height:3.6rem}
}

@media (width<=700px){
  body.qg-home main{padding-right:3.4rem}
  body.qg-home .qg-hero-panel .wrap,
  body.qg-home .qg-cat-band .wrap{padding-right:0;width:min(var(--max), calc(100% - 1.5rem))}
}
