/* =========================
   Remove Storefront hover pagination
   ========================= */
body.single-product .storefront-product-pagination{
  display: none !important;
}

/* =========================
   Prevent clipping (desktop right cut)
   ========================= */
body.single-product .site-content,
body.single-product .site-main,
body.single-product .content-area,
body.single-product .woocommerce,
body.single-product #primary,
body.single-product #content,
body.single-product .col-full,
body.single-product div.product{
  overflow: visible !important;
}

/* =========================
   Base containers
   ========================= */
body.single-product .site-content,
body.single-product .site-main,
body.single-product .content-area,
body.single-product .woocommerce{
  width: 100% !important;
  max-width: none !important;
}

/* Desktop default product wrapper */
body.single-product div.product{
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 22px 18px 0 !important;
}

/* =========================
   Desktop: 2-column grid
   ========================= */
@media (min-width: 992px){
  body.single-product div.product .gb-grid{
    display: grid !important;
    grid-template-columns: 58% 42% !important;
    gap: 36px !important;
    align-items: start !important;
  }

  body.single-product div.product .gb-left,
  body.single-product div.product .gb-right{
    min-width: 0 !important;
    overflow: visible !important;
  }
}

/* Neutralize floats/clears that break columns */
body.single-product div.product .woocommerce-product-gallery,
body.single-product div.product .summary{
  float: none !important;
  clear: none !important;
  width: auto !important;
  margin: 0 !important;
}

/* =========================
   Gallery fills left column
   ========================= */
