:root {
  /* هوية بصرية موحدة */
  --bg: #f6f8fc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;

  --primary: #1e40af;
  --primary-2: #1d4ed8;
  --primary-soft: rgba(30, 64, 175, 0.12);

  --secondary: #0f172a;
  --secondary-2: #334155;

  --ok: #10b981;
  --warn: #f59e0b;

  --radius-xs: 10px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 22px;

  --shadow-sm: 0 6px 16px rgba(2, 6, 23, 0.08);
  --shadow: 0 18px 40px rgba(2, 6, 23, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Cairo", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 115% -15%, rgba(255, 90, 31, 0.14), transparent),
    radial-gradient(920px 500px at -25% 10%, rgba(11, 31, 68, 0.1), transparent),
    var(--bg);
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.container {
  width: min(1240px, 94%);
  margin-inline: auto;
}

.row {
  display: flex;
}

.center {
  align-items: center;
}

.between {
  justify-content: space-between;
}

.gap {
  gap: 10px;
}

.wrap {
  flex-wrap: wrap;
}

/* ===== Shared controls ===== */
.btn,
.chip,
.input,
.iconBtn {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text);
  transition: 0.2s ease;
  font-family: inherit;
}

.btn,
.chip,
.iconBtn {
  cursor: pointer;
  font-weight: 700;
}

.btn {
  padding: 10px 14px;
}

.btn:hover,
.chip:hover,
.iconBtn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

.btn.ghost {
  background: var(--card);
  color: var(--secondary);
  border-color: #c9d7ea;
}

.btn.danger {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #b91c1c;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.chip {
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.input {
  min-height: 44px;
  min-width: 220px;
  padding: 10px 12px;
  outline: none;
}

.input:focus {
  border-color: #ffc3ad;
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.14);
}

.badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding-inline: 6px;
  border-radius: 999px;
  background: #101827;
  color: #fff;
  font-size: 12px;
  margin-inline-start: 6px;
}

.iconBtn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 18px;
}

/* ===== Header ===== */
.utilityBar {
  background: var(--secondary);
  color: #f1f5f9;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.utilityBar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 5px 0;
}

.utilityItem {
  opacity: 0.95;
  white-space: nowrap;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(2, 6, 23, 0.05);
}

.topbar__inner {
  min-height: 84px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #d83f0f);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 21px;
  box-shadow: var(--shadow-sm);
}

.brand__name {
  display: block;
  font-size: 21px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.3px;
  color: var(--secondary);
}

.brand__sub {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

.headerSearch {
  position: relative;
  max-width: 640px;
  width: 100%;
  justify-self: center;
}

.headerSearch .input {
  width: 100%;
  min-width: 0;
  border-radius: 999px;
  padding-inline-end: 44px;
  border-color: #d7deea;
  background: #f8fafc;
}

.headerSearch__icon {
  position: absolute;
  inset-inline-end: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: 0.7;
  pointer-events: none;
}

.headerActions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quickCatsWrap {
  border-top: 1px solid var(--line);
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 8px 0;
}

.qCat {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  color: var(--text);
}

.qCat:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

.qCat.is-active {
  background: var(--primary);
  border-color: transparent;
  color: #fff;
}

/* ===== Flash deals ===== */
.flashDeals {
  margin-top: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.flashDeals__label {
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 900;
  white-space: nowrap;
}

.flashDeals__track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.flashDeal {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #ffe2d7;
  background: var(--card);
  white-space: nowrap;
}

/* ===== Hero ===== */
.heroGrid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
}

.heroSlider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 390px;
  box-shadow: var(--shadow);
  background: var(--secondary);
}

.heroSlide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  background-image: var(--slide-bg);
  background-size: cover;
  background-position: center;
}

.heroSlide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.heroSlide__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 14, 28, 0.92) 6%, rgba(8, 14, 28, 0.64) 44%, rgba(8, 14, 28, 0.2) 100%),
    linear-gradient(135deg, rgba(255, 90, 31, 0.28), rgba(255, 90, 31, 0));
}

.heroSlide__content {
  position: relative;
  z-index: 2;
  width: min(690px, 96%);
  padding: 40px 28px;
  color: #fff;
}

.heroSlide__content h1,
.heroSlide__content h2 {
  margin: 10px 0;
  font-weight: 900;
  line-height: 1.12;
  font-size: clamp(25px, 4vw, 40px);
}

.heroSlide__content p {
  margin: 0;
  max-width: 560px;
  color: #e2e8f0;
  font-size: clamp(15px, 1.8vw, 18px);
}

.heroTag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.34);
  font-size: 12px;
  font-weight: 900;
}

.heroActions {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.slideNav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(15, 23, 42, 0.4);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
}

.slideNav:hover {
  background: rgba(15, 23, 42, 0.66);
}

.slideNav.prev {
  right: 16px;
}

.slideNav.next {
  left: 16px;
}

.slideDots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  display: flex;
  gap: 7px;
  z-index: 3;
}

.slideDot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}

.slideDot.is-active {
  width: 22px;
  background: var(--card);
}

.heroSide {
  display: grid;
  gap: 10px;
  grid-template-rows: 1fr 1fr;
}

.sidePromo {
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
  color: #fff;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.sidePromo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--promo-bg);
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.sidePromo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.sidePromo h3 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 900;
}

.sidePromo p {
  margin: 0;
  opacity: 0.95;
  font-size: 14px;
}

