/*
 * storefront.css — OCS mu-plugin surface, re-skinned to the design system.
 *
 * The mu-plugins enqueue this EXACT filename from get_stylesheet_directory(). The old
 * child theme shipped it; this theme did not, so the surfaces it styles rendered with
 * no CSS at all.
 *
 * Mechanically transformed from the old file rather than re-authored: the layout works
 * and is matched to markup this theme does not own. Old brand colours mapped onto the
 * tokens in assets/css/00-tokens.css; every border-radius zeroed and every box-shadow
 * removed (§12). Semantic status colours (error red, success green) are kept.
 */

.eg-store{max-width:1120px;margin:0 auto}
.eg-store-banner{height:240px;background:var(--color-accent-600) center/cover no-repeat;border-radius:0}
.eg-store-bar{display:flex;align-items:center;gap:20px;flex-wrap:wrap;background:var(--color-bg);border:1px solid var(--color-divider);border-top:none;border-radius:0;padding:18px 26px;box-shadow:none;margin-bottom:34px}
.eg-store-logo{width:96px;height:96px;border-radius:0;object-fit:cover;border:4px solid var(--color-bg);box-shadow:none;margin-top:-60px;background:var(--color-bg)}
.eg-store-id{flex:1 1 240px}
.eg-store-name{margin:0;color:var(--color-accent-800);font-size:1.7rem}
.eg-store-loc{color:var(--color-muted);margin:4px 0 0}
.eg-store-rating{color:var(--color-accent-600);font-weight:600;margin-top:4px}
.eg-store-actions{display:flex;gap:10px;flex-wrap:wrap}.eg-store-btn,a.eg-store-btn{display:inline-block;background:var(--color-accent-600);color:#fff !important;font-weight:600;padding:10px 18px;border-radius:0;text-decoration:none}
.eg-store-btn.secondary{background:var(--color-accent-800)}
.eg-store-section{margin:0 0 36px}
.eg-store-section h2{color:var(--color-accent-800);font-size:1.3rem;border-bottom:3px solid var(--color-accent-600);display:inline-block;padding-bottom:6px;margin-bottom:16px}
.eg-store-about{color:var(--color-text);line-height:1.7}
.eg-store-products{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px}
.eg-prod-card{background:var(--color-bg);border:1px solid var(--color-divider);border-radius:0;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease;display:flex;flex-direction:column}
.eg-prod-card:hover{transform:translateY(-4px);box-shadow:none}
.eg-prod-img{display:block;height:160px;background:var(--color-surface) center/cover no-repeat}
.eg-prod-body{padding:14px 16px;text-align:center}
.eg-prod-title{font-size:1rem;margin:0 0 6px}
.eg-prod-title a{color:var(--color-accent-800);text-decoration:none}
.eg-prod-title a:hover{color:var(--color-accent-600)}
.eg-prod-price{color:var(--color-accent-800);font-weight:700;margin:0 0 12px}.eg-prod-btn,a.eg-prod-btn{display:inline-block;background:var(--color-accent-600);color:#fff !important;font-weight:600;padding:8px 18px;border-radius:0;text-decoration:none}
.eg-store-contact ul{list-style:none;padding:0;margin:0}
.eg-store-contact li{margin:7px 0;color:var(--color-text)}
.eg-store-contact a{color:var(--color-accent-800)}
.eg-store-pagination{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin:24px 0 8px}
.eg-store-pagination a,.eg-store-pagination span{min-width:42px;text-align:center;padding:9px 13px;border-radius:0;text-decoration:none;font-weight:600;border:1px solid var(--color-divider);color:var(--color-accent-800);background:var(--color-bg)}
.eg-store-pagination .cur{background:var(--color-accent-800);color:#fff;border-color:var(--color-accent-800)}
.eg-store-back{display:inline-block;margin-bottom:14px;color:var(--color-accent-600);text-decoration:none;font-weight:600}
@media(max-width:600px){.eg-store-products{grid-template-columns:1fr 1fr}.eg-store-bar{justify-content:center;text-align:center}.eg-store-id{flex-basis:100%}}
.eg-social-wrap{display:flex;flex-wrap:wrap;gap:24px;align-items:flex-start}
.eg-social-fb{flex:1 1 340px;max-width:520px}
.eg-social-fb iframe{width:100%;border:none;overflow:hidden;border-radius:0;background:var(--color-bg)}
.eg-social-side{flex:1 1 260px}
.eg-social-chips{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px}
.eg-social-chip{display:inline-flex;align-items:center;gap:6px;background:var(--color-accent-800);color:#fff !important;font-weight:600;padding:9px 16px;border-radius:0;text-decoration:none;font-size:.9rem}
.eg-social-chip:hover{background:var(--color-accent-600)}
.eg-ta-card{display:block;background:var(--color-bg);border:1px solid var(--color-divider);border-left:5px solid var(--color-accent-600);border-radius:0;padding:16px 18px;text-decoration:none;box-shadow:none}
.eg-ta-card:hover{box-shadow:none}
.eg-ta-card strong{display:block;color:var(--color-accent-800);font-size:1.05rem;margin-bottom:3px}
.eg-ta-card span{color:var(--color-muted);font-size:.9rem}
.eg-reels-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;max-width:1100px}
.eg-reel-card{display:flex;flex-direction:column;gap:8px}
.eg-reel-poster{position:relative;display:block;width:100%;aspect-ratio:9/16;border:0;padding:0;border-radius:0;overflow:hidden;cursor:pointer;background:var(--color-surface) center/cover no-repeat;box-shadow:none}
/* Scrim removed — client direction: no overlay on any photograph. */
.eg-reel-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:56px;height:56px;border-radius:0;background:#fff;z-index:2;box-shadow:none}
.eg-reel-play:before{content:"";position:absolute;top:50%;left:54%;transform:translate(-50%,-50%);border-style:solid;border-width:10px 0 10px 17px;border-color:transparent transparent transparent var(--color-accent-800)}
.eg-reel-meta{display:flex;align-items:center;gap:8px}
.eg-reel-av{width:30px;height:30px;border-radius:0;object-fit:cover;flex:0 0 auto}
.eg-reel-store{font-size:.76rem;color:var(--color-muted);line-height:1.15}
.eg-reel-name{font-size:.95rem;font-weight:700;color:var(--color-accent-800);line-height:1.2}
.eg-reel-lb{position:fixed;inset:0;background:var(--color-scrim);z-index:99999;display:none;align-items:center;justify-content:center;padding:20px}
.eg-reel-lb.open{display:flex}
/* Width derived from the height available, not just the viewport width: a 9:16 stage
   420px wide is 747px tall, which overflows a laptop viewport once the close button
   above and the CTA below are counted. Capping by vh keeps the whole reel on screen. */
.eg-reel-lb-inner{position:relative;width:min(420px,92vw,calc(62vh * 9 / 16));display:flex;flex-direction:column;align-items:center;gap:14px}
.eg-reel-lb-stage{position:relative;width:100%;aspect-ratio:9/16;background:var(--color-text);border-radius:0;overflow:hidden}
.eg-reel-lb-stage iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.eg-reel-lb-close{position:absolute;top:-46px;right:0;background:none;border:0;color:#fff;font-size:36px;line-height:1;cursor:pointer}
.eg-reel-lb-cta:empty{display:none}
.eg-reel-lb-cta .eg-reel-cta{display:inline-block;background:var(--color-accent-600);color:#fff!important;font-weight:700;padding:13px 30px;border-radius:0;text-decoration:none}
.eg-reel-lb-cta .eg-reel-cta:hover{background:var(--color-accent-800)}
@media(max-width:900px){.eg-reels-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){
.eg-reels-grid{grid-template-columns:1fr;max-width:320px;margin:0 auto}
.eg-reels-grid.eg-reels-carousel{display:flex;grid-template-columns:none;max-width:none;margin:0 -16px;padding:4px 16px 12px;overflow-x:auto;-webkit-overflow-scrolling:touch;scroll-snap-type:x mandatory;gap:12px}
.eg-reels-carousel .eg-reel-card{flex:0 0 46%;scroll-snap-align:start}
.eg-reels-carousel .eg-reel-name{font-size:.82rem}
.eg-reels-carousel .eg-reel-play{width:46px;height:46px}
}
.eg-rv-summary{display:flex;align-items:center;gap:14px;margin:6px 0 18px}
.eg-rv-avg{font-size:2.2rem;font-weight:800;color:var(--color-accent-800);line-height:1}
.eg-rv-stars{color:var(--color-accent-700);letter-spacing:2px;font-size:1.1rem}
.eg-rv-count{color:var(--color-muted)}
.eg-rv-list{display:flex;flex-direction:column;gap:14px;margin-bottom:26px}
.eg-rv-item{border:1px solid var(--color-divider);border-radius:0;padding:14px 16px;background:var(--color-bg)}
.eg-rv-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.eg-rv-meta{font-size:.82rem;color:var(--color-muted);margin:4px 0 8px}
.eg-rv-text{color:var(--color-text);line-height:1.55}
.eg-rv-form{background:var(--color-surface);border:1px solid var(--color-divider);border-radius:0;padding:18px 20px;max-width:560px}
.eg-rv-form h3{margin:0 0 12px;color:var(--color-accent-800)}
.eg-rv-form label{display:block;font-weight:600;color:var(--color-text);margin-bottom:12px}
.eg-rv-form select,.eg-rv-form textarea{display:block;width:100%;margin-top:6px;padding:10px;border:1px solid var(--color-divider);border-radius:0;font:inherit;font-weight:400}
.eg-rv-form button{background:var(--color-accent-600);color:#fff;border:0;border-radius:0;padding:11px 22px;font-weight:700;cursor:pointer}
.eg-rv-note{font-size:.8rem;color:var(--color-muted);margin:10px 0 0}
.eg-rv-msg{padding:12px 16px;border-radius:0;margin-bottom:16px;font-weight:600}
.eg-rv-msg.ok{background:var(--color-success-bg);color:var(--color-success)}
.eg-rv-msg.err{background:var(--color-danger-bg);color:var(--color-danger)}
.eg-rv-login a{color:var(--color-accent-800);font-weight:700}

.eg-reel-poster .eg-reel-badge{position:absolute;top:10px;left:10px;z-index:3;font-size:.66rem;font-weight:800;letter-spacing:.3px;color:#fff;padding:3px 8px;border-radius:0;text-transform:uppercase;box-shadow:none}
.eg-reel-badge-yt{background:var(--color-accent-700)}
.eg-reel-badge-fb{background:var(--color-accent-700)}
.eg-reel-badge-ig{background:var(--color-accent-700)}
