:root {
  --ink: #17212f;
  --muted: #667085;
  --line: #d8dee8;
  --soft: #f5f7fa;
  --paper: #ffffff;
  --accent: #006d77;
  --accent-strong: #004f58;
  --accent-soft: #e7f5f5;
  --gold: #c98b22;
  --sale: #c91f37;
  --whatsapp: #1fa855;
  --shadow: 0 18px 44px rgba(23, 33, 47, 0.11);
  --shadow-strong: 0 24px 70px rgba(23, 33, 47, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 109, 119, 0.08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--soft) 54%, #ffffff 100%);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, a, input, select, textarea { transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease, opacity 180ms ease; }
.money {
  display: inline-flex;
  align-items: baseline;
  gap: 0.24em;
  white-space: nowrap;
}
.dirham-symbol {
  display: inline-flex;
  width: 1.05em;
  height: 0.92em;
  color: currentColor;
  transform: translateY(0.08em);
}
.dirham-symbol svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.icon-svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sticky-top {
  position: sticky;
  top: 0;
  z-index: 25;
  transition: box-shadow 220ms ease;
}

.sticky-top.is-scrolled {
  box-shadow: 0 16px 42px rgba(23, 33, 47, 0.12);
}

.announcement-bar {
  position: relative;
  min-height: 42px;
  overflow: hidden;
}

.announcement-item {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 9px 18px;
  text-align: center;
  font-weight: 900;
  opacity: 0;
  transition: opacity 620ms ease;
}

.announcement-item.active { opacity: 1; }

.promo-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(23, 33, 47, 0.66);
}

.promo-modal.open { display: grid; }

.promo-panel {
  position: relative;
  display: inline-block;
  max-width: 94vw;
  max-height: 88vh;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  box-shadow: var(--shadow-strong);
  animation: fadeUp 260ms ease both;
}

.promo-panel img {
  width: auto;
  height: auto;
  max-width: min(94vw, 900px);
  max-height: 88vh;
  object-fit: contain;
  background: transparent;
}

.promo-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.94);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
}

@media (max-width: 640px) {
  .promo-modal {
    padding: 18px;
  }

  .promo-panel {
    max-width: 78vw;
    max-height: 70vh;
  }

  .promo-panel img {
    max-width: 78vw;
    max-height: 70vh;
  }

  .promo-close {
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    font-size: 22px;
  }
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(16px, 4vw, 56px);
  background: rgba(255,255,255,0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.25);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.site-logo-frame {
  display: inline-block;
  width: clamp(185px, 17vw, 300px);
  height: 58px;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
}

.admin-logo-frame {
  width: 210px;
  height: 70px;
}

.site-logo-frame img,
.logo-crop-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: var(--logo-x, 50%) var(--logo-y, 50%);
  transform: scale(var(--logo-zoom, 1));
}

.logo-cropper {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 14px;
  align-items: center;
}

.logo-crop-preview {
  display: grid;
  place-items: center;
  width: 240px;
  height: 120px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--soft);
  color: var(--muted);
  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
}

.main-nav > a,
.nav-group > a,
.nav-group-head > a {
  position: relative;
  padding: 8px 0;
}

.main-nav > a::after,
.nav-group > a::after,
.nav-group-head > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.main-nav > a:hover::after,
.nav-group > a:hover::after,
.nav-group-head > a:hover::after {
  transform: scaleX(1);
}

.nav-group { position: relative; padding: 12px 0; }
.nav-group-head {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-submenu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
}
.submenu {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  position: absolute;
  top: 42px;
  left: 0;
  min-width: 210px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-strong);
  border-radius: 8px;
}
.submenu a { display: block; padding: 10px 12px; border-radius: 6px; }
.submenu a:hover, .filters a:hover { background: var(--soft); }
.nav-group:hover .submenu { opacity: 1; pointer-events: auto; transform: translateY(0); }

.nav-toggle { display: none; border: 0; background: var(--accent); color: #fff; width: 42px; height: 42px; border-radius: 6px; font-size: 22px; }

.hero-slider {
  position: relative;
  min-height: clamp(680px, 78vh, 860px);
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: clamp(40px, 8vw, 90px) clamp(18px, 6vw, 72px);
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 720ms ease, transform 1400ms ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: clamp(18px, 6vw, 72px);
  bottom: 28px;
  display: flex;
  gap: 9px;
}

.hero-dots button {
  width: 34px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.42);
  cursor: pointer;
}

.hero-dots button.active { width: 54px; background: #fff; }

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeUp 760ms ease both;
}

