/* MOBIX ARENA — shared Modern Tech UI
   1 Tokens/base  2 Navigation  3 Hero  4 Cards  5 Forms/pages  6 Dialogs  7 Responsive */
@font-face{font-family:Tajawal;src:url('/assets/tajawal-regular.woff') format('woff');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Tajawal;src:url('/assets/tajawal-bold.woff') format('woff');font-weight:700 900;font-style:normal;font-display:swap}
:root{
 --page-surface:#F2F6FC;--card-surface:#FFFFFF;--blue:#0874F9;--ink:#080E29;--muted:#6B7280;--line:#E5E7EB;
 --card-radius:14px;--card-gap:8px;--card-shadow:0 2px 8px rgba(17,24,39,.045);
 --ice:#EFF6FF;--danger:#B42332;--max-width:1100px;--nav-height:66px;color-scheme:light;
 --raised-radius:20px;--raised-shadow:0 7px 18px rgba(17,24,39,.07),0 0 14px rgba(22,119,242,.055);--hero-shadow:0 12px 26px rgba(17,24,39,.09),0 0 22px rgba(22,119,242,.09);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:24px}
body{margin:0;background:var(--page-surface);color:var(--ink);font-family:Tajawal,Tahoma,Arial,sans-serif;font-size:16px;line-height:1.65;padding-bottom:calc(var(--nav-height) + env(safe-area-inset-bottom))}
[hidden]{display:none!important}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
img{max-width:100%;display:block}
h1,h2,h3,p{overflow-wrap:anywhere}
h1,h2,h3{line-height:1.4;font-weight:700}
svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.icon-defs{position:absolute;width:0;height:0;overflow:hidden}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.button,:where(button:not(.icon-button):not(.hero-controls button):not(.bottom-nav button):not(.dialog-head button):not(.menu-links button):not(.cart-row button)){
 display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border:1px solid var(--line);border-radius:12px;background:var(--card-surface);color:var(--blue);font-weight:700;line-height:1.5;
}
.button.primary,button.primary{background:var(--blue);border-color:var(--blue);color:#fff}
.button.outline{background:var(--card-surface);border-color:var(--blue);color:var(--blue)}
button:disabled,.button:disabled{opacity:.5;cursor:not-allowed}
.button:active,button:active{filter:brightness(.96)}
/* Navigation: logo and all destinations preserved. */
.header{height:64px;display:flex;align-items:center;gap:8px;max-width:var(--max-width);margin:auto;padding:8px 9px;direction:ltr;background:transparent}
.brand{font-family:Arial,sans-serif;font-size:24px;font-weight:900;letter-spacing:-1.2px;white-space:nowrap}
.brand span{color:var(--blue)}
.header-left{position:absolute;left:18px;display:flex;gap:14px}
.icon-button{border:0;background:none;min-width:36px;min-height:40px;padding:5px;display:flex;align-items:center;justify-content:center;color:var(--ink);position:relative}
.header-cart{position:relative;right:auto;flex:0 0 28px}
.cart-count{position:absolute;top:0;right:-2px;min-width:18px;height:18px;padding:0 4px;display:grid;place-items:center;border-radius:20px;background:var(--blue);color:#fff;font:700 11px Arial;line-height:1;white-space:nowrap}
.top-categories{display:flex;direction:ltr;gap:5px;max-width:var(--max-width);margin:auto;padding:4px 8px 10px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;background:transparent}
.top-categories::-webkit-scrollbar{display:none}
.top-categories a{flex:1 0 52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:52px;padding:4px 2px;background:var(--card-surface);border:1px solid transparent;border-radius:9px;font-size:10px;font-weight:700;white-space:nowrap;scroll-snap-align:start;transition:transform .15s}
.top-categories a[aria-current=true]{background:#E5F1FF;border-color:#66A9F0;box-shadow:0 3px 10px #0874F90A}
.top-categories svg{color:var(--ink);width:19px;height:19px}.category-icon{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:linear-gradient(135deg,#F7F9FC,#E4EAF2)}.top-categories a[aria-current=true] .category-icon{background:#CDE3FF}.top-categories a[aria-current=true] svg{color:var(--blue)}
.top-categories a:active{transform:scale(.97);background:var(--ice)}
.bottom-nav{position:fixed;left:6px;right:6px;bottom:calc(6px + env(safe-area-inset-bottom));z-index:20;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:var(--card-surface);border:1px solid #fff;border-radius:32px;box-shadow:0 5px 20px #233B6D10;padding:6px 12px;transition:transform .2s ease-out}.bottom-nav.nav-hidden{transform:translateY(calc(100% + 20px + env(safe-area-inset-bottom)))}
.bottom-nav a,.bottom-nav button{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:12px;line-height:1.3;color:var(--muted);background:none;border:0;padding:0;min-height:52px;justify-content:center}
.bottom-nav .active{color:var(--blue)}
.bottom-nav svg{width:23px;height:23px}
.bottom-nav .active svg{fill:var(--blue);stroke:var(--blue)}
.bottom-cart-icon{position:relative;display:flex;align-items:center;justify-content:center}
.bottom-cart-icon .cart-count{top:-5px;right:-9px}
/* Hero: preserve three slides, swipe and rotation; images are never stretched/cropped. */
.hero{position:relative;width:calc(100% - 10px);max-width:1100px;aspect-ratio:2.2/1;height:auto;margin:0 auto 12px;background:#030D25;border:1px solid #164976;border-radius:12px;box-shadow:var(--hero-shadow);overflow:hidden;direction:ltr;touch-action:pan-y pinch-zoom}
.hero-slide{position:absolute;inset:0;background:#030D25;overflow:hidden;opacity:0;pointer-events:none;transition:opacity .8s ease-in-out}
.hero-slide[aria-hidden=false]{opacity:1;pointer-events:auto;z-index:1}
.hero-photo{width:100%;height:100%;object-fit:contain;object-position:center}
.hero-slide picture{display:block;width:100%;height:100%}
.hero-copy{position:absolute;left:7%;top:50%;transform:translateY(-50%);width:43%;direction:rtl;text-align:right;color:#fff}
.hero h1{font-size:clamp(26px,3.8vw,44px);line-height:1.3;margin:0 0 12px;letter-spacing:0}
.hero h1 span{color:var(--blue)}
.hero-copy p{font-size:18px;color:#fff;margin:0 0 20px;line-height:1.6}
.hero-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px}
.hero-actions .button{font-size:15px;min-height:44px;padding:10px 16px}
.play-small{font-size:15px}
.accessories-slide .hero-photo{width:100%;height:100%;object-fit:contain;object-position:center}
.hero-controls{position:absolute;bottom:9px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:7px;direction:ltr;z-index:2;background:var(--card-surface);border:1px solid var(--line);border-radius:24px;padding:3px 8px}
.hero-controls button{width:9px;height:9px;border:0;border-radius:50%;padding:0;background:#CBD5E1;position:relative}
.hero-controls button::before{content:"";position:absolute;inset:-8px -4px}
.hero-controls button[aria-pressed=true]{background:var(--blue);width:19px;border-radius:8px}
.hero-controls .hero-pause{width:25px;height:24px;background:transparent;color:var(--muted);font-size:13px}
@keyframes hero-reveal{from{opacity:.5}to{opacity:1}}
/* Shared cards and content. */
.content{max-width:var(--max-width);margin:auto;padding:24px 16px;background:var(--page-surface)}
.content>section{margin:0 0 28px}
.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.section-head h2{display:flex;align-items:center;gap:8px;font-size:24px;margin:0}
.section-head h2 svg{color:var(--blue)}
.section-head>a,.text-button{display:flex;align-items:center;gap:4px;color:var(--blue);font-size:14px;white-space:nowrap;background:none;border:0;padding:0}
.section-head>a svg{width:18px;height:18px}
.video-grid,.product-grid,.phones-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--card-gap);align-items:stretch}

.product,.phone-card,.video-card,.order-card,.article-page article{background:var(--card-surface);border:1px solid var(--line);border-radius:var(--card-radius);box-shadow:var(--card-shadow);min-width:0}
.product,.phone-card{padding:12px;overflow:hidden}
.product{display:flex;flex-direction:column;padding:0;cursor:pointer}
.product h3,.product>.price,.product>.stock-note,.product-details-hint{padding:0 9px}
.product-details-hint{font-size:12px;color:var(--blue);margin:3px 0 6px}
.phone-card{text-align:center}
.product h3,.phone-card h3{font-size:18px;line-height:1.45;margin:10px 0 4px}
.price{font-size:23px;line-height:1.5;color:var(--blue);font-weight:700;margin:4px 0 10px}
.product h3{font-size:16px;margin:6px 0 3px}
.product>.price{font-size:20px;margin:2px 0 4px}
.product>.stock-note{font-size:13px;margin:2px 0 4px}
.product .button{width:calc(100% - 18px);margin:auto 9px 9px;font-size:13px;min-height:44px;padding:8px 6px}
.product .store-gallery{aspect-ratio:1/1}
.product .store-gallery img{object-fit:contain}
.stock-note,.phone-card p{font-size:14px;color:var(--muted);margin:4px 0 8px}
.store-gallery{display:flex;direction:ltr;aspect-ratio:4/5;width:100%;height:auto;min-width:0;overflow-x:auto;scroll-snap-type:x mandatory;border-radius:13px 13px 0 0;background:var(--card-surface);overscroll-behavior-x:contain;scrollbar-width:none}
.store-gallery::-webkit-scrollbar{display:none}
.store-gallery img,.store-gallery .phone-placeholder{flex:0 0 100%;width:100%;height:100%;object-fit:cover;scroll-snap-align:start}
.store-gallery img{cursor:zoom-in;border-radius:0;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}
.gallery-dots{display:flex;direction:ltr;gap:6px;justify-content:center;align-items:center;padding:8px 0 0}
.gallery-dots .gallery-dot{position:relative;min-height:7px;width:7px;height:7px;border:0;border-radius:50%;padding:0;background:#CBD5E1}
.gallery-dot::before{content:'';position:absolute;inset:-7px -3px}
.gallery-dots .gallery-dot[aria-pressed=true]{background:var(--blue)}
.product-detail-dialog{width:min(620px,calc(100% - 24px))}
.product-detail-gallery{aspect-ratio:4/3;max-height:350px;border-radius:14px}
.product-detail-gallery img{object-fit:contain;cursor:default}
.product-detail-dialog .button{width:100%}
.product-touch-zoom{position:fixed;z-index:60;pointer-events:none;object-fit:cover;border-radius:16px;box-shadow:0 10px 24px #11182726;transform-origin:center;background:var(--card-surface);transition:transform .18s ease-out,box-shadow .18s ease-out;will-change:transform}
.product-carousel{display:flex;direction:rtl;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;align-items:stretch;padding:6px 0 12px}
.product-carousel::-webkit-scrollbar{display:none}
.product-carousel>.product,.product-carousel>.phone-card{flex:0 0 clamp(220px,24vw,270px);direction:rtl;scroll-snap-align:start;border-radius:16px;min-width:0}
.product-carousel>.product{flex-basis:clamp(165px,18vw,203px)}
.product-carousel .store-gallery{border-radius:15px 15px 0 0;overscroll-behavior-x:auto}
.product-carousel h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.9em}
.product-carousel-controls{display:flex;direction:ltr;gap:12px;justify-content:center;align-items:center;margin:0 0 12px}
.product-carousel-dots{display:flex;gap:7px}
.product-carousel-controls .carousel-dot{position:relative;width:7px;height:7px;min-height:7px;padding:0;border:0;border-radius:50%;background:#CBD5E1}
.carousel-dot::before{content:'';position:absolute;inset:-7px -3px}
.product-carousel-controls .carousel-dot[aria-pressed=true]{background:var(--blue)}
.product-carousel-controls .carousel-pause{min-height:28px;width:28px;padding:0;border:0;background:var(--card-surface);border-radius:50%;font-size:13px;color:var(--muted)}
.product-image{height:200px;background:var(--card-surface);overflow:hidden;border-radius:10px}
.product-image img,.product-image .phone-product{width:100%;height:100%;object-fit:contain;object-position:center}
.phone-card img,.phone-placeholder{width:100%;height:200px;object-fit:contain}
.phone-placeholder{display:grid;place-items:center;background:var(--page-surface);color:var(--muted);font-size:13px;border-radius:10px}
.product details{margin:10px 0;font-size:14px}
.product details p{max-height:260px;overflow:auto}
.product details summary{color:var(--blue);cursor:pointer}
.video-card{display:block;flex:0 0 clamp(190px,52vw,220px);min-width:0;max-width:none;overflow:hidden;padding:0 0 7px;border-radius:10px;border-color:#E9EEF6;box-shadow:0 4px 12px #233B6D08;transition:transform .16s ease-out;direction:rtl}
.video-card:active{transform:translateY(2px) scale(.99)}
.video-card:focus-visible,.top-categories a:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.thumbnail{position:relative;aspect-ratio:16/9;overflow:hidden;background:var(--ice);border-radius:13px 13px 0 0}
.thumbnail img,.comparison img{width:100%;height:100%;object-fit:cover;object-position:center;transform:none}
.play{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:46px;height:46px;padding-left:3px;font-size:20px;line-height:1;background:rgba(17,24,39,.7);color:#fff;border:2px solid rgba(255,255,255,.95);border-radius:50%;box-shadow:0 2px 10px #0002}
.video-card h3{font-size:15px;line-height:1.4;margin:8px 10px 4px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.video-card p{font-size:12px;line-height:1.4;color:var(--muted);margin:0 10px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.preview-note{font-size:13px;line-height:1.6;color:var(--muted);margin:12px 0}
#phones-more,#videos-more,#store-more{display:flex;margin:18px auto 0}
.benefits{max-width:var(--max-width);margin:auto;background:var(--card-surface);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:20px 16px;border-top:1px solid var(--line)}
.benefits>div{display:flex;justify-content:center;align-items:center;gap:12px;border-left:1px solid var(--line);min-width:0}
.benefits>div:last-child{border:0}
.benefits svg{width:30px;height:30px;color:var(--blue)}
.benefits p{margin:0;line-height:1.5}
.benefits strong{display:block;font-size:17px}
.benefits span{display:block;font-size:12px;color:var(--muted)}
footer{text-align:center;padding:20px 16px;background:var(--card-surface)}
footer .brand{font-size:25px}
footer p{font-size:13px;color:var(--muted);margin:2px 0 12px}
.socials{display:flex;direction:ltr;justify-content:center;gap:18px}
.socials a{width:26px;height:26px;border-radius:6px;color:#fff;font:700 19px/26px Arial}
.youtube{background:#FF001D}.instagram{background:linear-gradient(35deg,#FFB827,#DF247D,#663CB5)}.tiktok{background:var(--ink)}
/* All secondary pages, admin editors and checkout share the same controls. */
.content-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;max-width:1000px;margin:auto;background:var(--card-surface);border-bottom:1px solid var(--line)}
.content-header>a:last-child{color:var(--blue)}
.article-page,.admin-page{max-width:900px;margin:auto;padding:24px 20px;background:var(--page-surface)}
.article-page h1,.admin-page h1{font-size:30px;margin:0 0 16px}
.article-page article{padding:24px}
.article-page img{width:100%;max-height:420px;object-fit:contain;background:var(--card-surface);border-radius:12px}
.article-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9}
#article-name,#article-date{color:var(--muted)}
.admin-page form{display:grid;gap:14px;background:var(--card-surface);border:1px solid var(--line);border-radius:var(--card-radius);padding:20px;margin:20px 0;box-shadow:var(--card-shadow)}
.admin-page label{display:block;font-weight:700}
.admin-page label[hidden]{display:none}
.password-control{position:relative;display:block;min-width:0}
.password-control input{padding-inline-end:76px}
.password-toggle{position:absolute;inset-inline-end:8px;top:50%;transform:translateY(-42%);padding:6px 8px;border:0;background:transparent;color:var(--blue);font:inherit;font-size:14px;cursor:pointer}
.password-toggle:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:6px}
input,select,textarea{width:100%;min-width:0;max-width:100%;font-size:16px;background:var(--card-surface);color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:12px;margin:6px 0 0;line-height:1.5}
textarea{resize:vertical}
input[type=file]{font-size:14px;overflow:hidden}
input[type=checkbox]{width:auto;min-width:18px;min-height:18px;accent-color:var(--blue)}
.check-label{display:flex!important;align-items:center;gap:10px;font-weight:400!important}
.admin-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}
.admin-tabs a{padding:10px 14px;background:var(--card-surface);border:1px solid var(--line);border-radius:var(--card-radius);font-weight:700}
.admin-tabs [aria-current]{background:var(--blue);color:#fff;border-color:var(--blue)}
.admin-row{display:flex;align-items:center;gap:10px;background:var(--card-surface);border:1px solid var(--line);border-radius:var(--card-radius);margin:8px 0;padding:14px;min-width:0;flex-wrap:wrap}
.admin-row span,.admin-row>a{flex:1;min-width:100px;overflow-wrap:anywhere}
.admin-images{display:flex;gap:8px;flex-wrap:wrap}
.admin-images img{width:100px;height:100px;object-fit:contain;border-radius:10px;border:1px solid var(--line)}
.video-preview,.banner-preview{display:block;width:100%;max-height:300px;object-fit:contain;border:1px solid var(--line);border-radius:var(--card-radius);background:var(--card-surface);margin:12px 0}
.video-preview{max-width:420px}
#admin-status,#banner-status,#order-status{white-space:pre-wrap;color:var(--blue)}
.order-card{padding:20px;margin:12px 0;overflow-wrap:anywhere}
.order-card button{margin:4px;max-width:100%}
.order-card a{display:block;margin:12px 0;color:var(--blue)}
.google-login{width:100%;background:var(--card-surface);color:var(--ink)!important;border-color:var(--line);min-height:48px}
/* Dialogs: cart, menu and search. */
dialog{border:1px solid var(--line);border-radius:var(--card-radius);padding:20px;width:min(480px,calc(100% - 24px));max-height:80dvh;overflow:auto;background:var(--card-surface);color:var(--ink);box-shadow:0 16px 60px #11182726}
dialog::backdrop{background:#11182780}
.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.dialog-head h2{font-size:22px;margin:0}
.dialog-head button{background:var(--page-surface);color:var(--muted);border:0;border-radius:50%;width:36px;height:36px;font-size:25px;padding:0}
.menu-links{display:grid;gap:8px}
.menu-links a,.menu-links button{display:block;text-align:right;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--card-surface);color:var(--ink)}
.demo-alert{background:var(--ice);color:var(--muted);font-size:14px;line-height:1.7;padding:12px;border-radius:12px}
#search-results a{display:block;padding:12px;margin-top:8px;color:var(--blue);border:1px solid var(--line);border-radius:12px}
.cart-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 0;border-bottom:1px solid var(--line);font-size:15px}
.cart-row span{min-width:0;overflow-wrap:anywhere}
.cart-row button{background:none;color:var(--danger);border:0;padding:8px;flex-shrink:0}
#cart-total{font-size:20px;font-weight:700}
#cart-checkout{width:100%}
#toast{position:fixed;bottom:calc(var(--nav-height) + 18px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:calc(100% - 24px);background:var(--ink);color:#fff;border-radius:12px;padding:10px 16px;z-index:40;font-size:14px;display:none;text-align:center}
/* Responsive breakpoints, collected here to avoid cascade conflicts. */
@media(min-width:700px){
 .product-grid,.phones-grid,.video-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .top-categories a{flex:1}
}
@media(min-width:1000px){
 .product-grid,.phones-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .content{padding:28px 20px}
 .phone-card img,.phone-placeholder,.product-image{height:220px}
}
@media(max-width:550px){
 .header{height:58px;padding:0 12px}.brand{font-size:22px}.header-left{left:8px;gap:6px}.header-cart{right:8px}.icon-button svg{width:22px;height:22px}
 .top-categories{padding:4px 8px 10px}.top-categories a{font-size:9px;min-height:52px;padding:4px 2px}
 .hero-copy{width:47%;left:2%;transform:translateY(-58%)}.hero h1{font-size:17px;margin-bottom:4px;line-height:1.2}.hero-copy p{font-size:10px;margin-bottom:5px;line-height:1.3}
 .hero-actions .button{font-size:10px;padding:4px 6px;min-height:28px;gap:3px}.hero-actions{gap:4px}.hero-actions svg{width:14px;height:14px}.hero-controls{bottom:3px;padding:1px 6px;gap:5px}.hero-controls .hero-pause{height:20px;width:22px}
 .content{padding:20px 12px}.content>section{margin-bottom:24px}.section-head h2{font-size:21px}.section-head>a{font-size:13px}
 .phone-card{padding:10px}.product h3{font-size:15px}.phone-card h3{font-size:16px}.price{font-size:21px}.product>.price{font-size:18px}.product .button{font-size:12px;padding:8px 6px}
 .phone-card img,.phone-placeholder,.product-image{height:160px}
 .play{width:36px;height:36px;font-size:16px}
 .benefits{padding:16px 8px}.benefits>div{gap:6px}.benefits svg{width:24px;height:24px}.benefits strong{font-size:13px}.benefits span{font-size:10px}
 .content-header{padding:16px 12px}.content-header .brand{font-size:22px}
 .article-page,.admin-page{padding:20px 12px}.article-page h1,.admin-page h1{font-size:25px}.article-page article,.admin-page form,.order-card{padding:16px}
 .admin-tabs a{font-size:14px;padding:8px 10px}.bottom-nav a,.bottom-nav button{font-size:11px}
}
@media(max-width:360px){
 .brand{font-size:19px}.header-left{gap:1px}.hero h1{font-size:15px}.hero-copy p{font-size:9px}.hero-actions .button{font-size:9px}
 .section-head h2{font-size:19px}.benefits svg{display:none}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.hero-slide{animation:none;transition:none}.top-categories a,.product-touch-zoom,.video-card{transition:none}.video-card:active{transform:none}}

/* Reference layout shared components. Hero artwork awaits the original source file. */
.header-search{display:flex;flex:1;min-width:0;align-items:center;justify-content:space-between;gap:6px;direction:ltr;border:1px solid #fff;border-radius:24px;background:#FFFFFFC9;height:30px;min-height:30px;padding:4px 9px;color:#778194;font-size:10px}.header-search span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;direction:rtl}.header-search svg{width:16px;height:16px}.menu-trigger{background:#fff;border-radius:50%;min-height:34px;min-width:34px}.header .brand{font-size:20px}.header .icon-button svg{width:20px;height:20px}

.thumbnail-unavailable{background:linear-gradient(135deg,#EAF2FC,#DCE9FA)}.thumbnail-label{position:absolute;bottom:7px;left:4px;right:4px;text-align:center;color:#62758D;font-size:10px;line-height:1.3}
.content{padding:16px 12px 24px}.section-head{margin-bottom:10px}.section-head h2{font-size:18px}.section-head>a{font-size:12px}.content>section{margin-bottom:28px}
.content p[role=status]:empty{display:none}
.product,.phone-card{position:relative}.favorite-button{position:absolute!important;top:4px;right:4px;z-index:2;border:0;background:#FFFFFFB3;color:#7D8797;width:24px;min-height:24px;padding:0;border-radius:50%;font-size:23px;line-height:1}.favorite-button[aria-pressed=true]{color:var(--blue)}.product .button svg{pointer-events:none}
@media(min-width:551px){.header .brand{font-size:28px}.header-search{height:38px;font-size:14px}.top-categories a{font-size:13px;min-height:74px}.category-icon{width:42px;height:42px}.top-categories svg{width:26px;height:26px}}



@media(max-width:550px){html{scrollbar-width:none}html::-webkit-scrollbar{display:none}}
.hero-eyebrow{font:700 11px Arial,sans-serif;color:#3AAAE8;letter-spacing:.4px;margin-bottom:8px;direction:ltr;text-align:left}.hero-actions{justify-content:flex-end}.hero-actions .primary{background:#fff;color:var(--blue);border-radius:28px;border-color:#fff;padding:8px 18px}.hero h1 span{color:#36A5FF}
@media(max-width:550px){.header-cart{right:auto}.hero-copy{left:7%;width:43%;transform:translateY(-50%)}.hero-eyebrow{font-size:8px;margin-bottom:8px}.hero h1{font-size:21px;line-height:1.2;margin-bottom:7px}.hero-copy p{font-size:11px;line-height:1.4;margin-bottom:8px}.hero-actions .primary{font-size:10px;min-height:28px;padding:5px 12px}.hero-actions .outline{display:none}}
@media(max-width:360px){.hero h1{font-size:18px}.hero-copy p{font-size:10px}.hero-eyebrow{margin-bottom:4px}}
@media(prefers-reduced-motion:reduce){.bottom-nav{transition:none}}

/* Responsive sizing: shared rails work before and after carousel initialization. */
:root{--rail-gap:12px;--section-gap:28px;--nav-height:66px}
body{padding-bottom:calc(16px + env(safe-area-inset-bottom,0px));padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}
body.with-bottom-nav{padding-bottom:calc(var(--nav-height) + 24px + env(safe-area-inset-bottom,0px))}
main,.content,.content>section{min-width:0;max-width:100%}
.content{display:grid;gap:var(--section-gap);max-width:var(--max-width);padding:16px 12px 24px}
.content>section{margin:0}
.section-head{direction:rtl;margin-bottom:10px}
.section-head h2{min-width:0}
#videos-grid,#phones-grid,#store-grid{
 display:flex;direction:rtl;justify-content:flex-start;align-items:stretch;
 width:100%;min-width:0;gap:var(--rail-gap);overflow-x:auto;
 overscroll-behavior-x:contain;scroll-snap-type:x proximity;
 scroll-padding-inline:0;scrollbar-width:none;padding:2px 0 8px;
}
#videos-grid::-webkit-scrollbar,#phones-grid::-webkit-scrollbar,#store-grid::-webkit-scrollbar{display:none}
#videos-grid>.video-card{flex:0 0 clamp(260px,28vw,320px);scroll-snap-align:start;scroll-snap-stop:normal}
#phones-grid>.phone-card,#store-grid>.product{flex:0 0 clamp(180px,22vw,230px);max-width:none;scroll-snap-align:start;scroll-snap-stop:normal}
.product-carousel-controls{margin:4px 0 0;min-width:0}
.product-carousel .phone-card{display:flex;flex-direction:column;padding:8px}
.product-carousel .phone-card img,.product-carousel .phone-placeholder{height:auto;aspect-ratio:1;object-fit:contain}
.product-carousel .phone-card h3{margin:6px 0 3px;min-height:2.8em}
.product-carousel .phone-card p{margin:3px 0 6px}
#videos-grid .video-card h3{min-height:2.8em}
.product .store-gallery img{object-fit:contain;object-position:center}
.top-categories{overscroll-behavior-x:contain}
.top-categories a{scroll-snap-align:start}
.bottom-nav{width:calc(100% - 12px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));max-width:560px;left:env(safe-area-inset-left,0px);right:env(safe-area-inset-right,0px);margin-inline:auto;height:var(--nav-height);padding:6px 12px}
.bottom-nav a,.bottom-nav button{min-width:0;min-height:52px}
/* Mobile proportions measured from IMG_4262(3), normalized to viewport width.
   Latest reference supersedes the earlier 190–220 / 145–165px card brief. */
@media(max-width:699px){
 :root{--rail-gap:6px;--section-gap:12px;--nav-height:48px}
 .header{height:48px;padding:4px 9px;gap:7px}
 .header .brand{font-size:clamp(14px,4.6vw,24px);letter-spacing:-.9px;flex-shrink:0}
 .header-search{height:30px;min-height:30px;padding:4px 10px;font-size:clamp(8px,1.85vw,12px)}
 .header-search svg{width:16px;height:16px}
 .menu-trigger{min-width:34px;min-height:30px;padding:6px}
 .header-cart{right:auto;min-width:28px;min-height:34px;flex:0 0 28px;padding:4px}
 .header .icon-button svg{width:20px;height:20px}
 .cart-count{min-width:14px;height:14px;font-size:9px}
 .top-categories{gap:5px;padding:3px 9px 11px}
 .top-categories a{flex:1 0 0;min-width:0;min-height:52px;padding:3px 1px;gap:3px;font-size:clamp(8px,1.95vw,12px);border-radius:8px}
 .category-icon{width:30px;height:30px}
 .top-categories svg{width:19px;height:19px}
 .hero{width:calc(100% - 10px);aspect-ratio:2.2/1;margin-bottom:0;border-radius:11px}
 .hero-copy{left:7%;width:43%;transform:translateY(-50%)}
 .hero-eyebrow{font-size:clamp(8px,2vw,12px);margin-bottom:8px}
 .hero h1{font-size:clamp(18px,5.15vw,30px);line-height:1.3;margin-bottom:7px}
 .hero-copy p{font-size:clamp(10px,2.7vw,16px);line-height:1.4;margin-bottom:10px}
 .hero-actions{justify-content:flex-end}
 .hero-actions .primary{font-size:clamp(9px,2.25vw,13px);min-height:26px;padding:5px 11px;gap:6px}
 .hero-actions .outline{display:none}
 .content{padding:14px 9px 20px}
 .section-head{margin-bottom:5px;gap:8px;min-height:20px}
 .section-head h2{font-size:clamp(13px,3.1vw,20px);gap:5px}
 .section-head h2 svg{width:16px;height:16px}
 .section-head>a{font-size:clamp(10px,2.35vw,14px);gap:2px}
 #videos-grid,#phones-grid,#store-grid{padding:1px 0 4px}
 #videos-grid>.video-card{flex-basis:clamp(96px,29.5vw,190px);border-radius:8px;padding-bottom:7px}
 #videos-grid .thumbnail{aspect-ratio:4/3;border-radius:8px 8px 0 0}
 #videos-grid .video-card h3{font-size:clamp(9px,2.2vw,14px);line-height:1.4;min-height:2.8em;margin:5px 6px 3px}
 #videos-grid .video-card p{font-size:clamp(8px,1.9vw,12px);line-height:1.4;min-height:2.8em;margin:0 6px}
 .play{width:28px;height:28px;font-size:12px;border-width:1px}
 #phones-grid>.phone-card,#store-grid>.product{flex:0 0 calc((100% - 18px)/4);border-radius:9px}
 .product-carousel .phone-card{padding:5px;text-align:left;direction:ltr}
 .product-carousel .phone-card img,.product-carousel .phone-placeholder{aspect-ratio:1;height:auto;width:100%;object-fit:contain}
 .product-carousel .phone-card h3{font-size:clamp(8px,2.05vw,13px);line-height:1.35;min-height:1.35em;margin:4px 1px 2px;-webkit-line-clamp:1}
 .product-carousel .phone-card p{position:relative;font-size:clamp(7px,1.7vw,11px);line-height:1.4;margin:1px 1px 2px;padding-right:13px;min-height:1.4em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;direction:rtl;text-align:left}
 .product-carousel .phone-card p::after{content:'→';position:absolute;right:0;top:-3px;font:700 18px/1 Arial;color:var(--blue)}
 .favorite-button{width:20px;min-height:20px;font-size:20px;top:3px;right:3px}
 .product-carousel .product h3{font-size:clamp(8px,2vw,13px);line-height:1.35;min-height:1.35em;padding:0 6px;margin:4px 0 2px;-webkit-line-clamp:1;direction:ltr;text-align:left}
 .product .store-gallery{aspect-ratio:1.13;border-radius:8px 8px 0 0}
 .product>.price{font-size:clamp(9px,2.2vw,14px);line-height:1.4;margin:1px 0 7px;padding:0 28px 0 6px;min-height:26px;direction:ltr;text-align:left;overflow-wrap:normal}
 .product .stock-note,.product-details-hint{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .product .button{position:absolute;right:6px;bottom:6px;width:24px;height:24px;min-height:24px;padding:4px;margin:0;border-radius:7px}
 .product .button svg{width:16px;height:16px}
 .product .gallery-dots{position:absolute;top:4px;left:4px;padding:0;gap:3px;max-width:calc(100% - 30px)}
 .gallery-dots .gallery-dot{width:4px;min-height:4px;height:4px}
 .bottom-nav{width:calc(100% - 12px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));max-width:560px;border-radius:28px;padding:4px 10px}
 .bottom-nav a,.bottom-nav button{font-size:clamp(9px,2.1vw,12px);min-height:38px;gap:1px;position:relative}
 .bottom-nav svg{width:20px;height:20px}
 .bottom-nav .active::after{content:'';position:absolute;bottom:0;left:25%;right:25%;height:2px;border-radius:3px;background:var(--blue)}
 .menu-trigger::before,.header-cart::before,.header-search::before{content:'';position:absolute;inset:-6px 0}
 .header-search{position:relative}
 .product .button::before{content:'';position:absolute;inset:-7px -4px}
}
@media(max-width:360px){
 .header{gap:5px;padding-inline:7px}
 .header .brand{font-size:14px}
 .header-search{padding:4px 6px;font-size:7px}
 .header-search span{font-size:7px}
 .header-search svg{width:14px;height:14px}
 .top-categories a{font-size:7px}
 .hero-eyebrow{margin-bottom:4px}
}

/* Secondary pages use their own available width, without homepage nav clearance. */
.content-header,.article-page,.admin-page{width:100%;min-width:0}
.content-header{gap:8px;flex-wrap:wrap}
.content-header>a{min-width:0;max-width:100%;overflow-wrap:anywhere}
.content-header .brand{font-size:clamp(18px,5vw,25px)}
.article-page article,.admin-page form,.admin-page section,.admin-tabs,.order-card{min-width:0;max-width:100%}
.admin-page form{grid-template-columns:minmax(0,1fr)}
.admin-page label,.admin-page form>*,.order-card>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
.admin-tabs a,.admin-tabs button{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.article-text{min-width:0;max-width:100%}
.product-detail-gallery{max-width:100%;min-width:0}
#product-page-add{max-width:100%;white-space:normal}

/* Optional product promotions; existing card surfaces and colors stay intact. */
.product[role="link"]{cursor:pointer}
.product[role="link"]:focus-visible{outline:2px solid #0878F9;outline-offset:3px}
.product-discount-badge{position:absolute;top:10px;left:10px;z-index:1;background:#dc2626;color:#fff;padding:4px 8px;border-radius:8px;font-size:clamp(10px,2.2vw,13px);font-weight:800;line-height:1.35;pointer-events:none}
.product-old-price{display:block;color:#8A9AB8;font-size:.72em;font-weight:400;margin-block-end:3px;text-decoration:line-through}
.product-new-price{display:block;font-weight:800}
#product-page-discount{position:static;display:inline-block;margin-block-end:10px}
#product-page-discount[hidden]{display:none}
