@font-face{font-family:RoyanYekan;src:url('../fonts/Yekan.woff2') format('woff2');font-display:swap}
:root{
  --bg:#f4f7fb;
  --surface:#ffffff;
  --surface-soft:#f8fafc;
  --border:#e5ebf4;
  --text:#13233e;
  --muted:#6b7a90;
  --brand:#ff6b21;
  --brand-dark:#ed5a15;
  --navy:#102039;
  --success:#15803d;
  --shadow:0 12px 40px rgba(16,32,57,.08);
  --radius:22px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{width:100%;max-width:100%;overflow-x:hidden}
body.royan-body{margin:0;direction:rtl;background:linear-gradient(180deg,#f5f8fc 0%,#eef3f8 100%);color:var(--text);font-family:RoyanYekan,Tahoma,sans-serif;font-size:15px}
button,input,textarea{font:inherit}
a{text-decoration:none;color:inherit}
[hidden]{display:none!important}
.royan-bg{position:fixed;inset:0;background:radial-gradient(circle at top right,rgba(255,107,33,.12),transparent 28%),radial-gradient(circle at top left,rgba(16,32,57,.08),transparent 20%);pointer-events:none}
.app-shell{position:relative;z-index:1;max-width:1240px;min-height:100vh;margin:22px auto;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);border:1px solid rgba(229,235,244,.85);border-radius:32px;box-shadow:0 20px 80px rgba(16,32,57,.08);padding-bottom:108px;overflow:hidden}
.royan-icon{height:22px;width:22px;display:inline-block;flex:none}
.royan-topbar{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:16px;padding:18px 28px;border-bottom:1px solid var(--border);background:rgba(255,255,255,.88)}
.topbar-group{display:flex;align-items:center;gap:12px}
.topbar-group-center{justify-content:center}
.topbar-group-left{justify-content:flex-end}
.royan-brand{display:flex;align-items:center;gap:12px;color:var(--text)}
.brand-copy{display:flex;flex-direction:column;align-items:flex-end}
.brand-symbol{display:grid;place-items:center;border-radius:18px;background:linear-gradient(135deg,var(--brand),#ff8545);color:#fff;width:54px;height:54px;font-size:28px;box-shadow:0 10px 24px rgba(255,107,33,.25)}
.royan-brand strong{display:block;font-weight:900;font-size:31px;line-height:1.1}
.royan-brand small{display:block;font-size:12px;color:var(--muted);margin-top:2px}
.top-search{display:flex;align-items:center;gap:10px;background:var(--surface-soft);border:1px solid var(--border);border-radius:18px;padding:13px 16px;color:var(--muted);font-size:14px;width:min(100%,460px)}
.top-link-chip{display:inline-flex;align-items:center;justify-content:center;padding:11px 16px;background:var(--surface-soft);border:1px solid var(--border);border-radius:16px;color:var(--text);font-size:13px;font-weight:700}
.top-cart{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:11px;display:grid;place-items:center;box-shadow:0 6px 16px rgba(16,32,57,.05)}
.royan-main{padding:22px 28px 36px}
.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:18px}
.page-eyebrow{display:inline-block;font-size:12px;color:var(--brand-dark);margin-bottom:6px;font-weight:800}
.page-heading h1{margin:0;font-size:24px;font-weight:900}
.page-heading a{font-size:13px;color:var(--brand-dark);font-weight:700}
.catalog-hero{display:grid;grid-template-columns:1.5fr .95fr;gap:18px;margin-bottom:26px}
.catalog-hero-copy,.catalog-hero-card,.product-summary-card,.series-card,.product-card,.search-wrap-elevated,.color-tile,.sticky-flow-actions,.section-title,.catalog-intro{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow)}
.catalog-hero-copy{padding:28px;border-radius:26px;background:linear-gradient(135deg,#fff 0%,#f7f9fc 100%)}
.hero-badge{display:inline-flex;padding:8px 12px;border-radius:999px;background:#fff1e8;color:var(--brand-dark);font-size:12px;font-weight:800;margin-bottom:14px}
.catalog-hero-copy h2{margin:0;font-size:34px;line-height:1.6;font-weight:900;max-width:650px}
.catalog-hero-copy p{margin:14px 0 0;color:var(--muted);line-height:2;max-width:620px}
.hero-stats{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.stat-pill{display:flex;flex-direction:column;gap:4px;min-width:115px;padding:14px 16px;border-radius:18px;background:#fbfcfe;border:1px dashed #d9e3f1}
.stat-pill strong{font-size:18px;font-weight:900;color:var(--navy)}
.stat-pill span{font-size:12px;color:var(--muted)}
.catalog-hero-card{padding:24px;border-radius:26px;background:linear-gradient(180deg,#102039 0%,#152b4a 100%);color:#fff}
.catalog-hero-card h3{margin:0 0 14px;font-size:20px;font-weight:900}
.catalog-hero-card ol{margin:0;padding:0 18px 0 0;line-height:2}
.catalog-hero-card li{margin:0 0 8px;color:#deebff}
.compact-hero{align-items:stretch}
.section-title{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:18px 20px;border-radius:22px;margin-bottom:16px}
.section-title h2{font-size:22px;font-weight:900;margin:0}
.section-title span{font-size:13px;color:var(--brand-dark);font-weight:800;white-space:nowrap}
.section-subtitle{margin:7px 0 0;font-size:13px;color:var(--muted);line-height:1.8}
.search-wrap{display:flex;align-items:center;gap:10px;border:1px solid var(--border);background:var(--surface-soft);border-radius:18px;padding:14px 16px;margin-bottom:20px}
.search-wrap input{background:transparent;outline:none;width:100%;border:0;direction:rtl;font-size:14px}
.search-wrap-elevated{margin-bottom:18px}
.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.product-card{display:block;border-radius:22px;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease;min-width:0}
.product-card:hover{transform:translateY(-4px);box-shadow:0 16px 36px rgba(16,32,57,.12)}
.product-image{position:relative;aspect-ratio:1.15;background:linear-gradient(180deg,#f8fafc 0%,#f2f5fa 100%);overflow:hidden}
.product-image img{height:100%;width:100%;object-fit:contain;padding:12px}
.product-tag{position:absolute;top:12px;right:12px;border-radius:999px;background:#e8fbef;color:var(--success);font-size:11px;font-weight:800;padding:5px 12px}
.product-details{padding:16px}
.product-details h3{margin:0 0 8px;font-size:18px;font-weight:900;line-height:1.5}
.product-muted{font-size:12px;color:var(--muted);margin:0 0 14px}
.product-meta-line{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-radius:14px;background:#f8fafc;margin-bottom:14px;font-size:12px;color:var(--muted)}
.meta-chip{display:inline-flex;padding:4px 9px;border-radius:999px;background:#fff;border:1px solid var(--border);font-weight:800;color:var(--text)}
.product-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px}
.product-price{font-size:14px;color:var(--brand-dark);font-weight:900}
.product-see{display:inline-flex;align-items:center;justify-content:center;border-radius:14px;background:#fff1e8;color:#b64812;padding:10px 12px;font-size:12px;font-weight:800;white-space:nowrap}
.demo-note{color:var(--muted);font-size:12px;margin:20px 0;line-height:2}
.empty-catalog,.empty-series{padding:28px;text-align:center;background:#f8fafc;border:1px dashed #d6e1ef;border-radius:18px;color:var(--muted)}
.product-summary-card{display:grid;grid-template-columns:360px 1fr;gap:20px;padding:20px;border-radius:28px;margin-bottom:20px}
.product-summary-media{display:grid;place-items:center;background:linear-gradient(180deg,#f9fbfe 0%,#f1f5f9 100%);border-radius:22px;min-height:290px}
.product-summary-media img{max-width:100%;max-height:250px;object-fit:contain;padding:15px}
.product-summary-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.step-label{font-size:12px;color:var(--brand-dark);font-weight:800;margin:0}
.inline-back-link{font-size:13px;color:var(--brand-dark);font-weight:700}
.product-summary-content h2{margin:10px 0 8px;font-size:32px;font-weight:900}
.product-summary-text{margin:0;color:var(--muted);line-height:2;font-size:14px;max-width:780px}
.summary-pills{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.summary-pill{display:inline-flex;padding:10px 14px;border-radius:999px;background:#f8fafc;border:1px solid var(--border);font-size:12px;font-weight:800;color:var(--text)}
.color-page{padding-bottom:10px}
.section-title-stack{margin-bottom:18px}
.color-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.color-tile{display:flex;min-width:0;flex-direction:column;text-align:right;cursor:pointer;border-radius:22px;padding:12px;transition:transform .18s ease,box-shadow .18s ease}
.color-tile:hover{transform:translateY(-3px);box-shadow:0 18px 36px rgba(16,32,57,.12)}
.color-tile-image{width:100%;height:215px;display:grid;place-items:center;background:linear-gradient(180deg,#f9fbfd 0%,#f3f6fa 100%);border-radius:16px}
.color-tile-image img{max-height:185px;width:100%;object-fit:contain;padding:8px}
.color-tile-info{display:flex;flex-direction:column;gap:4px;padding:14px 4px 10px}
.color-tile-info strong{font-size:16px;font-weight:900}
.color-tile-info small{color:var(--muted);font-size:12px}
.color-tile-arrow{display:inline-flex;align-items:center;justify-content:center;padding:12px;border-radius:14px;background:#fff1e8;color:#b64812;font-size:12px;font-weight:800}
.royan-sheet{border:0;max-height:88dvh;overflow-y:auto;box-shadow:0 32px 80px rgba(16,32,57,.28)}
.royan-sheet::backdrop{background:rgba(8,19,36,.68)}
.royan-sheet-rich{padding:18px 18px 22px!important;border-radius:28px!important;width:min(920px,94vw)!important;max-width:min(920px,94vw)!important;inset:50% auto auto 50%!important;transform:translate(-50%,-50%);max-height:min(88dvh,900px)!important}
.royan-sheet-rich[open]{display:block}
.sheet-grip{width:48px;height:5px;border-radius:999px;background:#d3dbe8;margin:0 auto 14px}
.sheet-header{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:12px}
.sheet-header small{color:var(--muted);font-size:11px}
.sheet-header h2{margin:4px 0 0;font-size:18px;font-weight:900}
.sheet-close{border:0;background:#f1f5f9;border-radius:14px;width:44px;height:44px;cursor:pointer;font-size:28px;line-height:1}
.sheet-layout{display:grid;grid-template-columns:280px 1fr;gap:18px}
.sheet-product-panel{background:#f8fafc;border:1px solid var(--border);border-radius:22px;padding:16px;position:sticky;top:0;height:fit-content}
.sheet-product{width:100%;height:210px;object-fit:contain;background:#fff;border-radius:18px;margin:0 0 14px}
.sheet-product-copy strong{font-size:16px;font-weight:900;display:block;margin-bottom:6px}
.sheet-product-copy p{margin:0;color:var(--muted);line-height:1.9;font-size:13px}
.series-list{display:flex;flex-direction:column;gap:12px}
.series-card{margin:0;padding:16px;border-radius:20px}
.series-card-title{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.series-card-title strong{font-size:15px}
.series-card-title span,.series-stock{font-size:12px;color:var(--muted)}
.series-price{font-weight:900;color:var(--brand-dark);margin:12px 0 10px}
.series-price small{font-weight:400;color:var(--muted)}
.series-stock{line-height:1.9;margin:0}
.series-actions{display:grid;grid-template-columns:130px 1fr;gap:10px;align-items:end;margin-top:14px}
.series-actions label{font-size:12px;font-weight:700;color:var(--text)}
.series-actions input{display:block;width:100%;border:1px solid #cad5e4;border-radius:14px;padding:12px;background:#fff;font-size:16px;color:#172b4d;margin-top:6px;min-height:48px}
.primary-mobile-btn,.secondary-mobile-btn{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:12px 18px;border-radius:15px;font-weight:800;text-align:center;text-decoration:none;font-size:14px;border:0;cursor:pointer}
.primary-mobile-btn{background:linear-gradient(135deg,var(--brand),#ff8545);color:#fff;box-shadow:0 10px 22px rgba(255,107,33,.28)}
.primary-mobile-btn:disabled{background:#cbd5e1;box-shadow:none;cursor:not-allowed}
.secondary-mobile-btn{background:#eef2f7;color:var(--text);border:1px solid var(--border)}
.sticky-flow-actions{position:fixed;z-index:24;bottom:20px;right:50%;transform:translateX(50%);width:min(760px,calc(100vw - 32px));display:flex;gap:10px;padding:12px;border-radius:22px}.sticky-flow-actions>*{flex:1}
.bottom-nav{display:none}
dialog{border:1px solid #dfe5ed}dialog::backdrop{background:#0c162866}
.field{display:block;width:100%;border:1px solid #dce3ef;border-radius:12px;padding:12px;background:white}
.btn-primary{background:var(--brand)!important;color:white!important;padding:12px 20px;border-radius:13px;border:0;display:inline-block;cursor:pointer}
.field-label{display:block;margin-bottom:8px;font-weight:bold}.royan-help{font-size:13px;color:#64748b;margin-top:7px}.royan-error{color:#b91c1c}

@media (max-width:1080px){
  .app-shell{margin:0;min-height:100vh;border-radius:0;max-width:none}
  .royan-topbar{grid-template-columns:1fr auto;row-gap:10px;padding:14px 16px}
  .topbar-group-center{grid-column:1/-1;justify-content:stretch}
  .top-search{width:100%}
  .catalog-hero{grid-template-columns:1fr}
  .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .color-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .product-summary-card{grid-template-columns:1fr}
  .sheet-layout{grid-template-columns:1fr}
  .sheet-product-panel{position:static}
}
@media (max-width:760px){
  body.royan-body{background:#f5f7fb}
  .royan-bg{display:none}
  .royan-main{padding:14px 14px 26px}
  .page-heading{margin-bottom:14px}
  .page-heading h1{font-size:18px}
  .page-heading a{font-size:12px}
  .royan-topbar{grid-template-columns:auto 1fr auto;gap:10px;padding:12px 14px}
  .topbar-group-center{grid-column:auto;order:2}
  .topbar-group-left{display:none}
  .royan-brand strong{font-size:24px}
  .royan-brand small{display:none}
  .brand-symbol{width:42px;height:42px;border-radius:14px;font-size:23px}
  .top-search{padding:10px 12px;border-radius:14px}
  .top-search span{display:none}
  .catalog-hero-copy,.catalog-hero-card,.section-title,.product-summary-card{padding:16px;border-radius:20px}
  .catalog-hero-copy h2{font-size:22px;line-height:1.9}
  .hero-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .stat-pill{padding:12px}
  .section-title{flex-direction:column;align-items:flex-start}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .product-card,.color-tile{border-radius:18px}
  .product-image{aspect-ratio:1.08}
  .product-details{padding:12px}
  .product-details h3{font-size:15px}
  .product-bottom{flex-direction:column;align-items:stretch}
  .product-see{text-align:center}
  .product-summary-content h2{font-size:22px}
  .color-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .color-tile-image{height:135px}
  .color-tile-image img{max-height:118px}
  .color-tile-info strong{font-size:14px}
  .royan-sheet-rich{width:100%!important;max-width:100%!important;inset:auto 0 0 0!important;transform:none!important;max-height:90dvh!important;border-radius:24px 24px 0 0!important;padding:14px!important}
  .sheet-grip{display:block}
  .sheet-layout{gap:12px}
  .sheet-product-panel{padding:12px;border-radius:18px}
  .sheet-product{height:156px}
  .series-card{padding:14px;border-radius:18px}
  .series-actions{grid-template-columns:1fr;gap:10px}
  .series-actions input{max-width:none}
  .sticky-flow-actions{bottom:72px;left:0;right:0;transform:none;width:auto;margin:0 12px;padding:10px;border-radius:18px}
  .bottom-nav{position:fixed;display:flex;bottom:0;left:0;right:0;align-items:center;justify-content:space-around;background:#13233e;color:#f9fbff;z-index:25;box-shadow:0 -4px 20px #15243e24;padding:8px 4px;border-radius:18px 18px 0 0}
  .bottom-nav > a,.bottom-nav > form{min-width:0;flex:1;display:flex;align-items:center;justify-content:center}
  .bottom-nav form{margin:0}
  .bottom-nav .nav-item{appearance:none;color:inherit;background:none;border:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;padding:5px 3px;min-width:0;flex:1;font-size:10px;line-height:1.2;cursor:pointer}
  .bottom-nav svg.royan-icon{height:20px;width:20px}
  .app-shell{padding-bottom:168px}
}

/* Stage 11 — polished glass UI and mobile-first ordering corrections */
:root{--glass:rgba(255,255,255,.88);--glass-border:rgba(228,234,244,.85)}
body.royan-body{background:#eff3f9}
.app-shell{padding-bottom:126px!important}
.royan-topbar{background:rgba(255,255,255,.8);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.page-heading{margin-bottom:12px}.page-eyebrow{font-size:11px}
.color-search-head{display:flex;align-items:center;gap:14px;margin:3px 0 13px}
.color-back{display:grid;place-items:center;width:43px;height:43px;flex:none;border-radius:13px;background:var(--glass);border:1px solid var(--border);font-size:23px}
.color-search-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:1}
.color-search-heading h2{margin:0;font-size:21px;font-weight:900}.color-search-heading span{color:var(--muted);font-size:12px}
.color-live-search{height:52px;box-shadow:0 6px 26px #14213b0b;margin-bottom:16px}
.color-tile-rich,.product-card,.mobile-order-line,.cart-header,.total-strip,.login-shell{background:var(--glass);border:1px solid var(--glass-border);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 10px 28px rgba(17,35,60,.06)}
.color-tile-rich{overflow:hidden}.color-tile-rich:focus-visible{outline:3px solid #ff934d;outline-offset:2px}
.color-tile-image{background:linear-gradient(140deg,#fff,#f2f6fc)}
.color-tile-arrow{background:linear-gradient(110deg,#fff0e7,#ffe6d5)}
.royan-sheet-rich{background:rgba(255,255,255,.98)!important;backdrop-filter:blur(20px);border:1px solid var(--glass-border)!important}
.sheet-product-panel{background:linear-gradient(145deg,#f7faff,#edf3f9)}
.series-card{box-shadow:0 5px 18px rgba(16,32,57,.05)}
.bottom-nav{display:flex!important;position:fixed!important;left:50%!important;right:auto!important;bottom:max(12px,env(safe-area-inset-bottom))!important;transform:translateX(-50%)!important;max-width:650px!important;width:calc(100% - 30px)!important;min-height:68px;z-index:80!important;align-items:center;justify-content:space-around;gap:5px;background:rgba(16,32,57,.96);backdrop-filter:blur(18px);border:1px solid rgba(255,255,255,.13);border-radius:22px!important;padding:8px!important;box-shadow:0 14px 35px rgba(16,32,57,.28)}
.bottom-nav>a,.bottom-nav>form{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;margin:0}
.bottom-nav .nav-item{display:flex;flex:1;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-width:0;width:100%;padding:5px 2px;background:none;border:0;color:#f8fafc;font-size:11px;white-space:nowrap;cursor:pointer}
.bottom-nav .royan-icon{height:21px;width:21px}.bottom-nav .nav-item:hover{color:#ffb58c}
.sticky-flow-actions{bottom:91px!important;max-width:650px;z-index:60}
.cart-header{padding:20px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:22px;margin-bottom:18px}
.cart-header h2{margin:3px 0;font-size:24px}.cart-header p{color:var(--muted);font-size:13px;margin:7px 0}
.cart-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.mobile-order-line{border-radius:20px;padding:20px;margin:0;min-width:0}.mobile-order-line>strong{font-size:17px}.mobile-order-line p{color:var(--muted);line-height:1.9;font-size:13px}
.mobile-order-line .series-actions{grid-template-columns:1fr auto;display:grid;margin:12px 0}.mobile-order-line .series-actions input{min-width:80px}
.mobile-order-line small{color:var(--muted)}.line-subtotal{font-weight:900;color:var(--text)!important}
.total-strip{border-radius:18px;padding:18px;margin:20px 0;display:flex;justify-content:space-between;font-size:18px}
.block-flow-btn{display:flex;width:100%;margin:10px 0}
.login-page .app-shell{max-width:560px!important;margin:45px auto!important;min-height:auto;border-radius:28px!important;padding-bottom:0!important;overflow:visible}
.login-page .btn-primary{width:100%;min-height:49px;border-radius:14px}.login-page .field{background:rgba(248,250,254,.85)}
input[dir=ltr],input[type=number],input[type=tel],input[type=email],input[type=password],input[inputmode=numeric],input[inputmode=decimal]{direction:ltr!important;text-align:left!important;unicode-bidi:plaintext}
input::placeholder{opacity:.75}
.royan-toast{position:fixed;z-index:9999;top:18px;left:18px;max-width:min(420px,calc(100vw - 36px));padding:13px 17px;border-radius:17px;border:1px solid #dce5f1;background:rgba(255,255,255,.96);box-shadow:0 14px 40px #09152c24;color:#13233e;font-family:RoyanYekan,Tahoma,sans-serif;direction:rtl;backdrop-filter:blur(14px);animation:royanToastIn .25s ease}
.royan-toast.is-error{border-right:5px solid #dc2626}.royan-toast.is-success{border-right:5px solid #16a34a}.royan-toast.is-info{border-right:5px solid #ff6b21}
@keyframes royanToastIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}
@media(max-width:760px){.app-shell{padding-bottom:160px!important}.royan-main{padding:10px 12px 26px}.page-heading{margin-bottom:9px}.page-heading .page-eyebrow{display:none}.page-heading h1{font-size:17px}.color-search-heading h2{font-size:16px}.color-search-heading span{font-size:11px}.color-live-search{height:48px;margin-bottom:12px}.color-list{gap:10px}.color-tile-rich{padding:7px;border-radius:17px}.color-tile-image{height:122px}.color-tile-info{padding:8px 4px}.color-tile-arrow{padding:9px;font-size:11px}.bottom-nav{bottom:max(8px,env(safe-area-inset-bottom))!important;width:calc(100% - 16px)!important;min-height:62px;border-radius:18px!important;padding:6px!important}.bottom-nav .nav-item{font-size:10px}.sticky-flow-actions{bottom:79px!important;margin:0 8px}.cart-header{padding:14px;align-items:flex-start;flex-direction:column}.cart-header h2{font-size:19px}.cart-items{grid-template-columns:1fr}.mobile-order-line{padding:15px}.login-page .app-shell{margin:10px!important;max-width:none!important;border-radius:24px!important}}

/* Stage 12: ordering-first catalog and truly viewport-fixed navigation */
.app-shell{padding-bottom:120px!important}
.bottom-nav{position:fixed!important;left:50%!important;right:auto!important;bottom:max(12px,env(safe-area-inset-bottom))!important;transform:translateX(-50%)!important;width:min(650px,calc(100vw - 24px))!important;max-width:none!important;z-index:100!important}
.catalog-section{padding-top:0!important;margin-top:0!important}
.catalog-section .search-wrap{margin-top:0!important;margin-bottom:12px!important}
.product-grid{align-content:start}
@media(max-width:760px){
 .app-shell{padding-bottom:115px!important}
 .bottom-nav{width:calc(100vw - 16px)!important;bottom:max(8px,env(safe-area-inset-bottom))!important}
 .royan-main{padding-top:10px!important}
 .page-heading{margin-bottom:10px!important}
}

/* Stage 15 — viewport anchored navigation: do not calculate offset from the RTL containing block */
html body.royan-body > nav.bottom-nav {
  position: fixed !important;
  inset-inline-start: auto !important;
  inset-inline-end: auto !important;
  top: auto !important;
  left: 0 !important;
  right: 0 !important;
  bottom: max(10px, env(safe-area-inset-bottom)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  transform: none !important;
  width: min(650px, calc(100% - 24px)) !important;
  max-width: none !important;
  min-height: 68px;
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  direction: rtl;
  padding: 7px !important;
  z-index: 1000 !important;
}
html body.royan-body > nav.bottom-nav > a,
html body.royan-body > nav.bottom-nav > form {
  width: 100%; min-width: 0; margin: 0; display: flex;
  align-items: stretch; justify-content: stretch;
}
html body.royan-body > nav.bottom-nav .nav-item {
  width: 100%; min-width: 0; min-height: 50px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; white-space: nowrap;
  text-align: center; padding: 5px 1px;
}
@media(max-width:760px) {
  html body.royan-body > nav.bottom-nav {
    width: calc(100% - 20px) !important;
    min-height: 64px;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
  }
  html body.royan-body > nav.bottom-nav .nav-item {font-size: 11px;}
}
