:root {
  --navy: #092334;
  --navy-2: #123242;
  --teal: #12aaa5;
  --green: #58c27d;
  --ink: #1b2b34;
  --muted: #6a7880;
  --line: #dbe5e8;
  --surface: #ffffff;
  --soft: #f5f8f9;
  --shadow: 0 18px 45px rgba(10, 34, 46, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

html[dir="rtl"] body {
  direction: rtl;
}

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

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

select option,
select optgroup {
  color: var(--ink);
  background: #fff;
}

select option:checked {
  color: #fff;
  background: #7f8588;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(135deg, #061b2b, var(--navy));
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.header-top {
  display: grid;
  grid-template-columns: minmax(190px, 270px) minmax(280px, 1fr) auto;
  gap: 28px;
  align-items: center;
  max-width: 1460px;
  margin: 0 auto;
  padding: 24px 32px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  width: min(100%, 220px);
  height: auto;
  display: block;
}

.search-shell {
  display: grid;
  grid-template-columns: 130px 1fr 112px;
  align-items: center;
  overflow: visible;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.search-input-wrap {
  position: relative;
  min-width: 0;
}

.search-shell select,
.search-shell input,
.search-shell button {
  height: 54px;
  border: 0;
  color: #fff;
}

.search-shell select {
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.08);
}

.search-shell input {
  width: 100%;
  min-width: 0;
  padding: 0 44px 0 18px;
  background: rgba(255, 255, 255, 0.06);
  outline: 0;
}

.clear-search {
  position: absolute;
  top: 50%;
  right: 8px;
  z-index: 3;
  display: none;
  width: 34px;
  height: 34px;
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  color: #fff;
  background: rgba(6, 27, 43, 0.86);
  font-size: 24px;
  line-height: 1;
  transform: translateY(-50%);
}

.clear-search.visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 40;
  max-height: min(360px, 70vh);
  overflow-y: auto;
  border: 1px solid rgba(9, 35, 52, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(9, 35, 52, 0.24);
}

.search-suggest button {
  display: grid;
  width: 100%;
  height: auto;
  min-height: 54px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.search-suggest button:hover {
  background: #eef8f8;
}

.search-suggest strong,
.search-suggest span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggest strong {
  color: var(--navy);
  font-size: 14px;
}

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

html[dir="rtl"] .search-shell input {
  text-align: right;
}

.search-shell input::placeholder {
  color: rgba(255, 255, 255, 0.56);
}

.search-shell button,
.inquiry-link,
.primary-action,
.contact-form button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), #0d8f8b);
  cursor: pointer;
}

.header-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.header-actions select {
  height: 44px;
  border: 0;
  color: #fff;
  background: transparent;
  max-width: 180px;
}

.inquiry-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 8px;
  font-weight: 700;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.main-nav {
  display: flex;
  gap: 36px;
  max-width: 1460px;
  margin: 0 auto;
  padding: 0 32px 18px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a:first-child::after,
.main-nav a:hover::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--teal);
}

main {
  max-width: 1460px;
  margin: 0 auto;
  background: #fff;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 540px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(6, 27, 43, 0.96) 0%, rgba(6, 27, 43, 0.84) 34%, rgba(6, 27, 43, 0.26) 70%, rgba(6, 27, 43, 0.08) 100%),
    url("./assets/generated/hero-premium-scissors.png") center right / cover no-repeat;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 72% 42%, rgba(18, 170, 165, 0.2), transparent 28%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 38%);
  pointer-events: none;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 72%, rgba(4, 16, 26, 0.36) 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 62px 0 70px 78px;
}

html[dir="rtl"] .hero-copy {
  padding-right: 78px;
  padding-left: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 710px;
  margin: 0;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-text {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 8px;
  font-weight: 800;
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 690px;
  margin-top: 34px;
}

.proof-strip div {
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

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

.proof-strip strong {
  font-size: 15px;
}

.proof-strip span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.68);
}

.hero-product {
  position: absolute;
  inset: 0;
  min-height: 560px;
  pointer-events: none;
}

.hero-product img {
  display: none;
}

html[dir="rtl"] .hero-product img {
  right: auto;
  left: 4%;
}

.blade-line {
  display: none;
}

html[dir="rtl"] .blade-line {
  right: auto;
  left: -9%;
}