.hero-content { max-width: 720px; }
.eyebrow { margin: 0 0 8px; text-transform: uppercase; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: 0; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 14px; }
h1 { font-size: clamp(42px, 7vw, 76px); }
h2 { font-size: clamp(26px, 4vw, 40px); }
h3 { font-size: 20px; }
.hero p { max-width: 660px; font-size: 18px; }
.hero-actions, .form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(23,33,47,0.06);
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(23,33,47,0.14); }
.btn-primary:hover { background: var(--accent-strong); }
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
  box-shadow: none;
}
.btn-danger { background: var(--sale); border-color: var(--sale); color: #fff; }
.btn.danger { background: var(--sale); border-color: var(--sale); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-whatsapp { background: var(--whatsapp); border-color: var(--whatsapp); color: #fff; }
.btn-small { min-height: 36px; padding: 7px 12px; font-size: 13px; }
.text-link { color: var(--accent); font-weight: 800; }
.track-header-btn {
  min-height: 40px;
  padding: 8px 13px;
  border: 0;
  border-radius: 6px;
  background: var(--sale);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(201,31,55,0.24);
}
.track-header-btn:hover { transform: translateY(-2px); background: #a9162a; }
.cart-link {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
}
.cart-link:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.cart-count {
  position: absolute;
  top: -6px;
  right: -7px;
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--sale);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.cart-link:hover .cart-count {
  background: #fff;
  color: var(--sale);
}
.track-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(23,33,47,0.58);
}
.track-modal.open { display: grid; }
.track-modal-panel {
  position: relative;
  width: min(520px, 100%);
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-strong);
  animation: fadeUp 220ms ease both;
  max-height: min(82vh, 720px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.track-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 22px;
}
.track-result {
  margin-top: 12px;
  overflow: auto;
  padding-right: 4px;
}
.lookup-card { display: grid; gap: 7px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.lookup-card h3 { margin: 2px 0; font-size: 19px; }
.lookup-card p { margin: 2px 0; line-height: 1.45; }
.lookup-card .btn { width: 100%; justify-content: center; }
.payment-trust {
  display: inline-grid;
  gap: 3px;
  width: fit-content;
  margin: 4px 0;
  padding: 8px 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 800;
}
.payment-trust span {
  font-size: 13px;
  font-weight: 700;
}
.payment-trust.paid {
  background: #e5f7ed;
  border-color: #bfe8cf;
  color: #137244;
}
.payment-trust.pending {
  background: #fff4d8;
  border-color: #f1d38b;
  color: #8a5a00;
}
.pay-online-form {
  margin: 4px 0 10px;
}
.pay-online-form .btn {
  width: fit-content;
}

.section, .page-title, .shop-layout, .shop-section, .product-detail, .service-grid, .service-detail, .service-band, .cart-layout, .checkout-layout {
  padding: clamp(34px, 6vw, 72px) clamp(18px, 6vw, 72px);
}
.page-title.compact-title {
  padding-bottom: clamp(12px, 2vw, 22px);
}
.compact-title + .checkout-layout {
  padding-top: 0;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-head, .service-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.section-head { margin-bottom: 22px; }

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

.hot-section { background: linear-gradient(180deg, #ffffff 0%, var(--soft) 100%); }
.similar-products-section { background: #fff; }
.hot-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 23%);
  gap: 18px;
  overflow-x: auto;
  padding: 6px 4px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hot-carousel::-webkit-scrollbar { display: none; }
.carousel-item { scroll-snap-align: start; }
.carousel-controls { display: flex; gap: 8px; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.icon-btn:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

.product-card, .service-card, .stat-card, .login-card, .panel-form, .admin-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(23,33,47,0.07);
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.product-card, .service-card, .review-card, .stat-card { transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease; }
.product-card:hover, .service-card:hover, .review-card:hover, .stat-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(0, 109, 119, 0.28);
}

.product-image, .service-image {
  position: relative;
  display: block;
  aspect-ratio: 1.18;
  background: var(--soft);
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}
.product-image img, .service-image img, .product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-card:hover img, .service-card:hover img { transform: scale(1.04); }
.product-image img, .service-image img { transition: transform 420ms ease; }
.product-card-body,
.service-card-body {
  padding: 16px;
  display: flex;
  flex: 1;
  flex-direction: column;
}
.product-card-body .btn,
.service-card-body .btn {
  align-self: flex-start;
  margin-top: auto;
}
.product-card-body h3 a:hover { color: var(--accent); }
.muted { color: var(--muted); margin: 0 0 8px; }
.price-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.compare {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
}
.compare::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 52%;
  height: 2px;
  background: currentColor;
  opacity: 0.82;
  transform: rotate(-2deg);
}
.price-row strong { font-size: 20px; color: var(--accent-strong); }
.reseller-price-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 12px 0;
}
.reseller-price-box span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.reseller-price-box em {
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}
.reseller-price-box strong {
  font-size: 20px;
}
.reseller-price-box .reseller-price {
  color: var(--sale);
  font-size: 24px;
}
.reseller-price-box.compact {
  display: grid;
  gap: 5px;
  margin: 10px 0;
}
.reseller-price-box.compact span {
  justify-content: space-between;
}
.reseller-price-box.compact em {
  font-size: 12px;
}
.reseller-price-box.compact strong,
.reseller-price-box.compact .reseller-price {
  font-size: 15px;
}
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--sale);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(201,31,55,0.24);
}
.badge.large { font-size: 14px; }
.discount { color: var(--sale); font-weight: 800; }

.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; }
.shop-section { display: grid; gap: 22px; }
.filters {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.filters a { padding: 10px 12px; border-radius: 6px; font-weight: 700; }
.filters .child { padding-left: 28px; color: var(--muted); font-weight: 600; }
.filters .active { background: var(--accent); color: #fff; }
.shop-filter-form { display: grid; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.filter-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.filter-head h3 { margin: 0; font-size: 17px; }
.filter-range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.category-quicklinks { display: grid; gap: 5px; }
.shop-results { min-width: 0; }
.shop-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.shop-results-head p { margin: 0; color: var(--muted); font-weight: 700; }
.empty-results { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); }
.filters-top {
  position: static;
  padding: 16px;
}
.filters-top .shop-filter-form {
  grid-template-columns: minmax(180px, 1.2fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(180px, 1fr) minmax(140px, 0.8fr) minmax(150px, 1fr) auto;
  align-items: end;
  border-bottom: 0;
  padding-bottom: 0;
}
.filters-top .filter-head {
  grid-column: 1 / -1;
}
.filters-top .filter-range {
  grid-template-columns: 1fr 1fr;
}
.filters-top .category-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.filters-top .category-quicklinks a {
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: #fff;
}
.filters-top .category-quicklinks a.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.filters-top .category-quicklinks .child {
  padding-left: 10px;
}
.shop-hero {
  margin: clamp(18px, 3vw, 34px) clamp(18px, 6vw, 72px) 0;
  padding: clamp(30px, 5vw, 54px) clamp(22px, 5vw, 58px);
  border-radius: 12px;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(10, 54, 104, 0.96), rgba(0, 109, 119, 0.86) 52%, rgba(201, 139, 34, 0.82)),
    linear-gradient(180deg, #0f3768, #006d77);
  background-position: center;
  background-size: cover;
  box-shadow: 0 18px 42px rgba(15, 55, 104, 0.16);
}
.shop-hero .eyebrow,
.shop-hero h2,
.shop-hero p {
  color: #fff;
}
.shop-hero .eyebrow {
  opacity: 0.86;
}
.shop-hero h2 {
  margin-bottom: 10px;
}
.shop-hero p:last-child {
  max-width: 680px;
  margin: 0;
  color: rgba(255,255,255,0.82);
}

.product-detail { display: grid; grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr); gap: 44px; align-items: start; }
.product-title { font-size: clamp(28px, 4vw, 46px); max-width: 760px; }
.product-media {
  position: sticky;
  top: 92px;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--soft);
  box-shadow: var(--shadow);
}
.gallery-thumbs {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.88);
  overflow-x: auto;
}
.gallery-thumbs button {
  flex: 0 0 62px;
  width: 62px;
  height: 54px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}
.gallery-thumbs button:hover, .gallery-thumbs button.active { border-color: var(--accent); transform: translateY(-2px); }
.product-price strong { font-size: 30px; }
.notice { padding: 14px 16px; border-left: 5px solid var(--gold); background: #fff8e8; border-radius: 6px; font-weight: 800; margin: 18px 0; }
.notice.danger { border-left-color: var(--sale); background: #fff0f2; color: #8f1527; }
.quantity-prices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 9px;
  margin: 18px 0;
}
.quantity-prices h3 {
  grid-column: 1 / -1;
  font-size: 16px;
  margin: 0 0 2px;
}
.quantity-price-tier {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(23,33,47,0.06);
}
.quantity-price-tier .tier-qty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}
.quantity-price-tier strong {
  color: var(--accent-strong);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
}

.trust-badge-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 14px 0;
}
.checkout-form > .trust-badge-strip,
.checkout-layout > .trust-badge-strip {
  grid-column: 1 / -1;
}
.trust-badge-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  box-shadow: 0 6px 16px rgba(23, 33, 47, 0.04);
}
.trust-badge-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #050505;
  color: #fff;
  overflow: hidden;
}
.trust-badge-icon img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}
.trust-badge-svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trust-badge-card strong,
.trust-badge-card em {
  display: block;
  letter-spacing: 0;
}
.trust-badge-card strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
}
.trust-badge-card em {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.35;
}
.checkout-form .trust-badge-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 8px;
}
.checkout-summary .trust-badge-strip {
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 12px 0 0;
}
.checkout-summary .trust-badge-card {
  justify-content: flex-start;
  min-height: 48px;
  padding: 7px 9px;
  box-shadow: none;
}
.product-info > .trust-badge-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.product-info > .trust-badge-strip .trust-badge-card {
  gap: 7px;
  min-height: 50px;
  padding: 7px 8px;
}
.product-info > .trust-badge-strip .trust-badge-icon {
  width: 30px;
  height: 30px;
}
.product-info > .trust-badge-strip .trust-badge-svg {
  width: 16px;
  height: 16px;
}
.product-info > .trust-badge-strip .trust-badge-card strong {
  font-size: 11px;
}
.product-info > .trust-badge-strip .trust-badge-card em {
  font-size: 10px;
}

