:root {
  --orange: #ff6b00;
  --orange-dark: #e85f00;
  --orange-soft: #fff1e6;

  --graphite: #202329;
  --graphite-2: #121418;
  --graphite-3: #2d323a;

  --text: #222831;
  --muted: #727985;
  --line: #e1e4e8;
  --bg: #f4f5f7;
  --white: #ffffff;
  --green: #128a45;

  --shadow-sm: 0 6px 18px rgba(18, 20, 24, .06);
  --shadow: 0 18px 44px rgba(18, 20, 24, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, #f7f8fa 0%, #f1f3f5 360px, #f4f5f7 100%);
}

a {
  color: inherit;
}

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

/* HEADER */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 4px 18px rgba(18, 20, 24, .05);
}

.top-strip {
  background: var(--graphite-2);
  color: rgba(255,255,255,.84);
  font-size: 13px;
}

.top-strip-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-left,
.top-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.top-left span {
  position: relative;
}

.top-left span + span:before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
  position: absolute;
  left: -11px;
  top: 50%;
  transform: translateY(-50%);
}

.top-right a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.main-header {
  min-height: 92px;
  display: grid;
  grid-template-columns: 300px 1fr 230px;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, var(--graphite-2), var(--graphite-3));
  color: var(--white);
  font-size: 21px;
  font-weight: 950;
  letter-spacing: -.5px;
  box-shadow:
    inset 0 -5px 0 rgba(0,0,0,.18),
    0 10px 22px rgba(18,20,24,.16);
  position: relative;
}

.brand-mark:after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 18px;
  height: 18px;
  background: var(--orange);
  border-radius: 4px;
  border: 3px solid #fff;
}

.brand-name {
  color: var(--graphite-2);
  font-size: 23px;
  font-weight: 950;
  letter-spacing: -.55px;
  line-height: 1.08;
}

.brand-caption {
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}

.header-search {
  display: flex;
  height: 52px;
  border: 2px solid var(--orange);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(255,107,0,.10);
}

.header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0 18px;
  outline: none;
  font-size: 15px;
  color: var(--text);
}

.header-search input::placeholder {
  color: #8c939d;
}

.header-search button {
  width: 118px;
  border: 0;
  background: var(--orange);
  color: var(--white);
  font-weight: 950;
  cursor: pointer;
  transition: .18s ease;
}

.header-search button:hover {
  background: var(--orange-dark);
}

.header-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.header-action {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fafbfc;
  transition: .16s ease;
}

.header-action:hover {
  border-color: var(--graphite);
  transform: translateY(-1px);
}

.header-action span {
  color: var(--muted);
  font-size: 12px;
}

.header-action strong {
  color: var(--graphite-2);
  font-size: 14px;
}

.cart-action {
  border-color: rgba(255,107,0,.45);
  background: var(--orange-soft);
}

.cart-action strong {
  color: var(--orange-dark);
}

.nav-bar {
  background: var(--graphite);
  color: var(--white);
}

.nav-bar-inner {
  min-height: 54px;
  display: flex;
  align-items: stretch;
  gap: 22px;
}

.catalog-button {
  min-width: 160px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: var(--white);
  text-decoration: none;
  font-weight: 950;
  letter-spacing: .1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.nav-links a {
  color: rgba(255,255,255,.90);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--orange);
}

/* HOME */

.hero-market {
  padding: 28px 0 26px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
}

.hero-catalog {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  border-radius: 16px;
  overflow: hidden;
}

.hero-catalog-title {
  padding: 17px 18px;
  background: var(--graphite-2);
  color: var(--white);
  font-weight: 950;
}

.hero-catalog a {
  display: flex;
  align-items: center;
  min-height: 47px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}

.hero-catalog a:hover {
  color: var(--orange);
  background: var(--orange-soft);
}

.hero-banner {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  padding: 46px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255,107,0,.40), transparent 25%),
    radial-gradient(circle at 72% 100%, rgba(255,107,0,.22), transparent 29%),
    linear-gradient(135deg, #2b3038 0%, #111318 70%);
  color: var(--white);
  box-shadow: var(--shadow);
}

.hero-banner:after {
  content: "";
  position: absolute;
  right: -95px;
  bottom: -130px;
  width: 410px;
  height: 410px;
  border: 34px solid rgba(255,255,255,.07);
  transform: rotate(16deg);
}

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,107,0,.15);
  color: #ff9b4b;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .7px;
}

