/* =========================
   STICKY ADD TO CART FIX
   ========================= */

#gg-sticky-product-atc{
  position:fixed !important;
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  width:100% !important;
  margin:0 !important;
  background:#f5b400 !important;
  border-top:2px solid #000 !important;
  box-shadow:0 -6px 18px rgba(0,0,0,.12) !important;
  z-index:99999 !important;
  transform:translateY(calc(100% + 8px));
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:transform .25s ease, opacity .25s ease, visibility .25s ease !important;
}

#gg-sticky-product-atc.is-visible{
  transform:translateY(0) !important;
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
}

#gg-sticky-product-atc .gg-sticky-product-atc__inner{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:24px !important;
  min-height:108px !important;
  padding-top:16px !important;
  padding-bottom:16px !important;
}

#gg-sticky-product-atc .gg-sticky-product-atc__info{
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  min-width:0 !important;
}

#gg-sticky-product-atc .gg-sticky-product-atc__title{
  display:block !important;
  margin:0 0 8px !important;
  font-size:22px !important;
  line-height:1.1 !important;
  font-weight:800 !important;
  text-transform:uppercase !important;
  color:#000 !important;
  white-space:normal !important;
}

#gg-sticky-product-atc .gg-sticky-product-atc__price,
#gg-sticky-product-atc .gg-sticky-product-atc__price .price{
  display:flex !important;
  align-items:baseline !important;
  gap:8px !important;
  flex-wrap:wrap !important;
  margin:0 !important;
  color:#000 !important;
}

#gg-sticky-product-atc .gg-sticky-product-atc__price .woocommerce-Price-amount,
#gg-sticky-product-atc .gg-sticky-product-atc__price .amount,
#gg-sticky-product-atc .gg-sticky-product-atc__price bdi,
#gg-sticky-product-atc .gg-sticky-product-atc__price ins,
#gg-sticky-product-atc .gg-sticky-product-atc__price ins .woocommerce-Price-amount,
#gg-sticky-product-atc .gg-sticky-product-atc__price ins bdi{
  font-size:32px !important;
  line-height:1 !important;
  font-weight:800 !important;
  color:#000 !important;
  text-decoration:none !important;
}

#gg-sticky-product-atc .gg-sticky-product-atc__price del,
#gg-sticky-product-atc .gg-sticky-product-atc__price del .woocommerce-Price-amount,
#gg-sticky-product-atc .gg-sticky-product-atc__price del bdi{
  font-size:22px !important;
  line-height:1 !important;
  font-weight:800 !important;
  color:#e00 !important;
  opacity:1 !important;
}

#gg-sticky-product-atc .gg-sticky-product-atc__actions{
  display:flex !important;
  align-items:center !important;
  gap:14px !important;
  flex-shrink:0 !important;
}

#gg-sticky-product-atc .gg-sticky-product-atc__select-wrap{
  flex:0 0 auto !important;
}

#gg-sticky-product-atc .gg-sticky-product-atc__select{
  display:block !important;
  height:46px !important;
  min-width:92px !important;
  padding:0 14px !important;
  border:2px solid #000 !important;
  border-radius:10px !important;
  background:#fff7e6 !important;
  color:#000 !important;
  font-size:15px !important;
  font-weight:800 !important;
  text-transform:uppercase !important;
  line-height:1 !important;
  cursor:pointer !important;
  box-sizing:border-box !important;
  appearance:auto !important;
  -webkit-appearance:menulist !important;
}

#gg-sticky-product-atc .gg-sticky-product-atc__button{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  height:46px !important;
  min-width:230px !important;
  padding:0 22px !important;
  border:2px solid #000 !important;
  border-radius:10px !important;
  background:#36a341 !important;
  color:#FFF7E6 !important;
  font-size:15px !important;
  font-weight:800 !important;
  text-transform:uppercase !important;
  line-height:1 !important;
  cursor:pointer !important;
  box-shadow:none !important;
}

#gg-sticky-product-atc .gg-sticky-product-atc__button:hover{
  transform:translateY(-1px);
}

@media (min-width:1025px){
  #gg-sticky-product-atc .gg-sticky-product-atc__inner{
    max-width:1280px !important;
    margin:0 auto !important;
  }
}

