:root{--ink:#684b3e;--gold:#b68c76;--cream:#faf6f1;--line:#e9ded4}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:Tahoma,Arial,sans-serif;font-size:14px;padding-bottom:84px}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}.promo{text-align:center;background:var(--ink);color:#fff;padding:10px;font-size:11px}header{position:sticky;top:0;z-index:10;background:#fffdfb;border-bottom:1px solid var(--line);padding:13px max(4%,calc((100% - 1120px)/2))}.top{display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{font:28px Georgia,serif;letter-spacing:3px;text-align:center}.brand small{display:block;font:10px Arial;letter-spacing:4px;margin-top:2px}.head-actions{display:flex;gap:8px;direction:ltr}.head-actions button{min-width:43px;height:43px;border:1px solid var(--line);background:#fffcf8;border-radius:13px;color:var(--ink);font-size:19px}.head-actions button:first-child{font-size:13px;font-weight:bold}.head-actions sup{font-size:10px}.search{display:block;width:100%;margin-top:15px;padding:13px 18px;border:1px solid var(--line);background:#faf7f2;border-radius:30px;color:var(--ink);outline-color:var(--gold)}main{max-width:1100px;margin:auto;padding:18px 15px 45px}.hero{min-height:290px;border:1px solid var(--line);background:#f4eae0;border-radius:20px;display:grid;grid-template-columns:1fr 1fr;overflow:hidden}.hero-copy{padding:32px;align-self:center}.hero-copy small{font-size:11px;letter-spacing:2px}.hero h1{font-family:Georgia,Tahoma,serif;font-size:clamp(23px,3vw,39px);line-height:1.5;font-weight:normal}.hero p{line-height:1.9}.hero img{width:100%;height:100%;min-height:280px;object-fit:cover}.primary{border:0;background:var(--ink);color:#fff;border-radius:10px;padding:12px 20px}.outline{background:#fff;border:1px solid #cdb6a8;color:var(--ink);padding:11px 18px;border-radius:10px}.features{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0 40px}.features>div{border:1px solid var(--line);background:#fff;padding:18px 8px;text-align:center;border-radius:13px;color:var(--gold);font-size:24px}.features p{font-size:12px;color:var(--ink);margin:8px 0 0}h2{text-align:center;font-size:23px;font-weight:normal;margin:30px 0 22px}.cats{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}.cat{background:#fff;border:1px solid var(--line);border-radius:15px;padding:8px;color:var(--ink);text-align:center}.cat img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px}.cat span{display:block;padding:11px 2px;font-size:12px}.section-head{display:flex;align-items:center;justify-content:center;gap:20px}.text-btn{border:0;background:transparent;color:var(--ink);text-decoration:underline}.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.product{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;padding-bottom:13px;display:flex;flex-direction:column}.product-img{position:relative}.product-img>img{width:100%;aspect-ratio:1;object-fit:cover;display:block;cursor:pointer}.fav{position:absolute;top:10px;left:10px;border:0;border-radius:50%;background:#fffdfbe8;color:var(--ink);font-size:22px;width:34px;height:34px}.product-body{padding:12px 13px;display:flex;flex-direction:column;flex:1;gap:7px}.product-name{font-size:17px;font-weight:bold;min-height:25px;cursor:pointer}.muted{color:#957b6d;font-size:12px;line-height:1.7}.desc{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:35px}.price{font-size:21px;font-weight:bold;margin-top:auto;padding-top:10px}.product-buttons{display:grid;gap:7px;margin:0 12px}.product-buttons button{width:100%}.bottom{position:fixed;z-index:20;bottom:0;left:0;right:0;background:#fffdfb;border-top:1px solid var(--line);display:flex;justify-content:space-around;padding:7px 3px max(9px,env(safe-area-inset-bottom));box-shadow:0 -3px 10px #00000008}.bottom button{flex:1;border:0;background:none;color:var(--ink);display:grid;justify-items:center;gap:3px;min-width:0}.bottom span{font-size:22px;line-height:25px}.bottom small{font-size:11px;white-space:nowrap}.overlay{position:fixed;inset:0;background:#261a16a8;z-index:40;display:flex;align-items:center;justify-content:center;padding:14px}.overlay[hidden],section[hidden]{display:none!important}.modal{position:relative;background:#fffdfb;border-radius:18px;padding:20px;width:min(780px,100%);max-height:94vh;overflow:auto}.close{position:absolute;top:10px;left:10px;border:0;background:#eee5dc;border-radius:50%;font-size:23px;width:34px;height:34px}.detail{display:grid;grid-template-columns:1fr 1fr;gap:22px}.detail img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px}.thumbs{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.thumbs button{padding:0;border:2px solid var(--line);background:none;border-radius:8px}.thumbs img{width:62px;height:62px;object-fit:cover}.panel{max-width:740px;margin:25px auto;background:#fff;border:1px solid var(--line);border-radius:17px;padding:22px}.field{display:grid;gap:6px;margin:13px 0}.field input,.field textarea,.field select{width:100%;padding:12px;border:1px solid #d9c8bc;border-radius:9px;background:white;color:var(--ink)}.field textarea{min-height:80px}.cart-item,.order-row,.admin-row{border-bottom:1px solid var(--line);padding:14px 0;display:flex;gap:12px;align-items:center;justify-content:space-between}.cart-item img{width:70px;height:70px;object-fit:cover;border-radius:8px}.cart-item>div:nth-child(2){flex:1}.cart-item button{border:1px solid var(--line);background:#fff;padding:5px 9px;border-radius:7px}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.row>*{max-width:100%}.error{color:#b43c35}.success{color:#247b54}.admin-tools{display:flex;gap:10px;flex-wrap:wrap;margin:15px 0}.admin-tools button{border:1px solid var(--line);background:#f6eee7;color:var(--ink);padding:10px;border-radius:9px}footer{max-width:1100px;margin:auto;padding:18px;display:flex;justify-content:space-between;color:#a28d7e;font-size:11px}body[dir=ltr] .product-body{text-align:left}body[dir=ltr] .modal{text-align:left}@media(max-width:720px){.cats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.hero{min-height:220px}.hero-copy{padding:16px}.hero img{min-height:220px}.hero h1{font-size:21px}.features{gap:6px}.features>div{padding:12px 5px}.features p{font-size:10px}.product-body{padding:9px}.product-name{font-size:14px}.price{font-size:18px}.product-buttons{margin:0 8px}.product-buttons button{font-size:12px;padding:10px}.detail{grid-template-columns:1fr}.bottom span{font-size:20px}.bottom small{font-size:10px}.brand{font-size:24px}}@media(max-width:360px){.hero{grid-template-columns:1fr}.hero img{max-height:160px;min-height:160px}.cats{gap:5px}.cat{padding:4px}.cat span{font-size:10px}}

/* V18 */
.brand{border:0;background:transparent;cursor:pointer;color:inherit;text-align:inherit;font:inherit}.banner-controls{display:flex;align-items:center;justify-content:center;gap:18px;margin:8px 0 18px}.banner-controls button{border:0;background:transparent;font-size:20px;cursor:pointer}.reviews-section{margin:45px 0;text-align:center;padding:25px 10px;background:#f7efe8;border-radius:18px}.reviews-section #reviewsCarousel{display:flex;align-items:center;justify-content:center;gap:12px;min-height:190px}.review-card{flex:1;max-width:260px;opacity:.58;transform:scale(.86);background:white;border-radius:14px;padding:15px;box-shadow:0 3px 18px #0001;overflow-wrap:anywhere}.review-card.review-main{opacity:1;transform:scale(1.05);box-shadow:0 7px 25px #0002}.review-card img{width:100%;max-height:110px;object-fit:cover;border-radius:8px;cursor:zoom-in}.review-card .stars{color:#b58c58}.cart-select{width:22px;height:22px;flex-shrink:0}.bottom sup{font-size:10px}.admin-tools{flex-wrap:wrap}@media(max-width:550px){.review-card{padding:7px;font-size:11px}.review-card.review-main{font-size:13px}.reviews-section{padding:20px 4px}}

/* V20: recognizable favorite heart and clear order product images */
.favorite-header-button #favIcon{display:inline-block;font-family:Arial,sans-serif;font-size:29px;line-height:1;vertical-align:middle;color:#80584d}.favorite-header-button.has-favorites #favIcon{color:#c35269}.fav{font-family:Arial,sans-serif;color:#80584d}.order-products{display:grid;gap:10px;margin:14px 0}.order-product{display:flex;align-items:center;gap:13px;padding:10px;background:#faf6f1;border:1px solid #eadfd7;border-radius:12px}.order-product strong{display:block}.order-product p{margin:5px 0}.order-image-button{width:88px;height:88px;flex:0 0 88px;padding:0;border:1px solid #e2d5ca;border-radius:10px;background:white;overflow:hidden;cursor:zoom-in}.order-image-button img{display:block;width:100%;height:100%;object-fit:cover}.order-no-image{font-size:11px;color:#947d70}.order-image-overlay{position:fixed;inset:0;z-index:1000;background:#1b1414dd;display:flex;align-items:center;justify-content:center;padding:35px;cursor:zoom-out}.order-image-overlay img{max-width:min(90vw,850px);max-height:85vh;object-fit:contain;border-radius:12px;background:#fff}.order-image-overlay button{position:absolute;top:18px;right:18px;border:0;border-radius:50%;background:white;color:#49372e;font-size:30px;width:44px;height:44px;cursor:pointer}.order-row>div:first-child{min-width:0;flex:1}@media(max-width:650px){.order-row{align-items:stretch;flex-direction:column}.order-image-button{width:76px;height:76px;flex-basis:76px}}

/* V21 print selection */
.print-toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;padding:14px;margin:12px 0;background:#f6ece5;border-radius:12px}.print-toolbar button{cursor:pointer}.order-print-select{display:inline-flex;align-items:center;gap:7px;margin:0 0 10px;font-weight:bold}.order-print-select input{width:18px;height:18px}

body.admin-route .promo,body.admin-route header,body.admin-route footer,body.admin-route .bottom-nav{display:none!important}body.admin-route main{padding-top:25px}

/* RAHIM V23: tested-source layout overrides; desktop + mobile */
header .top{min-width:0}
header .rahim-brand{display:inline-flex!important;align-items:center!important;gap:10px!important;min-width:0;max-width:65%;border:0;background:transparent;padding:0;color:var(--ink);letter-spacing:normal;text-align:left;direction:ltr!important;white-space:nowrap}
header .rahim-brand-logo{display:block;width:48px;height:48px;flex:0 0 48px;object-fit:contain;border-radius:50%;border:1px solid #e8d8c9;order:0}
header .rahim-brand-words{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;line-height:1.08;order:1}
header .rahim-brand-words strong{font:normal 26px Georgia,serif;letter-spacing:2.1px}
header .rahim-brand-words small{display:block;font:normal 12px Arial,sans-serif;letter-spacing:1.5px;margin-top:3px;text-transform:none}
html[dir="rtl"] header .rahim-brand{direction:rtl!important}
html[dir="rtl"] header .rahim-brand-logo{order:0}
html[dir="rtl"] header .rahim-brand-words{order:1;align-items:flex-end}
html[dir="ltr"] header .rahim-brand-logo{order:0}
html[dir="ltr"] header .rahim-brand-words{order:1;align-items:flex-start}
.hero{display:block!important;width:100%!important;min-height:0!important;height:auto!important;aspect-ratio:3/1!important;overflow:hidden!important;padding:0!important;border-radius:16px!important;background:#f4eae0!important;line-height:0}
.hero #bannerImage{display:block!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;object-fit:contain!important;object-position:center center!important;border:0!important;margin:0!important}
.hero .hero-copy{display:none!important}
@media(max-width:720px){header .rahim-brand-logo{width:39px;height:39px;flex-basis:39px}header .rahim-brand-words strong{font-size:21px;letter-spacing:1.4px}header .rahim-brand-words small{font-size:10px;letter-spacing:1px}header .rahim-brand{gap:7px!important}.hero{min-height:0!important;aspect-ratio:3/1!important;border-radius:11px!important}.hero #bannerImage{min-height:0!important;height:100%!important}}
@media(max-width:390px){header .rahim-brand-logo{width:34px;height:34px;flex-basis:34px}header .rahim-brand-words strong{font-size:18px}header .rahim-brand-words small{font-size:9px}header .head-actions{gap:4px}header .head-actions button{min-width:36px;height:38px}}


/* RAHIM: SALE and BEST SELLER product badges — CSS-only fix */
.product .product-img{position:relative}
.product .product-img>.rahim-badges{position:absolute;z-index:3;top:10px;right:10px;left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:5px;direction:ltr;max-width:calc(100% - 58px);pointer-events:none}
.product .product-img>.rahim-badges>span{display:inline-block;max-width:100%;padding:5px 9px;border-radius:6px;color:#fff;font-family:Arial,Tahoma,sans-serif;font-size:11px;font-weight:800;line-height:1.15;letter-spacing:.2px;white-space:nowrap;box-shadow:0 2px 7px #0002}
.product .product-img>.rahim-badges>.rahim-sale{background:#bc3650}
.product .product-img>.rahim-badges>.rahim-best{background:#9d7850}
.product .product-img>.fav{position:absolute;top:10px;left:10px;right:auto;z-index:4}
@media(max-width:720px){.product .product-img>.rahim-badges{top:6px;right:6px;gap:4px;max-width:calc(100% - 44px)}.product .product-img>.rahim-badges>span{padding:4px 6px;font-size:9px;border-radius:5px}.product .product-img>.fav{top:6px;left:6px;right:auto}}

/* ROYA STOR independent visual identity */
:root{--ink:#542638;--gold:#b98091;--cream:#fff7f8;--line:#f0dfe5}
.promo{background:#542638}.primary{background:#64273f}.hero{background:#f9e9ee!important}
.reviews-section{background:#fceef2}.brand,.roya-departments{color:#542638}
.roya-departments{display:flex;justify-content:center;gap:12px;margin:15px auto 22px;flex-wrap:wrap}
.dept-btn{border:1px solid #e8cbd4;background:#fff;border-radius:25px;padding:12px 24px;font-weight:bold;color:#64273f}
.dept-btn.active{background:#64273f;color:white}
#categories .cat[hidden]{display:none!important}
.product .product-img>.rahim-badges>.rahim-sale{background:#be4268}
.product .product-img>.rahim-badges>.rahim-best{background:#8f6378}

/* ROYA V2: consistent product portrait image and size guide */
.product-img>img,.product .product-img>img{width:100%;aspect-ratio:3/4;object-fit:cover;object-position:center;display:block}
.detail #mainDetailImg{width:100%;aspect-ratio:3/4;object-fit:contain;background:#faf6f1}
.size-admin{border:1px solid #e9ded4;border-radius:12px;padding:12px;display:flex;flex-wrap:wrap;gap:15px;margin:14px 0}.size-admin legend{font-weight:bold}.size-admin label{display:flex;gap:6px;align-items:center}.size-admin input{width:auto}.size-panel{margin:16px 0}.size-options{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.size-options label{cursor:pointer}.size-options input{position:absolute;opacity:0}.size-options span{display:grid;place-items:center;min-width:54px;padding:12px;border:1px solid #cbb5a8;border-radius:9px;background:#fff}.size-options input:checked+span{background:#684b3e;color:white;border-color:#684b3e}.size-options input:focus-visible+span{outline:3px solid #b68c76}.size-guide{margin:16px 0;border:1px solid #e9ded4;border-radius:10px;padding:12px}.size-guide summary{cursor:pointer;font-weight:bold}.guide-text{white-space:pre-wrap;line-height:1.9}.size-guide .guide-image{width:100%;height:auto;max-height:550px;object-fit:contain}.cart-item img{aspect-ratio:3/4;height:auto}.product .product-img{overflow:hidden}

/* ROYA V3: gold/ivory identity matching supplied ROYA logo */
:root{--ink:#48392b;--gold:#b89452;--cream:#faf8f3;--line:#e9dfcf}
body{background:var(--cream);color:var(--ink)}
header,.bottom,.panel,.modal{background:#fffdfa}
header{border-bottom-color:#e9dfcf}
.primary,.dept-btn.active{background:#48392b;color:#fff}
.primary:hover,.dept-btn.active:hover{background:#675139}
.outline,.dept-btn{border-color:#d6c4a3;color:#48392b}
.dept-btn{background:#fffdfa}
.promo{background:linear-gradient(90deg,#46362b,#68543c,#46362b);color:#fff8e9;padding:0;overflow:hidden;white-space:nowrap;direction:ltr;min-height:35px;display:flex;align-items:center}
.promo-track{display:flex;width:max-content;align-items:center;animation:roya-marquee 27s linear infinite;will-change:transform}
.promo-track span{display:inline-block;white-space:nowrap;padding:9px 38px;font-size:12px;font-weight:600;direction:rtl}
@keyframes roya-marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.promo:hover .promo-track{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.promo-track{animation:none}}
.search{background:#fbf8f2;border-color:#e9dfcf}
.head-actions button{background:#fffdfa;border-color:#e9dfcf}
.features>div{color:#b89452;border-color:#e9dfcf}
.reviews-section{background:#f5efe4}
.hero{background:#f5efe4!important}
.product,.cat{border-color:#e9dfcf}
.product .product-img>.rahim-badges>.rahim-sale{background:#a44b43}
.product .product-img>.rahim-badges>.rahim-best{background:#a98648}
.size-options input:checked+span{background:#48392b;border-color:#48392b}
.size-guide,.size-admin{border-color:#e9dfcf}
.admin-tools button{background:#f5efe4;border-color:#e9dfcf}
.product-note{background:#f8f2e8;border:1px solid #e9dfcf;border-radius:10px;padding:12px;margin:12px 0;line-height:1.8;white-space:pre-wrap}
.product-note p{margin:5px 0 0}
header .rahim-brand-logo{width:125px!important;height:76px!important;max-width:100%;object-fit:contain;flex-basis:auto!important}
header .rahim-brand{max-width:55%;min-height:70px}
@media(max-width:720px){header .rahim-brand-logo{width:96px!important;height:61px!important}header .rahim-brand{min-height:60px}.promo-track span{font-size:11px;padding:8px 25px}}

/* ROYA V3.1: one announcement at a time, each moves separately */
.promo{position:relative;justify-content:center;min-height:37px;overflow:hidden}
.promo-track{position:relative!important;display:block!important;width:100%!important;height:37px!important;animation:none!important;transform:none!important;will-change:auto!important}
.promo-track span{position:absolute;left:0;top:0;width:100%;height:37px;display:flex;justify-content:center;align-items:center;padding:0 12px!important;text-align:center;opacity:0;white-space:nowrap;animation:roya-single-message 12s linear infinite;will-change:transform,opacity}
.promo-track span:nth-child(1){animation-delay:0s}
.promo-track span:nth-child(2){animation-delay:4s}
.promo-track span:nth-child(3){animation-delay:8s}
@keyframes roya-single-message{0%{transform:translateX(100%);opacity:0}5%{opacity:1}14%{transform:translateX(0);opacity:1}24%{transform:translateX(0);opacity:1}32%{transform:translateX(-100%);opacity:0}33.333%,100%{transform:translateX(-100%);opacity:0}}
.promo:hover .promo-track span{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.promo-track span{animation:none!important;opacity:0;transform:none}.promo-track span:first-child{opacity:1}}
/* ROYA V3.1: circular full logo + adjacent brand text */
header .rahim-brand{display:inline-flex!important;flex-direction:row!important;align-items:center!important;gap:10px!important;max-width:65%;min-height:64px;direction:ltr!important;text-align:left!important}
header .rahim-brand-logo{width:64px!important;height:64px!important;flex:0 0 64px!important;max-width:none!important;aspect-ratio:1;object-fit:cover!important;object-position:center;border-radius:50%!important;border:1px solid #d6bd8c;order:0}
header .rahim-brand-words{display:flex!important;flex-direction:column;align-items:flex-start!important;justify-content:center;order:1;line-height:1.1}
header .rahim-brand-words strong{font:normal 25px Georgia,serif;letter-spacing:2px;color:#48392b}
header .rahim-brand-words small{font:normal 11px Arial,sans-serif;letter-spacing:.4px;color:#9b793f;margin-top:4px}
@media(max-width:720px){header .rahim-brand-logo{width:49px!important;height:49px!important;flex-basis:49px!important}header .rahim-brand{min-height:52px;gap:7px!important}header .rahim-brand-words strong{font-size:20px}header .rahim-brand-words small{font-size:9px;letter-spacing:0}}
@media(max-width:390px){header .rahim-brand-logo{width:42px!important;height:42px!important;flex-basis:42px!important}header .rahim-brand-words strong{font-size:17px}header .rahim-brand-words small{font-size:8px}}
