@import url("../../uploads/typography.css");

@font-face {
  font-family: "AnjomanSite";
  src: url("../../uploads/fonts/dari-regular.ttf") format("truetype"), url("../fonts/Anjoman-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-002F, U+003A-10FFFF;
}
/* Arabic-script-only face: applies the configured Dari font even on English pages,
   while Latin text and English digits continue to use the English typefaces. */
@font-face {
  font-family: "AnjomanDari";
  src: url("../../uploads/fonts/dari-regular.ttf") format("truetype"), url("../fonts/Anjoman-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "AnjomanDari";
  src: url("../../uploads/fonts/dari-bold.ttf") format("truetype"), url("../fonts/Anjoman-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "AnjomanSite";
  src: url("../../uploads/fonts/dari-bold.ttf") format("truetype"), url("../fonts/Anjoman-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-002F, U+003A-10FFFF;
}

:root {
  --ink: #1a1815;
  --muted: #6f685f;
  --paper: #f7f2e9;
  --cream: #fffaf2;
  --ruby: #a5112b;
  --ruby-dark: #6f0b20;
  --emerald: #0f5c48;
  --lapis: #174c78;
  --saffron: #d58b22;
  --line: rgba(26, 24, 21, 0.14);
  --shadow: 0 24px 70px rgba(62, 31, 19, 0.12);
  --serif: "AnjomanDari", Georgia, "Times New Roman", serif;
  --sans: "AnjomanDari", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
body.is-locked, html.page-locked { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.shell { width: min(100% - 32px, 1220px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.eyebrow { margin: 0 0 12px; color: var(--ruby); font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.brand-wordmark { font-family: var(--serif); font-size: clamp(1.35rem, 4vw, 2.1rem); font-weight: 700; letter-spacing: -.04em; text-decoration: none; }
.brand-wordmark::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-radius: 50%; background: var(--saffron); vertical-align: middle; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; border: 1px solid transparent; border-radius: 2px; cursor: pointer; font-size: .86rem; font-weight: 800; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-1px); }
.button-dark { background: var(--ink); color: #fff; }
.button-outline { border-color: var(--ink); background: transparent; color: var(--ink); }
.button-whatsapp { background: #1f8f58; color: #fff; }
.button-whatsapp:hover { background: #177548; }
.whatsapp-icon { width: 21px; height: 21px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.button-full { width: 100%; }
.button.is-disabled { opacity: .45; pointer-events: none; }
.text-link { display: inline-flex; padding-bottom: 3px; border-bottom: 1px solid currentColor; font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.text-link-light { color: #fff; }
.notice { margin: 0 0 18px; padding: 13px 15px; border-left: 3px solid var(--emerald); background: #e5f4ed; color: #174d3f; font-size: .9rem; line-height: 1.5; }
.notice-error { border-color: var(--ruby); background: #fae9e9; color: #73172a; }

/* Storefront */
.announcement { padding: 8px 16px; background: var(--ruby); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.store-header { position: sticky; z-index: 20; top: 0; background: rgba(247, 242, 233, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.store-header-inner { min-height: 70px; display: grid; grid-template-columns: 46px 1fr 46px; align-items: center; }
.store-header .brand-wordmark { justify-self: center; }
.header-action { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.header-action span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.header-action svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.header-action svg { width: 22px; height: 22px; }
.header-action-right { justify-self: end; }
.search-panel { position: fixed; z-index: 35; inset: 103px 0 auto; padding: 22px max(16px, calc((100% - 780px) / 2)); display: flex; align-items: center; gap: 10px; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 16px 40px rgba(26,24,21,.1); }
.search-panel > svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.search-panel input { width: 100%; padding: 13px 2px; border: 0; outline: 0; background: transparent; font-family: var(--serif); font-size: 1.3rem; }
.search-panel button { border: 0; background: transparent; cursor: pointer; font-weight: 800; }
.campaign { padding-block: 28px 40px; display: flex; flex-direction: column; }
.campaign-image { order: 1; }
.campaign-copy { order: 2; }
.campaign-image { position: relative; min-height: 510px; overflow: hidden; background: var(--ruby-dark); color: #fff; cursor: pointer; text-decoration: none; }
.campaign-image:focus-visible { outline: 3px solid var(--saffron); outline-offset: 4px; }
.campaign-image img { width: 100%; height: 510px; object-fit: cover; object-position: center top; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.015); transition: opacity .9s ease, transform 5.8s ease; }
.hero-slide.is-active { z-index: 1; opacity: 1; transform: scale(1); }
.hero-view-label { position: absolute; z-index: 3; right: 14px; bottom: 14px; padding: 9px 11px; background: rgba(23, 21, 18, .86); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(6px); }
.product-entry { scroll-margin-top: 125px; }
.campaign-meta { display: flex; justify-content: space-between; margin-bottom: 34px; color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.campaign-copy { position: relative; z-index: 2; width: calc(100% - 20px); margin: -48px auto 0; padding: 28px 22px 26px; background: var(--cream); box-shadow: var(--shadow); }
.campaign-kicker { margin: 0 0 10px; color: var(--ruby); font-size: .7rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.campaign h1 { max-width: 620px; margin: 0; font-family: var(--serif); font-size: clamp(2.6rem, 12vw, 5.7rem); font-weight: 500; letter-spacing: -.06em; line-height: .88; }
.campaign-copy > p:not(.campaign-kicker) { max-width: 500px; margin: 20px 0; color: var(--muted); line-height: 1.7; }
.category-nav { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.category-scroll { display: flex; gap: 9px; overflow-x: auto; padding: 2px 0 5px; scrollbar-width: none; }
.category-scroll::-webkit-scrollbar { display: none; }
.category-filter { flex: 0 0 auto; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; color: var(--muted); font-size: .77rem; font-weight: 800; letter-spacing: .04em; }
.category-filter.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.collection { padding-block: 45px 64px; }
.section-heading { margin-bottom: 26px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.section-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 8vw, 4.2rem); font-weight: 500; letter-spacing: -.05em; line-height: .95; }
.section-heading p { max-width: 310px; margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.featured-product { grid-column: 1 / -1; margin-bottom: 18px; background: var(--emerald); color: #fff; }
.featured-product .product-trigger { color: #fff; }
.featured-image { min-height: 400px; }
.featured-image img { width: 100%; height: 440px; object-fit: cover; object-position: center top; }
.featured-copy { padding: 28px 23px 30px; }
.featured-copy .eyebrow { color: #f2c26d; }
.featured-copy h3 { margin: 0 0 14px; font-family: var(--serif); font-size: 2.35rem; font-weight: 500; letter-spacing: -.04em; }
.featured-copy > p { margin: 0 0 22px; color: rgba(255,255,255,.76); line-height: 1.65; }
.featured-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.featured-price { font-family: var(--serif); font-size: 1.35rem; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px 12px; }
.product-card { min-width: 0; }
.product-trigger { width: 100%; display: block; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; text-align: left; }
.product-image { position: relative; aspect-ratio: .76; overflow: hidden; background: #e8dfd2; }
.product-image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .55s ease; }
.product-trigger:hover .product-image img { transform: scale(1.025); }
.product-summary { padding-top: 13px; }
.product-summary h3 { margin: 0 0 5px; font-family: var(--serif); font-size: 1.12rem; font-weight: 500; line-height: 1.15; }
.product-summary p { margin: 0; color: var(--muted); font-size: .76rem; }
.product-summary strong { display: block; margin-top: 7px; font-size: .83rem; }
.empty-state { padding: 50px 22px; border: 1px dashed var(--line); text-align: center; color: var(--muted); }
.order-story { background: var(--lapis); color: #fff; }
.order-story-inner { padding-block: 58px; }
.order-story h2 { max-width: 630px; margin: 0; font-family: var(--serif); font-size: clamp(2.35rem, 9vw, 5.4rem); font-weight: 500; letter-spacing: -.055em; line-height: .92; }
.order-story p { max-width: 520px; margin: 22px 0 26px; color: rgba(255,255,255,.72); line-height: 1.7; }
.store-footer { padding: 48px 0 22px; background: #171512; color: #eee6db; }
.footer-grid { width: 100%; margin: 0 auto 45px; display: grid; gap: 30px; }
.footer-wordmark { display: inline-block; font-size: 2.3rem; }
.footer-label { display: block; margin-bottom: 10px; color: #a89d8f; font-size: .65rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.footer-grid p, .footer-grid a { margin: 0; color: #eee6db; font-size: .88rem; line-height: 1.7; text-decoration: none; }
.footer-bottom { width: 100%; margin-inline: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 15px; color: #8f877e; font-size: .7rem; }
.drawer-backdrop { position: fixed; z-index: 39; inset: 0; background: rgba(10,8,7,.55); }
.store-drawer { position: fixed; z-index: 40; inset: 0 auto 0 0; width: min(88vw,380px); padding: 26px; background: var(--cream); box-shadow: 20px 0 60px rgba(0,0,0,.2); transform: translateX(-103%); transition: transform .25s ease; }
.store-drawer.is-open { transform: none; }
.drawer-heading { margin: 28px 0; display: flex; align-items: center; justify-content: space-between; font-family: var(--serif); font-size: 2.5rem; }
.drawer-heading button { width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; font-size: 1.7rem; }
.store-drawer nav { display: grid; gap: 4px; }
.store-drawer nav a { padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.drawer-contact { position: absolute; inset: auto 26px 28px; }
.product-modal { position: fixed; z-index: 50; inset: 0; display: grid; place-items:center; padding:10px; background: rgba(17,13,10,.66); }
.product-modal-panel { position:relative; width:min(100%,940px); height:min(94dvh,760px); overflow:hidden; display:grid; grid-template-rows:minmax(0,42%) minmax(0,58%); background:var(--cream); }
.modal-gallery { min-width:0; min-height:0; display:grid; grid-template-rows:minmax(0,1fr) auto; overflow:hidden; }
.modal-close { position: absolute; z-index: 3; top: 13px; right: 13px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,250,242,.9); cursor: pointer; font-size: 1.35rem; }
.modal-image { width:100%; height:100%; min-height:0; overflow:hidden; background:#e5ded3; }
.modal-image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.modal-content { min-height:0; overflow:hidden; display:flex; flex-direction:column; justify-content:center; padding:14px 18px 16px; }
.modal-heading { margin:0 0 5px; }
.modal-heading .eyebrow { margin-bottom:5px; }
.modal-heading h2 { margin:0 0 4px; overflow:hidden; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; font-family:var(--serif); font-size:clamp(1.45rem,6vw,2rem); font-weight:500; letter-spacing:-.04em; line-height:1.12; }
.modal-price { margin:0 0 7px; font-weight:800; }
.modal-description { margin:0 0 9px; overflow:hidden; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; color:var(--muted); font-size:.86rem; line-height:1.55; }
.modal-facts { margin: 21px 0; padding: 16px 0; border-block: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: .8rem; }
.modal-facts p { margin: 0; line-height: 1.5; }
.modal-facts strong { display: block; margin-bottom: 3px; color: var(--muted); font-size: .65rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.size-picker { min-width:0; margin:0 0 10px; padding:0; border:0; }
.size-picker legend { margin-bottom:6px; font-size:.7rem; font-weight:900; letter-spacing:.07em; text-transform:uppercase; }
#modal-sizes { display:flex; gap:6px; overflow-x:auto; padding-bottom:3px; scrollbar-width:thin; }
#modal-sizes .size-option { flex:0 0 auto; margin:0; }
.size-option { min-width: 46px; min-height: 43px; margin: 0 5px 7px 0; padding: 6px 10px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: .8rem; font-weight: 800; }
.size-option.is-selected { border-color: var(--ink); background: var(--ink); color: #fff; }
.modal-whatsapp { width: 100%; background: #168a55; color: #fff; box-shadow: 0 12px 28px rgba(22, 138, 85, .2); }
.modal-whatsapp:hover { background: #117246; }
.modal-whatsapp.is-disabled { background: #168a55; color: #fff; opacity: .48; }
.modal-content .product-page-link { margin-top:7px; font-size:.68rem; }
.modal-global-message { margin:7px 0 0; padding-top:8px; overflow:hidden; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; border-top:1px solid var(--line); color:var(--muted); font-size:.78rem; font-weight:700; line-height:1.4; }

/* Installation and admin */
.install-body, .admin-body { min-height: 100vh; background: #ede8df; }
.install-shell { min-height: 100vh; display: grid; }
.install-brand { min-height: 280px; padding: 38px 28px; display: flex; flex-direction: column; justify-content: space-between; background: var(--ruby); color: #fff; }
.install-brand h1 { max-width: 570px; margin: 0; font-family: var(--serif); font-size: clamp(2.8rem, 10vw, 6rem); font-weight: 500; letter-spacing: -.06em; line-height: .9; }
.install-form-wrap { padding: 35px 22px 55px; background: var(--cream); }
.install-form-wrap h2 { margin: 0 0 10px; font-family: var(--serif); font-size: 2.25rem; font-weight: 500; letter-spacing: -.04em; }
.install-form-wrap > p { margin: 0 0 25px; color: var(--muted); line-height: 1.6; }
.install-form, .admin-form { display: grid; gap: 16px; }
.install-form > label, .install-form .form-grid > label { display: grid; gap: 7px; }
.install-form label > span { font-size: .71rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.install-form label > input { width: 100%; min-height: 47px; padding: 11px 12px; border: 1px solid #cfc6ba; border-radius: 2px; outline: 0; background: #fff; color: var(--ink); }
.install-form label > input:focus { border-color: var(--lapis); box-shadow: 0 0 0 3px rgba(23,76,120,.1); }
.install-form small { color: var(--muted); }
.form-grid { display: grid; gap: 15px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .71rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field select, .field textarea, .admin-search { width: 100%; min-height: 47px; padding: 11px 12px; border: 1px solid #cfc6ba; border-radius: 2px; outline: 0; background: #fff; color: var(--ink); }
.field textarea { min-height: 115px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus, .admin-search:focus { border-color: var(--lapis); box-shadow: 0 0 0 3px rgba(23,76,120,.1); }
.field-hint { color: var(--muted); font-size: .72rem; line-height: 1.4; }
.form-divider { margin: 10px 0 2px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 1.35rem; }
.install-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.install-complete { max-width: 520px; }

.admin-login { min-height: 100vh; display: grid; }
.login-visual { min-height: 290px; padding: 35px 28px; background: linear-gradient(140deg, rgba(111,11,32,.88), rgba(111,11,32,.15)), url('../images/shabnam-ruby.webp') center 23%/cover; color: #fff; }
.login-visual h1 { max-width: 560px; margin: 80px 0 0; font-family: var(--serif); font-size: clamp(2.8rem,9vw,6.2rem); font-weight: 500; letter-spacing: -.06em; line-height: .88; }
.login-panel { display: grid; align-content: center; padding: 42px 24px; background: var(--cream); }
.login-card { width: min(100%,430px); margin-inline: auto; }
.login-card h2 { margin: 0 0 10px; font-family: var(--serif); font-size: 2.35rem; font-weight: 500; }
.login-card > p { margin: 0 0 25px; color: var(--muted); }
.admin-shell { min-height: 100vh; }
.admin-sidebar { padding: 18px 17px; background: #171512; color: #fff; }
.admin-sidebar-top { display: flex; align-items: center; justify-content: space-between; }
.admin-sidebar .brand-wordmark { font-size: 1.5rem; }
.admin-nav { display: flex; gap: 8px; overflow-x: auto; margin-top: 17px; scrollbar-width: none; }
.admin-nav-button { flex: 0 0 auto; padding: 10px 13px; border: 0; border-radius: 2px; background: transparent; color: #aaa196; cursor: pointer; font-size: .78rem; font-weight: 800; }
.admin-nav-button.is-active { background: #302c27; color: #fff; }
.admin-sidebar-footer { display: none; }
.admin-main { min-width: 0; padding: 24px 17px 60px; }
.admin-topbar { margin-bottom: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.admin-topbar h1 { margin: 0; font-family: var(--serif); font-size: clamp(2.1rem,7vw,4rem); font-weight: 500; letter-spacing: -.05em; }
.admin-topbar p { margin: 4px 0 0; color: var(--muted); font-size: .82rem; }
.mobile-signout { margin-left: auto; }
.admin-panel { display: none; }
.admin-panel.is-active { display: block; }
.stat-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; margin-bottom: 28px; }
.stat-card { min-height: 125px; padding: 20px; background: var(--cream); border: 1px solid var(--line); }
.stat-card span { color: var(--muted); font-size: .7rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.stat-card strong { display: block; margin-top: 18px; font-family: var(--serif); font-size: 2.5rem; font-weight: 500; }
.admin-section { padding: 20px; background: var(--cream); border: 1px solid var(--line); }
.admin-section + .admin-section { margin-top: 18px; }
.admin-section-head { margin-bottom: 18px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; }
.admin-section-head h2 { margin: 0; font-family: var(--serif); font-size: 1.75rem; font-weight: 500; }
.admin-section-head p { margin: 5px 0 0; color: var(--muted); font-size: .78rem; }
.admin-toolbar { display: grid; gap: 10px; margin-bottom: 17px; }
.admin-search { max-width: 430px; }
.admin-product-filters { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; margin-bottom:20px; padding:15px; border:1px solid var(--line); background:#f5f0e8; }
.filter-field { display:grid; align-content:start; gap:6px; min-width:0; }
.filter-field label { color:var(--muted); font-size:.68rem; font-weight:900; letter-spacing:.06em; text-transform:uppercase; }
.filter-field input,.filter-field select { width:100%; min-width:0; min-height:44px; padding:9px 10px; border:1px solid #cfc6ba; border-radius:2px; outline:0; background:#fff; color:var(--ink); }
.filter-field input:focus,.filter-field select:focus { border-color:var(--lapis); box-shadow:0 0 0 3px rgba(23,76,120,.1); }
.filter-search { grid-column:1/-1; }
.admin-product-filters .admin-search { max-width:none; }
.filter-actions { grid-column:1/-1; display:flex; flex-wrap:wrap; align-items:end; gap:8px; padding-top:2px; }
.featured-marker { display:block; margin-top:6px; color:var(--saffron-dark); font-size:.62rem; font-weight:800; white-space:nowrap; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 10px 9px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .64rem; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.admin-table td { padding: 13px 9px; border-bottom: 1px solid var(--line); font-size: .8rem; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-product-cell { display: flex; align-items: center; gap: 11px; min-width: 210px; }
.admin-thumb { width: 50px; height: 62px; flex: 0 0 auto; object-fit: cover; object-position: center top; background: #e5ded3; }
.admin-product-cell strong { display: block; }
.admin-product-cell span { color: var(--muted); font-size: .7rem; }
.status-pill { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: #e2f2ea; color: #176042; font-size: .67rem; font-weight: 900; }
.status-pill.off { background: #eee9e2; color: #70695f; }
.row-actions { display: flex; align-items: center; gap: 5px; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--ink); }
.icon-button:hover { border-color: var(--ink); }
.icon-button.danger { color: var(--ruby); }
.category-list { display: grid; gap: 9px; }
.category-item { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px; border: 1px solid var(--line); }
.category-item strong { display: block; }
.category-item small { color: var(--muted); }
.category-form-row { display: grid; gap: 12px; margin-bottom: 20px; }
.admin-drawer-backdrop { position: fixed; z-index: 59; inset: 0; background: rgba(15,12,10,.55); }
.admin-drawer { position: fixed; z-index: 60; inset: 0 0 0 auto; width: min(100%,560px); overflow-y: auto; padding: 25px 21px 40px; background: var(--cream); box-shadow: -20px 0 70px rgba(0,0,0,.18); transform: translateX(103%); transition: transform .25s ease; }
.admin-drawer.is-open { transform: none; }
.admin-drawer-head { margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; }
.admin-drawer-head h2 { margin: 0; font-family: var(--serif); font-size: 2rem; font-weight: 500; }
.checkbox-field { display: flex; align-items: center; gap: 9px; }
.checkbox-field input { width: 18px; height: 18px; accent-color: var(--ruby); }
.form-actions { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 8px; }
.inline-form { display: inline; }
.empty-admin { padding: 35px 15px; color: var(--muted); text-align: center; }

@media (min-width: 480px) {
  .admin-product-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (min-width: 700px) {
  .shell { width: min(100% - 64px,1220px); }
  .campaign { padding-block: 52px 66px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); align-items: center; }
  .campaign-image, .campaign-copy { order: initial; }
  .campaign-image { grid-column: 1; grid-row: 1; min-height: 660px; }
  .campaign-image img { height: 660px; }
  .campaign-copy { grid-column: 2; grid-row: 1; align-self: center; width: calc(100% + 80px); margin: 0 0 0 -80px; padding: 52px 46px; }
  .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 35px 20px; }
  .featured-product { display: grid; grid-template-columns: 1.15fr .85fr; }
  .featured-product .product-trigger { display: grid; grid-template-columns: 1.15fr .85fr; }
  .featured-image img { height: 570px; }
  .featured-copy { display: flex; flex-direction: column; justify-content: center; padding: 45px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .product-modal { padding:24px; }
  .product-modal-panel { height:min(90dvh,720px); grid-template-columns:1.02fr .98fr; grid-template-rows:minmax(0,1fr); }
  .modal-image { height:100%; }
  .modal-content { padding:28px 34px; }
  .modal-description { -webkit-line-clamp:4; }
  .form-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .install-shell, .admin-login { grid-template-columns: minmax(0,1.05fr) minmax(420px,.95fr); }
  .install-brand { min-height: 100vh; padding: 60px; }
  .install-form-wrap { display: grid; align-content: center; padding: 60px; }
  .login-visual { min-height: 100vh; padding: 55px; }
  .admin-toolbar { grid-template-columns: 1fr auto; align-items: center; }
  .admin-product-filters { grid-template-columns:repeat(4,minmax(0,1fr)); padding:18px; }
  .filter-search { grid-column:span 2; }
  .filter-actions { grid-column:span 2; }
  .category-form-row { grid-template-columns: 1fr 120px auto; align-items: end; }
}

@media (max-height:650px) {
  .product-modal { padding:6px; }
  .product-modal-panel { height:96dvh; grid-template-rows:minmax(0,34%) minmax(0,66%); }
  .modal-thumbs { display:none; }
  .modal-content { padding:10px 15px 12px; }
  .modal-heading h2 { font-size:1.35rem; }
  .modal-description { -webkit-line-clamp:2; font-size:.8rem; }
  .size-option { min-height:36px; }
  .modal-whatsapp { min-height:42px; }
  .modal-global-message { font-size:.72rem; }
}

@media (min-width:700px) and (max-height:650px) {
  .product-modal-panel { grid-template-columns:1.02fr .98fr; grid-template-rows:minmax(0,1fr); }
}

@media (min-width: 1024px) {
  .store-header-inner { min-height: 82px; grid-template-columns: 1fr auto 1fr; }
  .search-panel { inset-block-start: 115px; }
  .campaign-copy { padding: 66px 60px; }
  .product-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .admin-shell { display: grid; grid-template-columns: 245px minmax(0,1fr); }
  .admin-sidebar { position: sticky; top: 0; height: 100vh; padding: 29px 22px; display: flex; flex-direction: column; }
  .admin-sidebar-top { display: block; }
  .admin-nav { display: grid; gap: 5px; margin-top: 58px; overflow: visible; }
  .admin-nav-button { width: 100%; padding: 13px 15px; text-align: left; }
  .admin-sidebar-footer { display: block; margin-top: auto; }
  .mobile-signout { display: none; }
  .admin-sidebar-footer button { width: 100%; border: 1px solid #4a443d; background: transparent; color: #d9d0c4; }
  .admin-main { padding: 45px 42px 80px; }
  .stat-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .admin-section { padding: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Version 3: localization, scale, galleries, and role dashboards */
.language-switch { display:inline-flex; align-items:center; min-height:36px; padding:7px 10px; border:1px solid var(--line); font-size:.72rem; font-weight:800; text-decoration:none; }
.language-switch-dark { border-color:#4a443d; color:#fff; }
.header-tools { justify-self:end; display:flex; align-items:center; gap:5px; }
.site-logo { width:auto; max-width:160px; height:44px; object-fit:contain; }
.load-more-wrap { display:flex; justify-content:center; margin-top:38px; }
.busy-page { min-height:64vh; display:grid; align-content:center; max-width:780px; padding-block:80px; }
.busy-page h1 { max-width:720px; margin:0; font-family:var(--serif); font-size:clamp(2.6rem,8vw,5.8rem); line-height:.95; }
.busy-page>p:last-child { max-width:600px; color:var(--muted); line-height:1.7; }
.hero-target { outline:4px solid var(--saffron); outline-offset:7px; transition:outline-color .5s ease; }
.modal-gallery { min-width:0; }
.modal-thumbs,.detail-thumbs { display:flex; gap:8px; overflow-x:auto; padding:10px; }
.modal-thumb,.detail-thumb { width:60px; height:72px; flex:0 0 auto; padding:0; border:2px solid transparent; background:#e5ded3; cursor:pointer; }
.modal-thumb.is-active,.detail-thumb.is-active { border-color:var(--ruby); }
.modal-thumb img,.detail-thumb img { width:100%; height:100%; object-fit:cover; }
.product-page-link { display:inline-flex; margin-top:16px; color:var(--muted); font-size:.75rem; font-weight:800; text-transform:uppercase; }
.product-detail { padding-block:34px 80px; display:grid; gap:30px; }
.detail-main { background:#e6ded2; aspect-ratio:.78; overflow:hidden; }
.detail-main img { width:100%; height:100%; object-fit:cover; object-position:center top; }
.detail-copy { align-self:center; }
.detail-copy h1 { margin:0; font-family:var(--serif); font-size:clamp(2.7rem,9vw,5.5rem); font-weight:500; letter-spacing:-.055em; line-height:.95; }
.detail-price { font-size:1.2rem; font-weight:800; }
.detail-description { color:var(--muted); line-height:1.75; }
.capacity-meter { height:9px; overflow:hidden; background:#dfd8cd; }
.capacity-meter span { display:block; height:100%; background:var(--emerald); }
.pagination { display:flex; align-items:center; justify-content:center; gap:18px; margin-top:28px; }
.request-review { display:flex; gap:6px; min-width:360px; }
.request-review input { min-width:120px; padding:8px; border:1px solid var(--line); }
.request-list { display:grid; gap:16px; }
.request-card { overflow:hidden; border:1px solid var(--line); background:#fff; }
.request-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:18px; }
.request-card-head h3 { margin:7px 0 4px; font-family:var(--serif); font-size:1.45rem; font-weight:600; }
.request-card-head p { margin:0; color:var(--muted); font-size:.72rem; }
.request-action { display:inline-flex; padding:5px 8px; background:#efe6da; color:var(--ruby); font-size:.64rem; font-weight:900; letter-spacing:.07em; text-transform:uppercase; }
.request-id { color:var(--muted); font-size:.72rem; font-weight:800; }
.request-disclosure { border-top:1px solid var(--line); }
.request-disclosure>summary { padding:14px 18px; background:#f7f2ea; cursor:pointer; color:var(--ink); font-size:.76rem; font-weight:900; list-style-position:inside; }
.request-disclosure[open]>summary { border-bottom:1px solid var(--line); }
.request-comparison { display:grid; }
.request-version { min-width:0; padding:18px; }
.request-version+.request-version { border-top:1px solid var(--line); }
.request-version h4 { margin:0 0 12px; font-size:.76rem; letter-spacing:.08em; text-transform:uppercase; }
.request-version h4:not(:first-child) { margin-top:20px; }
.request-version-proposed { background:#fbf8f2; }
.request-field-list { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; }
.request-field { min-width:0; padding:10px; border:1px solid #e3dbd0; background:#fff; }
.request-field>span { display:block; margin-bottom:5px; color:var(--muted); font-size:.62rem; font-weight:900; letter-spacing:.06em; text-transform:uppercase; }
.request-field p { margin:0; overflow-wrap:anywhere; white-space:pre-wrap; font-size:.78rem; line-height:1.6; }
.request-field.is-changed { border-color:#d7a04e; background:#fff8e9; box-shadow:inset 3px 0 0 var(--saffron); }
[dir="rtl"] .request-field.is-changed { box-shadow:inset -3px 0 0 var(--saffron); }
.request-gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.request-image { position:relative; min-width:0; overflow:hidden; border:2px solid transparent; background:#e8e0d5; color:var(--ink); text-decoration:none; }
.request-image img { width:100%; aspect-ratio:.78; display:block; object-fit:cover; object-position:center top; }
.request-image span { position:absolute; inset:auto 5px 5px; padding:4px 6px; background:rgba(20,18,15,.82); color:#fff; font-size:.58rem; font-weight:900; text-align:center; }
.request-image.is-new { border-color:#23845c; }
.request-image.is-removed { border-color:var(--ruby); opacity:.62; }
.request-image.is-removed img { filter:grayscale(1); }
.request-empty { margin:0; padding:18px; color:var(--muted); font-size:.78rem; }
.request-operation-note { margin:18px; padding:13px 15px; border-left:4px solid var(--saffron); background:#fff5dc; font-size:.82rem; font-weight:700; }
[dir="rtl"] .request-operation-note { border-left:0; border-right:4px solid var(--saffron); }
.request-operation-note.danger-note { border-color:var(--ruby); background:#fff0ee; color:#7b1725; }
.request-version-existing { padding-top:4px; }
.request-review-card { min-width:0; margin:0 18px 18px; padding-top:16px; border-top:1px solid var(--line); display:grid; gap:10px; }
.request-review-card label { display:grid; gap:6px; }
.request-review-card label span { color:var(--muted); font-size:.68rem; font-weight:800; }
.request-review-card input { width:100%; min-height:44px; }
.request-review-card>div { display:flex; flex-wrap:wrap; gap:8px; }
.analytics-grid { display:grid; gap:18px; }
.analytics-card h2 { margin:0; font-family:var(--serif); font-size:1.8rem; }
.metric-row { margin-top:18px; }
.metric-row div { display:flex; justify-content:space-between; gap:15px; font-size:.8rem; }
.metric-row i { display:block; height:7px; margin-top:7px; background:var(--ruby); }
.admin-create-user { grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); align-items:end; }
.profile-card { max-width:650px; }
.existing-images { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.existing-image { display:grid; gap:5px; color:var(--muted); font-size:.72rem; }
.existing-image img { width:100%; aspect-ratio:.8; object-fit:cover; }
.admin-table pre { max-width:480px; max-height:260px; overflow:auto; white-space:pre-wrap; font-size:.68rem; direction:ltr; text-align:left; }
[dir="rtl"] body,
[dir="rtl"] button,
[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select { font-family:"AnjomanSite",Manrope,Arial,sans-serif; }
[dir="rtl"] .brand-wordmark,
[dir="rtl"] .campaign h1,
[dir="rtl"] .section-heading h2,
[dir="rtl"] .featured-copy h3,
[dir="rtl"] .product-summary h3,
[dir="rtl"] .order-story h2,
[dir="rtl"] .modal-heading h2,
[dir="rtl"] .detail-copy h1,
[dir="rtl"] .admin-topbar h1,
[dir="rtl"] .admin-section-head h2,
[dir="rtl"] .login-card h2 { font-family:"AnjomanSite",Manrope,Arial,sans-serif; font-weight:700; }
[dir="rtl"] .product-trigger,[dir="rtl"] .admin-table th { text-align:right; }
[dir="rtl"] .brand-wordmark::after { margin-left:0; margin-right:7px; }
[dir="rtl"] .admin-drawer { inset:0 auto 0 0; transform:translateX(-103%); }
[dir="rtl"] .admin-drawer.is-open { transform:none; }
[dir="rtl"] .notice { border-left:0; border-right:3px solid var(--emerald); }
[dir="rtl"] .notice-error { border-right-color:var(--ruby); }
[dir="rtl"] body { line-height:1.7; }
[dir="rtl"] p,[dir="rtl"] li,[dir="rtl"] input,[dir="rtl"] textarea,[dir="rtl"] select,[dir="rtl"] button { line-height:1.65; }
[dir="rtl"] .campaign h1,[dir="rtl"] .section-heading h2,[dir="rtl"] .order-story h2,[dir="rtl"] .detail-copy h1,[dir="rtl"] .modal-heading h2,[dir="rtl"] .featured-copy h3,[dir="rtl"] .product-summary h3,[dir="rtl"] .busy-page h1 { line-height:1.28; letter-spacing:0; }
.danger-button { border-color:var(--ruby); color:var(--ruby); }
.announcement-editor { min-height:100vh; padding-block:40px 80px; }
.announcement-editor>.text-link { margin-bottom:24px; }
.announcement-editor .admin-section { max-width:820px; margin-inline:auto; }
.announcement-editor h1 { margin:0; font-family:var(--serif); font-size:clamp(2.2rem,7vw,4.5rem); font-weight:500; }
.admin-size-selector { display:flex; flex-wrap:wrap; gap:9px; padding-top:4px; }
.admin-size-choice { position:relative; cursor:pointer; }
.admin-size-choice input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.admin-size-choice span { min-width:48px; min-height:44px; display:grid; place-items:center; padding:8px 14px; border:1px solid var(--line); background:#fff; font-weight:800; transition:.18s ease; }
.admin-size-choice input:checked + span { border-color:var(--ink); background:var(--ink); color:#fff; box-shadow:inset 0 0 0 1px var(--ink); }
.admin-size-choice input:focus-visible + span { outline:3px solid rgba(213,139,34,.45); outline-offset:2px; }
.size-option-create { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:12px; }
.size-option-create .field { margin:0; }
.size-option-list { display:grid; gap:10px; }
.size-option-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:13px 0; border-bottom:1px solid var(--line); }
.size-option-row>div { display:grid; gap:3px; }
.size-option-row small { color:var(--muted); }
.typography-form { gap:0; }
.typography-grid { display:grid; grid-template-columns:minmax(150px,1fr) minmax(92px,130px) minmax(92px,130px); align-items:center; gap:12px; padding:11px 0; border-bottom:1px solid var(--line); }
.typography-grid-head { color:var(--muted); font-size:.72rem; letter-spacing:.06em; text-transform:uppercase; }
.typography-grid input { width:100%; min-height:44px; padding:8px 10px; border:1px solid var(--line); background:#fff; }
.typography-form .notice { margin-top:20px; }

@media (min-width:700px) {
  .product-detail { grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr); padding-block:62px 100px; }
  .detail-copy { padding:30px; }
  .analytics-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .category-form-row { grid-template-columns:1fr 1fr 110px auto; }
  .modal-gallery .modal-image { height:610px; }
  .request-field-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .request-gallery { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (max-width:640px) { .size-option-create { grid-template-columns:1fr; } .size-option-create .button { width:100%; } .typography-grid { grid-template-columns:minmax(110px,1fr) 82px 82px; gap:7px; } }
@media (min-width:1024px) {
  .campaign { display:grid !important; grid-template-columns:minmax(0,1.08fr) minmax(390px,.92fr); grid-template-rows:660px; align-items:center; }
  .campaign-image { order:initial !important; grid-column:1; grid-row:1; width:100%; min-height:660px; margin:0; align-self:stretch; }
  .campaign-copy { order:initial !important; grid-column:2; grid-row:1; align-self:center; width:calc(100% + 80px); margin:0 0 0 -80px; }
  [dir="rtl"] .campaign-copy { margin:0 -80px 0 0; }
  .analytics-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .request-comparison:not(.request-comparison-single) { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .request-comparison:not(.request-comparison-single) .request-version+.request-version { border-top:0; border-left:1px solid var(--line); }
  [dir="rtl"] .request-comparison:not(.request-comparison-single) .request-version+.request-version { border-left:0; border-right:1px solid var(--line); }
}

[dir="rtl"] .store-drawer { inset:0 0 0 auto; transform:translateX(103%); box-shadow:-20px 0 60px rgba(0,0,0,.2); }
[dir="rtl"] .store-drawer.is-open { transform:none; }
@media (max-height:650px) { .product-modal .modal-thumbs { display:none; } }
