/* =========================================================
   QINELLE SHAPEWEAR HUB V4 — DRAFT PREVIEW ONLY
   Visual goal:
   light / breathable / helpful / mobile-first
   ========================================================= */

.qsv4,
.qsv4 *{
  box-sizing:border-box;
}

.qsv4{
  --q-pink:#fff7f8;
  --q-pink-2:#fbeff1;
  --q-border:#eadadd;
  --q-text:#2d2426;
  --q-muted:#746669;
  --q-accent:#9e6872;
  --q-white:#fff;
  width:min(1180px,calc(100% - 32px));
  margin:0 auto 56px;
  color:var(--q-text);
  font-family:inherit;
}

.qsv4 a{
  color:inherit;
}

.qsv4-hero{
  display:grid;
  grid-template-columns:minmax(0,1.02fr) minmax(360px,.98fr);
  gap:46px;
  align-items:center;
  padding:36px 0 42px;
}

.qsv4-eyebrow,
.qsv4-kicker{
  margin:0 0 9px;
  font-size:12px;
  line-height:1.3;
  letter-spacing:.15em;
  text-transform:uppercase;
  font-weight:700;
  color:var(--q-accent);
}

.qsv4 h1{
  margin:0;
  max-width:720px;
  font-size:clamp(38px,5vw,62px);
  line-height:1.03;
  letter-spacing:-.035em;
  font-weight:650;
}

.qsv4-hero-copy{
  margin:18px 0 0;
  max-width:650px;
  font-size:17px;
  line-height:1.7;
  color:var(--q-muted);
}

.qsv4-actions{
  display:flex;
  flex-wrap:wrap;
  gap:11px;
  margin-top:24px;
}

.qsv4-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:11px 19px;
  border-radius:999px;
  text-decoration:none!important;
  font-size:14px;
  font-weight:650;
  border:1px solid var(--q-border);
  transition:.18s ease;
}

.qsv4-btn-primary{
  background:var(--q-text);
  color:#fff!important;
  border-color:var(--q-text);
}

.qsv4-btn-soft{
  background:rgba(255,255,255,.85);
}

.qsv4-btn:hover{
  transform:translateY(-1px);
}

.qsv4-hero-media{
  overflow:hidden;
  border-radius:28px;
  background:var(--q-pink);
  box-shadow:0 18px 50px rgba(72,44,55,.09);
  aspect-ratio:1/1;
}

.qsv4-hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.qsv4-trust{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin:0 0 62px;
}

.qsv4-trust-item{
  min-height:64px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:13px 12px;
  border:1px solid var(--q-border);
  border-radius:16px;
  background:rgba(255,255,255,.86);
  text-align:center;
  font-size:13px;
  line-height:1.4;
}

.qsv4-check{
  width:22px;
  height:22px;
  flex:0 0 22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:var(--q-pink-2);
  color:var(--q-accent);
  font-size:12px;
  font-weight:800;
}

.qsv4-section{
  margin:0 0 72px;
}

.qsv4-section-head{
  max-width:700px;
  margin-bottom:24px;
}

.qsv4-section h2{
  margin:0;
  font-size:clamp(28px,3.8vw,42px);
  line-height:1.12;
  letter-spacing:-.025em;
  font-weight:650;
}

.qsv4-section-intro{
  margin:12px 0 0;
  max-width:680px;
  color:var(--q-muted);
  line-height:1.7;
  font-size:15px;
}

.qsv4-need-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}

.qsv4-need{
  min-height:205px;
  padding:23px 21px;
  border:1px solid var(--q-border);
  border-radius:20px;
  background:linear-gradient(145deg,#fff,var(--q-pink));
  text-decoration:none!important;
  transition:.18s ease;
}

.qsv4-need:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 32px rgba(72,44,55,.07);
}

.qsv4-icon{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:26px;
  border-radius:14px;
  background:#fff;
  border:1px solid var(--q-border);
  color:var(--q-accent);
}

.qsv4-icon svg{
  width:22px;
  height:22px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.qsv4-need h3{
  margin:0 0 7px;
  font-size:18px;
  line-height:1.3;
}

.qsv4-need p{
  margin:0;
  color:var(--q-muted);
  font-size:14px;
  line-height:1.55;
}

.qsv4-arrow{
  display:block;
  margin-top:16px;
  color:var(--q-accent);
  font-weight:700;
}

.qsv4-featured{
  padding:34px;
  border-radius:26px;
  background:var(--q-pink);
  border:1px solid rgba(234,218,221,.8);
}

.qsv4-featured .products{
  margin-bottom:0!important;
}

.qsv4-featured .products li.product{
  background:#fff;
  border-radius:18px;
  overflow:hidden;
}

.qsv4-featured .products li.product img{
  border-radius:18px 18px 0 0;
}

.qsv4-choose-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}