label { display: grid; gap: 7px; font-weight: 800; font-size: 14px; }
.label-caption { display: inline-flex; align-items: center; gap: 3px; }
.required-star { color: var(--sale); font-weight: 900; margin-left: 3px; }
.quantity-field {
  align-items: start;
}
.quantity-label-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}
.minimum-quantity-note {
  color: var(--sale);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
}
input, select, textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 109, 119, 0.12);
}
label .password-field {
  position: relative;
  display: block;
  margin-top: 6px;
}
.password-field input {
  padding-right: 48px;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transform: translateY(-50%);
}
.password-toggle:hover,
.password-toggle.active {
  background: var(--soft);
  color: var(--accent);
}
.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.qty-stepper {
  display: inline-grid;
  grid-template-columns: 42px minmax(72px, 120px) 42px;
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
}
.qty-stepper input {
  min-height: 42px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-radius: 0;
  text-align: center;
  box-shadow: none;
}
.qty-stepper button {
  width: 42px;
  min-height: 42px;
  border: 0;
  background: var(--soft);
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}
.qty-stepper button:hover {
  background: var(--accent);
  color: #fff;
}
textarea { resize: vertical; }
.order-form, .panel-form, .admin-form { display: grid; gap: 14px; padding: 18px; margin-top: 18px; }
.option-group {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}
.option-group legend { padding: 0 6px; font-weight: 900; }
.option-choice {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-weight: 700;
}
.option-choice input { width: auto; min-height: auto; }
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
}
.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
}
.checkbox-grid input {
  width: auto;
  min-height: auto;
}
.icon-choice-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.icon-choice {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 104px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: center;
}
.icon-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.icon-choice-preview {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #050505;
  color: #fff;
}
.icon-choice-preview .trust-badge-svg {
  width: 21px;
  height: 21px;
}
.icon-choice strong {
  font-size: 12px;
  line-height: 1.2;
}
.icon-choice:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 109, 119, 0.12);
}
.live-total {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 8px;
  background: var(--accent-soft);
  font-weight: 900;
}
.form-status { margin: 0; font-weight: 800; }
.form-status.success { color: #005ea8; }
.form-status.error, .alert { color: var(--sale); }
.field-error,
.field-error-label select,
.field-error-label input,
.field-error-label textarea {
  border-color: var(--sale) !important;
  box-shadow: 0 0 0 3px rgba(201,31,55,0.12) !important;
}
.field-error-label {
  color: var(--sale);
}
.field-error {
  margin: -4px 0 0;
  color: var(--sale);
  font-size: 13px;
  font-weight: 600;
}
.field-invalid {
  border-color: var(--sale);
  box-shadow: 0 0 0 3px rgba(201,31,55,0.08);
}
.rich-text { margin-top: 24px; color: var(--muted); }
.faq-section { padding-top: 0; }
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(23,33,47,0.06);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 900;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
}
.faq-item[open] summary::after { content: "-"; }
.faq-item div {
  padding: 0 20px 20px;
  color: var(--muted);
}
.faq-admin-form { max-width: none; }
.faq-admin-list {
  display: grid;
  gap: 14px;
}
.faq-admin-item {
  display: grid;
  grid-template-columns: 1fr 1fr 130px 140px auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}
.stars { color: #f4b400; letter-spacing: 0; white-space: nowrap; }
.star-picker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.star-picker button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #cfd6df;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}
.star-picker button.active,
.star-picker button.preview {
  color: #f4b400;
}
.star-picker button:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: none;
}
.rating-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 6px 0 12px; font-weight: 800; color: var(--muted); }
.reviews-section { background: var(--soft); }
.reviews-layout { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.review-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.review-card { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.review-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.review-card p { margin-bottom: 0; color: var(--muted); }
.empty-review {
  grid-column: 1 / -1;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
}
.empty-review h3 { margin-bottom: 6px; }
.empty-review .btn { margin-top: 12px; }
.review-modal-panel {
  width: min(520px, 96vw);
  padding: 0;
  text-align: left;
}
.review-modal-panel .panel-form {
  margin: 0;
  box-shadow: none;
}
.review-modal-panel h3 {
  margin: 0 0 18px;
  color: var(--ink);
}

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.section > .service-grid {
  padding: 0;
}
.home-service-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service-card h2 {
  min-height: 42px;
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.25;
}
.service-card p {
  min-height: 44px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.service-detail { display: grid; grid-template-columns: 1fr 420px; gap: 40px; }
.cart-layout { display: grid; grid-template-columns: 1fr 420px; gap: 28px; align-items: start; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 28px; align-items: start; }
.checkout-form { margin-top: 0; grid-template-columns: repeat(2, 1fr); }
.checkout-form h2 { grid-column: span 2; font-size: 20px; margin: 10px 0 0; }
.checkout-summary {
  position: sticky;
  top: 92px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.checkout-summary img { aspect-ratio: 1.25; width: 100%; object-fit: cover; border-radius: 8px; background: var(--soft); margin-bottom: 14px; }
.summary-items { display: grid; gap: 14px; margin: 16px 0; }
.summary-item { display: grid; grid-template-columns: 34px 76px 1fr auto; gap: 10px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.summary-item img { width: 76px; height: 76px; aspect-ratio: 1; margin: 0; }
.summary-item h3 { font-size: 16px; margin: 0 0 4px; }
.summary-item p { margin: 0; }
.summary-item-actions { display: grid; justify-items: end; gap: 8px; }
.summary-remove-form { margin: 0; }
.form-helper { margin: -4px 0 2px; color: var(--muted); font-size: 14px; font-weight: 700; line-height: 1.55; }
.cart-qty-row { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.cart-qty-label { color: var(--muted); font-size: 13px; font-weight: 700; }
.cart-qty-form { margin: 0; }
.cart-qty-form.qty-stepper { grid-template-columns: 30px 44px 30px; }
.cart-qty-form.qty-stepper button { width: 30px; min-height: 30px; font-size: 14px; }
.cart-qty-form.qty-stepper input { min-height: 30px; padding: 3px; font-size: 14px; }
.summary-title-row { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.summary-title-row h3 { margin-right: auto; }
.icon-delete {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(201,31,55,0.28);
  border-radius: 50%;
  background: #fff5f6;
  color: var(--sale);
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
}
.icon-delete:hover { background: var(--sale); color: #fff; }
.icon-bin svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.coupon-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; margin: 14px 0; }
.coupon-form .form-status { grid-column: 1 / -1; }
.remove-benefit-form {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin: -6px 0 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.remove-benefit-form .text-link {
  color: var(--sale);
}
.summary-line, .summary-total { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-line strong,
.summary-total strong {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: max-content;
}
.summary-line .money,
.summary-total .money {
  justify-content: flex-end;
}
.summary-total { font-size: 20px; border-bottom: 0; }
.cart-retention-card {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(0, 109, 119, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, #f2fbfb, #fff8ea);
}
.cart-retention-card strong {
  font-size: 17px;
}
.cart-retention-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}
.cart-retention-card .btn {
  justify-self: start;
}
.cart-retention-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(23, 33, 47, 0.66);
  overflow-y: auto;
}
.cart-retention-modal.open {
  display: flex;
}
.cart-retention-panel {
  position: relative;
  width: min(440px, 92vw);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-strong);
  animation: fadeUp 220ms ease both;
}
.cart-retention-panel h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.1;
}
.cart-retention-panel p:not(.eyebrow) {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}
@media (max-width: 640px) {
  .cart-retention-panel {
    width: min(360px, 90vw);
    max-height: calc(100vh - 40px);
    padding: 22px;
  }

  .cart-retention-panel h2 {
    font-size: 24px;
  }

  .cart-retention-panel .form-actions {
    grid-template-columns: 1fr;
  }
}
.turnaround { padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); font-weight: 700; }
.payment-methods { display: grid; gap: 10px; }
.payment-methods .label-caption { margin: 0; font-weight: 800; }
.payment-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.payment-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 2px rgba(0,109,119,0.08);
}
.payment-option.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.payment-option input { width: auto; min-height: auto; margin-top: 4px; }
.payment-option input[type="radio"] {
  appearance: auto;
  inline-size: 16px;
  block-size: 16px;
  min-width: 16px;
  min-height: 16px;
  padding: 0;
  margin: 2px 0 0;
  accent-color: var(--accent);
}
.payment-option small { display: block; color: var(--muted); font-weight: 700; margin-top: 3px; }
.accepted-card-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.card-badge {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 34px;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(23,33,47,0.06);
}
.card-badge.visa {
  color: #1434cb;
  font-size: 15px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0;
}
.card-badge.mastercard {
  position: relative;
}
.card-badge.mastercard span {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  top: 8px;
}
.card-badge.mastercard span:first-child {
  left: 14px;
  background: #eb001b;
}
.card-badge.mastercard span:last-child {
  right: 14px;
  background: #f79e1b;
  mix-blend-mode: multiply;
}
.card-icons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.card-icons span {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}
.payment-note {
  margin: 0;
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  background: var(--soft);
  color: var(--muted);
  font-weight: 700;
}
.benefits { padding-left: 20px; font-weight: 700; }
.service-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(0,109,119,0.08), rgba(201,139,34,0.08)),
    var(--soft);
}

.auth-section {
  display: grid;
  place-items: start center;
  padding: clamp(28px, 5vw, 58px) clamp(18px, 6vw, 72px);
}
.auth-title {
  padding-bottom: clamp(16px, 3vw, 28px);
}
.auth-section-tight {
  padding-top: 0;
}
.auth-card {
  width: min(520px, 100%);
  margin-top: 0;
}
.google-auth-box {
  display: grid;
  justify-content: stretch;
  gap: 8px;
}
.google-auth-box .g_id_signin,
.google-auth-box iframe {
  width: 100% !important;
  max-width: none !important;
}
.google-auth-box > div:not(#g_id_onload) {
  width: 100%;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.account-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  padding: clamp(28px, 5vw, 58px) clamp(18px, 6vw, 72px);
  align-items: start;
}
.account-panel,
.account-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23,33,47,0.07);
}
.account-panel {
  position: sticky;
  top: 100px;
  padding: 18px;
}
.account-panel .btn {
  margin-top: 8px;
  margin-right: 8px;
}
.account-main {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.account-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.account-card-head h2 {
  margin: 0;
}
.document-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.referral-wallet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.referral-wallet-grid div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.referral-wallet-grid span {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}
.copy-field {
  max-width: min(420px, 100%);
  font-weight: 800;
  color: var(--accent-strong);
}
.compact-table {
  margin-top: 12px;
}
.compact-table table {
  min-width: 520px;
}
.cash-claim-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}
.bank-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.bank-fields[hidden] {
  display: none;
}
.account-address-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}
.checkbox-line input {
  width: auto;
  min-height: auto;
}
.account-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(23,33,47,0.46);
}
.account-modal.open {
  display: grid;
}
.account-modal-panel {
  position: relative;
  width: min(760px, 96vw);
  max-height: 92vh;
  overflow: auto;
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(23,33,47,0.22);
}
.account-modal-panel h2 {
  margin-bottom: 16px;
}
.account-modal-panel.compact-modal {
  width: min(520px, 96vw);
}
.modal-form {
  box-shadow: none;
  border: 0;
  padding: 0;
  margin-top: 16px;
  gap: 14px;
}
.modal-form .form-actions {
  justify-content: flex-end;
  margin-top: 4px;
}
.order-success-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(23,33,47,0.52);
}
.order-success-modal.open { display: grid; }
.order-success-panel {
  position: relative;
  width: min(500px, 96vw);
  padding: 30px 26px 24px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(23,33,47,0.24);
  text-align: center;
  animation: fadeUp 220ms ease both;
}
.order-success-panel h2 {
  margin: 12px 0 8px;
  color: #128a3a;
}
.order-success-panel p {
  margin: 0 auto 12px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}
