:root {
  --ink: #123248;
  --ink-soft: #34566c;
  --ocean: #087cb4;
  --ocean-dark: #045f8c;
  --aqua: #15a8c8;
  --leaf: #73bf2e;
  --leaf-dark: #4d991f;
  --mist: #edf8f6;
  --stone: #f5f7f8;
  --line: #d8e5ea;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(18, 50, 72, 0.12);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

img,
iframe {
  max-width: 100%;
}

img {
  display: block;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(216, 229, 234, 0.9);
  backdrop-filter: blur(18px);
}

.top-strip {
  background: var(--ink);
  color: var(--white);
  font-size: 0.83rem;
}

.top-strip .container,
.nav-bar,
.nav-actions,
.contact-inline,
.hero-actions,
.section-title-row,
.filters,
.form-row,
.footer-grid,
.admin-actions,
.detail-actions,
.marketplace-links,
.stat-row,
.badge-row {
  display: flex;
  align-items: center;
}

.top-strip .container {
  justify-content: space-between;
  gap: 18px;
  min-height: 36px;
}

.contact-inline {
  gap: 16px;
  flex-wrap: wrap;
}

.contact-inline a,
.delivery-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.nav-bar {
  min-height: 76px;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 278px;
}

.brand img {
  width: 68px;
  height: 58px;
  object-fit: contain;
}

.brand-text {
  display: block;
  max-width: 198px;
  color: var(--ocean-dark);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.08;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ocean-dark);
  background: var(--mist);
}

.nav-actions {
  gap: 10px;
  justify-content: flex-end;
}

.menu-toggle {
  display: none;
}

.btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  min-height: 44px;
  padding: 0 16px;
  font-weight: 800;
  color: var(--white);
  background: var(--ocean);
  box-shadow: 0 10px 22px rgba(8, 124, 180, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover,
.icon-btn:hover {
  transform: translateY(-1px);
  background: var(--ocean-dark);
  box-shadow: 0 14px 28px rgba(8, 124, 180, 0.22);
}

.btn.secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
  box-shadow: none;
}

.btn.secondary:hover {
  color: var(--ocean-dark);
  background: var(--mist);
}

.btn.leaf {
  background: var(--leaf-dark);
  box-shadow: 0 10px 22px rgba(77, 153, 31, 0.18);
}

.btn.leaf:hover {
  background: #3f811b;
}

.btn.small,
.icon-btn {
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.9rem;
}

.icon-btn {
  width: 42px;
  padding: 0;
}

.btn[disabled],
.market[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

[data-lucide] {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.hero {
  position: relative;
  min-height: 76svh;
  display: grid;
  align-items: end;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8, 45, 68, 0.86), rgba(8, 76, 105, 0.55), rgba(18, 50, 72, 0.18)),
    url("assets/products/ppr-pvc-upvc-pipes.jpg") center / cover;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(0deg, rgba(18, 50, 72, 0.65), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: clamp(78px, 12vw, 130px) 0 58px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--leaf);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 660px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.04rem, 2vw, 1.26rem);
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero .btn.secondary {
  background: rgba(255, 255, 255, 0.92);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  max-width: 680px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hero-metric {
  padding: 18px;
}

.hero-metric strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1;
}

.hero-metric span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

section,
.page-hero,
.detail-page,
.admin-page {
  padding: 72px 0;
}

.page-hero {
  background:
    linear-gradient(120deg, rgba(237, 248, 246, 0.95), rgba(255, 255, 255, 0.94)),
    url("assets/catalog-pages/page-01.jpg") right center / contain no-repeat;
  border-bottom: 1px solid var(--line);
}

.page-hero .container {
  max-width: 1160px;
}

.page-hero h1 {
  max-width: 800px;
  color: var(--ink);
}