.qsv4-choose{
  padding:22px;
  border-radius:18px;
  border:1px solid var(--q-border);
  background:#fff;
}

.qsv4-step{
  display:inline-flex;
  width:30px;
  height:30px;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:var(--q-pink);
  color:var(--q-accent);
  font-size:12px;
  font-weight:750;
  margin-bottom:16px;
}

.qsv4-choose h3{
  margin:0 0 7px;
  font-size:17px;
}

.qsv4-choose p{
  margin:0;
  color:var(--q-muted);
  font-size:14px;
  line-height:1.58;
}

.qsv4-fit{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:24px;
  align-items:center;
  padding:28px 30px;
  border:1px solid var(--q-border);
  border-radius:22px;
  background:linear-gradient(120deg,#fff,var(--q-pink));
}

.qsv4-fit h2{
  font-size:clamp(24px,3vw,34px);
}

.qsv4-fit p{
  margin:8px 0 0;
  color:var(--q-muted);
  line-height:1.65;
}

.qsv4-faq{
  display:grid;
  gap:10px;
}

.qsv4-faq details{
  border:1px solid var(--q-border);
  border-radius:16px;
  background:#fff;
  padding:0 18px;
}

.qsv4-faq summary{
  cursor:pointer;
  list-style:none;
  padding:17px 30px 17px 0;
  font-weight:650;
  position:relative;
}

.qsv4-faq summary::-webkit-details-marker{
  display:none;
}

.qsv4-faq summary:after{
  content:"+";
  position:absolute;
  right:0;
  top:16px;
  color:var(--q-accent);
  font-size:20px;
}

.qsv4-faq details[open] summary:after{
  content:"–";
}

.qsv4-faq p{
  margin:0;
  padding:0 0 18px;
  max-width:850px;
  color:var(--q-muted);
  line-height:1.7;
  font-size:14px;
}

.qsv4-boundary{
  margin-top:18px;
  padding:18px 20px;
  border-radius:16px;
  background:var(--q-pink);
  color:var(--q-muted);
  font-size:13px;
  line-height:1.65;
}

@media(max-width:900px){
  .qsv4-hero{
    grid-template-columns:1fr 1fr;
    gap:28px;
  }

  .qsv4-need-grid,
  .qsv4-choose-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .qsv4-trust{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:680px){
  .qsv4{
    width:min(100% - 26px,1180px);
    margin-bottom:38px;
  }

  .qsv4-hero{
    grid-template-columns:1fr;
    gap:22px;
    padding:20px 0 30px;
  }

  .qsv4 h1{
    font-size:clamp(36px,11vw,48px);
  }

  .qsv4-hero-copy{
    font-size:15px;
  }

  .qsv4-hero-media{
    order:-1;
    border-radius:22px;
  }

  .qsv4-actions{
    display:grid;
    grid-template-columns:1fr;
  }

  .qsv4-btn{
    width:100%;
  }

  .qsv4-trust{
    grid-template-columns:1fr 1fr;
    margin-bottom:48px;
  }

  .qsv4-trust-item{
    min-height:72px;
    padding:12px 8px;
    font-size:12px;
    flex-direction:column;
  }

  .qsv4-section{
    margin-bottom:54px;
  }

  .qsv4-need-grid,
  .qsv4-choose-grid{
    grid-template-columns:1fr;
  }

  .qsv4-need{
    min-height:0;
  }

  .qsv4-featured{
    padding:22px 15px;
    border-radius:21px;
  }

  .qsv4-featured .products{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  .qsv4-fit{
    grid-template-columns:1fr;
    padding:23px 20px;
  }
}

/* =========================================================
   QINELLE SHAPEWEAR V4 PREVIEW — PAGE SHELL AUTHORITY
   Loaded only on production page 16589.
   ========================================================= */

article#post-16589 > .entry-header{
    display:none !important;
}

article#post-16589 > .entry-content{
    margin-top:0 !important;
}

body.page-id-16589 .site-content > .ast-container{
    max-width:none !important;
    padding-left:0 !important;
    padding-right:0 !important;
}

body.page-id-16589 #primary{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
}

body.page-id-16589 #main{
    width:100% !important;
    max-width:none !important;
}

/* QSV4_POLISH_V1_BEGIN
   A2.4.4D — visual polish
   Production page 16589 only through loader.
*/

/* ---------- SHOP BY NEED ---------- */

.qsv4 .qsv4-need-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}

