:root {
  --ink: #15171a;
  --muted: #64707d;
  --paper: #f8f7f2;
  --soft: #edf3f5;
  --line: #d8dee4;
  --brand: #0e6f68;
  --brand-dark: #093c4d;
  --accent: #d29b2d;
  --rust: #b85f3a;
  --white: #ffffff;
  --shadow: 0 18px 55px rgba(21, 23, 26, 0.13);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

.navbar {
  min-height: 74px;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  font-size: 0.8rem;
  letter-spacing: 0;
}

.btn {
  border-radius: 8px;
  font-weight: 700;
}

.btn-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
}

.flash-toast {
  margin-top: 76px;
  z-index: 1090;
}

.hero-section {
  position: relative;
  min-height: 30vh;
  display: flex;
  align-items: end;
  padding: 92px 0 36px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8, 20, 27, 0.88) 0%, rgba(8, 20, 27, 0.66) 54%, rgba(8, 20, 27, 0.28) 100%),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=82") center/cover;
}

.hero-content {
  width: 100%;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-section h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.95;
  font-weight: 880;
  letter-spacing: 0;
}

.hero-section .lead {
  max-width: 760px;
  margin: 24px 0 34px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.16rem;
  line-height: 1.75;
}

.software-hero {
  min-height: 76vh;
  display: flex;
  align-items: end;
  padding: 128px 0 78px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8, 20, 27, 0.9) 0%, rgba(8, 20, 27, 0.68) 54%, rgba(8, 20, 27, 0.28) 100%),
    url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1800&q=82") center/cover;
}

.software-hero-copy {
  max-width: 820px;
}

.software-hero h1 {
  margin: 0;
  max-width: 940px;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  line-height: 0.98;
  font-weight: 880;
  letter-spacing: 0;
}

.software-hero p {
  max-width: 760px;
  margin: 24px 0 34px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.16rem;
  line-height: 1.75;
}

.section-pad {
  padding: 86px 0;
}

.bg-soft {
  background: var(--soft);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading.text-start {
  margin-left: 0;
  margin-right: 0;
}

.section-heading.wide {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  text-align: left;
}

.hardware-title-badge {
  white-space: normal;
  text-align: left;
  line-height: 1.2;
}

.section-heading h2,
.portal-band h2,
.feature-copy + .service-grid,
.feature-image + div h2 {
  margin-bottom: 10px;
}

.section-heading h2,
.portal-band h2,
#software h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
  font-weight: 840;
  letter-spacing: 0;
}

.section-heading p,
.portal-band p,
.feature-copy {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.wing-card {
  min-height: 100%;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(21, 23, 26, 0.06);
}

.business-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 34px;
}

.business-intro > div {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.business-intro h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 820;
}

.business-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.wing-card span {
  color: var(--brand);
  font-weight: 850;
}

.wing-card h3 {
  max-width: 620px;
  margin: 18px 0 14px;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1.08;
  font-weight: 830;
}

.wing-card p {
  color: var(--muted);
  line-height: 1.7;
}

.wing-icon {
  display: inline-grid;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-size: 1.5rem;
}

.team-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(21, 23, 26, 0.06);
  padding-top: 24px;
  text-align: center;
}

.team-photo {
  display: block;
  width: 138px;
  height: 138px;
  margin: 0 auto;
  object-fit: cover;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #e8eef1;
  box-shadow: 0 12px 28px rgba(21, 23, 26, 0.14);
}

.team-body {
  padding: 22px;
}

.team-body h3 {
  margin: 0 0 10px;
  font-size: 1.24rem;
  font-weight: 820;
}

.team-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.wing-condo .wing-icon {
  background: var(--rust);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--brand-dark);
  font-weight: 800;
}

.filter-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(160px, 1fr) 120px auto;
  gap: 10px;
  min-width: min(100%, 720px);
}

.form-control,
.form-select {
  min-height: 46px;
  border-radius: 8px;
  border-color: var(--line);
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 1.16;
  overflow: hidden;
  border: 0;
  background: #e5e0d6;
  cursor: pointer;
  text-align: left;
}

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

.quick-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 0;
  cursor: pointer;
}

