@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap");

:root {
  --blue: #255bd8;
  --blue-2: #1744b5;
  --ink: #172033;
  --muted: #6f7a8d;
  --soft: #f5f8fe;
  --soft-2: #edf3fc;
  --line: #e3e9f3;
  --white: #fff;
  --shadow: 0 18px 55px rgba(31, 64, 120, .12);
  --radius: 8px;
  font-family: Vazirmatn, Tahoma, sans-serif;
  color: var(--ink);
  background: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: #fff;
  color: var(--ink);
  font-family: Vazirmatn, Tahoma, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.main-nav {
  position: relative;
  width: 100%;
  min-height: 96px;
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(440px, 1fr) minmax(430px, 560px);
  grid-template-areas: "brand navigation tools";
  align-items: center;
  gap: clamp(18px, 2.2vw, 38px);
  padding: 0 clamp(22px, 4vw, 76px);
  direction: ltr;
}
.logo {
  grid-area: brand;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  direction: rtl;
}
.logo img {
  display: block;
  width: clamp(148px, 11vw, 184px);
  height: auto;
  max-height: 64px;
  object-fit: contain;
}
.main-nav nav {
  grid-area: navigation;
  justify-self: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  color: #172033;
  font-size: 14px;
  font-weight: 700;
  direction: rtl;
}
.main-nav nav a {
  position: relative;
  padding: 37px 0 33px;
  white-space: nowrap;
}
.main-nav nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 22px;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width .25s ease;
}
.main-nav nav a.active,
.main-nav nav a:hover { color: var(--blue); }
.main-nav nav a.active::after,
.main-nav nav a:hover::after { width: 100%; }
.nav-tools {
  grid-area: tools;
  justify-self: end;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  direction: ltr;
}
.nav-tools > * { direction: rtl; }
.search-box {
  height: 44px;
  display: grid;
  grid-template-columns: 1fr 44px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7f9fd;
  box-shadow: inset 0 1px 5px rgba(22, 42, 72, .04);
}
.search-box input {
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 16px;
  color: var(--ink);
}
.search-box button {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #5c6678;
}
.catalog-btn,
.primary-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 28px;
  background: linear-gradient(180deg, #3268e4, #2456cf);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(37, 91, 216, .22);
}
.nav-tools .catalog-btn {
  min-height: 44px;
  padding-inline: 18px;
  white-space: nowrap;
}
.catalog-btn svg,
.primary-btn svg { width: 20px; height: 20px; }
.nav-icons {
  display: flex;
  gap: 14px;
  color: #1d2b45;
}
.nav-icons a {
  position: relative;
  display: grid;
  place-items: center;
}
.nav-icons span {
  position: absolute;
  top: -9px;
  right: -9px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.menu-button {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px 16px;
  color: var(--blue);
  font-weight: 800;
}
.menu-button::before {
  content: "☰";
  font-size: 19px;
  line-height: 1;
}
.menu-button[aria-expanded="true"]::before {
  content: "×";
  font-size: 24px;
}
.mobile-menu {
  display: none;
  padding: 0 18px 20px;
  gap: 10px;
}
.mobile-menu a {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
}
.mobile-menu a.active {
  border-color: rgba(37, 91, 216, .3);
  background: var(--soft-2);
  color: var(--blue);
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(420px, 48vw) 1fr;
  min-height: 464px;
  background: linear-gradient(90deg, #fff 0%, #f6f9ff 54%, #fff 100%);
  overflow: hidden;
  direction: ltr;
}
.hero-image {
  position: relative;
  min-height: 464px;
  overflow: hidden;
  background: #edf3fc;
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.035);
  transition: opacity .9s ease, visibility .9s ease, transform 6s ease;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 1;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide figcaption {
  position: absolute;
  left: 22px;
  bottom: 22px;
  min-width: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 6px;
  padding: 13px 16px;
  background: rgba(16, 24, 39, .86);
  color: #fff;
  direction: rtl;
  backdrop-filter: blur(10px);
}

/* Keep the hero photography clean at every viewport size. */
.hero-slide figcaption {
  display: none !important;
}
.hero-slide figcaption b {
  color: #76a2ff;
  font-size: 13px;
}
.hero-slide figcaption span {
  font-size: 13px;
  font-weight: 800;
}
.hero-carousel-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 30px rgba(16, 24, 39, .18);
  backdrop-filter: blur(12px);
}
.hero-carousel-controls > button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
}
.hero-carousel-controls > button:hover {
  background: var(--blue);
  color: #fff;
}
.hero-carousel-controls svg { width: 17px; height: 17px; }
.hero-carousel-controls div {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-carousel-controls div button {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: #aab6c9;
  transition: width .25s ease, border-radius .25s ease, background .25s ease;
}
.hero-carousel-controls div button.active {
  width: 24px;
  border-radius: 999px;
  background: var(--blue);
}
.hero-copy {
  position: relative;
  min-height: 464px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: clamp(40px, 6vw, 76px);
  overflow: hidden;
  direction: rtl;
}
.hero-copy > span,
.page-title span,
.contact-hero span,
.about-hero span,
.cta-panel span {
  color: var(--blue);
  font-weight: 800;
}
.hero-copy h1 {
  max-width: 500px;
  margin: 20px 0 18px;
  color: #172033;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.35;
  font-weight: 900;
}
.hero-copy p {
  max-width: 500px;
  margin: 0 0 30px;
  color: #39465d;
  font-size: 17px;
  line-height: 2;
  font-weight: 500;
}
.round-preview {
  position: absolute;
  left: auto;
  right: -140px;
  top: 84px;
  width: 202px;
  height: 304px;
  object-fit: cover;
  border-radius: 0 160px 160px 0;
}
.dot-field {
  position: absolute;
  right: 150px;
  top: 58px;
  width: 92px;
  height: 92px;
  opacity: .62;
  background-image: radial-gradient(var(--blue) 1.8px, transparent 1.8px);
  background-size: 20px 20px;
}

.benefits {
  position: relative;
  z-index: 3;
  width: min(1200px, calc(100% - 36px));
  margin: -54px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.benefits article {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px;
  border-left: 1px solid var(--line);
}
.benefits article:last-child { border-left: 0; }
.benefits svg {
  color: var(--blue);
  width: 38px;
  height: 38px;
}
.benefits h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.benefits p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.section-block {
  padding: clamp(42px, 6vw, 72px) clamp(18px, 7vw, 106px);
}
.section-block.soft {
  background: linear-gradient(180deg, #f6f9ff, #eef5ff);
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.section-head h2 {
  margin: 0;
  color: #243351;
  font-size: clamp(24px, 2.5vw, 32px);
}
.ghost-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid #c8d7f6;
  border-radius: 7px;
  padding: 10px 18px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}
.category-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(10px, 1vw, 18px);
}
.category-card {
  min-width: 0;
  min-height: 210px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  border: 1px solid #e4eaf4;
  border-radius: 9px;
  padding: 10px 10px 14px;
  background: linear-gradient(180deg, #f7faff 0%, #fff 100%);
  text-align: center;
  box-shadow: 0 10px 28px rgba(24, 52, 96, .06);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 91, 216, .34);
  box-shadow: 0 22px 42px rgba(24, 52, 96, .13);
}
.category-visual {
  width: min(100%, 160px);
  height: auto;
  min-height: 0;
  aspect-ratio: 1;
  display: block;
  justify-self: center;
  border-radius: 7px;
  background-image: url("assets/category-product-sprite-v1.png");
  background-repeat: no-repeat;
  background-size: 400% 200%;
  background-color: #edf4fd;
  transition: transform .3s ease;
}
.category-card:hover .category-visual {
  transform: scale(1.035);
}
.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(12px, .92vw, 15px);
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.category-visual-0 { background-position: 0% 0%; }
.category-visual-1 { background-position: 33.333% 0%; }
.category-visual-2 { background-position: 66.667% 0%; }
.category-visual-3 { background-position: 100% 0%; }
.category-visual-4 { background-position: 0% 100%; }
.category-visual-5 { background-position: 33.333% 100%; }
.category-visual-6 { background-position: 66.667% 100%; }
.category-visual-7 { background-position: 100% 100%; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.project-grid a,
.project-page-grid article {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(33, 61, 110, .1);
}
.project-grid img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}
.project-grid span {
  display: block;
  padding: 14px;
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}
.product-card {
  display: grid;
  grid-template-rows: 240px auto;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(33, 61, 110, .08);
}
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 10px;
  background: #f4f7fb;
}
.product-card div {
  padding: 14px 16px 16px;
}
.product-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.product-card h3 {
  margin: 5px 0;
  font-size: 18px;
}
.product-card p {
  display: -webkit-box;
  margin: 0 0 10px;
  min-height: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.product-card b {
  display: inline-block;
  color: #172033;
  font-size: 15px;
}
.old-price {
  display: inline-block;
  margin-left: 10px;
  color: #8b95a7;
  font-size: 13px;
}
.discount-badge {
  display: inline-flex;
  margin-right: 10px;
  border-radius: 4px;
  padding: 4px 7px;
  background: #e9f8ef;
  color: #15803d;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}
.product-card a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 800;
}
.empty-state {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px dashed #c8d7f6;
  border-radius: var(--radius);
  background: #f8fbff;
  color: var(--muted);
  font-weight: 800;
}
.page-label {
  color: var(--blue);
  font-weight: 900;
}

.cta-panel {
  width: min(1180px, calc(100% - 36px));
  margin: 24px auto 70px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  border-radius: 14px;
  padding: clamp(28px, 5vw, 54px);
  background: linear-gradient(135deg, #eef5ff, #fff);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.cta-panel h2 {
  margin: 12px 0;
  font-size: clamp(28px, 4vw, 46px);
}
.cta-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.site-footer {
  min-height: 274px;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(280px, 1.15fr) minmax(230px, 1fr);
  grid-template-areas:
    "contact brand quick"
    "credit credit credit";
  align-items: start;
  gap: clamp(32px, 6vw, 96px);
  padding: 52px clamp(24px, 7vw, 112px);
  background: #101827;
  color: #fff;
  direction: ltr;
}
.footer-brand,
.footer-quick,
.footer-contact {
  direction: rtl;
}
.footer-brand {
  grid-area: brand;
  justify-self: center;
  width: 100%;
  text-align: center;
}
.footer-quick {
  grid-area: quick;
  justify-self: end;
  text-align: right;
}
.footer-contact {
  grid-area: contact;
  justify-self: start;
  text-align: right;
}
.footer-credit {
  grid-area: credit;
  justify-self: center;
  align-self: end;
  margin-top: 10px;
  color: #8fa0bd;
  font: 600 12px/1.5 Arial, sans-serif;
  letter-spacing: 0;
  direction: ltr;
}
.footer-brand h2 {
  margin: 0;
}
.footer-logo {
  display: block;
  width: min(220px, 100%);
  height: auto;
  max-height: 78px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}
.footer-tagline {
  margin: 12px 0 0 !important;
  color: #fff !important;
  font-size: 18px;
  font-weight: 800;
}
.site-footer h3 {
  margin: 0 0 12px;
  color: #dfe8ff;
}
.site-footer p,
.site-footer a {
  display: block;
  margin: 8px 0;
  color: #b9c6dd;
  line-height: 1.9;
}
.footer-contact a {
  direction: ltr;
  text-align: left;
}

.page-title {
  padding: clamp(58px, 8vw, 96px) clamp(18px, 7vw, 106px);
  text-align: center;
  background: linear-gradient(180deg, #f7faff, #fff);
}
.page-title h1 {
  margin: 12px 0;
  font-size: clamp(34px, 5vw, 58px);
}
.page-title p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 2;
}
.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding: 0 clamp(18px, 7vw, 106px) 76px;
}
.filters {
  position: sticky;
  top: 108px;
  align-self: start;
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}
.filters h2 { margin: 0; }
.filters div {
  display: grid;
  gap: 8px;
}
.filters button {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  background: #f7f9fd;
  color: var(--ink);
  text-align: right;
  font-weight: 800;
}
.filters button.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.filters label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}
.filters input,
.filters select,
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  outline: 0;
  background: #fff;
  color: var(--ink);
}
.catalog-grid { grid-template-columns: repeat(3, 1fr); }