.payment-return-panel {
  width: min(560px, 96vw);
  margin: 0 auto;
  gap: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.payment-return-panel .btn {
  width: 100%;
  justify-content: center;
}
.payment-return-panel .form-status.success {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 18px;
}

.rider-body {
  margin: 0;
  background: #f3f6fa;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
.rider-login,
.rider-app {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 16px;
}
.rider-login {
  min-height: 100vh;
  display: grid;
  align-content: center;
}
.rider-top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -16px -16px 16px;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.rider-top div {
  display: grid;
  gap: 2px;
}
.rider-top span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.rider-top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.rider-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.rider-filter select {
  width: 100%;
}
.trip-start-form {
  margin-bottom: 14px;
}
.trip-start-form .btn {
  width: 100%;
  justify-content: center;
}
.rider-report-filter {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.rider-report-filter .btn,
.rider-report-filter select {
  grid-column: span 2;
}
.rider-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.rider-stat-grid article {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(23,33,47,0.06);
}
.rider-stat-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.rider-stat-grid strong {
  font-size: 22px;
}
.rider-list {
  display: grid;
  gap: 12px;
}
.rider-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(23,33,47,0.08);
}
.rider-card.urgent {
  border-color: #d18a00;
  box-shadow: 0 0 0 2px rgba(209,138,0,0.12);
}
.rider-card h1,
.rider-card h2,
.rider-card p {
  margin: 0;
}
.rider-card-head,
.rider-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.rider-actions .btn {
  flex: 1 1 auto;
  justify-content: center;
}
.route-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.route-controls .btn {
  justify-content: center;
}
.rider-payment {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.rider-payment span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--muted);
}
.rider-payment strong {
  font-size: 25px;
  line-height: 1.1;
  font-weight: 950;
}
.rider-payment.cod {
  border-color: #f0c36d;
  background: #fff7e6;
  color: #7a4100;
}
.rider-payment.paid {
  border-color: #bfe8cf;
  background: #eaf8ef;
  color: #137244;
}
.rider-payment.pending {
  border-color: #f2a7b3;
  background: #fff0f2;
  color: #b3132f;
}
.location-missing {
  padding: 10px 12px;
  border: 1px solid #f2a7b3;
  border-radius: 8px;
  background: #fff0f2;
  color: #b3132f;
  font-weight: 950;
}
.icon-btn-text {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.icon-btn-text svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: currentColor;
}
.rider-delivery-form {
  margin-top: 14px;
}
.signature-pad {
  width: 100%;
  height: 180px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  touch-action: none;
}
.order-success-number {
  color: var(--ink) !important;
  font-weight: 900 !important;
}
.order-success-tick {
  display: inline-grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #eafaf0;
}
.order-success-tick svg {
  width: 62px;
  height: 62px;
  fill: none;
  stroke: #18a64f;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.order-success-tick circle {
  stroke-dasharray: 176;
  stroke-dashoffset: 176;
  animation: tickCircle 700ms ease forwards;
}
.order-success-tick path {
  stroke-dasharray: 42;
  stroke-dashoffset: 42;
  animation: tickCheck 420ms ease 520ms forwards;
}
@keyframes tickCircle { to { stroke-dashoffset: 0; } }
@keyframes tickCheck { to { stroke-dashoffset: 0; } }
.mobile-required-panel {
  width: min(480px, 96vw);
}
.mobile-required-form {
  display: grid;
  gap: 14px;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
}
.button-link {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.document-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.admin-document-form {
  display: grid;
  gap: 8px;
  min-width: 260px;
}
.admin-document-form label {
  font-size: 12px;
}
.admin-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 14px 0;
}
.gallery-bulk-bar {
  position: sticky;
  top: 78px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(23, 33, 47, 0.08);
}
.gallery-bulk-bar strong {
  display: block;
  margin-bottom: 2px;
}
.gallery-bulk-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.gallery-bulk-actions .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.sr-only-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.media-picker-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.media-picker-summary span {
  display: grid;
  gap: 3px;
}
.media-picker-summary strong {
  color: var(--ink);
  font-size: 14px;
}
.media-picker-summary em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.media-picker-modal[hidden] {
  display: none;
}
.media-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.58);
}
.media-picker-dialog {
  width: min(1120px, 96vw);
  max-height: 90vh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}
.media-picker-head,
.media-picker-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.media-picker-head h2 {
  margin: 0;
  font-size: 22px;
}
.media-picker-head p {
  margin: 4px 0 0;
}
.media-picker-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.media-picker-upload {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}
.media-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  gap: 12px;
  padding: 18px;
  overflow: auto;
}
.media-picker-card {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 178px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.media-picker-card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(23, 33, 47, 0.08);
}
.media-picker-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 109, 119, 0.12);
}
.media-picker-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.media-picker-card span {
  min-height: 34px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.media-picker-card i {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 22px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}
.media-picker-card.selected i {
  background: var(--accent);
}
.media-picker-card.selected i::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.media-picker-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}
.modal-open {
  overflow: hidden;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 64px;
  min-height: 64px;
  padding: 10px 15px 10px 12px;
  border-radius: 999px;
  background: var(--whatsapp);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(31,168,85,0.32);
  overflow: visible;
  animation: waFloat 2.6s ease-in-out infinite;
}

.floating-whatsapp::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  border: 2px solid rgba(31,168,85,0.24);
  animation: waPulse 1.9s ease-out infinite;
}

.wa-ripple {
  position: absolute;
  inset: -16px;
  border-radius: 999px;
  background: rgba(31,168,85,0.12);
  animation: waGlow 2.6s ease-in-out infinite;
}

.wa-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  font-size: 24px;
  line-height: 1;
}

.wa-text {
  position: relative;
  z-index: 1;
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
  transition: max-width 260ms ease, opacity 260ms ease;
}

.floating-whatsapp:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(31,168,85,0.42);
}