.hero-banner h1 {
  max-width: 760px;
  margin: 20px 0 16px;
  font-size: clamp(36px, 4vw, 60px);
  line-height: .98;
  letter-spacing: -1.7px;
}

.hero-banner p {
  max-width: 590px;
  color: rgba(255,255,255,.78);
  font-size: 18px;
  line-height: 1.55;
}

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

.button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 950;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .16s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--orange);
  color: var(--white);
}

.button.secondary {
  background: var(--white);
  color: var(--graphite-2);
  border-color: var(--line);
}

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

.hero-stats div {
  min-width: 122px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.075);
  backdrop-filter: blur(6px);
  border-radius: 12px;
}

.hero-stats strong {
  display: block;
  font-size: 27px;
}

.hero-stats span {
  color: rgba(255,255,255,.72);
  font-size: 13px;
}

.tool-visual {
  position: absolute;
  right: 38px;
  bottom: 36px;
  display: grid;
  gap: 10px;
  transform: rotate(-7deg);
}

.tool-card {
  border-radius: 14px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #f9fafb, #d8dde4);
  border-left: 9px solid var(--orange);
  box-shadow: 0 20px 42px rgba(0,0,0,.30);
  color: var(--graphite-2);
  font-weight: 950;
  letter-spacing: .8px;
}

.tool-card.large {
  width: 238px;
  height: 74px;
  display: flex;
  align-items: center;
}

.tool-card.medium {
  width: 170px;
  margin-left: 58px;
}

.tool-card.small {
  width: 132px;
  margin-left: 24px;
}

.advantages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 8px;
}

.advantage-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.advantage-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--orange-soft);
  color: var(--orange);
  font-weight: 950;
  font-size: 20px;
  margin-bottom: 14px;
}

.advantage-card h3 {
  margin: 0 0 8px;
  color: var(--graphite-2);
}

.advantage-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.home-section {
  padding: 46px 0 20px;
}

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

.section-head h2 {
  margin: 12px 0 0;
  color: var(--graphite-2);
  font-size: 34px;
  letter-spacing: -.8px;
}

.section-head a {
  color: var(--orange-dark);
  font-weight: 950;
  text-decoration: none;
}

.category-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.category-tile {
  min-height: 190px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: .16s ease;
}

.category-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255,107,0,.40);
}

.category-tile span {
  color: var(--orange);
  font-weight: 950;
  margin-bottom: auto;
}

.category-tile strong {
  color: var(--graphite-2);
  font-size: 20px;
  margin-bottom: 8px;
}

.category-tile small {
  color: var(--muted);
  line-height: 1.45;
}

.status-panel {
  margin: 34px auto 56px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.status-panel h2 {
  margin: 12px 0 8px;
  color: var(--graphite-2);
}

.status-panel p {
  margin: 0;
  color: var(--muted);
}

.status-box {
  border-radius: 14px;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.status-box span,
.status-box small {
  display: block;
  color: var(--muted);
}

.status-box strong {
  display: block;
  margin: 6px 0;
  color: var(--graphite-2);
  font-size: 24px;
}

.status-box.ok {
  border-color: rgba(18,138,69,.34);
}

/* CATALOG */

.catalog-main {
  padding-bottom: 56px;
}

.catalog-hero {
  padding: 34px 0 24px;
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 20px;
  align-items: end;
}

.breadcrumbs {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--orange-dark);
  text-decoration: none;
  font-weight: 950;
}

.catalog-hero h1 {
  margin: 0 0 10px;
  color: var(--graphite-2);
  font-size: 44px;
  letter-spacing: -1.2px;
}

.catalog-hero p {
  margin: 0;
  max-width: 740px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 17px;
}

.catalog-hero-card {
  padding: 18px;
  background: linear-gradient(135deg, var(--graphite), var(--graphite-2));
  color: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border-bottom: 4px solid var(--orange);
}

.catalog-hero-card span,
.catalog-hero-card small {
  display: block;
  color: rgba(255,255,255,.72);
}

.catalog-hero-card strong {
  display: block;
  margin: 5px 0;
  font-size: 24px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
}

.catalog-sidebar {
  display: grid;
  gap: 16px;
  align-content: start;
}

.filter-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.filter-card h2 {
  margin: 0;
  padding: 17px 18px;
  color: var(--white);
  background: var(--graphite);
  font-size: 18px;
}

.filter-link {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid #edf0f3;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: .14s ease;
}

.filter-link small {
  color: var(--muted);
  font-weight: 950;
}

.filter-link:hover,
.filter-link.active {
  color: var(--orange-dark);
  background: var(--orange-soft);
}

.catalog-toolbar {
  min-height: 56px;
  margin-bottom: 14px;
  padding: 0 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.catalog-toolbar strong {
  color: var(--graphite-2);
  font-size: 18px;
}

.catalog-toolbar span {
  color: var(--muted);
}

.catalog-toolbar a {
  color: var(--orange-dark);
  font-weight: 950;
  text-decoration: none;
}

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

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: var(--shadow-sm);
  transition: .16s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(255,107,0,.32);
}

.product-image-placeholder {
  height: 155px;
  border: 1px solid #e4e7eb;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,107,0,.08)),
    repeating-linear-gradient(135deg, #f5f6f8 0, #f5f6f8 10px, #eef1f4 10px, #eef1f4 20px);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.product-image-placeholder:before {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 54px;
  height: 10px;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 18px 0 rgba(32,35,41,.16);
}

.product-image-placeholder:after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 22px;
  width: 92px;
  height: 54px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--graphite), var(--graphite-2));
  opacity: .95;
}

