/**
 * Yorocker 2.3 — ecosystem integration presentation.
 */

/* WooCommerce */
.yr-woocommerce ul.products li.product{position:relative;overflow:hidden}
.yr-woocommerce .yr-product-sale{min-width:auto;min-height:auto;padding:.42rem .55rem;border-radius:4px;line-height:1;background:var(--yr-accent,#0088cc);font-weight:900}
.yr-product-quick-view{width:100%;margin-top:.45rem!important}
.yr-product-modal[hidden]{display:none}
.yr-product-modal{position:fixed;z-index:100020;inset:0;display:grid;place-items:center;padding:20px}
.yr-product-modal__backdrop{position:absolute;inset:0;background:rgba(2,6,23,.76);backdrop-filter:blur(4px)}
.yr-product-modal__dialog{position:relative;z-index:1;width:min(900px,100%);max-height:min(720px,90vh);overflow:auto;padding:clamp(1rem,2vw,1.5rem);border-radius:12px;background:var(--yr-surface,#fff);box-shadow:0 24px 80px rgba(0,0,0,.3)}
.yr-product-modal__close{position:absolute;z-index:2;top:.65rem;right:.65rem;width:40px;height:40px;border:0;border-radius:50%;background:#111827;color:#fff;font-size:1.5rem;cursor:pointer}
.yr-product-modal__product{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(1.2rem,3vw,2.4rem);align-items:center}
.yr-product-modal__media img{display:block;width:100%;height:auto;border-radius:8px}
.yr-product-modal__eyebrow{text-transform:uppercase;letter-spacing:.1em;font-size:.7rem;font-weight:900;color:var(--yr-accent,#0088cc)}
.yr-product-modal__copy h2{margin:.2rem 0 .75rem;font-size:clamp(1.6rem,3vw,2.5rem)}
.yr-product-modal__price{margin:.8rem 0;font-size:1.3rem;font-weight:850}
body.yr-modal-open{overflow:hidden}

/* BuddyPress */
body.yr-has-buddypress #buddypress{--bp-border:var(--yr-border,#e5e7eb);font-family:var(--yr-body-font,inherit)}
body.yr-has-buddypress #buddypress .item-list-tabs,
body.yr-has-buddypress #buddypress .bp-navs{padding:.4rem;border:1px solid var(--bp-border);border-radius:8px;background:var(--yr-surface,#fff)}
body.yr-has-buddypress #buddypress .item-list-tabs ul,
body.yr-has-buddypress #buddypress .bp-navs ul{display:flex;gap:.3rem;flex-wrap:wrap}
body.yr-has-buddypress #buddypress .item-list-tabs a,
body.yr-has-buddypress #buddypress .bp-navs a{border-radius:6px;font-weight:750}
body.yr-has-buddypress #buddypress ul.item-list>li{padding:1rem 0;border-color:var(--bp-border)}
body.yr-has-buddypress #buddypress .activity-list .activity-item{padding:1rem;border:1px solid var(--bp-border);border-radius:9px;background:var(--yr-surface,#fff)}
body.yr-buddypress-fullwidth .yr-content-area{grid-template-columns:minmax(0,1fr)}
body.yr-buddypress-fullwidth .yr-sidebar{display:none}

/* Web Stories */
body.yr-has-webstories .web-stories-list,
body.yr-has-webstories .web-stories-list__story{border-radius:10px}
body.yr-has-webstories .web-stories-list__story-poster img{object-fit:cover}
body.yr-has-webstories .web-stories-list__story-title{font-family:var(--yr-heading-font,inherit);font-weight:850}

/* AMP: keep server-rendered navigation readable without theme JS. */
body.yr-has-amp .yr-search-panel[hidden],
body.yr-has-amp .yr-mobile-engagement{display:none!important}

body.yr-dark-skin .yr-product-modal__dialog{background:#111827;color:#f8fafc}
body.yr-dark-skin.yr-has-buddypress #buddypress .item-list-tabs,
body.yr-dark-skin.yr-has-buddypress #buddypress .bp-navs,
body.yr-dark-skin.yr-has-buddypress #buddypress .activity-list .activity-item{background:#111827;border-color:rgba(255,255,255,.12)}

@media(max-width:700px){
	.yr-product-modal__product{grid-template-columns:1fr}
	.yr-product-modal__dialog{max-height:92vh}
}
@media(prefers-reduced-motion:reduce){
	.yr-product-modal__backdrop{backdrop-filter:none}
}
