:root {
  --ink: #101418;
  --muted: #65717c;
  --paper: #f7f8f6;
  --white: #ffffff;
  --teal: #0c7a78;
  --teal-dark: #075a58;
  --amber: #f06a2b;
  --line: #dfe5e4;
  --shadow: 0 20px 60px rgba(9, 18, 24, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Tajawal", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  overflow-x: hidden;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(7, 11, 15, 0.74), rgba(7, 11, 15, 0));
}

.brand,
.main-nav,
.hero-actions,
.hero-stats,
.process-steps,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand img {
  display: block;
  width: 104px;
  height: 58px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--white);
}

.main-nav {
  gap: clamp(12px, 2.5vw, 30px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.84);
}

.main-nav a:hover,
.nav-action:hover {
  color: var(--white);
}

.nav-action,
.button,
.contact-form button {
  border-radius: 8px;
  font-weight: 800;
}

.nav-action {
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  padding: 130px clamp(20px, 5vw, 72px) 150px;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 15, 20, 0.15), rgba(8, 15, 20, 0.74) 56%, rgba(8, 15, 20, 0.92)),
    linear-gradient(180deg, rgba(8, 15, 20, 0.24), rgba(8, 15, 20, 0.88));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(52px, 9vw, 112px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  font-size: 23px;
  line-height: 1.25;
}

.hero-copy {
  width: min(620px, 100%);
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2vw, 24px);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
}

.button.primary {
  color: #111a1f;
  background: var(--white);
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
}

.hero-stats {
  position: absolute;
  z-index: 3;
  right: clamp(20px, 5vw, 72px);
  left: clamp(20px, 5vw, 72px);
  bottom: 34px;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.hero-stats div {
  min-width: 0;
}

.hero-stats strong {
  display: block;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.74);
}

