/* R48 Runtime Hotfix 1.0.6 — product detail, gallery, stock, quantity */

/* R1.0.5 helper is intentionally removed: required marker is enough. */
.woocommerce-checkout #billing_phone_field .description,
.woocommerce-account #billing_phone_field .description{display:none!important}

/* Keep all displayed store prices in the visual language of the approved static design. */
.woocommerce-Price-amount{font-variant-numeric:tabular-nums}

/* Product layout */
.single-product .r48-product-detail{display:grid!important;grid-template-columns:minmax(0,1.12fr) minmax(330px,.88fr)!important;gap:48px!important;align-items:start!important}
.single-product .r48-buybox{border-left:6px solid var(--r48-yellow)!important;padding:0 0 0 26px!important;min-width:0!important}
.single-product .r48-buybox .price,
.single-product .r48-buybox .r48-price{font-family:var(--r48-display)!important;font-weight:900!important;line-height:.95!important;letter-spacing:-.025em!important;margin:12px 0 16px!important}

/* Two-state availability badge */
.r48-pro-stock{display:inline-flex;align-items:center;gap:9px;margin:2px 0 20px;padding:9px 12px;border:2px solid #111;background:#fff;font-family:var(--r48-display);font-size:15px;font-weight:900;text-transform:uppercase;letter-spacing:.02em}
.r48-pro-stock::before{content:"";width:10px;height:10px;border-radius:50%;background:#17833b;box-shadow:0 0 0 3px rgba(23,131,59,.12)}
.r48-pro-stock.is-sold-out{color:#fff;background:var(--r48-red,#cf1726);border-color:var(--r48-red,#cf1726)}
.r48-pro-stock.is-sold-out::before{background:#fff;box-shadow:none}
.single-product .r48-buybox .stock.r48-native-stock{display:none!important}

/* Gallery */
.r48-pro-gallery{display:grid;gap:12px;min-width:0}
.r48-pro-gallery__stage{position:relative;display:grid;place-items:center;aspect-ratio:1/1;overflow:hidden;background:#fff;border:1px solid #cfc8bb;box-shadow:8px 8px 0 #111}
.r48-pro-gallery__image-button{appearance:none;border:0;background:transparent;padding:0;margin:0;width:100%;height:100%;display:grid;place-items:center;cursor:zoom-in}
.r48-pro-gallery__main{width:100%;height:100%;object-fit:contain;display:block;background:#fff}
.r48-pro-gallery__zoom{position:absolute;right:12px;top:12px;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:2px solid #111;background:var(--r48-yellow);color:#111;font:900 22px/1 var(--r48-display);pointer-events:none;box-shadow:3px 3px 0 #111}
.r48-pro-gallery__counter{position:absolute;left:12px;bottom:12px;padding:7px 10px;background:#111;color:#fff;font:900 13px/1 var(--r48-display);letter-spacing:.04em}
.r48-pro-gallery__arrow{position:absolute;top:50%;transform:translateY(-50%);width:46px;height:52px;border:0;background:#111;color:#fff;font:900 28px/1 var(--r48-display);cursor:pointer;z-index:2}
.r48-pro-gallery__arrow:hover,.r48-pro-gallery__arrow:focus-visible{background:var(--r48-yellow);color:#111;outline:3px solid #111;outline-offset:2px}
.r48-pro-gallery__arrow--prev{left:12px}.r48-pro-gallery__arrow--next{right:12px}
.r48-pro-gallery[data-count="1"] .r48-pro-gallery__arrow,.r48-pro-gallery[data-count="1"] .r48-pro-gallery__counter{display:none}
.r48-pro-gallery__thumbs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.r48-pro-gallery__thumb{position:relative;appearance:none;padding:0;border:2px solid #d5cec2;background:#fff;aspect-ratio:1/1;overflow:hidden;cursor:pointer}
.r48-pro-gallery__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.r48-pro-gallery__thumb:hover{border-color:#111}.r48-pro-gallery__thumb.is-active{border-color:#111;box-shadow:inset 0 -6px 0 var(--r48-yellow)}
.r48-pro-gallery__thumb:focus-visible{outline:3px solid var(--r48-yellow);outline-offset:2px}

/* Lightbox */
.r48-pro-lightbox{border:0;padding:0;background:#111;color:#fff;width:min(94vw,1180px);max-width:none;height:min(92vh,900px);overflow:hidden;box-shadow:0 24px 80px rgba(0,0,0,.55)}
.r48-pro-lightbox::backdrop{background:rgba(0,0,0,.86)}
.r48-pro-lightbox__inner{position:relative;width:100%;height:100%;display:grid;grid-template-rows:1fr auto;place-items:center;padding:64px 72px 24px}
.r48-pro-lightbox__image{max-width:100%;max-height:calc(92vh - 120px);object-fit:contain}
.r48-pro-lightbox__close{position:absolute;top:14px;right:14px;width:46px;height:46px;border:2px solid #fff;background:#111;color:#fff;font:900 27px/1 sans-serif;cursor:pointer}
.r48-pro-lightbox__close:hover,.r48-pro-lightbox__close:focus-visible{background:var(--r48-yellow);color:#111;border-color:#111}
.r48-pro-lightbox__arrow{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:58px;border:0;background:var(--r48-yellow);color:#111;font:900 30px/1 var(--r48-display);cursor:pointer}
.r48-pro-lightbox__arrow--prev{left:14px}.r48-pro-lightbox__arrow--next{right:14px}
.r48-pro-lightbox[data-count="1"] .r48-pro-lightbox__arrow{display:none}
.r48-pro-lightbox__caption{font-family:var(--r48-display);font-weight:900;text-transform:uppercase;padding-top:12px;text-align:center}

/* Real Woo select remains in DOM; JS adds accessible visual buttons. */
.r48-pro-attribute{margin:0 0 18px}
.r48-pro-attribute__label{display:block;margin:0 0 8px;font-family:var(--r48-display);font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.r48-pro-attribute__options{display:flex;flex-wrap:wrap;gap:8px}
.r48-pro-attribute__option{appearance:none;min-width:52px;min-height:46px;padding:9px 14px;border:2px solid #111;background:#fff;color:#111;font-family:var(--r48-display);font-size:15px;font-weight:900;text-transform:uppercase;cursor:pointer;transition:transform .12s ease,background .12s ease,color .12s ease}
.r48-pro-attribute__option:hover{transform:translateY(-1px);background:#111;color:#fff}
.r48-pro-attribute__option[aria-pressed="true"]{background:var(--r48-yellow);color:#111;box-shadow:inset 0 -4px 0 #111}
.r48-pro-attribute__option:disabled{opacity:.35;cursor:not-allowed;transform:none;background:#eee;color:#777}
.r48-pro-select--enhanced{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.single-product .r48-buybox table.variations{margin:0!important;border:0!important;background:transparent!important}
.single-product .r48-buybox table.variations tr,.single-product .r48-buybox table.variations td{display:block!important;border:0!important;padding:0!important;background:transparent!important}
.single-product .r48-buybox table.variations th{display:none!important}
.single-product .r48-buybox .reset_variations{display:inline-block!important;margin:6px 0 2px!important;color:#111!important;font-size:12px!important;text-decoration:underline!important;text-underline-offset:2px!important}

/* Quantity + purchase CTA */
.single-product .r48-buybox form.cart:not(.variations_form),
.single-product .r48-buybox .woocommerce-variation-add-to-cart{display:flex!important;align-items:stretch!important;gap:10px!important;flex-wrap:nowrap!important;margin-top:12px!important}
.single-product .r48-buybox .quantity{display:grid!important;grid-template-columns:42px minmax(48px,58px) 42px!important;align-items:stretch!important;flex:0 0 auto!important;margin:0!important;border:2px solid #111!important;background:#fff!important;min-height:50px!important}
.single-product .r48-buybox .quantity .qty{width:100%!important;min-width:0!important;height:100%!important;min-height:46px!important;border:0!important;border-left:1px solid #d0c8bb!important;border-right:1px solid #d0c8bb!important;border-radius:0!important;background:#fff!important;text-align:center!important;font-weight:900!important;-moz-appearance:textfield!important}
.single-product .r48-buybox .quantity .qty::-webkit-outer-spin-button,.single-product .r48-buybox .quantity .qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.r48-pro-qty-btn{appearance:none;border:0;background:#111;color:#fff;font:900 24px/1 var(--r48-display);cursor:pointer;padding:0}
.r48-pro-qty-btn:hover,.r48-pro-qty-btn:focus-visible{background:var(--r48-yellow);color:#111;outline:0}
.single-product .r48-buybox .single_add_to_cart_button{flex:1 1 auto!important;width:auto!important;min-height:50px!important;margin:0!important;padding:12px 18px!important;border:2px solid #111!important;border-radius:0!important;background:var(--r48-yellow)!important;color:#111!important;font-family:var(--r48-display)!important;font-size:16px!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.02em!important;box-shadow:4px 4px 0 #111!important}
.single-product .r48-buybox .single_add_to_cart_button:hover{transform:translate(-1px,-1px);box-shadow:6px 6px 0 #111!important}
.single-product .r48-buybox .single_add_to_cart_button.disabled,.single-product .r48-buybox .single_add_to_cart_button:disabled{background:#cfc8bb!important;color:#746d63!important;cursor:not-allowed!important;box-shadow:none!important;transform:none!important}
.single-product .r48-buybox .woocommerce-variation-description{font-size:13px;line-height:1.5;margin:8px 0}
.single-product .r48-buybox .woocommerce-variation-price{margin:8px 0}
.single-product .r48-buybox select{min-height:48px!important;border:2px solid #111!important;border-radius:0!important;background:#fff!important;font-weight:800!important}

@media(max-width:900px){
  .single-product .r48-product-detail{grid-template-columns:1fr!important;gap:34px!important}
  .single-product .r48-buybox{padding-left:20px!important}
  .r48-pro-gallery__thumbs{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:560px){
  .r48-pro-gallery__stage{box-shadow:5px 5px 0 #111}
  .r48-pro-gallery__thumbs{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
  .r48-pro-gallery__arrow{width:40px;height:46px}.r48-pro-gallery__arrow--prev{left:7px}.r48-pro-gallery__arrow--next{right:7px}
  .single-product .r48-buybox form.cart:not(.variations_form),.single-product .r48-buybox .woocommerce-variation-add-to-cart{gap:8px!important}
  .single-product .r48-buybox .quantity{grid-template-columns:38px 46px 38px!important}
  .single-product .r48-buybox .single_add_to_cart_button{font-size:14px!important;padding-inline:10px!important}
  .r48-pro-lightbox__inner{padding:58px 14px 18px}.r48-pro-lightbox__arrow{width:42px;height:52px}.r48-pro-lightbox__arrow--prev{left:6px}.r48-pro-lightbox__arrow--next{right:6px}
}
@media(prefers-reduced-motion:reduce){.r48-pro-attribute__option,.single-product .r48-buybox .single_add_to_cart_button{transition:none!important}}
