/* EraLuma Order Studio 1.2 — Astra legacy removal, mode badge in details, gallery carousel, high-contrast buttons. */
body.eos-product-page .woocommerce div.product .summary.entry-summary > :not(.eos-product-intro):not(.eos-purchase-zone),
body.eos-product-page .woocommerce div.product .summary > :not(.eos-product-intro):not(.eos-purchase-zone),
body.eos-product-page .woocommerce div.product .summary .ast-single-product-payments,
body.eos-product-page .woocommerce div.product .summary .ast-woo-single-product-payments,
body.eos-product-page .woocommerce div.product .summary .ast-single-product-extras,
body.eos-product-page .woocommerce div.product .summary .astra-single-product-payment,
body.eos-product-page .woocommerce div.product .summary .woocommerce-product-details__short-description,
body.eos-product-page .woocommerce div.product .summary .product_meta,
body.eos-product-page .woocommerce div.product .summary form.cart:not(.eos-ready-cart),
body.eos-product-page .woocommerce div.product .summary > .product_title,
body.eos-product-page .woocommerce div.product .summary > .price,
body.eos-product-page .woocommerce div.product .summary .woocommerce-shipping-text,
body.eos-product-page .ast-sticky-add-to-cart,
body.eos-product-page .ast-sticky-add-to-cart-bar,
body.eos-product-page .ast-sticky-add-to-cart-wrapper { display:none!important; }
/* Existing shop/category badges stay; do not overlay the full-size single-product photo. */
body.eos-product-page .woocommerce div.product .woocommerce-product-gallery .eos-product-badge,
body.eos-product-page .woocommerce div.product .woocommerce-product-gallery .eos-custom,
body.eos-product-page .woocommerce div.product .woocommerce-product-gallery .eos-ready { display:none!important; }
body.eos-product-page .eos-intro-head { display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px; }
body.eos-product-page .eos-intro-head .eos-section-eyebrow { margin:0!important; }
body.eos-product-page .eos-info-badge {
  display:inline-flex;align-items:center;justify-content:center;
  gap:7px;min-width:115px;min-height:38px;padding:8px 16px;
  background:linear-gradient(135deg,#1b3157,#243b64);border:1px solid #e0c17f;
  box-shadow:0 6px 20px #0004,inset 0 1px 0 #ffffff29;
  border-radius:999px;color:#fff2c9;font:800 13px/1.3 'Tajawal',Tahoma,sans-serif;
}
body.eos-product-page .eos-info-badge::before{content:'';width:7px;height:7px;background:#eccb82;border-radius:50%;box-shadow:0 0 0 4px #eccb8222;}
body.eos-page-custom .eos-info-badge{background:linear-gradient(135deg,#624a28,#ab8148);border-color:#f0d59e;color:#fff9e9;}
/* Explicit additional product images: behind WooCommerce flexslider, but independently controlled visually. */
body.eos-product-page .woocommerce div.product .woocommerce-product-gallery .flex-control-nav.flex-control-thumbs,
body.eos-product-page .woocommerce div.product .woocommerce-product-gallery ol.flex-control-thumbs {display:none!important;}
body.eos-product-page .woocommerce div.product .woocommerce-product-gallery .eos-gallery-rail{
  width:100%;min-width:0;display:flex!important;flex-direction:column;gap:14px;
  padding:20px clamp(16px,2vw,28px) 24px;background:linear-gradient(150deg,#101a2e,#192945 74%,#0d1729);
  border-top:1px solid #d8b97138;position:relative;z-index:3;
}
body.eos-product-page .eos-gallery-rail-head{display:flex;align-items:center;justify-content:space-between;gap:10px;direction:rtl;}
body.eos-product-page .eos-gallery-rail-head>div{display:flex;flex-direction:column;gap:4px;}
body.eos-product-page .eos-gallery-eyebrow{font:700 10px/1.25 Arial,sans-serif;letter-spacing:2.2px;color:#bc9e60;direction:ltr;text-align:right;}
body.eos-product-page .eos-gallery-rail-head strong{font:800 17px/1.4 'Tajawal',Tahoma,sans-serif;color:#fff4d5;}
body.eos-product-page .eos-gallery-count{flex:none;color:#c4d0e0;font:600 12px/1.4 'Tajawal',Tahoma,sans-serif;}
body.eos-product-page .eos-gallery-controls{display:grid;grid-template-columns:42px minmax(0,1fr) 42px;align-items:center;gap:12px;direction:rtl;}
body.eos-product-page .eos-gallery-track{display:flex!important;gap:12px;min-width:0;min-height:98px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;padding:3px 2px 8px;direction:rtl;}
body.eos-product-page .eos-gallery-track::-webkit-scrollbar{display:none;}
body.eos-product-page .eos-gallery-thumb{appearance:none;display:block;flex:0 0 95px;width:95px;height:95px;padding:4px!important;border-radius:15px!important;background:#091426!important;border:2px solid #7e8a9a77!important;box-shadow:0 7px 20px #0004;overflow:hidden;cursor:pointer;scroll-snap-align:start;transition:transform .22s,border-color .22s,box-shadow .22s;}
body.eos-product-page .eos-gallery-thumb img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;border-radius:10px!important;opacity:1!important;}
body.eos-product-page .eos-gallery-thumb:is(.is-active,:hover,:focus-visible){border-color:#f3d182!important;box-shadow:0 0 0 2px #d1af6c45,0 13px 24px #0006;transform:translateY(-2px);}
body.eos-product-page .eos-gallery-thumb:focus-visible{outline:2px solid #f7dfad;outline-offset:3px;}
body.eos-product-page .eos-gallery-arrow{display:grid!important;place-items:center;appearance:none;width:42px;height:46px;padding:0!important;border-radius:13px!important;border:1px solid #e0c17f9e!important;background:#192b4d!important;color:#fff0c4!important;font-size:19px!important;line-height:1!important;cursor:pointer;transition:background .2s,transform .2s;}
body.eos-product-page .eos-gallery-arrow:hover{background:#2d4676!important;transform:translateY(-1px);}
/* Keep the red discount indicator anchored in its standard photo corner. */
body.eos-product-page .woocommerce div.product span.onsale {right:15px!important;left:auto!important;top:15px!important;z-index:18!important;background:#c81e39!important;color:#fff!important;}
/* One high-contrast secondary-button style for both personalization and checkout dialogs. */
.eos-dialog .eos-panel button.eos-button-outline,
.eos-dialog .eos-panel .eos-actions button.eos-button-outline,
.eos-dialog .eos-panel .eos-success-actions #eos-whatsapp-share {
  color:#11274a!important;-webkit-text-fill-color:#11274a!important;
  background:#fffaf0!important;background-image:none!important;
  border:2px solid #233b63!important;
  box-shadow:0 5px 17px #101e3921!important;
  text-shadow:none!important;opacity:1!important;
  font-weight:800!important;letter-spacing:0!important;
}
.eos-dialog .eos-panel button.eos-button-outline:not(:disabled):hover,
.eos-dialog .eos-panel .eos-success-actions #eos-whatsapp-share:hover {
  background:#f1e5cd!important;color:#0d2141!important;-webkit-text-fill-color:#0d2141!important;
  border-color:#101e3b!important;box-shadow:0 10px 24px #101e392e!important;
}
.eos-dialog .eos-panel button.eos-button-outline:focus-visible,
.eos-dialog .eos-panel .eos-success-actions #eos-whatsapp-share:focus-visible{outline:3px solid #e0bb6c!important;outline-offset:3px;}
.eos-dialog .eos-panel button.eos-button-outline:disabled{opacity:.54!important;color:#243b63!important;-webkit-text-fill-color:#243b63!important;cursor:not-allowed!important;}
@media(max-width:1200px){body.eos-product-page .woocommerce div.product .eos-gallery-thumb{flex-basis:84px;width:84px;height:84px}}
@media(max-width:680px){body.eos-product-page .woocommerce div.product .woocommerce-product-gallery .eos-gallery-rail{padding:15px 13px 18px;gap:9px}body.eos-product-page .eos-gallery-controls{grid-template-columns:33px minmax(0,1fr) 33px;gap:7px}body.eos-product-page .eos-gallery-arrow{width:33px;height:42px;font-size:15px}body.eos-product-page .woocommerce div.product .eos-gallery-thumb{flex-basis:72px;width:72px;height:72px;border-radius:12px!important}body.eos-product-page .eos-gallery-thumb img{border-radius:8px!important}body.eos-product-page .eos-gallery-track{min-height:75px;gap:8px}body.eos-product-page .eos-gallery-rail-head strong{font-size:15px}body.eos-product-page .eos-info-badge{min-height:34px;padding:6px 11px;font-size:12px}}
@media(prefers-reduced-motion:reduce){body.eos-product-page .eos-gallery-thumb,body.eos-product-page .eos-gallery-arrow{transition:none!important}}

/* Respect disabled/hidden state even when earlier theme rules force display:flex. */
.eos-dialog [hidden],.eos-dialog .eos-success-actions button[hidden]{display:none!important;}

/* Server renders the rail as a sibling to avoid inserting a fake FlexSlider image slide. */
body.eos-product-page .woocommerce div.product > .eos-gallery-rail{display:none!important;}