.product-image-placeholder span {
  position: relative;
  z-index: 2;
  max-width: 82%;
  padding: 10px 15px;
  border-radius: 9px;
  background: var(--graphite-2);
  color: var(--white);
  font-weight: 950;
  text-align: center;
  box-shadow: 0 10px 22px rgba(0,0,0,.20);
}

.product-meta {
  min-height: 28px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.product-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f0f2f4;
  color: var(--graphite);
  font-size: 11px;
  font-weight: 950;
}

.product-meta span:first-child {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.product-card h2 {
  margin: 0 0 7px;
  color: var(--graphite-2);
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -.2px;
}

.product-sku {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.product-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

.price-row {
  margin-top: auto;
  padding: 13px;
  background: #f8f9fb;
  border: 1px solid #e8ebef;
  border-radius: 14px;
  display: grid;
  gap: 8px;
}

.price-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.price-row strong {
  display: block;
  color: var(--graphite-2);
  font-size: 25px;
  letter-spacing: -.5px;
}

.stock-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.stock-label.in-stock {
  color: var(--green);
  background: rgba(18,138,69,.10);
}

.product-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.product-facts div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px;
  background: #fff;
}

.product-facts span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 4px;
}

.product-facts strong {
  color: var(--graphite-2);
  font-size: 13px;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.empty-state {
  grid-column: 1 / -1;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

/* FOOTER */

.footer {
  background: var(--graphite-2);
  color: rgba(255,255,255,.75);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer strong {
  display: block;
  color: var(--white);
  margin-bottom: 4px;
}

.footer a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  margin-left: 18px;
  font-weight: 800;
}

.footer a:hover {
  color: var(--orange);
}

/* RESPONSIVE */

@media (max-width: 1180px) {
  .main-header {
    grid-template-columns: 1fr;
    padding: 16px 0;
  }

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

  .hero-grid,
  .catalog-layout,
  .catalog-hero,
  .status-panel {
    grid-template-columns: 1fr;
  }

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

  .tool-visual {
    display: none;
  }
}

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

  .top-strip-inner,
  .top-left,
  .top-right,
  .nav-bar-inner,
  .footer-inner,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-left,
  .top-right {
    gap: 8px;
  }

  .nav-links {
    padding-bottom: 12px;
    gap: 14px;
  }

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

  .hero-banner {
    padding: 28px;
    min-height: auto;
  }

  .hero-banner h1 {
    font-size: 34px;
  }

  .advantages,
  .category-showcase,
  .product-grid {
    grid-template-columns: 1fr;
  }

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

  .footer a {
    display: block;
    margin: 8px 0 0;
  }
}

/* PRODUCT DETAIL */

.product-detail-main {
  padding-bottom: 56px;
}

.product-detail {
  padding-top: 32px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 470px 1fr;
  gap: 28px;
  align-items: start;
}

.product-detail-gallery,
.product-detail-info,
.product-section-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.product-detail-gallery {
  padding: 18px;
}

.product-main-image {
  min-height: 430px;
  border-radius: 16px;
  border: 1px solid #e4e7eb;
  background:
    linear-gradient(135deg, rgba(255,255,255,.60), rgba(255,107,0,.10)),
    repeating-linear-gradient(135deg, #f5f6f8 0, #f5f6f8 12px, #eef1f4 12px, #eef1f4 24px);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.product-main-image:before {
  content: "";
  position: absolute;
  left: 34px;
  top: 34px;
  width: 92px;
  height: 16px;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 30px 0 rgba(32,35,41,.16);
}

.product-main-image:after {
  content: "";
  position: absolute;
  right: 36px;
  bottom: 36px;
  width: 145px;
  height: 88px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--graphite), var(--graphite-2));
  opacity: .94;
}