.product-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: clamp(36px, 5vw, 82px);
  align-items: center;
  padding: clamp(42px, 6vw, 84px) clamp(20px, 6vw, 94px) clamp(70px, 8vw, 118px);
  background: linear-gradient(180deg, #f7faff 0%, #fff 68%);
}
.product-gallery {
  min-width: 0;
  direction: ltr;
}
.product-main-media {
  position: relative;
  aspect-ratio: 1.24 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.product-main-media > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .25s ease, transform .55s ease;
}
.product-main-media:hover > img { transform: scale(1.025); }
.product-main-media > span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(16, 24, 39, .82);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}
.product-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.product-thumbs button {
  aspect-ratio: 1.25 / 1;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 0;
  background: #f5f7fb;
  transition: border-color .2s ease, transform .2s ease;
}
.product-thumbs button:hover { transform: translateY(-2px); }
.product-thumbs button.active { border-color: var(--blue); }
.product-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-summary {
  align-self: center;
}
.product-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.product-kicker em {
  border: 1px solid #bfd0fb;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--blue);
  background: #edf3ff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}
.product-summary h1 {
  margin: 14px 0 16px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.18;
}
.product-summary > p {
  margin: 0;
  color: var(--muted);
  line-height: 2.05;
}
.product-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.product-meta span {
  border-top: 1px solid var(--line);
  padding-top: 13px;
}
.product-meta small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}
.product-meta b { font-size: 14px; }
.product-summary .spec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin: 24px 0;
}
.product-summary .spec-list div {
  position: relative;
  border: 0;
  border-radius: 0;
  padding: 9px 18px 9px 0;
  background: transparent;
  color: #35425a;
  font-size: 13px;
}
.product-summary .spec-list div::before {
  content: "";
  position: absolute;
  top: 17px;
  right: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}
.detail-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.detail-price h2 {
  margin: 0;
  font-size: 27px;
}
.price-note {
  display: block;
  margin-top: 8px;
  color: #9a6a18;
  font-size: 11px;
  font-weight: 700;
}
.finish-picker {
  display: grid;
  gap: 11px;
  margin: 24px 0;
}
.finish-picker > strong { font-size: 13px; }
.finish-picker > div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.finish-picker span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}
.finish-picker i {
  width: 24px;
  height: 24px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #ccd5e4;
}
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.outline-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b9c7df;
  border-radius: var(--radius);
  padding: 0 24px;
  color: var(--blue);
  background: #fff;
  font-weight: 900;
}
.outline-btn:hover { border-color: var(--blue); background: #f4f7ff; }

.product-story {
  display: grid;
  grid-template-columns: minmax(340px, .82fr) minmax(0, 1.18fr);
  align-items: stretch;
  background: #101827;
  color: #fff;
  direction: rtl;
}
.product-story > div {
  display: grid;
  align-content: center;
  padding: clamp(52px, 7vw, 112px);
}
.product-story > div > span,
.product-spec-section header span,
.technical-section header span,
.product-download span {
  color: #6f9cff;
  font-size: 13px;
  font-weight: 900;
}
.product-story h2,
.product-spec-section h2,
.technical-section h2,
.product-download h2 {
  margin: 12px 0 16px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.35;
}
.product-story p {
  margin: 0;
  color: #bac5d8;
  line-height: 2.05;
}
.product-story ul {
  display: grid;
  gap: 11px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.product-story li {
  position: relative;
  padding-right: 20px;
  color: #e6ebf4;
  font-size: 13px;
}
.product-story li::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 0;
  width: 8px;
  height: 8px;
  border: 2px solid #6f9cff;
  border-radius: 50%;
}
.product-story > img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.product-spec-section,
.technical-section {
  padding: clamp(66px, 8vw, 118px) clamp(20px, 7vw, 110px);
}
.product-spec-section header,
.technical-section header {
  max-width: 760px;
  margin-bottom: 42px;
}
.product-spec-section header p,
.technical-section header p,
.product-download p {
  margin: 0;
  color: var(--muted);
  line-height: 2;
}
.dimension-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}
.dimension-grid > div {
  min-height: 130px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
  border-left: 1px solid var(--line);
}
.dimension-grid > div:last-child { border-left: 0; }
.dimension-grid small { color: var(--muted); }
.dimension-grid strong { font-size: clamp(18px, 2vw, 25px); }
.variant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
}
.variant-row > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  direction: ltr;
}
.variant-row span {
  min-width: 68px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  color: #42506a;
  background: #f8faff;
  font-size: 12px;
  font-weight: 800;
}
.model-pricing {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}
.model-pricing-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.model-pricing-head span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.model-pricing-head h3 {
  margin: 7px 0 0;
  font-size: clamp(23px, 3vw, 34px);
}
.model-pricing-head em {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 13px;
  background: #edf3ff;
  color: var(--blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}
.model-table-wrap {
  overflow-x: auto;
  border: 1px solid #dbe3ef;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 42px rgba(31, 64, 120, .07);
}
.model-pricing table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  text-align: right;
}
.model-pricing th,
.model-pricing td {
  padding: 17px 20px;
  border-bottom: 1px solid #e7ecf4;
  white-space: nowrap;
}
.model-pricing th {
  background: #f2f6fc;
  color: #657188;
  font-size: 12px;
  font-weight: 900;
}
.model-pricing td {
  color: #3a465c;
  font-size: 13px;
}
.model-pricing tbody tr {
  transition: background .2s ease;
}
.model-pricing tbody tr:hover {
  background: #f8faff;
}
.model-pricing tbody tr:last-child td {
  border-bottom: 0;
}
.model-pricing td strong {
  color: var(--ink);
  font-size: 14px;
}
.model-pricing td a {
  display: inline-flex;
  border: 1px solid #bfd0fb;
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--blue);
  background: #f5f8ff;
  font-weight: 900;
}
.model-pricing td a:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}
.model-pricing > p {
  margin: 12px 0 0;
  color: #9a6a18;
  font-size: 11px;
}

.product-model-selector {
  margin: 4px 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #f7f9fd;
}
.product-model-selector > legend {
  padding: 0 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}