@media (max-width:1024px){
  body.single-product{
    padding-bottom:92px !important;
  }

  #gg-sticky-product-atc .gg-sticky-product-atc__inner{
    grid-template-columns:1fr !important;
    gap:12px !important;
    min-height:auto !important;
    padding-top:12px !important;
    padding-bottom:12px !important;
  }

  #gg-sticky-product-atc .gg-sticky-product-atc__title{
    font-size:17px !important;
    margin-bottom:6px !important;
  }

  #gg-sticky-product-atc .gg-sticky-product-atc__price .woocommerce-Price-amount,
  #gg-sticky-product-atc .gg-sticky-product-atc__price .amount,
  #gg-sticky-product-atc .gg-sticky-product-atc__price bdi,
  #gg-sticky-product-atc .gg-sticky-product-atc__price ins,
  #gg-sticky-product-atc .gg-sticky-product-atc__price ins .woocommerce-Price-amount,
  #gg-sticky-product-atc .gg-sticky-product-atc__price ins bdi{
    font-size:24px !important;
  }

  #gg-sticky-product-atc .gg-sticky-product-atc__actions{
    display:grid !important;
    grid-template-columns:110px minmax(0,1fr) !important;
    gap:10px !important;
    width:100% !important;
  }

  #gg-sticky-product-atc .gg-sticky-product-atc__select-wrap{
    width:100% !important;
  }

  #gg-sticky-product-atc .gg-sticky-product-atc__select{
    width:100% !important;
    min-width:0 !important;
    height:44px !important;
    font-size:14px !important;
  }

  #gg-sticky-product-atc .gg-sticky-product-atc__button{
    width:100% !important;
    min-width:0 !important;
    height:44px !important;
    padding:0 14px !important;
    font-size:14px !important;
  }
}

@media (max-width:640px){
  #gg-sticky-product-atc .gg-sticky-product-atc__inner{
    padding-left:14px !important;
    padding-right:14px !important;
  }

  #gg-sticky-product-atc .gg-sticky-product-atc__title{
    font-size:16px !important;
  }

  #gg-sticky-product-atc .gg-sticky-product-atc__price .woocommerce-Price-amount,
  #gg-sticky-product-atc .gg-sticky-product-atc__price .amount,
  #gg-sticky-product-atc .gg-sticky-product-atc__price bdi,
  #gg-sticky-product-atc .gg-sticky-product-atc__price ins,
  #gg-sticky-product-atc .gg-sticky-product-atc__price ins .woocommerce-Price-amount,
  #gg-sticky-product-atc .gg-sticky-product-atc__price ins bdi{
    font-size:22px !important;
  }

  #gg-sticky-product-atc .gg-sticky-product-atc__actions{
    grid-template-columns:105px minmax(0,1fr) !important;
  }
}


/* =========================================================
   STICKY MOBILE COMO PRODUCT CARD
   Selector + botón icono
   ========================================================= */
