/* Quick Add Drawer (Variable Products) */

/* Backward compatible qto-* classes + new googooweb-* classes */
.qto-drawer-overlay,
.googooweb-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 9998;
}

.qto-drawer,
.googooweb-drawer {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #fff;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -10px 30px rgba(0,0,0,.15);
  max-height: 80vh;
  overflow: auto;
  transform: translateY(0);
  width: 100% !important;
  margin: 0 !important;
}

.qto-drawer-head,
.googooweb-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 16px 10px;
}

.qto-drawer-title,
.googooweb-drawer-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.qto-drawer-close,
.googooweb-drawer-close {
    position: relative;
    top: 0;
    border: none !important;
    background: transparent;
    cursor: pointer !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    font-family: 'Roboto';
}

/* Make the close button look like an X even if the HTML says "Close" */
.qto-drawer-close,
.googooweb-drawer-close{
  position: relative;
  width: 28px;
  height: 28px;
}
.qto-drawer-close,
.googooweb-drawer-close{ text-indent: -9999px; overflow: hidden; }
.qto-drawer-close::before,
.googooweb-drawer-close::before{
  content: "x";
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  text-indent: 0;
  font-size: 20px;
  font-weight: 800;
}

/* Price under title */
.googooweb-drawer-price {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    margin: 6px 0 0 0;
}
.googooweb-drawer-price .price{ margin: 0 !important; }

.qto-drawer-body,
.googooweb-drawer-body {
  padding: 0 16px 16px;
}

/* Optional: stop page scroll when drawer is open */
body.qto-drawer-open,
body.googooweb_drawer_open {
  overflow: hidden;
}

/* Size buttons */
.qto-size-buttons{
  display:flex;
  gap:10px;
  margin: 10px 0 14px;
  flex-wrap: wrap;
}
.qto-size-btn{
    display: inline-block !important;
    width: 13% !important;
    border: 1px solid #e6007a !important;
    background: #fff;
    padding: 10px 14px !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 18px !important;
}
.qto-size-btn.is-active{
  border-color:#e6007a;
  background:#e6007a;
  color:#fff;
}

/* Qty +/- */
.qto-qty {
    display: inline-block;
    width: 52%;
    text-align: right;
    align-content: center;
}
.qto-qty .qty{
    width: 70px;
    text-align:center;
    border:0;
    outline:0;
    padding: 0;
    font-weight: 600 !important;
    font-size: 20px !important;
    font-family: 'Roboto' !important;
    text-align: center !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

.qto-qty-btn{
    color: #e6007a !important;
    background: transparent !important;
    border: none !important;
    font-size: 20px !important;
    padding: 0 10px !important;
    font-family: 'fangsong' !important;
    font-weight: 800 !important;
}

/* Actions layout: qty line then add button */
.qto-qtyline{ display:flex; justify-content:flex-end; }
.qto-qtyline .quantity{ margin:0 !important; }
.qto-addline .single_add_to_cart_button{
    width:100% !important;
    height:46px;
    border-radius: 3px;
    font-weight: 900;
    background: #fff;
    border: 1px solid #e6007a;
    color:#e6007a;
    font-size: 18px;
    font-family: 'manrope';
}

.qto-title-zh, .qto-title-en{ display:block; }

#googooweb-drawer-title .qto-title-en,
#qto-drawer-title .qto-title-en{
    font-size: 20px;
    opacity: 0.75;
    display: inline-block;
    margin-top: 2px;
    color: #000;
}

/* Drawer form layout hardening (avoid theme overrides) */
.qto-drawer table.variations,
.googooweb-drawer table.variations{
  width:100% !important;
  margin:0 0 10px 0 !important;
  border:0 !important;
}
.qto-drawer table.variations th,
.qto-drawer table.variations td,
.googooweb-drawer table.variations th,
.googooweb-drawer table.variations td{
  padding:6px 0 !important;
  border:0 !important;
  background:transparent !important;
}

/* Hide range price in loops (as per your previous CSS) */
li.product .price span[aria-hidden="true"] + .woocommerce-Price-amount {
  display:none!important;
}
li.product .price span[aria-hidden="true"] { display:none!important; }