.product-model-selector > p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
}
.product-model-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.product-model-option {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid #dbe4f2;
  border-radius: 7px;
  padding: 11px 12px;
  background: #fff;
  cursor: pointer;
}
.product-model-option:has(input:checked) {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 91, 216, .09);
}
.product-model-option input {
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
}
.product-model-option span {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.product-model-option b,
.product-model-option small,
.product-model-option em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-model-option b { color: var(--ink); font-size: 13px; }
.product-model-option small { color: var(--muted); font-size: 11px; }
.product-model-option em { color: var(--blue); font-size: 12px; font-style: normal; font-weight: 900; }
.model-selection-note { min-height: 18px; margin: -12px 0 12px; color: #a4670e; font-size: 11px; font-weight: 800; }
.model-pricing tbody tr.is-selected { background: #edf3ff; }
.model-pricing-select {
  border: 1px solid #bfd0fb;
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--blue);
  background: #f5f8ff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.model-pricing-select:hover { border-color: var(--blue); background: var(--blue); color: #fff; }
html[data-theme="dark"] .product-model-selector,
html[data-theme="dark"] .product-model-option { background: #101d31; border-color: #2a3a52; }
html[data-theme="dark"] .model-pricing tbody tr.is-selected { background: #152744; }

@media (max-width: 720px) {
  .product-model-options { grid-template-columns: 1fr; }
}

.technical-section {
  background: #f4f7fc;
}
.technical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.technical-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dce4f0;
  border-radius: var(--radius);
  background: #fff;
}
.technical-grid figure > span {
  position: absolute;
  z-index: 1;
  top: 18px;
  right: 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.technical-grid img {
  width: 100%;
  aspect-ratio: 1 / 1.12;
  object-fit: contain;
  padding: 28px;
  transition: transform .5s ease;
}
.technical-grid figure:hover img { transform: scale(1.035); }
.technical-grid figcaption {
  border-top: 1px solid var(--line);
  padding: 16px 20px;
  color: #33405a;
  font-weight: 900;
}

.product-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  margin: clamp(50px, 7vw, 96px) clamp(20px, 7vw, 110px);
  border: 1px solid #cedaf0;
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 64px);
  background: linear-gradient(120deg, #f8fbff, #eef4ff);
}
.product-download > div { max-width: 760px; }
.product-download h2 { font-size: clamp(27px, 3.5vw, 43px); }
.product-download .primary-btn { flex: 0 0 auto; }

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .product-main-media > img {
    transition: none;
  }
}

.project-page-grid,
.service-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  padding: 0 clamp(18px, 7vw, 106px) 76px;
}
.project-page-grid article {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
}
.project-page-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.project-page-grid div,
.service-grid article,
.blog-grid article {
  padding: 28px;
}
.project-page-grid span,
.service-grid span,
.blog-grid span {
  color: var(--blue);
  font-weight: 900;
}
.project-page-grid h2,
.service-grid h2,
.blog-grid h2 {
  margin: 12px 0;
}
.project-page-grid p,
.service-grid p,
.blog-grid p {
  color: var(--muted);
  line-height: 1.9;
}
.service-grid article,
.blog-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.about-hero,
.contact-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(42px, 7vw, 92px) clamp(18px, 7vw, 106px);
}
.about-hero h1,
.contact-hero h1 {
  margin: 12px 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.3;
}
.about-hero p,
.contact-hero p {
  color: var(--muted);
  line-height: 2;
}
.about-hero img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-form {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(22px, 4vw, 34px);
  background: #fff;
  box-shadow: var(--shadow);
}
.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
.form-note {
  min-height: 28px;
  margin: 0;
  padding: 0 2px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.form-note.success { color: #167447; }
.form-note.error { color: #b42318; }
.contact-form button:disabled {
  cursor: wait;
  opacity: .7;
}
.contact-form label {
  display: grid;
  gap: 8px;
  color: #33405a;
  font-weight: 800;
}
.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}
.contact-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.contact-cards a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  background: #fff;
  color: var(--blue);
  font-weight: 800;
}

@media (min-width: 1700px) {
  .main-nav nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 1180px) {
  .main-nav {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand menu";
  }
  .main-nav nav,
  .nav-tools {
    display: none;
  }
  .menu-button {
    grid-area: menu;
    justify-self: end;
    display: inline-flex;
    justify-content: center;
    direction: rtl;
  }
  .mobile-menu.open { display: grid; }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-image { order: 2; }
  .benefits,
  .category-row,
  .project-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .catalog-layout,
  .product-showcase,
  .about-hero,
  .contact-hero {
    grid-template-columns: 1fr;
  }
  .product-showcase { padding-inline: clamp(20px, 7vw, 76px); }
  .product-summary { max-width: 760px; }
  .product-story { grid-template-columns: 1fr; }
  .product-story > img {
    min-height: 480px;
    max-height: 680px;
  }
  .dimension-grid { grid-template-columns: repeat(2, 1fr); }
  .dimension-grid > div:nth-child(2) { border-left: 0; }
  .dimension-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .technical-grid { grid-template-columns: repeat(2, 1fr); }
  .filters { position: static; }
  .project-page-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    min-height: 76px;
    padding-inline: 18px;
  }
  .logo img { width: 148px; max-height: 54px; }
  .hero-copy {
    min-height: auto;
    padding: 42px 18px 64px;
  }
  .hero-image { min-height: 320px; }
  .hero-slide figcaption { display: none; }
  .hero-carousel-controls { bottom: 14px; }
  .round-preview,
  .dot-field { display: none; }
  .benefits,
  .category-row,
  .project-grid,
  .product-grid,
  .catalog-grid,
  .service-grid,
  .blog-grid,
  .site-footer,
  .cta-panel {
    grid-template-columns: 1fr;
  }
  .site-footer {
    grid-template-areas:
      "brand"
      "quick"
      "contact"
      "credit";
    justify-items: center;
    gap: 32px;
    text-align: center;
  }
  .footer-brand,
  .footer-quick,
  .footer-contact {
    justify-self: center;
    text-align: center;
  }
  .footer-contact a { text-align: center; }
  .benefits article {
    justify-content: flex-start;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .section-head {
    align-items: flex-start;
    gap: 14px;
    flex-direction: column-reverse;
  }
  .project-page-grid article {
    grid-template-columns: 1fr;
  }
  .project-page-grid img { height: 220px; }
  .product-showcase {
    gap: 30px;
    padding: 28px 16px 60px;
  }
  .product-main-media { aspect-ratio: 1 / 1; }
  .product-thumbs {
    grid-template-columns: repeat(5, 82px);
    overflow-x: auto;
    padding-bottom: 5px;
  }
  .product-summary h1 { font-size: 38px; }
  .product-kicker { align-items: flex-start; flex-direction: column; }
  .product-meta,
  .product-summary .spec-list {
    grid-template-columns: 1fr;
  }
  .product-actions > * { width: 100%; }
  .product-story > div { padding: 52px 20px; }
  .product-story > img { min-height: 340px; }
  .product-spec-section,
  .technical-section {
    padding: 60px 20px;
  }
  .dimension-grid,
  .technical-grid {
    grid-template-columns: 1fr;
  }
  .dimension-grid > div {
    min-height: 104px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .dimension-grid > div:last-child { border-bottom: 0; }
  .variant-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .model-pricing {
    margin-top: 42px;
    padding-top: 28px;
  }
  .model-pricing-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .model-table-wrap {
    margin-left: -20px;
    margin-right: -20px;
    border-radius: 0;
  }
  .model-pricing th,
  .model-pricing td {
    padding: 15px 16px;
  }
  .technical-grid img { aspect-ratio: 1 / .95; }
  .product-download {
    align-items: stretch;
    flex-direction: column;
    margin-inline: 16px;
    padding: 32px 22px;
  }
  .product-download .primary-btn { width: 100%; }
  .product-card { grid-template-rows: 220px auto; }
}

.theme-toggle {
  position: fixed;
  z-index: 120;
  left: 22px;
  bottom: 22px;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(37, 91, 216, .24);
  border-radius: 50%;
  padding: 0;
  background: rgba(255,255,255,.92);
  color: #172033;
  box-shadow: 0 14px 34px rgba(18, 42, 82, .2);
  backdrop-filter: blur(14px);
  transition: transform .25s ease, background .3s ease, color .3s ease;
}
.theme-toggle:hover { transform: translateY(-3px) rotate(8deg); }
.theme-toggle svg {
  position: absolute;
  width: 22px;
  height: 22px;
  transition: opacity .28s ease, transform .45s cubic-bezier(.2,.8,.2,1);
}
.theme-icon-sun {
  opacity: 0;
  transform: rotate(-70deg) scale(.55);
}
.theme-icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf3ff;
  --muted: #a7b4c8;
  --soft: #111b2b;
  --soft-2: #162338;
  --line: #293a52;
  --white: #101927;
  --shadow: 0 18px 55px rgba(0, 0, 0, .28);
  background: #0b1220;
}
html[data-theme="dark"] body {
  background: #0b1220;
  color: var(--ink);
}
html[data-theme="dark"] .site-header {
  background: rgba(11,18,32,.93);
  border-color: #27364c;
}
html[data-theme="dark"] .main-nav nav,
html[data-theme="dark"] .nav-icons,
html[data-theme="dark"] .menu-button {
  color: #e9f0ff;
}
html[data-theme="dark"] .logo img {
  filter: brightness(0) invert(1);
}
html[data-theme="dark"] .search-box,
html[data-theme="dark"] .menu-button {
  border-color: #31435d;
  background: #111c2d;
}
html[data-theme="dark"] .search-box input { color: #edf3ff; }
html[data-theme="dark"] .search-box input::placeholder { color: #8290a7; }
html[data-theme="dark"] .mobile-menu {
  background: #101a2a;
  border-color: #2b3c54;
}
html[data-theme="dark"] .hero {
  background: linear-gradient(90deg, #0b1220 0%, #101a2a 54%, #0b1220 100%);
}
html[data-theme="dark"] .hero-copy,
html[data-theme="dark"] .section-block,
html[data-theme="dark"] .product-spec-section,
html[data-theme="dark"] .about-hero,
html[data-theme="dark"] .contact-hero {
  background: #0b1220;
}
html[data-theme="dark"] .section-block.soft,
html[data-theme="dark"] .page-title,
html[data-theme="dark"] .technical-section {
  background: #111b2b;
}
html[data-theme="dark"] .benefits,
html[data-theme="dark"] .category-card,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .filters,
html[data-theme="dark"] .service-grid article,
html[data-theme="dark"] .blog-grid article,
html[data-theme="dark"] .project-page-grid article,
html[data-theme="dark"] .contact-form,
html[data-theme="dark"] .contact-cards a,
html[data-theme="dark"] .product-main-media,
html[data-theme="dark"] .outline-btn,
html[data-theme="dark"] .technical-grid figure,
html[data-theme="dark"] .model-table-wrap {
  border-color: #2a3a52;
  background: #101927;
  color: var(--ink);
}
html[data-theme="dark"] .product-showcase {
  background: linear-gradient(180deg, #111b2b 0%, #0b1220 70%);
}
html[data-theme="dark"] .product-thumbs button,
html[data-theme="dark"] .filters button,
html[data-theme="dark"] .variant-row span {
  border-color: #2d405a;
  background: #142034;
  color: #dce6f7;
}
html[data-theme="dark"] .product-thumbs button.active,
html[data-theme="dark"] .filters button.active {
  border-color: #6f9cff;
}
html[data-theme="dark"] .product-summary .spec-list div,
html[data-theme="dark"] .product-meta b,
html[data-theme="dark"] .dimension-grid strong,
html[data-theme="dark"] .model-pricing td strong,
html[data-theme="dark"] .project-page-grid h2,
html[data-theme="dark"] .service-grid h2,
html[data-theme="dark"] .blog-grid h2 {
  color: #edf3ff;
}
html[data-theme="dark"] .model-pricing th {
  background: #17243a;
  color: #a9b8ce;
}
html[data-theme="dark"] .model-pricing td {
  border-color: #26374f;
  color: #c4cee0;
}
html[data-theme="dark"] .model-pricing tbody tr:hover { background: #142034; }
html[data-theme="dark"] .model-pricing td a {
  border-color: #385a99;
  background: #172846;
  color: #8eb1ff;
}
html[data-theme="dark"] .product-download,
html[data-theme="dark"] .cta-panel {
  border-color: #2e4260;
  background: linear-gradient(120deg, #111d30, #162640);
}
html[data-theme="dark"] .filters input,
html[data-theme="dark"] .filters select,
html[data-theme="dark"] .contact-form input,
html[data-theme="dark"] .contact-form select,
html[data-theme="dark"] .contact-form textarea {
  border-color: #31445f;
  background: #0d1726;
  color: #edf3ff;
}
html[data-theme="dark"] .technical-grid img,
html[data-theme="dark"] .product-211-main {
  background: #fff;
}
html[data-theme="dark"] .theme-toggle {
  border-color: rgba(111,156,255,.45);
  background: rgba(19,31,50,.94);
  color: #ffd166;
}
html[data-theme="dark"] .theme-icon-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}
html[data-theme="dark"] .theme-icon-moon {
  opacity: 0;
  transform: rotate(70deg) scale(.55);
}

::view-transition-old(root) { animation: none; }
::view-transition-new(root) {
  animation: theme-reveal .68s cubic-bezier(.2,.75,.2,1) both;
}
@keyframes theme-reveal {
  from { clip-path: circle(0 at 47px calc(100% - 47px)); }
  to { clip-path: circle(150vmax at 47px calc(100% - 47px)); }
}

@media (max-width: 720px) {
  .theme-toggle {
    left: 14px;
    bottom: 14px;
    width: 46px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-new(root) { animation: none; }
  .theme-toggle,
  .theme-toggle svg { transition: none; }
}

.hero + .benefits {
  margin-top: 34px;
}

.home-project-showcase,
.why-ligno,
.process-strip,
.home-consult {
  padding: clamp(52px, 7vw, 92px) clamp(18px, 7vw, 106px);
}

.home-project-showcase {
  background:
    linear-gradient(180deg, #f6f9ff, #ffffff 72%),
    radial-gradient(circle at 20% 12%, rgba(37,91,216,.1), transparent 34%);
}

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

.before-after-grid article {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: stretch;
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(37,91,216,.08);
}

.ba-media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  isolation: isolate;
}

.ba-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,15,28,.66) 0 49%, rgba(255,255,255,.08) 49% 51%, transparent 51%),
    linear-gradient(180deg, transparent 45%, rgba(8,15,28,.36));
  pointer-events: none;
}

.ba-media img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .6s ease;
}

.before-after-grid article:hover .ba-media img {
  transform: scale(1.08);
}

.ba-media span {
  position: absolute;
  z-index: 2;
  top: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #172033;
  font-weight: 900;
  font-size: 12px;
  box-shadow: 0 12px 26px rgba(0,0,0,.12);
}

.ba-media span:first-of-type { right: 18px; }
.ba-media span:last-of-type { left: 18px; color: #fff; background: var(--blue); }

.before-after-grid article > div:last-child {
  display: grid;
  align-content: center;
  padding: clamp(24px, 4vw, 40px);
}

.before-after-grid b,
.why-ligno > div:first-child span,
.home-consult span {
  color: var(--blue);
  font-weight: 900;
}

.before-after-grid h3,
.why-ligno h2,
.process-strip h2,
.home-consult h2 {
  margin: 12px 0;
  color: var(--ink);
}

.before-after-grid p,
.why-ligno p,
.process-strip p,
.home-consult p {
  color: var(--muted);
  line-height: 1.95;
}

.why-ligno {
  display: grid;
  grid-template-columns: minmax(300px, .85fr) minmax(520px, 1.15fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: center;
  background:
    radial-gradient(circle at 86% 22%, rgba(37,91,216,.14), transparent 28%),
    linear-gradient(135deg, #ffffff, #f4f8ff);
}

.why-ligno h2 {
  max-width: 580px;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.35;
}

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

.why-grid article {
  min-height: 250px;
  display: grid;
  align-content: end;
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(37,91,216,.13);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(246,249,255,.84));
  box-shadow: 0 24px 60px rgba(37,91,216,.08);
}

.why-grid article::before {
  content: "";
  position: absolute;
  inset: -30px -30px auto auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(37,91,216,.1);
}

.why-grid b {
  color: rgba(37,91,216,.42);
  font-size: 42px;
  font-weight: 900;
}

.why-grid h3 {
  margin: 10px 0;
  color: var(--ink);
}

.process-strip {
  background: #101827;
  color: #fff;
}

.process-strip .section-head h2,
.process-strip .section-head p {
  color: #fff;
}

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

.process-steps article {
  position: relative;
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.03)),
    radial-gradient(circle at 82% 18%, rgba(80,140,255,.2), transparent 34%);
}

.process-steps span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  margin-bottom: 28px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 36px rgba(37,91,216,.34);
}

.process-steps h3 {
  margin: 0 0 10px;
  color: #fff;
}

.process-steps p {
  margin: 0;
  color: #b9c6d9;
}

.home-consult {
  width: min(1240px, calc(100% - 36px));
  margin: 28px auto 74px;
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  border: 1px solid rgba(37,91,216,.14);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(246,249,255,.92)),
    radial-gradient(circle at 12% 18%, rgba(37,91,216,.12), transparent 30%);
  box-shadow: 0 32px 90px rgba(37,91,216,.1);
}

.home-consult h2 {
  max-width: 560px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.35;
}

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

.mini-consult-form input,
.mini-consult-form select,
.mini-consult-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  padding: 14px 16px;
  font: inherit;
}

.mini-consult-form textarea,
.mini-consult-form button,
.mini-consult-form [data-form-status] {
  grid-column: 1 / -1;
}

.mini-consult-form [data-form-status] {
  min-height: 22px;
  margin: 0;
  font-weight: 800;
}

html[data-theme="dark"] .home-project-showcase,
html[data-theme="dark"] .why-ligno,
html[data-theme="dark"] .home-consult {
  background:
    radial-gradient(circle at 82% 18%, rgba(37,91,216,.14), transparent 30%),
    linear-gradient(135deg, #0b1220, #101927);
}

html[data-theme="dark"] .before-after-grid article,
html[data-theme="dark"] .why-grid article,
html[data-theme="dark"] .home-consult {
  border-color: #2a3a52;
  background: linear-gradient(145deg, rgba(16,25,39,.94), rgba(13,22,37,.9));
  box-shadow: 0 28px 80px rgba(0,0,0,.22);
}

html[data-theme="dark"] .before-after-grid h3,
html[data-theme="dark"] .why-ligno h2,
html[data-theme="dark"] .why-grid h3,
html[data-theme="dark"] .home-consult h2 {
  color: #f5f8ff;
}

html[data-theme="dark"] .before-after-grid p,
html[data-theme="dark"] .why-ligno p,
html[data-theme="dark"] .why-grid p,
html[data-theme="dark"] .home-consult p {
  color: #b9c6d9;
}

html[data-theme="dark"] .mini-consult-form input,
html[data-theme="dark"] .mini-consult-form select,
html[data-theme="dark"] .mini-consult-form textarea {
  border-color: #31445f;
  background: #0d1726;
  color: #edf3ff;
}

@media (max-width: 1180px) {
  .before-after-grid,
  .why-ligno,
  .home-consult {
    grid-template-columns: 1fr;
  }
  .why-grid,
  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hero + .benefits {
    margin-top: 20px;
  }
  .before-after-grid article {
    grid-template-columns: 1fr;
  }
  .why-grid,
  .process-steps,
  .mini-consult-form {
    grid-template-columns: 1fr;
  }
  .home-consult {
    width: min(100% - 28px, 1240px);
    padding: 28px 18px;
  }
}

.product-showcase {
  grid-template-columns: minmax(440px, .82fr) minmax(560px, 1.18fr);
  align-items: start;
  padding: clamp(24px, 3.8vw, 48px) clamp(20px, 6vw, 94px) clamp(64px, 7vw, 104px);
  background:
    radial-gradient(circle at 72% 12%, rgba(37,91,216,.12), transparent 30%),
    linear-gradient(180deg, #f7faff 0%, #fff 72%);
}

.product-summary {
  align-self: start;
  position: relative;
  margin-top: clamp(12px, 2vw, 28px);
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(37,91,216,.1);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(247,250,255,.78));
  box-shadow: 0 28px 80px rgba(31,64,120,.08);
}

.product-summary::before {
  content: "";
  position: absolute;
  inset: 18px auto auto 18px;
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background-image: radial-gradient(circle, rgba(37,91,216,.48) 1.5px, transparent 1.8px);
  background-size: 15px 15px;
  opacity: .38;
  pointer-events: none;
}

.product-kicker,
.product-summary h1,
.product-summary > p,
.product-meta,
.product-price,
.product-summary .spec-list,
.variant-row,
.product-actions {
  position: relative;
  z-index: 1;
}

.product-summary h1 {
  margin-top: 18px;
  font-size: clamp(42px, 4.8vw, 72px);
}

.product-gallery {
  position: relative;
}

.product-main-media {
  aspect-ratio: 1.42 / 1;
  border-radius: 10px;
  background:
    linear-gradient(135deg, #edf3fc, #ffffff);
}

.product-main-media > img {
  object-fit: cover;
}

.product-thumbs {
  gap: 12px;
  margin-top: 16px;
}

.product-thumbs button {
  border-radius: 9px;
  background: #eef3fb;
}

.product-story {
  grid-template-columns: minmax(420px, .95fr) minmax(0, 1.05fr);
  min-height: clamp(560px, 38vw, 720px);
  background:
    radial-gradient(circle at 72% 28%, rgba(37,91,216,.18), transparent 32%),
    linear-gradient(90deg, #101827, #0b1220);
}

.product-story > div {
  padding: clamp(52px, 7vw, 120px);
}

.product-story > img {
  min-height: clamp(560px, 38vw, 720px);
}

html[data-theme="dark"] .product-showcase {
  background:
    radial-gradient(circle at 74% 12%, rgba(37,91,216,.16), transparent 32%),
    linear-gradient(180deg, #0b1220 0%, #0e1728 66%, #0b1220 100%);
}

html[data-theme="dark"] .product-summary {
  border-color: rgba(111,156,255,.16);
  background:
    linear-gradient(145deg, rgba(17,27,43,.86), rgba(12,20,34,.72));
  box-shadow: 0 30px 90px rgba(0,0,0,.22);
}

html[data-theme="dark"] .product-summary h1,
html[data-theme="dark"] .product-price strong {
  color: #f5f8ff;
}

html[data-theme="dark"] .product-main-media {
  background: linear-gradient(145deg, #111b2b, #0b1220);
}

html[data-theme="dark"] .product-story {
  background:
    radial-gradient(circle at 74% 26%, rgba(37,91,216,.18), transparent 32%),
    linear-gradient(90deg, #101827, #08111f);
}

@media (max-width: 1180px) {
  .product-showcase {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }
  .product-summary {
    margin-top: 0;
    max-width: none;
  }
}

@media (max-width: 720px) {
  .product-showcase {
    padding: 18px 14px 54px;
  }
  .product-summary {
    padding: 24px 18px;
    border-radius: 12px;
  }
  .product-main-media {
    aspect-ratio: 1 / 1;
  }
  .product-story {
    min-height: auto;
  }
}

@media (min-width: 1181px) {
  .main-nav nav {
    position: fixed;
    left: 50vw;
    top: 0;
    right: auto;
    width: max-content !important;
    inline-size: max-content;
    height: 100%;
    transform: translateX(-50%);
  }
}

.hero {
  grid-template-columns: minmax(560px, 52vw) minmax(520px, 1fr);
  height: clamp(540px, 37vw, 640px);
  min-height: clamp(540px, 37vw, 640px);
  background:
    linear-gradient(90deg, #fff 0%, #f5f8ff 48%, #fff 100%),
    radial-gradient(circle at 78% 42%, rgba(37,91,216,.12), transparent 34%);
}
.hero-image {
  height: clamp(540px, 37vw, 640px);
  min-height: clamp(540px, 37vw, 640px);
}
.hero-slide {
  transform: scale(1.035);
}
.hero-slide.active {
  transform: scale(1.01);
}
.hero-slide img {
  object-position: center center;
}
.hero-copy {
  isolation: isolate;
  height: clamp(540px, 37vw, 640px);
  min-height: clamp(540px, 37vw, 640px);
  padding-inline: clamp(58px, 7vw, 118px);
}
.hero-copy::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: clamp(42px, 5vw, 78px) clamp(34px, 5vw, 92px);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.84), rgba(255,255,255,.42)),
    radial-gradient(circle at 78% 12%, rgba(37,91,216,.13), transparent 30%);
  border: 1px solid rgba(37,91,216,.09);
  box-shadow: 0 34px 90px rgba(37,91,216,.1);
  pointer-events: none;
}
.hero-copy::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 112px;
  height: 112px;
  right: clamp(42px, 5vw, 86px);
  top: clamp(54px, 5vw, 90px);
  border-radius: 24px;
  background-image:
    radial-gradient(circle, rgba(37,91,216,.7) 1.6px, transparent 1.9px);
  background-size: 18px 18px;
  opacity: .55;
  pointer-events: none;
}
.hero-copy > * {
  position: relative;
  z-index: 2;
}
.round-preview {
  display: none;
}
.dot-field {
  right: clamp(42px, 5vw, 86px);
  top: clamp(54px, 5vw, 90px);
  opacity: .65;
}
.hero-copy h1 {
  text-wrap: balance;
}

.benefits {
  border-radius: 10px;
  overflow: hidden;
}
.benefits article {
  position: relative;
  min-height: 94px;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px 26px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,251,255,.92));
}
.benefits article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 16%, rgba(37,91,216,.12), transparent 30%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.benefits article:hover::after {
  opacity: 1;
}
.benefits svg {
  width: 46px;
  height: 46px;
  padding: 10px;
  border-radius: 16px;
  color: var(--blue);
  background: linear-gradient(145deg, #edf4ff, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(37,91,216,.12), 0 14px 34px rgba(37,91,216,.13);
}

.category-card {
  position: relative;
  overflow: hidden;
}
.category-card::after {
  display: none;
}

html[data-theme="dark"] .category-card {
  border-color: #263750;
  background: linear-gradient(180deg, #111c2c 0%, #0d1726 100%);
}

html[data-theme="dark"] .category-visual {
  background-color: #142238;
}

@media (max-width: 1400px) {
  .category-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .category-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-card { min-height: 190px; }
}

html[data-theme="dark"] .logo img {
  filter: none;
}
html[data-theme="dark"] .hero {
  background:
    radial-gradient(circle at 77% 32%, rgba(37,91,216,.18), transparent 30%),
    linear-gradient(90deg, #08111f 0%, #0c1728 51%, #090f1b 100%);
}
html[data-theme="dark"] .hero-copy {
  background: transparent;
}
html[data-theme="dark"] .hero-copy::before {
  background:
    linear-gradient(145deg, rgba(18,31,51,.82), rgba(9,17,30,.48)),
    radial-gradient(circle at 78% 12%, rgba(59,130,246,.2), transparent 32%);
  border-color: rgba(111,156,255,.16);
  box-shadow: 0 34px 100px rgba(0,0,0,.2);
}
html[data-theme="dark"] .hero-copy h1,
html[data-theme="dark"] .page-title h1,
html[data-theme="dark"] .section-head h2,
html[data-theme="dark"] .contact-hero h1,
html[data-theme="dark"] .about-hero h1,
html[data-theme="dark"] .cta-panel h2 {
  color: #f5f8ff;
}
html[data-theme="dark"] .hero-copy p,
html[data-theme="dark"] .page-title p,
html[data-theme="dark"] .section-head p,
html[data-theme="dark"] .contact-hero p,
html[data-theme="dark"] .about-hero p,
html[data-theme="dark"] .cta-panel p {
  color: #c7d3e7;
}
html[data-theme="dark"] .hero-copy > span,
html[data-theme="dark"] .page-title span,
html[data-theme="dark"] .contact-hero span,
html[data-theme="dark"] .about-hero span,
html[data-theme="dark"] .cta-panel span {
  color: #6fa3ff;
}
html[data-theme="dark"] .benefits {
  background: rgba(16,25,39,.86);
  border-color: #28384f;
}
html[data-theme="dark"] .benefits article {
  background: linear-gradient(145deg, rgba(16,25,39,.94), rgba(13,22,37,.9));
}
html[data-theme="dark"] .benefits svg {
  color: #6fa3ff;
  background: linear-gradient(145deg, #162640, #0e192b);
  box-shadow: inset 0 0 0 1px rgba(111,156,255,.22), 0 16px 42px rgba(0,0,0,.24);
}
html[data-theme="dark"] .benefits h3,
html[data-theme="dark"] .category-card h3,
html[data-theme="dark"] .product-card h3 {
  color: #f5f8ff;
}
html[data-theme="dark"] .benefits p,
html[data-theme="dark"] .category-card p,
html[data-theme="dark"] .product-card p {
  color: #aebbd0;
}
html[data-theme="dark"] .category-card::after {
  background: rgba(111,156,255,.1);
}

@media (max-width: 1180px) {
  .hero {
    height: auto;
    grid-template-columns: 1fr;
  }
  .hero-copy {
    height: auto;
    min-height: auto;
    padding-inline: clamp(20px, 7vw, 76px);
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: auto;
  }
  .hero-image {
    min-height: 360px;
  }
  .hero-copy::before,
  .hero-copy::after {
    inset: 20px 12px;
    border-radius: 18px;
  }
  .hero-copy::after,
  .dot-field {
    display: none;
  }
  .benefits article {
    grid-template-columns: 44px 1fr;
    padding: 18px;
  }
  .benefits svg {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }
}


.site-tools {
  position: relative;
  justify-self: end;
}
.site-tools-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(31,64,120,.08);
}
.site-tools-button span {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}
.site-tools-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: auto;
  right: 0;
  z-index: 50;
  min-width: 230px;
  display: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 24px 60px rgba(16,24,39,.16);
  backdrop-filter: blur(16px);
}
.site-tools-menu.open { display: grid; }
.site-tools-menu button {
  border: 0;
  border-radius: 8px;
  padding: 13px 14px;
  background: linear-gradient(135deg, #f2f6ff, #fff);
  color: var(--ink);
  text-align: right;
  font-weight: 900;
}
.site-tools-menu button:hover { color: #fff; background: var(--blue); }

.filter-block {
  display: grid;
  gap: 9px;
}
.filter-block + .filter-block { margin-top: 12px; }
.filter-block strong {
  color: #293952;
  font-size: 13px;
}
.filter-block > div {
  display: grid;
  gap: 8px;
}
.filter-groups button {
  background: #eef4ff;
}

body.modal-open { overflow: hidden; }
.ai-layout-modal[hidden] { display: none; }
.ai-layout-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(7, 13, 24, .62);
  backdrop-filter: blur(14px);
}
.ai-layout-dialog {
  position: relative;
  width: min(1180px, 100%);
  max-height: min(840px, calc(100vh - 44px));
  overflow: auto;
  display: grid;
  grid-template-columns: .85fr 1fr;
  gap: 22px;
  border: 1px solid rgba(37,91,216,.18);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 38px);
  background:
    radial-gradient(circle at 88% 12%, rgba(37,91,216,.16), transparent 32%),
    linear-gradient(145deg, #ffffff, #f5f8ff);
  box-shadow: 0 42px 120px rgba(0,0,0,.32);
}
.ai-layout-close {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
}
.ai-layout-copy {
  grid-column: 1 / -1;
  max-width: 760px;
}
.ai-layout-copy span {
  color: var(--blue);
  font-weight: 900;
}
.ai-layout-copy h2 {
  margin: 10px 0;
  font-size: clamp(28px, 4vw, 48px);
}
.ai-layout-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 2;
}
.ai-layout-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}
.ai-layout-form label {
  position: relative;
  display: grid;
  gap: 8px;
  color: #293952;
  font-weight: 900;
}
.ai-layout-form input,
.ai-layout-form select {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px 14px;
  background: #fff;
  color: var(--ink);
}
.ai-layout-form small {
  position: absolute;
  left: 12px;
  bottom: 13px;
  color: var(--muted);
}
.ai-layout-form button { grid-column: 1 / -1; }
.ai-layout-preview {
  display: grid;
  gap: 14px;
}
.ai-plan {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 2px solid #244a8f;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(37,91,216,.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(37,91,216,.08) 1px, transparent 1px),
    #fff;
  background-size: 28px 28px;
}
.ai-plan > div,
.ai-plan strong {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}
.ai-window {
  top: 0;
  right: 18%;
  width: 42%;
  height: 16px;
  background: #8dc6ff;
  color: #12345a;
}
.ai-door {
  bottom: 0;
  right: 18px;
  width: 74px;
  height: 50px;
  border: 2px solid #172033;
  border-bottom: 0;
  background: rgba(255,255,255,.78);
}
.ai-desk {
  top: 36%;
  right: 32%;
  width: 190px;
  height: 80px;
  background: #b98455;
  color: #fff;
  box-shadow: 0 18px 38px rgba(61,37,22,.18);
}
.ai-chair {
  top: 58%;
  right: 40%;
  width: 68px;
  height: 68px;
  border-radius: 50% !important;
  background: #255bd8;
  color: #fff;
}
.ai-storage {
  top: 58px;
  left: 36px;
  width: 74px;
  height: 170px;
  background: #e9edf4;
  color: #172033;
}
.ai-plan strong {
  left: 18px;
  bottom: 18px;
  color: rgba(37,91,216,.22);
  font-size: 42px;
  letter-spacing: 3px;
}
.ai-render-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  border-radius: 14px;
  background: #101827;
}
.ai-render-card img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  opacity: .82;
}
.ai-render-card b {
  position: absolute;
  inset: auto 18px 18px auto;
  color: rgba(255,255,255,.52);
  font-size: 30px;
  letter-spacing: 2px;
}
.ai-layout-preview.generated .ai-desk,
.ai-layout-preview.generated .ai-chair,
.ai-layout-preview.generated .ai-storage {
  animation: ai-pop .55s cubic-bezier(.2,.8,.2,1) both;
}
.ai-layout-preview.generated .ai-chair { animation-delay: .08s; }
.ai-layout-preview.generated .ai-storage { animation-delay: .16s; }
@keyframes ai-pop {
  from { opacity: 0; transform: translateY(18px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

html[data-theme="dark"] .site-tools-button,
html[data-theme="dark"] .site-tools-menu,
html[data-theme="dark"] .ai-layout-dialog,
html[data-theme="dark"] .ai-layout-close {
  border-color: #2a3a52;
  background: #101927;
  color: #edf3ff;
}
html[data-theme="dark"] .site-tools-menu button,
html[data-theme="dark"] .ai-layout-form input,
html[data-theme="dark"] .ai-layout-form select {
  border-color: #31445f;
  background: #0d1726;
  color: #edf3ff;
}
html[data-theme="dark"] .ai-layout-copy p,
html[data-theme="dark"] .ai-layout-form label { color: #b9c6d9; }
html[data-theme="dark"] .ai-layout-copy h2 { color: #f5f8ff; }
html[data-theme="dark"] .ai-plan { background-color: #0d1726; border-color: #385a99; }

@media (max-width: 1180px) {
  .ai-layout-dialog { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-tools { grid-template-columns: 1fr auto; }
  .ai-layout-form { grid-template-columns: 1fr; }
  .ai-plan { min-height: 250px; }
  .ai-desk { width: 140px; right: 28%; }
}
/* AI layout studio demo */
.ai-studio-dialog {
  width: min(1320px, calc(100vw - 38px));
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 34px;
}
.ai-studio-copy {
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
}
.ai-studio-copy h2 { max-width: 840px; margin-inline: auto; }
.ai-studio-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr);
  gap: 18px;
  align-items: stretch;
}
.ai-cad-area {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}
.ai-object-panel {
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(180deg, #fff, #f7faff);
  box-shadow: 0 18px 48px rgba(16,24,39,.08);
}
.ai-object-panel b { color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.ai-object-panel button,
.ai-cad-topbar button {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 9px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}
.ai-object-panel button.active,
.ai-object-panel button:hover,
.ai-cad-topbar button:hover {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 12px 26px rgba(37,91,216,.22);
}
.ai-cad-board {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(16,24,39,.08);
  min-width: 0;
}
.ai-cad-topbar {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  margin-bottom: 10px;
}
.ai-cad-topbar label {
  position: relative;
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 900;
  font-size: 13px;
}
.ai-cad-topbar input,
.ai-cad-topbar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 12px;
  background: #f9fbff;
  color: var(--ink);
  font-weight: 900;
}
.ai-cad-topbar small { position: absolute; left: 10px; bottom: 11px; color: var(--muted); }
.ai-cad-canvas {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border: 1px solid rgba(37,91,216,.5);
  border-radius: 13px;
  background: #fbfdff;
  cursor: crosshair;
}
.ai-cad-canvas svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ai-cad-canvas line {
  stroke: #122033;
  stroke-width: 5;
  stroke-linecap: round;
  filter: drop-shadow(0 6px 10px rgba(16,24,39,.08));
}
.ai-cad-canvas strong {
  position: absolute;
  left: 24px;
  bottom: 18px;
  color: rgba(37,91,216,.2);
  font-size: 44px;
  letter-spacing: 2px;
  pointer-events: none;
}
.ai-measure {
  position: absolute;
  z-index: 4;
  border-radius: 999px;
  padding: 4px 12px;
  color: #1748a8;
  background: #dcebff;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 8px 22px rgba(37,91,216,.1);
  pointer-events: none;
}
.ai-cad-object {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  text-align: center;
  box-shadow: 0 14px 35px rgba(16,24,39,.18);
  pointer-events: none;
  animation: ai-object-drop .28s ease both;
}
.ai-cad-object.ai-window {
  width: 190px;
  height: 16px;
  color: #114d89;
  border: 1px solid #8ec9ff;
  background: linear-gradient(90deg, #dff1ff, #86c3ff);
}
.ai-cad-object.ai-door {
  width: 70px;
  height: 50px;
  color: #122033;
  border: 2px solid #122033;
  background: rgba(255,255,255,.92);
}
.ai-cad-object.ai-desk {
  width: 160px;
  height: 74px;
  background: linear-gradient(135deg, #b98254, #d59b67);
}
.ai-cad-object.ai-chair {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--blue);
}
.ai-cad-object.ai-storage {
  width: 72px;
  height: 118px;
  color: #122033;
  background: #e9eef6;
}
.ai-cad-hint {
  margin: 10px 2px 0;
  color: var(--muted);
  line-height: 1.9;
  font-size: 12px;
}
.ai-studio-form {
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(180deg, #fff, #f6f9ff);
  box-shadow: 0 24px 70px rgba(16,24,39,.08);
}
.ai-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ai-needs-box {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0;
  padding: 14px;
  border: 1px dashed rgba(37,91,216,.35);
  border-radius: 12px;
  background: rgba(37,91,216,.045);
}
.ai-needs-box b { grid-column: 1 / -1; color: var(--ink); }
.ai-needs-box label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}
.ai-needs-box input { accent-color: var(--blue); }
.ai-render-limit {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.ai-render-limit.warning { color: #b45309; font-weight: 900; }
.ai-render-studio { display: grid; }
.ai-render-output {
  min-height: 310px;
  border-radius: 15px;
  background: #0e1726;
}
.ai-render-output img {
  min-height: 310px;
  opacity: .58;
  transform: scale(1.02);
  transition: opacity .55s ease, transform .55s ease;
}
.ai-render-loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, rgba(7,13,23,.78), rgba(37,91,216,.55));
}
.ai-render-loading[hidden] { display: none; }
.ai-render-loading i {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 5px solid rgba(255,255,255,.25);
  border-top-color: #fff;
  animation: ai-spin 1s linear infinite;
}
.ai-render-loading b { font-size: 19px; }
.ai-render-loading small { color: rgba(255,255,255,.78); }
.ai-render-studio.generated .ai-render-output img { opacity: 1; transform: scale(1); }
.ai-render-studio.rendering .ai-render-output { box-shadow: 0 0 0 1px rgba(37,91,216,.45), 0 34px 90px rgba(37,91,216,.18); }
.ai-watermark {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 3;
  color: rgba(255,255,255,.7);
  font-size: clamp(18px, 2.4vw, 34px);
  letter-spacing: 4px;
}
@keyframes ai-object-drop { from { opacity: 0; transform: translateY(-8px) scale(.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes ai-spin { to { transform: rotate(360deg); } }
html[data-theme="dark"] .ai-object-panel,
html[data-theme="dark"] .ai-cad-board,
html[data-theme="dark"] .ai-studio-form {
  border-color: #2a3a52;
  background: linear-gradient(180deg, #101927, #0d1726);
}
html[data-theme="dark"] .ai-cad-canvas { background: #0b1422; border-color: #315ca8; }
html[data-theme="dark"] .ai-cad-canvas line { stroke: #dce8ff; }
html[data-theme="dark"] .ai-cad-topbar input,
html[data-theme="dark"] .ai-cad-topbar select,
html[data-theme="dark"] .ai-object-panel button,
html[data-theme="dark"] .ai-cad-topbar button { border-color: #31445f; background: #0d1726; color: #edf3ff; }
html[data-theme="dark"] .ai-needs-box { border-color: #315ca8; background: rgba(37,91,216,.1); }
html[data-theme="dark"] .ai-needs-box b,
html[data-theme="dark"] .ai-needs-box label,
html[data-theme="dark"] .ai-object-panel b,
html[data-theme="dark"] .ai-cad-topbar label { color: #f5f8ff; }
@media (max-width: 1180px) {
  .ai-studio-shell { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ai-studio-dialog { padding: 22px; }
  .ai-cad-area { grid-template-columns: 1fr; }
  .ai-object-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ai-object-panel b { grid-column: 1 / -1; }
  .ai-cad-topbar,
  .ai-form-grid,
  .ai-needs-box { grid-template-columns: 1fr; }
  .ai-cad-canvas { min-height: 320px; }
}
/* Product group cards in catalog filters */
.filter-group-cards {
  display: grid;
  gap: 10px;
}
.group-card {
  position: relative;
  min-height: 92px;
  display: grid;
  grid-template-columns: 74px 1fr;
  grid-template-areas:
    "image title"
    "image desc"
    "image count";
  gap: 3px 11px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px;
  background: linear-gradient(135deg, #fff, #f5f8ff);
  color: var(--ink);
  text-align: right;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
.group-card img {
  grid-area: image;
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 9px;
  background: #eef2f7;
}
.group-card span {
  grid-area: title;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}
.group-card small {
  grid-area: desc;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}
.group-card b {
  grid-area: count;
  width: max-content;
  border-radius: 999px;
  padding: 3px 9px;
  color: #1c56c7;
  background: rgba(37,91,216,.09);
  font-size: 11px;
}
.group-card:hover,
.group-card.active {
  transform: translateY(-2px);
  border-color: rgba(37,91,216,.48);
  box-shadow: 0 18px 40px rgba(37,91,216,.13);
}
.group-card.active {
  background: linear-gradient(135deg, #255bd8, #153f9e);
}
.group-card.active span,
.group-card.active small {
  color: #fff;
}
.group-card.active b {
  color: #0d2d72;
  background: #fff;
}
.filter-categories.is-muted {
  opacity: .78;
}
.filter-help {
  margin: 0;
  border: 1px dashed rgba(37,91,216,.26);
  border-radius: 10px;
  padding: 12px;
  color: var(--muted);
  background: rgba(37,91,216,.045);
  line-height: 1.9;
  font-size: 12px;
}
html[data-theme="dark"] .group-card {
  border-color: #263750;
  background: linear-gradient(135deg, #101927, #0d1726);
}
html[data-theme="dark"] .group-card span { color: #f5f8ff; }
html[data-theme="dark"] .group-card small { color: #aebbd0; }
html[data-theme="dark"] .group-card b { color: #9fc0ff; background: rgba(111,156,255,.14); }
html[data-theme="dark"] .group-card.active { background: linear-gradient(135deg, #255bd8, #17336e); }
html[data-theme="dark"] .filter-help { border-color: #315ca8; background: rgba(37,91,216,.1); color: #b9c6d9; }
@media (max-width: 980px) {
  .filter-group-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .filter-group-cards { grid-template-columns: 1fr; }
}
.site-announcement {
  position: relative;
  z-index: 60;
  padding: 9px 20px;
  background: linear-gradient(90deg, #0f4c81, #267bc0);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.hero-carousel-controls.single { display: none; }
.hero-slide[style*="cursor"] { cursor: pointer; }
[hidden] { display: none !important; }

/* Stable responsive media: uploaded images stay fully visible instead of being cropped. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.hero-slide,
.hero-slide.active {
  transform: none;
}

.hero-slide img {
  object-fit: contain;
  object-position: center;
  background: #edf3fc;
}

.hero-carousel-controls {
  bottom: 48px;
}

.product-main-media > img,
.product-story > img,
.product-card img,
.category-card img,
.group-card img {
  object-fit: contain;
  object-position: center;
}

.product-main-media > img,
.product-story > img {
  background: #f2f5fa;
}

@media (min-width: 1181px) {
  .hero-image {
    align-self: center;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

@media (min-width: 1181px) and (max-width: 1500px) {
  .main-nav {
    grid-template-columns: minmax(132px, 165px) minmax(390px, 1fr) minmax(340px, 470px);
    gap: clamp(12px, 1.4vw, 24px);
    padding-inline: clamp(18px, 2.4vw, 38px);
  }
  .main-nav nav { gap: clamp(14px, 1.45vw, 24px); }
  .logo img { width: clamp(132px, 10vw, 164px); }
  .nav-tools { grid-template-columns: minmax(150px, 1fr) auto auto; gap: 8px; }
  .nav-tools .catalog-btn { padding-inline: 13px; }
  .hero {
    grid-template-columns: minmax(0, 60%) minmax(390px, 40%);
    height: 500px;
    min-height: 500px;
  }
  .hero-image,
  .hero-copy {
    align-self: stretch;
    height: 500px;
    min-height: 500px;
  }
  .hero-image { aspect-ratio: auto; }
  .hero-copy {
    padding: 34px clamp(30px, 3.6vw, 58px);
  }
  .hero-copy::before { inset-block: 24px; }
  .hero-copy::after { top: 38px; }
  .hero-copy h1 {
    margin-block: 13px 12px;
    font-size: clamp(38px, 3.6vw, 48px);
  }
  .hero-copy p {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.85;
  }
}

@media (max-width: 1180px) {
  .hero {
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-copy {
    order: 1;
    width: 100%;
    height: auto;
    min-height: 390px;
    padding: 54px clamp(24px, 8vw, 78px) 66px;
  }
  .hero-image {
    order: 2;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .hero-slides { min-height: 0; }
  .benefits { width: min(94%, 980px); }
}

@media (max-width: 720px) {
  .hero-copy {
    min-height: 330px;
    padding: 42px 18px 54px;
  }
  .hero-copy h1 { font-size: clamp(34px, 11vw, 50px); }
  .hero-image { aspect-ratio: 16 / 10; }
  .hero-carousel-controls { bottom: 18px; }
  .hero-slide img { padding: 0; }
  .section-block,
  .why-ligno,
  .process-strip { padding-inline: 16px; }
  .product-card { grid-template-rows: minmax(200px, 58vw) auto; }
}

/* Catalog product cards: keep full product renders prominent and balanced. */
.catalog-grid {
  gap: clamp(18px, 1.45vw, 28px);
}

.catalog-grid .product-card {
  grid-template-rows: clamp(310px, 21vw, 390px) auto;
  border-color: #dce5f2;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(24, 52, 96, .09);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.catalog-grid .product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 91, 216, .34);
  box-shadow: 0 24px 52px rgba(24, 52, 96, .15);
}

.catalog-grid .product-card > img {
  display: block;
  padding: 8px;
  background: #f3f6fb;
  object-fit: contain;
  object-position: center;
  transition: transform .3s ease;
}

.catalog-grid .product-card:hover > img {
  transform: scale(1.018);
}

.catalog-grid .product-card > div {
  min-height: 168px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 17px 18px 18px;
}

.catalog-grid .product-card h3 {
  margin: 6px 0 7px;
  font-size: clamp(17px, 1.15vw, 20px);
  line-height: 1.65;
}

.catalog-grid .product-card p {
  margin-bottom: 12px;
  font-size: 12px;
  line-height: 1.85;
  -webkit-line-clamp: 2;
}

.catalog-grid .product-card a {
  margin-top: auto;
  padding-top: 10px;
}

html[data-theme="dark"] .catalog-grid .product-card {
  border-color: #263750;
}

html[data-theme="dark"] .catalog-grid .product-card > img {
  background: #111b2a;
}

/* Customer account, cart, and web-order flow */
.shop-nav-actions { display: flex; align-items: center; gap: 6px; direction: rtl; }
.shop-nav-button { position: relative; min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; color: var(--ink); border: 1px solid var(--line); background: var(--surface, #fff); text-decoration: none; font-size: 12px; font-weight: 800; }
.shop-nav-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.shop-nav-button b { position: absolute; inset: -6px -5px auto auto; min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-size: 10px; }
.product-card-actions { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.catalog-grid .product-card .product-card-actions a { margin-top: 0; }
.product-card-actions button, .product-card-actions .choose-model-link { min-height: 36px; padding: 7px 12px; border: 0; border-radius: 6px; color: #fff; background: var(--blue); font: inherit; font-weight: 800; cursor: pointer; }
.product-card-actions .choose-model-link { display: inline-flex; align-items: center; justify-content: center; }
.product-card-actions button:disabled, [data-add-cart]:disabled { opacity: .68; cursor: wait; }

.shop-page { min-height: 70vh; padding: clamp(42px, 7vw, 96px) max(5vw, 24px); background: linear-gradient(180deg, #f5f8ff 0, #fff 44%); }
.shop-auth-shell { max-width: 1220px; min-height: 610px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; border: 1px solid #dfe7f4; background: #fff; box-shadow: 0 28px 80px rgba(17, 38, 78, .1); }
.shop-auth-intro { padding: clamp(42px, 6vw, 84px); display: flex; flex-direction: column; justify-content: center; color: #fff; background: #0e1b32; position: relative; overflow: hidden; }
.shop-auth-intro::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(37,91,216,.62), transparent 54%), url("assets/product-211-scene.jpg") center/cover; opacity: .28; }
.shop-auth-intro > * { position: relative; z-index: 1; }
.shop-auth-intro > span, .shop-form-eyebrow, .shop-dashboard header span, .shop-page-title span, .cart-summary > span, .shop-card-head span { color: #72a0ff; font-size: 13px; font-weight: 900; }
.shop-auth-intro h1 { max-width: 620px; margin: 18px 0; font-size: clamp(34px, 4.2vw, 64px); line-height: 1.3; }
.shop-auth-intro p { max-width: 580px; color: #c5d0e3; line-height: 2; }
.shop-auth-intro > div { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.shop-auth-intro b { padding: 9px 12px; border: 1px solid rgba(255,255,255,.18); font-size: 12px; }
.shop-auth-panel { padding: clamp(32px, 5vw, 68px); align-self: center; }
.shop-segments { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 30px; background: #f1f5fb; }
.shop-segments button { min-height: 45px; border: 0; background: transparent; color: #69768b; font: inherit; font-weight: 900; cursor: pointer; }
.shop-segments button.active { background: #fff; color: var(--blue); box-shadow: 0 4px 16px rgba(17,38,78,.08); }
.shop-auth-panel form, .shop-profile-card { display: grid; gap: 16px; }
.shop-auth-panel label, .shop-profile-card label, .cart-summary label { display: grid; gap: 8px; color: var(--ink); font-size: 13px; font-weight: 800; }
.shop-auth-panel input, .shop-auth-panel select, .shop-profile-card input, .shop-profile-card select, .shop-profile-card textarea, .cart-summary textarea { width: 100%; max-width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; border: 1px solid #dbe4f2; border-radius: 6px; background: #fbfcff; color: var(--ink); font: inherit; outline: none; }
.shop-auth-panel input:focus, .shop-profile-card input:focus, .shop-profile-card textarea:focus, .cart-summary textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,91,216,.1); }
.shop-auth-panel .primary-btn, .shop-auth-panel .outline-btn, .shop-profile-card .primary-btn { width: 100%; justify-content: center; }
.otp-entry { display: grid; gap: 14px; }
.shop-text-button { border: 0; background: transparent; color: var(--blue); font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; }
.shop-message { min-height: 24px; margin: 14px 0 0; font-size: 13px; font-weight: 800; }
.shop-message[data-type="error"] { color: #c9354b; }
.shop-message[data-type="success"] { color: #15845b; }

.shop-dashboard { max-width: 1380px; margin: 0 auto; }
.shop-dashboard > header, .shop-page-title { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.shop-dashboard h1, .shop-page-title h1 { margin: 8px 0; font-size: clamp(34px, 4vw, 58px); color: var(--ink); }
.shop-dashboard header p, .shop-page-title p { margin: 0; color: var(--muted); }
.shop-account-grid { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(0, 1.5fr); gap: 24px; }
.shop-profile-card, .shop-orders-card, .cart-items-panel, .cart-summary { border: 1px solid #dfe7f4; background: #fff; box-shadow: 0 20px 55px rgba(17,38,78,.07); }
.shop-profile-card { padding: 28px; align-content: start; }
.shop-profile-card h2, .shop-orders-card h2, .cart-summary h2 { margin: 0 0 10px; color: var(--ink); }
.shop-orders-card { padding: 28px; }
.shop-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid #e6edf7; }
.shop-orders-list { display: grid; }
.shop-order-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid #e6edf7; }
.shop-order-row > div { display: grid; gap: 5px; }
.shop-order-row span, .shop-order-row small { color: var(--muted); font-size: 12px; }
.shop-order-row h3, .shop-order-row b { margin: 0; color: var(--ink); }
.shop-order-row strong { color: var(--blue); }
.shop-empty { min-height: 260px; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--muted); }
.shop-empty h2, .shop-empty h3 { color: var(--ink); }

.cart-page { max-width: none; }
.shop-page-title { max-width: 1500px; margin-inline: auto; }
.cart-layout { max-width: 1500px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, .55fr); gap: 24px; align-items: start; }
.cart-items-panel { padding: 10px 28px; }
.cart-line { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto auto; align-items: center; gap: 22px; padding: 22px 0; border-bottom: 1px solid #e6edf7; }
.cart-line:last-child { border-bottom: 0; }
.cart-line > img { width: 150px; height: 112px; object-fit: contain; background: #f3f6fb; }
.cart-line h2 { margin: 6px 0; color: var(--ink); font-size: 20px; }
.cart-line span, .cart-line small { color: var(--muted); }
.cart-quantity { height: 38px; display: grid; grid-template-columns: 36px 36px 36px; align-items: center; text-align: center; border: 1px solid #dfe7f4; }
.cart-quantity button { height: 100%; border: 0; background: #f5f8fd; color: var(--ink); font-size: 20px; cursor: pointer; }
.cart-remove { border: 0; background: transparent; color: #c9354b; font: inherit; font-weight: 800; cursor: pointer; }
.cart-summary { position: sticky; top: 92px; padding: 28px; display: grid; gap: 20px; }
.cart-summary > div { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-block: 1px solid #e6edf7; }
.cart-summary .primary-btn { width: 100%; justify-content: center; }
.cart-summary small { color: var(--muted); line-height: 1.9; }
.order-success { grid-column: 1/-1; min-height: 480px; display: grid; place-content: center; justify-items: center; text-align: center; border: 1px solid #dfe7f4; background: #fff; }
.order-success > span { color: #15845b; font-weight: 900; }
.order-success h1 { direction: ltr; font-size: clamp(34px, 6vw, 70px); color: var(--ink); }
.order-success p { max-width: 580px; color: var(--muted); line-height: 2; }

html[data-theme="dark"] .shop-page { background: #0b1424; }
html[data-theme="dark"] .shop-nav-button, html[data-theme="dark"] .shop-auth-shell, html[data-theme="dark"] .shop-auth-panel, html[data-theme="dark"] .shop-profile-card, html[data-theme="dark"] .shop-orders-card, html[data-theme="dark"] .cart-items-panel, html[data-theme="dark"] .cart-summary, html[data-theme="dark"] .order-success { background: #101d31; border-color: #263650; }
html[data-theme="dark"] .shop-auth-panel input, html[data-theme="dark"] .shop-profile-card input, html[data-theme="dark"] .shop-profile-card textarea, html[data-theme="dark"] .cart-summary textarea { background: #0b1628; border-color: #2a3a54; }
html[data-theme="dark"] .shop-segments, html[data-theme="dark"] .cart-quantity button { background: #0b1628; }
html[data-theme="dark"] .shop-segments button.active { background: #1a2940; }
html[data-theme="dark"] .shop-card-head, html[data-theme="dark"] .shop-order-row, html[data-theme="dark"] .cart-line, html[data-theme="dark"] .cart-summary > div { border-color: #263650; }

@media (max-width: 1180px) {
  .shop-nav-button span { display: none; }
  .shop-auth-shell { grid-template-columns: 1fr; }
  .shop-auth-intro { min-height: 360px; }
  .shop-account-grid, .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}
@media (max-width: 720px) {
  .shop-page { padding-inline: 14px; }
  .shop-auth-intro, .shop-auth-panel, .shop-profile-card, .shop-orders-card, .cart-summary { padding: 24px 20px; }
  .shop-dashboard > header, .shop-page-title { align-items: start; flex-direction: column; }
  .shop-order-row { grid-template-columns: 1fr; }
  .cart-items-panel { padding: 8px 16px; }
  .cart-line { grid-template-columns: 88px 1fr; gap: 12px; }
  .cart-line > img { width: 88px; height: 82px; }
  .cart-quantity { grid-column: 2; justify-self: start; }
  .cart-remove { grid-column: 1; grid-row: 2; }
  .product-card-actions { align-items: stretch; flex-direction: column; }
}

@media (min-width: 1181px) and (max-width: 1500px) {
  .catalog-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
    padding-inline: clamp(24px, 3.5vw, 52px);
  }

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

  .catalog-grid .product-card {
    grid-template-rows: clamp(310px, 28vw, 370px) auto;
  }
}

@media (max-width: 1180px) {
  .catalog-layout {
    gap: 24px;
    padding-inline: clamp(18px, 4vw, 42px);
  }

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

  .catalog-grid .product-card {
    grid-template-rows: clamp(290px, 40vw, 390px) auto;
  }
}

@media (max-width: 720px) {
  .catalog-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-grid .product-card {
    grid-template-rows: clamp(280px, 82vw, 420px) auto;
  }

  .catalog-grid .product-card > div {
    min-height: 154px;
    padding: 15px 16px 17px;
  }
}
/* Stable desktop commerce toolbar: search, catalog, cart, account, menu. */
@media (min-width: 1181px) {
  .main-nav {
    grid-template-columns: minmax(145px, 175px) minmax(360px, 1fr) minmax(490px, 590px);
    gap: clamp(12px, 1.4vw, 24px);
    padding-inline: clamp(18px, 2.4vw, 42px);
  }
  .main-nav nav { gap: clamp(12px, 1.35vw, 24px); }
  .nav-tools {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    direction: ltr;
    min-width: 0;
  }
  .nav-tools .search-box { order: 1; flex: 1 1 190px; min-width: 150px; }
  .nav-tools .catalog-btn { order: 2; flex: 0 0 auto; }
  .nav-tools .shop-nav-actions { order: 3; flex: 0 0 auto; direction: ltr; }
  .nav-tools .site-tools { order: 4; flex: 0 0 auto; }
}

@media (min-width: 1181px) and (max-width: 1340px) {
  .main-nav { grid-template-columns: 140px minmax(330px, 1fr) minmax(450px, 500px); }
  .logo img { width: 138px; }
  .shop-nav-button { min-width: 42px; width: 42px; padding: 0; }
  .shop-nav-button span { display: none; }
  .nav-tools .catalog-btn { padding-inline: 12px; }
}

@media (min-width: 1181px) and (max-width: 1500px) {
  .main-nav { grid-template-columns: 140px minmax(330px, 1fr) minmax(430px, 500px); padding-inline: 28px; }
  .logo img { width: 140px; }
  .main-nav nav { gap: 15px; font-size: 12px; }
  .nav-tools .search-box { flex: 0 1 175px; max-width: 175px; }
  .nav-tools .catalog-btn { padding-inline: 13px; }
  .shop-nav-button { min-width: 44px; padding-inline: 9px; }
}

.site-tools-menu a,
.site-tools-menu button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 8px;
  padding: 11px 14px;
  background: linear-gradient(135deg, #f2f6ff, #fff);
  color: var(--ink);
  text-align: right;
  font-weight: 900;
}
.site-tools-menu a:hover,
.site-tools-menu button:hover { color: #fff; background: var(--blue); }

.shop-quote-button {
  min-height: 38px;
  margin-top: 8px;
  border: 1px solid rgba(37, 91, 216, .28);
  border-radius: 6px;
  padding: 0 14px;
  background: #edf3ff;
  color: var(--blue);
  font-weight: 900;
}
.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(8, 18, 34, .72);
  backdrop-filter: blur(12px);
}
.quote-modal[hidden] { display: none; }
.quote-dialog {
  position: relative;
  width: min(920px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid #dbe4f2;
  border-radius: 8px;
  padding: clamp(24px, 4vw, 48px);
  background: #fff;
  box-shadow: 0 36px 100px rgba(8, 20, 43, .28);
}
.quote-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid #dbe4f2;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
}
.quote-head { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-bottom: 24px; border-bottom: 2px solid var(--ink); }
.quote-head img { width: 150px; height: 58px; object-fit: contain; object-position: left center; }
.quote-head span { color: var(--blue); font-weight: 900; }
.quote-head h2 { margin: 6px 0; color: var(--ink); font-size: 30px; }
.quote-head p { margin: 0; color: var(--muted); }
.quote-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.quote-summary > div { display: grid; gap: 6px; padding: 18px; border: 1px solid #dfe7f4; background: #f7f9fd; }
.quote-summary span, .quote-line small { color: var(--muted); font-size: 12px; }
.quote-summary strong { color: var(--blue); font-size: 22px; }
.quote-table { border: 1px solid #dfe7f4; }
.quote-table-head, .quote-line { display: grid; grid-template-columns: minmax(0, 1fr) 90px 170px; align-items: center; gap: 12px; padding: 15px 18px; }
.quote-table-head { background: #0f1c31; color: #fff; font-weight: 900; }
.quote-line { border-top: 1px solid #e4ebf5; color: var(--ink); }
.quote-line:first-of-type { border-top: 0; }
.quote-line > div { display: grid; gap: 4px; }
.quote-line em { color: var(--blue); font-size: 12px; font-style: normal; }
.quote-note { margin: 18px 0 0; padding: 14px 16px; border-right: 3px solid var(--blue); background: #f4f7fc; color: var(--ink); }
.quote-warning { border-right-color: #d58a16; background: #fff8e9; }
.quote-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.quote-loading { min-height: 260px; display: grid; place-items: center; color: var(--muted); font-weight: 900; }
html[data-theme="dark"] .site-tools-menu a,
html[data-theme="dark"] .quote-dialog,
html[data-theme="dark"] .quote-close { background: #101d31; border-color: #263650; color: #fff; }
html[data-theme="dark"] .quote-summary > div,
html[data-theme="dark"] .quote-note { background: #13223a; border-color: #263650; }

@media (max-width: 720px) {
  .quote-dialog { padding: 54px 16px 20px; }
  .quote-head { align-items: flex-start; flex-direction: column-reverse; }
  .quote-head img { width: 124px; }
  .quote-summary { grid-template-columns: 1fr; }
  .quote-table { overflow-x: auto; }
  .quote-table-head, .quote-line { min-width: 610px; }
  .quote-actions { flex-direction: column; }
}

@media print {
  body > *:not(.quote-modal) { display: none !important; }
  .quote-modal { position: static; display: block !important; padding: 0; background: #fff; }
  .quote-dialog { width: 100%; max-height: none; overflow: visible; border: 0; box-shadow: none; }
  .quote-close, .quote-actions { display: none !important; }
}

/* Customer account and quote workflow */
.shop-auth-panel select,
.shop-profile-card select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #dbe4f2;
  border-radius: 6px;
  background: #fbfcff;
  color: var(--ink);
  font: inherit;
}
.shop-account-side { display: grid; align-content: start; gap: 20px; }
.shop-profile-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.shop-profile-heading span { color: var(--blue); font-size: 12px; font-weight: 900; }
.shop-profile-heading h2 { margin-top: 5px; }
.shop-profile-heading > b { min-width: 54px; padding: 7px 10px; border-radius: 5px; background: #e9f1ff; color: var(--blue); text-align: center; }
.shop-profile-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.profile-help { margin: -2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.shop-contact-card { margin: 0; }
.verified-contacts { display: grid; gap: 8px; }
.verified-contacts > div { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #e2e9f4; background: #f8faff; }
.verified-contacts span { color: var(--muted); font-size: 11px; }
.verified-contacts b { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; }
.verified-contacts em { padding: 4px 7px; border-radius: 4px; background: #e7f8ef; color: #16825a; font-size: 10px; font-style: normal; font-weight: 900; }
.verified-contacts em[data-verified="false"] { background: #fff2db; color: #a46712; }
.shop-orders-card .shop-card-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.shop-order-row { grid-template-columns: minmax(170px, .66fr) minmax(300px, 1.35fr) minmax(170px, .62fr); align-items: center; }
.shop-order-row[data-status="approved"] { margin-inline: -12px; padding-inline: 12px; background: #f6f9ff; }
.order-identity, .order-quote-summary { display: grid; gap: 5px; }
.order-progress-v2 { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.order-progress-track { position: relative; display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; height: 24px; }
.order-progress-track::before, .order-progress-track i { content: ""; position: absolute; top: 10px; right: 0; height: 4px; border-radius: 4px; }
.order-progress-track::before { width: 100%; background: #e1e8f3; }
.order-progress-track i { width: var(--progress); background: linear-gradient(90deg, #174fbf, #3e77ef); box-shadow: 0 0 18px rgba(40, 99, 224, .24); transition: width .7s ease; }
.order-progress-track span { z-index: 1; width: 12px; height: 12px; border: 3px solid #fff; border-radius: 50%; background: #c9d4e5; box-shadow: 0 0 0 1px #c9d4e5; }
.order-progress-track span.done { background: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 0 14px rgba(40, 99, 224, .28); }
.order-progress-copy { display: grid; gap: 3px; }
.order-progress-copy b { color: var(--ink); font-size: 12px; line-height: 1.8; }
.order-progress-copy small { color: var(--muted); font-size: 10px; }
.order-progress-v2 > em { color: var(--blue); font-size: 13px; font-style: normal; font-weight: 900; }
.order-progress-v2[data-tone="danger"] > em, .order-progress-v2[data-tone="danger"] .order-progress-copy b { color: #d64258; }
.order-progress-v2[data-tone="warning"] > em { color: #b87913; }
.order-quote-summary { justify-items: start; }
.order-quote-summary strong { font-size: 17px; }
.order-quote-summary b { color: var(--muted); font-size: 11px; }
.order-journey { margin: 26px 0; padding: 22px; border: 1px solid #d9e4f4; background: #f8fbff; overflow: hidden; }
.order-journey header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.order-journey header span { color: var(--blue); font-size: 11px; font-weight: 900; }
.order-journey header h3 { margin: 5px 0 0; color: var(--ink); font-size: 22px; }
.order-journey header strong { color: var(--blue); font-size: 28px; }
.order-journey-message { display: grid; gap: 5px; margin: 18px 0 24px; padding: 14px 16px; border-right: 3px solid var(--blue); background: #fff; }
.order-journey-message b { color: var(--ink); font-size: 13px; line-height: 1.9; }
.order-journey-message small { color: var(--muted); }
.order-stage-grid { position: relative; display: grid; grid-template-columns: repeat(11, minmax(72px, 1fr)); gap: 0; overflow-x: auto; padding: 8px 2px 12px; scrollbar-width: thin; }
.order-stage-grid::before { content: ""; position: absolute; top: 23px; right: 4.5%; left: 4.5%; height: 2px; background: #dbe4f1; }
.order-stage { position: relative; z-index: 1; display: grid; justify-items: center; align-content: start; gap: 6px; min-width: 72px; text-align: center; }
.order-stage i { display: grid; width: 32px; height: 32px; place-items: center; border: 3px solid #f8fbff; border-radius: 50%; background: #dfe6f1; color: #718097; font-size: 11px; font-style: normal; font-weight: 900; box-shadow: 0 0 0 1px #d4deed; }
.order-stage span { min-height: 34px; color: #718097; font-size: 10px; line-height: 1.65; }
.order-stage small { color: #9aa6b8; font-size: 9px; }
.order-stage[data-state="complete"] i { background: #174fbf; color: #fff; box-shadow: 0 0 0 1px #174fbf; }
.order-stage[data-state="complete"] span { color: var(--ink); }
.order-stage[data-state="current"] i { background: #2d67e4; color: #fff; box-shadow: 0 0 0 1px #2d67e4, 0 0 0 7px rgba(45, 103, 228, .12), 0 0 22px rgba(45, 103, 228, .28); animation: orderStagePulse 2.2s ease-in-out infinite; }
.order-stage[data-state="current"] span, .order-stage[data-state="current"] small { color: var(--blue); font-weight: 900; }
.order-journey[data-tone="danger"] .order-journey-message { border-color: #d64258; }
.order-journey[data-tone="danger"] header strong { color: #d64258; }
.order-journey[data-tone="warning"] .order-journey-message { border-color: #d6972e; }
@keyframes orderStagePulse { 50% { box-shadow: 0 0 0 1px #2d67e4, 0 0 0 11px rgba(45, 103, 228, .06), 0 0 30px rgba(45, 103, 228, .32); } }
@media (prefers-reduced-motion: reduce) {
  .order-progress-track i { transition: none; }
  .order-stage[data-state="current"] i { animation: none; }
}
.quote-workflow { display: grid; grid-template-columns: repeat(5, 1fr); margin: 26px 0; border: 1px solid #dfe7f4; }
.quote-workflow > div { display: grid; justify-items: center; gap: 8px; padding: 14px 8px; border-left: 1px solid #dfe7f4; color: #8a96a9; font-size: 11px; text-align: center; }
.quote-workflow > div:last-child { border-left: 0; }
.quote-workflow b { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: #e9eef6; }
.quote-workflow .active { color: var(--ink); font-weight: 900; }
.quote-workflow .active b { background: var(--blue); color: #fff; }
.quote-timeline { margin-top: 22px; padding: 20px; border: 1px solid #dfe7f4; background: #fafcff; }
.quote-timeline h3 { margin: 0 0 16px; color: var(--ink); }
.quote-timeline > div { position: relative; display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-size: 12px; }
.quote-timeline i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.quote-timeline span { display: grid; gap: 2px; }
.quote-timeline span small { color: var(--muted); font-weight: 400; }
.quote-timeline time { color: var(--muted); font-size: 10px; }
.quote-decision { margin-top: 22px; padding: 22px; border: 1px solid #bfd2ff; background: #f3f7ff; }
.quote-decision > span { color: var(--blue); font-size: 12px; font-weight: 900; }
.quote-decision h3 { margin: 7px 0; color: var(--ink); }
.quote-decision p { margin: 0 0 14px; color: var(--muted); line-height: 1.9; }
.quote-decision textarea { width: 100%; padding: 12px; border: 1px solid #cad8ed; border-radius: 5px; background: #fff; color: var(--ink); font: inherit; resize: vertical; }
.quote-decision > div { display: flex; gap: 10px; margin-top: 12px; }
html[data-theme="dark"] .shop-auth-panel select,
html[data-theme="dark"] .shop-profile-card select,
html[data-theme="dark"] .verified-contacts > div,
html[data-theme="dark"] .quote-timeline,
html[data-theme="dark"] .quote-decision,
html[data-theme="dark"] .quote-decision textarea { border-color: #2a3a54; background: #0b1628; color: #fff; }
html[data-theme="dark"] .shop-order-row[data-status="approved"] { background: #13213a; }
html[data-theme="dark"] .order-journey { border-color: #263650; background: #0b1628; }
html[data-theme="dark"] .order-journey-message { background: #101d31; }
html[data-theme="dark"] .order-stage i { border-color: #0b1628; }
html[data-theme="dark"] .order-progress-track span { border-color: #101d31; }

@media (max-width: 1180px) {
  .shop-order-row { grid-template-columns: 1fr; align-items: stretch; }
  .order-quote-summary { grid-template-columns: 1fr auto; align-items: center; }
}
@media (max-width: 720px) {
  html, body { overflow-x: hidden; }
  .shop-profile-fields { grid-template-columns: 1fr; }
  .shop-page, .shop-dashboard, .shop-account-grid, .shop-account-side, .shop-profile-card, .shop-orders-card { width: 100%; max-width: 100%; min-width: 0; }
  .shop-page { overflow: hidden; }
  .shop-profile-card *, .shop-orders-card * { min-width: 0; overflow-wrap: anywhere; }
  .shop-dashboard > header > div { width: 100%; min-width: 0; }
  .shop-dashboard > header .outline-btn { max-width: 100%; white-space: normal; text-align: center; }
  .shop-dashboard h1 { font-size: 30px; line-height: 1.35; }
  .shop-profile-heading h2, .shop-orders-card h2 { font-size: 23px; line-height: 1.45; }
  .verified-contacts > div { grid-template-columns: 54px minmax(0, 1fr); }
  .verified-contacts em { grid-column: 2; justify-self: start; }
  .order-progress-v2 { grid-template-columns: 1fr; }
  .order-progress-v2 > em { justify-self: start; }
  .order-journey { padding: 18px 14px; }
  .order-journey header h3 { font-size: 19px; }
  .order-journey header strong { font-size: 22px; }
  .order-stage-grid { grid-template-columns: 1fr; gap: 0; overflow: visible; padding: 4px 2px; }
  .order-stage-grid::before { top: 18px; right: 17px; bottom: 18px; left: auto; width: 2px; height: auto; }
  .order-stage { grid-template-columns: 36px minmax(0, 1fr) auto; justify-items: start; align-items: center; gap: 9px; min-width: 0; min-height: 58px; text-align: right; }
  .order-stage i { grid-row: 1 / span 2; width: 34px; height: 34px; }
  .order-stage span { min-height: 0; font-size: 11px; }
  .order-stage small { justify-self: end; font-size: 9px; }
  .quote-workflow { grid-template-columns: 1fr; }
  .quote-workflow > div { grid-template-columns: 34px 1fr; justify-items: start; border-left: 0; border-bottom: 1px solid #dfe7f4; text-align: right; }
  .quote-workflow > div:last-child { border-bottom: 0; }
  .quote-timeline > div { grid-template-columns: 12px 1fr; }
  .quote-timeline small { grid-column: 2; }
  .quote-decision > div { flex-direction: column; }
}