body.single-product div.product .gb-left .woocommerce-product-gallery{
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

body.single-product div.product .gb-left .woocommerce-product-gallery__wrapper{
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-product div.product .gb-left .woocommerce-product-gallery__image{
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-product div.product .gb-left .woocommerce-product-gallery__image img,
body.single-product div.product .gb-left .woocommerce-product-gallery img{
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  cursor: default !important;
}

/* =========================
   Mobile
   ========================= */
@media (max-width: 991px){
  body.single-product div.product{
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.single-product div.product .gb-grid{
    display: block !important;
    padding: 0 !important;
  }

  body.single-product div.product .gb-left,
  body.single-product div.product .gb-right{
    margin: 0 !important;
    padding: 0 !important;
  }

  body.single-product div.product .gb-right .gb-buybox{
    width: 100% !important;
  }
}

/* =========================
   Disable zoom / lightbox UI only
   ========================= */
body.single-product .woocommerce-product-gallery__trigger{
  display: none !important;
}

/* =========================
   Typography
   ========================= */
body.single-product .product_title{
  font-size: 28px !important;
  line-height: 1.15 !important;
  margin: 0 0 8px !important;
}
body.single-product .woocommerce-product-rating{
  margin: 6px 0 8px !important;
}
body.single-product.price{
  margin: 4px 0 12px !important;
  font-size: 16px !important;
  margin-top: 7px !important;
  color: var(--gb-primary) !important;
}

/* Make top price line keep badge on the right (inline, not under) */
body.single-product .gb-price-top, .single-product div.product p.price{
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 20px !important;
}
body.single-product .gb-price-top .price{
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* Hide Woo variation price block under selects */
body.single-product .woocommerce-variation-price,
body.single-product .woocommerce-variation-availability{
  display: none !important;
}

/* =========================
   Variations styling (FORCE full width)
   ========================= */
body.single-product form.variations_form{
  margin-top: 10px !important;
}

body.single-product table.variations{
  border: 0 !important;
  margin: 0 0 10px 0 !important;
  width: 100% !important;
}

body.single-product table.variations tr{
  display: block !important;
  margin-bottom: 10px !important;
}

body.single-product table.variations td{
  display: block !important;
  padding: 0 !important;
  width: 100% !important;
}

body.single-product table.variations td.label{
  display: block !important;
  margin: 0 0 6px 0 !important;
  font-size: 13px !important;
  color: rgba(17,24,39,.70) !important;
  text-transform: none !important;
}

body.single-product table.variations td.value{
  position: relative !important;
  width: 100% !important;
}
body.single-product table.variations td.value::after{
  display: none !important;
  content: none !important;
}

/* Select full width */
body.single-product div.product table.variations select,
body.single-product div.product form.variations_form select{
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;

  height: 44px !important;
  padding: 10px 44px 10px 12px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(17,24,39,.22) !important;
  background-color: #fff !important;

  font-family: var(--gb-font) !important;
  font-size: 14px !important;
  line-height: 22px !important;
  letter-spacing: 0 !important;
  color: #111827 !important;

  box-shadow: none !important;
  outline: none !important;

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

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(17,24,39,0.55)' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 14px 14px !important;
}

body.single-product .reset_variations{
  display: none !important;
}

/* =========================
   Cart area
   ========================= */
body.single-product form.cart{
  margin: 8px 0 0 !important;
}
body.single-product form.cart .quantity{
  display: none !important;
}
body.single-product button.single_add_to_cart_button{
  width: 100% !important;
  height: 52px !important;
  border-radius: 999px !important;
  font-size: 15px !important;
  margin-top: 8px !important;
}

/* Hide SKU/category */
body.single-product .gb-buybox .product_meta{
  display: none !important;
}

/* Keep tabs + upsells hidden (but allow related products) */
body.single-product .woocommerce-tabs,
body.single-product .up-sells,
body.single-product .upsells{
  display: none !important;
}

/* Media shadow */
/* Media shadow (scoped, so it won't affect header/logo/sitewide images) */
body.single-product .woocommerce-product-gallery__image img,
body.single-product .woocommerce-product-gallery img,
body.single-product .gb-left img,
body.single-product .gb-right img,
body.single-product .entry-summary img,
body.single-product .woocommerce-product-details__short-description img,
body.single-product video,
body.single-product iframe,
body.single-product .wp-block-image img{
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Never shadow header logos even if something else adds it */
.site-header img,
.site-header .custom-logo,
.site-header .site-logo img{
  box-shadow: none !important;
}

/* Remove borders/padding/margins from gallery containers */
body.single-product .woocommerce-product-gallery,
body.single-product .woocommerce-product-gallery__wrapper,
body.single-product .woocommerce-product-gallery__image{
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
body.single-product .woocommerce-product-gallery__image a,
body.single-product .woocommerce-product-gallery__image img{
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
body.single-product .gb-left,
body.single-product .gb-left *{
  border: 0 !important;
}

/* =========================================================
   SOLD OUT UI
   ========================================================= */
body.single-product .gb-soldout-badge{
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  padding: 4px 10px;
  border: 1px solid #ff0000;
  color: #ff0000;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  border-radius: 0;
}

/* Sold out button look */
body.single-product .gb-btn-soldout{
  background: #e5e7eb !important;
  color: #111827 !important;
  border: 1px solid rgba(17,24,39,.18) !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
}

/* Hide express checkout rows when sold out */
body.single-product .gb-hide-payreq .wcpay-payment-request-wrapper,
body.single-product .gb-hide-payreq .wc-stripe-payment-request-wrapper,
body.single-product .gb-hide-payreq .wcpay-express-checkout-wrapper{
  display: none !important;
}

/* =========================
   Related products (Shopify-like)
   ========================= */
body.single-product section.related{
  display: block !important;
  max-width: 1200px;
  margin: 28px auto 0;
  padding: 0 18px 24px;
}

body.single-product section.related > h2{
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 14px;
}

body.single-product section.related ul.products{
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  display: grid !important;
  gap: 18px !important;
}

/* Desktop: 4 columns */
@media (min-width: 751px){
  body.single-product section.related ul.products{
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* Mobile: 2 columns */
@media (max-width: 750px){
  body.single-product section.related{
    padding: 40px 0px;
  }
  body.single-product section.related ul.products{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}

/* Card cleanup */
body.single-product section.related ul.products li.product{
  margin: 0 !important;
  float: none !important;
  width: auto !important;
  text-align: left !important;
}

body.single-product section.related ul.products li.product a{
  text-decoration: none !important;
}

body.single-product section.related ul.products li.product img{
  width: 100% !important;
  height: auto !important;
}

/* Title + price styling */
body.single-product section.related ul.products li.product .woocommerce-loop-product__title{
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  margin: 10px 0 6px !important;
  color: #111827 !important;
}

body.single-product section.related ul.products li.product .price{
  margin: 0 !important;
  font-weight: 700 !important;
  color: #1cbcff !important;
        margin-top: 7px !important;
}

/* =========================
   Product accordion (Details / Delivery)
   ========================= */
.gb-acc{
  margin-top: 16px !important;
  border-top: 1px solid rgba(17,24,39,.10) !important;
}

.gb-acc__item{
  border-bottom: 1px solid rgba(17,24,39,.10) !important;
}

.gb-acc__summary{
  list-style: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 16px 0 !important;
  font-weight: 700 !important;
  color: rgba(17,24,39,.92) !important;
}

.gb-acc__summary::-webkit-details-marker{
  display: none !important;
}

.gb-acc__chev{
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  transition: transform .18s ease !important;
  color: rgba(17,24,39,.72) !important;
}

.gb-acc__item[open] .gb-acc__chev{
  transform: rotate(180deg) !important;
}

.gb-acc__panel{
  padding: 0 0 16px 0 !important;
  color: rgba(17,24,39,.72) !important;
  line-height: 1.55 !important;
}

.gb-acc__panel p{
  margin: 0 0 10px 0 !important;
}

.gb-acc__panel p:last-child{
  margin-bottom: 0 !important;
}

.gb-badges{
  display:flex;
  flex-wrap:nowrap;
  gap:8px;
  margin:10px 0 8px;
  white-space:nowrap;
}

.gb-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 14px;
  border-radius:999px;
  font-weight:700;
  font-size:13px;
  line-height:1;
}

.gb-badge--green{
  background: rgba(40, 201, 127, .10);
  color: #28c97f;
}

/* Optional: if too narrow, hide the second badge */
@media (max-width: 360px){
  .gb-badges .gb-badge:last-child{ display:none; }
}
@media screen and (max-width: 950px){
.woocommerce-product-gallery > div > div > a > img {
    margin-top: 12px !important;
    margin-bottom: 12px !important;
}}

.single-product div.product form.cart {
    padding: 0 !important;
}

.single-product div.product .variations_button {
    padding: 0 !important;
    margin-top: -10px !important;
}

/* PDP rating/count above title */
.gb-pdp-rating{
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}

/* If Judge.me outputs inline elements, keep it tidy */
.gb-pdp-rating--judgeme *{
  max-width: 100%;
}

/* Optional: make sure Woo fallback isn't huge */
.gb-pdp-rating--woo .star-rating{
  margin: 0;
}

.col-full .gb-games {
    padding: 0 !important;
}
/* =====================================
   Apple Pay = same height as main button
   ===================================== */

body.single-product 
#mollie_applepay_button.apple-pay-button,
body.single-product 
button.apple-pay-button,
body.single-product 
.apple-pay-button-wrapper button{
  height: 52px !important;
  min-height: 52px !important;
  line-height: 52px !important;
  border-radius: 999px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 5px !important;
}

/* Shopify-like sold out badge */
.price__badge-sold-out {
    display: inline-block;
    font-family: Assistant, sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: .1rem;
    line-height: 1;
    padding: 5px 10px;
    text-align: center;
    word-break: break-word;
    background: rgba(255, 255, 255, .8);
    border: 1px solid red;
    color: red;
    text-transform: uppercase;
    vertical-align: top;
    margin-top: 0;
}

/* Disabled add-to-cart should look like Shopify (visible but not clickable) */
.single-product .single_add_to_cart_button[disabled],
.single-product .single_add_to_cart_button.disabled {
  opacity: .4 !important;
}