.quick-image-wrap {
  position: relative;
  height: clamp(260px, 46vh, 430px);
  min-height: 260px;
  background: #e5e0d6;
  touch-action: pan-y;
}

.quick-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  color: #15171a;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(21, 23, 26, 0.18);
  transform: translateY(-50%);
}

.quick-nav-prev {
  left: 14px;
}

.quick-nav-next {
  right: 14px;
}

.quick-gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
  background: #fff;
  border-top: 1px solid var(--line);
}

.quick-thumb {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #fff;
}

.quick-thumb.active {
  border-color: var(--brand);
}

.quick-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sale-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 11px;
  color: #fff;
  background: var(--rust);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.sold-out-chip {
  background: #6c757d;
}

.new-stock-chip {
  left: auto;
  right: 14px;
  background: #0d6efd;
}

.delivery-note {
  padding: 8px 10px;
  color: #495057;
  background: #f1f6f8;
  border: 1px solid #d8e5ea;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.shipping-charge-line {
  margin-bottom: 0;
  color: #0d4f70;
  font-size: 0.9rem;
  font-weight: 700;
}

.view-count {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

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

.category-name {
  margin-bottom: 4px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-body h3,
#quickName {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 820;
}

.product-body p {
  color: var(--muted);
  line-height: 1.6;
}

.rating {
  white-space: nowrap;
  color: var(--brand);
  font-size: 0.9rem;
}

.sold-out-rating {
  color: #6c757d;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}

.checkout-item-img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #fff;
}

.checkout-item-detail {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.checkout-item-detail .checkout-item-img {
  width: 72px;
  height: 72px;
}

.checkout-detail-list {
  display: grid;
  gap: 12px;
}

.checkout-detail-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 0.82fr);
  gap: 18px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.checkout-item-detail strong,
.checkout-item-detail .small {
  overflow-wrap: anywhere;
}

.checkout-item-numbers {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) 86px minmax(110px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.checkout-item-numbers span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.checkout-item-numbers strong {
  display: block;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .checkout-detail-row {
    grid-template-columns: 1fr;
  }

  .checkout-item-numbers {
    grid-template-columns: 1fr 90px;
  }

  .checkout-item-numbers .cart-remove {
    grid-column: 1 / -1;
  }
}

.checkout-qty {
  width: 84px;
}

.admin-cart-thumb {
  display: block;
  width: 46px !important;
  min-width: 46px;
  max-width: 46px;
  height: 46px !important;
  min-height: 46px;
  max-height: 46px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #fff;
}

.price-line {
  display: flex;
  align-items: center;
  gap: 9px;
}

.price-line strong {
  font-size: 1.18rem;
}

.price-line span {
  color: var(--muted);
  text-decoration: line-through;
}

.feature-image {
  min-height: 460px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

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

.software-service-grid article {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(21, 23, 26, 0.06);
}

.software-service-grid i {
  display: inline-grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-size: 1.35rem;
}

.software-service-grid h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 820;
}

.software-service-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.process-row span {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 750;
}

.process-row strong {
  display: block;
  color: var(--brand);
  font-size: 1.8rem;
}

.service-grid span,
.contact-panel span,
.portal-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
}

.service-grid i,
.contact-panel i,
.portal-list i {
  color: var(--brand);
  font-size: 1.15rem;
}

.portal-band {
  padding: 86px 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(9, 60, 77, 0.96), rgba(14, 111, 104, 0.9)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.portal-band .eyebrow,
.portal-band p {
  color: rgba(255, 255, 255, 0.82);
}

.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.7fr);
  gap: 42px;
  align-items: center;
}

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

.portal-list {
  display: grid;
  gap: 12px;
}

.portal-list span {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(8px);
}

.portal-list i {
  color: var(--accent);
}

.checkout-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.checkout-summary span {
  color: var(--muted);
}

.checkout-summary strong {
  display: block;
  font-size: 2rem;
}

.checkout-summary small,
.cart-total small {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.checkout-form,
.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.payment-options {
  display: grid;
  gap: 10px;
}

.payment-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}

.payment-option input {
  margin-top: 4px;
}

.payment-option strong,
.payment-option small {
  display: block;
}

.payment-option small {
  margin-top: 4px;
  color: var(--muted);
}

.contact-panel {
  display: grid;
  gap: 12px;
}