.home-category-strip {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  width: calc(100% - 96px);
  margin: -42px auto 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(219, 229, 232, 0.86);
  border-radius: 12px;
  box-shadow:
    0 26px 58px rgba(9, 35, 52, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.85) inset;
  backdrop-filter: blur(14px);
}

.home-category-card {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 136px;
  padding: 16px 10px 14px;
  overflow: hidden;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 252, 0.96));
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.home-category-card:last-child {
  border-right: 0;
}

.home-category-card::before,
.category-card::before,
.product-card::before {
  position: absolute;
  inset: -80% auto auto -35%;
  width: 52%;
  height: 220%;
  content: "";
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.72) 48%, transparent 100%);
  opacity: 0;
  transform: rotate(22deg) translateX(-120%);
  transition: opacity 180ms ease, transform 520ms ease;
  pointer-events: none;
}

.home-category-card:hover,
.home-category-card.active {
  z-index: 2;
  background: #fff;
  box-shadow:
    0 18px 38px rgba(9, 35, 52, 0.16),
    inset 0 -4px 0 var(--teal);
  transform: translateY(-4px);
}

.home-category-card:hover::before,
.home-category-card.active::before,
.category-card:hover::before,
.category-card.active::before,
.product-card:hover::before {
  opacity: 1;
  transform: rotate(22deg) translateX(300%);
}

.home-category-card img {
  width: min(150px, 88%);
  height: 84px;
  margin-bottom: 10px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(9, 35, 52, 0.18));
  transform: translateZ(0);
  transition: transform 180ms ease, filter 180ms ease;
}

.home-category-card:hover img,
.home-category-card.active img {
  filter: drop-shadow(0 16px 22px rgba(9, 35, 52, 0.22));
  transform: scale(1.06);
}

.home-category-card span {
  color: var(--navy);
  font-weight: 900;
}

.catalog-page {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 40px 32px 56px;
  background: #fff;
}

.category-ribbon {
  position: sticky;
  top: 154px;
  align-self: start;
  display: grid;
  gap: 0;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.catalog-sidebar-title {
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-weight: 900;
  text-transform: uppercase;
}

.category-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 10px 14px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: start;
}

.category-card:last-child {
  border-bottom: 0;
}

.category-card.active {
  background: linear-gradient(90deg, rgba(18, 170, 165, 0.14), rgba(255, 255, 255, 0.98));
  box-shadow:
    inset 4px 0 0 var(--teal),
    0 12px 28px rgba(9, 35, 52, 0.08);
}

.category-card:hover {
  background: #fff;
  transform: translateX(3px);
}

.category-card img {
  display: block;
  width: 48px;
  height: 44px;
  margin: 0;
  object-fit: contain;
  filter: drop-shadow(0 7px 10px rgba(9, 35, 52, 0.16));
}

.category-card span {
  font-weight: 800;
}

.products-section {
  min-width: 0;
  padding: 0;
}

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

.section-heading h2,
.quality-section h2,
.contact-section h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
}

.section-tools {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--muted);
}