.page-hero p {
  max-width: 730px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.section-kicker {
  color: var(--ocean);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.section-title-row {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-title h2,
.section-title-row h2 {
  margin: 6px 0 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-title p,
.section-title-row p {
  max-width: 700px;
  margin: 12px 0 0;
  color: var(--ink-soft);
}

.intro-grid,
.about-grid,
.services-grid,
.contact-grid,
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 32px;
  align-items: start;
}

.intro-copy,
.about-copy,
.contact-panel,
.admin-panel,
.detail-panel,
.quote-band,
.mission-panel,
.service-panel,
.trust-item,
.product-card,
.catalogue-page,
.form-panel,
.market-panel,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(18, 50, 72, 0.07);
}

.intro-copy,
.about-copy,
.contact-panel,
.admin-panel,
.detail-panel,
.form-panel,
.market-panel,
.mission-panel,
.empty-state {
  padding: 26px;
}

.intro-copy p:first-child,
.about-copy p:first-child {
  margin-top: 0;
}

.intro-copy p,
.about-copy p {
  color: var(--ink-soft);
}

.intro-media {
  min-height: 430px;
  background: url("assets/catalog-pages/page-01.jpg") center 20% / cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.badge-row {
  gap: 12px;
  flex-wrap: wrap;
}

.badge,
.category-chip,
.market {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 34px;
  padding: 0 12px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 800;
}

.badge.green {
  color: var(--leaf-dark);
  background: #f0faea;
  border-color: #d8edcc;
}

.stat-row {
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.stat {
  min-width: 145px;
  padding: 14px;
  border-left: 4px solid var(--leaf);
  background: var(--mist);
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.services-grid,
.trust-grid,
.products-grid,
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-panel,
.trust-item {
  padding: 24px;
}

.service-panel i,
.trust-item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  color: var(--ocean-dark);
  background: var(--mist);
}

.service-panel h3,
.trust-item h3,
.product-card h3,
.mission-panel h3,
.contact-panel h3,
.market-panel h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  line-height: 1.2;
}

.service-panel p,
.trust-item p,
.product-card p,
.mission-panel p,
.contact-panel p,
.market-panel p {
  margin: 0;
  color: var(--ink-soft);
}

.band {
  background: var(--stone);
}

.mint-band {
  background: linear-gradient(120deg, var(--mist), #ffffff);
}

.quote-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 30px;
  background:
    linear-gradient(120deg, rgba(8, 124, 180, 0.92), rgba(21, 168, 200, 0.86)),
    url("assets/products/angle-valve-shattaf.jpg") center / cover;
  color: var(--white);
  border: 0;
  box-shadow: var(--shadow);
}

.quote-band h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.quote-band p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.88);
}

.products-tools {
  position: sticky;
  top: 113px;
  z-index: 20;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.filters {
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.search-wrap {
  position: relative;
  flex: 1 1 300px;
  max-width: 520px;
}

.search-wrap [data-lucide] {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-soft);
}

.search-wrap input,
.filters select,
.form-control {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 13px;
  color: var(--ink);
  background: var(--white);
}

.search-wrap input {
  padding-left: 42px;
}

.filters select {
  width: min(260px, 100%);
}

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

.product-card {
  overflow: hidden;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-card figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  background: var(--stone);
  overflow: hidden;
}

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

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.product-card p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 72px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.product-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.product-card-actions .btn {
  flex: 1;
}

.catalogue-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

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

.catalogue-page {
  overflow: hidden;
}

.catalogue-page img {
  width: 100%;
  aspect-ratio: 1 / 1.42;
  object-fit: cover;
  background: var(--stone);
}

.catalogue-page figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.detail-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
}

.detail-media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--stone);
  box-shadow: var(--shadow);
}

.detail-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-panel h1 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.03;
}

.detail-panel p {
  color: var(--ink-soft);
}

.detail-actions,
.marketplace-links {
  gap: 10px;
  flex-wrap: wrap;
}

.size-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 16px 0 24px;
  list-style: none;
}

.size-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--mist);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 800;
}

.catalogue-pages-detail {
  margin-top: 34px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-row {
  gap: 14px;
  align-items: start;
}

.form-row > * {
  flex: 1;
}

label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 800;
}

textarea.form-control {
  min-height: 110px;
  padding-top: 12px;
  resize: vertical;
}

.form-status {
  min-height: 24px;
  color: var(--leaf-dark);
  font-weight: 800;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
}

.contact-list a,
.contact-list span {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-soft);
  font-weight: 800;
}

.map-frame {
  width: 100%;
  min-height: 430px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.marketplace-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--white);
}

.marketplace-card strong {
  display: block;
  font-size: 1.1rem;
}

.marketplace-card span {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.admin-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.admin-panel h2 {
  margin-top: 0;
}

.admin-actions {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

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

.admin-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.admin-item img {
  width: 88px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius);
}

.admin-item h3 {
  margin: 0 0 5px;
  font-size: 1rem;
}

.admin-item p {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.site-footer {
  color: rgba(255, 255, 255, 0.86);
  background: var(--ink);
}

.site-footer .container {
  padding: 52px 0 24px;
}

.footer-grid {
  align-items: start;
  justify-content: space-between;
  gap: 36px;
}

.footer-brand {
  max-width: 360px;
}

.footer-brand img {
  width: 190px;
  max-height: 70px;
  object-fit: contain;
  object-position: left center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 6px;
}

.footer-brand p {
  margin: 14px 0 0;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 28px;
}

.footer-columns h3 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 0.96rem;
}

.footer-columns a,
.footer-columns span {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-soft);
}

.hidden {
  display: none !important;
}

.inquiry-dialog {
  width: min(720px, calc(100% - 28px));
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  color: var(--ink);
  background: transparent;
  box-shadow: var(--shadow);
}

.inquiry-dialog::backdrop {
  background: rgba(18, 50, 72, 0.55);
  backdrop-filter: blur(4px);
}

.dialog-close-form {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  margin: 0;
}

.inquiry-dialog .form-panel {
  padding-top: 34px;
}

@media (max-width: 1040px) {
  .site-nav {
    position: fixed;
    inset: 112px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    min-height: 42px;
  }

  .menu-toggle {
    display: inline-flex;
  }

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

  .admin-layout,
  .contact-grid,
  .detail-grid,
  .intro-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1160px);
  }

  .top-strip .container {
    justify-content: center;
  }

  .delivery-note {
    display: none;
  }

  .nav-bar {
    min-height: 68px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 52px;
    height: 48px;
  }

  .brand-text {
    max-width: 150px;
    font-size: 0.68rem;
  }

  .nav-actions .btn:not(.menu-toggle) {
    display: none;
  }

  .hero {
    min-height: 74svh;
  }

  .hero-content {
    padding-bottom: 38px;
  }

  .hero-metrics,
  .services-grid,
  .trust-grid,
  .products-grid,
  .category-grid,
  .catalogue-grid,
  .marketplace-row {
    grid-template-columns: 1fr;
  }

  .section-title-row,
  .quote-band,
  .footer-grid,
  .footer-bottom,
  .catalogue-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .quote-band {
    display: flex;
  }

  .form-row {
    flex-direction: column;
  }

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

  section,
  .page-hero,
  .detail-page,
  .admin-page {
    padding: 52px 0;
  }
}