.section,
.process-band,
.contact-section {
  padding: clamp(72px, 9vw, 120px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 38px;
}

.section-heading p,
.split-section p,
.process-copy p,
.contact-copy p {
  color: var(--muted);
  font-size: 18px;
}

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

.service-card {
  min-height: 280px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 28px rgba(13, 27, 34, 0.05);
}

.service-icon {
  display: inline-flex;
  margin-bottom: 44px;
  color: var(--teal);
  font-weight: 800;
}

.service-card p {
  color: var(--muted);
}

.store-section {
  background: var(--white);
  overflow: visible;
  padding-left: clamp(24px, 4vw, 56px);
  padding-right: clamp(24px, 4vw, 56px);
}

.store-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.store-summary {
  min-width: 180px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.store-summary strong {
  display: block;
  color: var(--teal);
  font-size: 42px;
  line-height: 1;
}

.store-summary span {
  color: var(--muted);
  font-weight: 700;
}

.store-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.45fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.public-store-layout {
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  min-width: 0;
}

.product-form,
.products-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.product-form {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 15px;
  padding: 24px;
}

.product-form h3 {
  margin-bottom: 4px;
}

.product-form label,
.products-toolbar label {
  display: grid;
  gap: 8px;
  color: #26343b;
  font-weight: 800;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-form input,
.product-form select,
.product-form textarea,
.products-toolbar input,
.products-toolbar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

.product-form input:focus,
.product-form select:focus,
.product-form textarea:focus,
.products-toolbar input:focus,
.products-toolbar select:focus {
  outline: 3px solid rgba(240, 106, 43, 0.16);
  border-color: var(--amber);
}

.product-form button,
.ghost-button,
.product-actions button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.product-form button {
  color: var(--white);
  background: var(--teal);
}

.product-form button:hover {
  background: var(--teal-dark);
}

.product-form .ghost-button {
  color: var(--ink);
  background: #edf2f2;
}

.products-panel {
  min-height: 420px;
  width: 100%;
  padding: clamp(14px, 2vw, 24px);
  overflow: visible;
  min-width: 0;
}

.products-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(190px, 0.28fr);
  gap: 12px;
  margin-bottom: 18px;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.product-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 180px;
  grid-template-areas:
    "image header actions"
    "image title actions"
    "image desc actions"
    "image meta actions";
  gap: 12px 20px;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(13, 27, 34, 0.06);
}

@media (min-width: 1180px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1450px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.product-image {
  grid-area: image;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(240, 106, 43, 0.92), rgba(12, 122, 120, 0.92)),
    #0e3554;
}

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

.product-image span {
  font-size: 46px;
  font-weight: 900;
}

.product-topline,
.product-meta,
.product-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-topline {
  grid-area: header;
}

.product-topline,
.product-meta {
  justify-content: space-between;
  flex-wrap: wrap;
}

.product-topline span {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(12, 122, 120, 0.1);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.product-topline strong {
  color: var(--amber);
  font-size: 20px;
  white-space: nowrap;
}

.product-card h3 {
  grid-area: title;
  margin-bottom: 0;
  font-size: 25px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.product-card p,
.product-meta {
  color: var(--muted);
}

.product-card p {
  grid-area: desc;
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
}

.product-meta {
  grid-area: meta;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-weight: 700;
  line-height: 1.4;
}

.product-actions {
  grid-area: actions;
  display: grid;
  flex-wrap: wrap;
  margin-top: auto;
}

.product-actions button {
  width: 100%;
  min-width: 0;
  padding: 10px 14px;
  color: var(--white);
  background: var(--teal);
}

.product-actions button[data-action="edit"] {
  color: #14212a;
  background: #edf2f2;
}

.product-actions button[data-action="delete"] {
  background: #b64635;
}

.empty-state {
  margin: 40px 0;
  padding: 24px;
  border: 1px dashed #b8c5c4;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  background: var(--white);
}

.admin-body {
  min-height: 100vh;
  background: #eef3f3;
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.admin-header,
.admin-links,
.admin-grid,
.admin-product,
.admin-product-actions {
  display: flex;
  align-items: center;
}

.admin-header {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.admin-header h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  color: var(--ink);
}

.admin-links {
  gap: 10px;
}

.admin-links a,
.admin-secondary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font-weight: 800;
}

.admin-message {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 8px;
  color: #173c34;
  background: #dff3ec;
  font-weight: 800;
}

.admin-grid {
  align-items: flex-start;
  gap: 18px;
}

.admin-card {
  flex: 1;
  display: grid;
  gap: 15px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(13, 27, 34, 0.08);
}

.login-card {
  width: min(460px, 100%);
  margin: 42px auto;
}

.admin-card h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.admin-card label {
  display: grid;
  gap: 8px;
  color: #26343b;
  font-weight: 800;
}

.admin-card input,
.admin-card select,
.admin-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  font: inherit;
  color: var(--ink);
  background: #fbfcfc;
}

.admin-card input:focus,
.admin-card select:focus,
.admin-card textarea:focus {
  outline: 3px solid rgba(240, 106, 43, 0.16);
  border-color: var(--amber);
}

.admin-card button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.admin-products {
  display: grid;
  gap: 12px;
}

.admin-product {
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.admin-product strong,
.admin-product span {
  display: block;
}

.admin-product span {
  color: var(--muted);
}

.admin-product-actions {
  gap: 8px;
}

.admin-product-actions a,
.admin-product-actions button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.admin-product-actions button {
  background: #b64635;
}

.process-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  color: var(--white);
  background: #111a1f;
}

.process-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.process-steps {
  gap: 14px;
}

.process-steps div {
  flex: 1;
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.process-steps span {
  display: inline-block;
  margin-bottom: 40px;
  color: var(--amber);
  font-weight: 800;
}

.process-steps p {
  color: rgba(255, 255, 255, 0.74);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 92px);
  align-items: start;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.65fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
  background: #e9eeee;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #26343b;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
  background: #fbfcfc;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(12, 122, 120, 0.16);
  border-color: var(--teal);
}

.contact-form button {
  min-height: 52px;
  border: 0;
  color: var(--white);
  background: var(--teal);
  font: inherit;
  cursor: pointer;
}

.contact-form button:hover {
  background: var(--teal-dark);
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: #101418;
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .service-grid,
  .process-band,
  .split-section,
  .contact-section,
  .store-layout {
    grid-template-columns: 1fr;
  }

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

  .product-form {
    position: static;
  }

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

  .admin-grid,
  .admin-header {
    display: grid;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 14px 18px;
  }

  .nav-action {
    display: none;
  }

  .hero {
    min-height: 96vh;
    padding: 112px 20px 218px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 15, 20, 0.12), rgba(8, 15, 20, 0.76)),
      linear-gradient(180deg, rgba(8, 15, 20, 0.18), rgba(8, 15, 20, 0.92));
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    bottom: 20px;
    padding: 16px;
  }

  .service-grid,
  .process-steps,
  .product-grid,
  .products-toolbar,
  .form-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .store-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .products-panel {
    padding: 12px;
  }

  .product-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "header"
      "title"
      "desc"
      "meta"
      "actions";
    padding: 14px;
  }

  .product-actions button {
    width: 100%;
  }

  .store-heading {
    display: grid;
  }

  .service-card,
  .process-steps div {
    min-height: auto;
  }

  .site-footer {
    display: grid;
  }

  .admin-product,
  .admin-product-actions {
    display: grid;
  }
}