.section-tools button {
  border: 0;
  color: var(--teal);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

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

.load-more-row {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.load-more-row button {
  min-width: 180px;
  min-height: 48px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  color: var(--teal);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.load-more-row button[hidden] {
  display: none;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 342px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(9, 35, 52, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:hover {
  border-color: rgba(18, 170, 165, 0.42);
  box-shadow: 0 22px 46px rgba(9, 35, 52, 0.16);
  transform: translateY(-5px);
}

.product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 230px;
  padding: 10px;
  background:
    radial-gradient(circle at 70% 20%, rgba(18, 170, 165, 0.12), transparent 34%),
    linear-gradient(145deg, #fff, #f6fafb 76%, #edf7f7);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 14px 18px rgba(9, 35, 52, 0.14));
  transition: transform 180ms ease, filter 180ms ease;
}

.product-card:hover .product-image img {
  filter: drop-shadow(0 18px 24px rgba(9, 35, 52, 0.2));
  transform: scale(1.05);
}

.image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82%;
  height: 72%;
  border: 1px dashed #b8ced3;
  border-radius: 8px;
  color: #6c8088;
  background:
    linear-gradient(135deg, rgba(18, 170, 165, 0.08), rgba(88, 194, 125, 0.08)),
    #f8fbfb;
  font-weight: 800;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px 16px 16px;
}

.product-code {
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 15px;
  font-weight: 900;
}

.product-card h3 {
  min-height: 48px;
  margin: 0;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.product-description {
  display: none;
  min-height: 0;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip-row span {
  padding: 6px 8px;
  border-radius: 6px;
  background: #eef4f5;
  color: #42545c;
  font-size: 12px;
  font-weight: 700;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
}

.detail-button {
  border: 0;
  color: var(--teal);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
  text-align: start;
}

.inquiry-mini {
  border: 0;
  padding: 10px 14px;
  border-radius: 7px;
  color: #fff;
  background: var(--navy-2);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.no-results {
  grid-column: 1 / -1;
  padding: 42px 22px;
  border: 1px dashed #b8ced3;
  border-radius: 8px;
  color: var(--navy);
  background: #f7fbfb;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.search-fallback-note {
  grid-column: 1 / -1;
  padding: 13px 16px;
  border: 1px solid rgba(18, 170, 165, 0.22);
  border-radius: 8px;
  color: var(--navy);
  background: #eefafa;
  font-weight: 800;
}

.detail-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 38px;
  padding: 62px 48px;
  background: linear-gradient(180deg, #f7fbfb, #fff);
  border-top: 1px solid var(--line);
}

.detail-panel[hidden] {
  display: none;
}

.detail-mode .hero,
.detail-mode .home-category-strip,
.detail-mode .catalog-page,
.detail-mode .quality-section {
  display: none;
}

.back-to-catalog {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-bottom: 22px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.back-to-catalog::before {
  content: "<";
  margin-right: 8px;
  color: var(--teal);
}

html[dir="rtl"] .back-to-catalog::before {
  margin-right: 0;
  margin-left: 8px;
  content: ">";
}

.detail-media {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 520px;
}

.detail-main-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.detail-main-image img {
  width: 90%;
  max-height: 460px;
  object-fit: contain;
}

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

.detail-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
}

.detail-thumb.active {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 2px rgba(18, 170, 165, 0.22);
}

.detail-thumb img {
  width: 100%;
  height: 92px;
  object-fit: contain;
}

.detail-thumb.placeholder {
  cursor: default;
  font-size: 12px;
  font-weight: 800;
}

.detail-code {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 900;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.detail-content h2 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.1;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.detail-content p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.spec-table {
  margin: 24px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.spec-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--line);
}

.spec-row:last-child {
  border-bottom: 0;
}

.spec-row span {
  padding: 15px 18px;
}

.spec-row span:first-child {
  background: #f4f8f8;
  color: var(--navy);
  font-weight: 800;
}

.quality-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 46px;
  padding: 56px 48px;
  color: #fff;
  background: linear-gradient(135deg, #061b2b, #0c2b3d);
}

.quality-section h2 {
  color: #fff;
}

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

.quality-grid article {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.quality-grid span {
  color: var(--green);
  font-weight: 900;
}

.quality-grid h3 {
  margin: 18px 0 10px;
}

.quality-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  padding: 56px 48px;
}

.contact-section p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

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

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

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  outline-color: var(--teal);
}

.file-upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px dashed #a9c7cc;
  border-radius: 8px;
  color: var(--navy);
  background: #f7fbfb;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.file-upload-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-upload-row:hover,
.file-upload-row.is-dragover {
  border-color: var(--teal);
  background: #eefafa;
  box-shadow: 0 0 0 3px rgba(20, 166, 158, 0.12);
}

.file-upload-title {
  display: block;
  font-weight: 800;
}

.file-upload-help {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.upload-note,
.backend-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.custom-hint {
  margin: -4px 0 0;
  padding: 8px 12px;
  border-left: 3px solid #c1d72e;
  background: #f6f8e3;
  border-radius: 4px;
  color: #4a5a1a;
  font-size: 13px;
  line-height: 1.45;
}

.reference-feedback {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfb;
  flex-wrap: wrap;
}

.reference-feedback[hidden] {
  display: none;
}

.reference-preview {
  max-width: 96px;
  max-height: 72px;
  border-radius: 6px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: #fff;
}

.reference-file-info {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reference-clear {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}

.reference-clear:hover {
  background: #f0e9e6;
  border-color: #c1a59a;
}

.contact-direct {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.contact-direct div,
.selected-inquiry {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfb;
  padding: 14px;
}

.contact-direct strong,
.contact-direct span {
  display: block;
}

.contact-direct span[hidden] {
  display: none;
}

.contact-direct span {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
}

.selected-inquiry > strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
}

.selected-products-empty {
  color: var(--muted);
  line-height: 1.45;
}

.selected-products-list {
  display: grid;
  gap: 10px;
}

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

.selected-product img,
.selected-product-fallback {
  width: 72px;
  height: 58px;
  object-fit: contain;
}

.selected-product strong,
.selected-product span,
.selected-product small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-product strong {
  color: var(--teal);
}

.selected-product small {
  color: var(--muted);
}

.selected-product button {
  width: 34px;
  height: 34px;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--navy);
  background: #fff;
  font-size: 20px;
}

.contact-form textarea {
  min-height: 142px;
  resize: vertical;
}

.contact-form button {
  min-height: 54px;
  border-radius: 8px;
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1460px;
  margin: 0 auto;
  padding: 28px 48px;
  color: rgba(255, 255, 255, 0.72);
  background: #061b2b;
}

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

.site-footer img {
  width: min(260px, 46vw);
}

.footer-contact {
  max-width: 460px;
  text-align: right;
  line-height: 1.5;
}

.floating-tools {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: grid;
  gap: 8px;
}

.floating-tools button {
  width: 58px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  background: rgba(6, 27, 43, 0.92);
  box-shadow: 0 12px 28px rgba(9, 35, 52, 0.24);
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 1040px) {
  .header-top {
    grid-template-columns: 1fr auto;
  }

  .search-shell {
    grid-column: 1 / -1;
    order: 3;
    min-width: 0;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding-top: 0;
  }

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

  .hero,
  .detail-panel,
  .quality-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 54px 32px 24px;
  }

  html[dir="rtl"] .hero-copy {
    padding: 54px 32px 24px;
  }

  .hero-product {
    min-height: 320px;
  }

  .hero-product img {
    display: none;
  }

  html[dir="rtl"] .hero-product img {
    right: auto;
    left: 2%;
  }

  .catalog-page {
    grid-template-columns: 1fr;
    padding: 28px 20px 54px;
  }

  .home-category-strip {
    display: flex;
    width: calc(100% - 40px);
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .home-category-card {
    min-width: 154px;
    scroll-snap-align: start;
  }

  .category-ribbon {
    position: static;
    display: flex;
    width: 100%;
    margin: 0;
    overflow-x: auto;
    border-radius: 8px;
  }

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

  .catalog-sidebar-title {
    display: none;
  }

  .category-card {
    grid-template-columns: 1fr;
    justify-items: center;
    min-width: 136px;
    min-height: 110px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    text-align: center;
  }

  .category-card.active {
    box-shadow: inset 0 -4px 0 var(--teal);
  }

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

@media (max-width: 680px) {
  body {
    background: #fff;
  }

  .site-header {
    position: sticky;
  }

  .header-top {
    grid-template-columns: 1fr auto;
    padding: 12px 14px 14px;
    gap: 10px;
  }

  .brand img {
    width: 156px;
  }

  .header-actions {
    gap: 8px;
  }

  .inquiry-link {
    display: none;
  }

  .header-actions select {
    width: 118px;
    max-width: 118px;
    font-size: 12px;
  }

  .search-shell {
    position: relative;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    border-radius: 7px;
  }

  .search-shell select {
    width: 86px;
  }

  .search-shell input {
    width: 100%;
  }

  .search-shell button {
    display: none;
  }

  .search-shell .clear-search.visible {
    display: inline-flex;
  }

  .search-shell .search-suggest button {
    display: grid;
  }

  .search-shell select,
  .search-shell input,
  .search-shell button {
    height: 46px;
  }

  .search-shell button span {
    display: none;
  }

  .search-shell button::after {
    content: "⌕";
    font-weight: 900;
  }

  main {
    width: 100%;
  }

  .hero {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    background:
      radial-gradient(circle at 76% 55%, rgba(18, 170, 165, 0.28), transparent 36%),
      linear-gradient(155deg, #061b2b, #112f3d 62%, #08202d);
  }

  .hero-copy {
    width: 100%;
    min-width: 0;
    padding: 34px 18px 12px;
    overflow: hidden;
  }

  .hero h1 {
    width: 100%;
    max-width: 330px;
    font-size: 30px;
    line-height: 1.06;
    overflow-wrap: anywhere;
  }

  .hero-text {
    max-width: 330px;
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.45;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 330px;
    margin-top: 22px;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0 10px;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
  }

  .hero-actions,
  .proof-strip,
  .section-heading,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .proof-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 330px;
    margin-top: 22px;
  }

  .proof-strip div {
    min-width: 0;
    padding-left: 9px;
  }

  .proof-strip strong {
    font-size: 12px;
    line-height: 1.2;
  }

  .proof-strip span {
    font-size: 11px;
    line-height: 1.25;
  }

  .hero-product {
    min-height: 260px;
    padding: 0 16px 18px;
  }

  .hero-product img {
    position: relative;
    right: auto;
    bottom: auto;
    display: block;
    width: 100%;
    height: 246px;
    max-height: 246px;
    margin: 0 auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow:
      0 26px 38px rgba(0, 0, 0, 0.28),
      0 1px 0 rgba(255, 255, 255, 0.12) inset;
    object-fit: cover;
    filter: none;
  }

  html[dir="rtl"] .hero-product img {
    left: auto;
  }

  .blade-line {
    display: none;
  }

  .home-category-strip {
    display: flex;
    width: 100%;
    margin: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: 0 14px 28px rgba(9, 35, 52, 0.12);
    -webkit-overflow-scrolling: touch;
  }

  .home-category-card {
    min-width: 142px;
    min-height: 126px;
    padding: 12px 10px;
    scroll-snap-align: start;
  }

  .home-category-card img {
    width: 112px;
    height: 68px;
    margin-bottom: 8px;
  }

  .home-category-card span {
    min-height: 32px;
    font-size: 14px;
    line-height: 1.15;
  }

  .catalog-page {
    padding: 0 0 34px;
  }

  .category-ribbon {
    display: none;
    width: 100%;
    margin-top: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: 0 10px 24px rgba(9, 35, 52, 0.08);
    -webkit-overflow-scrolling: touch;
  }

  .category-card {
    display: grid;
    grid-template-columns: 1fr;
    min-width: 124px;
    min-height: 116px;
    padding: 12px 8px 13px;
    scroll-snap-align: start;
  }

  .category-card img {
    width: 96px;
    height: 62px;
    margin-bottom: 8px;
  }

  .category-card span {
    display: block;
    min-height: 32px;
    font-size: 14px;
    line-height: 1.15;
  }

  .products-section,
  .quality-section,
  .contact-section {
    padding: 34px 14px;
  }

  .contact-field-row,
  .file-upload-row {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    padding: 34px 14px;
  }

  .section-heading {
    gap: 10px;
    margin-bottom: 16px;
  }

  .section-heading h2,
  .quality-section h2,
  .contact-section h2 {
    font-size: 28px;
  }

  .section-tools {
    width: 100%;
    justify-content: space-between;
    font-size: 13px;
  }

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

  .product-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: 0;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(9, 35, 52, 0.08);
  }

  .product-image {
    height: 100%;
    min-height: 170px;
    padding: 12px;
  }

  .product-body {
    padding: 17px;
  }

  .product-code {
    font-size: 16px;
  }

  .product-card h3 {
    min-height: 0;
    font-size: 16px;
  }

  .product-description {
    display: none;
  }

  .chip-row {
    margin-top: 10px;
  }

  .chip-row span {
    font-size: 11px;
  }

  .card-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
  }

  .inquiry-mini {
    display: inline-flex;
    width: max-content;
  }

  .detail-media {
    min-height: 300px;
  }

  .detail-main-image {
    min-height: 300px;
  }

  .detail-content h2 {
    font-size: 30px;
  }

  .spec-row {
    grid-template-columns: 128px 1fr;
  }

  .selected-product {
    grid-template-columns: 58px minmax(0, 1fr) 32px;
    gap: 8px;
  }

  .selected-product img,
  .selected-product-fallback {
    width: 58px;
    height: 50px;
  }

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-contact {
    max-width: 100%;
    text-align: left;
  }

  .floating-tools {
    right: 10px;
    bottom: 10px;
  }

  .floating-tools button {
    width: 52px;
    min-height: 40px;
    font-size: 12px;
  }
}
