/* Bottom UI (includes/mobile-bar.php): buy bar on product pages (all sizes), floating WhatsApp elsewhere (phones). */
.gc-wa-fab { display: none; }
.gc-buybar-thumb, .gc-buybar-name { display: none; }
.gc-buybar-wa span { display: none; }

/* Tablets and desktops: the bar slides up once the page's own Add to cart form is above the screen. */
@media (min-width: 768px) {
  .gc-buybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
    background: #FFFFFF; border-top: 1px solid #ECECEC; box-shadow: 0 -8px 24px rgba(42, 29, 23, .08);
    transform: translateY(105%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s;
  }
  .gc-buybar.is-shown { transform: none; visibility: visible; transition: transform .25s ease; }
  .gc-buybar-in { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 16px; }
  .gc-buybar-thumb { display: flex; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; background: #F5F5F5; align-items: center; justify-content: center; overflow: hidden; }
  .gc-buybar-thumb img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; margin: 0; }
  .gc-buybar-name { display: block; flex: 1; min-width: 0; font-size: 15px; font-weight: 700; color: #2A1D17; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gc-buybar-name small { display: block; font-size: 12px; font-weight: 500; color: #6F625B; overflow: hidden; text-overflow: ellipsis; }
  .gc-buybar-price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; font-size: 18px; font-weight: 800; color: #2A1D17; white-space: nowrap; }
  .gc-buybar-price del { font-size: 12px; font-weight: 500; color: #6F625B; order: -1; }
  .gc-buybar-price ins { text-decoration: none; }
  .gc-buybar-price .screen-reader-text { position: absolute; clip: rect(0 0 0 0); width: 1px; height: 1px; overflow: hidden; }
  a.gc-buybar-wa { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border: 1px solid #ECECEC; border-radius: 999px; color: #1A9E4B; font-size: 14px; font-weight: 700; text-decoration: none; }
  a.gc-buybar-wa:hover { background: #F5F5F5; }
  .gc-buybar-wa .gc-wa-icon { width: 18px; height: 18px; }
  .gc-buybar-wa span { display: inline; }
  .gc-buybar-add { height: 46px; padding: 0 34px; border: 0; border-radius: 999px; background: #FF7A1A; color: #2A1D17; font-size: 15px; font-weight: 800; cursor: pointer; }
  .gc-buybar-add:hover { background: #F26B0C; }
  body.single-product { padding-bottom: 72px; }
}
@media (max-width: 767px) {
  .gc-buybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
    background: #FFFFFF; border-top: 1px solid #ECECEC; box-shadow: 0 -6px 20px rgba(42, 29, 23, .06);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }
  .gc-buybar-in { display: flex; align-items: center; gap: 12px; }
  .gc-buybar-wa { order: -1; flex: 0 0 44px; height: 44px; border-radius: 50%; border: 1px solid #ECECEC; display: flex; align-items: center; justify-content: center; color: #1A9E4B; }
  .gc-buybar-wa .gc-wa-icon { width: 22px; height: 22px; }
  .gc-buybar-price { display: flex; flex-direction: column; line-height: 1.15; font-size: 17px; font-weight: 800; color: #2A1D17; white-space: nowrap; }
  .gc-buybar-price del { font-size: 12px; font-weight: 500; color: #6F625B; order: -1; }
  .gc-buybar-price ins { text-decoration: none; }
  .gc-buybar-price .screen-reader-text { position: absolute; clip: rect(0 0 0 0); width: 1px; height: 1px; overflow: hidden; }
  .gc-buybar-add { flex: 1; height: 46px; border: 0; border-radius: 999px; background: #FF7A1A; color: #2A1D17; font-size: 15px; font-weight: 700; cursor: pointer; }
  .gc-buybar-add:active { transform: scale(.98); }
  body.single-product { padding-bottom: 76px; }

  .gc-wa-fab {
    display: flex; align-items: center; justify-content: center;
    position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 999;
    width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #FFFFFF;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  }
  .gc-wa-fab .gc-wa-icon { width: 28px; height: 28px; }
}
.gc-wa-fab { transition: opacity .2s ease, transform .2s ease; }
.gc-wa-fab.is-hidden { opacity: 0; transform: scale(.85); pointer-events: none; }

/* Product photo viewer (tap a photo): white background so the white-backed photos blend in, tea-brown top bar so the white icons stay visible. */
.pswp .pswp__bg { background: #FFFFFF !important; }
.pswp--open .pswp__bg { opacity: 1 !important; }
.pswp__top-bar { background: #2A1D17 !important; opacity: 1 !important; }
.pswp__caption { display: none; }
.pswp__button--arrow--left::before, .pswp__button--arrow--right::before { background-color: #2A1D17; border-radius: 999px; }

/* Product page buy row: − qty + pill and Add to cart side by side, same height, on every screen size. */
.single-product .summary form.cart:not(.variations_form), .single-product .summary .woocommerce-variation-add-to-cart { display: flex !important; flex-wrap: nowrap !important; align-items: center; gap: 12px; margin: 20px 0 0; }
.single-product .summary form.cart .gc-pp-qty { flex: 0 0 auto; margin: 0; align-self: center; display: inline-flex; align-items: center; height: 54px; padding: 0 5px; border: 1px solid #E4E4E4; border-radius: 999px; background: #FFFFFF; }
.single-product .summary form.cart .gc-pp-qty .quantity { margin: 0 !important; }
.single-product .summary form.cart .gc-pp-qty .gc-qty-btn { width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #2A1D17; font-size: 22px; font-weight: 500; line-height: 1; cursor: pointer; box-shadow: none; display: grid; place-items: center; }
.single-product .summary form.cart .gc-pp-qty .gc-qty-btn:hover:not(:disabled) { background: #F5F5F5; }
.single-product .summary form.cart .gc-pp-qty .gc-qty-btn:disabled { opacity: .3; cursor: default; }
.single-product .summary form.cart .gc-pp-qty .gc-qty-btn:focus-visible { outline: 2px solid #FF7A1A; outline-offset: 1px; }
.single-product .summary form.cart .gc-pp-qty input.qty { width: 36px; height: 42px; padding: 0; margin: 0; border: 0 !important; background: none; box-shadow: none !important; text-align: center; font-size: 17px; font-weight: 700; color: #2A1D17; -moz-appearance: textfield; }
.single-product .summary form.cart .gc-pp-qty input.qty::-webkit-outer-spin-button, .single-product .summary form.cart .gc-pp-qty input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.single-product .summary form.cart .single_add_to_cart_button { flex: 1 1 auto; width: auto !important; min-height: 54px !important; height: 54px !important; line-height: 1 !important; margin: 0 !important; padding: 0 28px !important; border-radius: 999px; font-size: 17px !important; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
