@font-face {
  font-family: Mena;
  src: url("/assets/thmanyah-6.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}
@font-face {
  font-family: Mena;
  src: url("/assets/thmanyah-7.woff2") format("woff2");
  font-display: swap;
  font-weight: 700;
}
@font-face {
  font-family: MenaDisplay;
  src: url("/assets/thmanyah-2.woff2") format("woff2");
  font-display: swap;
  font-weight: 700;
}
:root {
  --blue: #146bd1;
  --ink: #153e67;
  --muted: #647a91;
  --line: #dce6f0;
  --bg: #f7faff;
  --white: #fff;
  --soft: #e9f3ff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.7 Mena,
    Tahoma,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #7caff0;
  outline-offset: 3px;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
p {
  margin: 0 0 16px;
}
h1,
h2 {
  line-height: 1.35;
}
h1 {
  font-size: 34px;
}
h2 {
  font-size: 26px;
}
h3 {
  font-size: 18px;
}
small {
  font-size: 13px;
  color: var(--muted);
}
.topline {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 7px;
  font-size: 13px;
}
.store-header {
  max-width: 1380px;
  margin: auto;
  padding: 24px 40px;
  display: flex;
  gap: 40px;
  align-items: center;
}
.brand {
  font-family: MenaDisplay, Mena, sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
  min-width: 95px;
}
.brand span {
  color: var(--blue);
}
.brand small {
  display: block;
  font:
    10px/2 Mena,
    sans-serif;
  letter-spacing: 2px;
}
.search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 16px;
  flex: 1;
}
.search span {
  font-size: 28px;
}
.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  padding: 12px 0;
  color: var(--ink);
  outline-offset: 0;
}
.store-header nav {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 14px;
  white-space: nowrap;
}
.cart-link span {
  border-radius: 50%;
  background: var(--soft);
  padding: 2px 8px;
  color: var(--blue);
}
main {
  max-width: 1380px;
  margin: auto;
  padding: 0 40px 64px;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 30px;
  background: linear-gradient(125deg, #eaf7ff, #cfe3ff);
  border: 1px solid #c5dfff;
  border-radius: 28px;
  min-height: 470px;
  padding: 60px;
  overflow: hidden;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.6px;
  color: #53779b;
}
.hero h1 {
  font:
    700 clamp(40px, 4.5vw, 66px) / 1.3 MenaDisplay,
    Mena,
    sans-serif;
  margin: 22px 0;
}
.hero h1 em {
  color: var(--blue);
  font-style: normal;
}
.hero p {
  max-width: 460px;
  line-height: 1.9;
}
.primary,
.secondary,
.add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 11px 20px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
}
.primary {
  color: #fff;
  background: var(--blue);
}
.secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}
.primary:hover {
  background: #0e59b4;
}
.secondary:hover {
  background: var(--soft);
}
.hero-art {
  height: 340px;
  position: relative;
  direction: ltr;
}
.tile {
  position: absolute;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 30px 50px #184c7d13;
}
.tile strong {
  font:
    700 36px/1.4 MenaDisplay,
    Mena;
  display: block;
  margin: 16px 0;
}
.tile.rear {
  background: #a8cff4;
  color: #216cad;
  width: 65%;
  height: 260px;
  left: 4%;
  top: 0;
  transform: rotate(-12deg);
}
.tile.front {
  background: #ffffffed;
  width: 70%;
  height: 270px;
  right: 0;
  top: 70px;
  transform: rotate(8deg);
  text-align: right;
}
.tile.front strong {
  color: var(--blue);
}
.tile.front span {
  font-size: 13px;
}
.spark {
  position: absolute;
  left: 0;
  bottom: 15px;
  font-size: 70px;
  color: var(--blue);
}
.notice {
  padding: 14px 20px;
  border: 1px solid #cfdfef;
  background: #edf5ff;
  border-radius: 12px;
  font-size: 14px;
  margin: 20px 0;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0 22px;
  gap: 20px;
}
.section-title h1,
.section-title h2 {
  margin: 5px 0;
}
.categories {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 0 20px;
  scrollbar-width: thin;
}
.categories button {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 9px 18px;
  white-space: nowrap;
  font-size: 14px;
}
.categories .selected {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.product {
  border: 1px solid var(--line);
  background: white;
  border-radius: 16px;
  overflow: hidden;
}
.product-picture {
  padding: 0;
  border: 0;
  background: #f0f5fc;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}
.product-picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.placeholder-logo {
  font: 700 45px MenaDisplay;
  color: #9fbcd6;
}
.product-body {
  padding: 18px;
}
.product-body small {
  font-size: 11px;
}
.product-title {
  border: 0;
  background: none;
  text-align: right;
  padding: 0;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 52px;
  font-weight: 700;
  font-size: 15px;
  margin: 7px 0 12px;
  width: 100%;
  line-height: 1.7;
}
.prices {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0 18px;
}
.prices strong {
  color: var(--blue);
  font-size: 18px;
}
.prices del {
  font-size: 12px;
  color: var(--muted);
}
.add {
  width: 100%;
  background: var(--soft);
  border-color: #d4e5f9;
  color: var(--blue);
}
.add:not(:disabled):hover {
  background: var(--blue);
  color: white;
}
.world {
  margin-top: 65px;
  background: #e0efff;
  border: 1px solid #c8dff8;
  padding: 36px;
  border-radius: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.world h2 {
  font-family: MenaDisplay;
  font-size: 38px;
  margin-top: 12px;
}
.world p {
  margin: 0;
}
footer {
  border-top: 1px solid var(--line);
  padding: 40px;
  text-align: center;
  background: white;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  margin: 24px 0;
}
footer .brand {
  font-size: 36px;
}
.empty {
  text-align: center;
  padding: 60px 20px;
  grid-column: 1/-1;
}
.page {
  padding-top: 35px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  margin-bottom: 22px;
}
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}
.cart-row {
  display: flex;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.cart-row img {
  width: 75px;
  height: 75px;
  border-radius: 12px;
  object-fit: contain;
}
.cart-row > div {
  flex: 1;
}
.cart-row h3 {
  margin-bottom: 5px;
}
.cart-row p {
  margin: 0;
}
.summary-total {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.auth {
  max-width: 470px;
  margin: 55px auto;
}
label {
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
}
label input:not([type="checkbox"]),
label textarea,
label select,
form > textarea {
  display: block;
  width: 100%;
  border: 1px solid #cbd9e7;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 11px 12px;
  margin-top: 7px;
}
form button {
  margin-top: 6px;
}
form .secondary {
  margin-right: 8px;
}
.check {
  display: flex;
  gap: 8px;
  align-items: center;
}
.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  width: 100%;
  text-align: right;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  color: var(--ink);
  margin: 12px 0;
}
.order-row small,
td small {
  display: block;
}
.badge {
  display: inline-block;
  border-radius: 6px;
  background: var(--soft);
  padding: 3px 9px;
  font-size: 12px;
  color: #315f8e;
}
.code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--soft);
  padding: 16px;
  border: 1px dashed #88b5e3;
  border-radius: 8px;
}
.description {
  white-space: pre-line;
  line-height: 1.9;
}
.large-price {
  font-size: 26px;
  color: var(--blue);
  display: block;
  margin-bottom: 20px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 35px;
  width: 850px;
  max-width: 94vw;
  max-height: 90vh;
  color: var(--ink);
}
dialog::backdrop {
  background: #0b233a99;
  backdrop-filter: blur(3px);
}
.dialog-close {
  position: sticky;
  top: 0;
  display: block;
  margin-right: auto;
  background: #eef4fa;
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 24px;
  color: var(--ink);
  z-index: 1;
}
.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 15px;
}
.detail > img {
  width: 100%;
  border-radius: 14px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: #143d66;
  color: white;
  padding: 14px 24px;
  border-radius: 12px;
  z-index: 100;
  width: max-content;
  max-width: 90vw;
  transition: 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.admin {
  background: #f4f7fb;
}
.sidebar {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 240px;
  background: #143d64;
  color: #fff;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.sidebar .brand {
  margin: 0 20px 40px;
}
.sidebar .brand span {
  color: #6ab4ff;
}
.sidebar .brand small {
  color: #afcce9;
  letter-spacing: 0;
  font-size: 13px;
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.sidebar nav a {
  border-radius: 9px;
  padding: 12px 15px;
  font-size: 14px;
  color: #d0e3f5;
}
.sidebar nav a.selected,
.sidebar nav a:hover {
  background: #285780;
  color: white;
}
.visit-store {
  margin-top: auto;
  border: 1px solid #456887;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-size: 13px;
}
.admin-workspace {
  margin-right: 240px;
}
.admin-header {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 17px 32px;
}
.admin-header a {
  margin-right: auto;
  font-size: 14px;
}
.admin-header #menu {
  display: none;
}
.admin main {
  padding: 0 32px 40px;
  max-width: 1700px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.metrics .panel {
  margin-bottom: 0;
}
.metrics strong {
  display: block;
  font-size: 30px;
  margin-top: 10px;
}
.metrics + section {
  margin-top: 22px;
}
.readiness {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
}
.muted {
  color: var(--muted);
  font-size: 13px;
  margin: 16px 0 0;
}
.toolbar {
  display: flex;
  gap: 20px;
  align-items: start;
  margin-bottom: 22px;
}
.toolbar .search {
  margin: 0;
  max-width: 500px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 14px;
}
th {
  background: #f8fbff;
  color: #657d93;
  font-weight: 400;
  white-space: nowrap;
}
th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
tbody tr:last-child td {
  border: 0;
}
.product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}
.product-cell img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.actions {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}
.actions button {
  font-size: 12px;
  padding: 7px 10px;
}
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.break {
  word-break: break-all;
}
.admin #editor {
  max-width: 660px;
}
@media (max-width: 1000px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero {
    padding: 36px;
  }
  .store-header {
    gap: 20px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-art {
    height: 300px;
  }
  .tile strong {
    font-size: 29px;
  }
  .tile.front {
    height: 235px;
  }
  .tile.rear {
    height: 235px;
  }
}
@media (max-width: 700px) {
  body {
    font-size: 14px;
  }
  .store-header {
    padding: 16px;
    gap: 14px;
    flex-wrap: wrap;
  }
  .store-header .brand {
    font-size: 35px;
  }
  .store-header .search {
    order: 3;
    flex-basis: 100%;
    margin: 0;
  }
  .store-header nav {
    margin-right: auto;
    gap: 16px;
  }
  .store-header .search input {
    padding: 9px 0;
  }
  main {
    padding: 0 16px 35px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    gap: 12px;
    border-radius: 20px;
    min-height: 0;
  }
  .hero h1 {
    font-size: 42px;
    margin: 15px 0;
  }
  .hero p {
    font-size: 14px;
  }
  .hero-art {
    height: 200px;
    width: 270px;
    max-width: 100%;
    margin: 10px auto;
  }
  .tile {
    padding: 17px;
    border-radius: 18px;
  }
  .tile.rear {
    height: 160px;
  }
  .tile.front {
    top: 30px;
    height: 170px;
  }
  .tile strong {
    font-size: 24px;
    margin: 7px 0;
  }
  .tile.front span {
    font-size: 10px;
  }
  .spark {
    font-size: 40px;
    bottom: 0;
  }
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .product {
    border-radius: 12px;
  }
  .product-body {
    padding: 11px;
  }
  .product-title {
    font-size: 13px;
    height: 45px;
    margin: 5px 0 8px;
  }
  .prices {
    gap: 5px;
    flex-wrap: wrap;
    margin: 8px 0 11px;
  }
  .prices strong {
    font-size: 15px;
  }
  .prices del {
    font-size: 10px;
  }
  .add {
    font-size: 12px;
    padding: 9px 5px;
  }
  .section-title {
    margin: 28px 0 16px;
  }
  .section-title h2 {
    font-size: 24px;
  }
  h1 {
    font-size: 28px;
  }
  h2 {
    font-size: 23px;
  }
  .categories {
    gap: 7px;
  }
  .categories button {
    font-size: 12px;
    padding: 8px 13px;
  }
  .world {
    margin-top: 35px;
    padding: 24px;
    display: block;
  }
  .world h2 {
    font-size: 30px;
  }
  .world .primary {
    margin-top: 20px;
  }
  .checkout-layout,
  .detail {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 20px;
  }
  .cart-row {
    gap: 10px;
  }
  .cart-row img {
    width: 55px;
    height: 55px;
  }
  .cart-row h3 {
    font-size: 14px;
  }
  .cart-row button {
    padding: 7px 10px;
  }
  .auth {
    margin: 28px auto;
  }
  .order-row {
    padding: 14px;
    gap: 10px;
    font-size: 12px;
  }
  .order-row .badge {
    font-size: 10px;
  }
  .detail > img {
    max-height: 260px;
    object-fit: contain;
  }
  dialog {
    padding: 20px;
  }
  .sidebar {
    transform: translateX(100%);
    transition: transform 0.2s;
    top: 70px;
    width: 240px;
    padding: 20px;
  }
  .menu-open .sidebar {
    transform: translateX(0);
    box-shadow: -20px 0 50px #12375340;
  }
  .admin-workspace {
    margin: 0;
  }
  .admin-header {
    padding: 14px 16px;
  }
  .admin-header #menu {
    display: block;
    padding: 6px 12px;
  }
  .admin main {
    padding: 0 16px 30px;
  }
  .admin .section-title {
    margin-top: 25px;
  }
  .metrics {
    gap: 10px;
  }
  .metrics .panel {
    padding: 16px;
  }
  .metrics strong {
    font-size: 24px;
  }
  .toolbar {
    gap: 10px;
    flex-wrap: wrap;
  }
  .toolbar .search {
    min-width: 100%;
  }
  .readiness {
    display: grid;
    gap: 10px;
  }
  th,
  td {
    padding: 12px;
  }
  .form-grid {
    gap: 10px;
  }
  .pager {
    gap: 12px;
    font-size: 12px;
  }
  footer {
    padding: 30px 16px;
  }
  footer nav {
    gap: 17px;
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Storefront departments and footer; native grids, no carousel dependencies. */
.departments { display: grid; gap: 48px; }
.department { scroll-margin-top: 24px; min-width: 0; }
.department-heading { display: flex; align-items: center; gap: 16px; padding: 23px 26px; margin-bottom: 20px; background: linear-gradient(110deg,#eef7ff,#dcecff); border: 1px solid #cfdfef; border-radius: 16px; }
.department-number { display: grid; place-items: center; flex: 0 0 46px; height: 46px; border-radius: 12px; background: #fff; color: var(--blue); font-size: 17px; font-weight: 700; }
.department-heading h2 { font-size: 25px; margin: 0 0 4px; }
.department-heading p { margin: 0; color: #4c6c8c; font-size: 14px; }
.department-count { margin-inline-start: auto; white-space: nowrap; font-size: 13px; color: #4c6c8c; }
.department-more { display: flex; margin: 20px auto 0; min-height: 44px; }
.store-footer { padding: 48px 40px 0; text-align: right; background: #102f4e; color: #edf5ff; border-top: 4px solid #95c5f3; }
.footer-grid { max-width: 1300px; margin: auto; display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.15fr; gap: 42px; padding-bottom: 36px; }
.store-footer .brand { display: inline-block; font-size: 42px; }
.store-footer .brand span { color: #87bfff; }
.store-footer small { color: #bbcee0; }
.footer-about p { margin: 20px 0 16px; color: #c6d6e6; font-size: 14px; max-width: 290px; }
.store-footer nav { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 8px; margin: 0; font-size: 14px; min-width: 0; }
.store-footer nav h2 { font-size: 17px; color: #fff; margin: 4px 0 10px; }
.store-footer nav a { color: #c6d6e6; padding: 4px 0; overflow-wrap: anywhere; }
.store-footer nav a span { display: block; font-size: 13px; }
.store-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.footer-support { display: inline-block; font-size: 13px; color: #a7d1ff; }
.footer-bottom { max-width: 1300px; margin: auto; border-top: 1px solid #39536d; min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 12px; color: #bbcee0; }
.footer-bottom span { letter-spacing: 1.5px; font-size: 10px; }
@media(max-width:1000px) { .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px; } }
@media(max-width:700px) {
  .departments { gap: 30px; }
  .department-heading { padding: 16px 14px; gap: 10px; margin-bottom: 12px; border-radius: 12px; }
  .department-number { flex-basis: 34px; height: 36px; font-size: 13px; border-radius: 8px; }
  .department-heading h2 { font-size: 20px; }
  .department-heading p { font-size: 11px; }
  .department-count { font-size: 11px; }
  .store-footer { padding: 30px 20px 0; }
  .footer-grid { gap: 28px 18px; padding-bottom: 28px; }
  .footer-about { grid-column: 1 / -1; border-bottom: 1px solid #39536d; padding-bottom: 24px; }
  .footer-about p { max-width: none; margin: 14px 0 10px; }
  .store-footer nav { font-size: 12px; gap: 5px; }
  .store-footer nav h2 { font-size: 15px; margin-bottom: 8px; }
  .store-footer nav:last-child { grid-column: 1 / -1; }
  .store-footer nav a { min-height: 36px; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .footer-bottom { flex-wrap: wrap; justify-content: space-between; padding: 18px 0; gap: 10px; }
  .footer-bottom small { font-size: 11px; }
  .footer-bottom span { display: none; }
}