.product-main-image span {
  position: relative;
  z-index: 2;
  max-width: 82%;
  padding: 16px 22px;
  border-radius: 12px;
  background: var(--graphite-2);
  color: var(--white);
  font-weight: 950;
  font-size: 22px;
  text-align: center;
  box-shadow: 0 16px 34px rgba(0,0,0,.22);
}

.product-image-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.product-detail-info {
  padding: 26px;
}

.product-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.product-detail-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 950;
}

.product-detail-tags span + span {
  background: #f0f2f4;
  color: var(--graphite);
}

.product-detail-info h1 {
  margin: 0 0 14px;
  color: var(--graphite-2);
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.04;
  letter-spacing: -1.1px;
}

.product-code-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.product-code-row strong {
  color: var(--graphite-2);
}

.product-detail-description {
  margin: 18px 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.55;
}

.product-buy-panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: #f8f9fb;
  border: 1px solid #e8ebef;
}

.product-price-main,
.product-stock-main {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid #e0e4e8;
}

.product-price-main span,
.product-stock-main span {
  color: var(--muted);
}

.product-price-main strong {
  color: var(--graphite-2);
  font-size: 32px;
  letter-spacing: -.7px;
}

.product-stock-main strong {
  color: var(--green);
  font-size: 20px;
}

.qty-panel {
  padding-top: 16px;
}

.qty-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--graphite-2);
  font-weight: 950;
}

.qty-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px;
}

.qty-row input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 16px;
  font-weight: 900;
}

.qty-panel small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
}

.product-detail-sections {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 22px;
  align-items: start;
}

.product-section-card {
  padding: 22px;
}

.product-section-card h2 {
  margin: 0 0 16px;
  color: var(--graphite-2);
  font-size: 24px;
}

.spec-table {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.spec-table div,
.price-table div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.spec-table div:nth-child(odd) {
  background: #f8f9fb;
}

.spec-table div:last-child,
.price-table div:last-child {
  border-bottom: 0;
}

.spec-table span,
.price-table span {
  color: var(--muted);
}

.spec-table strong,
.price-table strong {
  color: var(--graphite-2);
  text-align: right;
}

.price-table {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.price-table div.selected {
  background: var(--orange-soft);
}

.price-table div.selected strong {
  color: var(--orange-dark);
}

.section-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.similar-products {
  margin-top: 34px;
}

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

.similar-card {
  min-height: 160px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: .16s ease;
}

.similar-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,107,0,.35);
}

.similar-card span {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 950;
  margin-bottom: 10px;
}

.similar-card strong {
  color: var(--graphite-2);
  line-height: 1.25;
}

.similar-card small {
  margin-top: 8px;
  color: var(--muted);
}

.similar-card em {
  margin-top: auto;
  color: var(--graphite-2);
  font-style: normal;
  font-weight: 950;
}

@media (max-width: 1180px) {
  .product-detail-grid,
  .product-detail-sections {
    grid-template-columns: 1fr;
  }

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

  .product-main-image {
    min-height: 320px;
  }
}