.qsv4 .qsv4-need{
    min-width:0;
    min-height:132px;
    display:grid;
    grid-template-columns:46px minmax(0,1fr) auto;
    gap:4px 16px;
    align-items:center;
    padding:20px 21px;
    border:1px solid var(--q-border);
    border-radius:20px;
    background:linear-gradient(145deg,#fff 0%,#fffafa 100%);
    text-decoration:none!important;
    overflow:hidden;
}

.qsv4 .qsv4-need-mark{
    grid-column:1;
    grid-row:1 / span 2;
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:14px;
    background:var(--q-pink-2);
    color:var(--q-accent);
    font-size:11px;
    font-weight:750;
    letter-spacing:.06em;
}

.qsv4 .qsv4-need-body{
    grid-column:2;
    display:block;
    min-width:0;
}

.qsv4 .qsv4-need-body strong{
    display:block;
    margin:0 0 6px;
    color:var(--q-text);
    font-size:17px;
    line-height:1.25;
}

.qsv4 .qsv4-need-body small{
    display:block;
    color:var(--q-muted);
    font-size:13px;
    line-height:1.5;
}

.qsv4 .qsv4-need .qsv4-arrow{
    grid-column:3;
    grid-row:1 / span 2;
    align-self:center;
    margin:0;
    white-space:nowrap;
    color:var(--q-accent);
    font-size:12px;
    font-weight:700;
}

/* Old SVG system no longer used */
.qsv4 .qsv4-need > .qsv4-icon{
    display:none!important;
}

/* ---------- MOBILE HERO / TRUST ---------- */

@media(max-width:680px){

    .qsv4{
        width:calc(100% - 28px);
    }

    .qsv4-hero{
        gap:18px;
        padding-top:12px;
        padding-bottom:24px;
    }

    .qsv4-hero-media{
        aspect-ratio:4 / 3;
        border-radius:20px;
    }

    .qsv4 h1{
        font-size:clamp(34px,9.6vw,38px);
        line-height:1.03;
        letter-spacing:-.035em;
    }

    .qsv4-eyebrow{
        margin-bottom:10px;
        font-size:11px;
        letter-spacing:.17em;
    }

    .qsv4-hero-copy{
        margin-top:14px;
        font-size:14px;
        line-height:1.62;
    }

    .qsv4-actions{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:9px;
        margin-top:18px;
    }

    .qsv4-btn{
        width:100%;
        min-height:44px;
        padding:9px 10px;
        font-size:12px;
    }

    .qsv4-trust{
        gap:8px;
        margin-bottom:40px;
    }

    .qsv4-trust-item{
        min-height:58px;
        padding:9px 7px;
        gap:5px;
        font-size:11px;
        line-height:1.3;
    }

    .qsv4-check{
        width:18px;
        height:18px;
        flex-basis:18px;
        font-size:10px;
    }

    .qsv4-section-head{
        margin-bottom:18px;
    }

    .qsv4-section h2{
        font-size:30px;
        line-height:1.08;
    }

    /* Mobile need cards */
    .qsv4 .qsv4-need-grid{
        grid-template-columns:1fr;
        gap:10px;
    }

    .qsv4 .qsv4-need{
        min-height:0;
        grid-template-columns:38px minmax(0,1fr) auto;
        gap:3px 12px;
        padding:16px 15px;
        border-radius:17px;
    }

    .qsv4 .qsv4-need-mark{
        width:36px;
        height:36px;
        border-radius:12px;
        font-size:10px;
    }

    .qsv4 .qsv4-need-body strong{
        font-size:15px;
    }

    .qsv4 .qsv4-need-body small{
        font-size:12px;
        line-height:1.42;
    }

    .qsv4 .qsv4-need .qsv4-arrow{
        font-size:0;
    }

    .qsv4 .qsv4-need .qsv4-arrow::after{
        content:"→";
        font-size:18px;
    }

    /* Featured products already work well as 2 columns */
    .qsv4-featured{
        padding:20px 13px;
    }
}

/* QSV4_POLISH_V1_END */


/* ==========================================================
   QSV4_MOBILE_UX_MICROFIX_V1
   Page: /shapewear/ — ID 16589
   Scope: mobile only
   ========================================================== */

@media (max-width:921px){

    /*
     * Astra mobile below-header reserves a minimum-height row.
     * Keep the structure intact, but remove unused reserved height
     * on this page only.
     */
    body.page-id-16589
    #ast-mobile-header
    .ast-below-header-bar,

    body.page-id-16589
    #ast-mobile-header
    .site-below-header-wrap{
        min-height:0 !important;
        padding-top:0 !important;
        padding-bottom:0 !important;
    }

}


@media (max-width:680px){

    /*
     * Bring the V4 hero closer to the mobile header.
     */
    body.page-id-16589
    .qsv4-hero{
        padding-top:10px !important;
    }


    /*
     * Keep Modern Cart functionality,
     * but reduce its visual obstruction on small screens.
     */
    body.page-id-16589
    #moderncart-floating-cart{
        right:10px !important;
        bottom:max(
            12px,
            env(safe-area-inset-bottom)
        ) !important;
    }

    body.page-id-16589
    #moderncart-floating-cart
    .moderncart-floating-cart-button{
        transform:scale(.78) !important;
        transform-origin:bottom right !important;
    }

}