.floating-whatsapp:hover .wa-text {
  max-width: 110px;
  opacity: 1;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: clamp(22px, 5vw, 64px);
  padding: 42px clamp(18px, 6vw, 72px);
  border-top: 1px solid rgba(255,255,255,0.1);
  background: var(--ink);
  color: #fff;
}
.footer-copyright {
  padding: 12px clamp(18px, 6vw, 72px);
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.78);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}
.footer-copyright a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-love-line {
  display: block;
  margin-top: 4px;
}
.footer-heart {
  color: #ed1c24;
  font-size: 1.12em;
  line-height: 1;
}
.footer-column h2 {
  margin-bottom: 16px;
  font-size: 20px;
  color: #fff;
}
.footer-links,
.footer-contact {
  display: grid;
  gap: 10px;
}
.footer-links a,
.footer-contact a {
  color: rgba(255,255,255,0.82);
  font-weight: 700;
}
.footer-links a:hover,
.footer-contact a:hover {
  color: #fff;
  transform: translateX(4px);
}
.footer-contact .contact-icon {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.login-page { min-height: 100vh; display: grid; place-items: center; background: var(--soft); padding: 20px; }
.login-card { width: min(420px, 100%); padding: 24px; display: grid; gap: 14px; }
.admin-body { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; background: var(--soft); }
.admin-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  background: var(--ink);
  color: #fff;
  box-shadow: 8px 0 30px rgba(23, 33, 47, 0.16);
}
.admin-sidebar a { padding: 10px 12px; border-radius: 6px; }
.admin-sidebar a:hover { background: rgba(255,255,255,0.12); transform: translateX(3px); }
.admin-nav-group {
  display: grid;
  gap: 5px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
}
.admin-nav-group span {
  padding: 2px 4px;
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.admin-nav-group a {
  padding: 8px 10px;
  background: rgba(255,255,255,0.04);
}
.admin-main { padding: 28px; overflow-x: auto; }
.admin-head { margin-bottom: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card { padding: 22px; display: grid; gap: 10px; }
.stat-card strong { font-size: 36px; }
.stat-card.highlight { background: var(--ink); color: #fff; }
.dashboard-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; }
.dashboard-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 22px; margin: 22px 0; }
.dashboard-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(23,33,47,0.06);
}
.bar-chart { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 76px 1fr 110px; gap: 10px; align-items: center; }
.bar-row div { height: 12px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.bar-row i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.bar-row strong { text-align: right; }
.mini-list { display: grid; gap: 10px; }
.mini-list div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.admin-form { grid-template-columns: repeat(4, 1fr); align-items: end; margin-bottom: 22px; }
.admin-form.wide { grid-template-columns: repeat(2, 1fr); align-items: stretch; }
.product-filter-form { grid-template-columns: repeat(4, minmax(180px, 1fr)); }
.order-filter-form { grid-template-columns: repeat(5, minmax(150px, 1fr)); }
.admin-list-meta { margin: 0 0 12px; color: var(--muted); font-weight: 800; }
.span-2 { grid-column: span 2; }
.seo-section { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfe; }
.seo-section h2 { font-size: 20px; margin-bottom: 0; }
.wysiwyg-wrap {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.wysiwyg-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #eef2f6;
}
.wysiwyg-toolbar button,
.wysiwyg-toolbar select {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  padding: 6px 10px;
}
.wysiwyg-toolbar button {
  cursor: pointer;
}
.wysiwyg-toolbar button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.wysiwyg-editor {
  min-height: 280px;
  padding: 14px;
  outline: none;
  line-height: 1.6;
  background: #fff;
}
.wysiwyg-editor:focus {
  box-shadow: inset 0 0 0 2px rgba(0,109,119,0.14);
}
.wysiwyg-editor h2,
.wysiwyg-editor h3,
.wysiwyg-editor p,
.wysiwyg-editor ul,
.wysiwyg-editor ol {
  margin: 0 0 12px;
}
.wysiwyg-editor ul,
.wysiwyg-editor ol {
  padding-left: 24px;
}
.wysiwyg-source {
  display: none;
}
.admin-form .inline-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
}
.admin-form .inline-check input {
  width: auto;
  min-height: auto;
}
.contact-details { display: grid; gap: 8px; margin: 18px 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.icon-contact-list { gap: 12px; }
.icon-contact-list p,
.footer-contact a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  margin: 0;
}
.contact-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #eef2f6; font-size: 13px; text-transform: uppercase; }
tr:hover td { background: #fbfcfe; }
.select-col {
  width: 54px;
  text-align: center;
  vertical-align: middle;
}
.admin-check {
  appearance: none;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  padding: 0;
  margin: 0;
  display: inline-grid;
  place-items: center;
  border: 2px solid #b8c4d4;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  box-shadow: none;
}
.admin-check:checked {
  border-color: #0878d8;
  background: #0878d8;
}
.admin-check:checked::after {
  content: "";
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) translateY(-1px);
}
.admin-check:focus-visible {
  outline: 3px solid rgba(8,120,216,0.22);
  outline-offset: 2px;
}
.delivery-schedule-table td.select-col,
.delivery-schedule-table th.select-col {
  padding-left: 10px;
  padding-right: 10px;
}
.delivery-assignment-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}
.delivery-assignment-form .bulk-actions {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 8px 22px rgba(23,33,47,0.06);
}
.delivery-assignment-form .bulk-actions select,
.delivery-assignment-form .bulk-actions .btn {
  min-height: 42px;
}
.delivery-assignment-form .bulk-actions .btn {
  padding-inline: 22px;
}
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form select { min-width: 140px; }
.order-status-actions {
  display: grid;
  gap: 8px;
  justify-items: start;
  min-width: 150px;
}
.orders-table th:last-child,
.orders-table td:last-child {
  width: 170px;
  min-width: 170px;
}
.actions-cell { display: flex; gap: 12px; align-items: center; }
.announcement-preview { display: inline-flex; padding: 8px 12px; border-radius: 6px; font-weight: 900; }
.admin-thumb { width: 120px; height: 70px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.image-attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.image-attachment {
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}
.image-attachment img {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
  border-radius: 6px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.image-attachment .remove-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sale);
  font-weight: 900;
}
.image-attachment input[type="checkbox"] {
  width: auto;
  min-height: auto;
}
.status-pill { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 900; text-transform: uppercase; background: #eef2f6; color: var(--ink); }
.status-pill.approved { background: #e5f7ed; color: #137244; }
.status-pill.pending { background: #fff4d8; color: #8a5a00; }
.status-pill.rejected { background: #ffe5e9; color: #9a1b30; }
.status-pill.new, .status-pill.proof_pending { background: #fff4d8; color: #8a5a00; }
.status-pill.production, .status-pill.preparing_for_ship, .status-pill.out_for_delivery { background: #e8f2ff; color: #155aa8; }
.status-pill.delivered, .status-pill.completed { background: #e5f7ed; color: #137244; }
.status-pill.cancelled { background: #ffe5e9; color: #9a1b30; }
.status-pill.available { background: #e5f7ed; color: #137244; }
.status-pill.redeemed { background: #e8f2ff; color: #155aa8; }
.status-pill.paid_out { background: #e5f7ed; color: #137244; }
.status-pill.paid { background: #e5f7ed; color: #137244; }
.status-pill.urgent { background: #ffe5e9; color: #9a1b30; }
.status-pill.cod { background: #fff4d8; color: #8a5a00; }
.assignment-warning {
  margin: 6px 0 0;
  max-width: 240px;
  color: #b3132f;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}
.urgent-order-row td { background: #fffafa; }
.urgent-order-row:hover td { background: #fff3f5; }
.tracking-hero { background: linear-gradient(180deg, #ffffff 0%, var(--soft) 100%); }
.tracking-page { padding: clamp(34px, 6vw, 72px) clamp(18px, 6vw, 72px); }
.tracking-search { max-width: 720px; margin: 0 auto 24px; grid-template-columns: 1fr auto; align-items: end; }
.tracking-card { padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.tracking-card-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.tracking-progress {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
  margin: 26px 0;
}
.track-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.track-step::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--line);
  z-index: 0;
}
.track-step:first-child::before { left: 50%; }
.track-step:last-child::before { right: 50%; }
.track-step span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--line);
}
.track-step.done { color: #137244; }
.track-step.done::before { background: #25a55b; }
.track-step.done span { background: #25a55b; border-color: #25a55b; color: #fff; }
.track-step.current span { box-shadow: 0 0 0 6px rgba(37,165,91,0.16); }

body:not(.admin-body) .eyebrow {
  margin-bottom: 6px;
  font-size: 10px;
}

body:not(.admin-body) h2 {
  font-size: clamp(23px, 3vw, 34px);
}

body:not(.admin-body) h3 {
  font-size: 18px;
}

body:not(.admin-body) .section,
body:not(.admin-body) .page-title,
body:not(.admin-body) .shop-layout,
body:not(.admin-body) .shop-section,
body:not(.admin-body) .product-detail,
body:not(.admin-body) .service-grid,
body:not(.admin-body) .service-detail,
body:not(.admin-body) .service-band,
body:not(.admin-body) .cart-layout,
body:not(.admin-body) .checkout-layout {
  padding-top: clamp(28px, 4.4vw, 54px);
  padding-bottom: clamp(28px, 4.4vw, 54px);
}

body:not(.admin-body) .page-title.compact-title {
  padding-bottom: 8px;
}

body:not(.admin-body) .compact-title + .checkout-layout {
  padding-top: 10px;
}

body:not(.admin-body) .page-title.shop-hero {
  padding-top: clamp(30px, 5vw, 54px);
  padding-bottom: clamp(30px, 5vw, 54px);
}

body:not(.admin-body) .section-head {
  margin-bottom: 18px;
}

body:not(.admin-body) .product-grid {
  gap: 18px;
}

body:not(.admin-body) .product-card-body {
  padding: 14px;
}

body:not(.admin-body) .product-card-body h3 {
  margin-bottom: 7px;
  font-size: 15px;
}

body:not(.admin-body) .product-card-body .muted {
  font-size: 13px;
  line-height: 1.45;
}

body:not(.admin-body) .filters a {
  font-weight: 500;
}

body:not(.admin-body) .filters .child {
  font-weight: 400;
}

body:not(.admin-body) .shop-results-head p {
  font-weight: 500;
}

body:not(.admin-body) .hot-carousel .carousel-item {
  display: flex;
}

body:not(.admin-body) .hot-carousel .product-card {
  min-height: 474px;
}

body:not(.admin-body) .hot-carousel .product-image,
body:not(.admin-body) .product-grid .product-image,
body:not(.admin-body) .service-grid .service-image {
  aspect-ratio: 1.12;
}

body:not(.admin-body) .hot-carousel .product-image img,
body:not(.admin-body) .product-grid .product-image img,
body:not(.admin-body) .service-grid .service-image img {
  object-fit: contain;
  padding: 10px;
  background: #f3f5f8;
}

body:not(.admin-body) .product-card-body h3,
body:not(.admin-body) .service-card-body h2 {
  min-height: 36px;
  margin-bottom: 7px;
  font-size: 15px;
  line-height: 1.25;
}

body:not(.admin-body) .product-card-body .muted,
body:not(.admin-body) .service-card-body p {
  min-height: 38px;
  font-size: 13px;
  line-height: 1.45;
}

body:not(.admin-body) .price-row {
  margin: 10px 0;
}

body:not(.admin-body) .price-row strong {
  font-size: 17px;
}

body:not(.admin-body) .product-card .btn-small,
body:not(.admin-body) .service-card .btn-small {
  min-height: 32px;
  padding: 7px 12px;
  font-size: 11px;
}

body:not(.admin-body) .service-band h2 {
  max-width: 980px;
  font-size: clamp(24px, 3.2vw, 36px);
}

body:not(.admin-body) .site-footer {
  padding-top: 34px;
  padding-bottom: 34px;
}

body:not(.admin-body) .footer-column h2 {
  font-size: 17px;
}

body:not(.admin-body) .footer-links a,
body:not(.admin-body) .footer-contact a {
  font-size: 13px;
  line-height: 1.5;
}

body:not(.admin-body) {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: #1d2939;
}

body:not(.admin-body) h1,
body:not(.admin-body) h2,
body:not(.admin-body) h3 {
  color: #1d2939;
  font-weight: 700;
  letter-spacing: 0;
}

body:not(.admin-body) h1 {
  font-size: clamp(34px, 5vw, 58px);
}

body:not(.admin-body) h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
}

body:not(.admin-body) h3 {
  font-size: 17px;
  line-height: 1.25;
}

body:not(.admin-body) .page-title h2 {
  font-size: clamp(27px, 3.2vw, 36px);
}

body:not(.admin-body) .main-nav {
  font-size: 14px;
  font-weight: 600;
}

body:not(.admin-body) .eyebrow {
  font-weight: 700;
}

body:not(.admin-body) label,
body:not(.admin-body) .label-caption {
  font-size: 13px;
  font-weight: 600;
}

body:not(.admin-body) input,
body:not(.admin-body) select,
body:not(.admin-body) textarea {
  font-size: 14px;
  font-weight: 400;
}

body:not(.admin-body) input::placeholder,
body:not(.admin-body) textarea::placeholder {
  color: #8a96a8;
  font-weight: 400;
}

body:not(.admin-body) .btn {
  font-weight: 700;
}

body:not(.admin-body) .checkout-form h2 {
  font-size: clamp(23px, 2.3vw, 28px);
  font-weight: 700;
  margin-top: 12px;
}

body:not(.admin-body) .checkout-summary {
  box-shadow: 0 14px 34px rgba(23,33,47,0.08);
}

body:not(.admin-body) .checkout-summary h2 {
  font-size: clamp(24px, 2.5vw, 30px);
}

body:not(.admin-body) .summary-item h3,
body:not(.admin-body) .summary-title-row h3 {
  font-size: 15px;
  font-weight: 600;
}

body:not(.admin-body) .summary-line,
body:not(.admin-body) .summary-total {
  font-size: 15px;
}

body:not(.admin-body) .summary-line strong,
body:not(.admin-body) .summary-total strong {
  font-weight: 700;
}

body:not(.admin-body) .notice {
  font-weight: 600;
}

body:not(.admin-body) .payment-methods .label-caption {
  font-weight: 700;
}

body:not(.admin-body) .payment-option strong {
  font-weight: 700;
}

body:not(.admin-body) .payment-option small,
body:not(.admin-body) .payment-note {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

body:not(.admin-body) .card-icons span {
  font-weight: 700;
}

body:not(.admin-body) .site-footer,
body:not(.admin-body) .site-footer a {
  font-weight: 500;
}

body:not(.admin-body) .footer-column h2 {
  font-weight: 700;
}

body:not(.admin-body) .site-footer .footer-column h2 {
  color: rgba(255,255,255,0.94) !important;
  opacity: 1;
}

.admin-body {
  grid-template-columns: 260px minmax(0, 1fr);
  grid-template-rows: 64px minmax(0, 1fr);
  background:
    radial-gradient(circle at 74% 0%, rgba(0,109,119,0.08), transparent 32%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  grid-row: 1 / span 2;
  height: 100vh;
  overflow-y: auto;
  gap: 8px;
  padding: 14px 10px;
  background: #142030;
  color: #fff;
}

.admin-brand {
  margin: 0 0 10px;
  padding: 8px 8px;
}

.admin-logo-frame {
  width: 210px;
  height: 64px;
}

.admin-menu {
  display: grid;
  gap: 5px;
}

.admin-menu a,
.admin-logout,
.admin-nav-group a,
.admin-nav-group summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 6px;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.admin-menu a:hover,
.admin-logout:hover,
.admin-nav-group a:hover,
.admin-menu a.active,
.admin-nav-group a.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
  transform: translateX(3px);
}

.admin-menu a.active,
.admin-nav-group a.active {
  box-shadow: inset 4px 0 0 var(--gold);
}

.admin-menu-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}

.admin-nav-group {
  margin-top: 6px;
  gap: 4px;
  padding: 6px;
  background: rgba(255,255,255,0.04);
}

.admin-nav-group summary {
  list-style: none;
}

.admin-nav-group summary::-webkit-details-marker { display: none; }

.admin-nav-group summary::after {
  content: "+";
  margin-left: auto;
  color: rgba(255,255,255,0.6);
  font-weight: 900;
}

.admin-nav-group[open] summary::after { content: "-"; }

.admin-nav-group > span,
.admin-nav-group summary {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.68);
}

.admin-nav-group a {
  margin-left: 30px;
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.admin-logout {
  margin-top: 8px;
  background: rgba(201,31,55,0.12);
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 26px;
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(1.2);
}

.admin-topbar strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-action-btn,
.admin-action-icon,
.admin-mobile-menu-toggle {
  display: inline-grid;
  place-items: center;
  min-height: 36px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(23,33,47,0.08);
  font-weight: 900;
}

.admin-action-btn { padding: 0 13px; font-size: 14px; }
.admin-mobile-menu-toggle { display: none; padding: 0 13px; font-size: 14px; cursor: pointer; }
.admin-action-icon { width: 36px; color: var(--accent-strong); }
.admin-action-btn:hover,
.admin-action-icon:hover,
.admin-mobile-menu-toggle:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.admin-main {
  padding: 22px 26px;
  overflow-x: auto;
}

.admin-head {
  padding: 0 0 10px;
}

.admin-head h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 6px;
}

.admin-head p {
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
}

.stat-grid {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}

.stat-card,
.dashboard-panel,
.admin-form,
.panel-form,
.table-wrap {
  border-radius: 8px;
  border-color: rgba(216,222,232,0.9);
  box-shadow: 0 8px 22px rgba(23,33,47,0.06);
}

.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 104px;
  padding: 16px 18px;
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0,109,119,0.08);
}

.stat-card span {
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
}

.stat-card strong {
  font-size: 30px;
  line-height: 1;
}

.stat-card.highlight {
  background: linear-gradient(135deg, #142030, #0b4d58);
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  gap: 16px;
  margin: 16px 0;
}

.dashboard-panel h2 {
  font-size: clamp(22px, 2.4vw, 30px);
}

.bar-row div {
  height: 11px;
  background: #edf3f7;
}

.bar-row i {
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f1f5f9;
  color: var(--muted);
}

th, td {
  padding: 10px 12px;
  font-size: 14px;
}

td {
  background: #fff;
}

.admin-form,
.panel-form {
  background: rgba(255,255,255,0.94);
}

.spam-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.admin-form [hidden],
.panel-form [hidden] {
  display: none !important;
}

.admin-form,
.panel-form {
  gap: 12px;
  padding: 16px;
}

.admin-form label,
.panel-form label {
  gap: 6px;
  font-size: 13px;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.panel-form input,
.panel-form select,
.panel-form textarea {
  min-height: 40px;
  padding: 8px 10px;
  font-size: 14px;
  background: #fbfdff;
}

.btn {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
}

.btn-small {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes waPulse {
  0% { transform: scale(0.86); opacity: 0.72; }
  100% { transform: scale(1.34); opacity: 0; }
}

@keyframes waGlow {
  0%, 100% { opacity: 0.45; transform: scale(0.96); }
  50% { opacity: 0.9; transform: scale(1.08); }
}

@keyframes waFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (max-width: 980px) {
  .announcement-bar {
    min-height: 48px;
  }
  .announcement-item {
    padding: 8px 14px;
    font-size: 13px !important;
    line-height: 1.25;
  }
  .nav-toggle { display: inline-grid; place-items: center; }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-height: calc(100dvh - 150px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .site-logo-frame { width: min(210px, 52vw); height: 58px; }
  .main-nav.open { display: flex; }
  .nav-group { padding: 0; }
  .nav-group-head { justify-content: space-between; }
  .nav-submenu-toggle { display: inline-grid; place-items: center; }
  .nav-group.open .nav-submenu-toggle { transform: rotate(180deg); }
  .submenu {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    display: none;
    box-shadow: none;
    border: 0;
    padding: 4px 0 6px 12px;
  }
  .nav-group.open .submenu { display: grid; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-layout, .product-detail, .service-detail, .cart-layout, .checkout-layout, .reviews-layout, .dashboard-grid { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .account-panel { position: static; }
  .account-address-form { grid-template-columns: 1fr; }
  .referral-wallet-grid { grid-template-columns: 1fr; }
  .cash-claim-form, .bank-fields { grid-template-columns: 1fr; }
  .document-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters-top .shop-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters-top .filter-head { grid-column: 1 / -1; }
  .product-media, .filters { position: static; }
  .checkout-summary { position: static; }
  .checkout-form { grid-template-columns: 1fr; }
  .checkout-form h2 { grid-column: auto; }
  .service-grid, .stat-grid { grid-template-columns: 1fr 1fr; }
  .home-service-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-badge-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-info > .trust-badge-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .icon-choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .review-list { grid-template-columns: 1fr; }
  .hot-carousel { grid-auto-columns: minmax(240px, 46%); }
  .tracking-progress { grid-template-columns: 1fr; gap: 14px; }
  .track-step { grid-template-columns: 44px 1fr; justify-items: start; text-align: left; }
  .track-step::before { top: 0; bottom: 0; left: 18px !important; right: auto !important; width: 4px; height: auto; }
  .tracking-search { grid-template-columns: 1fr; }
  .admin-body {
    display: block;
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 70;
    width: min(86vw, 320px);
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    padding: 14px 12px 84px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-105%);
    transition: transform 220ms ease;
    box-shadow: 18px 0 42px rgba(23,33,47,0.28);
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-body.admin-menu-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 65;
    background: rgba(23,33,47,0.48);
  }
  .admin-brand {
    margin: 0;
    padding: 6px 4px 8px;
  }
  .admin-logo-frame {
    width: min(190px, 54vw);
    height: 54px;
  }
  .admin-menu,
  .admin-sidebar > .admin-nav-group,
  .admin-logout {
    display: grid;
    gap: 7px;
    overflow: visible;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
  .admin-menu a,
  .admin-logout,
  .admin-nav-group summary {
    flex: 0 0 auto;
    min-height: 36px;
    white-space: nowrap;
  }
  .admin-sidebar > .admin-nav-group {
    display: grid;
    overflow: visible;
  }
  .admin-sidebar > .admin-nav-group[open] {
    max-height: none;
    overflow: visible;
  }
  .admin-nav-group a {
    margin-left: 0;
  }
  .admin-topbar { position: sticky; padding: 12px 18px; top: 0; z-index: 40; }
  .admin-mobile-menu-toggle { display: inline-grid; }
  .admin-main { padding: 22px 18px; }
  .admin-form, .admin-form.wide { grid-template-columns: 1fr; }
  .faq-admin-item { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
}

@media (max-width: 620px) {
  h1 { font-size: 38px; }
  .hero-slider {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
    background: #fff;
  }
  .hero-slide {
    padding: 0;
    align-items: end;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
  .hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(23,33,47,0.12);
  }
  .hero-content {
    display: none;
  }
  .hero-dots {
    left: 22px;
    bottom: 16px;
  }
  .hero-dots button {
    width: 30px;
    height: 5px;
    background: rgba(255,255,255,0.58);
  }
  .hero-dots button.active {
    width: 48px;
  }
  .site-header {
    padding: 10px 16px;
  }
  .site-logo-frame {
    width: min(210px, 58vw);
    height: 64px;
  }
  .main-nav {
    top: 86px;
    left: 12px;
    right: 12px;
    max-height: calc(100dvh - 150px);
  }
  .section-head, .service-band { align-items: flex-start; flex-direction: column; }
  .site-footer { grid-template-columns: 1fr; }
  .dashboard-head { align-items: flex-start; flex-direction: column; }
  .product-grid, .service-grid, .stat-grid { grid-template-columns: 1fr; }
  .home-service-grid { grid-template-columns: 1fr; }
  .product-media {
    display: grid;
    gap: 10px;
    aspect-ratio: auto;
    overflow: visible;
    background: transparent;
    box-shadow: none;
  }
  .product-media > img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }
  .gallery-thumbs {
    position: static;
    display: flex;
    width: 100%;
    padding: 8px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 10px 24px rgba(23,33,47,0.08);
  }
  .gallery-thumbs button {
    flex-basis: 58px;
    width: 58px;
    height: 52px;
  }
  .trust-badge-strip,
  .product-info > .trust-badge-strip,
  .checkout-form .trust-badge-strip { grid-template-columns: 1fr; }
  .trust-badge-card { justify-content: flex-start; min-height: 56px; }
  .icon-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .document-grid { grid-template-columns: 1fr; }
  .filters-top .shop-filter-form { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 1fr; }
  .bar-row strong { text-align: left; }
  .hot-carousel { grid-auto-columns: 88%; }
  .form-actions { align-items: stretch; }
  .form-actions .btn { width: 100%; }
  .tracking-card-head { flex-direction: column; }
  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    min-width: 58px;
    min-height: 58px;
    padding: 8px;
  }
  .wa-text { display: none; }
  .wa-icon { width: 42px; height: 42px; }
}

@media (max-width: 480px) {
  .admin-topbar {
    align-items: flex-start;
    gap: 10px;
  }
  .admin-top-actions {
    gap: 7px;
  }
  .admin-action-btn {
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }
  .admin-mobile-menu-toggle {
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }
  .admin-action-icon {
    width: 34px;
    min-height: 34px;
  }
  .admin-head h2 {
    font-size: 28px;
  }
}

@media (max-width: 760px) {
  .delivery-assignment-form .bulk-actions {
    grid-template-columns: 1fr;
  }
}

.admin-body {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}

.admin-body h1,
.admin-body h2,
.admin-body h3 {
  letter-spacing: 0;
  font-weight: 650;
}

.admin-head h2 {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 650;
}

.admin-head p,
.admin-body .muted,
.admin-body td,
.admin-body label {
  font-size: 13px;
  font-weight: 400;
}

.admin-body .eyebrow {
  font-weight: 650;
}

.admin-body label,
.admin-body .admin-form label,
.admin-body .panel-form label {
  color: #1f2937;
  font-weight: 600;
}

.admin-body input,
.admin-body select,
.admin-body textarea {
  font-weight: 400;
}

.admin-body input::placeholder,
.admin-body textarea::placeholder {
  font-weight: 400;
  color: #7b8494;
}

.admin-body strong,
.admin-body b {
  font-weight: 650;
}

.admin-body .btn {
  font-weight: 650;
}

.admin-body .text-link {
  font-weight: 600;
}

.admin-body .admin-action-btn,
.admin-body .admin-action-icon,
.admin-body .admin-mobile-menu-toggle {
  font-weight: 650;
}

.admin-body .admin-menu a,
.admin-body .admin-logout,
.admin-body .admin-nav-group a,
.admin-body .admin-nav-group summary {
  font-weight: 600;
}

.admin-body .admin-nav-group > span {
  font-weight: 650;
}

.admin-body .admin-nav-group summary::after {
  font-weight: 700;
}

.admin-body .admin-topbar strong {
  font-weight: 650;
}

.admin-body .stat-card span {
  font-weight: 600;
}

.admin-body .stat-card strong {
  font-weight: 650;
}

.admin-body .dashboard-panel h2 {
  font-weight: 650;
}

.admin-body .bar-row strong {
  font-weight: 600;
}

.admin-body th {
  font-weight: 600;
}

.admin-body .admin-list-meta,
.admin-body .form-status,
.admin-body .form-helper,
.admin-body .status-pill {
  font-weight: 600;
}

.admin-main {
  padding: 22px;
}

.admin-form,
.panel-form,
.table-wrap {
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(23, 33, 47, 0.06);
}

.admin-form,
.panel-form {
  padding: 16px;
  gap: 12px;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.panel-form input,
.panel-form select,
.panel-form textarea {
  min-height: 38px;
  font-size: 13px;
}

.admin-body th,
.admin-body td {
  padding: 10px;
}

.admin-menu a,
.admin-nav-group summary {
  min-height: 38px;
  font-size: 13px;
}

.admin-topbar strong {
  font-size: 16px;
}

.admin-form .wysiwyg-wrap {
  display: grid;
  grid-column: span 2;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.admin-form .wysiwyg-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #eef2f6;
}
.admin-form .wysiwyg-toolbar select {
  width: auto;
  min-width: 150px;
  max-width: 180px;
  min-height: 34px;
  padding: 6px 10px;
}
.admin-form .wysiwyg-toolbar button {
  width: auto;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.admin-form .wysiwyg-editor {
  min-height: 420px;
  padding: 18px;
  background: #fff;
  outline: none;
  line-height: 1.65;
  font-weight: 500;
}
.admin-form .wysiwyg-editor:focus {
  box-shadow: inset 0 0 0 2px rgba(0,109,119,0.16);
}
.admin-form .wysiwyg-editor p,
.admin-form .wysiwyg-editor h2,
.admin-form .wysiwyg-editor h3,
.admin-form .wysiwyg-editor ul,
.admin-form .wysiwyg-editor ol {
  margin: 0 0 14px;
}
.admin-form .wysiwyg-editor ul,
.admin-form .wysiwyg-editor ol {
  padding-left: 24px;
}
.admin-form textarea.wysiwyg-source,
.admin-form textarea.wysiwyg-source[hidden] {
  display: none !important;
}
.admin-form .tox.tox-tinymce {
  grid-column: span 2;
  border-color: var(--line);
  border-radius: 8px;
  height: 680px !important;
  min-height: 680px !important;
}
.admin-form .tinymce-editor {
  min-height: 420px;
}
.admin-form label.span-2:has(.tinymce-editor) {
  display: grid;
  gap: 8px;
}

.pos-body {
  margin: 0;
  background: #eef3f8;
  color: var(--ink);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}
.pos-app {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0 36px;
}
.pos-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.pos-brand,
.pos-login-card {
  display: grid;
  gap: 4px;
}
.pos-brand {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}
.pos-logo-small {
  width: 126px;
  max-height: 54px;
  object-fit: contain;
  object-position: left center;
}
.pos-logo {
  width: 180px;
  max-height: 78px;
  object-fit: contain;
  object-position: left center;
}
.pos-brand small {
  display: block;
}
.pos-top span,
.pos-brand small {
  color: var(--muted);
  font-weight: 700;
}
.pos-top nav {
  display: flex;
  gap: 8px;
}
.pos-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.pos-login-card {
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(23,33,47,0.12);
}
.pos-order-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23,33,47,0.06);
}
.pos-order-form h1,
.pos-order-form .span-2 {
  grid-column: span 2;
}
.pos-order-form h1 {
  margin: 0;
  font-size: 24px;
}
.pos-delivery-fields {
  display: none;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}
.pos-delivery-fields.active {
  display: grid;
}
.pos-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.pos-stats article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.pos-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.pos-stats strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}
.pos-recent {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.pos-recent h2 {
  margin: 10px 0 0;
}
.pos-recent article {
  display: grid;
  grid-template-columns: 1fr 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.pos-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.58);
}
.pos-confirm-modal[hidden] {
  display: none;
}
.pos-confirm-card {
  position: relative;
  width: min(620px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}
.pos-confirm-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}
.pos-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.pos-summary-product {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}
.pos-summary-product img {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}
.pos-summary-product strong {
  display: block;
  font-size: 20px;
}
.pos-summary-product span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}
.pos-summary-lines {
  display: grid;
  gap: 0;
  margin: 14px 0;
  border-top: 1px solid var(--line);
}
.pos-summary-lines div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.pos-summary-lines dt,
.pos-summary-lines dd {
  margin: 0;
}
.pos-summary-lines dt {
  color: var(--muted);
  font-weight: 800;
}
.pos-summary-lines dd {
  text-align: right;
  font-weight: 900;
}
.pos-summary-lines .grand {
  font-size: 20px;
  color: #005995;
}
.pos-report-filter {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.pos-report-send {
  display: flex;
  justify-content: flex-end;
  margin: 10px 0 18px;
}
.pos-report-send .btn {
  min-width: 180px;
}
@media (max-width: 760px) {
  .pos-order-form,
  .pos-delivery-fields,
  .pos-report-filter,
  .pos-stats {
    grid-template-columns: 1fr;
  }
  .pos-order-form h1,
  .pos-order-form .span-2 {
    grid-column: auto;
  }
  .pos-recent article {
    grid-template-columns: 1fr;
  }
}