@media (max-width: 760px) {
  .qty-row,
  .spec-table div,
  .price-table div {
    grid-template-columns: 1fr;
  }

  .spec-table strong,
  .price-table strong {
    text-align: left;
  }

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

/* CART AND REQUEST FLOW */

.inline-cart-form {
  display: contents;
}

.inline-cart-form .button {
  width: 100%;
}

.cart-main,
.request-main {
  padding-bottom: 56px;
}

.cart-page {
  padding-top: 32px;
}

.cart-head {
  margin-bottom: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.cart-head h1 {
  margin: 0 0 10px;
  color: var(--graphite-2);
  font-size: 44px;
  letter-spacing: -1.1px;
}

.cart-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.form-error {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff1f1;
  border: 1px solid #ffd0d0;
  color: #9f1d1d;
  font-weight: 900;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 22px;
  align-items: start;
}

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

.cart-item {
  display: grid;
  grid-template-columns: 86px 1fr 110px 150px 120px 78px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.cart-item-image {
  width: 86px;
  height: 72px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.60), rgba(255,107,0,.10)),
    repeating-linear-gradient(135deg, #f5f6f8 0, #f5f6f8 10px, #eef1f4 10px, #eef1f4 20px);
  display: grid;
  place-items: center;
}

.cart-item-image span {
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--graphite-2);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  text-align: center;
}

.cart-item-info a {
  display: block;
  color: var(--graphite-2);
  font-weight: 950;
  text-decoration: none;
  line-height: 1.25;
  margin-bottom: 6px;
}

.cart-item-info div,
.cart-item-info small {
  color: var(--muted);
}

.cart-item-price span,
.cart-item-total span,
.cart-qty-form label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.cart-item-price strong,
.cart-item-total strong {
  color: var(--graphite-2);
}

.cart-qty-form {
  display: grid;
  gap: 5px;
}

.cart-qty-form input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  font-weight: 900;
}

.cart-qty-form small {
  color: var(--muted);
  font-size: 11px;
}

.cart-qty-form button,
.delete-button {
  min-height: 32px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 900;
}

.cart-qty-form button {
  background: var(--graphite);
  color: #fff;
}

.delete-button {
  background: #fff1f1;
  color: #9f1d1d;
  width: 100%;
}

.cart-summary {
  display: grid;
  gap: 14px;
}

.cart-summary-card,
.checkout-form,
.empty-cart,
.success-card,
.request-detail-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.cart-summary-card,
.checkout-form,
.empty-cart,
.success-card,
.request-detail-card {
  padding: 22px;
}

.cart-summary-card h2,
.checkout-form h2 {
  margin: 0 0 16px;
  color: var(--graphite-2);
}

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

.summary-row span,
.cart-summary-card p {
  color: var(--muted);
}

.summary-row strong {
  color: var(--graphite-2);
}

.cart-summary-card p {
  margin: 14px 0 0;
  line-height: 1.45;
}

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

.checkout-form label {
  display: grid;
  gap: 6px;
  color: var(--graphite-2);
  font-weight: 900;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px;
  font: inherit;
  outline: none;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,107,0,.10);
}

.empty-cart {
  padding: 40px;
  text-align: center;
}

.empty-cart h2 {
  margin: 0 0 10px;
  color: var(--graphite-2);
}

.empty-cart p {
  margin: 0 0 18px;
  color: var(--muted);
}

.request-success {
  padding-top: 32px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 22px;
  align-items: start;
}

.success-card {
  text-align: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(18,138,69,.11);
  color: var(--green);
  font-size: 34px;
  font-weight: 950;
}

.success-card h1 {
  margin: 0 0 10px;
  color: var(--graphite-2);
  font-size: 34px;
}

.success-card p {
  color: var(--muted);
  line-height: 1.5;
}

.success-card p strong {
  color: var(--graphite-2);
}

