:root {
  --brand: #2f84bd;
  --brand-deep: #0e5689;
  --brand-soft: #e9f5fc;
  --ink: #15283a;
  --text: #24394c;
  --muted: #6c7d8b;
  --line: #dce9f2;
  --page: #f5f9fc;
  --white: #ffffff;
  --green: #13a890;
  --sun: #f3bc3f;
  --red: #c93d3d;
  --shadow: 0 22px 58px rgba(16, 77, 122, .14);
  --shadow-soft: 0 10px 28px rgba(20, 73, 111, .09);
  font-family: Arial, "Tahoma", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, #ffffff 0, #f5f9fc 420px),
    var(--page);
  line-height: 1.7;
}

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

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

button {
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

button:hover,
.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}

img,
video {
  max-width: 100%;
  display: block;
}

.server-notice {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 10px 16px;
  color: #fff;
  background: #b33131;
  text-align: center;
  font-weight: 700;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px clamp(16px, 4vw, 56px);
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(220, 233, 242, .88);
  backdrop-filter: blur(18px);
}

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

.brand.logo-only {
  min-width: auto;
}

.brand.logo-only > span:not(.brand-mark) {
  display: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 40px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  border-radius: 8px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.brand-mark.has-logo {
  background: #fff;
  border: 1px solid var(--line);
  padding: 4px;
  width: 116px;
  height: 46px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.admin-notice.success {
  color: #0d5d4c;
  background: #e8f7f2;
  border: 1px solid #b9eadb;
}

.admin-notice.error {
  color: #8f2323;
  background: #fff0f0;
  border: 1px solid #f1c1c1;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--brand);
  font-size: 22px;
  line-height: 1.05;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a,
.ghost-btn,
.tab {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}

.nav a:hover,
.ghost-btn:hover {
  background: var(--brand-soft);
  border-color: var(--line);
}

.admin-link {
  color: var(--brand-deep) !important;
  background: var(--brand-soft) !important;
  border-color: var(--line) !important;
}

.track-nav-link {
  padding: 6px 10px !important;
  font-size: 13px;
  color: var(--brand-deep) !important;
  background: var(--brand-soft) !important;
}

.section {
  padding: clamp(48px, 7vw, 96px) clamp(16px, 4vw, 56px);
}

.hero {
  min-height: calc(100vh - 66px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, .88fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
  overflow: hidden;
}

.hero h1,
.section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.06;
  max-width: 820px;
}

.section h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.hero p {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-deep);
  font-weight: 900;
  letter-spacing: 0;
}

.hero-points {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 22px 0 0;
}

.hero-points span,
.badge {
  color: var(--brand-deep);
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  font-weight: 800;
  font-size: 13px;
}

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

.primary-btn,
.secondary-btn {
  border: 0;
  border-radius: 8px;
  padding: 13px 19px;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  font-weight: 900;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 14px 32px rgba(23, 101, 152, .24);
}

.secondary-btn {
  color: var(--brand-deep);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.full {
  width: 100%;
}

.showcase-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: clamp(14px, 3vw, 24px);
  background:
    linear-gradient(135deg, rgba(47, 132, 189, .18), rgba(19, 168, 144, .10)),
    #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.showcase-item {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,0)),
    var(--brand);
  border-radius: 8px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.showcase-item.has-image {
  box-shadow: inset 0 -80px 90px rgba(6, 36, 61, .36);
}

.showcase-wide {
  grid-column: 1 / -1;
  min-height: 190px;
  background:
    linear-gradient(135deg, rgba(14, 86, 137, .92), rgba(47, 132, 189, .82)),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(255,255,255,.12) 24px 27px);
}

.showcase-item.accent {
  background: linear-gradient(135deg, var(--green), #087d74);
}

.showcase-item.dark {
  background: linear-gradient(135deg, #20384d, var(--brand-deep));
}

.showcase-item span {
  opacity: .78;
  font-weight: 800;
}

.showcase-item strong {
  font-size: 24px;
}

.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.strip div {
  background: #fff;
  padding: 24px clamp(16px, 4vw, 56px);
}

.strip strong,
.strip span {
  display: block;
}

.strip strong {
  color: var(--ink);
  font-size: 18px;
}

.strip span,
.micro {
  color: var(--muted);
  font-size: 14px;
}

.process-section {
  background: #fff;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.process-grid div {
  padding: 18px;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.process-grid strong {
  color: var(--brand);
  font-size: 24px;
}

.process-grid h3,
.product-body h3 {
  margin: 8px 0 6px;
  color: var(--ink);
}

.product-body h3 {
  font-size: 17px;
  line-height: 1.35;
}

.process-grid p,
.product-body p {
  margin: 0;
  color: var(--muted);
}

.product-body p {
  font-size: 14px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 28px;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-tools {
  display: grid;
  gap: 10px;
  min-width: min(100%, 520px);
}

.product-tools input {
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.center-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.filter,
.mini-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
  font-weight: 800;
}

.filter.active,
.tab.active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

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

.product-card,
.checkout,
.track-box,
.admin-shell,
.list-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.product-card {
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

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

.product-media {
  aspect-ratio: 1 / .78;
  background: var(--brand-soft);
  object-fit: cover;
  width: 100%;
}

.product-body {
  padding: 13px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.price {
  color: var(--brand-deep);
  font-weight: 900;
  font-size: 18px;
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 13px;
  display: block;
}

.product-card .primary-btn {
  min-height: 40px;
  padding: 9px 12px;
  font-size: 13px;
}

.product-card .badge {
  padding: 5px 7px;
}

footer a {
  color: var(--brand-deep);
  font-weight: 900;
}

.cart-section {
  background:
    linear-gradient(180deg, #fff 0, var(--page) 100%);
}

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

.checkout-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: -4px 0 22px;
}

.checkout-progress span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 13px;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line);
  font-weight: 900;
}

.checkout-progress span.active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.checkout-progress b {
  color: var(--brand);
}

.checkout-main,
.checkout-summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.checkout-main {
  padding: 18px;
}

.checkout-summary {
  position: sticky;
  top: 92px;
  padding: 18px;
}

.checkout-step {
  display: grid;
  gap: 16px;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

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

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

.cart-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

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

.qty {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.qty-btn {
  min-width: 32px;
  min-height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.remove-cart-btn {
  min-height: 34px;
  border: 1px solid rgba(201, 61, 61, .22);
  color: var(--red);
  background: #fff5f5;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 900;
}

.checkout,
.track-box,
.admin-shell {
  padding: 20px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 800;
  margin-bottom: 12px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 132, 189, .14);
}

.totals {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin: 12px 0;
}

.total-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.total-line.final {
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.track-section,
.contact-section {
  background: var(--brand-soft);
}

.track-box {
  max-width: 780px;
  margin: auto;
}

.track-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.admin-section {
  min-height: calc(100vh - 74px);
  background:
    linear-gradient(135deg, rgba(47, 132, 189, .12), rgba(19, 168, 144, .08)),
    #fff;
}

.admin-shell {
  max-width: 1180px;
  margin: auto;
}

.admin-page .admin-shell {
  background: rgba(255, 255, 255, .94);
}

.admin-head h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.1;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.login-form {
  max-width: 430px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tab {
  border-color: var(--line);
  background: #fff;
}

.tab-panel {
  display: grid;
  gap: 14px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(290px, 390px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.list-card {
  padding: 15px;
}

.order-preview .list-card {
  box-shadow: none;
}

.preview-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.floating-cart {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  border-radius: 8px;
  padding: 12px 15px;
  box-shadow: var(--shadow);
  font-weight: 900;
}

.floating-cart strong {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  color: var(--brand-deep);
  background: #fff;
  border-radius: 8px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  max-width: min(360px, calc(100vw - 36px));
  padding: 13px 16px;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-weight: 900;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: transform .2s ease, opacity .2s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.list-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.danger {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.success {
  color: var(--green);
  font-weight: 900;
}

.error {
  color: var(--red);
  font-weight: 900;
}

.hidden {
  display: none !important;
}

.checks {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.checks input {
  width: auto;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 24px clamp(16px, 4vw, 56px);
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}

@media (max-width: 920px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
    width: 100%;
  }

  .hero,
  .cart-layout,
  .contact-section,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
  }

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

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

@media (max-width: 580px) {
  .section {
    padding-inline: 14px;
  }

  .brand {
    min-width: 0;
  }

  .nav a,
  .ghost-btn {
    padding: 8px 9px;
    font-size: 14px;
  }

  .hero h1 {
    font-size: 38px;
  }

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

  .process-section {
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .process-section .section-head {
    margin-bottom: 14px;
  }

  .process-section h2 {
    font-size: 24px;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .process-grid div {
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 10px;
    align-items: start;
  }

  .process-grid strong {
    grid-row: span 2;
    font-size: 22px;
  }

  .process-grid h3 {
    margin: 0 0 2px;
    font-size: 16px;
  }

  .process-grid p {
    font-size: 13px;
  }

  .showcase-wide {
    grid-column: auto;
  }

  .section-head,
  .admin-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .step-actions .primary-btn,
  .step-actions .secondary-btn {
    width: 100%;
  }

  .cart-row {
    grid-template-columns: 66px minmax(0, 1fr);
  }

  .cart-row .qty {
    grid-column: 1 / -1;
  }

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

  footer {
    flex-direction: column;
  }
}