.sidePromo .btn {
  margin-top: 14px;
  align-self: flex-start;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.sidePromo.red::after {
  background: linear-gradient(140deg, rgba(200, 35, 12, 0.78), rgba(255, 90, 31, 0.78));
}

.sidePromo.dark::after {
  background: linear-gradient(140deg, rgba(10, 23, 53, 0.82), rgba(20, 52, 107, 0.72));
}

/* ===== Service and Departments ===== */
.servicesBand {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.serviceCard {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.serviceIcon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  font-size: 18px;
}

.serviceCard h3 {
  margin: 0;
  font-size: 15px;
}

.serviceCard p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.sectionHead {
  margin-top: 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.departments {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.deptCard {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  text-align: right;
  padding: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

.deptCard:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.deptCard > span {
  font-size: 22px;
}

.deptCard b {
  font-size: 15px;
}

.deptCard small {
  color: var(--muted);
  font-size: 12px;
}

/* ===== Products section ===== */
.toolbar {
  margin-top: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.secTitle {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  color: var(--secondary);
}

.secSub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.toolbar__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.product {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.06);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.14);
}

.product:focus-visible {
  outline: 3px solid rgba(225, 29, 43, 0.32);
  outline-offset: 2px;
}

.product__img {
  width: 100%;
  aspect-ratio: 1/1;
  max-height: 240px;
  background:
    linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid #edf2f9;
  padding: 12px;
}

.product__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.product:hover .product__img img {
  transform: scale(1.05);
}

.emojiFallback {
  font-size: 38px;
}

.product__mid {
  padding: 12px 12px 8px;
}

.product__name {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  min-height: 48px;
  font-weight: 900;
  color: #0f172a;
}

.product__desc {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  min-height: 44px;
}

.product__hint {
  margin-top: 8px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
}

.product__meta {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  border: 1px solid #d8e2ef;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  color: #41556f;
  background: #f8fbff;
}

.product__foot {
  margin-top: auto;
  padding: 12px;
  border-top: 1px dashed #e2eaf3;
  gap: 10px;
}

.product__foot .row.gap {
  gap: 6px;
}

.priceBox {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.oldPrice {
  color: #94a3b8;
  text-decoration: line-through;
  font-size: 12px;
  line-height: 1;
}

.price {
  font-weight: 900;
  font-size: 32px;
  color: #0f172a;
  white-space: nowrap;
  line-height: 1;
}

.stockTag {
  position: absolute;
  inset-inline-start: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #c9f3e8;
  background: #ecfdf5;
  color: #047857;
  z-index: 4;
}

.stockTag.out {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.discountTag {
  position: absolute;
  inset-inline-end: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 900;
  border: 1px solid #ffd1bf;
  background: #fff1eb;
  color: var(--primary-2);
  z-index: 4;
}

.kicker,
.tiny {
  color: var(--muted);
}

.tiny {
  font-size: 12px;
}

.footer {
  margin-top: 30px;
  padding: 24px 0 16px;
  border-top: 1px solid #e4edf7;
}

.footerGrid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.footerGrid h4 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--secondary);
}

.footerGrid a,
.footerGrid p {
  display: block;
  margin: 0 0 6px;
  color: #5b6e85;
  font-size: 13px;
}

.companyInfo {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.companyInfo span {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.payBadges {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payBadge {
  border: 1px solid #dbe6f5;
  background: #f8fbff;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 9px;
}

.footerBrand {
  font-size: 18px;
  font-weight: 900;
  color: var(--secondary);
  margin-bottom: 6px;
}

.footer__copy {
  text-align: center;
  color: #6b7280;
  font-size: 13px;
}

/* ===== Cart drawer ===== */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(2, 6, 23, 0.5);
  backdrop-filter: blur(1px);
}

.drawer {
  position: fixed;
  inset-inline-start: 0;
  top: 0;
  width: min(470px, 96vw);
  height: 100dvh;
  max-height: 100dvh;
  z-index: 92;
  background: var(--card);
  border-inline-end: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  box-shadow: 0 0 40px rgba(2, 6, 23, 0.2);
}

@supports not (height: 100dvh) {
  .drawer {
    height: 100vh;
    max-height: 100vh;
  }
}

.drawer__head,
.drawer__foot {
  padding: 14px;
  border-bottom: 1px solid #eef2f7;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.drawer__title {
  font-size: 19px;
  font-weight: 900;
}

.drawer__body {
  min-height: 0;
  overflow: auto;
  padding: 12px;
}

.drawer__foot {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: var(--card);
  border-top: 1px solid #eef2f7;
  border-bottom: 0;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.drawer__totalLine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.drawer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cartItem {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.cartItem__thumb {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: grid;
  place-items: center;
}

.cartItem__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cartItem__name {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cartItem__meta {
  margin-top: 2px;
  color: #475569;
  font-size: 12px;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px;
}

.qty button {
  width: 26px;
  height: 26px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: var(--card);
  cursor: pointer;
  font-weight: 900;
}

.qty span {
  width: 26px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
}

.cartBar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 89;
  background: var(--card);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.1);
  padding: 9px 12px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cartBar__total {
  font-size: 14px;
  white-space: nowrap;
}

/* ===== Checkout modal ===== */
.modal {
  position: fixed;
  z-index: 93;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 94vw);
  max-height: 90vh;
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.26);
}

.modal__head {
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 3;
  border-bottom: 1px solid #eef2f7;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal__title {
  font-weight: 900;
  font-size: 20px;
}

.modal__body {
  padding: 14px;
}

.fieldsGrid {
  display: grid;
  gap: 10px;
}

.fieldsGrid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > span {
  font-weight: 700;
  font-size: 13px;
  color: #475569;
}

.field.wide {
  grid-column: span 1;
}

.card.mini {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: #f8fafc;
}

.miniHead {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.reviewList {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reviewItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-bottom: 1px dashed #dbe3ef;
  padding-bottom: 6px;
}

.reviewItem:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.modal__actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== Product details modal ===== */
.productModal {
  position: fixed;
  z-index: 94;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.productModal__box {
  width: min(980px, 95vw);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 28px 64px rgba(2, 6, 23, 0.28);
  position: relative;
}

.productModal__close {
  position: sticky;
  top: 12px;
  margin-inline-start: auto;
  margin-inline-end: 12px;
  z-index: 4;
}

.productModal__content {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 0;
}

.productModal__media {
  min-height: 360px;
  border-inline-end: 1px solid #edf2f9;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  display: grid;
  place-items: center;
  padding: 18px;
}

.productModal__media img {
  width: 100%;
  max-width: 380px;
  max-height: 360px;
  object-fit: contain;
}

.productModal__fallback {
  font-size: 82px;
}

.productModal__body {
  padding: 16px 18px 18px;
}

.productModal__kicker {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid #d8e2ef;
  background: #f8fbff;
  color: #46607e;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
}

.productModal__title {
  margin: 10px 0 8px;
  font-size: clamp(24px, 3.6vw, 34px);
  line-height: 1.2;
  color: #0f172a;
}

.productModal__priceRow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.productModal__desc {
  margin: 0;
  color: var(--text);
  line-height: 1.8;
}

.productModal__specsWrap {
  margin-top: 12px;
}

.productModal__specsWrap h4 {
  margin: 0 0 8px;
  color: var(--secondary);
  font-size: 16px;
}

.productModal__specs {
  margin: 0;
  padding-inline-start: 20px;
  color: var(--text);
  line-height: 1.9;
}

.productModal__actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.productModal__actions .btn {
  min-width: 170px;
}

/* ===== Legal pages ===== */
.legalWrap {
  padding: 26px 0 44px;
}

.legalHeader {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.legalHeader h1 {
  margin: 0;
  font-size: 26px;
  color: var(--secondary);
}

.legalCard {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.legalCard h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--secondary);
}

.legalCard p,
.legalCard li {
  color: var(--text);
  line-height: 1.8;
  font-size: 15px;
}

.legalCard ul {
  margin: 0;
  padding-inline-start: 20px;
}

/* ===== Utilities ===== */
.muted {
  color: var(--muted);
}

.notice {
  border-radius: 12px;
  border: 1px solid #fcd34d;
  background: #fffbeb;
  color: #854d0e;
  padding: 10px;
  font-weight: 700;
  font-size: 13px;
  grid-column: 1 / -1;
}

/* ===== Responsive ===== */
@media (max-width: 1180px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .servicesBand {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .departments {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .topbar__inner {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 0;
  }

  .brand {
    justify-self: center;
  }

  .headerSearch {
    width: 100%;
  }

  .headerActions {
    justify-self: center;
  }

  .heroGrid {
    grid-template-columns: 1fr;
  }

  .heroSide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: unset;
  }

  .heroSlider {
    min-height: 340px;
  }

  .heroSlide__content {
    padding: 30px 18px;
  }

  .productModal {
    padding: 12px;
  }

  .productModal__content {
    grid-template-columns: 1fr;
  }

  .productModal__media {
    border-inline-end: 0;
    border-bottom: 1px solid #edf2f9;
    min-height: 250px;
  }

  .toolbar {
    padding: 12px;
  }

  .toolbar__controls {
    width: 100%;
  }

  .toolbar__controls .input {
    flex: 1;
    min-width: 140px;
  }

  .fieldsGrid.two {
    grid-template-columns: 1fr;
  }

  .footerGrid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .utilityBar {
    display: none;
  }

  .quickCatsWrap {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .heroSide {
    grid-template-columns: 1fr;
  }

  .slideNav {
    display: none;
  }

  .drawer {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
  }

  .drawer__actions .btn {
    flex: 1;
  }

  .cartBar {
    display: flex;
  }

  .footerGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .container {
    width: min(1240px, 96%);
  }

  .brand__name {
    font-size: 18px;
  }

  .brand__sub {
    display: none;
  }

  .headerActions .chip {
    display: none;
  }

  .flashDeals {
    flex-direction: column;
    align-items: stretch;
  }

  .flashDeals__label {
    align-self: flex-start;
  }

  .servicesBand,
  .departments {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .product__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .product__foot .row.gap {
    width: 100%;
  }

  .product__foot .row.gap .btn {
    flex: 1;
  }

  .modal {
    left: 50%;
    transform: translate(-50%, -50%);
    width: 98vw;
  }

  .productModal {
    padding: 6px;
  }

  .productModal__box {
    width: 99vw;
    max-height: 94vh;
    border-radius: 14px;
  }

  .productModal__actions .btn {
    flex: 1;
    min-width: 0;
  }

  .legalHeader {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ===== Language Switch ===== */
.langSwitch {
  position: relative;
}

.langToggle {
  min-width: 74px;
  justify-content: center;
  font-weight: 900;
}

.langMenu {
  position: absolute;
  top: calc(100% + 8px);
  min-width: 170px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  z-index: 60;
  padding: 6px;
}

.langMenuBtn {
  width: 100%;
  border: 0;
  background: var(--card);
  border-radius: 9px;
  padding: 9px 10px;
  text-align: start;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.langMenuBtn:hover {
  background: #f8fafc;
}

.langMenuBtn.is-active {
  background: #fff1eb;
  color: var(--primary-2);
}

html[dir="rtl"] .langMenu {
  inset-inline-end: 0;
}

html[dir="ltr"] .langMenu {
  inset-inline-start: 0;
}

/* ===== LTR tweaks ===== */
html[dir="ltr"] .slideNav.prev {
  left: 16px;
  right: auto;
}

html[dir="ltr"] .slideNav.next {
  right: 16px;
  left: auto;
}

html[dir="ltr"] .deptCard {
  text-align: left;
}

html[dir="ltr"] .footer__copy,
html[dir="ltr"] .footerGrid {
  direction: ltr;
}
/* =========================================================
   Refined visual layer (drop-in overrides)
   Goal: cleaner, calmer, premium look without touching JS/HTML
   ========================================================= */

:root {
  --bg: #f7f9fc;
  --card: #ffffff;
  --text: #111827;
  --muted: #64748b;
  --line: #e6ebf3;

  --primary: #f35a22;
  --primary-2: #de4d19;
  --primary-soft: #fff5f1;

  --secondary: #0f1f45;
  --secondary-2: #12285a;

  --radius-xs: 10px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 20px;

  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
}

body {
  background:
    radial-gradient(820px 360px at 110% -20%, rgba(243, 90, 34, 0.09), transparent),
    radial-gradient(720px 340px at -20% 8%, rgba(15, 31, 69, 0.06), transparent),
    var(--bg);
  line-height: 1.55;
}

.container {
  width: min(1220px, 93%);
}

/* Global cards feel */
.toolbar,
.product,
.serviceCard,
.deptCard,
.legalCard,
.legalHeader,
.flashDeals,
.cartItem,
.productModal__box,
.modal,
.drawer,
.topbar,
.footer {
  border-color: var(--line);
}

/* Controls */
.btn,
.chip,
.input,
.iconBtn {
  border-radius: 12px;
}

.btn {
  padding: 10px 14px;
  font-weight: 700;
}

.btn.primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn.primary:hover {
  background: var(--primary-2);
  border-color: var(--primary-2);
}

.btn:hover,
.chip:hover,
.iconBtn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.input {
  border-color: #dbe3ef;
  min-height: 42px;
}

.input:focus {
  border-color: #f7a184;
  box-shadow: 0 0 0 3px rgba(243, 90, 34, 0.14);
}

/* Remove visual noise sections */
.utilityBar {
  display: none;
}

.flashDeals {
  display: none;
}

/* Header */
.topbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.topbar__inner {
  min-height: 76px;
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--primary);
  font-size: 19px;
}

.brand__name {
  font-size: 20px;
  letter-spacing: 0;
}

.brand__sub {
  color: #7a889e;
  font-size: 11px;
}

.headerSearch .input {
  background: #ffffff;
  border-color: #d9e1ee;
}

.quickCatsWrap {
  border-top: 1px solid #edf2f9;
  padding: 10px 0;
  gap: 10px;
}

.qCat {
  padding: 7px 12px;
  border-color: #dbe3ef;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.qCat.is-active {
  background: #fff3ee;
  border-color: #ffd4c3;
  color: var(--primary-2);
}

/* Hero */
.heroGrid {
  margin-top: 12px;
  gap: 12px;
}

.heroSlider {
  min-height: 350px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.heroSlide__overlay {
  background:
    linear-gradient(100deg, rgba(8, 14, 28, 0.86) 8%, rgba(8, 14, 28, 0.52) 45%, rgba(8, 14, 28, 0.12) 100%);
}

.heroSlide__content {
  padding: 34px 24px;
  width: min(640px, 95%);
}

.heroSlide__content h1,
.heroSlide__content h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  line-height: 1.18;
}

.heroSlide__content p {
  color: #dbe6f4;
  font-size: clamp(14px, 1.6vw, 16px);
}

.heroTag {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.26);
  font-weight: 700;
}

.heroSide {
  gap: 12px;
}

.sidePromo {
  border-radius: 16px;
  min-height: 170px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.sidePromo h3 {
  font-size: 20px;
}

/* Services / departments */
.servicesBand {
  margin-top: 16px;
  gap: 12px;
}

.serviceCard {
  padding: 14px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.serviceIcon {
  background: #fff4ef;
  color: var(--primary-2);
}

.sectionHead {
  margin-top: 20px;
}

.departments {
  margin-top: 12px;
  gap: 12px;
}

.deptCard {
  padding: 14px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.deptCard > span {
  font-size: 20px;
}

.deptCard b {
  font-size: 14px;
}

/* Products */
.toolbar {
  margin-top: 18px;
  padding: 14px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.02);
}

.secTitle {
  font-size: 22px;
}

.grid {
  margin-top: 14px;
  gap: 14px;
}

.product {
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.product:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.product__img {
  background: linear-gradient(180deg, #fbfdff 0%, #f5f8fd 100%);
  padding: 14px;
}

.product__mid {
  padding: 12px;
}

.product__name {
  font-size: 17px;
  min-height: 42px;
  line-height: 1.28;
}

.product__desc {
  font-size: 13px;
  min-height: 40px;
  color: #6b7b90;
}

.product__hint {
  color: #1d4ed8;
}

.pill {
  font-size: 10.5px;
}

.product__foot {
  padding: 11px 12px 12px;
}

.oldPrice {
  font-size: 11px;
}

.price {
  font-size: 24px;
  letter-spacing: -0.2px;
}

.stockTag,
.discountTag {
  font-size: 10.5px;
  padding: 3px 7px;
}

.emojiFallback,
.productModal__fallback {
  font-size: 30px;
}

/* Footer */
.footer {
  margin-top: 34px;
  padding-top: 26px;
}

.footerGrid a,
.footerGrid p {
  font-size: 12.5px;
}

/* Modal & drawer calmer */
.modal,
.productModal__box {
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.2);
}

.overlay {
  background: rgba(2, 6, 23, 0.42);
}

/* Mobile refinements */
@media (max-width: 980px) {
  .topbar__inner {
    min-height: auto;
  }

  .heroSlider {
    min-height: 320px;
  }

  .heroSlide__content {
    padding: 28px 18px;
  }

  .product__name {
    font-size: 16px;
  }

  .price {
    font-size: 22px;
  }
}

@media (max-width: 760px) {
  .quickCatsWrap {
    padding: 8px 0;
  }

  .heroSlider {
    min-height: 300px;
  }

  .servicesBand {
    gap: 10px;
  }

  .grid {
    gap: 12px;
  }
}

@media (max-width: 540px) {
  .container {
    width: min(1220px, 95%);
  }

  .brand__name {
    font-size: 17px;
  }

  .product__name {
    font-size: 15px;
    min-height: auto;
  }

  .product__desc {
    min-height: auto;
  }

  .price {
    font-size: 21px;
  }
}


/* =========================================================
   Radical Rebrand v3 + Dark Mode
   ========================================================= */

:root {
  --bg: #f5f7ff;
  --card: #ffffff;
  --text: #0b1220;
  --muted: #60718b;
  --line: #d7e3f5;

  --primary: #6d4dff;
  --primary-2: #f85f8d;
  --primary-soft: #efeaff;

  --secondary: #121a2d;
  --secondary-2: #1c2e55;

  --ok: #00b894;
  --warn: #f59e0b;

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius: 18px;
  --radius-lg: 24px;

  --shadow-sm: 0 10px 24px rgba(20, 33, 61, 0.09);
  --shadow: 0 28px 72px rgba(20, 33, 61, 0.14);
}

html[data-theme="dark"] {
  --bg: #0b1220;
  --card: #111a2e;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --line: #23314d;

  --primary: #3b82f6;
  --primary-2: #60a5fa;
  --primary-soft: rgba(59, 130, 246, 0.16);

  --secondary: #e2e8f0;
  --secondary-2: #cbd5e1;

  --ok: #34d399;
  --warn: #fbbf24;

  --shadow-sm: 0 12px 26px rgba(0, 0, 0, 0.35);
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.56);
}

html,
body {
  min-height: 100%;
}

body {
  background:
    radial-gradient(1300px 680px at 112% -18%, rgba(109, 77, 255, 0.20), transparent 55%),
    radial-gradient(920px 600px at -18% 6%, rgba(248, 95, 141, 0.18), transparent 52%),
    linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 92%, #000 8%) 100%);
  color: var(--text);
  letter-spacing: 0.1px;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(1200px 650px at 108% -20%, rgba(139, 125, 255, 0.24), transparent 58%),
    radial-gradient(880px 500px at -14% 12%, rgba(255, 110, 168, 0.16), transparent 54%),
    linear-gradient(180deg, #070a11 0%, #090f1a 100%);
}

.btn,
.chip,
.input,
.iconBtn {
  border-color: var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 14px;
}

.btn.primary {
  border: 0;
  background: linear-gradient(125deg, var(--primary), var(--primary-2));
  color: #fff;
}

.btn.primary:hover {
  filter: brightness(1.03);
}

.btn.ghost {
  background: color-mix(in srgb, var(--card) 84%, var(--primary-soft) 16%);
  border-color: color-mix(in srgb, var(--line) 70%, var(--primary) 30%);
  color: var(--text);
}

.btn:hover,
.chip:hover,
.iconBtn:hover {
  box-shadow: var(--shadow-sm);
}

.input {
  background: color-mix(in srgb, var(--card) 94%, #9fb6dd 6%);
  border-color: color-mix(in srgb, var(--line) 86%, #94a3b8 14%);
}

.input:focus {
  border-color: color-mix(in srgb, var(--primary) 50%, var(--primary-2) 50%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent);
}

.themeToggle {
  min-width: 88px;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  padding-inline: 12px;
}

.themeToggle [data-theme-label] {
  font-size: 12px;
  letter-spacing: 0.3px;
}

.utilityBar,
.flashDeals {
  display: none !important;
}

.topbar {
  background: color-mix(in srgb, var(--card) 84%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  box-shadow: 0 8px 30px rgba(17, 23, 36, 0.10);
  backdrop-filter: blur(10px);
}

html[data-theme="dark"] .topbar {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.40);
}

.topbar__inner {
  min-height: 78px;
}

.brand__name {
  color: var(--secondary);
}

.logo {
  background: linear-gradient(130deg, var(--primary), var(--primary-2));
  width: 44px;
  height: 44px;
  border-radius: 13px;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 32%, transparent);
}

.headerSearch .input {
  background: color-mix(in srgb, var(--card) 90%, #b8c6df 10%);
}

.quickCatsWrap {
  border-top: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  padding-top: 9px;
  padding-bottom: 9px;
  gap: 10px;
}

.qCat {
  background: color-mix(in srgb, var(--card) 92%, var(--primary-soft) 8%);
  border-color: color-mix(in srgb, var(--line) 70%, var(--primary) 30%);
  color: color-mix(in srgb, var(--text) 86%, var(--primary) 14%);
  font-weight: 700;
}

.qCat.is-active {
  border-color: transparent;
  background: linear-gradient(125deg, var(--primary), var(--primary-2));
  color: #fff;
}

.heroGrid {
  margin-top: 16px;
  gap: 14px;
}

.heroSlider {
  min-height: 390px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  box-shadow: var(--shadow);
}

.heroSlide__overlay {
  background:
    linear-gradient(102deg, rgba(8, 12, 24, 0.90) 6%, rgba(8, 12, 24, 0.56) 44%, rgba(8, 12, 24, 0.18) 100%),
    linear-gradient(120deg, color-mix(in srgb, var(--primary) 30%, transparent), color-mix(in srgb, var(--primary-2) 16%, transparent));
}

.heroSlide__content {
  padding: 38px 26px;
}

.heroTag {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.18);
}

.slideNav {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(255, 255, 255, 0.44);
}

.slideDot {
  background: rgba(255, 255, 255, 0.52);
}

.slideDot.is-active {
  background: var(--card);
}

.sidePromo {
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
  box-shadow: var(--shadow-sm);
}

.servicesBand,
.departments,
.grid {
  gap: 14px;
}

.serviceCard,
.deptCard,
.toolbar,
.product,
.legalHeader,
.legalCard,
.drawer,
.modal,
.productModal__box {
  background: color-mix(in srgb, var(--card) 96%, #9db4d6 4%);
  border-color: color-mix(in srgb, var(--line) 84%, transparent);
  box-shadow: var(--shadow-sm);
}

.secTitle,
.productModal__title,
.footerBrand,
.legalHeader h1,
.legalCard h2,
.panelHead h3,
.adminTitle {
  color: var(--secondary);
}

.product {
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.product:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary) 38%, var(--line));
  box-shadow: 0 20px 36px color-mix(in srgb, var(--primary) 18%, transparent);
}

.product__img {
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--primary-soft) 48%, var(--card) 52%) 0%,
      color-mix(in srgb, var(--card) 96%, transparent) 100%);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
}

.product__name {
  color: var(--text);
  font-size: 18px;
  min-height: 44px;
}

.product__desc {
  color: var(--muted);
}

.product__foot {
  border-top: 1px dashed color-mix(in srgb, var(--line) 80%, transparent);
}

.price {
  color: var(--text);
  font-size: 25px;
}

.pill {
  background: color-mix(in srgb, var(--card) 74%, var(--primary-soft) 26%);
  border-color: color-mix(in srgb, var(--line) 62%, var(--primary) 38%);
  color: color-mix(in srgb, var(--text) 80%, var(--primary) 20%);
}

.stockTag {
  border-color: color-mix(in srgb, var(--ok) 42%, transparent);
  background: color-mix(in srgb, var(--ok) 18%, transparent);
  color: color-mix(in srgb, var(--ok) 66%, #0f172a 34%);
}

.discountTag {
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
  background: color-mix(in srgb, var(--primary-soft) 66%, var(--card) 34%);
  color: color-mix(in srgb, var(--primary) 60%, var(--primary-2) 40%);
}

.footer {
  border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}

.footerGrid a,
.footerGrid p,
.companyInfo span,
.footer__copy,
.tiny,
.kicker,
.notice,
.small {
  color: var(--muted);
}

.overlay {
  background: rgba(6, 10, 20, 0.52);
}

.drawer__head,
.drawer__foot,
.modal__head {
  background: color-mix(in srgb, var(--card) 92%, #90a7ce 8%);
  border-color: color-mix(in srgb, var(--line) 82%, transparent);
}

.cartItem__thumb,
.productModal__media,
.card.mini {
  background: color-mix(in srgb, var(--card) 84%, #8ea3c5 16%);
  border-color: color-mix(in srgb, var(--line) 82%, transparent);
}

.langMenu {
  background: color-mix(in srgb, var(--card) 96%, #8ea3c5 4%);
  border-color: color-mix(in srgb, var(--line) 80%, transparent);
  box-shadow: var(--shadow-sm);
}

.langMenuBtn {
  background: transparent;
  color: var(--text);
}

.langMenuBtn:hover {
  background: color-mix(in srgb, var(--card) 72%, var(--primary-soft) 28%);
}

.langMenuBtn.is-active {
  background: color-mix(in srgb, var(--primary-soft) 56%, var(--card) 44%);
  color: color-mix(in srgb, var(--primary) 60%, var(--primary-2) 40%);
}

html[data-theme="dark"] .badge {
  background: #e8eefb;
  color: #111827;
}

html[data-theme="dark"] .product__hint {
  color: #9eb4ff;
}

html[data-theme="dark"] .oldPrice {
  color: #90a3bf;
}

html[data-theme="dark"] .table th,
html[data-theme="dark"] .table td {
  border-color: #2b3e5f;
}

html[data-theme="dark"] .table th {
  background: #151f31;
  color: #b7c7e2;
}

@media (max-width: 980px) {
  .themeToggle [data-theme-label] {
    display: none;
  }

  .themeToggle {
    min-width: 42px;
    padding-inline: 10px;
  }

  .heroSlider {
    min-height: 340px;
  }
}

@media (max-width: 540px) {
  .heroSlider {
    min-height: 300px;
    border-radius: 18px;
  }

  .product {
    border-radius: 16px;
  }
}

/* =========================================================
   HOTFIX: Department cards text overlap (French/long labels)
   ========================================================= */
.departments {
  align-items: stretch;
}

.deptCard {
  white-space: normal !important;
  justify-content: flex-start;
  overflow: hidden;
  min-height: 172px;
  gap: 8px;
}

.deptCard > span,
.deptCard b,
.deptCard small {
  display: block;
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.deptCard > span {
  line-height: 1;
}

.deptCard b {
  line-height: 1.35;
}

.deptCard small {
  line-height: 1.45;
}

html[dir="rtl"] .deptCard {
  align-items: flex-end;
  text-align: right;
}

html[dir="ltr"] .deptCard {
  align-items: flex-start;
  text-align: left;
}

@media (max-width: 980px) {
  .deptCard {
    min-height: 160px;
  }
}

@media (max-width: 540px) {
  .deptCard {
    min-height: auto;
  }
}


/* =========================================================
   Professional UI Overhaul v4 (Clean Corporate Look)
   ========================================================= */
:root {
  --bg: #f3f6fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #d9e2ef;

  --primary: #1d4ed8;
  --primary-2: #2563eb;
  --primary-soft: #eaf1ff;

  --secondary: #0f172a;
  --secondary-2: #1e293b;

  --ok: #059669;
  --warn: #d97706;

  --radius-xs: 10px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 22px;

  --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.07);
  --shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
}

html[data-theme="dark"] {
  --bg: #0b1220;
  --card: #0f1a2f;
  --text: #e6edf8;
  --muted: #9db0ca;
  --line: #22324b;

  --primary: #3b82f6;
  --primary-2: #60a5fa;
  --primary-soft: rgba(59, 130, 246, 0.18);

  --secondary: #f2f7ff;
  --secondary-2: #dbe7ff;

  --ok: #34d399;
  --warn: #fbbf24;

  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.34);
  --shadow: 0 22px 62px rgba(0, 0, 0, 0.52);
}

body {
  background:
    radial-gradient(1200px 620px at 115% -20%, rgba(37, 99, 235, 0.11), transparent 56%),
    radial-gradient(880px 460px at -16% 8%, rgba(15, 23, 42, 0.06), transparent 54%),
    var(--bg);
  color: var(--text);
  letter-spacing: 0;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(1200px 620px at 115% -20%, rgba(96, 165, 250, 0.18), transparent 56%),
    radial-gradient(920px 520px at -16% 8%, rgba(37, 99, 235, 0.09), transparent 56%),
    var(--bg);
}

.utilityBar,
.flashDeals {
  display: none !important;
}

.topbar {
  background: color-mix(in srgb, var(--card) 90%, transparent);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(8px);
}

html[data-theme="dark"] .topbar {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.topbar__inner {
  min-height: 76px;
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.26);
}

.brand__name {
  color: var(--secondary);
  font-size: 20px;
}

.brand__sub {
  color: var(--muted);
  font-size: 11px;
}

.btn,
.chip,
.input,
.iconBtn {
  border-color: var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 12px;
}

.btn:hover,
.chip:hover,
.iconBtn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.btn.primary:hover {
  filter: brightness(1.03);
}

.btn.ghost {
  color: var(--secondary);
  border-color: color-mix(in srgb, var(--line) 80%, var(--primary) 20%);
  background: color-mix(in srgb, var(--card) 92%, var(--primary-soft) 8%);
}

.input {
  background: color-mix(in srgb, var(--card) 94%, #c3d3ea 6%);
}

.input:focus {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--primary-2) 45%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent);
}

.headerSearch .input {
  border-radius: 999px;
}

.quickCatsWrap {
  border-top: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  padding: 10px 0;
  gap: 10px;
}

.qCat {
  border: 1px solid color-mix(in srgb, var(--line) 80%, var(--primary) 20%);
  background: color-mix(in srgb, var(--card) 95%, var(--primary-soft) 5%);
  color: color-mix(in srgb, var(--text) 90%, var(--primary) 10%);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.1px;
}

.qCat:hover {
  border-color: color-mix(in srgb, var(--primary) 52%, var(--line) 48%);
  color: var(--primary);
}

.qCat.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.28);
}

html[data-theme="dark"] .qCat.is-active {
  box-shadow: 0 10px 26px rgba(59, 130, 246, 0.35);
}

.heroGrid {
  margin-top: 14px;
  gap: 14px;
}

.heroSlider {
  min-height: 360px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  box-shadow: var(--shadow);
}

.heroSlide__overlay {
  background: linear-gradient(104deg, rgba(7, 12, 24, 0.84) 10%, rgba(7, 12, 24, 0.5) 48%, rgba(7, 12, 24, 0.14) 100%);
}

.heroSlide__content {
  width: min(640px, 95%);
  padding: 34px 24px;
}

.heroTag {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
}

.sidePromo,
.serviceCard,
.deptCard,
.toolbar,
.product,
.legalHeader,
.legalCard,
.drawer,
.modal,
.productModal__box {
  background: color-mix(in srgb, var(--card) 97%, #9bb3d8 3%);
  border-color: color-mix(in srgb, var(--line) 86%, transparent);
  box-shadow: var(--shadow-sm);
}

.serviceCard,
.deptCard,
.toolbar {
  border-radius: 16px;
}

.deptCard {
  min-height: 168px;
  align-items: flex-start;
  text-align: left;
}

html[dir="rtl"] .deptCard {
  align-items: flex-end;
  text-align: right;
}

.deptCard > span {
  font-size: 22px;
}

.deptCard b {
  font-size: 15px;
  line-height: 1.35;
  margin-top: 2px;
}

.deptCard small {
  line-height: 1.5;
  color: var(--muted);
}

.secTitle,
.productModal__title,
.footerBrand,
.legalHeader h1,
.legalCard h2,
.panelHead h3,
.adminTitle {
  color: var(--secondary);
}

.grid {
  gap: 14px;
}

.product {
  border-radius: 18px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.product:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 32%, var(--line));
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.17);
}

.product__img {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--primary-soft) 34%, var(--card) 66%) 0%,
    color-mix(in srgb, var(--card) 98%, transparent) 100%);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}

.product__name {
  font-size: 17px;
  line-height: 1.32;
  min-height: 42px;
  color: var(--text);
}

.product__desc {
  color: var(--muted);
}

.price {
  font-size: 24px;
  color: var(--text);
}

.pill {
  background: color-mix(in srgb, var(--card) 72%, var(--primary-soft) 28%);
  border-color: color-mix(in srgb, var(--line) 60%, var(--primary) 40%);
  color: color-mix(in srgb, var(--text) 84%, var(--primary) 16%);
}

.stockTag {
  border-color: color-mix(in srgb, var(--ok) 40%, transparent);
  background: color-mix(in srgb, var(--ok) 17%, transparent);
  color: color-mix(in srgb, var(--ok) 70%, #0f172a 30%);
}

.discountTag {
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
  background: color-mix(in srgb, var(--primary-soft) 65%, var(--card) 35%);
  color: color-mix(in srgb, var(--primary) 68%, var(--primary-2) 32%);
}

.footer {
  border-top: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
}

.footerGrid a,
.footerGrid p,
.companyInfo span,
.footer__copy,
.tiny,
.kicker,
.notice,
.small {
  color: var(--muted);
}

.overlay {
  background: rgba(2, 8, 20, 0.52);
}

.drawer__head,
.drawer__foot,
.modal__head {
  background: color-mix(in srgb, var(--card) 93%, #9eb5d8 7%);
  border-color: color-mix(in srgb, var(--line) 82%, transparent);
}

.cartItem__thumb,
.productModal__media,
.card.mini {
  background: color-mix(in srgb, var(--card) 86%, #97abd0 14%);
  border-color: color-mix(in srgb, var(--line) 82%, transparent);
}

.langMenu {
  background: color-mix(in srgb, var(--card) 97%, #95abd1 3%);
  border-color: color-mix(in srgb, var(--line) 82%, transparent);
  box-shadow: var(--shadow-sm);
}

.langMenuBtn {
  color: var(--text);
}

.langMenuBtn:hover {
  background: color-mix(in srgb, var(--card) 74%, var(--primary-soft) 26%);
}

.langMenuBtn.is-active {
  background: color-mix(in srgb, var(--primary-soft) 60%, var(--card) 40%);
  color: color-mix(in srgb, var(--primary) 70%, var(--primary-2) 30%);
}

@media (max-width: 980px) {
  .heroSlider {
    min-height: 330px;
  }

  .themeToggle [data-theme-label] {
    display: none;
  }

  .themeToggle {
    min-width: 42px;
    padding-inline: 10px;
  }

  .deptCard {
    min-height: 158px;
  }
}

@media (max-width: 760px) {
  .quickCatsWrap {
    gap: 8px;
    padding: 8px 0;
  }

  .qCat {
    padding: 9px 14px;
    font-size: 13px;
  }

  .heroSlider {
    min-height: 300px;
  }
}

@media (max-width: 540px) {
  .heroSlider {
    min-height: 286px;
    border-radius: 16px;
  }

  .product {
    border-radius: 16px;
  }

  .deptCard {
    min-height: auto;
  }
}


/* ===== Member auth ===== */
#memberBadge {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.memberAuthActions {
  justify-content: flex-start;
}
.memberAuthMsg {
  min-height: 18px;
  margin-top: 10px;
  font-size: 13px;
}
.memberAuthHint {
  margin-top: 10px;
  font-size: 12px;
  opacity: .75;
}
@media (max-width: 900px) {
  #memberBadge {
    display: none;
  }
}

/* ===== Product modal multi-image gallery ===== */
.productModal__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.productModal__mainWrap {
  position: relative;
  width: 100%;
  max-width: 380px;
  min-height: 240px;
  display: grid;
  place-items: center;
}

.productModal__mainWrap > img {
  width: 100%;
  max-width: 380px;
  max-height: 360px;
  object-fit: contain;
}

.productModal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #d8e2ef;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}

.productModal__nav.prev {
  inset-inline-start: 6px;
}

.productModal__nav.next {
  inset-inline-end: 6px;
}

.productModal__count {
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
}

.productModal__thumbs {
  width: 100%;
  max-width: 380px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  gap: 8px;
}

.productModal__thumb {
  border: 1px solid #dbe5f2;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}

.productModal__thumb img {
  width: 100%;
  height: 58px;
  object-fit: cover;
  max-width: none;
  max-height: none;
  display: block;
}

.productModal__thumb.is-active {
  border-color: var(--primary, #2563eb);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

@media (max-width: 720px) {
  .productModal__thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .productModal__thumb img {
    height: 54px;
  }
}