.request-status-line {
  margin: 18px 0;
  padding: 14px;
  border-radius: 14px;
  background: var(--orange-soft);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.request-status-line span {
  color: var(--muted);
}

.request-status-line strong {
  color: var(--orange-dark);
}

.success-actions {
  display: grid;
  gap: 10px;
}

.request-detail-card h2 {
  margin: 0 0 16px;
  color: var(--graphite-2);
}

.request-items {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.request-item {
  display: grid;
  grid-template-columns: 1fr 90px 110px 120px;
  gap: 12px;
  padding: 13px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.request-item:last-child {
  border-bottom: 0;
}

.request-item strong {
  color: var(--graphite-2);
}

.request-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.request-total {
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  background: #f8f9fb;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.request-total span {
  color: var(--muted);
}

.request-total strong {
  color: var(--graphite-2);
}

.request-contact {
  margin-top: 20px;
  color: var(--muted);
}

.request-contact h3 {
  margin: 0 0 10px;
  color: var(--graphite-2);
}

.request-contact p {
  margin: 6px 0;
}

@media (max-width: 1180px) {
  .cart-layout,
  .request-success {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 86px 1fr 110px;
  }

  .cart-qty-form,
  .cart-item-total,
  .cart-item form {
    grid-column: 2 / -1;
  }
}

@media (max-width: 760px) {
  .cart-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .cart-item,
  .request-item {
    grid-template-columns: 1fr;
  }

  .cart-item-image {
    width: 100%;
    height: 120px;
  }

  .cart-qty-form,
  .cart-item-total,
  .cart-item form {
    grid-column: auto;
  }

  .request-total {
    flex-direction: column;
  }
}

/* ADMIN PANEL */

.admin-body {
  background: #f3f4f6;
}

.admin-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.admin-header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.admin-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-nav a,
.admin-nav button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--graphite-2);
  text-decoration: none;
  font-weight: 950;
  cursor: pointer;
}

.admin-nav a.active {
  background: var(--graphite);
  color: #fff;
  border-color: var(--graphite);
}

.admin-main {
  padding: 32px 0 56px;
}

.admin-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-login-card {
  width: min(440px, 100%);
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.admin-login-brand {
  margin-bottom: 22px;
}

.admin-login-card h1,
.admin-page-head h1,
.admin-detail-head h1 {
  margin: 0 0 10px;
  color: var(--graphite-2);
  letter-spacing: -.8px;
}

.admin-login-card p,
.admin-page-head p,
.admin-detail-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.admin-login-form {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.admin-login-form label,
.admin-update-form label {
  display: grid;
  gap: 7px;
  color: var(--graphite-2);
  font-weight: 950;
}

.admin-login-form input,
.admin-update-form select,
.admin-update-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 12px;
  font: inherit;
}

.admin-page-head,
.admin-detail-head {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.admin-page-head h1,
.admin-detail-head h1 {
  font-size: 42px;
}

.admin-status-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.admin-status-tabs a {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--graphite-2);
  font-weight: 900;
  font-size: 14px;
}

.admin-status-tabs a.active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

.admin-counters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.admin-counters div {
  min-width: 130px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.admin-counters span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.admin-counters strong {
  color: var(--graphite-2);
  font-size: 24px;
}

.admin-table-card,
.admin-detail-main-card,
.admin-side-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.admin-table-card {
  overflow: auto;
}

.admin-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: var(--graphite);
  color: #fff;
  font-size: 13px;
}

.admin-table td span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef1f4;
  color: var(--graphite-2);
  font-weight: 950;
  font-size: 12px;
}

.status-new {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.status-in_progress,
.status-approved,
.status-invoice_sent {
  background: #eef6ff;
  color: #23527c;
}

.status-paid,
.status-shipped,
.status-completed {
  background: rgba(18,138,69,.10);
  color: var(--green);
}

.status-cancelled {
  background: #fff1f1;
  color: #9f1d1d;
}

.admin-open-link,
.admin-back-link {
  color: var(--orange-dark);
  font-weight: 950;
  text-decoration: none;
}

.admin-empty {
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 22px;
  align-items: start;
}

.admin-detail-main-card,
.admin-side-card {
  padding: 22px;
}

.admin-detail-main-card h2,
.admin-side-card h2 {
  margin: 0 0 16px;
  color: var(--graphite-2);
}

.admin-request-items {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.admin-request-item {
  display: grid;
  grid-template-columns: 1fr 90px 110px 120px;
  gap: 12px;
  padding: 13px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.admin-request-item:last-child {
  border-bottom: 0;
}

.admin-request-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.admin-request-total {
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  background: #f8f9fb;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.admin-request-total span,
.admin-side-card p {
  color: var(--muted);
}

.admin-request-total strong,
.admin-side-card p strong {
  color: var(--graphite-2);
}

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

.admin-comment-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  background: #f8f9fb;
  border: 1px solid var(--line);
}

.admin-comment-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.admin-comment-box p {
  margin: 6px 0 0;
}

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

@media (max-width: 980px) {
  .admin-header-inner,
  .admin-page-head,
  .admin-detail-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-detail-grid {
    grid-template-columns: 1fr;
  }

  .admin-request-item {
    grid-template-columns: 1fr;
  }
}
