.shop{background:#fff;color:#141c3d}.shop-header{max-width:1200px;margin:auto;padding:22px 28px;display:flex;align-items:center;gap:28px;border-bottom:1px solid #e8eaf0}.shop-header>a:first-child{font-size:30px;font-weight:900;text-decoration:none;color:#141c3d}.shop-header .btn{margin-inline-start:auto}.shop-main{max-width:1200px;margin:auto;padding:0 28px}.shop-intro{padding:56px 0 30px}.shop-intro h1{font-size:clamp(26px,4vw,44px);margin:12px 0}.shop-intro small{color:#656e88}.shop-intro p,.shop-footer{color:#747b8d}.shop-filters{display:flex;gap:10px;flex-wrap:wrap;align-items:center;padding:18px;background:#f6f7fa;border-radius:20px;margin-bottom:26px}.shop-filters input[type=search]{flex:1;min-width:200px}.shop-filters #filters{display:contents}.shop-filters select{width:auto;max-width:200px}.shop-filters label{display:flex;gap:8px;align-items:center}.shop-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.shop-product{border:1px solid #e4e7ef;border-radius:22px;padding:24px;text-align:center;display:flex;flex-direction:column;justify-content:space-between;gap:14px;background:#fff}.shop-product h2{font-size:18px;line-height:1.9;margin:0;overflow-wrap:anywhere}.shop-product img{height:230px;width:100%;object-fit:contain}.shop-product strong{font-size:23px}.shop-product details{font-size:14px;line-height:1.8}.shop-product summary{cursor:pointer}.shop-product label{display:flex;gap:8px;justify-content:center;background:#f3f5fb;border-radius:12px;padding:12px}.shop-contact{max-width:620px;margin:50px auto;padding:28px;border-radius:24px;background:#f6f7fb}.shop-contact label{display:block;margin:12px 0}.shop-contact input{display:block;width:100%;font-size:16px;margin-top:6px}.shop-footer{text-align:center;padding:25px;font-size:13px}.shop-admin-list{max-height:60vh;overflow:auto;display:grid;gap:10px}.shop-admin-list label{padding:12px;border:1px solid #ddd;border-radius:12px}#result{font-size:20px;font-weight:700}.shop input,.shop select{font-size:16px}.shop [hidden]{display:none!important}@media(max-width:850px){.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:540px){.shop-header{padding:16px;gap:12px}.shop-header span{display:none}.shop-main{padding:0 16px}.shop-intro{padding-top:30px}.shop-grid{grid-template-columns:1fr}.shop-product{padding:20px}.shop-filters select{flex:1;max-width:100%;min-width:115px}}
.shop-header #tutorial-search{flex:1;min-width:150px;font-size:16px}.tutorial-description{white-space:pre-wrap;text-align:start;line-height:1.9}.tutorial-detail{display:block;max-width:900px;margin:auto}.tutorial-player{width:100%;aspect-ratio:16/9;border:0;border-radius:16px;background:#f2f4f8}.shop-contact textarea{width:100%;min-height:100px}.shop-contact input[type=checkbox]{display:inline-block;width:auto}.shop-header:has(#tutorial-search){flex-wrap:wrap}#admin-search{width:100%;margin-bottom:20px;font-size:16px}

.shop-status{padding:14px;border:1px solid #e7c66c;background:#fff9e8;border-radius:12px;margin:16px 0}.shop-status.shop-enabled{border-color:#87c59c;background:#effaf2}.shop-save-bar{position:sticky;bottom:0;background:#fff;padding:14px 0;border-top:1px solid #ddd;display:flex;flex-wrap:wrap;gap:10px;align-items:center;z-index:3}.shop-save-bar #result{flex-basis:100%;font-size:17px}.shop-error{color:#a32d2d}.shop-save-bar .btn{min-height:44px}

.shop-main>.shop-filters{margin-top:24px}.shop-categories{display:flex;gap:8px;flex-wrap:wrap}.shop-categories button{min-height:44px;padding:8px 14px;border:1px solid #d9dde6;border-radius:10px;background:#fff;color:#141c3d;cursor:pointer}.shop-categories button[aria-pressed="true"]{background:#141c3d;color:#fff;border-color:#141c3d}.shop-categories button:disabled{opacity:.5;cursor:not-allowed}

.shop-buy{width:100%;min-height:44px;border:1px solid #d9dde6;border-radius:12px;padding:12px;background:#f3f5fb;color:#141c3d;cursor:pointer}.shop-buy:hover,.shop-buy:focus-visible{background:#e5eaf6}

/* Customer product cards: compact content while allowing long descriptions to grow. */
.shop-image-toggle{color:#141c3d;font-weight:700}.shop-product{padding:16px;gap:8px}.shop-product h2{font-size:16px;line-height:1.4}.shop-product .product-summary{line-height:1.4}.shop-product .product-line-primary{font-size:19px;font-weight:700;line-height:1.35;gap:3px 8px}.shop-product .product-line-secondary{font-size:16px;font-weight:400;line-height:1.4}.shop-sim-summary{display:block;text-align:left;line-height:1.4}.shop-sim-number{display:block;font-size:19px;font-weight:700;white-space:pre-wrap}.shop-sim-details{display:block;font-size:16px;font-weight:400}.shop-product details{line-height:1.4}.shop-product summary::marker{color:#c62828}.shop-buy{color:#167a3f;font-weight:700;padding:8px 12px}.shop-buy:hover,.shop-buy:focus-visible{color:#115c30}@media(max-width:540px){.shop-product{padding:16px}}

/* Center public cards; keep the phone registration next to its other details. */
.shop-product .product-summary,.shop-sim-summary{text-align:center}.shop-product .product-line-primary{justify-content:center;font-size:19px;font-weight:700}.shop-product .product-line-secondary{display:inline;text-align:center}.shop-product .product-line-secondary + .product-line-secondary::before{content:" / "}.shop-sim-number{font-size:19px;font-weight:700}

/* Public product hierarchy */
.shop-product .product-line-primary,.shop-sim-number{font-size:32px;font-weight:700;line-height:1.25}.shop-product strong{font-size:16px}.shop-product strong small{font-size:inherit}

@media(max-width:540px){.shop-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.shop-categories button{width:100%}.shop-categories button[data-category=""]{grid-column:1/-1}}

.shop-product details div{white-space:pre-wrap;overflow-wrap:anywhere}

/* Public storefront: translucent compact header and three-row SIM cards. */
.shop-storefront .shop-header{position:sticky;top:0;z-index:20;max-width:none;min-height:52px;margin:0;padding:calc(6px + env(safe-area-inset-top, 0px)) max(16px,env(safe-area-inset-right, 0px)) 6px max(16px,env(safe-area-inset-left, 0px));display:grid;grid-template-columns:1fr auto 1fr;gap:8px;background:rgba(48,50,55,.88);border:0;box-shadow:0 2px 10px #0002;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.shop-storefront .shop-header #shop-brand{grid-column:2;grid-row:1;color:#fff;font-size:25px;line-height:1.4;text-align:center}
.shop-storefront .shop-header>a[href='/learn']{grid-column:1;grid-row:1;justify-self:start;color:#fff;text-decoration:none;font-size:14px}
.shop-storefront .shop-header .shop-account{grid-column:3;grid-row:1;justify-self:end;display:grid;place-items:center;width:42px;height:42px;color:#fff;border-radius:10px}
.shop-account svg{width:26px;height:26px}.shop-storefront :is(#contact,.shop-filters){scroll-margin-top:calc(70px + env(safe-area-inset-top, 0px))}
.shop-product.shop-product-sim{padding:10px 12px;gap:6px;border:1px solid #e1e2e5;border-radius:16px;box-shadow:0 2px 8px #0000000a;align-items:center}
.shop-product-sim .shop-sim-disclosure{width:100%;font-size:14px}.shop-product-sim .shop-sim-disclosure summary{list-style:none;cursor:pointer}.shop-product-sim .shop-sim-disclosure summary::-webkit-details-marker{display:none}
.shop-product-sim .shop-sim-number{display:block;text-align:center;color:#000;font-family:var(--shop-sim-font,inherit);font-weight:var(--shop-sim-weight,800);font-size:var(--shop-sim-size,36px);line-height:1.15;white-space:normal;overflow-wrap:anywhere;letter-spacing:-.035em}
.shop-product-sim .shop-sim-expanded{padding:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.shop-product-sim .shop-sim-meta{display:flex;justify-content:center;align-items:center;gap:5px;max-width:100%;font-family:var(--shop-sim-detail-font,inherit);font-size:var(--shop-sim-detail-size,14px);font-weight:var(--shop-sim-detail-weight,700);line-height:1.3;white-space:nowrap;color:#000}
.shop-product-sim .shop-sim-badge{display:inline-block;padding:3px 6px;border-radius:6px;color:#fff;font-weight:inherit;max-width:30%;overflow:hidden;text-overflow:ellipsis}.shop-product-sim .condition{background:#ff4f00}.shop-product-sim .round{background:#0095da}.shop-product-sim .shop-sim-price{font-weight:inherit;color:#000;white-space:nowrap}
.shop-product-sim .shop-buy{width:auto;min-width:140px;max-width:100%;min-height:38px;padding:7px 22px;background:#f0f1f3;border:1px solid #e1e2e6;border-radius:12px;color:#000}
.shop-product-sim .shop-buy:hover,.shop-product-sim .shop-buy:focus-visible{background:#e5e6e8;color:#000}
.tutorial-guide{max-width:760px;margin:16px 0;padding:14px;border:1px solid #dce2e1;border-radius:12px;background:#f6f8f7;line-height:1.9}.tutorial-guide summary{cursor:pointer;font-weight:700}.tutorial-guide ol{padding-inline-start:24px}

/* Approved Sami palette: preserve the existing logos and product imagery. */
.shop{background:#FFFFFF;color:#000080}
.shop-storefront .shop-header{background:#000080}
.shop-filters,.shop-status,.shop-status.shop-enabled,.tutorial-guide{background:#E5E7EB;color:#000080;border-color:#E5E7EB}
.shop-categories button{background:#FFFFFF;color:#000080;border-color:#E5E7EB}
.shop-categories button[aria-pressed="true"]{background:#000080;color:#FFFFFF;border-color:#3B82F6}
.shop-product,.shop-product.shop-product-sim{background:#FFFFFF;color:#000080;border-color:#E5E7EB}
.shop-image-toggle,.shop-product-sim .shop-sim-number,.shop-product-sim .shop-sim-meta,.shop-product-sim .shop-sim-price{color:#000080}
.shop-product-sim .condition,.shop-product-sim .round{background:#E5E7EB;color:#000080}
.shop-product-sim .round{outline:1px solid #3B82F6}
.shop-product summary::marker{color:#3B82F6}
.shop-buy,.shop-product-sim .shop-buy{background:#000080;color:#FFFFFF;border-color:#000080}
.shop-buy:hover,.shop-buy:focus-visible,.shop-product-sim .shop-buy:hover,.shop-product-sim .shop-buy:focus-visible{background:#000080;color:#FFFFFF;outline:2px solid #3B82F6;outline-offset:2px}

.shop-product-gallery{display:flex;gap:8px;overflow-x:auto;justify-content:safe center;padding:8px 0;scroll-snap-type:x proximity}.shop-product-gallery img{width:140px;height:140px;max-width:42vw;object-fit:contain;flex:0 0 auto;background:#fff;border:1px solid #eee;border-radius:8px;scroll-snap-align:center}
/* Product image and enlarged, swipeable gallery. */
.shop-product-photo{position:relative;width:100%;overflow:hidden;border-radius:14px;background:#fff}
.shop-product .shop-product-photo>img{display:block;width:100%;height:230px;object-fit:contain}
.shop-gallery-open{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:7px;max-width:calc(100% - 16px);white-space:nowrap;padding:9px 15px;border:1px solid #e5e7eb;border-radius:14px;background:#fff;color:#000080;font:inherit;font-size:14px;font-weight:700;box-shadow:0 3px 12px #0003;cursor:pointer}
.shop-gallery-open:focus-visible,.sami-gallery button:focus-visible{outline:3px solid #3B82F6;outline-offset:2px}
.sami-gallery{position:fixed;inset:0;width:100%;height:100%;width:100dvw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#222;color:#fff;overflow:hidden}
.sami-gallery::backdrop{background:#000b}.gallery-layout{height:100%;display:flex;flex-direction:column;direction:ltr}.gallery-top{display:flex;align-items:center;justify-content:center;position:relative;min-height:60px;padding-top:env(safe-area-inset-top);flex:none}.gallery-close{position:absolute;left:12px;bottom:6px;font-size:36px;line-height:1;border:0;background:transparent;color:#fff;width:48px;height:48px;cursor:pointer}.gallery-count{font-size:18px;font-weight:700}.gallery-stage{position:relative;flex:1;min-height:0;display:grid;place-items:center;touch-action:pan-y}.gallery-image{width:100%;height:100%;object-fit:contain}.gallery-arrow{position:absolute;top:50%;z-index:1;transform:translateY(-50%);width:46px;height:46px;border:0;border-radius:50%;background:#fff;color:#000080;font-size:38px;line-height:1;cursor:pointer}.gallery-prev{left:10px}.gallery-next{right:10px}.gallery-thumbs{display:flex;justify-content:center;gap:10px;overflow-x:auto;padding:12px 12px calc(12px + env(safe-area-inset-bottom));flex:none}.gallery-thumbs button{flex:0 0 72px;width:72px;height:72px;padding:0;border:2px solid transparent;border-radius:10px;overflow:hidden;background:#fff;cursor:pointer}.gallery-thumbs button[aria-current=true]{border-color:#3B82F6}.gallery-thumbs img{width:100%;height:100%;object-fit:cover}.sami-gallery [hidden]{display:none!important}

.shop-video-frame{position:relative;max-width:360px;margin:8px auto;aspect-ratio:1;background:#f4f4f4;overflow:hidden;border-radius:10px}.shop-video-frame img,.shop-video-frame video{width:100%;height:100%;object-fit:contain}.shop-video-frame [hidden]{display:none}

.shop-video-frame video{position:absolute;inset:0}.shop-video-frame img{position:relative;z-index:1}

.shop-gallery-open.has-video{bottom:54px}
.shop-video-open{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);max-width:calc(100% - 16px);white-space:nowrap;padding:9px 15px;border:1px solid #e5e7eb;border-radius:14px;background:#fff;color:#000080;font:inherit;font-size:14px;font-weight:700;box-shadow:0 3px 12px #0003;cursor:pointer}.shop-video-open:focus-visible,.sami-video-dialog button:focus-visible{outline:3px solid #3b82f6;outline-offset:2px}
.sami-video-dialog{box-sizing:border-box;width:min(94vw,560px);max-width:94vw;max-height:90vh;max-height:90dvh;padding:12px;border:0;border-radius:16px;background:#fff;color:#000080;overflow:hidden}.sami-video-dialog::backdrop{background:#000b}.sami-video-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.sami-video-close{border:0;background:#e5e7eb;color:#000080;border-radius:8px;padding:6px 12px;font:inherit;cursor:pointer}.sami-video-stage{position:relative;width:100%;height:min(70vh,540px);height:min(70dvh,540px);background:#111;border-radius:10px;overflow:hidden}.sami-video-stage video,.sami-video-stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.sami-video-stage img{z-index:1}.sami-video-stage img[hidden]{display:none}.sami-video-status{margin:6px 0 0;font-size:13px}

.shop-photo-open{display:block;width:100%;padding:0;border:0;background:transparent;cursor:pointer}.shop-product .shop-photo-open img{display:block;width:100%;height:230px;object-fit:contain}.shop-photo-open:focus-visible{outline:3px solid #3b82f6;outline-offset:-3px}.shop-video-open{top:50%;bottom:auto;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:52px;height:52px;padding:0;border:2px solid white;border-radius:50%;background:#000080;color:white;box-shadow:0 3px 12px #0006;font-size:23px;line-height:1}.shop-video-open span{margin-left:3px}

.shop-video-placeholder{height:230px;background:#e5e7eb}

/* Phone cards keep their compact height when photos are shown. */
.shop-product.shop-phone-card{padding:10px;display:block;text-align:right;min-width:0}.shop-phone-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;direction:rtl;align-items:stretch;min-height:150px}.shop-phone-card.has-photo .shop-phone-layout{grid-template-columns:minmax(0,1fr) minmax(0,2fr)}.shop-phone-card .shop-product-photo{height:100%;min-height:150px;position:relative;align-self:stretch;background:#f3f4f6}.shop-phone-card .shop-photo-open{position:absolute;inset:0;height:100%}.shop-phone-card .shop-photo-open img{height:100%;width:100%;object-fit:contain}.shop-phone-card .shop-video-placeholder{height:auto}.shop-phone-card .shop-video-open{width:44px;height:44px;font-size:19px}.shop-phone-info{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:4px;min-width:0;text-align:right}.shop-phone-card h2.shop-phone-model{font-size:20px;line-height:1.2;font-weight:800;text-align:right;overflow-wrap:anywhere}.shop-phone-specs{font-size:13px;color:#6b7280;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.shop-phone-price-line{display:flex;align-items:baseline;justify-content:space-between;gap:5px;flex-wrap:wrap}.shop-phone-card .shop-phone-price{font-size:16px;line-height:1.4}.shop-phone-card .shop-phone-details{font-size:12px;line-height:1.4;color:#000080}.shop-phone-card .shop-phone-details[open]{flex-basis:100%}.shop-phone-actions{display:flex;align-items:center;justify-content:space-between;gap:4px;min-height:36px}.shop-phone-card .shop-phone-actions .shop-buy{width:auto;min-width:0;min-height:34px;padding:5px 11px;font-size:12px;border-radius:9px}.shop-phone-card .shop-phone-actions .new-product-badge{position:relative;left:auto;top:auto;transform:none;width:50px;height:31px}.shop-phone-card .shop-phone-actions .new-product-badge::after{font-size:17px}

/* Video viewer occupies the screen; media retains its aspect ratio. */
.sami-video-dialog,.sami-video-dialog:fullscreen{position:fixed;inset:0;box-sizing:border-box;width:100vw;width:100dvw;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#000;color:#fff;overflow:hidden}.sami-video-dialog::backdrop{background:#000}.sami-video-stage{position:absolute;inset:0;width:100%;height:100%;border-radius:0;background:#000}.sami-video-stage video,.sami-video-stage img{object-fit:contain}.sami-video-top{position:absolute;z-index:3;top:calc(10px + env(safe-area-inset-top,0px));right:calc(10px + env(safe-area-inset-right,0px));margin:0}.sami-video-top strong{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}.sami-video-close{background:#0009;color:#fff;border:1px solid #fff8;border-radius:50px;min-width:44px;min-height:44px}.sami-video-status{position:absolute;z-index:3;left:16px;right:16px;bottom:calc(60px + env(safe-area-inset-bottom,0px));color:#fff;text-align:center;text-shadow:0 1px 4px #000;pointer-events:none}

/* Portrait product videos fill the phone screen; landscape videos remain fully visible. */
@media(max-width:767px) and (orientation:portrait){.sami-video-dialog.portrait-video .sami-video-stage video{object-fit:cover}}
/* Translucent play button, matching the selected design. */
.shop-video-open{background:rgba(12,29,48,.64);border:2px solid rgba(255,255,255,.96);color:#fff;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);box-shadow:0 3px 12px rgba(0,0,0,.35)}

/* Clear frosted play control */
.shop-video-open{background:linear-gradient(145deg,rgba(225,229,233,.72),rgba(83,91,99,.67));border:2px solid #fff;color:#fff;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:0 3px 12px rgba(0,0,0,.4)}
/* Center the phone description within its two-thirds column. */
.shop-phone-info{text-align:center;align-items:center}
.shop-phone-card h2.shop-phone-model,.shop-phone-specs{text-align:center;width:100%}
.shop-phone-price-line{width:100%;justify-content:center;text-align:center}
.shop-phone-card .shop-phone-details{text-align:center}
.shop-phone-actions{width:100%}

.shop-product-photo .shop-video-preview{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#e5e7eb;pointer-events:none}.shop-product-photo .shop-video-open{z-index:1}

/* Approved SIM colors on the Sami customer storefront only. */
body.sami-public .shop-product-sim .shop-sim-number{color:#1f1f1f}
body.sami-public .shop-product-sim .shop-sim-price{color:#555}
body.sami-public .shop-product-sim .condition{background:#ff4f00;color:#fff}

/* Seven independent positions after 0912. */
.sim-position-filter{width:100%;flex-basis:100%;min-width:0}.sim-position-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px;font-weight:700;color:#000080;margin-bottom:6px}.sim-position-clear{border:0;background:transparent;color:#000080;text-decoration:underline;cursor:pointer;font:inherit;padding:4px}.sim-position-row{display:flex;gap:4px;align-items:center;width:100%}.sim-position-prefix{font-weight:800;color:#000080;font-size:16px;padding:0 2px}.shop .sim-position-row input{display:block;flex:1;min-width:0;width:0;height:42px;padding:0;border:1px solid #9ca3af;border-radius:7px;background:#fff;color:#111;text-align:center;font-size:20px;line-height:1;outline-offset:2px}.shop .sim-position-row input:focus-visible{outline:2px solid #3b82f6}@media(max-width:340px){.sim-position-row{gap:2px}.sim-position-prefix{font-size:13px}}

.sim-position-search{display:block;margin:8px auto 0;min-height:40px;min-width:140px;padding:8px 20px;border:1px solid #000080;border-radius:10px;background:#000080;color:#fff;font-family:inherit;font-size:15px;font-weight:700;cursor:pointer}.sim-position-search:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}

/* Text search is reserved for the phone category. */
body.sami-public:not([data-channel="phone"]) .shop-filters #search{display:none}

.sim-position-actions{display:flex;justify-content:center;gap:8px;margin-top:8px}.sim-position-actions .sim-position-search,.sim-position-actions .sim-position-clear{display:block;flex:1;min-width:0;max-width:160px;min-height:40px;margin:0;padding:8px 12px;border:1px solid #000080;border-radius:10px;background:#000080;color:#fff;font-family:inherit;font-size:15px;font-weight:700;text-decoration:none;text-align:center;cursor:pointer}.sim-position-actions button:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}

.sim-position-actions .sim-position-clear{font-size:clamp(12px,3.8vw,15px);white-space:nowrap}

.shop-product-sim.partner-external .shop-sim-meta{flex-wrap:wrap;white-space:normal}.shop-product-sim.partner-external .shop-sim-badge.round{overflow-wrap:anywhere;max-width:100%}
