:root {
  --navy: #101d35;
  --orange: #ff762e;
  --cream: #fff8f2;
  --text: #182338;
  --muted: #748094;
  --border: #e8eaf0;
  --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: #fff;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { text-decoration: none; color: inherit; }

.topbar {
  height: 78px; padding: 0 7%;
  display: flex; align-items: center; justify-content: space-between;
  background: white; position: sticky; top: 0; z-index: 10;
  box-shadow: 0 3px 18px #101d350b;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: 1px; }
.brand-icon {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--orange); color: white; border-radius: 13px;
  font: 800 25px Outfit;
}
.brand small { display: block; font-size: 9px; letter-spacing: 2px; color: var(--muted); }
.brand b { color: var(--orange); }

.primary-btn, .light-btn, .outline-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 19px; border-radius: 9px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; transition: .2s;
}
.primary-btn { background: var(--orange); color: white; }
.primary-btn:hover { background: #e85f19; transform: translateY(-2px); }
.light-btn { background: white; color: var(--navy); }
.outline-btn { background: white; color: var(--navy); border-color: var(--border); }
.outline-btn:hover { border-color: var(--orange); color: var(--orange); }

.hero {
  min-height: 520px; padding: 75px 9%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; overflow: hidden;
  background: linear-gradient(120deg, #101d35 0%, #1d3151 100%);
  color: white;
}
.hero-content { max-width: 540px; }
.eyebrow { color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: 2px; }
.hero h1 {
  font: 800 clamp(43px, 6vw, 72px)/1.06 Outfit, sans-serif;
  margin: 19px 0;
}
.hero h1 span { color: var(--orange); }
.hero p { color: #c6d0df; max-width: 440px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.hero-location { margin-top: 25px; color: #c6d0df; font-size: 13px; }

.hero-art {
  width: 340px; height: 330px; flex-shrink: 0; position: relative;
  display: grid; place-items: center;
  background: radial-gradient(circle, #ff762e35, transparent 68%);
}
.phone-shape {
  width: 155px; height: 280px; padding: 10px;
  background: #d9e1ed; border: 5px solid #8995a6;
  border-radius: 29px; transform: rotate(-9deg);
  box-shadow: 0 25px 60px #0005;
}
.phone-camera { width: 42px; height: 8px; background: #6b7787; border-radius: 10px; margin: 0 auto 9px; }
.phone-screen {
  height: 235px; border-radius: 17px; background: linear-gradient(145deg, #ff9c5e, #e95c1e);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: white;
}
.phone-screen span { font: 800 70px Outfit; }
.phone-screen small { font-size: 8px; letter-spacing: 2px; }
.floating-tag {
  position: absolute; left: -12px; top: 65px; padding: 12px 15px;
  border-radius: 10px; background: white; color: var(--navy);
  font-size: 12px; font-weight: 700; box-shadow: 0 10px 30px #0003;
}
.tag-two { left: auto; right: -10px; top: auto; bottom: 55px; }

.section-wrap { padding: 75px 8%; }
.section-heading { text-align: center; margin-bottom: 35px; }
.section-heading h2, .repair-banner h2 {
  font: 700 clamp(27px, 4vw, 38px) Outfit; margin: 10px 0;
}
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  border: 1px solid var(--border); border-radius: 15px; padding: 27px;
  transition: .25s; background: white;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 15px 35px #101d3510; }
.service-icon { font-size: 31px; margin-bottom: 15px; }
.service-card h3 { font: 700 19px Outfit; margin-bottom: 9px; }
.service-card p, .muted { color: var(--muted); font-size: 14px; line-height: 1.7; }

.products-section { background: var(--cream); }
.product-heading {
  display: flex; justify-content: space-between; align-items: end;
  text-align: left; gap: 20px;
}
.search-box, input, textarea, select {
  width: 100%; border: 1px solid var(--border); border-radius: 8px;
  padding: 12px; outline: none; background: white; color: var(--text);
}
.search-box { max-width: 260px; }
input:focus, textarea:focus, select:focus { border-color: var(--orange); }
.filters { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 25px; }
.filter-btn {
  border: 1px solid var(--border); background: white; padding: 9px 15px;
  border-radius: 30px; cursor: pointer; color: var(--text); font-size: 13px;
}
.filter-btn.active { background: var(--navy); color: white; border-color: var(--navy); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card {
  background: white; border: 1px solid var(--border); border-radius: 13px;
  overflow: hidden; transition: .2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 25px #101d3512; }
.product-image {
  height: 180px; background: #f0f2f5; display: grid; place-items: center;
  overflow: hidden; color: #9aa3b1; font-size: 42px;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 16px; }
.product-category { color: var(--orange); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.product-info h3 { font: 700 17px Outfit; margin: 7px 0; }
.product-description { color: var(--muted); font-size: 12px; min-height: 34px; }
.product-bottom { display: flex; justify-content: space-between; align-items: center; gap: 7px; margin-top: 13px; }
.product-price { font-weight: 800; font-size: 17px; }
.stock { font-size: 11px; color: #23804a; }
.stock.out { color: #c34242; }
.enquire-btn {
  display: block; width: 100%; text-align: center; margin-top: 12px;
  padding: 10px; background: #e8f7ed; color: #16733c;
  border-radius: 7px; font-size: 12px; font-weight: 800;
}
.loading, .empty-state { grid-column: 1 / -1; padding: 35px; text-align: center; color: var(--muted); }

.repair-banner {
  margin: 55px 8%; padding: 35px; border-radius: 17px;
  background: var(--navy); color: white;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.repair-banner p { color: #c6d0df; font-size: 14px; }
footer { background: #0b1528; color: white; text-align: center; padding: 38px 15px; }
.footer-brand { font: 800 21px Outfit; color: var(--orange); letter-spacing: 2px; }
footer p { color: #aeb9c9; font-size: 12px; margin-top: 10px; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 30; display: none;
  align-items: center; justify-content: center; padding: 15px;
  background: #081326bb; overflow-y: auto;
}
.modal-backdrop.show { display: flex; }
.admin-modal {
  width: min(650px, 100%); max-height: 92vh; overflow-y: auto;
  position: relative; background: white; padding: 30px;
  border-radius: 16px; box-shadow: 0 25px 70px #0004;
}
.close-btn {
  position: absolute; right: 18px; top: 12px; border: 0;
  background: transparent; font-size: 29px; cursor: pointer;
}
.admin-modal h2 { font: 700 28px Outfit; margin: 8px 0; }
#loginForm, .product-form { display: grid; gap: 10px; margin-top: 22px; }
.admin-modal label { font-size: 13px; font-weight: 700; }
.full-btn { width: 100%; margin-top: 10px; }
.hidden { display: none !important; }
.dashboard-title, .admin-list-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.product-form { border: 1px solid var(--border); border-radius: 12px; padding: 17px; }
.product-form h3, .admin-list-heading h3 { font: 700 19px Outfit; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row > div { display: grid; gap: 8px; }
.check-label { display: flex; align-items: center; gap: 8px; }
.check-label input { width: auto; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 5px; }
.admin-list-heading { margin: 24px 0 12px; }
.admin-product-list { display: grid; gap: 9px; }
.admin-product-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 9px;
}
.admin-product-item strong { display: block; font-size: 13px; }
.admin-product-item small { color: var(--muted); }
.admin-actions { display: flex; gap: 7px; flex-shrink: 0; }
.admin-actions button { padding: 7px 9px; border-radius: 6px; border: 1px solid var(--border); background: white; cursor: pointer; }
.admin-actions .delete-btn { color: #c33; }
.message { margin-top: 14px; font-size: 13px; color: #c34242; }
.message.success { color: #168044; }
.status-text { color: var(--muted); font-size: 12px; margin-top: 10px; }

@media (max-width: 850px) {
  .hero { padding: 60px 7%; }
  .hero-art { width: 260px; transform: scale(.85); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .topbar { padding: 0 5%; height: 68px; }
  .brand { font-size: 13px; }
  .brand-icon { width: 36px; height: 36px; }
  .topbar .outline-btn { padding: 9px 11px; font-size: 12px; }
  .hero { padding: 55px 7% 35px; display: block; }
  .hero-art { margin: 25px auto 0; height: 260px; }
  .section-wrap { padding: 55px 6%; }
  .product-heading { display: block; }
  .search-box { max-width: none; margin-top: 18px; }
  .product-grid { gap: 10px; }
  .product-image { height: 135px; }
  .product-info { padding: 11px; }
  .product-info h3 { font-size: 14px; }
  .product-price { font-size: 14px; }
  .repair-banner { margin: 30px 5%; padding: 25px; display: block; }
  .repair-banner .primary-btn { margin-top: 18px; }
  .admin-modal { padding: 25px 17px; }
  .form-row { grid-template-columns: 1fr; }
  .admin-product-item { align-items: flex-start; }
}