.google-map {
  height: 300px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(21, 23, 26, 0.06);
}

.google-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.site-footer {
  padding: 32px 0;
  color: #fff;
  background: var(--ink);
}

.site-footer span,
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 2147483000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  color: #fff;
  background: #25d366;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(21, 23, 26, 0.24);
  font-weight: 800;
  text-decoration: none;
}

.whatsapp-float:hover {
  color: #fff;
  background: #1ebe5d;
}

.whatsapp-float i {
  font-size: 1.25rem;
}

.quick-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  background-color: #fff;
  opacity: 1;
}

.quick-image-wrap {
  height: clamp(260px, 48vh, 460px);
}

.cart-items {
  display: grid;
  gap: 16px;
}

.cart-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.cart-row img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-row strong,
.cart-row span {
  display: block;
}

.cart-row span {
  color: var(--muted);
  margin: 4px 0 8px;
}

.cart-qty {
  max-width: 96px;
}

.checkout-detail-list {
  display: grid;
  gap: 12px;
}

.checkout-detail-list .checkout-detail-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.checkout-detail-list .checkout-item-detail {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.checkout-detail-list .checkout-item-img {
  width: 88px;
  height: 88px;
  object-fit: cover;
}

.checkout-detail-list .checkout-item-detail strong,
.checkout-detail-list .checkout-item-detail .small {
  overflow-wrap: break-word;
  word-break: normal;
}

.checkout-detail-list .checkout-item-numbers {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 90px minmax(112px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.checkout-detail-list .checkout-item-numbers span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.checkout-detail-list .checkout-item-numbers strong {
  display: block;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .checkout-detail-list .checkout-detail-row {
    grid-template-columns: 1fr;
  }

  .checkout-detail-list .checkout-item-detail {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .checkout-detail-list .checkout-item-img {
    width: 76px;
    height: 76px;
  }

  .checkout-detail-list .checkout-item-numbers {
    grid-template-columns: 1fr 90px;
  }

  .checkout-detail-list .checkout-item-numbers .cart-remove {
    grid-column: 1 / -1;
  }
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.cart-total strong {
  display: block;
  font-size: 1.5rem;
}

.price-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.price-card-featured {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 12px 32px rgba(14, 111, 104, 0.12);
}

.admin-image-preview {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-team-thumb {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

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

.gallery-slot {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.gallery-slot-preview {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.gallery-slot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

@media (max-width: 991px) {
  .hero-section {
    min-height: 34vh;
    padding-top: 86px;
  }

  .section-heading.wide {
    display: block;
  }

  .filter-form {
    grid-template-columns: 1fr 1fr;
    margin-top: 22px;
  }

  .gallery-slot {
    grid-template-columns: 64px 1fr;
  }

  .gallery-slot-actions {
    grid-column: 1 / -1;
    justify-content: start;
  }

  .quick-image-wrap {
    height: clamp(220px, 38vh, 340px);
    min-height: 220px;
  }

  .quick-gallery-thumbs {
    padding: 8px;
  }

  .quick-thumb {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .portal-layout {
    grid-template-columns: 1fr;
  }

  .business-intro {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 575px) {
  .navbar-brand span:last-child {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-section h1 {
    max-width: 340px;
    font-size: 2.55rem;
  }

  .software-hero {
    min-height: 78vh;
  }

  .software-hero h1 {
    max-width: 340px;
    font-size: 2.45rem;
  }

  .software-hero p,
  .software-hero-copy {
    max-width: 340px;
  }

  .hero-section .lead {
    max-width: 340px;
    font-size: 1rem;
    overflow-wrap: anywhere;
  }

  .hero-copy,
  .section-heading {
    max-width: 340px;
  }

  .section-heading h2,
  .section-heading p {
    overflow-wrap: anywhere;
  }

  .hero-copy .d-flex {
    display: grid !important;
    grid-template-columns: 1fr;
    max-width: 260px;
  }

  .hero-copy .btn {
    width: 100%;
  }

  .product-footer,
  .service-grid,
  .portal-actions,
  .software-service-grid,
  .process-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .filter-form {
    grid-template-columns: 1fr;
  }

  .section-pad,
  .portal-band {
    padding: 62px 0;
  }
}
