/* ===================================================
   UNEED IT Services — Global Stylesheet
   Brand: #0a89d8 (blue), #071b3a (navy), #fff (white)
   =================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  background: #f0f4f8;
  color: #1a2332;
  line-height: 1.6;
  font-size: 15px;
}
a { text-decoration: none; color: inherit; }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; font-size: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: #071b3a; font-weight: 700; line-height: 1.25; }
h1 { font-size: 2rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.15rem; }

/* ---------- Layout ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 5%; }
.section { padding: 60px 5%; max-width: 1280px; margin: 0 auto; }
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 28px;
}
.section-title h1, .section-title h2 { margin: 0; }

/* ---------- Top Contact Bar ---------- */
.topbar {
  background: #071b3a;
  color: white;
  padding: 7px 5%;
  display: flex;
  gap: 4px;
  font-size: 13px;
  flex-wrap: wrap;
  align-items: center;
}
.contact-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #a8c8e8 !important;
  background: transparent;
  border: 0;
  padding: 5px 12px;
  font-weight: 600;
  font-size: 13px;
  border-radius: 4px;
  transition: color .2s, background .2s;
  cursor: pointer;
}
.contact-action:hover { color: #fff !important; background: rgba(255,255,255,.08); }
.contact-action svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }

/* ---------- Main Header / Navbar ---------- */
header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(7,27,58,.10);
  border-bottom: 3px solid #0a89d8;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #071b3a;
  flex-shrink: 0;
}
.brand img {
  width: 96px;
  height: 64px;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: multiply;
}
nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
nav a {
  color: #344054;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background .18s, color .18s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
nav a:hover { background: #f0f6fc; color: #0a89d8; }
nav a.active-link { background: #e8f4fd; color: #0a89d8; font-weight: 700; }
.header-user {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 14px;
  color: #344054;
  border-radius: 6px;
  background: #f7f9fc;
  border: 1px solid #e3e9f2;
}
.admin-notification-count {
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e02424;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  padding: 0 5px;
}
nav a.active-link .admin-notification-count { background: white; color: #0a89d8; }
.header-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #071b3a !important;
  background: transparent;
  border: 0;
  padding: 7px 11px;
  border-radius: 6px;
  transition: background .18s;
}
.header-cart:hover { background: #f0f6fc; }
.header-cart.active-link { background: #e8f4fd; }
.header-cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}
.header-cart-icon svg { width: 26px; height: 26px; fill: #071b3a; }
.header-cart-icon span {
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e02424;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.header-cart strong { font-size: 14px; font-weight: 700; color: #071b3a; }
.header-cart:hover strong { color: #0a89d8; }
.header-cart.active-link strong { color: #0a89d8; }

/* ---------- Hamburger button (desktop: hidden) ---------- */
.nav-toggle-btn {
  display: none;
  width: 42px; height: 42px;
  background: transparent;
  border: 1.5px solid #d8e3f0;
  border-radius: 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: border-color .2s, background .2s;
}
.nav-toggle-btn:hover { background: #f0f4f8; border-color: #0a89d8; }
.nav-toggle-btn span {
  display: block;
  width: 20px; height: 2px;
  background: #071b3a;
  border-radius: 2px;
  transition: transform .32s cubic-bezier(.4,0,.2,1),
              opacity .22s, width .22s;
  transform-origin: center;
}
.nav-toggle-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle-btn.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Drawer chrome (hidden on desktop) ---------- */
.drawer-header { display: none; }
.header-actions { display: none; }
.header-cart-sm { display: none; }

/* ---------- Drawer overlay (injected by JS into <body>) ---------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 27, 58, .55);
  z-index: 149;
  opacity: 0;
  pointer-events: none;
  transition: opacity .32s;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.nav-overlay.active { opacity: 1; pointer-events: auto; }

/* ---------- Buttons ---------- */
.btn, .cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #0a89d8;
  color: #fff !important;
  border: 0;
  border-radius: 7px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s, transform .12s, box-shadow .18s;
  line-height: 1.2;
  white-space: nowrap;
}
.btn:hover, .cart:hover { background: #0875ba; box-shadow: 0 4px 14px rgba(10,137,216,.3); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn.secondary-btn { background: #071b3a; }
.btn.secondary-btn:hover { background: #0d2850; box-shadow: 0 4px 14px rgba(7,27,58,.25); }
.btn.small-btn { padding: 8px 15px; font-size: 13px; }
.btn.danger-btn { background: #d92d20; }
.btn.danger-btn:hover { background: #b91c1c; box-shadow: 0 4px 14px rgba(217,45,32,.3); }
.btn.done-btn { background: #16a34a; }
.btn.done-btn:hover { background: #15803d; }
.btn.outline-btn { background: transparent; border: 2px solid #0a89d8; color: #0a89d8 !important; }
.btn.outline-btn:hover { background: #0a89d8; color: #fff !important; }
.disabled-btn, .disabled-btn:hover {
  background: #94a3b8 !important;
  color: #fff !important;
  cursor: not-allowed;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
}
.plus {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #0a89d8;
  color: white;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  transition: background .18s;
}
.plus:hover { background: #0875ba; }

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 480px;
  background: #071b3a;
  color: white;
  display: flex;
  align-items: center;
  padding: 60px 5%;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, rgba(7,27,58,.95) 0%, rgba(10,100,180,.6) 100%);
}
.hero-slide {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  will-change: opacity;
}
.hero-slide.active { opacity: 1; }
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(10,137,216,.25);
  border: 1px solid rgba(10,137,216,.5);
  color: #74c7f7;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 {
  color: white;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.hero p {
  font-size: 1.1rem;
  color: #c5d9f0;
  margin-bottom: 28px;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn { border-radius: 8px; padding: 13px 28px; font-size: 15px; }
.hero .btn.outline-btn { border-color: rgba(255,255,255,.5); color: #fff !important; }
.hero .btn.outline-btn:hover { background: rgba(255,255,255,.15); border-color: #fff; }

/* ---------- Searchbar ---------- */
.searchbar {
  background: #fff;
  margin: -1px 5% 0;
  padding: 16px 20px;
  border-radius: 0 0 12px 12px;
  display: flex;
  gap: 10px;
  box-shadow: 0 6px 24px rgba(7,27,58,.10);
  position: relative;
  z-index: 5;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.searchbar input {
  flex: 1;
  padding: 11px 16px;
  border: 1.5px solid #d8e3f0;
  border-radius: 7px;
  font-size: 14px;
  color: #1a2332;
  background: #f8fafd;
  transition: border-color .18s;
}
.searchbar input:focus { outline: none; border-color: #0a89d8; background: #fff; }
.searchbar .btn { border-radius: 7px; }

/* ---------- Forms (global) ---------- */
.form input, .form textarea, .form select,
.formbox input, .formbox textarea, .formbox select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #d1dae8;
  border-radius: 8px;
  font-size: 14px;
  color: #1a2332;
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
  font-family: inherit;
}
.form input:focus, .form textarea:focus, .form select:focus,
.formbox input:focus, .formbox textarea:focus, .formbox select:focus {
  outline: none;
  border-color: #0a89d8;
  box-shadow: 0 0 0 3px rgba(10,137,216,.12);
}
.form textarea, .formbox textarea {
  border-radius: 8px;
  min-height: 110px;
  resize: vertical;
}
.form label { display: grid; gap: 6px; font-weight: 600; color: #344054; font-size: 14px; }
.formbox input, .formbox textarea, .formbox select { margin: 8px 0; }
.form-note { margin: 0 0 10px; color: #64748b; font-size: 13px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.file-upload { display: grid; gap: 6px; font-weight: 600; color: #344054; font-size: 14px; }
.file-upload input { cursor: pointer; }
.product-upload {
  border: 2px dashed #c3d5e8;
  background: #f8fafd;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

/* ---------- Cards & Panels ---------- */
.card, .formbox, .panel, .empty {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 16px rgba(7,27,58,.07);
}
.card { border-top: 3px solid #0a89d8; }
.empty {
  text-align: center;
  padding: 56px 28px;
  color: #64748b;
  border: 2px dashed #d8e3f0;
  border-radius: 12px;
  background: #f8fafd;
}
.empty h3 { margin-bottom: 8px; color: #344054; }

/* ---------- Alerts / Messages ---------- */
.message, .alert {
  padding: 13px 16px;
  background: #eff8ff;
  border-left: 4px solid #0a89d8;
  border-radius: 0 8px 8px 0;
  margin: 12px 0;
  font-size: 14px;
  color: #0c4a6e;
}
.alert.success, .success {
  background: #f0fdf4;
  border-left-color: #16a34a;
  color: #14532d;
}
.alert.error { background: #fef2f2; border-left-color: #dc2626; color: #7f1d1d; }

/* ---------- Category Grid ---------- */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.cat {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  min-height: 160px;
  display: grid;
  align-items: end;
  color: white;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
  box-shadow: 0 2px 12px rgba(7,27,58,.08);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.cat:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(7,27,58,.16); }
.cat.active { box-shadow: 0 0 0 3px #0a89d8, 0 8px 28px rgba(10,137,216,.2); }
.cat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7,27,58,.85) 100%);
  z-index: 1;
  border-radius: 12px;
}
.cat-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: #1e3a5f;
  overflow: hidden;
}
.cat-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-label {
  position: relative;
  z-index: 2;
  padding: 14px 12px;
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}

/* ---------- Products Grid ---------- */
.products, .grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
#featured-items .products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(7,27,58,.07);
  transition: transform .2s, box-shadow .2s;
  border: 1px solid #e8eef6;
}
.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(7,27,58,.13);
}
.product-img {
  height: 190px;
  background: #f0f4f8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  position: relative;
  overflow: hidden;
  font-size: 13px;
}
.product-img img, .product img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.product:hover .product-img img { transform: scale(1.04); }
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #0a89d8;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  z-index: 2;
  display: block;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.stock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  z-index: 3;
}
.product-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 16px;
}
.product-body small {
  font-size: 11px;
  font-weight: 700;
  color: #0a89d8;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.product h3 {
  font-size: 14px;
  font-weight: 700;
  color: #071b3a;
  line-height: 1.35;
  min-height: 40px;
}
.product p {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.price {
  color: #0a89d8;
  font-size: 1.15rem;
  font-weight: 800;
  margin-top: auto;
}
.product-body .btn {
  width: 100%;
  margin-top: 4px;
  justify-content: center;
  font-size: 13px;
  padding: 10px 14px;
}
.product-body .disabled-btn { width: 100%; justify-content: center; font-size: 13px; padding: 10px 14px; }

/* ---------- Category Tabs ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 24px; }
.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  background: #fff;
  border: 1.5px solid #d8e3f0;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  color: #344054;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}
.tab:hover { background: #f0f6fc; border-color: #0a89d8; color: #0a89d8; }
.tab.active { background: #0a89d8; border-color: #0a89d8; color: #fff; }
.category-tabs { margin-top: 0; }

/* ---------- Sort/Filter Toolbar ---------- */
.listing-toolbar { display: flex; justify-content: flex-end; margin: 0 0 20px; }
.sort-filter { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: #344054; }
.sort-filter select {
  padding: 9px 13px;
  border: 1.5px solid #d1dae8;
  border-radius: 8px;
  background: #fff;
  color: #1a2332;
  font-size: 14px;
  cursor: pointer;
}
.product-toolbar { margin-bottom: 0; }
.admin-item-search {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid #d1dae8;
  border-radius: 8px;
  background: #fff;
  color: #1a2332;
  font-size: 14px;
  margin: 0 0 14px;
}

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.pagination a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #344054;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  border: 1.5px solid #d8e3f0;
  transition: background .18s, color .18s, border-color .18s;
}
.pagination a:hover, .pagination a.active {
  background: #0a89d8;
  color: #fff;
  border-color: #0a89d8;
}

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; font-size: 14px; }
.table th {
  padding: 13px 14px;
  background: #f1f6fb;
  color: #344054;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 2px solid #d8e3f0;
  text-align: left;
}
.table td {
  padding: 13px 14px;
  border-bottom: 1px solid #edf2f8;
  color: #344054;
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #f8fafd; }

/* ---------- Cart Table ---------- */
.cart-product-cell { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cart-remove {
  width: 34px; height: 34px;
  border-radius: 7px;
  background: #fee2e2;
  color: #d92d20 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .18s;
}
.cart-remove:hover { background: #d92d20; color: #fff !important; }
.cart-remove svg { width: 17px; height: 17px; fill: currentColor; }
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #d8e3f0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.qty-control a, .qty-control span {
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #071b3a;
  font-size: 16px;
}
.qty-control a { background: #f0f4f8; transition: background .18s, color .18s; }
.qty-control a:hover { background: #0a89d8; color: #fff; }
.qty-control span { border-left: 1.5px solid #d8e3f0; border-right: 1.5px solid #d8e3f0; font-size: 14px; }

/* ---------- Login / Register Pages ---------- */
.login-page {
  padding: 60px 5%;
  background: linear-gradient(135deg, #eef4fb 0%, #f0f7ff 60%, #f5faff 100%);
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-panel {
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(7,27,58,.14);
  overflow: hidden;
}
.login-brand {
  background: linear-gradient(160deg, #071b3a 0%, #0d3060 100%);
  color: white;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.login-brand img { width: 100px; background: white; border-radius: 8px; padding: 8px; }
.login-brand h1 { color: white; font-size: 2rem; margin: 0; }
.login-brand p { color: #a8c8e8; line-height: 1.65; margin: 0; font-size: 14px; }
.login-brand .btn.secondary-btn { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff !important; }
.login-brand .btn.secondary-btn:hover { background: rgba(255,255,255,.2); }
.login-card { padding: 48px 40px; }
.login-card h2 { font-size: 1.6rem; margin-bottom: 24px; }
.login-form {
  display: grid;
  gap: 16px;
}
.login-form label { display: grid; gap: 7px; font-weight: 600; color: #344054; font-size: 14px; }
.login-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d1dae8;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color .18s, box-shadow .18s;
}
.login-form input:focus { outline: none; border-color: #0a89d8; box-shadow: 0 0 0 3px rgba(10,137,216,.12); }
.login-form .btn { width: 100%; margin-top: 4px; padding: 13px; font-size: 15px; }
.login-register { margin-top: 20px; text-align: center; color: #64748b; font-size: 14px; }
.login-register a { color: #0a89d8; font-weight: 700; }
.register-panel { max-width: 1040px; }

/* ---------- Checkout ---------- */
.checkout-card { max-width: 720px; margin: 0 auto; }
.checkout-summary {
  background: #f8fafd;
  border: 1.5px solid #d8e3f0;
  border-radius: 10px;
  margin: 18px 0;
  padding: 16px;
  font-size: 14px;
}
.checkout-summary div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 9px 0;
}
.checkout-summary div + div { border-top: 1px solid #e8eef6; }
.checkout-items { display: grid !important; gap: 0; padding: 0 0 8px !important; }
.checkout-item-row {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 8px 0 !important;
}
.checkout-item-row:first-child { padding-top: 0 !important; }
.checkout-item-row span { display: grid; gap: 4px; text-align: left; }
.checkout-item-row small { color: #64748b; font-size: 12px; }
.checkout-item-row strong { white-space: nowrap; }
.delivery-fee-row, .payment-note { display: none; }
.checkout-form label { display: grid; gap: 7px; font-weight: 600; font-size: 14px; color: #344054; }
.delivery-location-fields {
  display: grid;
  gap: 13px;
  padding: 18px;
  border: 2px dashed #c3d5e8;
  border-radius: 10px;
  background: #f8fafd;
}
.delivery-location-fields h3 { font-size: 1rem; color: #071b3a; }
.location-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Order Detail ---------- */
.order-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0;
}
.order-detail-box {
  background: #f8fafd;
  border: 1.5px solid #d8e3f0;
  border-radius: 10px;
  padding: 18px;
  margin: 12px 0;
}
.order-detail-box h3 { margin-bottom: 12px; font-size: 1rem; color: #0a89d8; }
.order-detail-box p { margin: 7px 0; color: #344054; font-size: 14px; }
.order-total-box {
  max-width: 340px;
  margin: 18px 0 0 auto;
  background: #f8fafd;
  border: 1.5px solid #d8e3f0;
  border-radius: 10px;
  padding: 14px;
  font-size: 14px;
}
.order-total-box div { display: flex; justify-content: space-between; gap: 15px; padding: 8px 0; }
.order-total-box div + div { border-top: 1px solid #e8eef6; }
.order-total-box div:last-child { font-size: 16px; font-weight: 700; color: #071b3a; }
.order-message-alert { display: grid; gap: 10px; font-size: 14px; }
.order-message-alert p { margin: 0; }
.order-message-alert .btn { width: max-content; }
.order-message-alert textarea {
  width: 100%;
  min-height: 150px;
  border: 1.5px solid #d1dae8;
  border-radius: 8px;
  padding: 12px;
  resize: vertical;
  font: inherit;
}
.order-edit-items { display: grid; gap: 10px; }
.order-edit-items label {
  display: grid;
  grid-template-columns: 1fr 110px;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #e8eef6;
  font-size: 14px;
}
.order-edit-items label:first-child { border-top: 0; }
.order-edit-items small { display: block; margin-top: 4px; color: #64748b; }
.order-edit-items input { border-radius: 8px; text-align: center; }

/* ---------- Admin Layout ---------- */
.admin-form-page { background: #f0f4f8; padding: 40px 5%; }
.admin-form-card {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  padding: 36px;
  box-shadow: 0 4px 24px rgba(7,27,58,.09);
  border-top: 4px solid #0a89d8;
}
.admin-form-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e8eef6;
}
.admin-form-header h1 { margin: 0; font-size: 1.4rem; }
.admin-form-header p { margin: 6px 0 0; color: #64748b; font-size: 14px; }
.admin-title-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.admin-product-form {
  display: grid;
  gap: 18px;
  box-shadow: none;
  padding: 0;
  background: transparent;
}
.admin-product-form label { display: grid; gap: 7px; font-weight: 600; color: #344054; font-size: 14px; }
.admin-product-form .btn { width: max-content; min-width: 160px; }
.current-product-image { display: grid; gap: 8px; font-weight: 600; color: #344054; font-size: 14px; }
.current-product-image img {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 1.5px solid #d8e3f0;
}

/* ---------- Admin Dashboard ---------- */
.adminbar { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.stat {
  flex: 1;
  min-width: 180px;
  background: #fff;
  border-radius: 12px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 12px rgba(7,27,58,.07);
  border-left: 4px solid #0a89d8;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  color: #071b3a !important;
}
.stat:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(7,27,58,.12); }
.stat h2 { font-size: 2rem; margin: 0; color: #0a89d8; line-height: 1; }
.stat p { margin: 0; font-weight: 600; color: #64748b; font-size: 13px; }

/* ---------- Admin Notifications ---------- */
.notification-banner {
  background: #fff;
  border: 1.5px solid #d8e3f0;
  border-top: 4px solid #0a89d8;
  border-radius: 12px;
  padding: 20px;
  margin: 0 0 28px;
  box-shadow: 0 2px 14px rgba(7,27,58,.07);
}
.notification-banner-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 16px;
}
.notification-banner-head > div { display: grid; gap: 4px; }
.notification-banner-head strong { font-size: 1.1rem; color: #071b3a; }
.notification-banner-head span { color: #64748b; font-size: 12px; font-weight: 600; }
.notification-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.notification-select-all {
  background: #f8fafd;
  border: 1.5px solid #d8e3f0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
}
.notification-list { display: grid; gap: 8px; max-height: 320px; overflow-y: auto; padding-right: 4px; }
.notification-row {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #f8fafd;
  border: 1.5px solid #d8e3f0;
  border-left: 4px solid #0a89d8;
  border-radius: 8px;
  transition: background .18s;
}
.notification-row:hover { background: #eef6ff; }
.notification-row::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #e02424;
  box-shadow: 0 0 0 3px rgba(224,36,36,.15);
}
.notification-row a { color: #071b3a; font-weight: 600; font-size: 13px; padding-left: 4px; }
.notification-row.is-read { border-left-color: #c3d5e8; background: #f9fafb; }
.notification-row.is-read::before { background: #94a3b8; box-shadow: none; }
.notification-row.is-read a { font-weight: 500; color: #64748b; }
.notification-row small { color: #94a3b8; font-size: 11px; white-space: nowrap; }
.notification-select-checkbox { width: 16px; height: 16px; accent-color: #0a89d8; }
.notification-empty {
  padding: 18px;
  background: #f8fafd;
  border: 2px dashed #c3d5e8;
  border-radius: 8px;
  color: #64748b;
  font-size: 14px;
  text-align: center;
}

/* ---------- Admin Filter Bar ---------- */
.admin-filter-bar {
  display: grid;
  grid-template-columns: minmax(200px,1fr) 160px 180px 150px auto auto;
  gap: 10px;
  align-items: center;
  margin: 8px 0 20px;
}
.admin-filter-bar input, .admin-filter-bar select {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid #d1dae8;
  border-radius: 8px;
  background: #fff;
  color: #1a2332;
  font-size: 14px;
}
.admin-filter-bar .btn { border-radius: 8px; }
.inline-form { display: inline; margin: 0; }
.order-actions { display: grid; gap: 6px; min-width: 80px; }
.order-actions .inline-form { display: block; }
.order-actions .btn { width: 100%; justify-content: center; }
.product-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.product-actions .btn { min-width: 66px; padding: 8px 10px; font-size: 12px; justify-content: center; }
.bulk-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0;
  padding: 10px 14px;
  background: #f8fafd;
  border-radius: 8px;
  border: 1.5px solid #d8e3f0;
}
.select-all-control { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: #344054; }
.select-all-control input, .product-select-checkbox, .order-select-checkbox {
  width: 16px; height: 16px; accent-color: #0a89d8;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 20px;
}
.service-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 14px rgba(7,27,58,.07);
  border-top: 4px solid #0a89d8;
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(7,27,58,.12); }
.service-card .service-icon {
  width: 48px; height: 48px;
  background: #e8f4fd;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #0a89d8;
}
.service-card .service-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; }
.service-card h3 { margin-bottom: 10px; font-size: 1.05rem; }
.service-card p { color: #64748b; font-size: 14px; line-height: 1.6; margin: 0; }

/* ---------- Why Choose Us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 20px;
}
.why-card {
  text-align: center;
  padding: 28px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(7,27,58,.06);
}
.why-card .why-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #e8f4fd, #c3e0f5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #0a89d8;
}
.why-card .why-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; }
.why-card h3 { font-size: 1rem; margin-bottom: 8px; }
.why-card p { font-size: 13px; color: #64748b; line-height: 1.55; margin: 0; }

/* ---------- Footer ---------- */
footer {
  background: #071b3a;
  color: #a8c8e8;
  padding: 50px 5% 24px;
  margin-top: 0;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
footer .brand-logo {
  width: 90px;
  background: white;
  border-radius: 8px;
  padding: 7px;
  object-fit: contain;
}
.footer-brand p { font-size: 14px; line-height: 1.65; color: #7fa8c9; }
.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.footer-col a {
  display: block;
  color: #7fa8c9;
  font-size: 14px;
  padding: 5px 0;
  transition: color .18s;
}
.footer-col a:hover { color: #fff; }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7fa8c9;
  font-size: 14px;
  padding: 6px 0;
  transition: color .18s;
}
.footer-contact-item:hover { color: #fff; }
.footer-contact-item svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.footer-bottom {
  max-width: 1280px;
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #4a6a8a;
  flex-wrap: wrap;
  gap: 10px;
}
/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  background: #25d366;
  color: white !important;
  border-radius: 50%;
  width: 56px; height: 56px;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.25); }
.whatsapp-float svg { width: 32px; height: 32px; fill: white; }

/* ---------- Responsive Tablet (max 900px) ---------- */
@media (max-width: 900px) {
  .products, #featured-items .products { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .admin-filter-bar { grid-template-columns: 1fr 1fr; }
}

/* ---------- Responsive Mobile (max 750px) ---------- */
@media (max-width: 750px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.3rem; }
  .topbar { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 6px 4%; font-size: 11px; }
  .contact-action { padding: 5px 6px; font-size: 11px; gap: 5px; }
  .contact-action svg { width: 14px; height: 14px; }
  .header-inner { padding: 0 4%; min-height: 62px; flex-wrap: nowrap; }
  .brand img { width: 80px; height: 54px; }

  /* Hamburger button */
  .nav-toggle-btn { display: flex; }

  /* Mobile actions cluster */
  .header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
  }

  /* Mini cart icon in header (mobile only) */
  .header-cart-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #071b3a;
    padding: 5px;
  }
  .header-cart-sm .header-cart-icon svg { width: 24px; height: 24px; }

  /* Drawer: fixed panel sliding in from the right */
  nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 290px;
    max-width: 85vw;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    z-index: 150;
    box-shadow: -6px 0 40px rgba(7, 27, 58, .22);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
  }
  nav.is-open { transform: translateX(0); }

  /* Drawer top bar */
  .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #071b3a;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1;
  }
  .drawer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
  }
  .drawer-brand img {
    height: 34px;
    background: white;
    border-radius: 6px;
    padding: 4px 6px;
    object-fit: contain;
  }
  .nav-close-btn {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background .2s;
    flex-shrink: 0;
  }
  .nav-close-btn:hover { background: rgba(255, 255, 255, .25); }

  /* Drawer nav links */
  nav a {
    padding: 16px 22px;
    font-size: 15px;
    line-height: 1.4;
    border-bottom: 1px solid #edf2f8;
    border-radius: 0;
    border-left: 3px solid transparent;
    justify-content: flex-start;
    color: #1a2332;
    font-weight: 600;
    background: #fff;
    min-height: 52px;
    display: flex;
    align-items: center;
    width: 100%;
  }
  nav a:hover { background: #f0f6fc; color: #0a89d8; border-left-color: #c3dff5; }
  nav a.active-link {
    background: #eef6ff;
    color: #0a89d8;
    border-left-color: #0a89d8;
    font-weight: 700;
  }
  /* Normalise header-user and other variant links */
  nav a.header-user {
    background: #f7f9fc;
    border-left-color: transparent;
    font-size: 14px;
    color: #344054;
  }

  /* Cart link at bottom of drawer */
  .header-cart {
    flex-direction: row;
    padding: 16px 22px;
    border-radius: 0;
    border-bottom: 1px solid #edf2f8;
    border-left: 3px solid transparent;
    background: #f8fafd;
    color: #344054 !important;
    min-height: 52px;
  }
  .header-cart:hover { background: #eef6ff; border-left-color: #0a89d8; }
  .header-cart strong { color: #0a89d8; }
  .header-cart .header-cart-icon svg { fill: #0a89d8; }
  .hero { min-height: 360px; padding: 48px 4%; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .section { padding: 40px 4%; }
  .searchbar { margin: 0 4% 0; border-radius: 12px; }
  .categories { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .cat { min-height: 130px; font-size: 12px; }
  .products, #featured-items .products { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .product-img, .product-img img, .product img { height: 150px; }
  .product-body { padding: 12px; }
  .product h3 { font-size: 13px; min-height: 36px; }
  .tabs { gap: 6px; }
  .tab { font-size: 12px; padding: 8px 12px; }
  .login-page { padding: 28px 4%; }
  .login-panel { display: block; border-radius: 14px; }
  .login-brand { padding: 32px 28px; }
  .login-brand h1 { font-size: 1.6rem; }
  .login-card { padding: 32px 28px; }
  .form-row { grid-template-columns: 1fr; }
  .admin-form-page { padding: 24px 4%; }
  .admin-form-card { padding: 24px; border-radius: 12px; }
  .admin-form-header { flex-direction: column; gap: 12px; }
  .admin-title-actions { width: 100%; justify-content: space-between; }
  .admin-form-header .btn, .admin-product-form .btn { width: 100%; }
  .adminbar { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .stat { flex-direction: row; align-items: center; gap: 16px; padding: 18px 20px; }
  .stat h2 { font-size: 1.6rem; }
  .notification-banner-head { flex-direction: column; align-items: flex-start; }
  .notification-actions { display: grid; width: 100%; }
  .notification-row { grid-template-columns: auto 1fr; gap: 8px; }
  .notification-row small { grid-column: 2; white-space: normal; font-size: 10px; }
  .admin-filter-bar { grid-template-columns: 1fr; }
  .admin-filter-bar .btn { width: 100%; }
  .order-detail-grid { grid-template-columns: 1fr; gap: 0; }
  .order-total-box { max-width: none; }
  .order-edit-items label { grid-template-columns: 1fr; }
  .table { display: block; overflow-x: auto; white-space: nowrap; font-size: 13px; -webkit-overflow-scrolling: touch; }
  .table th, .table td { padding: 10px 12px; }
  .cart-table { display: block; white-space: normal; }
  .cart-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e8eef6;
  }
  .cart-table tr:first-child { display: none; }
  .cart-table tr:last-child { grid-template-columns: 1fr auto; }
  .cart-table th, .cart-table td { display: block; border: 0; padding: 0; }
  .cart-table td:nth-child(2) { grid-column: 2; }
  .cart-table td:nth-child(3) { grid-column: 1/-1; text-align: right; font-weight: 700; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .order-actions { display: grid; gap: 6px; }
  .order-actions .btn { width: 100%; }
  .product-actions { display: grid; }
  .product-actions .btn { width: 100%; }
  .bulk-actions { flex-direction: column; align-items: flex-start; }
  .bulk-actions .btn { width: 100%; }
  .location-actions { flex-direction: column; }
  .location-actions .btn { width: 100%; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 50px; height: 50px; }
  .whatsapp-float svg { width: 28px; height: 28px; }
  .section-title { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .products, #featured-items .products { grid-template-columns: 1fr; }
  .product-img, .product-img img, .product img { height: 180px; }
  .hero h1 { font-size: 1.7rem; }
  .categories { grid-template-columns: 1fr 1fr; }
}
