/* royalepic.com store pop-up (shop.js): product details, size picker + chart, quantity, then Stripe Embedded Checkout in the same pop-up */
.shopm{position:fixed;inset:0;z-index:300;display:none;align-items:center;justify-content:center;padding:24px;background:rgba(0,0,0,.72);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.shopm.open{display:flex;animation:shopIn .25s ease}
@keyframes shopIn{from{opacity:0}to{opacity:1}}
.shopp{position:relative;width:min(1040px,100%);height:min(740px,calc(100svh - 48px));grid-template-rows:minmax(0,1fr);background:#fff;color:#000;border-radius:22px;overflow:hidden;display:grid;grid-template-columns:1.05fr 1fr;font-family:Inter,Arial,sans-serif;box-shadow:0 30px 90px rgba(0,0,0,.5);animation:shopUp .35s cubic-bezier(.2,.8,.2,1)}
@keyframes shopUp{from{transform:translateY(24px)}to{transform:none}}
.shopx{position:absolute;top:14px;right:14px;z-index:5;width:46px;height:46px;border-radius:50%;border:0;background:#000;color:#fff;font:800 20px Inter,Arial,sans-serif;cursor:pointer}
.shopg{position:relative;background:#f0ece4;min-height:0;display:flex;flex-direction:column}
.shopg .main{flex:1;min-height:0;position:relative;overflow:hidden}
.shopg .main img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.shopg .thumbs{display:flex;gap:10px;padding:12px;background:#f0ece4}
.shopg .thumbs button{width:64px;height:80px;border-radius:10px;overflow:hidden;padding:0;border:2px solid transparent;background:none;cursor:pointer;opacity:.6}
.shopg .thumbs button[aria-pressed="true"]{border-color:#000;opacity:1}
.shopg .thumbs img{width:100%;height:100%;object-fit:cover;display:block}
.shopd{overflow-y:auto;padding:38px 36px 32px;display:flex;flex-direction:column;min-height:0}
.shopd .tag{align-self:flex-start;background:#000;color:#fffd6d;border-radius:30px;padding:0 14px;height:30px;line-height:30px;font-weight:800;font-size:12px;text-transform:uppercase;letter-spacing:.04em}
.shopd h3{font-weight:800;font-size:clamp(28px,3vw,38px);line-height:1.04;margin:16px 50px 0 0}
.shopd .price{font-weight:800;font-size:28px;margin-top:10px}
.shopd .price small{font-weight:400;font-size:15px;color:#555;margin-left:8px}
.shopd .desc{font-size:17px;line-height:1.5;margin-top:14px;color:#222}
.shopd .lab{display:flex;justify-content:space-between;align-items:baseline;font-weight:800;font-size:15px;margin-top:24px;text-transform:uppercase;letter-spacing:.04em}
.shopd .lab button{background:none;border:0;padding:0;font:700 15px Inter,Arial,sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer;text-transform:none;letter-spacing:0;color:#000}
.sizes{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-top:10px}
.sizes button{height:50px;border-radius:12px;border:2px solid #ddd;background:#fff;font:800 16px Inter,Arial,sans-serif;cursor:pointer;color:#000}
.sizes button:hover{border-color:#000}
.sizes button[aria-pressed="true"]{background:#000;color:#fff;border-color:#000}
.sizes.err button{border-color:#e51e2d}
.serr{color:#e51e2d;font-weight:700;font-size:14px;margin-top:8px;min-height:0}
.chart{margin-top:12px;border-radius:12px;background:#f6f3ed;padding:14px;display:none}
.chart.open{display:block}
.chart table{width:100%;border-collapse:collapse;font-size:14px;text-align:center}
.chart th{font-weight:800;padding:6px 4px;border-bottom:2px solid #000}
.chart td{padding:7px 4px;border-bottom:1px solid #ddd}
.chart td:first-child,.chart th:first-child{text-align:left;font-weight:800}
.chart tr.sel td{background:#fffd6d}
.chart p{font-size:13px;line-height:1.45;color:#444;margin-top:10px}
.chart .unit{font-size:12px;color:#666;margin-bottom:6px}
.qrow{display:flex;align-items:center;gap:14px;margin-top:10px}
.qty{display:flex;align-items:center;border:2px solid #ddd;border-radius:12px;height:50px}
.qty button{width:46px;height:100%;border:0;background:none;font:800 22px Inter,Arial,sans-serif;cursor:pointer;color:#000}
.qty span{min-width:32px;text-align:center;font-weight:800;font-size:17px}
.shopd ul{list-style:none;margin:22px 0 0;padding:0;display:grid;gap:8px;font-size:15px;line-height:1.4;color:#333}
.shopd ul li{padding-left:22px;position:relative}
.shopd ul li:before{content:"";position:absolute;left:4px;top:7px;width:8px;height:8px;border-radius:50%;background:#5cd987}
.shopgo{width:100%;margin-top:26px;height:62px;border-radius:62px;border:0;background:#fffd6d;color:#000;font:800 19px Inter,Arial,sans-serif;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;box-shadow:inset 0 0 0 2px #000;transition:background .2s,color .2s}
.shopgo:hover{background:#000;color:#fffd6d}
.shopgo[disabled]{opacity:.6;cursor:wait}
.shopfine{font-size:13px;line-height:1.5;color:#666;margin-top:12px;text-align:center}
.shopco{display:none;flex-direction:column;min-height:0}
.shopco .back{align-self:flex-start;background:none;border:0;font:800 15px Inter,Arial,sans-serif;cursor:pointer;padding:0;margin-bottom:12px;color:#000}
.shopco .sum{font-size:15px;color:#333;margin-bottom:14px}
.shopco #shop-checkout{min-height:420px}
.shopdone{display:none;text-align:left}
.shopdone h3{margin-right:0}
.shopdone .big{font-size:60px;line-height:1}
.shopdone p{font-size:17px;line-height:1.5;margin-top:14px}
.shopp.co .shopd > .info{display:none}
.shopp.co .shopco{display:flex}
.shopp.done .shopd > .info,.shopp.done .shopco{display:none}
.shopp.done .shopdone{display:block}
body.shop-lock{overflow:hidden}
@media (max-width:820px){
  .shopm{padding:0;align-items:flex-end}
  .shopp{grid-template-columns:1fr;max-height:100svh;height:100svh;border-radius:0;overflow-y:auto;display:block}
  .shopg .main{position:relative;height:auto;aspect-ratio:4/5;max-height:58svh}
  .shopd{overflow:visible;padding:24px 16px 40px}
  .shopd h3{margin-right:0;font-size:30px}
  .shopx{position:fixed;top:12px;right:12px}
  .sizes{grid-template-columns:repeat(3,minmax(0,1fr))}
  .shopp.co .shopg,.shopp.done .shopg{display:none}
  .shopp.co .shopd,.shopp.done .shopd{padding-top:70px}
}
@media (prefers-reduced-motion:reduce){.shopm.open,.shopp{animation:none}}