@media (max-width: 900px) {

  #gg-sticky-product-atc {
    background: #f5b400 !important;
    border-top: 2px solid #111 !important;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.12) !important;
  }

  #gg-sticky-product-atc .gg-sticky-product-atc__inner {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    min-height: auto !important;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  }

  #gg-sticky-product-atc .gg-sticky-product-atc__info {
    display: block !important;
    min-width: 0 !important;
  }

  #gg-sticky-product-atc .gg-sticky-product-atc__title {
    margin: 0 0 4px !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
    color: #111 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  #gg-sticky-product-atc .gg-sticky-product-atc__price,
  #gg-sticky-product-atc .gg-sticky-product-atc__price .price {
    display: flex !important;
    align-items: baseline !important;
    gap: 6px !important;
    margin: 0 !important;
    flex-wrap: wrap !important;
  }

  #gg-sticky-product-atc .gg-sticky-product-atc__price .woocommerce-Price-amount,
  #gg-sticky-product-atc .gg-sticky-product-atc__price .amount,
  #gg-sticky-product-atc .gg-sticky-product-atc__price bdi,
  #gg-sticky-product-atc .gg-sticky-product-atc__price ins,
  #gg-sticky-product-atc .gg-sticky-product-atc__price ins .woocommerce-Price-amount,
  #gg-sticky-product-atc .gg-sticky-product-atc__price ins bdi,
  #gg-sticky-product-atc .gg-sticky-product-atc__price > .price > span {
    font-size: 15px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    color: #111 !important;
    text-decoration: none !important;
  }

  #gg-sticky-product-atc .gg-sticky-product-atc__price del,
  #gg-sticky-product-atc .gg-sticky-product-atc__price del .woocommerce-Price-amount,
  #gg-sticky-product-atc .gg-sticky-product-atc__price del bdi {
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    color: #e00 !important;
    opacity: 1 !important;
  }

  /* fila tipo product-card__add */
  #gg-sticky-product-atc .gg-sticky-product-atc__actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 42px !important;
    gap: 8px !important;
    align-items: center !important;
    width: 100% !important;
  }

  #gg-sticky-product-atc .gg-sticky-product-atc__select-wrap {
    width: 100% !important;
    min-width: 0 !important;
  }

  /* selector como cards pero con la flecha del buy box */
  #gg-sticky-product-atc .gg-sticky-product-atc__select {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 38px !important;
    padding: 0 30px 0 12px !important;
    border: 1.5px solid #111 !important;
    border-radius: 8px !important;
    background-color: #fff7e6 !important;
    color: #111 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    text-transform: none !important;
    text-align: left !important;
    text-align-last: left !important;

    background-image: url("https://ndev.gorillagrillz.com/wp-content/uploads/2026/04/Group-39.png") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 10px auto !important;
  }

  #gg-sticky-product-atc .gg-sticky-product-atc__select::-ms-expand {
    display: none !important;
  }

  /* botón icono como product-card__btn-cart */
  #gg-sticky-product-atc .gg-sticky-product-atc__button {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 38px !important;
    padding: 0 !important;
    border: 2px solid #111 !important;
    border-radius: 8px !important;
    background: #2d9843 !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    position: relative !important;
    overflow: hidden !important;
  }

  #gg-sticky-product-atc .gg-sticky-product-atc__button::before {
    content: "";
    width: 18px;
    height: 18px;
    display: block;
    background-image: url("https://ndev.gorillagrillz.com/wp-content/uploads/2026/04/cart-plus.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: brightness(0) invert(1);
  }

  #gg-sticky-product-atc .gg-sticky-product-atc__button:hover {
    transform: none !important;
    filter: brightness(.96) !important;
  }

  #gg-sticky-product-atc .gg-sticky-product-atc__button:disabled {
    opacity: .65 !important;
    cursor: not-allowed !important;
  }

  #gg-sticky-product-atc .gg-sticky-product-atc__button:disabled::before {
    opacity: .85 !important;
  }
}

@media (max-width: 900px) {
  #gg-sticky-product-atc .gg-sticky-product-atc__actions {
    display: grid !important;
  }

  #gg-sticky-product-atc .gg-sticky-product-atc__button span,
  #gg-sticky-product-atc .gg-sticky-product-atc__button svg,
  #gg-sticky-product-atc .gg-sticky-product-atc__button img {
    display: none !important;
  }
}

/* =========================================================
   STICKY DESKTOP — misma flecha que buy box
   ========================================================= */
@media (min-width: 901px) {
  #gg-sticky-product-atc .gg-sticky-product-atc__select {
    padding: 0 30px 0 12px !important;
    text-align: left !important;
    text-align-last: left !important;
    background-color: #fff7e6 !important;

    background-image: url("https://ndev.gorillagrillz.com/wp-content/uploads/2026/04/Group-39.png") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 10px auto !important;

    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
  }

  #gg-sticky-product-atc .gg-sticky-product-atc__select::-ms-expand {
    display: none !important;
  }
}

.gg-product-upsells{
  margin-top: 30px;
  margin-bottom: 10px;
}

.gg-product-category-links{
  margin-top: 30px;
}

.gg-product-related{
  margin-top: 30px;
  margin-bottom: 10px;
}

.gg-product-reviews{
  margin-top: 30px;
}

