/* OVIO storefront — shared visual layer for every tenant's public shop.
   Classes below are a fixed contract with /js/storefront.js — do not rename them there
   without updating this file (and vice versa). Three selectable themes (classic/modern/compact,
   via body[data-theme]) and two category layouts (circle/cards, via body[data-categories]) share
   this one base so the admin's theme picker stays meaningful. No external fonts/images: the CSP
   this app runs under only allows same-origin + inline styles, so everything here is system fonts
   and inline SVG data-URIs. */

:root{
  --accent:#2563eb;         /* tenant brand color, set at runtime via JS */
  --ink:#172333;
  --muted:#6b7686;
  --soft:#f4f6f9;
  --line:#e7eaf0;
  --card:#fff;
  --radius:16px;
  --shadow:0 2px 10px rgba(23,35,51,.05);
  --shadow-lg:0 18px 46px rgba(23,35,51,.12);
  --font:-apple-system,"Segoe UI",Tahoma,Geneva,Arial,sans-serif;
  --ic-eye:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  --ic-heart:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.6l-1-1a5.5 5.5 0 0 0-7.8 7.8l1 1L12 21l7.8-7.6 1-1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E");
  --ic-menu:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M3 12h18M3 18h18'/%3E%3C/svg%3E");
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);background:var(--page,#fcfcfd);font:15px/1.65 var(--font);-webkit-font-smoothing:antialiased}
button,input,select{font:inherit}
button,a{cursor:pointer}
button{background:transparent;border:0;color:inherit;padding:10px 16px;border-radius:10px;transition:background .15s,color .15s,border-color .15s,transform .15s}
button:hover{background:var(--soft)}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
::selection{background:color-mix(in srgb,var(--accent) 25%,transparent);color:var(--ink)}

/* ---------- demo test bar ---------- */
.testbar{padding:9px;text-align:center;background:var(--ink);color:#fff;font-size:12.5px;letter-spacing:.2px}

/* ---------- header ---------- */
header{position:sticky;top:0;z-index:20;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px;padding:16px 5%;background:rgba(255,255,255,.92);backdrop-filter:saturate(180%) blur(10px);border-bottom:1px solid var(--line)}
#menutoggle{display:none}
#brand{display:flex;align-items:center;justify-self:center;font-size:21px;font-weight:800;letter-spacing:-.3px;min-width:0}
#brand img{max-height:40px;max-width:160px;object-fit:contain}
nav{display:flex;align-items:center;gap:4px;flex-wrap:wrap;justify-self:start}
nav button{font-size:14px;font-weight:600;color:var(--muted)}
nav button:hover{color:var(--ink)}
#pagesnav{display:flex;gap:2px}
header>div:last-child{display:flex;align-items:center;gap:6px;flex:0 0 auto;justify-self:end}
.navlabel{display:inline}
.navlang{display:none}
#language{font-size:13px;font-weight:700;color:var(--muted);border:1px solid var(--line)}
#cartnav{position:relative;font-weight:700;padding-inline-start:38px;border:1px solid var(--line)}
#cartnav::before{content:'';position:absolute;inset-inline-start:12px;top:50%;transform:translateY(-50%);width:18px;height:18px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") center/contain no-repeat}
#cartnav:hover{background:var(--soft);border-color:var(--accent)}
#wishnav{position:relative;font-weight:700;padding-inline-start:38px;border:1px solid var(--line)}
#wishnav::before{content:'';position:absolute;inset-inline-start:12px;top:50%;transform:translateY(-50%);width:16px;height:16px;background:currentColor;-webkit-mask:var(--ic-heart) center/contain no-repeat;mask:var(--ic-heart) center/contain no-repeat}
#wishnav:hover{background:var(--soft);border-color:var(--accent)}

main{max-width:1360px;margin:auto;padding:0 5%}

/* ---------- hero ---------- */
.hero{position:relative;display:grid;grid-template-columns:1.25fr 1fr;align-items:center;gap:32px;margin:28px 0 20px;padding:56px;border-radius:28px;overflow:hidden;isolation:isolate;
  background:
    radial-gradient(900px 420px at 110% -20%, color-mix(in srgb,var(--accent) 22%,transparent) 0%, transparent 60%),
    linear-gradient(160deg,#0f172a 0%,color-mix(in srgb,var(--accent) 55%,#0f172a) 100%);
  color:#fff;box-shadow:var(--shadow-lg)}
.eyebrow{display:inline-flex;align-items:center;font-size:12px;letter-spacing:1.6px;text-transform:uppercase;color:#fff;background:rgba(255,255,255,.14);padding:5px 12px;border-radius:30px;font-weight:700}
.hero h1{font-size:clamp(28px,4vw,50px);line-height:1.2;font-weight:800;letter-spacing:-.5px;margin:18px 0;max-width:540px}
.hero p{color:rgba(255,255,255,.82);max-width:440px;font-size:16.5px;margin:0 0 26px}
.hero .primary{background:#fff;color:#172333}
.hero .primary:hover{background:color-mix(in srgb,var(--accent) 16%,#fff)}
.hero-art{position:relative;height:300px;display:grid;place-items:center}
.hero-art img{width:100%;height:100%;object-fit:cover;border-radius:20px;box-shadow:0 20px 50px rgba(0,0,0,.35)}
.hero-art .orb{width:190px;height:190px;border-radius:50%;background:linear-gradient(145deg,#fff,color-mix(in srgb,var(--accent) 70%,#fff));box-shadow:0 20px 55px rgba(0,0,0,.3);display:grid;place-items:center;color:var(--accent);font-size:56px;font-weight:800}

/* photographic hero variant (when a banner image is configured) */
.photo-hero{min-height:440px;background:none}
.photo-hero .hero-art{position:absolute;inset:0;height:100%;z-index:-2}
.photo-hero .hero-art img{border-radius:0;box-shadow:none}
.photo-hero:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(270deg,rgba(8,14,26,.92) 10%,rgba(8,14,26,.72) 45%,rgba(8,14,26,.28) 100%)}
html[dir=ltr] .photo-hero:after{background:linear-gradient(90deg,rgba(8,14,26,.92) 10%,rgba(8,14,26,.72) 45%,rgba(8,14,26,.28) 100%)}

.primary{background:var(--accent);color:#fff;font-weight:700;padding:14px 26px;border-radius:12px;box-shadow:0 8px 20px color-mix(in srgb,var(--accent) 35%,transparent)}
.primary:hover{background:var(--accent);filter:brightness(1.08)}

/* ---------- trust badges ---------- */
.benefits{display:flex;justify-content:center;gap:40px;flex-wrap:wrap;padding:22px 0;margin:0 0 36px;border-bottom:1px solid var(--line);color:var(--muted);font-size:13.5px;font-weight:600}
.benefits span{display:flex;align-items:center;gap:8px}
.benefits span::before{content:'';width:18px;height:18px;flex:0 0 auto;background:var(--accent);opacity:.85;-webkit-mask:var(--ic) center/contain no-repeat;mask:var(--ic) center/contain no-repeat}
.benefits span:nth-child(1){--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4l-7.2 7.2a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1'/%3E%3C/svg%3E")}
.benefits span:nth-child(2){--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 3h13v13H1zM14 8h5l3 3v5h-8'/%3E%3Ccircle cx='5.5' cy='18.5' r='2'/%3E%3Ccircle cx='18.5' cy='18.5' r='2'/%3E%3C/svg%3E")}
.benefits span:nth-child(3){--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18 14 14 0 0 1 0-18z'/%3E%3C/svg%3E")}

/* ---------- new arrivals / picks row ---------- */
.picks{margin:8px 0 18px}
.pickshead{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.pickshead h2{font-size:22px;font-weight:800;margin:0}
.pickshead span{color:var(--muted);font-size:13.5px}
.picksrow{display:flex;gap:16px;overflow-x:auto;padding-bottom:10px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.picksrow .product{flex:0 0 220px;scroll-snap-align:start}
.picksrow::-webkit-scrollbar{height:6px}
.picksrow::-webkit-scrollbar-thumb{background:var(--line);border-radius:10px}

/* ---------- category rail ---------- */
.categories-title{text-align:center;font-size:25px;font-weight:800;margin:36px 0 4px}
.filters{display:flex;justify-content:center;align-items:flex-start;gap:30px;flex-wrap:wrap;padding:22px 0 36px}
.filters button{display:grid;justify-items:center;gap:10px;padding:2px;border-radius:0;background:none!important;color:var(--muted);font-size:13px;font-weight:700}
.filters button.active{color:var(--ink)}
.category-photo{position:relative;display:grid;place-items:center;width:116px;height:116px;border-radius:50%;overflow:hidden;background:linear-gradient(155deg,color-mix(in srgb,var(--accent) 14%,#fff),color-mix(in srgb,var(--accent) 5%,#fff));border:3px solid #fff;box-shadow:0 6px 18px rgba(23,35,51,.08);transition:transform .22s,box-shadow .22s}
.category-photo img{width:100%;height:100%;object-fit:cover}
.category-photo span{color:var(--accent);opacity:.75;width:34px;height:34px;-webkit-mask:var(--ic-grid) center/contain no-repeat;mask:var(--ic-grid) center/contain no-repeat;background:var(--accent);font-size:0}
.filters button[class*=active] .category-photo,.filters button:hover .category-photo{border-color:var(--accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 16%,transparent);transform:translateY(-2px)}
.cat-overlay{display:none}
.cat-label small{color:var(--muted);font-weight:600}
:root{--ic-grid:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E");--ic-tag:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4l-7.2 7.2a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1'/%3E%3C/svg%3E")}
.filters button:first-child .category-photo span{-webkit-mask:var(--ic-grid) center/contain no-repeat;mask:var(--ic-grid) center/contain no-repeat}
.filters button:not(:first-child) .category-photo span{-webkit-mask:var(--ic-tag) center/contain no-repeat;mask:var(--ic-tag) center/contain no-repeat}

body[data-categories=cards] .category-photo{width:208px;height:170px;border-radius:14px}
body[data-categories=cards] .filters button{min-width:208px}
body[data-categories=cards] .filters button[class*=active] .category-photo,
body[data-categories=cards] .filters button:hover .category-photo{transform:translateY(-3px);box-shadow:0 10px 28px rgba(23,35,51,.16)}
body[data-categories=cards] .cat-label{display:none}
body[data-categories=cards] .cat-overlay{display:flex;flex-direction:column;gap:2px;position:absolute;inset:auto 0 0 0;padding:28px 14px 12px;background:linear-gradient(transparent,rgba(8,14,26,.72) 55%,rgba(8,14,26,.82));color:#fff;text-align:start}
body[data-categories=cards] .cat-overlay b{font-size:14.5px;font-weight:800}
body[data-categories=cards] .cat-overlay i{font-style:normal;font-size:11.5px;opacity:.85}

/* ---------- product grid ---------- */
.sectiontop{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);padding-top:22px;margin-top:4px}
.sectiontop h2{font-size:24px;font-weight:800;margin:0}
.search{padding:11px 16px;border:1px solid var(--line);border-radius:11px;max-width:240px;background:#fff}
.search:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 16%,transparent)}
.toprow{display:flex;gap:10px;flex-wrap:wrap}
.sort{padding:11px 14px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--muted);font-size:13.5px;font-weight:600}
.sort:focus{outline:none;border-color:var(--accent)}
.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;margin:24px 0 60px}
.product{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:12px;transition:transform .18s,box-shadow .18s,border-color .18s}
.product:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);border-color:transparent}
.product.sold{opacity:.85}
.picwrap{position:relative}
.picture{position:relative;height:220px;border-radius:12px;overflow:hidden;background:linear-gradient(155deg,var(--soft),#fff);display:grid;place-items:center;cursor:pointer}
.picture img{width:100%;height:100%;object-fit:cover}
.picture .placeholder{font-size:0;color:transparent;width:46px;height:46px;background:var(--accent);opacity:.3;-webkit-mask:var(--ic-tag) center/contain no-repeat;mask:var(--ic-tag) center/contain no-repeat}
.product.sold .picture{opacity:.6}
.soldbadge{position:absolute;top:10px;inset-inline-start:10px;z-index:2;background:var(--ink);color:#fff;font-size:11px;font-weight:700;padding:5px 11px;border-radius:20px}
.quickview,.wish{position:absolute;top:10px;width:34px;height:34px;border-radius:50%;background:#fff;box-shadow:0 2px 10px rgba(23,35,51,.2);display:grid;place-items:center;padding:0;z-index:2;opacity:0;transform:translateY(-4px);transition:opacity .15s,transform .15s}
.quickview{inset-inline-end:10px}
.wish{inset-inline-end:52px}
.quickview::before,.wish::before{content:'';width:16px;height:16px;background:var(--ink)}
.quickview::before{-webkit-mask:var(--ic-eye) center/contain no-repeat;mask:var(--ic-eye) center/contain no-repeat}
.wish::before{-webkit-mask:var(--ic-heart) center/contain no-repeat;mask:var(--ic-heart) center/contain no-repeat}
.wish.active::before{background:#e0245e}
.product:hover .quickview,.product:hover .wish{opacity:1;transform:none}
.wish.inline{position:static;width:auto;height:auto;border-radius:8px;opacity:1;transform:none;display:flex;gap:7px;padding:10px;border:0;background:none;font-weight:600;color:var(--muted);font-size:13.5px;margin-top:6px;justify-content:center}
.wish.inline:hover{color:var(--ink);background:var(--soft)}
.wish.inline::before{width:15px;height:15px}
.wish.inline.active{color:#e0245e}
.wish.inline.active::before{background:#e0245e}
.product h3{font-size:15.5px;font-weight:700;min-height:22px;margin:14px 0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.price{font-weight:800;color:var(--ink);font-size:15.5px}
.product button:not(.quickview):not(.wish){width:100%;margin-top:12px;border:1.5px solid var(--line);font-weight:700;color:var(--accent)}
.product button:not(.quickview):not(.wish):not(:disabled):hover{background:var(--accent);border-color:var(--accent);color:#fff}
.product button:disabled{opacity:1;cursor:not-allowed;background:var(--soft)!important;border-color:var(--line)!important;color:var(--muted)!important}
.empty{padding:70px 15px;text-align:center;color:var(--muted);font-size:15px}
.soldnotice{background:#fff6db;color:#77530e;font-size:13.5px;font-weight:700;padding:12px 14px;border-radius:10px;border-inline-start:4px solid #e0a429}
.related{margin-top:22px;border-top:1px solid var(--line);padding-top:16px}
.related h4{font-size:14px;font-weight:800;margin:0 0 12px}
.relatedrow{display:flex;gap:12px;overflow-x:auto;padding-bottom:4px}
.relatedcard{flex:0 0 110px;cursor:pointer}
.relatedcard .picture{height:90px;border-radius:10px;margin-bottom:6px}
.relatedname{font-size:12px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.relatedcard .price{font-size:12.5px}
@media(hover:none){.quickview,.wish{opacity:1;transform:none}}

/* ---------- content pages (about/contact/policy/custom tabs) ---------- */
.content-page{max-width:820px;min-height:46vh;margin:50px auto}
.content-page h1{font-size:30px;font-weight:800}
.page-copy{white-space:pre-wrap;overflow-wrap:anywhere;color:#2c3747;line-height:1.8}

/* ---------- footer ---------- */
footer{margin-top:70px;border-top:1px solid var(--line);background:var(--soft);color:var(--muted);font-size:13px}
.footgrid{max-width:1360px;margin:auto;padding:46px 5% 28px;display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:34px}
.footname{font-weight:800;color:var(--ink);font-size:18px;margin-bottom:8px}
.footbrand p{max-width:260px;line-height:1.7;margin:0}
.footcol{display:flex;flex-direction:column;gap:9px;min-width:0}
.footcol h4{color:var(--ink);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.5px;margin:0 0 4px}
.footcol button{justify-content:flex-start;padding:0;background:none!important;color:var(--muted);font-size:13.5px;font-weight:500;text-align:start}
.footcol button:hover{color:var(--accent)}
.footcontact{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;margin:0}
.footbar{padding:22px 5%;display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;max-width:1360px;margin:auto;font-weight:600}

/* ---------- dialog (product / cart / checkout) ---------- */
dialog{border:0;border-radius:20px;box-shadow:0 24px 100px rgba(16,36,59,.25);max-width:600px;width:94%;padding:28px;max-height:90vh;overflow:auto}
dialog::backdrop{background:rgba(15,22,32,.5);backdrop-filter:blur(2px)}
.modalhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.modalhead button{font-size:20px;line-height:1;color:var(--muted)}
.detailimg{width:100%;height:240px;object-fit:cover;background:var(--soft);border-radius:14px}
.field{display:grid;gap:6px;margin:14px 0}
.field input,.field select{width:100%;padding:11px;border:1px solid var(--line);border-radius:10px}
.field input:focus,.field select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 16%,transparent)}
.cartline,.sum{display:flex;justify-content:space-between;gap:15px;align-items:center;border-bottom:1px solid var(--line);padding:13px 0}
.sum:last-of-type{font-size:19px;font-weight:800;border-bottom:0}
.cartactions{display:flex;gap:14px;margin-top:20px;flex-wrap:wrap}
/* the standalone cart/checkout page (these same classes also appear inside the checkout dialog
   and inside .accountorder, where the plain divider look above stays as-is) */
main>h1{max-width:640px;margin:34px auto 18px;font-size:26px;font-weight:800}
main>.cartline,main>.sum,main>.cartactions{max-width:640px;margin-inline:auto}
main>.cartline{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:16px 18px;margin-bottom:10px}
main>.sum{background:var(--soft);border-radius:14px;padding:16px 18px;border-bottom:0}
main>.sum:last-of-type{margin-top:4px}
main>.cartactions{justify-content:space-between;align-items:center}
.notice{padding:12px 14px;border-radius:10px;background:#fff6db;color:#77530e;font-size:13px}
.error{color:#ba2b38;font-size:13.5px}
.timeline{display:grid;gap:12px;padding:16px 0}
.timeline div{border-inline-start:3px solid var(--accent);padding-inline-start:13px;font-size:13.5px}
.accountorder{border:1px solid var(--line);border-radius:14px;padding:18px;margin:12px 0}
.status{display:inline-block;background:var(--soft);border-radius:20px;padding:4px 13px;font-size:12.5px;font-weight:700}
.two{display:grid;grid-template-columns:1fr 1fr;gap:15px}

/* ---------- theme: classic (calmer, traditional catalog layout) ---------- */
body[data-theme=classic] .hero{background:var(--soft);color:var(--ink);box-shadow:none;border:1px solid var(--line);border-radius:12px}
body[data-theme=classic] .eyebrow{background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent)}
body[data-theme=classic] .hero p{color:var(--muted)}
body[data-theme=classic] .hero h1{font-family:Georgia,"Times New Roman",serif;font-weight:700;letter-spacing:0}
body[data-theme=classic] .hero .primary{box-shadow:none}
/* banner photo: keep the light text readable over the dark overlay */
body[data-theme=classic] .photo-hero{color:#fff;border:0}
body[data-theme=classic] .photo-hero p{color:rgba(255,255,255,.85)}
body[data-theme=classic] .photo-hero .eyebrow{background:rgba(255,255,255,.16);color:#fff}
body[data-theme=classic] .hero-art .orb{background:color-mix(in srgb,var(--accent) 10%,#fff);color:var(--accent);box-shadow:none;border:1px solid var(--line)}
body[data-theme=classic] .hero-art img{box-shadow:none;border:1px solid var(--line)}
body[data-theme=classic] .product,body[data-theme=classic] .picture,body[data-theme=classic] .relatedcard .picture{border-radius:4px}
body[data-theme=classic] .product{border:1px solid var(--line);box-shadow:none}
body[data-theme=classic] .product:hover{transform:none;box-shadow:0 4px 16px rgba(23,35,51,.08);border-color:var(--accent)}
body[data-theme=classic] .category-photo{border-radius:6px}
@media(min-width:1001px){
  body[data-theme=classic] main:has(>.hero){display:grid;grid-template-columns:230px 1fr;column-gap:40px;align-items:start;
    grid-template-areas:"hero hero" "benefits benefits" "picks picks" "catTitle top" "filters grid"}
  body[data-theme=classic] main:has(>.hero) .hero{grid-area:hero}
  body[data-theme=classic] main:has(>.hero) .benefits{grid-area:benefits}
  body[data-theme=classic] main:has(>.hero) .picks{grid-area:picks}
  body[data-theme=classic] main:has(>.hero) .categories-title{grid-area:catTitle;text-align:start;font-size:17px;margin:36px 0 10px}
  body[data-theme=classic] main:has(>.hero) .sectiontop{grid-area:top;border-top:0}
  body[data-theme=classic] main:has(>.hero) .filters{grid-area:filters;flex-direction:column;align-items:stretch;gap:3px;padding:0;justify-content:flex-start}
  body[data-theme=classic] main:has(>.hero) .filters button{display:flex;align-items:center;gap:10px;justify-content:flex-start;padding:9px 10px;border-radius:8px;font-size:13.5px}
  body[data-theme=classic] main:has(>.hero) .filters button.active,
  body[data-theme=classic] main:has(>.hero) .filters button:hover{background:var(--soft)}
  body[data-theme=classic] main:has(>.hero) .category-photo{width:28px;height:28px;border:0;box-shadow:none;background:none;border-radius:0}
  body[data-theme=classic] main:has(>.hero) .filters button[class*=active] .category-photo,
  body[data-theme=classic] main:has(>.hero) .filters button:hover .category-photo{box-shadow:none;border-color:transparent}
  body[data-theme=classic] main:has(>.hero) .grid{grid-area:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* ---------- theme: modern (rounder, airier) ---------- */
body[data-theme=modern] .hero{border-radius:32px}
body[data-theme=modern] .product,body[data-theme=modern] .picture{border-radius:20px}
body[data-theme=modern] .category-photo{border-radius:28px}
body[data-theme=modern]:not([data-categories=cards]) .category-photo{border-radius:50%}

/* ---------- theme: compact (denser grid, smaller hero) ---------- */
body[data-theme=compact] .hero{min-height:0;padding:34px}
body[data-theme=compact] .hero-art{height:170px}
body[data-theme=compact] .grid{grid-template-columns:repeat(5,minmax(0,1fr))}
body[data-theme=compact]:not([data-categories=cards]) .category-photo{width:84px;height:84px}

/* ---------- responsive ---------- */
@media(max-width:1000px){
  .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  body[data-theme=compact] .grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .hero{padding:38px;grid-template-columns:1fr 1fr}
  .hero-art{height:220px}
}
@media(max-width:760px){
  header{padding:13px 5%;gap:8px}
  #menutoggle{display:grid;place-items:center;width:38px;height:38px;padding:0;border:1px solid var(--line);border-radius:10px;justify-self:start}
  #menutoggle::before{content:'';width:18px;height:18px;background:currentColor;-webkit-mask:var(--ic-menu) center/contain no-repeat;mask:var(--ic-menu) center/contain no-repeat}
  nav{justify-self:stretch;position:absolute;inset-inline-start:0;inset-inline-end:0;top:100%;z-index:19;display:none;flex-direction:column;align-items:stretch;gap:2px;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 16px 30px rgba(23,35,51,.1);padding:8px 5% 16px}
  nav.open{display:flex}
  #pagesnav{flex-direction:column;gap:2px}
  nav button{white-space:normal;text-align:start;font-size:14.5px;padding:11px 10px;border-radius:9px}
  nav button:hover{background:var(--soft)}
  #brand{font-size:18px}
  #brand img{max-height:32px}
  .navlabel{display:none}
  .navlang{display:flex;border-top:1px solid var(--line);margin-top:4px;padding-top:13px;color:var(--accent)}
  header>div:last-child{gap:6px}
  #language{display:none}
  #cartnav,#wishnav{position:relative;width:40px;height:40px;padding:0;display:grid;place-items:center;border-radius:11px}
  #cartnav::before,#wishnav::before{position:static;inset-inline-start:auto;top:auto;transform:none}
  .paren{display:none}
  .navcount{position:absolute;top:-3px;inset-inline-end:-3px;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:#e0245e;color:#fff;font-size:10.5px;font-weight:800;display:grid;place-items:center;line-height:1}
  .navcount.zero{display:none}
  main{padding:0 5%}
  .hero{grid-template-columns:1fr;padding:28px 22px;border-radius:20px;margin-top:16px}
  .hero-art{height:0;padding-bottom:62%;overflow:hidden}
  .photo-hero{min-height:0}
  .hero h1{font-size:28px}
  .hero p{font-size:14.5px}
  .benefits{gap:18px;font-size:11.5px;padding:16px 0}
  .categories-title{font-size:21px}
  .filters{gap:16px;justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;padding:18px 2px 28px;-webkit-overflow-scrolling:touch}
  .category-photo{width:80px;height:80px}
  body[data-categories=cards] .category-photo{width:130px;height:105px}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  body[data-theme=compact] .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .picture{height:160px}
  .product h3{font-size:13.5px}
  .product button{font-size:12.5px;padding:9px}
  .sectiontop{flex-wrap:wrap}
  .quickview{display:none}
  .wish{top:8px;inset-inline-end:8px;width:28px;height:28px}
  .wish::before{width:14px;height:14px}
  .soldbadge{top:8px;inset-inline-start:8px;font-size:9.5px;padding:3px 7px}
  .search{max-width:100%;width:100%}
  dialog{padding:18px;border-radius:16px}
  .two{grid-template-columns:1fr}
  .footgrid{grid-template-columns:1fr;gap:28px;padding:34px 6% 22px}
  .footbar{flex-direction:column;align-items:center;text-align:center;padding:16px 6%}
  .picksrow .product{flex-basis:168px}
}

/* ======================================================================
   Store builder additions: custom background, bold + menu themes, social
   footer, WhatsApp button, floating bag bar, customer account, checkout.
   ====================================================================== */

/* ---------- custom background: dark surfaces flip the palette ---------- */
body[data-surface=dark]{--ink:#f3f4f6;--muted:#a3abb8;--soft:color-mix(in srgb,var(--page) 82%,#fff);--line:color-mix(in srgb,var(--page) 74%,#fff);--card:color-mix(in srgb,var(--page) 90%,#fff)}
body[data-surface=dark] header{background:color-mix(in srgb,var(--page) 88%,transparent)}
body[data-surface=dark] nav{background:var(--page)}
body[data-surface=dark] dialog{background:var(--card);color:var(--ink)}
body[data-surface=dark] .field input,body[data-surface=dark] .field select,body[data-surface=dark] .search,body[data-surface=dark] .sort,body[data-surface=dark] .accountcard input,body[data-surface=dark] .accountcard select{background:var(--soft);color:var(--ink)}
body[data-surface=dark] .notice{background:color-mix(in srgb,#f5b301 18%,var(--page));color:#ffe8a3}

/* ---------- theme: bold (dark, high-contrast, big type) ---------- */
body[data-theme=bold]{--radius:6px}
body[data-theme=bold]:not([data-surface=dark]){--page:#0d0f14;--ink:#f5f6f8;--muted:#9aa3b2;--soft:#181c24;--line:#262b36;--card:#141821}
body[data-theme=bold] header{background:color-mix(in srgb,var(--page,#0d0f14) 90%,transparent)}
body[data-theme=bold] nav{background:var(--page,#0d0f14)}
body[data-theme=bold] dialog{background:var(--card);color:var(--ink)}
body[data-theme=bold] .field input,body[data-theme=bold] .field select,body[data-theme=bold] .search,body[data-theme=bold] .sort,body[data-theme=bold] .accountcard input,body[data-theme=bold] .accountcard select{background:var(--soft);color:var(--ink);border-color:var(--line)}
body[data-theme=bold] .hero{border-radius:0;background:linear-gradient(120deg,var(--accent) 0%,color-mix(in srgb,var(--accent) 40%,#000) 100%);box-shadow:none}
body[data-theme=bold] .hero h1{font-size:clamp(34px,5.5vw,68px);text-transform:uppercase;letter-spacing:-1px}
body[data-theme=bold] .product{border-radius:6px;background:var(--card);border-color:var(--line)}
body[data-theme=bold] .product:hover{border-color:var(--accent)}
body[data-theme=bold] .picture{border-radius:4px}
body[data-theme=bold] .price{color:var(--accent);font-weight:800}
body[data-theme=bold] .primary{border-radius:4px;text-transform:uppercase;letter-spacing:.6px}
body[data-theme=bold] .notice{background:#2a2410;color:#ffe08a}
body[data-theme=bold] footer{background:#08090c}

/* ---------- theme: menu (restaurant / café ordering) ---------- */
body[data-theme=menu] .hero{padding:40px;min-height:0;grid-template-columns:1.4fr 1fr;border-radius:22px}
body[data-theme=menu] .hero-art{height:220px}
.menubar{position:sticky;top:73px;z-index:15;display:flex;gap:6px;align-items:center;overflow-x:auto;padding:12px 0;margin:10px 0 6px;background:var(--page,#fcfcfd);border-bottom:1px solid var(--line);scrollbar-width:none}
.menubar::-webkit-scrollbar{display:none}
.menubar button{flex:0 0 auto;border:1px solid var(--line);border-radius:30px;padding:8px 16px;font-weight:700;font-size:13.5px;white-space:nowrap}
.menubar button:hover{border-color:var(--accent);color:var(--accent);background:transparent}
.menubar .search{margin-inline-start:auto;flex:0 0 220px;padding:9px 14px;border:1px solid var(--line);border-radius:30px}
.menugroup{scroll-margin-top:140px;margin:26px 0}
.menugroup h2{font-size:21px;font-weight:800;margin:0 0 14px;display:flex;align-items:center;gap:10px}
.menugroup h2::after{content:'';flex:1;height:1px;background:var(--line)}
.menugrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.menuitem{position:relative;display:flex;align-items:center;gap:16px;padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--card);cursor:pointer;transition:border-color .15s,box-shadow .15s}
.menuitem:hover{border-color:var(--accent);box-shadow:0 6px 20px rgba(0,0,0,.06)}
.menuitem.sold{opacity:.55}
.menutext{flex:1;min-width:0}
.menutext h3{margin:0 0 6px;font-size:16px;font-weight:700}
.menutext .price{font-weight:800;color:var(--accent)}
.menuitem .picture{width:96px;height:96px;flex:0 0 96px;border-radius:12px;overflow:hidden;background:var(--soft);display:grid;place-items:center;aspect-ratio:auto}
.menuitem .picture img{width:100%;height:100%;object-fit:cover}
.menuadd{position:absolute;bottom:10px;inset-inline-end:10px;width:34px;height:34px;padding:0;border-radius:50%;background:var(--accent);color:#fff;font-size:22px;line-height:1;font-weight:700;box-shadow:0 4px 12px color-mix(in srgb,var(--accent) 40%,transparent)}
.menuadd:hover{background:var(--accent);filter:brightness(1.1)}

/* ---------- floating bag bar ---------- */
#cartbar{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:30;display:flex;align-items:center;gap:14px;padding:13px 20px;border-radius:40px;background:var(--accent);color:#fff;font-weight:700;box-shadow:0 12px 30px color-mix(in srgb,var(--accent) 45%,transparent);min-width:min(420px,90vw);justify-content:space-between}
#cartbar:hover{background:var(--accent);filter:brightness(1.08)}
.cartbar-n{background:rgba(255,255,255,.22);border-radius:20px;padding:1px 10px}
body:not([data-theme=menu]) #cartbar{display:none}
.flash{position:fixed;top:86px;left:50%;transform:translateX(-50%);z-index:40;background:var(--ink);color:var(--page,#fff);padding:10px 20px;border-radius:30px;font-weight:700;font-size:13.5px;box-shadow:var(--shadow-lg);animation:flash 1.8s ease forwards}
@keyframes flash{0%{opacity:0;transform:translate(-50%,-8px)}12%,80%{opacity:1;transform:translate(-50%,0)}100%{opacity:0}}

/* ---------- footer: brand, socials, WhatsApp ---------- */
.footgrid{grid-template-columns:1.6fr 1fr 1fr}
.footabout{white-space:pre-line}
.footbrand>b{display:block;font-weight:800;color:var(--ink);font-size:18px;margin-bottom:8px}
.footbrand>img{max-height:44px;max-width:170px;object-fit:contain;margin-bottom:10px}
.footcol a{color:var(--muted);font-size:13.5px}
.footcol a:hover{color:var(--accent)}
.socials{display:flex;gap:8px;margin-top:16px;flex-wrap:wrap}
.social{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--card);border:1px solid var(--line);transition:background .15s,border-color .15s}
.social::before{content:'';width:18px;height:18px;background:var(--ink);-webkit-mask:var(--ic) center/contain no-repeat;mask:var(--ic) center/contain no-repeat}
.social:hover{background:var(--accent);border-color:var(--accent)}
.social:hover::before{background:#fff}
.s-instagram{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5'/%3E%3Cpath d='M16 11.4A4 4 0 1 1 12.6 8 4 4 0 0 1 16 11.4zM17.5 6.5h.01'/%3E%3C/svg%3E")}
.s-whatsapp{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21l1.6-4.8A8.5 8.5 0 1 1 8 19.6z'/%3E%3Cpath d='M9 9.5c.3 1.6 2 3.8 4.4 4.8l1.3-1.2 2 1-.5 1.6c-3.6.3-8-3.8-8.3-7.6L9.6 7l1 2z'/%3E%3C/svg%3E")}
.s-tiktok{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3v11.5a3.5 3.5 0 1 1-3.5-3.5M14 3c.5 2.8 2.4 4.6 5 5'/%3E%3C/svg%3E")}
.s-snapchat{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3c-3 0-5 2.2-5 5v3l-2 1 2 1c-.6 1.8-2 3-4 3.5 1 .9 2.4.8 3 1.5.5.8 1.6 1 3 .5 1.6 1.4 4.4 1.4 6 0 1.4.5 2.5.3 3-.5.6-.7 2-.6 3-1.5-2-.5-3.4-1.7-4-3.5l2-1-2-1V8c0-2.8-2-5-5-5z'/%3E%3C/svg%3E")}
.s-x{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4l16 16M20 4L4 20'/%3E%3C/svg%3E")}
.s-phone{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E")}
.s-email{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='M22 6l-10 7L2 6'/%3E%3C/svg%3E")}
#wafloat{position:fixed;bottom:22px;inset-inline-end:22px;z-index:29;width:56px;height:56px;border-radius:50%;background:#25d366;display:grid;place-items:center;box-shadow:0 10px 26px rgba(37,211,102,.45);transition:transform .15s}
#wafloat::before{content:'';width:28px;height:28px;background:#fff;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21l1.6-4.8A8.5 8.5 0 1 1 8 19.6z'/%3E%3Cpath d='M9 9.5c.3 1.6 2 3.8 4.4 4.8l1.3-1.2 2 1-.5 1.6c-3.6.3-8-3.8-8.3-7.6L9.6 7l1 2z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21l1.6-4.8A8.5 8.5 0 1 1 8 19.6z'/%3E%3Cpath d='M9 9.5c.3 1.6 2 3.8 4.4 4.8l1.3-1.2 2 1-.5 1.6c-3.6.3-8-3.8-8.3-7.6L9.6 7l1 2z'/%3E%3C/svg%3E") center/contain no-repeat}
#wafloat:hover{transform:scale(1.06)}
body[data-theme=menu] #wafloat{bottom:86px}

/* ---------- header account button ---------- */
#accountnav{position:relative;font-weight:700;padding-inline-start:38px;border:1px solid var(--line)}
#accountnav::before{content:'';position:absolute;inset-inline-start:12px;top:50%;transform:translateY(-50%);width:17px;height:17px;background:currentColor;-webkit-mask:var(--ic-user) center/contain no-repeat;mask:var(--ic-user) center/contain no-repeat}
#accountnav:hover{background:var(--soft);border-color:var(--accent)}
:root{--ic-user:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E")}

/* ---------- customer account ---------- */
.authcard{max-width:440px;margin:50px auto;background:var(--card);border:1px solid var(--line);border-radius:20px;padding:28px;box-shadow:var(--shadow)}
.authtabs{display:grid;grid-template-columns:1fr 1fr;background:var(--soft);border-radius:12px;padding:4px;margin-bottom:8px}
.authtabs button{font-weight:700;color:var(--muted)}
.authtabs button.on{background:var(--card);color:var(--ink);box-shadow:var(--shadow)}
.authcard .primary{width:100%;margin-top:6px}
.authnote{color:var(--muted);font-size:13px;text-align:center;margin:16px 0 0}
.accounthead{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:30px 0 18px;flex-wrap:wrap}
.accounthead h1{margin:0}
.accounthead p{margin:2px 0 0;color:var(--muted);text-align:start}
.accounthead button{border:1px solid var(--line)}
.accountgrid{display:grid;grid-template-columns:1fr 1.2fr;gap:20px;align-items:start}
.accountcard{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:22px}
.accountcard h2{font-size:18px;margin:0 0 6px}
.accountcard h3{font-size:14.5px;margin:20px 0 8px}
.accountcard .accountorder{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:12px 14px;margin:8px 0;flex-wrap:wrap}
.accountcard .accountorder small{color:var(--muted)}
.accountcard .accountorder button{border:1px solid var(--line);padding:6px 14px}
.addrlist{display:grid;gap:8px}
.addr{display:flex;gap:8px;align-items:center}
.addr input,.addr select{padding:10px;border:1px solid var(--line);border-radius:10px;min-width:0}
.addr input{flex:1}
.addr select{flex:0 0 130px}
.ghost{border:1px dashed var(--line);color:var(--muted);justify-self:start}
.notice.soft{background:color-mix(in srgb,var(--accent) 9%,transparent);color:var(--ink)}
.notice.soft a{color:var(--accent);font-weight:700;text-decoration:underline}

/* ---------- checkout + bag ---------- */
.checkoutsum{background:var(--soft);border-radius:12px;padding:12px 14px;margin:14px 0;display:grid;gap:6px;font-size:14px}
.checkoutsum>div{display:flex;justify-content:space-between;gap:12px}
.checkoutsum .grand{border-top:1px solid var(--line);padding-top:8px;font-size:16px}
.checkoutsum .grand b{color:var(--accent)}
.qtyrow{display:flex;align-items:center;gap:6px;margin-top:6px}
.qtyrow button{width:30px;height:30px;padding:0;border:1px solid var(--line);border-radius:8px;font-weight:700}
.qtyrow span{min-width:22px;text-align:center;font-weight:700}
.qtyrow small{color:var(--muted)}
.status.s-completed{background:#dcfce7;color:#166534}
.status.s-cancelled,.status.s-refunded{background:#fee2e2;color:#991b1b}
.status.s-processing,.status.s-paid{background:#dbeafe;color:#1e40af}
.status.s-pending,.status.s-return_requested{background:#fef3c7;color:#92400e}
.testbar[hidden]{display:none}

@media(max-width:760px){
  .menugrid{grid-template-columns:1fr}
  .menubar{top:65px}
  .menubar .search{flex-basis:160px}
  .menuitem .picture{width:84px;height:84px;flex-basis:84px}
  body[data-theme=menu] .hero{grid-template-columns:1fr;padding:26px}
  body[data-theme=menu] .hero-art{display:none}
  .accountgrid{grid-template-columns:1fr}
  .footgrid{grid-template-columns:1fr}
  #accountnav{width:40px;height:40px;padding:0;display:grid;place-items:center;border-radius:11px}
  #accountnav::before{position:static;transform:none}
  #wafloat{width:50px;height:50px;bottom:16px;inset-inline-end:16px}
  .addr{flex-wrap:wrap}
  .addr select{flex:1 1 100%}
}

/* ---------- checkout page ---------- */
.checkout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:28px;align-items:start;margin:24px 0 60px}
.cmain h1{margin:4px 0 14px;font-size:28px}
.cback{padding:6px 0;color:var(--muted);font-size:13.5px;font-weight:600}
.cback:hover{background:none;color:var(--accent)}
.cmain .notice{margin-bottom:12px}
.cstep{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:20px 22px;margin-bottom:14px}
.cstep h2{display:flex;align-items:center;gap:10px;font-size:16.5px;margin:0 0 14px}
.cnum{width:26px;height:26px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;font-size:13px;flex:0 0 auto}
.cgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.cgrid .field,.cstep .field{margin:0}
.cstep .field textarea{width:100%;padding:11px;border:1px solid var(--line);border-radius:10px;font:inherit;resize:vertical;background:var(--card);color:var(--ink)}
.cstep .field textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 16%,transparent)}
.choices{display:grid;gap:10px}
.choices.two{grid-template-columns:1fr 1fr}
.choice{display:flex;align-items:center;gap:12px;text-align:start;padding:14px 16px;border:1.5px solid var(--line);border-radius:14px;background:var(--card)}
.choice:hover{background:var(--card);border-color:color-mix(in srgb,var(--accent) 50%,var(--line))}
.choice.on{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 7%,var(--card))}
.choice.off{opacity:.5;cursor:not-allowed}
.choice-ic{width:40px;height:40px;border-radius:12px;flex:0 0 auto;background:var(--soft);position:relative}
.choice-ic::before{content:'';position:absolute;inset:10px;background:var(--ink);-webkit-mask:var(--ic) center/contain no-repeat;mask:var(--ic) center/contain no-repeat}
.choice.on .choice-ic{background:var(--accent)}
.choice.on .choice-ic::before{background:#fff}
.choice-text{flex:1;min-width:0;display:grid}
.choice-text b{font-size:14.5px}
.choice-text small{color:var(--muted);font-size:12.5px}
.choice-dot{width:20px;height:20px;border-radius:50%;border:2px solid var(--line);flex:0 0 auto;position:relative}
.choice.on .choice-dot{border-color:var(--accent)}
.choice.on .choice-dot::after{content:'';position:absolute;inset:3px;border-radius:50%;background:var(--accent)}
.ic-truck{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 3h13v13H1zM14 8h5l3 3v5h-8'/%3E%3Ccircle cx='5.5' cy='18.5' r='2'/%3E%3Ccircle cx='18.5' cy='18.5' r='2'/%3E%3C/svg%3E")}
.ic-store{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l1.5-5h15L21 9M3 9v11h18V9M3 9h18M9 20v-6h6v6'/%3E%3C/svg%3E")}
.ic-cash{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Cpath d='M6 12h.01M18 12h.01'/%3E%3C/svg%3E")}
.ic-card{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20M6 15h4'/%3E%3C/svg%3E")}
.zones{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px;margin-bottom:14px}
.zone{display:grid;gap:2px;text-align:start;padding:11px 13px;border:1.5px solid var(--line);border-radius:12px;background:var(--card)}
.zone:hover{background:var(--card);border-color:color-mix(in srgb,var(--accent) 50%,var(--line))}
.zone.on{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 7%,var(--card))}
.zone b{font-size:14px}
.zone small{color:var(--accent);font-weight:700;font-size:12.5px}
.zone .zmin{color:var(--muted);font-weight:500;font-size:11.5px}
.savedaddr{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.savedaddr button{border:1px dashed var(--line);font-size:13px;padding:8px 12px}
.savedaddr button.on{border-style:solid;border-color:var(--accent);color:var(--accent)}
.csum{position:sticky;top:92px;background:var(--card);border:1px solid var(--line);border-radius:20px;padding:22px;box-shadow:var(--shadow)}
.csum h2{font-size:17px;margin:0 0 14px}
.csum h2 small{color:var(--muted);font-weight:500;font-size:13px}
.citems{display:grid;gap:12px;max-height:280px;overflow:auto;padding-bottom:14px;border-bottom:1px solid var(--line)}
.citem{display:grid;grid-template-columns:52px 1fr auto;gap:12px;align-items:center;font-size:13.5px}
.cthumb{position:relative;width:52px;height:52px;border-radius:12px;background:var(--soft);display:grid;place-items:center;color:var(--muted)}
.cthumb img{width:100%;height:100%;object-fit:cover;border-radius:12px}
.cthumb i{position:absolute;top:-6px;inset-inline-end:-6px;min-width:20px;height:20px;border-radius:10px;background:var(--ink);color:var(--card);font-style:normal;font-size:11px;font-weight:700;display:grid;place-items:center;padding:0 5px}
.coupon{display:flex;gap:8px;margin-top:14px}
.coupon input{flex:1;min-width:0;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink);text-transform:uppercase}
.coupon button{border:1px solid var(--line);font-weight:700}
.couponmsg{display:block;font-size:12.5px;margin-top:6px}
.couponmsg.ok{color:#15803d}.couponmsg.bad{color:#b91c1c}
.ctotals{display:grid;gap:8px;margin:14px 0;font-size:14px}
.ctotals>div{display:flex;justify-content:space-between;gap:12px}
.ctotals .disc b{color:#15803d}
.ctotals .grand{border-top:1px solid var(--line);padding-top:12px;font-size:18px}
.ctotals .grand b{color:var(--accent)}
.placeorder{width:100%;padding:16px;font-size:15.5px}
.placeorder:disabled{opacity:.5;cursor:not-allowed}
.secure{text-align:center;color:var(--muted);font-size:12px;margin:10px 0 0}
.thanks{text-align:center;max-width:520px;margin:30px auto 10px;padding:26px;border-radius:20px;background:color-mix(in srgb,#16a34a 8%,var(--card));border:1px solid color-mix(in srgb,#16a34a 25%,var(--line))}
.thanks-ic{width:54px;height:54px;border-radius:50%;background:#16a34a;color:#fff;display:inline-grid;place-items:center;font-size:26px;font-weight:800}
.thanks h2{margin:12px 0 6px}
.thanks p{margin:0;color:var(--muted)}
main>.thanks+h1{text-align:center}
@media(max-width:900px){
  .checkout{grid-template-columns:1fr}
  .csum{position:static}
}
@media(max-width:560px){
  .cgrid,.choices.two{grid-template-columns:1fr}
  .cstep{padding:16px}
}

/* ---------- order summary / invoice ---------- */
.invoice{max-width:820px;margin:26px auto 18px;background:#fff;color:#172333;border:1px solid var(--line);border-radius:20px;padding:34px 38px;box-shadow:var(--shadow)}
.inv-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;padding-bottom:22px;border-bottom:3px solid var(--accent);flex-wrap:wrap}
.inv-brand{display:flex;gap:14px;align-items:center;min-width:0}
.inv-brand img{max-height:64px;max-width:150px;object-fit:contain}
.inv-mono{width:58px;height:58px;border-radius:14px;background:var(--accent);color:#fff;display:grid;place-items:center;font-size:26px;font-weight:800}
.inv-brand>div:last-child{display:grid;gap:2px}
.inv-brand b{font-size:19px}
.inv-brand small{color:#6b7686;font-size:12.5px}
.inv-meta{display:grid;gap:5px;justify-items:end;text-align:end}
.inv-meta h1{margin:0 0 4px;font-size:26px;color:var(--accent);letter-spacing:.3px}
.inv-meta>div{display:flex;gap:10px;font-size:13px}
.inv-meta span{color:#6b7686}
.inv-meta .status{margin-top:4px}
.inv-parties{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:22px 0}
.inv-parties>div{display:grid;gap:3px;background:#f6f7f9;border-radius:12px;padding:14px 16px;font-size:13.5px}
.inv-parties h4{margin:0 0 4px;font-size:11.5px;text-transform:uppercase;letter-spacing:.6px;color:#6b7686}
.inv-parties span{color:#4b5563}
.inv-lines{width:100%;border-collapse:collapse;font-size:14px}
.inv-lines th{background:color-mix(in srgb,var(--accent) 10%,#fff);color:#172333;font-size:12px;font-weight:800;text-align:start;padding:10px 12px}
.inv-lines th:first-child{border-start-start-radius:10px;border-end-start-radius:10px;width:36px}
.inv-lines th:last-child{border-start-end-radius:10px;border-end-end-radius:10px}
.inv-lines td{padding:12px;border-bottom:1px solid #edf0f4}
.inv-lines td:first-child{color:#9aa3b2}
.inv-lines td:nth-child(n+3),.inv-lines th:nth-child(n+3){text-align:end;white-space:nowrap}
.inv-totals{margin-inline-start:auto;width:min(320px,100%);display:grid;gap:8px;margin-top:18px;font-size:14px}
.inv-totals>div{display:flex;justify-content:space-between;gap:12px}
.inv-totals .disc b{color:#15803d}
.inv-totals .grand{background:var(--accent);color:#fff;border-radius:12px;padding:12px 14px;font-size:17px;margin-top:4px}
.inv-foot{margin-top:28px;padding-top:16px;border-top:1px dashed #d9dee6;text-align:center;color:#6b7686;font-size:13px;display:grid;gap:4px}
.inv-track{max-width:820px;margin:0 auto;padding:0 4px}
.inv-track h3{font-size:15px;margin:10px 0}
.inv-track .timeline small{color:var(--muted)}
main>.cartactions.noprint{max-width:820px;margin:16px auto 40px;display:flex;gap:10px;flex-wrap:wrap}
main>.cartactions.noprint button{border:1px solid var(--line)}
main>.cartactions.noprint .primary{border:0}
@media(max-width:600px){
  .invoice{padding:20px 16px;border-radius:14px}
  .inv-meta{justify-items:start;text-align:start}
  .inv-parties{grid-template-columns:1fr}
  .inv-lines th:nth-child(4),.inv-lines td:nth-child(4){display:none}
}
@media print{
  @page{margin:12mm}
  body{background:#fff!important}
  header,footer#sitefooter,.testbar,#wafloat,#cartbar,.noprint,.flash{display:none!important}
  main{max-width:none;padding:0}
  .invoice{border:0;box-shadow:none;margin:0;padding:0;max-width:none}
  .inv-head,.inv-totals .grand,.inv-lines th,.inv-mono{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
body[data-theme=bold] .picture,body[data-surface=dark] .picture{background:linear-gradient(145deg,var(--soft),var(--card))}

/* ---------- awaiting online payment ---------- */
.paywait{max-width:820px;margin:26px auto 0;padding:20px 22px;border-radius:18px;background:color-mix(in srgb,var(--accent) 8%,var(--card));border:1px solid color-mix(in srgb,var(--accent) 30%,var(--line));display:grid;gap:6px;justify-items:start}
.paywait b{font-size:17px}
.paywait p{margin:0 0 6px;color:var(--muted)}
.paywait.failed{background:color-mix(in srgb,#dc2626 7%,var(--card));border-color:color-mix(in srgb,#dc2626 30%,var(--line))}

/* ---------- custom header / footer colours ---------- */
header[data-custom]{background:var(--bar-bg,rgba(255,255,255,.92))!important;color:var(--ink)}
header[data-custom] nav{background:var(--bar-bg,transparent)}
header[data-custom] #brand{color:var(--ink)}
footer[data-custom]{background:var(--bar-bg,var(--soft))!important;color:var(--muted);border-top-color:var(--line)}
/* ---------- opening hours, timed menus, order time, live tracking ---------- */
.closednote{max-width:1360px;margin:18px auto 0;width:90%;display:flex;gap:10px;flex-wrap:wrap;align-items:center;padding:13px 16px;border-radius:12px;background:#fff6db;color:#77530e;font-size:14px}
.menutag{display:inline-block;margin-top:6px;padding:2px 9px;border-radius:20px;background:var(--soft);color:var(--muted);font-size:12px;font-weight:600}
.ic-clock{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E")}
.slotpick{cursor:default}
.slotpick select{margin-top:6px;width:100%;font:inherit;font-size:13.5px;padding:7px 9px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--ink)}
.progress{max-width:820px;margin:0 auto 18px;padding:18px 20px;border:1px solid var(--line);border-radius:16px;background:var(--card)}
.progress .eta{margin:0 0 14px;font-size:14.5px}
.progress ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.progress li{display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center;font-size:12.5px;color:var(--muted);position:relative}
.progress li span{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-weight:800;background:var(--soft);color:var(--muted)}
.progress li.done span{background:var(--accent);color:#fff}
.progress li.now span{background:var(--accent);color:#fff;box-shadow:0 0 0 6px color-mix(in srgb,var(--accent) 22%,transparent);animation:pulse 1.6s ease-in-out infinite}
.progress li.now b,.progress li.done b{color:var(--ink)}
@keyframes pulse{50%{box-shadow:0 0 0 10px color-mix(in srgb,var(--accent) 8%,transparent)}}
.status.s-ready,.status.s-out_for_delivery{background:#e0e7ff;color:#3730a3}
@media (prefers-reduced-motion:reduce){.progress li.now span{animation:none}}

/* ---------- banner styles ---------- */
.photo-hero.soft:after{background:linear-gradient(270deg,rgba(8,14,26,.55) 0%,rgba(8,14,26,.25) 55%,transparent 100%)}
html[dir=ltr] .photo-hero.soft:after{background:linear-gradient(90deg,rgba(8,14,26,.55) 0%,rgba(8,14,26,.25) 55%,transparent 100%)}
.hero.banner-only,body[data-theme] .hero.banner-only{display:block;padding:0;min-height:0;background:none;border:0;box-shadow:none}
.hero.banner-only img{display:block;width:100%;height:auto;max-height:560px;object-fit:cover}
/* the menu design used to hide the banner photo on phones */
/* on phones the banner photo must fill the whole hero behind the text (the menu design used to hide it) */
@media (max-width:760px){body[data-theme] .photo-hero .hero-art{display:grid;height:100%;padding-bottom:0}.photo-hero{min-height:300px}}

/* ---------- footer always at the bottom, OVIO credit links to our site ---------- */
body{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
body>main{flex:1 0 auto;width:100%;margin-block:0}
body>header,body>footer{flex-shrink:0}
.poweredby{color:inherit;font-weight:800;letter-spacing:.6px;text-decoration:none}
.poweredby:hover{color:var(--accent);text-decoration:underline}

/* ---------- theme «أنيق» (elegant): calm, airy layout — thin announcement bar, centred logo,
   full-width banner, centred section titles, simple cards. Store colours (accent / header / footer) still apply. ---------- */
#announce{display:none}
body[data-theme=elegant] #announce{display:block;padding:9px 5%;text-align:center;font-size:12.5px;font-weight:600;letter-spacing:.4px;background:color-mix(in srgb,var(--accent) 88%,#000);color:#fff}
body[data-theme=elegant]{--radius:6px;--shadow:none}
body[data-theme=elegant] header{padding:20px 5%;gap:12px;background:#fff;backdrop-filter:none;border-bottom:1px solid var(--line)}
body[data-theme=elegant] header[data-custom]{background:var(--bar-bg,#fff)}
body[data-theme=elegant] #brand img{max-height:62px;max-width:200px}
body[data-theme=elegant] nav button{font-size:13.5px;font-weight:500;letter-spacing:.3px}
body[data-theme=elegant] header>div:last-child{gap:2px}
body[data-theme=elegant] .navlabel,body[data-theme=elegant] .paren{display:none}
body[data-theme=elegant] #cartnav,body[data-theme=elegant] #wishnav,body[data-theme=elegant] #accountnav{position:relative;width:42px;height:42px;padding:0;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;color:var(--ink)}
body[data-theme=elegant] #cartnav::before,body[data-theme=elegant] #wishnav::before{position:static;inset-inline-start:auto;top:auto;transform:none;width:21px;height:21px}
body[data-theme=elegant] #accountnav::before{content:'';width:21px;height:21px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 3.6-7 8-7s8 3 8 7'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 3.6-7 8-7s8 3 8 7'/%3E%3C/svg%3E") center/contain no-repeat}
body[data-theme=elegant] #cartnav:hover,body[data-theme=elegant] #wishnav:hover,body[data-theme=elegant] #accountnav:hover{background:var(--soft)}
body[data-theme=elegant] .navcount{position:absolute;top:2px;inset-inline-end:2px;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:var(--accent);color:#fff;font-size:10.5px;font-weight:700;display:grid;place-items:center;line-height:1}
body[data-theme=elegant] .navcount.zero{display:none}
body[data-theme=elegant] #language{border:0;font-weight:600}
/* full-width banner */
body[data-theme=elegant] .hero{margin:0 calc(50% - 50vw);width:100vw;border-radius:0;box-shadow:none;border:0}
body[data-theme=elegant] .hero.banner-only img{max-height:72vh;width:100%;object-fit:cover}
body[data-theme=elegant] .hero:not(.banner-only){padding:72px 8%;min-height:52vh}
/* centred intro + section titles, lots of white space */
body[data-theme=elegant] .intro{text-align:center;max-width:640px;margin:56px auto 8px}
body[data-theme=elegant] .intro h2{font-size:30px;font-weight:600;letter-spacing:-.2px;margin:0 0 10px}
body[data-theme=elegant] .intro p{color:var(--muted);font-size:15.5px;line-height:1.8;margin:0}
body[data-theme=elegant] .menubar{top:103px;justify-content:center;gap:4px;border-bottom:0;margin:28px 0 0;padding:10px 0}
body[data-theme=elegant] .menubar button{border:0;border-radius:0;padding:8px 14px;font-weight:500;color:var(--muted);border-bottom:2px solid transparent}
body[data-theme=elegant] .menubar button:hover{color:var(--ink);border-bottom-color:var(--accent)}
body[data-theme=elegant] .menubar .search{margin-inline-start:12px;flex:0 0 200px;border-radius:4px}
body[data-theme=elegant] .menugroup{margin:44px 0 64px;scroll-margin-top:170px}
body[data-theme=elegant] .menugroup h2{justify-content:center;font-size:24px;font-weight:600;letter-spacing:.2px;margin-bottom:26px}
body[data-theme=elegant] .menugroup h2::before,body[data-theme=elegant] .menugroup h2::after{content:'';flex:0 0 48px;height:1px;background:color-mix(in srgb,var(--accent) 45%,transparent)}
body[data-theme=elegant] .menugrid{display:flex;flex-wrap:wrap;justify-content:center;gap:34px 22px}
body[data-theme=elegant] .menugrid>.menuitem{flex:0 1 calc((100% - 66px)/4)}
body[data-theme=elegant] .menuitem{flex-direction:column;align-items:stretch;gap:12px;padding:0;border:0;border-radius:0;background:transparent;text-align:center}
body[data-theme=elegant] .menuitem:hover{box-shadow:none}
body[data-theme=elegant] .menuitem .picture{order:-1;width:100%;height:auto;flex:none;aspect-ratio:1/1;border-radius:4px;transition:transform .4s ease;background:color-mix(in srgb,var(--accent) 7%,#fff)}
body[data-theme=elegant] .menuitem .picture .placeholder{width:54px;height:54px;opacity:.35;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='13' r='7'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3Cpath d='M3 4v5M5 4v5M3 9h2v11M20 4c-1.5 1-2 3-2 5h2v11'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='13' r='7'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3Cpath d='M3 4v5M5 4v5M3 9h2v11M20 4c-1.5 1-2 3-2 5h2v11'/%3E%3C/svg%3E") center/contain no-repeat}
body[data-theme=elegant] .menuitem:hover .picture{transform:scale(1.02)}
body[data-theme=elegant] .menutext h3{font-size:15.5px;font-weight:500;margin-bottom:6px}
body[data-theme=elegant] .menutext .price{color:var(--ink);font-weight:600;opacity:.85}
body[data-theme=elegant] .menuadd{position:static;align-self:center;width:auto;height:auto;padding:8px 22px;border-radius:4px;font-size:0;font-weight:600;background:transparent;color:var(--accent);border:1px solid var(--accent);box-shadow:none}
body[data-theme=elegant] .menuadd::after{content:'+ ' attr(data-label);font-size:13px;line-height:1.2}
body[data-theme=elegant] .menuadd:hover{background:var(--accent);color:#fff;filter:none}
/* shop (non-restaurant) grid */
body[data-theme=elegant] .product{border:0;box-shadow:none;background:transparent;text-align:center;padding:0}
body[data-theme=elegant] .product .picwrap{border-radius:4px}
body[data-theme=elegant] .product h3{font-weight:500}
body[data-theme=elegant] .benefits{border:0;background:transparent}
/* footer */
body[data-theme=elegant] #sitefooter{margin-top:72px}
body[data-theme=elegant] .footgrid{padding-top:56px;padding-bottom:40px;gap:40px}
body[data-theme=elegant] .footcol h4{font-weight:600;letter-spacing:.4px}
@media(max-width:1000px){body[data-theme=elegant] .menugrid>.menuitem{flex-basis:calc((100% - 44px)/3)}}
@media(max-width:760px){
  body[data-theme=elegant] header{padding:12px 4%}
  body[data-theme=elegant] #brand img{max-height:46px;max-width:150px}
  body[data-theme=elegant] #cartnav,body[data-theme=elegant] #wishnav,body[data-theme=elegant] #accountnav{width:38px;height:38px}
  body[data-theme=elegant] #menutoggle{border:0}
  body[data-theme=elegant] .hero.banner-only img{max-height:46vh}
  body[data-theme=elegant] .intro{margin-top:34px}
  body[data-theme=elegant] .intro h2{font-size:23px}
  body[data-theme=elegant] .menubar{top:71px;justify-content:flex-start}
  body[data-theme=elegant] .menubar{flex-wrap:wrap;justify-content:center;row-gap:6px;margin-top:18px}
  body[data-theme=elegant] .menubar .search{order:-1;flex:1 0 100%;margin:0 0 4px}
  body[data-theme=elegant] .menugrid{gap:26px 14px}
  body[data-theme=elegant] .menugrid>.menuitem{flex-basis:calc((100% - 14px)/2)}
  body[data-theme=elegant] .menugroup{margin:30px 0 44px}
}

/* «أنيق»: category image tiles (instead of the text links) */
body[data-theme=elegant] .menusearch{display:flex;justify-content:center;margin:24px 0 0}
body[data-theme=elegant] .menusearch .search{flex:0 1 420px;padding:11px 16px;border:1px solid var(--line);border-radius:6px;background:#fff}
body[data-theme=elegant] .cattiles{display:flex;flex-wrap:wrap;justify-content:center;gap:16px;margin:28px 0 8px}
body[data-theme=elegant] .cattiles>.cattile{flex:0 1 calc((100% - 48px)/4)}
body[data-theme=elegant] .cattile{position:relative;display:block;aspect-ratio:1/1;padding:0;border:0;border-radius:14px;overflow:hidden;cursor:pointer;background:color-mix(in srgb,var(--accent) 14%,#fff);isolation:isolate}
body[data-theme=elegant] .cattile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
body[data-theme=elegant] .cattile::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 40%,rgba(0,0,0,.55) 100%);z-index:1}
body[data-theme=elegant] .cattile.noimg::after{background:none}
body[data-theme=elegant] .cattile span{position:absolute;inset-inline:12px;bottom:14px;z-index:2;color:#fff;font-size:17px;font-weight:600;text-align:center;text-shadow:0 1px 6px rgba(0,0,0,.35)}
body[data-theme=elegant] .cattile.noimg span{inset-block:0;display:grid;place-items:center;color:var(--accent);text-shadow:none;font-size:18px}
body[data-theme=elegant] .cattile:hover img{transform:scale(1.05)}
body[data-theme=elegant] .cattile:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:1000px){body[data-theme=elegant] .cattiles>.cattile{flex-basis:calc((100% - 32px)/3)}}
@media(max-width:760px){body[data-theme=elegant] .cattiles{gap:12px;margin-top:20px}body[data-theme=elegant] .cattiles>.cattile{flex-basis:calc((100% - 12px)/2)}body[data-theme=elegant] .cattile span{font-size:15px;bottom:10px}}

/* «أنيق»: product window — square photo, − 1 + stepper, full-width actions */
body[data-theme=elegant] #dialog .picture{height:auto;aspect-ratio:1/1;border-radius:12px;opacity:1}
body[data-theme=elegant] #dialog .picture img{width:100%;height:100%;object-fit:cover}
body[data-theme=elegant] #dialog .price{text-align:center;font-size:20px;margin:14px 0 4px}
body[data-theme=elegant] #dialog .qtystep{display:flex;align-items:center;justify-content:center;width:max-content;margin:12px auto 4px;border:1px solid var(--line);border-radius:999px;overflow:hidden;background:#fff}
body[data-theme=elegant] #dialog .qtystep input{width:56px;height:44px;padding:0;border:0;text-align:center;font-size:18px;font-weight:600;background:transparent;-moz-appearance:textfield;appearance:textfield}
body[data-theme=elegant] #dialog .qtystep input::-webkit-outer-spin-button,body[data-theme=elegant] #dialog .qtystep input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
body[data-theme=elegant] #dialog .qbtn{width:46px;height:44px;padding:0;border:0;border-radius:0;background:transparent;color:var(--ink);font-size:22px;line-height:1;cursor:pointer}
body[data-theme=elegant] #dialog .qbtn:hover{background:var(--soft)}
body[data-theme=elegant] #dialog button.primary,body[data-theme=elegant] #dialog button.wish.inline{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin:12px 0 0;padding:13px 16px;border-radius:10px;font-size:15px;box-shadow:none}
body[data-theme=elegant] #dialog button.wish.inline{position:static;background:#fff;border:1px solid var(--line);color:var(--ink)}
body[data-theme=elegant] #dialog button.wish.inline:hover{border-color:var(--accent)}

/* ---------- «قوالب Nawras»: presets on top of «أنيق» (body[data-preset]). Fonts are OFL, served from /images/nawras/fonts. ---------- */
@font-face{font-family:'Nawras Plex';font-style:normal;font-weight:400;font-display:swap;src:url(/images/nawras/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:'Nawras Plex';font-style:normal;font-weight:400;font-display:swap;src:url(/images/nawras/fonts/ibm-plex-sans-arabic-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Nawras Plex';font-style:normal;font-weight:600;font-display:swap;src:url(/images/nawras/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:'Nawras Plex';font-style:normal;font-weight:600;font-display:swap;src:url(/images/nawras/fonts/ibm-plex-sans-arabic-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Nawras Amiri';font-style:normal;font-weight:700;font-display:swap;src:url(/images/nawras/fonts/amiri-arabic-700-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:'Nawras Amiri';font-style:normal;font-weight:700;font-display:swap;src:url(/images/nawras/fonts/amiri-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Nawras Tajawal';font-style:normal;font-weight:500;font-display:swap;src:url(/images/nawras/fonts/tajawal-arabic-500-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:'Nawras Tajawal';font-style:normal;font-weight:500;font-display:swap;src:url(/images/nawras/fonts/tajawal-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Nawras Tajawal';font-style:normal;font-weight:700;font-display:swap;src:url(/images/nawras/fonts/tajawal-arabic-700-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:'Nawras Tajawal';font-style:normal;font-weight:700;font-display:swap;src:url(/images/nawras/fonts/tajawal-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Nawras Messiri';font-style:normal;font-weight:700;font-display:swap;src:url(/images/nawras/fonts/el-messiri-arabic-700-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:'Nawras Messiri';font-style:normal;font-weight:700;font-display:swap;src:url(/images/nawras/fonts/el-messiri-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
body[data-theme=elegant]:not([data-preset=""]){--font:'Nawras Plex',-apple-system,"Segoe UI",Tahoma,sans-serif;font-family:var(--font)}
body[data-preset=perfume] :is(h1,h2,h3,#brand){font-family:'Nawras Amiri',serif;font-weight:700}
body[data-preset=restaurant] :is(h1,h2,h3,#brand),body[data-preset=salon] :is(h1,h2,h3,#brand){font-family:'Nawras Messiri',serif;font-weight:700}
body[data-preset=company] :is(h1,h2,h3,#brand),body[data-preset=clinic] :is(h1,h2,h3,#brand){font-family:'Nawras Tajawal',sans-serif;font-weight:700}
body[data-theme=elegant]:not([data-preset=""]) .benefits{display:none}
/* hero with the preset drawing (only when the store has no full banner image) */
body[data-theme=elegant] .hero.nawras-hero{display:flex;align-items:center;min-height:560px;padding:56px 8%;background-color:var(--accent);background-size:cover;background-position:center;color:#fff;box-sizing:border-box}
body[data-theme=elegant] .nawras-hero-text{max-width:500px;margin-inline-start:auto;display:flex;flex-direction:column;gap:14px}
/* «الأكثر طلبًا»: four cards in a grid instead of the scrolling row */
body[data-theme=elegant]:not([data-preset=""]) .picksrow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;overflow:visible}
body[data-theme=elegant]:not([data-preset=""]) .picksrow>*:nth-child(n+5){display:none}
body[data-theme=elegant]:not([data-preset=""]) .picks{border:0;background:none;padding:0;margin:56px 0}
@media(max-width:760px){body[data-theme=elegant]:not([data-preset=""]) .picksrow{grid-template-columns:1fr 1fr;gap:12px}}
body[data-theme=elegant] .nawras-hero .eyebrow{color:#ffffffcc;letter-spacing:.12em;font-size:13px;background:none;padding:0}
body[data-theme=elegant] .nawras-hero h1{font-size:clamp(34px,5vw,58px);line-height:1.2;margin:0;color:inherit}
body[data-theme=elegant] .nawras-hero p{font-size:17px;line-height:1.8;margin:0;opacity:.9}
body[data-theme=elegant] .nawras-hero-btns{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px}
body[data-theme=elegant] .nawras-hero-btns .primary{background:#fff;color:#1d1d1b;border:0;padding:13px 26px;border-radius:4px;font-weight:600}
body[data-theme=elegant] .nawras-hero .ghostbtn{display:inline-flex;align-items:center;padding:12px 24px;border:1px solid #ffffffb3;border-radius:4px;color:#fff;text-decoration:none;font-weight:600}
body[data-preset=store] .hero.nawras-hero,body[data-preset=salon] .hero.nawras-hero{color:#1d1d1b}
body[data-preset=store] .nawras-hero .eyebrow,body[data-preset=salon] .nawras-hero .eyebrow{color:var(--accent)}
body[data-preset=store] .nawras-hero p,body[data-preset=salon] .nawras-hero p{color:#3f3f46;opacity:1}
body[data-preset=store] .nawras-hero-btns .primary,body[data-preset=salon] .nawras-hero-btns .primary{background:#1d1d1b;color:#fff}
body[data-preset=store] .nawras-hero .ghostbtn,body[data-preset=salon] .nawras-hero .ghostbtn{color:#1d1d1b;border-color:#1d1d1b}
/* story / features / CTA */
body[data-theme=elegant] .nawras-story{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center;margin:72px 0}
body[data-theme=elegant] .nawras-story img{width:100%;aspect-ratio:10/11;object-fit:cover;border-radius:6px}
body[data-theme=elegant] .nawras-story .eyebrow{color:var(--accent);font-size:13px;letter-spacing:.1em;background:none;padding:0}
body[data-theme=elegant] .nawras-story h2{font-size:clamp(26px,3vw,36px);margin:8px 0 12px}
body[data-theme=elegant] .nawras-story p{color:var(--muted);line-height:1.9;font-size:16px}
body[data-theme=elegant] .nawras-features{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin:20px 0 64px;text-align:center}
body[data-theme=elegant] .nawras-features h3{font-size:17px;margin:0 0 6px}
body[data-theme=elegant] .nawras-features p{margin:0;color:var(--muted);font-size:14px}
body[data-theme=elegant] .nawras-cta{margin:0 calc(50% - 50vw);width:100vw;padding:64px 8%;box-sizing:border-box;text-align:center;background:color-mix(in srgb,var(--accent) 92%,#000);color:#fff}
body[data-theme=elegant] .nawras-cta h2{font-size:clamp(26px,3vw,36px);margin:0 0 10px;color:inherit}
body[data-theme=elegant] .nawras-cta p{opacity:.85;margin:0 0 22px}
body[data-theme=elegant] .nawras-cta .primary{display:inline-block;background:#fff;color:#1d1d1b;padding:13px 28px;border-radius:4px;text-decoration:none;font-weight:600}
body[data-theme=elegant]:not([data-preset=""]) #sitefooter{margin-top:0}
@media(max-width:760px){
  body[data-theme=elegant] .hero.nawras-hero{min-height:0;padding:48px 6%;background-image:none!important}
  body[data-preset=store] .hero.nawras-hero,body[data-preset=salon] .hero.nawras-hero{background-color:color-mix(in srgb,var(--accent) 10%,#fff)}
  body[data-theme=elegant] .nawras-story{grid-template-columns:1fr;gap:20px;margin:48px 0}
  body[data-theme=elegant] .nawras-features{grid-template-columns:1fr 1fr}
}
/* «قوالب Nawras» services: «احجز» instead of «أضف إلى السلة» */
body[data-theme=elegant] .bookbtn{display:block;box-sizing:border-box;width:100%;text-align:center;padding:10px 12px;border:1px solid var(--accent);border-radius:6px;color:var(--accent);text-decoration:none;font-weight:600}
body[data-theme=elegant] .bookbtn:hover{background:var(--accent);color:#fff}
body[data-theme=elegant] #dialog .bookbtn{margin-top:12px;padding:13px 16px;border-radius:10px;background:var(--accent);color:#fff;font-size:15px}

/* «أنيق» footer: balanced columns, only the ones with data */
body[data-theme=elegant] .footgrid.elegantfoot{grid-template-columns:1.4fr repeat(3,1fr)}
body[data-theme=elegant] .footgrid.elegantfoot.cols-3{grid-template-columns:1.4fr 1fr 1fr}
body[data-theme=elegant] .footgrid.elegantfoot.cols-2{grid-template-columns:1fr 1fr}
body[data-theme=elegant] .footgrid.elegantfoot.cols-1{grid-template-columns:1fr;text-align:center;justify-items:center}
body[data-theme=elegant] .footcontact span,body[data-theme=elegant] .footcontact a{color:var(--muted);font-size:13.5px;line-height:1.6}
body[data-theme=elegant]:has(#wafloat) .footbar{padding-inline-end:112px}
body[data-theme=elegant] .footbar{align-items:center}
@media(max-width:760px){
  body[data-theme=elegant] .footgrid.elegantfoot{grid-template-columns:1fr!important;text-align:center;justify-items:center}
  body[data-theme=elegant] .footgrid.elegantfoot .footcol{align-items:center}
  body[data-theme=elegant] .footgrid.elegantfoot .footcol button{text-align:center}
  body[data-theme=elegant]:has(#wafloat) .footbar{padding-inline-end:6%;padding-bottom:84px}
  body[data-theme=elegant] .footgrid.elegantfoot .footbrand p{margin-inline:auto}
  body[data-theme=elegant] .footgrid.elegantfoot .socials{justify-content:center}
}
body[data-theme=elegant] .nawras-story img.storylogo{object-fit:contain;padding:12%;box-sizing:border-box;background:color-mix(in srgb,var(--accent) 8%,#fff)}
body[data-theme=elegant] .nawras-story.noart{grid-template-columns:1fr;max-width:720px;margin-inline:auto;text-align:center}
/* «أنيق»: header search icon + search bar */
body[data-theme=elegant] #searchnav{position:relative;width:42px;height:42px;padding:0;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;color:var(--ink)}
body[data-theme=elegant] #searchnav:hover{background:var(--soft)}
body[data-theme=elegant] #searchnav::before{content:'';width:20px;height:20px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.6-3.6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.6-3.6'/%3E%3C/svg%3E") center/contain no-repeat}
#searchbar{position:fixed;top:0;inset-inline:0;z-index:60;display:flex;justify-content:center;gap:10px;align-items:center;padding:14px 5%;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 8px 24px #0000001a}
#searchbar[hidden]{display:none}
#searchbar .search{flex:0 1 720px;max-width:none;width:auto;min-width:0;padding:12px 16px;border:1px solid var(--line);border-radius:8px;font-size:16px;background:#fff}
#searchbar .searchclose{width:42px;height:42px;flex:none;border:0;border-radius:50%;background:var(--soft);font-size:24px;line-height:1;color:var(--ink)}
body[data-theme=elegant] .menuanchor{height:1px}
body[data-theme=elegant] :is(.menugroup,#collection,.menulist,#grid){scroll-margin-top:96px}
@media(max-width:760px){
  body[data-theme=elegant] header>div:last-child{gap:0}
  body[data-theme=elegant] :is(#searchnav,#cartnav,#wishnav,#accountnav){width:38px;height:38px}
  body[data-theme=elegant] :is(.menugroup,#collection,.menulist,#grid){scroll-margin-top:80px}
  /* story / features: no tall cropped picture, no big empty band before the CTA */
  body[data-theme=elegant] .nawras-story{margin:32px 0 20px;gap:16px;text-align:center}
  body[data-theme=elegant] .nawras-story img{aspect-ratio:4/3;object-fit:contain;background:color-mix(in srgb,var(--accent) 6%,#fff)}
  body[data-theme=elegant] .nawras-features{margin:8px 0 32px;gap:18px 12px}
  body[data-theme=elegant] .nawras-cta{padding:44px 6%}
  /* footer: centred, tighter */
  body[data-theme=elegant] .footgrid.elegantfoot{gap:22px;padding:32px 6% 16px}
  body[data-theme=elegant] .footgrid.elegantfoot .footcol{gap:6px}
  body[data-theme=elegant] .footgrid.elegantfoot .footcol h4{margin-bottom:2px}
  body[data-theme=elegant] .footgrid.elegantfoot .footbrand{display:flex;flex-direction:column;align-items:center}
  body[data-theme=elegant] .footbar{flex-direction:column;align-items:center;text-align:center;gap:4px;padding-top:14px}
}
@media(min-width:761px){body[data-theme=elegant] #searchm{display:none}}
