/* Ethiopian heritage shell. The existing marketplace and database flows stay intact. */
:root { --sidebar: 232px; --cream:#faf7f0; --surface:#fffefa; --ink:#352419; --ink-2:#756555; --green:#173f30; --gold:#c99636; --line:#e8dfd1; --on-green:#fff; }
html { scroll-padding-bottom:150px; }
body { min-width:320px; }
button, a { -webkit-tap-highlight-color:transparent; }
button:disabled { cursor:wait; opacity:.65; }
.skip-link { position:fixed; top:-80px; left:20px; z-index:100; padding:12px; background:var(--green); color:white; }
.skip-link:focus { top:8px; }
.app { max-width:none; margin-left:var(--sidebar); }
.sidebar { position:fixed; inset:0 auto 0 0; width:var(--sidebar); z-index:35; background:#12392b; color:#faf7ed; display:flex; flex-direction:column; padding:28px 16px 22px; overflow-y:auto; }
.sidebar .brand { flex-direction:column; gap:2px; margin:0 0 26px; }
.sidebar .brand svg { width:30px; height:42px; }
.sidebar .brand b { font-size:34px; letter-spacing:-1px; }
.sidebar nav { display:grid; gap:6px; }
.side-link { display:flex; align-items:center; gap:13px; padding:13px 15px; text-align:start; border:0; border-radius:7px; background:transparent; color:inherit; font-size:14px; text-decoration:none; min-height:48px; }
.side-link svg { width:21px; height:21px; opacity:.88; }
.side-link:hover { background:#ffffff10; }
.side-link[aria-current="page"] { background:#d9b564; color:#142d23; font-weight:700; }
.side-divider { height:1px; background:#ffffff25; margin:19px 13px; }
.side-bottom { margin-top:auto; padding-top:40px; }
.side-family { display:flex; gap:10px; align-items:center; margin:0 14px 8px; font-size:12px; color:#d0c8ae; }
.side-family span { color:#e0bd71; font-size:22px; }
.top { background:rgba(250,247,240,.97); backdrop-filter:blur(16px); }
.top-row { min-height:80px; padding:14px 30px; gap:20px; max-width:1600px; margin:auto; }
.top-row>.brand { display:none; }
.header-search { flex:1; max-width:740px; border-radius:8px; padding:1px 10px 1px 14px; background:#fffdfa; }
.header-search input { font-size:14px; padding:11px 0; }
.header-search button { border:0; background:transparent; display:grid; place-items:center; color:var(--green); padding:7px; }
.header-tools { margin-left:auto; display:flex; align-items:center; gap:15px; }
.header-location { display:flex; align-items:center; gap:5px; font-size:13px; white-space:nowrap; }
.header-location svg { width:17px; }
.langs { background:transparent; border-radius:0; padding:0; }
.langs button { padding:6px 9px; font-size:12px; border-radius:5px; }
.langs button[aria-pressed="true"] { background:#e8eee7; color:#173f30; box-shadow:none; }
.header-account { padding:9px 13px; font-size:13px; min-height:40px; border-radius:6px; white-space:nowrap; }
.header-account svg { width:17px; height:17px; }
.tibeb { height:12px; background-color:#f7edda; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='16' viewBox='0 0 48 16'%3E%3Cpath d='M0 1h48M0 15h48' stroke='%23b98a34'/%3E%3Cpath d='M12 2l6 6-6 6-6-6zM36 2l6 6-6 6-6-6z' fill='%231d513b'/%3E%3Cpath d='M12 5l3 3-3 3-3-3z' fill='%23f7edda'/%3E%3Cpath d='M36 5l3 3-3 3-3-3z' fill='%23d4a84f'/%3E%3Cpath d='M0 4l4 4-4 4M48 4l-4 4 4 4M24 4l4 4-4 4-4-4z' fill='%23a5432b'/%3E%3C/svg%3E"); }
.demo-banner { font-size:11px; padding:5px 30px; justify-content:center; border-bottom:1px solid var(--line); background:#f1eadc; }
main { max-width:1600px; margin:auto; padding:20px 30px 158px; gap:24px; }
.view { gap:22px; }
.hero { min-height:340px; display:flex; align-items:center; position:relative; border-radius:12px; overflow:hidden; background:#eee3d0; isolation:isolate; }
.hero-photo { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 47%; z-index:-2; }
.hero::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#f4ecdf 0%,#f4ecdfef 23%,#f4ecdf40 62%,transparent 78%); z-index:-1; }
.hero-copy { padding:36px; max-width:64%; }
.eyebrow { font-size:13px; font-weight:600; color:#725035; margin-bottom:10px; }
.hero h1 { font-size:clamp(32px,3.5vw,56px); line-height:1.08; letter-spacing:-1.7px; margin-bottom:14px; }
.hero h1 span { display:block; }
.hero p:not(.eyebrow) { font-size:17px; color:#684a35; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; }
.hero .btn { font-size:13px; padding:12px 20px; border-radius:6px; }
.btn.gold { background:#d5a746; color:#2d2414; }
.hero .btn.ghost { background:#fff9eeaa; box-shadow:inset 0 0 0 1px #8b6d4d; }
.hero .btn svg { width:17px; }
.home-cats { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }
.home-cat { min-width:0; min-height:74px; padding:12px; display:flex; align-items:center; gap:10px; border:1px solid var(--line); border-radius:8px; background:var(--surface); text-align:start; }
.home-cat:hover { border-color:var(--gold); background:#f7f0e2; }
.home-cat .category-icon { display:grid; place-items:center; width:42px; height:42px; flex-shrink:0; border-radius:50%; background:#f4ead6; color:#865a2f; }
.home-cat:nth-child(2n) .category-icon { background:#e7eee4; color:#25503b; }
.home-cat span:last-child { font-size:12px; font-weight:600; line-height:1.3; }
.sec-h h2 { font-size:27px; letter-spacing:-.6px; }
.sec-h .link { font-size:12px; white-space:nowrap; }
.grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.card { border-radius:9px; box-shadow:none; border:1px solid var(--line); transition:transform .18s,box-shadow .18s; }
.card:hover { transform:translateY(-3px); box-shadow:0 10px 24px #43301a12; }
.card .body { padding:12px; gap:6px; }
.card .nm { font-family:var(--f-display); font-size:16px; line-height:1.35; }
.card .price { font-size:18px; color:#733c23; }
.seller-line { font-size:11px; margin-top:2px; }
.product-art { aspect-ratio:4/3; background-image:url('/assets/heritage-products.webp'); background-size:400% 100%; background-repeat:no-repeat; background-position:0 center; background-color:#eadbc4; }
.product-art.art-kemis { background-position:33.333% center; }
.product-art.art-jebena { background-position:66.667% center; }
.product-art.art-mesob { background-position:100% center; }
.card .thumb { aspect-ratio:4/3; }
.card .thumb .tibeb { height:5px; }
.sample-caption { font-size:11px; color:var(--ink-2); }
.feature-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.feature-card { padding:23px; border-radius:10px; display:grid; grid-template-columns:36px 1fr; gap:14px; align-items:start; background:#f1e5d6; border:1px solid #e7d4bd; }
.feature-card.community { background:#e9eddf; border-color:#dde3ce; }
.feature-card>svg { width:31px; height:31px; color:#7f4a2b; }
.feature-card.community>svg { color:#27533b; }
.feature-card h2 { font-size:22px; margin-bottom:7px; }
.feature-card p { font-size:13px; max-width:38ch; color:var(--ink-2); }
.feature-card .btn { font-size:12px; min-height:36px; padding:9px 14px; border-radius:5px; margin-top:16px; }
.home-ways { border-top:1px solid var(--line); padding-top:25px; }
.home-ways .ways-list { grid-template-columns:1fr 1fr; }
.home-ways .way { border-top:1px solid var(--line); }
.home-ways .way b { font-size:14px; }
.home-ways .way .d { font-size:12px; }
.home-ways .ways-head { padding-bottom:12px; }
.page-heading { display:flex; align-items:center; justify-content:space-between; margin:3px 0 0; gap:12px; }
.page-heading h1 { font-size:34px; }
.page-heading p { color:var(--ink-2); font-size:14px; margin-top:5px; }
.nav { left:var(--sidebar); padding:0 24px env(safe-area-inset-bottom,0px); border-top:1px solid #c9a865; box-shadow:0 -5px 25px #382a1710; }
.nav::after { content:""; display:block; height:6px; background:repeating-linear-gradient(45deg,#c99636 0 4px,#faf3e5 4px 8px,#24503b 8px 12px,#faf3e5 12px 16px,#b34f31 16px 20px,#faf3e5 20px 24px); }
.nav-in { max-width:1100px; }
.nav button { padding:10px 2px 8px; min-height:65px; gap:3px; font-size:11px; }
.nav button[aria-current="page"] { background:linear-gradient(0deg,transparent,#e6ecdf); }
.nav button svg { width:23px; height:23px; }
.fab { inset-inline-end:24px; bottom:calc(92px + env(safe-area-inset-bottom,0px)); background:#153f2f; color:#fff9ea; border:1px solid #bd9448; font-size:13px; padding:12px 17px; box-shadow:0 6px 20px #163c3026; }
.fab svg { width:21px; height:21px; }
.sheet-wrap { align-items:center; justify-items:center; padding:24px; }
.sheet { border-radius:18px; max-height:calc(100dvh - 48px); padding:0 24px 24px; max-width:540px; }
.sheet .big-thumb .product-art { aspect-ratio:4/3; }
body.dialog-open { overflow:hidden; }
.toast { bottom:calc(150px + env(safe-area-inset-bottom,0px)); }
.narrow-view { max-width:760px; margin-inline:auto; width:100%; }
.feed-view { max-width:760px; margin-inline:auto; width:100%; }
.feed-view .post { border-radius:12px; }
.work-view .list { grid-template-columns:repeat(2,minmax(0,1fr)); }
.work-view .seg { max-width:540px; }
.work-view>.btn { width:max-content; }
.account-grid { max-width:760px; width:100%; margin-inline:auto; }
.empty-state { text-align:center; padding:60px 25px; border:1px solid var(--line); border-radius:16px; background:var(--surface); display:grid; justify-items:center; gap:16px; }
.empty-state>svg { width:44px; height:44px; color:var(--gold); }
.empty-state p { max-width:48ch; color:var(--ink-2); }
.menu-toggle { display:none; border:0; background:transparent; padding:8px; color:var(--green); }
.sidebar-close { display:none; }
.drawer-scrim { display:none; }
.account-grid .points .n { font-size:35px; }
html[dir="rtl"] .hero::after { background:linear-gradient(270deg,#f4ecdf 0%,#f4ecdfef 23%,#f4ecdf40 62%,transparent 78%); }
html[dir="rtl"] .hero-photo { transform:scaleX(-1); }
html[dir="rtl"] .hero h1 { letter-spacing:0; }
html[lang="am"] .hero h1 { font-size:clamp(30px,3vw,46px); line-height:1.4; letter-spacing:0; }
html[lang="am"] .home-cat span:last-child { font-size:12px; }
@media(min-width:1700px) { .hero { min-height:400px; } }
@media(max-width:1200px) { :root { --sidebar:204px; } .top-row { padding:14px 22px; gap:10px; } main { padding-inline:22px; } .header-location { display:none; } .header-tools { gap:8px; } .home-cat { padding:10px; gap:8px; } .home-cat .category-icon { width:32px; height:32px; } .home-cat svg { width:22px; } .grid { gap:12px; } .hero-copy { padding:28px; } }
@media(max-width:1000px) { .grid { grid-template-columns:repeat(3,minmax(0,1fr)); } .home-products { grid-template-columns:repeat(2,minmax(0,1fr)); } .home-cat { flex-direction:column; text-align:center; } .header-account span { display:none; } .hero { min-height:325px; } .hero-copy { max-width:73%; } .feature-card { padding:18px; grid-template-columns:1fr; gap:8px; } .work-view .list { grid-template-columns:1fr; } }
@media(max-width:760px) {
 :root { --sidebar:0px; } .app { margin-left:0; } .sidebar { width:268px; transform:translateX(-100%); transition:transform .2s ease; z-index:55; padding-top:35px; } body.drawer-open .sidebar { transform:translateX(0); } .drawer-scrim { position:fixed; inset:0; background:#14271d80; z-index:54; border:0; width:100%; height:100%; } body.drawer-open .drawer-scrim { display:block; } .sidebar-close { display:grid; place-items:center; position:absolute; right:10px; top:10px; border:0; background:transparent; color:white; padding:7px; } .menu-toggle { display:grid; place-items:center; } .top-row { min-height:65px; padding:10px 14px; gap:8px; flex-wrap:wrap; } .top-row>.brand { display:flex; margin:0 auto 0 0; gap:6px; } .top-row>.brand b { font-size:23px; } .top-row>.brand svg { width:18px; height:26px; } .header-tools { margin:0; gap:3px; } .langs button { padding:5px 7px; min-height:36px; } .header-account { display:none; } .header-search { flex:1 0 100%; max-width:none; order:5; } .header-search input { font-size:14px; padding:7px 0; } .demo-banner { padding:6px 16px; text-align:center; line-height:1.5; font-size:10px; } .tibeb { height:8px; } main { padding:14px 16px 155px; } .view { gap:20px; } .hero { min-height:410px; align-items:flex-start; } .hero-photo { object-position:70% bottom; } .hero::after { background:linear-gradient(180deg,#f4ecdf 0%,#f4ecdfef 35%,#f4ecdf08 68%); } html[dir="rtl"] .hero::after { background:linear-gradient(180deg,#f4ecdf 0%,#f4ecdfef 35%,#f4ecdf08 68%); } .hero-copy { max-width:100%; width:100%; padding:23px; } .hero h1 { font-size:35px; letter-spacing:-1px; max-width:15ch; } .hero p:not(.eyebrow) { font-size:13px; } .eyebrow { font-size:11px; margin-bottom:8px; } .hero-actions { margin-top:17px; gap:8px; } .hero .btn { padding:10px 13px; min-height:40px; font-size:11px; } .home-cats { gap:6px; } .home-cat { border:0; background:none; padding:0; min-height:80px; gap:8px; } .home-cat .category-icon { width:46px; height:46px; } .home-cat span:last-child { font-size:10px; } html[lang="am"] .home-cat span:last-child { font-size:10px; } .sec-h h2 { font-size:24px; } .grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; } .card .body { padding:10px; } .card .nm { font-size:14px; } .card .price { font-size:17px; } .seller-line { font-size:10px; } .feature-grid { grid-template-columns:1fr; gap:10px; } .feature-card { grid-template-columns:30px 1fr; } .feature-card h2 { font-size:22px; } .home-ways .ways-list { grid-template-columns:1fr; } .nav { left:0; padding-inline:8px; } .fab { inset-inline-end:16px; bottom:calc(91px + env(safe-area-inset-bottom,0px)); } .sheet-wrap { align-items:end; padding:0; } .sheet { max-height:90dvh; border-radius:20px 20px 0 0; padding:0 16px calc(20px + env(safe-area-inset-bottom,0px)); max-width:100%; } .page-heading h1 { font-size:29px; } .hero h1 span { display:inline; } html[lang="am"] .hero h1 { font-size:30px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none!important; animation:none!important; scroll-behavior:auto!important; } }
/* Keep the portrait in view when the wide hero crops its source image. */
@media(min-width:761px) { .hero-photo { object-position:center 18%; } }
.product-art { background-size:400% auto; }
body.drawer-open { overflow:hidden; }
/* The sidebar stays on the left in every language; keep Cixy clear of it. */
.fab { inset-inline-end:auto; left:auto; right:24px; }
@media(max-width:760px) { .fab { right:16px; } }
