@font-face {
  font-family: Noto;
  src: url(/fonts/NotoSansArabic-Regular.woff) format("woff");
  font-display: swap;
}
@font-face {
  font-family: Noto;
  src: url(/fonts/NotoSansArabic-Bold.woff) format("woff");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Kufi;
  src: url(/fonts/NotoKufiArabic-Bold.woff) format("woff");
  font-weight: 700;
  font-display: swap;
}
:root {
  --dark: #101e32;
  --mid: #254567;
  --accent: #e3edf9;
  --ink: #172335;
  --muted: #516177;
  --line: #e1e5ea;
  --bg: #f7f7f5;
  --white: #fff;
  --radius: 16px;
  --lift: 0 12px 32px #1922320d;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.65 Noto,Tahoma,sans-serif; background: var(--bg); color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
input, button, select, textarea { font: inherit; }
button { cursor: pointer; }
button[disabled] { cursor: default; opacity: .72; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: Kufi,Noto,Tahoma,sans-serif; line-height: 1.45; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #3477a9; outline-offset: 4px; }
::selection { background: var(--accent); color: var(--dark); }
.wrap { width: min(1272px, calc(100% - 72px)); margin-inline: auto; }
.muted, .meta { color: var(--muted); font-size: .86rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; inset: 12px 12px auto auto; transform: translateY(-180%); background: #fff; color: var(--dark); border-radius: 8px; padding: 9px 14px; z-index: 20; }
.skip-link:focus { transform: none; }

.top { background: white; border-block-end: 1px solid var(--line); }
.utility { background: var(--dark); color: #f2f5f8; font-size: .76rem; }
.utility-content, .nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.utility-content { min-height: 32px; }
.utility a:hover, .footer-grid a:hover, .sources a:hover { text-decoration: underline; }
.nav { min-height: 77px; }
.logo { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; flex: none; }
.logo img { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; background: var(--dark); }
.logo strong, .logo small { display: block; }
.logo strong { font-family: Kufi,Noto,Tahoma,sans-serif; font-size: 1rem; line-height: 1.45; }
.logo small { font: 700 .61rem/1.45 Arial,sans-serif; color: var(--muted); letter-spacing: .15em; }
.nav-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 8px 15px; min-height: 43px; border: 1px solid transparent; border-radius: 9px; font-weight: 700; line-height: 1.45; white-space: nowrap; }
.button:hover { filter: brightness(.95); }
.primary { background: var(--dark); color: white; }
.secondary { background: white; color: var(--dark); border-color: #cbd4df; }
.accent { background: var(--accent); color: var(--dark); }
.basket-button #count { display: grid; place-items: center; min-width: 20px; min-height: 20px; padding-inline: 3px; border-radius: 999px; background: var(--accent); color: var(--dark); font-size: .72rem; }
.bag-icon { width: 12px; height: 13px; border: 1px solid currentColor; border-radius: 2px; position: relative; margin-block-start: 3px; }
.bag-icon::before { content: ""; position: absolute; width: 6px; height: 5px; border: 1px solid currentColor; border-block-end: 0; border-radius: 6px 6px 0 0; inset: -5px 2px auto auto; }
.search { display: flex; align-items: center; width: min(100%, 530px); min-width: 160px; margin-inline: auto; background: #f3f5f7; border: 1px solid #dce1e8; border-radius: 10px; padding-inline-start: 13px; }
.search-icon { width: 13px; height: 13px; border: 1.5px solid var(--muted); border-radius: 50%; position: relative; margin-inline-end: 7px; flex: none; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 1.5px; border-radius: 2px; background: var(--muted); transform: rotate(45deg); inset: auto auto -2px -3px; }
.search input { width: 100%; min-width: 0; border: 0; background: transparent; padding: 8px 7px; color: var(--ink); }
.search button { padding: 8px 15px; border: 0; border-inline-start: 1px solid #dce1e8; border-radius: 9px 0 0 9px; background: #eef1f5; color: var(--dark); font-weight: 700; }
.search button:hover { background: var(--accent); }
.menu-bar { border-block-start: 1px solid #eef0f3; }
.menu { display: flex; align-items: center; gap: 29px; min-height: 42px; overflow: auto; scrollbar-width: thin; white-space: nowrap; }
.menu a { font-weight: 700; font-size: .86rem; flex: none; padding-block: 7px; }
.menu a:hover, .menu [aria-current="page"] { color: var(--mid); text-decoration: underline; text-underline-offset: 5px; }

.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(410px, 39vw, 505px); overflow: hidden; margin-block: 20px 35px; border-radius: 20px; background: var(--dark); color: #fff; }
.hero-photo, .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { z-index: -2; }
.hero-photo img { object-fit: cover; object-position: center 59%; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(270deg, color-mix(in srgb, var(--dark) 92%, transparent) 0%, color-mix(in srgb, var(--dark) 81%, transparent) 21%, color-mix(in srgb, var(--dark) 37%, transparent) 44%, transparent 67%); }
.hero-copy { width: min(50%, 530px); padding: 36px 0 36px 0; margin-inline-start: clamp(28px, 5.2vw, 70px); }
.hero h1 { font-size: clamp(2.05rem, 4.45vw, 3.75rem); max-width: 15ch; line-height: 1.29; text-wrap: balance; }
.hero-copy p { margin-block: 14px 21px; max-width: 40ch; color: #f2f4f7; font-size: clamp(.95rem, 1.4vw, 1.06rem); }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-actions .accent { min-height: 48px; padding-inline: 17px; }
.hero-link { font-weight: 700; color: white; text-decoration: underline; text-underline-offset: 6px; }

.category-section { margin-block-end: 36px; scroll-margin-block-start: 20px; }
.section { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-block-end: 14px; }
.section h2 { font-size: clamp(1.35rem, 2.4vw, 2rem); }
.inline-link { flex: none; display: inline-flex; align-items: center; gap: 7px; color: var(--mid); font-size: .86rem; font-weight: 700; }
.inline-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.category-cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; }
.category-card { position: relative; isolation: isolate; min-height: 127px; display: grid; align-content: center; overflow: hidden; background: var(--tone, #e9eff5); border-radius: 14px; padding: 13px; transition: box-shadow .18s, translate .18s; }
.category-card:hover { box-shadow: var(--lift); translate: 0 -3px; }
.category-card:nth-child(2) { --tone: #e4eaf2; }
.category-card:nth-child(3) { --tone: #f2e9de; }
.category-card:nth-child(4) { --tone: #e6ebeb; }
.category-card h3 { max-width: 54%; font-family: Kufi,Noto,Tahoma,sans-serif; font-size: .96rem; line-height: 1.5; }
.category-card p { color: #3f5165; font-size: .74rem; margin-block-start: 5px; }
.category-card img { position: absolute; z-index: -1; inset: 12px auto 12px 7px; width: 45%; height: calc(100% - 24px); object-fit: contain; mix-blend-mode: multiply; }
.category-card .photo-empty { display: none; }

.listings { padding-block: 3px 54px; scroll-margin-block-start: 20px; }
.catalogue-page .listings { padding-block-start: 27px; }
.listings .section-heading { margin-block-end: 10px; }
.listings h2 { margin-block-end: 3px; }
.sort { display: flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--muted); white-space: nowrap; }
select { padding: 5px 8px; border: 1px solid #cbd6e1; border-radius: 8px; background: white; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-block: 9px; }
.chips button, .qty button, .category-line button, td button { border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); padding: 5px 10px; font-size: .86rem; white-space: nowrap; }
.chips [aria-pressed="true"] { background: var(--dark); color: white; border-color: var(--dark); font-weight: 700; }
.chips button:hover:not([aria-pressed="true"]) { background: #edf1f6; }
.storefront-chips { margin-block: 13px 15px; }
.grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.product { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .16s, box-shadow .16s; }
.product:hover, .product:focus-within { border-color: #ccd4dd; box-shadow: var(--lift); }
.card-photo, .detail-photo { display: grid; place-items: center; background: #fbfbfa; padding: 14px; height: clamp(160px, 17vw, 234px); }
.card-photo img, .detail-photo img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; mix-blend-mode: multiply; transition: scale .18s; }
.card-photo:hover img { scale: 1.035; }
.photo-empty { display: grid; place-items: center; width: 100%; height: 100%; padding: 5px 8px; border-radius: 9px; color: var(--muted); background: #eef1f4; font-size: .8rem; text-align: center; }
.card-copy { display: flex; flex: 1; flex-direction: column; padding: 11px 13px 10px; border-block-start: 1px solid #f0f0ee; }
.card-copy .meta { font-size: .73rem; color: #4e6680; }
.product h3 { margin-block: 4px 6px; min-height: 2.9em; overflow-wrap: anywhere; font-size: .94rem; line-height: 1.45; }
.product h3 a:hover { text-decoration: underline; }
.product-model { margin-block: 0 9px; font-size: .74rem; color: var(--muted); overflow-wrap: anywhere; }
.price { margin-block-start: auto; font-size: .98rem; }
.add { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 37px; margin: 0 10px 10px; padding: 5px 8px; border: 1px solid #dde5ec; border-radius: 8px; background: color-mix(in srgb, var(--accent) 44%, #fff); color: var(--dark); font-weight: 700; font-size: .84rem; }
.add:hover { background: var(--accent); }
.add-mark { font-size: 1.05rem; line-height: 1; }
.more { display: flex; margin: 23px auto 0; }
.empty { grid-column: 1/-1; padding: 28px 12px; border: 1px dashed #cbd4df; border-radius: var(--radius); background: #fff; text-align: center; color: var(--muted); }

footer { background: var(--dark); color: #e8eff5; font-size: .88rem; padding-block: 27px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
.footer-grid nav, .footer-grid #social { display: flex; flex-direction: column; align-items: start; gap: 6px; }
.footer-grid strong { display: block; color: white; }
.footer-grid p { margin-block: 3px; color: #d4deea; }
.detail { padding-block: 25px 48px; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-block-end: 15px; color: var(--muted); font-size: .82rem; }
.breadcrumb a { color: var(--mid); font-weight: 700; }
.breadcrumb a:hover { text-decoration: underline; }
.detail-grid { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 380px; gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: #fff; }
.detail-photo { height: auto; min-height: 400px; padding: 26px; }
.detail-photo img { max-height: 535px; }
.detail-copy { padding: clamp(17px, 3.6vw, 43px); }
.detail-copy h1 { margin-block: 6px 8px; font-size: clamp(1.48rem, 3vw, 2.25rem); }
.detail-copy h2 { font-size: 1rem; margin-block-start: 16px; }
.detail-price { margin-block: 13px 5px; font-size: 1.4rem; font-weight: 700; }
.detail-copy ul { padding-inline-start: 18px; margin: 5px 0; font-size: .92rem; }
.detail-code { display: inline-block; padding: 2px 8px; border-radius: 5px; background: #edf1f5; color: #3b4f68; font-size: .8rem; overflow-wrap: anywhere; max-width: 100%; }
.sources, .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 14px; }
.sources { font-size: .8rem; color: #3d5c79; }
.related { margin-block-start: 30px; }
.related h2 { font-size: 1.22rem; margin-block-end: 12px; }

dialog { width: min(660px, calc(100% - 24px)); max-height: 90dvh; padding: 0; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: #fff; box-shadow: 0 20px 60px #18273555; }
dialog::backdrop { background: #121b2b9c; }
.dialog-content { padding: 17px; }
.dialog-content header, .order-item { display: flex; justify-content: space-between; align-items: center; gap: 11px; margin-block-end: 12px; }
.dialog-content h2 { font-size: 1.21rem; }
#cart { position: fixed; inset: 0 0 0 auto; width: min(445px, 100%); height: 100dvh; max-height: none; margin: 0; border-radius: 14px 0 0 14px; }
.cart-panel { display: flex; flex-direction: column; min-height: 100%; padding: 19px; }
.cart-panel header { padding-block-end: 12px; border-block-end: 1px solid var(--line); }
.cart-panel .empty { margin-block-start: 15px; }
.cart-summary { margin-block-start: auto; padding-block-start: 15px; }
.cart-summary #order, .cart-summary #wa { width: 100%; margin-block-start: 9px; }
#totals { font-weight: 700; }
#cart-msg { font-size: .85rem; color: var(--muted); }
.cart-line { display: grid; grid-template-columns: 62px minmax(0,1fr); align-items: start; gap: 10px; padding-block: 13px; border-block-end: 1px solid var(--line); }
.cart-line .cart-thumb { display: grid; place-items: center; height: 66px; padding: 4px; border: 1px solid #edefed; border-radius: 8px; background: #fafafa; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cart-thumb .photo-empty { font-size: .62rem; padding: 1px; }
.cart-line strong { display: block; font-size: .89rem; }
.cart-line .qty { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-block-start: 5px; }
.qty button { min-width: 29px; padding: 2px 5px; font-size: .77rem; }
.toast { position: fixed; z-index: 5; inset: auto auto 16px 16px; padding: 7px 11px; border-radius: 9px; background: var(--dark); color: #fff; }

.admin { padding-block: 27px 45px; }
.admin h1 { font-size: clamp(1.35rem, 3vw, 1.85rem); }
.panel { margin-block-start: 13px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.panel h2 { margin-block-end: 10px; font-size: 1.22rem; }
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; }
.stats div { display: grid; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); }
.stats strong { color: var(--dark); font-size: 1.65rem; }
.stats span { color: var(--muted); font-size: .84rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.fields label, .admin-filter label { display: grid; gap: 4px; font-weight: 700; font-size: .86rem; }
.fields .wide { grid-column: 1/-1; }
.fields input:not([type="checkbox"]), .fields textarea, .admin-filter input { width: 100%; min-width: 0; padding: 6px 8px; border: 1px solid #cbd6e1; border-radius: 7px; color: var(--ink); background: white; }
.fields label.check { display: flex; align-items: center; gap: 7px; }
.fields small { color: var(--muted); font-weight: 400; }
.hero-image-form { margin-block-end: 18px; padding-block-end: 16px; border-block-end: 1px solid var(--line); }
.hero-image-preview { display: block; width: 100%; max-width: 640px; aspect-ratio: 16 / 7; object-fit: cover; object-position: center 59%; border-radius: 9px; background: var(--bg); }
.hero-image-form .actions, .hero-image-form .notice { margin-block: 0; }
.favicon-previews { display: flex; align-items: center; gap: 24px; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); }
.favicon-previews img { object-fit: contain; }
.display-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.previous-price { color: var(--muted); font-size: .78rem; }
.offer-label { display: inline-block; margin-block: 3px; padding: 2px 8px; border-radius: 6px; background: var(--accent); color: var(--dark); font-weight: 700; font-size: .76rem; overflow-wrap: anywhere; }
.offer-table { margin-block-start: 16px; }
.feature-product[aria-pressed="true"] { color: var(--dark); background: var(--accent); }
.delivery-strip { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 9px 15px; margin: 0; background: var(--accent); color: var(--dark); font-weight: 700; font-size: .88rem; }
.delivery-strip a { font-size: .78rem; text-decoration: underline; text-underline-offset: 3px; }
.offer-ribbon { margin-block: 16px 28px; border-radius: 16px; overflow: hidden; color: white; background: var(--dark); }
.offer-ribbon>a { display: flex; align-items: center; gap: 24px; }
.offer-ribbon img { width: 52%; max-height: 290px; object-fit: cover; }
.offer-ribbon>a>div { padding: 24px; }
.offer-ribbon h2 { color: inherit; font-size: 1.65rem; margin: 0; }
.offer-ribbon p { margin-block: 8px 15px; font-size: 1.1rem; }
.offer-ribbon span { display: inline-block; padding: 8px 14px; border-radius: 7px; background: var(--accent); color: var(--dark); font-weight: 700; }
.product-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 9px; margin-block: 10px 18px; }
.product-filters label { display: grid; gap: 4px; font-size: .8rem; }
.product-filters input[type=number] { width: 145px; padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.check { display: flex !important; align-items: center; gap: 7px; }
.availability { font-size: .75rem; color: var(--muted); margin-block: 4px 0; }
.compare-control { margin: 0 8px 9px; padding: 5px; color: var(--mid); background: transparent; border: 1px solid var(--line); border-radius: 7px; font-size: .76rem; }
.compare-control[aria-pressed=true] { background: var(--accent); color: var(--dark); }
.compare-bar { position: fixed; z-index: 8; bottom: 14px; inset-inline: 12px; display: flex; justify-content: center; align-items: center; gap: 10px; width: fit-content; max-width: calc(100% - 24px); margin-inline: auto; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 5px 25px #15223822; }
#comparison-dialog { width: min(960px,calc(100% - 20px)); }
.comparison-table { table-layout: fixed; white-space: pre-line; }
.comparison-table th:first-child { width: 24%; }
.comparison-table thead img { display: block; width: 100%; height: 145px; object-fit: contain; margin-block-end: 12px; }
.comparison-table th, .comparison-table td { vertical-align: top; white-space: pre-line; }
.scroll .comparison-table th, .scroll .comparison-table td { white-space: pre-line; overflow-wrap: anywhere; }
.comparison-different { background: color-mix(in srgb,var(--accent) 40%,white); }
.product-facts, #checkout-totals { display: grid; grid-template-columns: minmax(130px,.7fr) minmax(0,1fr); gap: 8px 15px; margin-block: 18px; }
.product-facts dt, #checkout-totals dt { color: var(--muted); }
.product-facts dd, #checkout-totals dd { margin: 0; font-weight: 700; }
.product-policies { margin-block: 20px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.product-policies summary { cursor: pointer; font-weight: 700; }
.policy-copy { white-space: pre-line; line-height: 1.9; }
.checkout { padding-block: 26px 48px; max-width: 1120px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.checkout-summary { min-width: 0; }
.checkout-summary .button, .checkout-summary .check { margin-block-start: 14px; }
.field { display: grid; gap: 5px; }
.payment-section { max-width: 760px; margin-inline: auto; margin-block-start: 25px; }
.payment-qr { display: block; width: min(100%,300px); max-height: 420px; object-fit: contain; background: white; padding: 8px; margin-block: 10px; border: 1px solid var(--line); border-radius: 10px; }
.payment-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-block: 15px; }
.qr-slot { border: 1px solid var(--line); padding: 14px; border-radius: 12px; align-content: start; }
.qr-slot>label { grid-column: 1/-1; }
.payment-codes-heading { margin-block-start: 28px; }
.order-payment { background: var(--bg); padding: 12px; border-radius: 9px; margin-block-start: 10px; }
.order-payment .fields { margin-block-start: 12px; }
.order-payment label { grid-column: 1/-1; }
.order-payment details { margin-block-start: 14px; }
@media(max-width:650px) {
 .offer-ribbon>a { display: block; }
 .offer-ribbon img { width: 100%; max-height: 230px; }
 .offer-ribbon>a>div { padding: 18px; }
 .offer-ribbon h2 { font-size: 1.35rem; }
 .offer-ribbon p { font-size: .95rem; }
 .checkout-layout, .payment-codes { grid-template-columns: 1fr; }
 .product-filters { gap: 8px; }
 .product-filters label { flex: 1 1 44%; }
 .product-filters input[type=number] { width: 100%; }
 .compare-bar { font-size: .76rem; padding: 8px; gap: 6px; }
 .compare-bar .button { font-size: .72rem; padding: 5px 8px; }
 .order-item { flex-direction: column; align-items: stretch; }
}
.category-editor { display: grid; gap: 5px; margin-block: 7px; }
.category-line { display: flex; gap: 7px; }
.admin-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 9px; margin-block-end: 10px; }
.product-exports { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 14px; }
.product-workbook { margin-block-end: 17px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.product-workbook summary { color: var(--ink); font-weight: 700; cursor: pointer; }
.product-workbook form { margin-top: 11px; }
.product-workbook small { color: var(--muted); }
.scroll { overflow: auto; }
.scroll table { width: 100%; min-width: 610px; border-collapse: collapse; }
.scroll th, .scroll td { padding: 8px; text-align: start; border-block-end: 1px solid var(--line); font-size: .86rem; }
.scroll th { background: #ecf1f7; }
.scroll td:last-child { white-space: nowrap; }
.scroll td button { margin-inline-end: 4px; }
.table-item { display: flex; align-items: center; gap: 8px; }
.table-item img, .current-image img { width: 43px; height: 43px; object-fit: contain; border: 1px solid #eaf0f7; border-radius: 5px; }
.current-image img { width: 69px; height: 69px; }
.order-item { border-block-start: 1px solid var(--line); margin-block-start: 11px; padding-block-start: 8px; align-items: start; }
.order-item ul { font-size: .85rem; padding-inline-start: 14px; }
.notice, #edit-error { margin-block: 9px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.notice.error, #edit-error { color: #922827; background: #fff3f1; }

@media (max-width: 950px) {
  .wrap { width: calc(100% - 40px); }
  .grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .hero-copy { width: 57%; }
  .hero::after { background: linear-gradient(270deg,color-mix(in srgb,var(--dark) 94%,transparent),color-mix(in srgb,var(--dark) 72%,transparent) 28%,color-mix(in srgb,var(--dark) 20%,transparent) 54%,transparent 75%); }
  .category-card h3 { font-size: .84rem; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 24px); }
  .nav { min-height: 60px; flex-wrap: wrap; gap: 7px; padding-block: 7px; }
  .logo img { width: 38px; height: 38px; }
  .logo strong { font-size: .89rem; }
  .logo { gap: 6px; }
  .logo small { font-size: .53rem; }
  .nav-actions { gap: 4px; }
  .nav-actions .button { min-height: 34px; padding: 4px 6px; font-size: .76rem; gap: 4px; }
  .search { order: 3; width: 100%; min-width: 0; }
  .menu { min-height: 38px; gap: 14px; }
  .menu a { font-size: .77rem; }
  .hero { display: block; min-height: 0; margin-block: 11px 24px; border-radius: 14px; }
  .hero-photo { height: clamp(208px, 53vw, 310px); }
  .hero-photo img { object-position: center 60%; }
  .hero::after { height: clamp(219px, 54vw, 315px); background: linear-gradient(0deg,var(--dark) 0%,color-mix(in srgb,var(--dark) 64%,transparent) 17%,transparent 46%); }
  .hero-copy { width: auto; margin: 0; padding: clamp(184px,48vw,284px) 16px 17px; }
  .hero h1 { max-width: 19ch; font-size: clamp(1.52rem, 5.9vw, 2.15rem); text-wrap: initial; }
  .hero-copy p { margin-block: 8px 11px; font-size: .88rem; }
  .hero-actions { gap: 11px; font-size: .84rem; }
  .hero-actions .accent { min-height: 37px; padding-inline: 9px; }
  .category-section { margin-block-end: 23px; }
  .category-cards, .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .category-card { min-height: 100px; padding: 7px; border-radius: 9px; }
  .category-card h3 { max-width: 60%; font-size: .73rem; }
  .category-card p { font-size: .67rem; }
  .category-card img { inset: 9px auto 9px 4px; height: calc(100% - 18px); width: 41%; }
  .section { gap: 7px; }
  .inline-link { font-size: .72rem; }
  .sort, .sort select, .muted { font-size: .77rem; }
  .sort { gap: 3px; }
  .chips { flex-wrap: nowrap; overflow: auto; padding-block: 4px; scrollbar-width: thin; }
  .chips button { padding-inline: 7px; font-size: .78rem; }
  .card-photo { height: 138px; padding: 6px; }
  .card-copy { padding: 6px 8px; }
  .product h3 { font-size: .81rem; }
  .product-model { margin-block-end: 6px; font-size: .67rem; }
  .price { font-size: .81rem; }
  .add { min-height: 33px; margin: 0 7px 7px; padding: 3px 5px; font-size: .76rem; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-photo { min-height: 240px; max-height: 310px; padding: 12px; }
  .detail-photo img { max-height: 275px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .footer-grid > div:first-child { grid-column: 1/-1; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.access-page { padding-block: clamp(23px, 6vw, 65px); }
.access-panel { width: min(480px, 100%); margin-inline: auto; padding: clamp(16px, 5vw, 29px); }
.access-panel .fields { margin-block-start: 18px; }
.access-panel .muted { margin-block-start: 6px; }
.admin-nav-actions { display: flex; gap: 7px; flex-wrap: wrap; }

/* AJAM red accent — exact brand red with darker action/text tones for readability. */
html[data-ajam-accent="red"] {
  --brand-red: #F01C24;
  --brand-red-action: #D71922;
  --brand-red-text: #B5131C;
  --brand-red-soft: #FFF1F2;
}
html[data-ajam-accent="red"] :focus-visible { outline-color: var(--brand-red); }
html[data-ajam-accent="red"] ::selection { background: #FFDDE0; color: var(--dark); }
html[data-ajam-accent="red"] .utility { box-shadow: inset 0 -2px var(--brand-red); }
html[data-ajam-accent="red"] .primary,
html[data-ajam-accent="red"] .hero-actions .accent { background: var(--brand-red-action); color: #FFF; border-color: var(--brand-red); }
html[data-ajam-accent="red"] .basket-button #count { background: #FFF; color: var(--brand-red-text); }
html[data-ajam-accent="red"] .search button { background: var(--brand-red-soft); color: var(--brand-red-text); border-inline-start-color: #F4C7CB; }
html[data-ajam-accent="red"] .search button:hover { background: #FFE0E3; }
html[data-ajam-accent="red"] .menu a:hover,
html[data-ajam-accent="red"] .menu [aria-current="page"],
html[data-ajam-accent="red"] .inline-link:hover { color: var(--brand-red-text); text-decoration-color: var(--brand-red); }
html[data-ajam-accent="red"] .chips [aria-pressed="true"] { background: var(--brand-red-action); border-color: var(--brand-red-action); color: #FFF; }
html[data-ajam-accent="red"] .chips button:hover:not([aria-pressed="true"]) { background: var(--brand-red-soft); border-color: #EEA8AE; }
html[data-ajam-accent="red"] .add { background: var(--brand-red-soft); color: var(--brand-red-text); border-color: #F4B7BD; }
html[data-ajam-accent="red"] .add:hover:not([disabled]) { background: var(--brand-red-action); color: #FFF; border-color: var(--brand-red-action); }
html[data-ajam-accent="red"] .product:hover,
html[data-ajam-accent="red"] .product:focus-within { border-color: #E98891; }
html[data-ajam-accent="red"] .price,
html[data-ajam-accent="red"] .detail-price { color: var(--brand-red-text); }
html[data-ajam-accent="red"] .offer-label { background: #FFE3E6; color: var(--brand-red-text); }
html[data-ajam-accent="red"] .delivery-strip { background: var(--brand-red-soft); color: var(--dark); }
html[data-ajam-accent="red"] .offer-ribbon span { background: var(--brand-red-action); color: #FFF; }
html[data-ajam-accent="red"] .compare-control[aria-pressed="true"] { background: var(--brand-red-soft); border-color: var(--brand-red); color: var(--brand-red-text); }
html[data-ajam-accent="red"] footer { box-shadow: inset 0 3px var(--brand-red); }
html[data-ajam-accent="red"] input[type="checkbox"],
html[data-ajam-accent="red"] input[type="radio"] { accent-color: var(--brand-red-action); }

.customer-account { max-width: 560px; margin: 32px auto; }
.customer-form { display: grid; gap: 12px; max-width: 420px; }
.customer-form[hidden] { display: none; }
.customer-form label { display: grid; gap: 5px; }
.customer-form .actions { display: flex; gap: 8px; flex-wrap: wrap; }
#account-phone { text-align: start; unicode-bidi: isolate; width: fit-content; }
.store-visits { margin-top: 22px; max-width: 960px; }
.visit-chart { display: grid; grid-template-columns: repeat(30, minmax(4px, 1fr)); gap: clamp(2px, .55vw, 8px); border-bottom: 1px solid var(--line); padding: 0 4px; }
.visit-chart-bar { align-self: end; width: 100%; height: 122px; background: var(--dark); transform: scaleY(var(--visit-ratio)); transform-origin: bottom; border-radius: 4px 4px 0 0; }
.visit-chart-dates { display: flex; justify-content: space-between; margin: 4px 0 12px; font-size: .85rem; color: var(--muted); }
.store-visits details { margin-top: 8px; }
.store-visits details[open] { max-height: 400px; overflow: auto; }
.store-visits .stats { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); margin-bottom: 12px; }

.shop-category-menu { position: relative; align-self: center; }
.shop-category-menu summary { cursor: pointer; padding: .5rem; white-space: nowrap; }
.shop-category-links { position: fixed; z-index: 20; display: grid; background: #fff; color: #15283c; border: 1px solid #ccd6df; border-radius: .65rem; padding: .45rem; box-shadow: 0 10px 32px #15283c26; max-height: 65vh; overflow: auto; }
.shop-category-links a { padding: .45rem .7rem; }
#marketing-editor { width: min(650px, calc(100% - 2rem)); max-height: 92vh; overflow: auto; }
.marketing-content { display: grid; gap: .65rem; }
.marketing-content .actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.marketing-content textarea { width: 100%; }
.marketing-preview { max-width: 100%; max-height: 210px; object-fit: contain; margin-inline: auto; }