/* =========================================================
   STICKY SELECT CUSTOM DROPUP
   ========================================================= */

#gg-sticky-product-atc .gg-sticky-product-atc__select-wrap {
  position: relative !important;
}

#gg-sticky-product-atc .gg-sticky-product-atc__select {
  display: none !important;
}

#gg-sticky-product-atc .gg-sticky-dropup {
  position: relative !important;
  width: 100% !important;
}

#gg-sticky-product-atc .gg-sticky-dropup__button {
  width: 100% !important;
  height: 38px !important;
  padding: 0 30px 0 12px !important;
  border: 1.5px solid #111 !important;
  border-radius: 8px !important;
  background-color: #fff7e6 !important;
  color: #111 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-align: left !important;
  cursor: pointer !important;
  position: relative !important;
}

#gg-sticky-product-atc .gg-sticky-dropup__button::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%) rotate(180deg);
  background-image: url("https://ndev.gorillagrillz.com/wp-content/uploads/2026/04/Group-39.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

#gg-sticky-product-atc .gg-sticky-dropup__list {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: calc(100% + 8px) !important;
  z-index: 100001 !important;
  display: none !important;
  max-height: 220px !important;
  overflow-y: auto !important;
  background: #fff7e6 !important;
  border: 2px solid #111 !important;
  border-radius: 10px !important;
  box-shadow: 0 -10px 24px rgba(0,0,0,.18) !important;
  padding: 6px !important;
}

#gg-sticky-product-atc .gg-sticky-dropup.is-open .gg-sticky-dropup__list {
  display: block !important;
}

#gg-sticky-product-atc .gg-sticky-dropup__option {
  width: 100% !important;
  min-height: 36px !important;
  padding: 8px 10px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: #111 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-align: left !important;
  cursor: pointer !important;
}

#gg-sticky-product-atc .gg-sticky-dropup__option:hover,
#gg-sticky-product-atc .gg-sticky-dropup__option.is-active {
  background: #f5b400 !important;
}

#gg-sticky-product-atc .gg-sticky-dropup__option:disabled {
  opacity: .45 !important;
  cursor: not-allowed !important;
}

/* =========================================================
   GORILLA — MOBILE STICKY: oculto hasta primer toque,
   luego aparece con animación desde abajo.
   ========================================================= */
@media (max-width: 900px) {
  html body.single-product {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
    overflow-x: hidden !important;
  }

  /* Estado inicial: oculto bajo la pantalla */
  html body #gg-sticky-product-atc,
  html body #gg-sticky-product-atc.is-visible {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    margin: 0 !important;
    z-index: 99999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(100%) !important;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.45s ease,
                visibility 0.45s ease !important;
    will-change: transform !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
  }

  /* Estado visible: desliza desde abajo */
  html body #gg-sticky-product-atc.gg-sticky-revealed {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  html body #gg-sticky-product-atc .gg-sticky-product-atc__button:hover {
    transform: none !important;
  }
}

/* =========================================================
   STICKY DROPUP FIX FINAL - SIN TOCAR TAMAÑOS
   Solo evita que el desplegable se corte.
   ========================================================= */

#gg-sticky-product-atc,
#gg-sticky-product-atc .container,
#gg-sticky-product-atc .gg-sticky-product-atc__inner,
#gg-sticky-product-atc .gg-sticky-product-atc__actions,
#gg-sticky-product-atc .gg-sticky-product-atc__select-wrap,
#gg-sticky-product-atc .gg-sticky-dropup {
  overflow: visible !important;
}

#gg-sticky-product-atc .gg-sticky-product-atc__select-wrap {
  position: relative !important;
  z-index: 100002 !important;
}

#gg-sticky-product-atc .gg-sticky-dropup {
  position: relative !important;
  z-index: 100003 !important;
}

#gg-sticky-product-atc .gg-sticky-dropup__list {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
  bottom: calc(100% + 12px) !important;
  z-index: 100004 !important;

  max-height: min(260px, calc(100vh - 150px)) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;

  transform: none !important;
}

#gg-sticky-product-atc .gg-sticky-dropup.is-open .gg-sticky-dropup__list {
  display: block !important;
}