﻿    @font-face {
      font-family: "Peyda Fa";
      src: url("../fonts/Peyda-Regular.ttf") format("truetype");
      font-weight: 400;
      font-style: normal;
      font-display: swap;
    }
    @font-face {
      font-family: "Peyda Fa";
      src: url("../fonts/Peyda-Medium.ttf") format("truetype");
      font-weight: 500;
      font-style: normal;
      font-display: swap;
    }
    @font-face {
      font-family: "Peyda Fa";
      src: url("../fonts/Peyda-SemiBold.ttf") format("truetype");
      font-weight: 600;
      font-style: normal;
      font-display: swap;
    }
    @font-face {
      font-family: "Peyda Fa";
      src: url("../fonts/Peyda-Bold.ttf") format("truetype");
      font-weight: 700;
      font-style: normal;
      font-display: swap;
    }
    @font-face {
      font-family: "Peyda Fa";
      src: url("../fonts/Peyda-ExtraBold.ttf") format("truetype");
      font-weight: 800;
      font-style: normal;
      font-display: swap;
    }
    @font-face {
      font-family: "Peyda Fa";
      src: url("../fonts/Peyda-Black.ttf") format("truetype");
      font-weight: 900;
      font-style: normal;
      font-display: swap;
    }

    /* پالت سمت مشتری Theme (Custom.css + assets3) — نه AdminTheme */
    :root {
      --primary: #0033cc;       /* --aqua-blue / --primaryColor مشتری */
      --secondary: #ff8000;     /* --aqua-orange / --secondaryColor مشتری */
      --cyan: #4dc3ff;          /* --aqua-cyan / --fur-primary-color مشتری */
      --bodyBg: #f6f6f6;        /* --whiteColor2 / --greyColor1 مشتری */
      --white: #ffffff;
      --heading: #1f1f25;       /* --headingColor مشتری */
      --content: #303030;       /* --contentColor / --bodyColor مشتری */
      --muted: #717171;         /* --greyColor3 مشتری */
      --border: #eeeeee;        /* --borderColor مشتری */
      --grey: #ebebeb;
      --radius: 10px;           /* --borderRadius2 مشتری */
      --radius2: 15px;          /* --borderRadius3 مشتری */
      --shadow: 0 5px 20px 0 rgba(23, 44, 82, 0.10);
      --shadow-hover: 0 10px 36px rgba(13, 38, 59, 0.14);
      --font: "Peyda Fa", Tahoma, sans-serif;
      --transition: .3s;
    }

    * { box-sizing: border-box; }
    body {
      margin: 0;
      font-family: var(--font);
      background: var(--bodyBg);
      color: var(--content);
      line-height: 1.8;
    }
    body.lb-open { overflow: hidden; }

    .topbar {
      background: var(--primary);
      color: #fff;
      text-align: center;
      padding: 10px 16px;
      font-size: 13px;
    }
    .topbar b { color: #ffd7a8; }

    .wrap { max-width: 1140px; margin: 0 auto; padding: 28px 18px 64px; }

    .cover {
      background: var(--white);
      border-radius: var(--radius2);
      box-shadow: var(--shadow);
      padding: 42px 32px;
      text-align: center;
      margin-bottom: 22px;
      border-top: 4px solid var(--secondary);
      position: relative;
      overflow: hidden;
    }
    .cover::after {
      content: "";
      position: absolute;
      inset: auto -40px -60px auto;
      width: 180px; height: 180px;
      border-radius: 50%;
      background: rgba(0, 51, 204, 0.06);
      pointer-events: none;
    }
    .badge {
      display: inline-block;
      background: rgba(255, 128, 0, 0.12);
      color: var(--secondary);
      border: 1px solid rgba(255, 128, 0, 0.35);
      padding: 4px 14px;
      border-radius: 100px;
      font-size: 13px;
      margin-bottom: 16px;
    }
    h1 {
      margin: 0 0 14px;
      font-size: clamp(26px, 4.5vw, 40px);
      color: var(--heading);
      font-weight: 400;
    }
    h1 b {
      font-weight: 800;
      color: var(--primary);
    }
    .cover-logo {
      width: 96px;
      height: 96px;
      object-fit: contain;
      margin: 0 auto 14px;
      display: block;
      border-radius: 50%;
    }
    .lead {
      max-width: 820px;
      margin: 0 auto;
      color: var(--content);
      font-size: clamp(16px, 1.7vw, 18.5px);
      font-weight: 500;
      line-height: 2;
    }

    .meta {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
      margin: 22px 0 28px;
    }
    .meta div {
      background: var(--white);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 18px 14px;
      text-align: center;
      border-bottom: 3px solid var(--secondary);
      transition: var(--transition);
      font-size: 14.5px;
      color: var(--content);
      line-height: 1.7;
    }
    .meta div:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
    .meta strong {
      display: block;
      color: var(--primary);
      font-size: 17.5px;
      margin-bottom: 4px;
    }

    section {
      background: var(--white);
      border-radius: var(--radius2);
      box-shadow: var(--shadow);
      padding: 26px 22px;
      margin-bottom: 20px;
    }
    .section-head {
      margin-bottom: 8px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--border);
    }
    h2 {
      margin: 0;
      font-size: 21px;
      color: var(--heading);
    }
    h2 span {
      color: var(--secondary);
      font-size: 12px;
      margin-right: 8px;
      direction: ltr;
      display: inline-block;
      letter-spacing: 1px;
    }
    .section-desc {
      color: var(--content);
      margin: 0 0 18px;
      font-size: 15px;
      line-height: 1.8;
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 16px;
    }

    .card {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: 0 1px 6px rgba(32, 33, 36, 0.08);
      transition: var(--transition);
      display: flex;
      flex-direction: column;
      width: 100%;
      padding: 0;
      text-align: right;
      cursor: pointer;
      font: inherit;
      color: inherit;
    }
    .card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-hover);
      border-color: rgba(0, 51, 204, 0.25);
    }
    .card:focus-visible {
      outline: 3px solid rgba(0, 51, 204, 0.45);
      outline-offset: 2px;
    }
    .photo {
      height: 180px;
      background: #fff;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      position: relative;
    }
    .photo img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      padding: 12px;
      display: block;
    }
    .photo .zoom-hint {
      position: absolute;
      left: 10px;
      bottom: 10px;
      background: rgba(0, 51, 204, 0.9);
      color: #fff;
      font-size: 11px;
      padding: 3px 10px;
      border-radius: 100px;
      opacity: 0;
      transition: var(--transition);
    }
    .card:hover .zoom-hint { opacity: 1; }
    .card h3 {
      margin: 0;
      padding: 14px 14px 4px;
      font-size: 16.5px;
      font-weight: 700;
      color: var(--heading);
      line-height: 1.45;
    }
    .card p,
    .card__desc {
      margin: 0;
      padding: 0 14px 12px;
      font-size: 14.5px;
      color: var(--content);
      font-weight: 500;
      flex: 1;
      /* فقط چند خط روی کارت؛ متن کامل در لایت‌باکس */
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3;
      line-clamp: 3;
      overflow: hidden;
      text-overflow: ellipsis;
      max-height: calc(1.75em * 3);
      line-height: 1.75;
    }
    .card .tag {
      display: inline-block;
      margin: 0 14px 14px;
      padding: 4px 12px;
      border-radius: 100px;
      background: rgba(77, 195, 255, 0.18);
      color: var(--primary);
      font-size: 12.5px;
      font-weight: 600;
      width: fit-content;
      border: 1px solid rgba(77, 195, 255, 0.45);
    }

    .catalog-section:not(.is-expanded) .card.is-extra {
      display: none;
    }
    .catalog-more-wrap {
      display: flex;
      justify-content: center;
      margin: 18px 0 8px;
    }
    .catalog-more {
      appearance: none;
      border: 1px solid rgba(0, 51, 204, 0.28);
      background: var(--white);
      color: var(--primary);
      font: inherit;
      font-size: 14px;
      font-weight: 700;
      padding: 10px 28px;
      border-radius: 999px;
      cursor: pointer;
      box-shadow: var(--shadow);
      transition: var(--transition);
    }
    .catalog-more:hover {
      background: var(--primary);
      color: #fff;
      border-color: var(--primary);
    }

    .note {
      border: 1px dashed rgba(0, 51, 204, 0.35);
      background: rgba(77, 195, 255, 0.10);
      border-radius: var(--radius);
      padding: 16px 18px;
      color: var(--muted);
      font-size: 13.5px;
    }
    .note b { color: var(--primary); }
    .lead b { color: var(--heading); font-weight: 800; }

    footer {
      margin-top: 28px;
      text-align: center;
      color: var(--muted);
      font-size: 13px;
      padding-top: 18px;
    }
    footer b { color: var(--primary); }

    /* ===== Lightbox gallery ===== */
    .lightbox {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }
    .lightbox.is-open { display: flex; }
    .lightbox__backdrop {
      position: absolute;
      inset: 0;
      background: rgba(15, 20, 35, 0.82);
      backdrop-filter: blur(4px);
    }
    .lightbox__panel {
      position: relative;
      z-index: 1;
      width: min(920px, 100%);
      max-height: calc(100vh - 40px);
      background: var(--white);
      border-radius: 16px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      animation: lbIn .22s ease;
    }
    @keyframes lbIn {
      from { opacity: 0; transform: translateY(12px) scale(.98); }
      to { opacity: 1; transform: none; }
    }
    .lightbox__toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 12px 16px;
      background: var(--primary);
      color: #fff;
    }
    .lightbox__counter {
      font-size: 13px;
      opacity: .9;
    }
    .lightbox__close {
      border: 0;
      background: rgba(255,255,255,.15);
      color: #fff;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      cursor: pointer;
      font-size: 20px;
      line-height: 1;
    }
    .lightbox__close:hover { background: var(--secondary); }

    .lightbox__stage {
      position: relative;
      background: #f3f5f9;
      min-height: 280px;
      max-height: 55vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 18px 56px;
    }
    .lightbox__stage img {
      max-width: 100%;
      max-height: 50vh;
      object-fit: contain;
      display: block;
    }
    .lightbox__nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 42px;
      height: 42px;
      border: 0;
      border-radius: 50%;
      background: var(--white);
      color: var(--primary);
      box-shadow: 0 4px 14px rgba(0,0,0,.18);
      cursor: pointer;
      font-size: 22px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .lightbox__nav:hover {
      background: var(--primary);
      color: #fff;
    }
    .lightbox__prev { right: 10px; }
    .lightbox__next { left: 10px; }

    .lightbox__text {
      padding: 18px 20px 22px;
      border-top: 1px solid var(--border);
    }
    .lightbox__tag {
      display: inline-block;
      margin-bottom: 8px;
      padding: 3px 10px;
      border-radius: 100px;
      background: rgba(255, 128, 0, 0.12);
      color: var(--secondary);
      font-size: 12px;
    }
    .lightbox__title {
      margin: 0 0 6px;
      font-size: 20px;
      color: var(--heading);
    }
    .lightbox__desc {
      margin: 0;
      color: var(--content);
      font-size: 14.5px;
      line-height: 1.85;
      white-space: pre-wrap;
      max-height: min(40vh, 280px);
      overflow: auto;
    }
    .lightbox__hint {
      margin: 12px 0 0;
      font-size: 12px;
      color: #9aa3b5;
    }

    /* ناوبری سایت */
    .site-nav {
      background: var(--primary);
      color: #fff;
      position: sticky;
      top: 0;
      z-index: 40;
      box-shadow: 0 4px 18px rgba(0, 30, 100, 0.18);
    }
    .site-nav__inner {
      max-width: 1140px;
      margin: 0 auto;
      padding: 10px 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      flex-wrap: wrap;
    }
    .site-nav__brand {
      display: flex;
      align-items: center;
      gap: 10px;
      color: #fff;
      text-decoration: none;
      font-weight: 700;
      font-size: 17px;
    }
    .site-nav__brand img {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      object-fit: cover;
      background: #fff;
    }
    .site-nav__links {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }
    .site-nav__links a {
      color: rgba(255,255,255,.92);
      text-decoration: none;
      padding: 7px 12px;
      border-radius: 8px;
      font-size: 14px;
      transition: var(--transition);
    }
    .site-nav__links a:hover,
    .site-nav__links a.is-active {
      background: rgba(255,255,255,.14);
      color: #fff;
    }
    .site-nav__admin {
      background: var(--secondary) !important;
      color: #fff !important;
      font-weight: 700;
    }
    .site-nav__admin:hover {
      filter: brightness(1.05);
    }

    /* اسلایدر — caption با scrim و تایپ Material برای خوانایی روی عکس */
    .hero-slider {
      position: relative;
      width: 100%;
      max-width: none;
      margin: 0;
      padding: 0;
      border-radius: 0;
    }
    .hero-slider__track {
      position: relative;
      width: 100%;
      height: clamp(220px, 42vw, 520px);
      border-radius: 0;
      overflow: hidden;
      background: #0b1a4a;
      box-shadow: none;
    }
    .hero-slider__slide {
      position: absolute;
      inset: 0;
      opacity: 0;
      visibility: hidden;
      transition: opacity .55s ease;
    }
    .hero-slider__slide.is-active {
      opacity: 1;
      visibility: visible;
      z-index: 1;
    }
    .hero-slider__slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .hero-slider__caption {
      position: absolute;
      inset: auto 0 0 0;
      z-index: 2;
      display: flex;
      justify-content: flex-start;
      padding: 48px 24px 40px;
      background: linear-gradient(
        180deg,
        rgba(8, 18, 48, 0) 0%,
        rgba(8, 18, 48, 0.72) 45%,
        rgba(8, 18, 48, 0.92) 100%
      );
      color: #fff;
      pointer-events: none;
    }
    .hero-slider__caption-inner {
      pointer-events: auto;
      max-width: min(560px, 100%);
      padding: 0;
      background: transparent;
      border: 0;
      box-shadow: none;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }
    .hero-slider__caption h2 {
      margin: 0 0 8px;
      color: #ffffff !important;
      font-size: clamp(22px, 3.4vw, 32px);
      font-weight: 800;
      line-height: 1.35;
      letter-spacing: -0.01em;
    }
    .hero-slider__caption p {
      margin: 0 0 14px;
      color: rgba(255, 255, 255, 0.9) !important;
      font-size: clamp(13.5px, 1.7vw, 15.5px);
      font-weight: 500;
      line-height: 1.65;
    }
    .hero-slider__caption p:last-child,
    .hero-slider__caption h2:last-child {
      margin-bottom: 0;
    }
    .hero-slider__caption .hero-slider__btn {
      margin-top: 2px;
    }
    /* Material filled button */
    .hero-slider__btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 40px;
      padding: 0 22px;
      border-radius: 20px;
      background: var(--secondary);
      color: #fff !important;
      text-decoration: none;
      font-size: 14px;
      font-weight: 700;
      letter-spacing: 0.02em;
      box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.3),
        0 2px 6px rgba(255, 128, 0, 0.35);
      transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
    }
    .hero-slider__btn:hover {
      background: #ff9226;
      box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.28),
        0 6px 14px rgba(255, 128, 0, 0.4);
      transform: translateY(-1px);
    }
    .hero-slider__btn:active {
      transform: translateY(0);
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
    }
    .hero-slider__nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 3;
      width: 44px;
      height: 44px;
      border: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.94);
      color: var(--primary);
      font-size: 26px;
      cursor: pointer;
      line-height: 1;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
      transition: background .2s ease, box-shadow .2s ease;
    }
    .hero-slider__nav:hover {
      background: #fff;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
    }
    .hero-slider__prev { right: 28px; }
    .hero-slider__next { left: 28px; }
    .hero-slider__dots {
      position: absolute;
      left: 50%;
      bottom: 12px;
      transform: translateX(-50%);
      z-index: 3;
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 6px 10px;
      border-radius: 999px;
      background: rgba(8, 18, 48, 0.45);
      backdrop-filter: blur(6px);
    }
    .hero-slider__dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      border: 0;
      background: rgba(255, 255, 255, 0.5);
      cursor: pointer;
      padding: 0;
      transition: width .2s ease, background .2s ease;
    }
    .hero-slider__dot.is-active {
      width: 22px;
      border-radius: 999px;
      background: var(--secondary);
    }

    .page-card {
      background: var(--white);
      border-radius: var(--radius2);
      box-shadow: var(--shadow);
      padding: 36px 28px;
      border-top: 4px solid var(--secondary);
      margin-top: 8px;
    }
    .page-card h1 {
      margin-top: 0;
    }
    .page-body p {
      color: var(--content);
      font-size: 15.5px;
      margin: 0 0 14px;
    }
    .site-footer {
      text-align: center;
      color: var(--muted);
      font-size: 13px;
      margin-top: 10px;
    }
    .site-footer__links {
      margin-top: 8px;
      display: flex;
      justify-content: center;
      gap: 16px;
      flex-wrap: wrap;
    }
    .site-footer__links a {
      color: var(--primary);
      text-decoration: none;
    }

    /* سوییچر زبان FA/EN — Material segmented control */
    .lang-switch {
      display: inline-flex;
      align-items: center;
      padding: 3px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.14);
      border: 1px solid rgba(255, 255, 255, 0.22);
      gap: 2px;
    }
    .lang-switch__item {
      min-width: 40px;
      height: 30px;
      padding: 0 12px;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 12.5px;
      font-weight: 700;
      letter-spacing: 0.04em;
      color: rgba(255, 255, 255, 0.88) !important;
      text-decoration: none !important;
      background: transparent !important;
      transition: background .2s ease, color .2s ease;
    }
    .lang-switch__item.is-current {
      background: #fff !important;
      color: var(--primary) !important;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    }
    .lang-switch__item:not(.is-current):hover {
      background: rgba(255, 255, 255, 0.16) !important;
    }

    /* بلوک دانلود کاتالوگ PDF */
    .catalog-pdf-cta {
      margin: 8px 0 20px;
      border-radius: var(--radius2);
      background:
        linear-gradient(135deg, rgba(0, 51, 204, 0.06), rgba(255, 128, 0, 0.08)),
        var(--white);
      box-shadow: var(--shadow);
      border: 1px solid rgba(0, 51, 204, 0.12);
      overflow: hidden;
    }
    .catalog-pdf-cta__inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      flex-wrap: wrap;
      padding: 26px 28px;
    }
    .catalog-pdf-cta h2 {
      margin: 0 0 6px;
      font-size: 20px;
      color: var(--primary);
    }
    .catalog-pdf-cta p {
      margin: 0;
      color: var(--content);
      font-size: 14.5px;
      max-width: 52ch;
    }
    .catalog-pdf-cta__btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      padding: 0 26px;
      border-radius: 22px;
      background: var(--secondary);
      color: #fff;
      text-decoration: none;
      font-weight: 800;
      font-size: 14.5px;
      box-shadow: 0 2px 8px rgba(255, 128, 0, 0.35);
      transition: transform .2s ease, filter .2s ease;
    }
    .catalog-pdf-cta__btn:hover {
      filter: brightness(1.05);
      transform: translateY(-1px);
    }
    .catalog-pdf-cta__soon {
      display: inline-flex;
      align-items: center;
      min-height: 44px;
      padding: 0 20px;
      border-radius: 22px;
      background: rgba(0, 51, 204, 0.08);
      color: var(--primary);
      font-weight: 700;
      font-size: 14px;
    }

    @media (max-width: 700px) {
      .meta { grid-template-columns: 1fr; }
      .cover { padding: 28px 16px; }
      .lightbox__stage { padding: 14px 48px; min-height: 220px; }
      .lightbox__nav { width: 36px; height: 36px; }
      .hero-slider__track { height: clamp(200px, 56vw, 360px); }
      .hero-slider__caption { padding: 36px 16px 36px; }
      .hero-slider__nav {
        width: 36px;
        height: 36px;
        font-size: 22px;
      }
      .hero-slider__prev { right: 10px; }
      .hero-slider__next { left: 10px; }
      .site-nav__inner { justify-content: center; }
    }

/* ===== English LTR overrides (en.steeldavam.ir) ===== */
html[dir="ltr"] body { direction: ltr; }
html[dir="ltr"] .card { text-align: left; }
html[dir="ltr"] .photo .zoom-hint { left: auto; right: 10px; }
html[dir="ltr"] .hero-slider__prev { left: 28px; right: auto; }
html[dir="ltr"] .hero-slider__next { right: 28px; left: auto; }
html[dir="ltr"] .lightbox__prev { left: 10px; right: auto; }
html[dir="ltr"] .lightbox__next { right: 10px; left: auto; }
html[dir="ltr"] .cover::after { inset: auto auto -60px -40px; }
@media (max-width: 700px) {
  html[dir="ltr"] .hero-slider__prev { left: 10px; right: auto; }
  html[dir="ltr"] .hero-slider__next { right: 10px; left: auto; }
}