/* QSV4_MOBILE_UX_MICROFIX_V1_END */



/* ==========================================================
   QSV4_FINAL_MOBILE_FIX_V2
   Page 16589 /shapewear/
   Final mobile shell + floating cart authority
   ========================================================== */

@media (max-width:680px){

    body.page-id-16589
    #ast-mobile-header
    .ast-below-header-wrap,

    body.page-id-16589
    #ast-mobile-header
    .ast-below-header-bar{
        display:none !important;
        height:0 !important;
        min-height:0 !important;
        margin:0 !important;
        padding:0 !important;
        border:0 !important;
        overflow:hidden !important;
    }


    body.page-id-16589 #content,
    body.page-id-16589 #content > .ast-container,
    body.page-id-16589 #primary,
    body.page-id-16589 #main,
    body.page-id-16589 article#post-16589,
    body.page-id-16589 article#post-16589 > .entry-content,
    body.page-id-16589 .qsv4{
        margin-top:0 !important;
        padding-top:0 !important;
    }


    body.page-id-16589 .qsv4-hero{
        margin-top:0 !important;
        padding-top:18px !important;
    }


    body.page-id-16589
    #moderncart-floating-cart{
        --moderncart-floating-icon-width:50px !important;

        width:50px !important;
        height:50px !important;

        right:8px !important;
        left:auto !important;

        bottom:max(
            14px,
            env(safe-area-inset-bottom)
        ) !important;

        transform:none !important;
    }


    body.page-id-16589
    #moderncart-floating-cart
    .moderncart-floating-cart-button{
        width:50px !important;
        min-width:50px !important;
        max-width:50px !important;

        height:50px !important;
        min-height:50px !important;
        max-height:50px !important;

        line-height:50px !important;

        padding:0 !important;
        margin:0 !important;

        transform:none !important;
    }


    body.page-id-16589
    #moderncart-floating-cart
    .moderncart-floating-cart-icon svg{
        width:22px !important;
        height:22px !important;
    }


    body.page-id-16589
    #moderncart-floating-cart
    .moderncart-floating-cart-count{
        width:18px !important;
        min-width:18px !important;
        height:18px !important;

        font-size:10px !important;
        line-height:18px !important;

        right:-2px !important;
        left:auto !important;
        top:-4px !important;
    }

}

/* QSV4_FINAL_MOBILE_FIX_V2_END */



/* ==========================================================
   QSV4_FINAL_HEADER_SHELL_FIX_V1
   Page 16589 only
   Release stale mobile Astra header-shell height after
   removal of the unused below-header row.
   ========================================================== */

@media (max-width:680px){

    /*
     * Do NOT alter the visible primary-header content.
     * Only release stale outer-shell height / bottom spacing.
     */
    body.page-id-16589 #masthead,
    body.page-id-16589 #masthead.site-header,
    body.page-id-16589 #ast-mobile-header,
    body.page-id-16589 .ast-mobile-header-wrap{
        height:auto !important;
        min-height:0 !important;
        max-height:none !important;

        margin-bottom:0 !important;
        padding-bottom:0 !important;
    }


    /*
     * Visible Logo/Menu row remains naturally sized by
     * its children; remove only accidental bottom spacing.
     */
    body.page-id-16589
    #ast-mobile-header
    .ast-main-header-wrap,

    body.page-id-16589
    #ast-mobile-header
    .ast-primary-header-bar,

    body.page-id-16589
    #ast-mobile-header
    .site-primary-header-wrap{
        margin-bottom:0 !important;
        padding-bottom:0 !important;
    }


    /*
     * Below-header was already retired in V2.
     * Keep an explicit zero-size authority here.
     */
    body.page-id-16589
    #ast-mobile-header
    .ast-below-header-wrap,

    body.page-id-16589
    #ast-mobile-header
    .ast-below-header-bar,

    body.page-id-16589
    #ast-mobile-header
    .site-below-header-wrap{
        display:none !important;

        width:0 !important;
        height:0 !important;
        min-height:0 !important;
        max-height:0 !important;

        margin:0 !important;
        padding:0 !important;

        border:0 !important;
        overflow:hidden !important;
    }


    /*
     * V4 owns the only intentional Header → Hero gap.
     */
    body.page-id-16589 #content{
        margin-top:0 !important;
        padding-top:0 !important;
    }

    body.page-id-16589 .qsv4-hero{
        margin-top:0 !important;
        padding-top:18px !important;
    }

}

/* QSV4_FINAL_HEADER_SHELL_FIX_V1_END */

