:root,
html[data-theme="light"] {
  --ypj-void: #ffffff;
  --ypj-bg: #f3f3f3;
  --ypj-panel: #ffffff;
  --ypj-panel-2: #fafafa;
  --ypj-line: rgba(0, 0, 0, 0.08);
  --ypj-line-strong: rgba(31, 107, 56, 0.55);
  --ypj-gold: #1f6b3a;
  --ypj-gold-2: #2e8a4e;
  --ypj-brass: #1f6b3a;
  --ypj-red: #111111;
  --ypj-red-2: #1f6b3a;
  --ypj-steel: #666666;
  --ypj-text: #111111;
  --ypj-muted: #666666;
  --ypj-radius: 12px;
  --ypj-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --ypj-gutter: clamp(16px, 5vw, 72px);
  --ypj-topbar-bg: #1f6b3a;
  --ypj-header-bg: rgba(255, 255, 255, 0.96);
  --ypj-header-scrolled: #ffffff;
  --ypj-footer-bg: #f0f2f5;
  --ypj-hero-overlay: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.35) 55%, transparent 100%);
  --ypj-site-glow: none;
  --ypj-grid-line: rgba(0, 0, 0, 0.04);
}

html[data-theme="dark"] {
  --ypj-void: #080606;
  --ypj-bg: #0d0a0a;
  --ypj-panel: #171111;
  --ypj-panel-2: #1f1616;
  --ypj-line: rgba(201, 162, 39, 0.18);
  --ypj-line-strong: rgba(229, 57, 53, 0.45);
  --ypj-gold: #d4af5e;
  --ypj-gold-2: #f0d089;
  --ypj-brass: #c9a14a;
  --ypj-red: #e53935;
  --ypj-red-2: #b71c1c;
  --ypj-steel: #9a8f86;
  --ypj-text: #f4ebe4;
  --ypj-muted: #b3a59c;
  --ypj-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
  --ypj-topbar-bg: #140808;
  --ypj-header-bg: rgba(13, 10, 10, 0.82);
  --ypj-header-scrolled: rgba(8, 6, 6, 0.94);
  --ypj-footer-bg: #090707;
  --ypj-hero-overlay: linear-gradient(180deg, rgba(8, 6, 6, 0.2) 0%, rgba(8, 6, 6, 0.62) 48%, var(--ypj-bg) 100%),
    linear-gradient(90deg, rgba(8, 6, 6, 0.55), transparent 48%);
  --ypj-site-glow: radial-gradient(1200px 560px at 88% -8%, rgba(229, 57, 53, 0.12), transparent 52%),
    radial-gradient(800px 420px at 0% 18%, rgba(212, 175, 94, 0.1), transparent 48%);
  --ypj-grid-line: rgba(212, 175, 94, 0.05);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

::selection {
  background: var(--ypj-red);
  color: #fff8f2;
}

.ypj-industrial,
.ypj-industrial body,
body.ypj-industrial {
  background: var(--ypj-bg) !important;
  color: var(--ypj-text);
  font-family: "Vazir", Tahoma, sans-serif !important;
  margin: 0;
}

.ypj-industrial h1,
.ypj-industrial h2,
.ypj-industrial h3,
.ypj-industrial h4,
.ypj-industrial .wd-entities-title,
.ypj-industrial .product_title {
  font-family: "Vazir", Tahoma, sans-serif !important;
  letter-spacing: -0.03em;
  color: var(--ypj-text);
  font-weight: 700;
}

.ypj-industrial a { color: var(--ypj-red); }
html[data-theme="dark"] .ypj-industrial a { color: var(--ypj-gold); }

.ypj-site {
  min-height: 100vh;
  background: var(--ypj-site-glow), var(--ypj-bg);
}

.ypj-site::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(var(--ypj-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ypj-grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.ypj-site::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.055;
  background-color: var(--ypj-gold);
  -webkit-mask-image: url("watermark.svg");
  mask-image: url("watermark.svg");
  -webkit-mask-size: 280px 280px;
  mask-size: 280px 280px;
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
}

html[data-theme="light"] .ypj-site::after {
  opacity: 0.045;
  background-color: #1f6b3a;
}

html[data-theme="dark"] .ypj-site::after {
  opacity: 0.085;
  background-color: #d4af5e;
}

.ypj-topbar,
.ypj-header,
.ypj-hero,
.ypj-section,
.ypj-stats,
.ypj-footer,
.ypj-cta-band,
.ypj-page {
  position: relative;
  z-index: 1;
}

.ypj-topbar {
  background: var(--ypj-topbar-bg);
  border-bottom: 1px solid var(--ypj-line);
  font-size: 12px;
  color: #f4ebe4;
}

.ypj-topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px var(--ypj-gutter);
  align-items: center;
}

.ypj-topbar a {
  color: #fff8f2;
  text-decoration: none;
  margin-inline-start: 14px;
}

.ypj-topbar em {
  font-style: normal;
  color: var(--ypj-gold-2);
}

.ypj-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: var(--ypj-header-bg);
  border-bottom: 1px solid var(--ypj-line);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.ypj-header.is-scrolled {
  background: var(--ypj-header-scrolled);
  box-shadow: 0 12px 40px rgba(80, 20, 16, 0.12);
}

.ypj-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px var(--ypj-gutter);
}

.ypj-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ypj-text);
  min-width: 0;
  flex: 0 0 auto;
}

.ypj-mark {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 50%;
  object-fit: contain;
  border: 1px solid var(--ypj-line);
  background: #fff;
  box-shadow: none;
  padding: 2px;
}

.ypj-logo strong {
  display: block;
  font-size: 15px;
  line-height: 1.3;
}

.ypj-logo span span,
.ypj-logo > span > span {
  display: block;
  font-size: 11px;
  color: var(--ypj-muted);
  font-weight: 400;
}

.ypj-nav {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ypj-nav a {
  color: var(--ypj-text);
  text-decoration: none;
  font-size: 14px;
  position: relative;
}

.ypj-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--ypj-red);
  transition: width 0.25s ease;
}

.ypj-nav a:hover { color: var(--ypj-gold-2); }
.ypj-nav a:hover::after { width: 100%; }

.ypj-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ypj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--ypj-line-strong);
  background: transparent;
  color: var(--ypj-text) !important;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

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

.ypj-btn-gold {
  background: linear-gradient(180deg, #ecd28a, #b8903b);
  color: #1a1408 !important;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(184, 144, 59, 0.28);
}

html[data-theme="light"] .ypj-btn-gold {
  background: #1f6b3a;
  color: #fff !important;
  box-shadow: none;
}

html[data-theme="light"] .ypj-kicker { color: #1f6b3a; }

.ypj-theme-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--ypj-line);
  background: var(--ypj-panel);
  color: var(--ypj-text);
  border-radius: 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.ypj-theme-toggle svg { width: 18px; height: 18px; }
html[data-theme="light"] .ypj-theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .ypj-theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .ypj-theme-toggle { color: var(--ypj-gold); }

.ypj-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--ypj-bg);
  border: 1px solid var(--ypj-line);
  border-radius: 999px;
  padding: 4px 6px 4px 10px;
}
.ypj-search input {
  border: 0;
  background: transparent;
  width: 150px;
  font-family: inherit;
  font-size: 13px;
  color: var(--ypj-text);
  outline: none;
}
.ypj-search button {
  border: 0;
  background: var(--ypj-gold);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.ypj-burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ypj-line);
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  padding: 10px 9px;
}

.ypj-burger span {
  display: block;
  height: 1.5px;
  background: var(--ypj-gold);
  margin: 5px 0;
}

.ypj-nav-quote { display: none; }

.ypj-hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--ypj-line);
}

.ypj-hero-media {
  position: absolute;
  inset: 0;
}

.ypj-hero video,
.ypj-hero img.ypj-hero-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.55) contrast(1.15) brightness(0.72);
}

.ypj-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ypj-hero-overlay);
}

.ypj-hero-copy {
  position: relative;
  z-index: 2;
  width: min(920px, 88vw);
  padding: 18vh var(--ypj-gutter) 10vh;
}

.ypj-kicker {
  color: var(--ypj-red);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.ypj-hero h1 {
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.2;
  margin: 0 0 20px;
}

.ypj-hero p {
  font-size: 18px;
  color: var(--ypj-muted);
  max-width: 640px;
  line-height: 1.95;
}

.ypj-hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.ypj-hero-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 36px;
  color: var(--ypj-steel);
  font-size: 12px;
}

.ypj-hero-meta span {
  padding-inline-end: 18px;
  border-inline-end: 1px solid var(--ypj-line);
}

.ypj-hero-meta span:last-child { border: 0; }

.ypj-section {
  padding: 88px var(--ypj-gutter);
}

.ypj-section-alt {
  background: var(--ypj-panel-2);
  border-block: 1px solid var(--ypj-line);
}

.ypj-section h2 {
  font-size: clamp(26px, 3vw, 40px);
  margin: 0 0 10px;
  line-height: 1.3;
}

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

.ypj-lead {
  color: var(--ypj-muted);
  margin: 0;
  max-width: 640px;
  line-height: 1.9;
}

.ypj-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--ypj-line);
}

.ypj-stat {
  padding: 32px var(--ypj-gutter) 32px 24px;
  border-left: 1px solid var(--ypj-line);
}

.ypj-stat b {
  display: block;
  font-size: 30px;
  color: var(--ypj-gold-2);
}

.ypj-stat span {
  color: var(--ypj-muted);
  font-size: 13px;
}

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

.ypj-card {
  background: linear-gradient(180deg, var(--ypj-panel-2), var(--ypj-panel));
  border: 1px solid var(--ypj-line);
  border-radius: var(--ypj-radius);
  overflow: hidden;
  box-shadow: var(--ypj-shadow);
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.ypj-card:hover {
  transform: translateY(-6px);
  border-color: var(--ypj-line-strong);
}

.ypj-card-media {
  height: 168px;
  overflow: hidden;
  position: relative;
}

.ypj-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(10, 13, 18, 0.45));
}

html[data-theme="light"] .ypj-card-media::after {
  background: transparent;
}

.ypj-card img,
.ypj-card video,
.ypj-product img,
.ypj-product video,
.ypj-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--ypj-panel-2);
  display: block;
}

.ypj-card-body { padding: 16px 18px 20px; }

.ypj-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.ypj-card p {
  margin: 0;
  color: var(--ypj-muted);
  font-size: 13px;
  line-height: 1.7;
}

.ypj-products,
.ypj-shop-grid,
.ypj-industrial ul.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ypj-product {
  background: var(--ypj-panel);
  border: 1px solid var(--ypj-line);
  border-radius: var(--ypj-radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.ypj-product:hover {
  transform: translateY(-4px);
  border-color: var(--ypj-line-strong);
}

.ypj-product img,
.ypj-product video { height: 220px; }

.ypj-product-body { padding: 16px 18px 20px; }

.ypj-price {
  color: var(--ypj-gold);
  font-size: 14px;
  font-weight: 700;
  margin-top: 8px;
  display: block;
}

.ypj-product h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ypj-text);
  min-height: 42px;
}

.ypj-product-more {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ypj-muted);
}

.ypj-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.ypj-panel {
  background: var(--ypj-panel);
  border: 1px solid var(--ypj-line);
  border-radius: 24px;
  padding: 28px;
}

.ypj-list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.ypj-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--ypj-line);
  color: var(--ypj-muted);
}

.ypj-list li strong {
  color: var(--ypj-text);
  display: block;
  margin-bottom: 4px;
}

.ypj-frame {
  display: block;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--ypj-line-strong);
  min-height: 360px;
  box-shadow: var(--ypj-shadow);
}

.ypj-frame img { min-height: 360px; }

.ypj-play {
  position: absolute;
  bottom: 22px;
  right: 22px;
  background: linear-gradient(180deg, #ecd28a, #b8903b);
  color: #1a1408;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.ypj-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}

.ypj-process li {
  background: var(--ypj-panel);
  border: 1px solid var(--ypj-line);
  border-radius: 20px;
  padding: 24px;
}

.ypj-process span {
  display: block;
  color: var(--ypj-gold);
  font-size: 12px;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
}

.ypj-process strong { display: block; margin-bottom: 8px; }

.ypj-process p {
  margin: 0;
  color: var(--ypj-muted);
  font-size: 14px;
  line-height: 1.8;
}

.ypj-posts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.ypj-post {
  border: 1px solid var(--ypj-line);
  background: var(--ypj-panel);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ypj-post:hover {
  border-color: var(--ypj-line-strong);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.ypj-post-thumb {
  width: 100%;
  height: 145px;
  overflow: hidden;
  background: #f1f3f5;
  position: relative;
}

.ypj-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.ypj-post:hover .ypj-post-thumb img {
  transform: scale(1.06);
}

.ypj-post-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ypj-post time {
  color: var(--ypj-gold);
  font-size: 11.5px;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.ypj-post h3 {
  margin: 2px 0 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ypj-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}

.ypj-post p {
  margin: 0;
  color: var(--ypj-muted);
  font-size: 12px;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ypj-single-thumb {
  margin: 20px 0 28px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  background: #f1f3f5;
}

.ypj-single-thumb img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.ypj-cta-band {
  padding: 0 var(--ypj-gutter) 8px;
}

.ypj-cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 36px 40px;
  border-radius: 24px;
  border: 1px solid var(--ypj-line-strong);
  background:
    linear-gradient(120deg, rgba(212, 175, 94, 0.12), transparent 40%),
    var(--ypj-panel);
}

.ypj-cta-inner h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.ypj-cta-inner p {
  margin: 0;
  color: var(--ypj-muted);
}

.ypj-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.ypj-footer {
  padding: 56px var(--ypj-gutter) 28px;
  background: var(--ypj-footer-bg);
  border-top: 1px solid var(--ypj-line);
  margin-top: 28px;
}

.ypj-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 28px;
}

.ypj-footer h4 {
  margin: 0 0 14px;
  color: var(--ypj-gold);
  font-size: 14px;
}

.ypj-footer a,
.ypj-footer p,
.ypj-footer li {
  color: var(--ypj-muted);
  text-decoration: none;
  line-height: 1.95;
  font-size: 14px;
}

.ypj-footer a:hover { color: var(--ypj-gold-2); }

.ypj-footer .ypj-logo {
  color: var(--ypj-text);
}

.ypj-slider {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  border-bottom: 1px solid var(--ypj-line);
  background: var(--ypj-panel-2);
}
.ypj-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}
.ypj-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.ypj-slide img,
.ypj-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.08) brightness(0.62);
}
.ypj-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ypj-hero-overlay);
}
.ypj-slide-copy {
  position: absolute;
  z-index: 2;
  inset-inline: var(--ypj-gutter);
  bottom: 12vh;
  width: min(760px, 86vw);
  color: #f4ebe4;
}
.ypj-slide-copy .ypj-kicker { color: var(--ypj-gold-2); }
.ypj-slide-copy h1 {
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.2;
  margin: 0 0 16px;
  color: #fff8f2;
}
.ypj-slide-copy p {
  font-size: 17px;
  line-height: 1.9;
  max-width: 560px;
  color: #e4d6cc;
}
.ypj-slider-nav {
  position: absolute;
  z-index: 3;
  bottom: 36px;
  left: var(--ypj-gutter);
  display: flex;
  gap: 10px;
  align-items: center;
}
.ypj-slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(240, 208, 137, 0.5);
  background: rgba(26, 16, 16, 0.45);
  color: #f0d089;
  cursor: pointer;
  font-size: 20px;
}
.ypj-slider-dots {
  display: flex;
  gap: 8px;
  margin-inline-start: 8px;
}
.ypj-slider-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 248, 242, 0.35);
  cursor: pointer;
  padding: 0;
}
.ypj-slider-dots button.is-active {
  background: var(--ypj-gold);
  transform: scale(1.25);
}

.ypj-legal-line { font-size: 12px !important; color: var(--ypj-steel) !important; }

.ypj-legal-line { font-size: 12px !important; color: var(--ypj-steel) !important; }

.ypj-logo-foot { margin-bottom: 16px; }

.ypj-copy {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--ypj-line);
  color: var(--ypj-steel);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ypj-page {
  width: min(980px, 88vw);
  margin: 48px auto 80px;
}

.ypj-page-hero {
  padding: 48px var(--ypj-gutter) 8px;
}

.ypj-page-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 8px 0 0;
}

.ypj-page h1 { font-size: 36px; margin-bottom: 12px; }

.ypj-prose {
  line-height: 2;
  color: var(--ypj-muted);
  font-size: 16.5px;
}

.ypj-prose h2,
.ypj-prose h3 { margin-top: 32px; }

.ypj-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.ypj-prose th,
.ypj-prose td {
  border: 1px solid var(--ypj-line);
  padding: 10px 12px;
}

.ypj-prose th {
  background: var(--ypj-panel);
  color: var(--ypj-gold);
}

.ypj-callout {
  border: 1px solid var(--ypj-line-strong);
  background: linear-gradient(180deg, rgba(212, 175, 94, 0.08), transparent);
  padding: 18px 20px;
  border-radius: 16px;
  margin: 28px 0;
}

.ypj-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.ypj-form label {
  display: block;
  font-size: 13px;
  color: var(--ypj-muted);
  margin-bottom: 6px;
}

.ypj-form input,
.ypj-form textarea,
.ypj-form select,
.ypj-industrial .woocommerce input.input-text,
.ypj-industrial .woocommerce textarea,
.ypj-industrial .woocommerce select,
.ypj-industrial .comment-form input,
.ypj-industrial .comment-form textarea {
  width: 100%;
  background: var(--ypj-panel) !important;
  border: 1px solid var(--ypj-line) !important;
  color: var(--ypj-text) !important;
  border-radius: 12px !important;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
}

.ypj-form textarea { min-height: 140px; resize: vertical; }

.ypj-alert {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--ypj-line-strong);
  background: rgba(212, 175, 94, 0.1);
  margin-bottom: 18px;
}

.ypj-alert-err {
  border-color: #c45c4a;
  background: rgba(196, 92, 74, 0.12);
}

.ypj-contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

.ypj-phone-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--ypj-line);
  text-decoration: none;
  color: inherit;
}

.ypj-phone-card b { color: var(--ypj-gold-2); font-size: 18px; }

.ypj-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ypj-gallery button {
  position: relative;
  border: 1px solid var(--ypj-line);
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: #0a0c10;
  min-height: 220px;
}

.ypj-gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  filter: saturate(0.7);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.ypj-gallery button:hover img {
  transform: scale(1.06);
  filter: saturate(1);
}

.ypj-gallery span {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(10, 13, 18, 0.82);
  color: var(--ypj-gold);
  border: 1px solid var(--ypj-line);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.ypj-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(5, 6, 8, 0.92);
  display: grid;
  place-items: center;
  padding: 24px;
}

.ypj-lightbox[hidden] { display: none; }

.ypj-lightbox video {
  width: min(920px, 92vw);
  max-height: 86vh;
  border-radius: 16px;
  background: #000;
}

.ypj-lightbox-close {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ypj-line);
  background: transparent;
  color: var(--ypj-text);
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
}

.ypj-product-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.ypj-product-hero img,
.ypj-product-hero video {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--ypj-line);
}

.ypj-product-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.ypj-industrial .site-content,
.ypj-industrial .wd-content-area,
.ypj-industrial .main-page-wrapper,
.ypj-industrial .woodmart-main-page-wrapper {
  background: transparent !important;
  max-width: none !important;
}

.ypj-industrial #wd-header-cart,
.ypj-industrial .wd-header,
.ypj-industrial .whb-header,
.ypj-industrial .wd-page-title,
.ypj-industrial .wd-nav-product-cat,
.ypj-industrial .woocommerce-notices-wrapper { display: none !important; }

@media (max-width: 1080px) {
  .ypj-grid,
  .ypj-products,
  .ypj-shop-grid,
  .ypj-stats,
  .ypj-split,
  .ypj-footer-grid,
  .ypj-process,
  .ypj-gallery,
  .ypj-contact-grid,
  .ypj-product-hero {
    grid-template-columns: 1fr 1fr;
  }
  .ypj-posts {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .ypj-posts {
    grid-template-columns: repeat(2, 1fr);
  }
  .ypj-nav-wrap {
    position: fixed;
    inset: 0;
  .ypj-nav-wrap {
    background: var(--ypj-header-bg);
  }
    display: none;
    place-items: center;
    z-index: 60;
  }
  .ypj-nav-wrap.is-open { display: grid; }
  .ypj-nav {
    flex-direction: column;
    align-items: center;
    gap: 22px;
    font-size: 22px;
  }
  .ypj-nav-quote { display: inline-flex; margin-top: 12px; }
  .ypj-burger { display: block; }
  .ypj-actions .ypj-btn { display: none; }
  .ypj-actions .ypj-btn-gold { display: none; }
  .ypj-theme-toggle { display: grid; }
  .ypj-search { display: none; }
}

@media (max-width: 640px) {
  .ypj-grid,
  .ypj-products,
  .ypj-shop-grid,
  .ypj-posts,
  .ypj-stats,
  .ypj-split,
  .ypj-footer-grid,
  .ypj-process,
  .ypj-gallery,
  .ypj-contact-grid,
  .ypj-product-hero,
  .ypj-cta-inner,
  .ypj-section-head,
  .ypj-topbar-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }
  .ypj-hero { min-height: 78vh; }
  .ypj-stat { border-left: 0; border-bottom: 1px solid var(--ypj-line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ypj-card:hover,
  .ypj-product:hover,
  .ypj-btn:hover { transform: none; }
}

.ypj-shop-hero {
  margin: 16px var(--ypj-gutter) 0;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 220px;
}
.ypj-shop-hero img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.ypj-shop-hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 32px;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
  color: #fff;
}
.ypj-shop-hero-copy h1 {
  margin: 4px 0 8px;
  font-size: clamp(36px, 6vw, 64px);
  color: #fff;
}
.ypj-shop-hero-copy p {
  margin: 0;
  max-width: 420px;
  color: rgba(255,255,255,0.88);
}
.ypj-shop-hero .ypj-kicker { color: #c8f0d4; }

.ypj-shop-cats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px var(--ypj-gutter) 4px;
}
.ypj-shop-cats a {
  border: 1px solid var(--ypj-line);
  background: var(--ypj-panel);
  color: var(--ypj-text) !important;
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
}
.ypj-shop-cats a:hover {
  border-color: var(--ypj-gold);
  color: var(--ypj-gold) !important;
}

.ypj-rail {
  margin: 12px 0 8px;
  padding-bottom: 12px;
}
.ypj-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px var(--ypj-gutter);
}
.ypj-rail-head h2 {
  margin: 0;
  font-size: 22px;
}
.ypj-rail-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ypj-rail-all {
  color: var(--ypj-muted) !important;
  text-decoration: none;
  font-size: 13px;
}
.ypj-rail-nav {
  display: flex;
  gap: 6px;
}
.ypj-rail-nav button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--ypj-line);
  background: var(--ypj-panel);
  color: var(--ypj-text);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.ypj-rail-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px var(--ypj-gutter) 20px;
  scrollbar-width: none;
}
.ypj-rail-track::-webkit-scrollbar { display: none; }
.ypj-rail .ypj-product {
  flex: 0 0 210px;
  scroll-snap-align: start;
  min-width: 210px;
}
.ypj-rail .ypj-product img {
  height: 168px;
  background: #eee;
}

.ypj-wa {
  position: fixed;
  left: 16px;
  bottom: 88px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 70;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  text-decoration: none;
}
.ypj-dock {
  display: none;
  position: fixed;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 65;
  background: #fff;
  border-top: 1px solid var(--ypj-line);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  justify-content: space-around;
  align-items: center;
  gap: 4px;
}
.ypj-dock a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #222 !important;
  text-decoration: none;
}
.ypj-dock-call {
  flex-direction: row !important;
  gap: 8px !important;
}
.ypj-dock-call-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1d68cd;
  display: grid;
  place-items: center;
}
html[data-theme="dark"] .ypj-dock {
  background: #141010;
}
html[data-theme="dark"] .ypj-dock a { color: #f4ebe4 !important; }

@media (max-width: 1280px) {
  .ypj-search { display: none; }
}

@media (max-width: 860px) {
  .ypj-dock { display: flex; }
  .ypj-industrial body,
  body.ypj-industrial { padding-bottom: 76px; }
  .ypj-wa { bottom: 92px; }
  .ypj-shop-hero img { height: 200px; }
  .ypj-rail .ypj-product { flex-basis: 170px; min-width: 170px; }
}

/* ==========================================================================
   Category Dropdown & Mega Menu
   ========================================================================== */
.ypj-nav-has-dropdown {
  position: relative;
}

.ypj-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.ypj-icon-chevron {
  transition: transform 0.2s ease;
}

.ypj-nav-has-dropdown:hover .ypj-icon-chevron,
.ypj-nav-has-dropdown.is-open .ypj-icon-chevron {
  transform: rotate(180deg);
}

.ypj-mega-menu {
  position: absolute;
  top: 100%;
  right: -20px;
  width: min(780px, 92vw);
  background: var(--ypj-panel);
  border: 1px solid var(--ypj-line);
  border-radius: var(--ypj-radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  padding: 20px 24px 16px;
  margin-top: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 100;
  backdrop-filter: blur(16px);
}

.ypj-mega-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  right: 0;
  left: 0;
  height: 14px;
}

.ypj-nav-has-dropdown:hover .ypj-mega-menu,
.ypj-nav-has-dropdown:focus-within .ypj-mega-menu,
.ypj-nav-has-dropdown.is-open .ypj-mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ypj-mega-menu-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ypj-mega-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ypj-mega-parent {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ypj-text) !important;
  text-decoration: none;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ypj-line);
}

.ypj-mega-parent:hover {
  color: var(--ypj-gold-2) !important;
}

.ypj-mega-icon {
  font-size: 16px;
  line-height: 1;
}

.ypj-mega-sub {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ypj-mega-sub li a {
  font-size: 13px;
  color: var(--ypj-muted) !important;
  text-decoration: none;
  display: block;
  padding: 3px 0;
  transition: color 0.15s ease, transform 0.15s ease;
}

.ypj-mega-sub li a:hover {
  color: var(--ypj-gold) !important;
  transform: translateX(-3px);
}

.ypj-mega-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--ypj-line);
  text-align: left;
}

.ypj-mega-footer a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ypj-gold-2) !important;
  text-decoration: none;
}

/* ==========================================================================
   Header User Account & Cart Buttons
   ========================================================================== */
.ypj-action-icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ypj-line);
  background: var(--ypj-panel);
  color: var(--ypj-text) !important;
  border-radius: 12px;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ypj-action-icon-btn svg {
  width: 20px;
  height: 20px;
}

.ypj-action-icon-btn:hover {
  transform: translateY(-1px);
  border-color: var(--ypj-gold);
}

.ypj-cart-count {
  position: absolute;
  top: -4px;
  left: -4px;
  background: #e53935;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  min-width: 19px;
  height: 19px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(229, 57, 53, 0.4);
}

.ypj-account-btn {
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  gap: 6px;
  background: var(--ypj-panel);
  border: 1px solid var(--ypj-line);
}

.ypj-account-btn:hover {
  border-color: var(--ypj-gold);
}

.ypj-user-menu-wrap {
  position: relative;
}

.ypj-user-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: var(--ypj-panel);
  border: 1px solid var(--ypj-line);
  border-radius: var(--ypj-radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  margin-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 90;
}

.ypj-user-menu-wrap:hover .ypj-user-dropdown,
.ypj-user-menu-wrap:focus-within .ypj-user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ypj-user-dropdown a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--ypj-text) !important;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.ypj-user-dropdown a:hover {
  background: var(--ypj-panel-2);
  color: var(--ypj-gold-2) !important;
}

.ypj-user-dropdown .ypj-logout-link {
  border-top: 1px solid var(--ypj-line);
  color: #e53935 !important;
}

/* ==========================================================================
   WooCommerce Single Product & Cart Form Styles
   ========================================================================== */
.ypj-product-buy-wrap {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ypj-product-buy-wrap form.cart {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
}

.ypj-product-buy-wrap .quantity {
  display: inline-flex;
  align-items: center;
}

.ypj-product-buy-wrap .quantity input.qty {
  width: 68px;
  height: 44px;
  text-align: center;
  border: 1px solid var(--ypj-line-strong);
  background: var(--ypj-panel);
  color: var(--ypj-text);
  border-radius: var(--ypj-radius);
  font-size: 15px;
  font-weight: 700;
  outline: none;
  font-family: inherit;
}

.ypj-product-buy-wrap button.single_add_to_cart_button,
.ypj-product-buy-wrap .single_add_to_cart_button {
  background: linear-gradient(180deg, #ecd28a, #b8903b);
  color: #1a1408 !important;
  border: 0;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(184, 144, 59, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

html[data-theme="light"] .ypj-product-buy-wrap button.single_add_to_cart_button {
  background: #1f6b3a;
  color: #ffffff !important;
}

.ypj-product-buy-wrap button.single_add_to_cart_button:hover {
  transform: translateY(-2px);
}

.ypj-product-alt-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ypj-btn-outline {
  border: 1px solid var(--ypj-line);
  background: transparent;
  color: var(--ypj-text) !important;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
}

.ypj-btn-outline:hover {
  border-color: var(--ypj-gold);
}

/* ==========================================================================
   WooCommerce Cart, Checkout, My Account Modern Layouts
   ========================================================================== */
.woocommerce-cart .ypj-page,
.woocommerce-checkout .ypj-page,
.woocommerce-account .ypj-page {
  background: var(--ypj-panel);
  border: 1px solid var(--ypj-line);
  border-radius: var(--ypj-radius);
  padding: clamp(20px, 4vw, 40px);
  margin-top: 24px;
  margin-bottom: 40px;
  box-shadow: var(--ypj-shadow);
}

.woocommerce table.shop_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  border: 1px solid var(--ypj-line);
  border-radius: var(--ypj-radius);
  overflow: hidden;
}

.woocommerce table.shop_table th {
  background: var(--ypj-panel-2);
  padding: 12px 16px;
  text-align: right;
  border-bottom: 1px solid var(--ypj-line);
  font-size: 14px;
}

.woocommerce table.shop_table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--ypj-line);
  font-size: 14px;
  vertical-align: middle;
}

.woocommerce .cart-collaterals,
.woocommerce-checkout #order_review {
  background: var(--ypj-panel-2);
  border: 1px solid var(--ypj-line);
  border-radius: var(--ypj-radius);
  padding: 20px;
  margin-top: 20px;
}

.woocommerce .button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: #1f6b3a;
  color: #fff !important;
  border: 0;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

html[data-theme="dark"] .woocommerce .button,
html[data-theme="dark"] .woocommerce input.button {
  background: linear-gradient(180deg, #ecd28a, #b8903b);
  color: #1a1408 !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--ypj-line);
  background: var(--ypj-bg);
  color: var(--ypj-text);
  border-radius: 8px;
  font-family: inherit;
  outline: none;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  padding: 14px 20px;
  border-radius: var(--ypj-radius);
  margin-bottom: 20px;
  list-style: none;
  font-size: 14px;
}

.woocommerce-message {
  background: rgba(31, 107, 56, 0.12);
  border: 1px solid rgba(31, 107, 56, 0.4);
  color: var(--ypj-text);
}

.woocommerce-error {
  background: rgba(229, 57, 53, 0.12);
  border: 1px solid rgba(229, 57, 53, 0.4);
  color: #e53935;
}

/* Mobile Adjustments for Mega Menu */
@media (max-width: 1024px) {
  .ypj-nav-has-dropdown .ypj-mega-menu {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border: 0;
    padding: 10px 14px;
    margin-top: 6px;
    background: var(--ypj-panel-2);
  }

  .ypj-nav-has-dropdown.is-open .ypj-mega-menu {
    display: block;
  }

  .ypj-mega-menu-inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ypj-header-quote-btn {
    display: none;
  }
}

/* ==========================================================================
   Single Product 3-Column Layout (Matching Specification Image)
   ========================================================================== */

.ypj-single-product-page {
  width: min(1200px, 94vw);
  margin: 36px auto 70px;
}

/* Product Main Title with Red Accent Line */
.ypj-product-title-bar {
  margin-bottom: 28px;
  position: relative;
}

.ypj-product-main-title {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  color: var(--ypj-text);
  margin: 0 0 10px;
  text-align: right;
  letter-spacing: -0.02em;
}

.ypj-title-red-line {
  width: 100%;
  height: 3px;
  background: #d32f2f;
  border-radius: 2px;
}

/* 3-Column Grid Layout: Right (Media), Middle (Specs), Left (Buy Box) */
.ypj-product-layout {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 0.95fr;
  gap: 28px;
  align-items: start;
}

/* Column 1 (Right): Product Image & Gallery */
.ypj-product-col-media {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ypj-product-main-image-wrap {
  background: var(--ypj-panel);
  border: 1px solid var(--ypj-line);
  border-radius: var(--ypj-radius);
  overflow: hidden;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.ypj-product-main-image-wrap img {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  background: transparent;
  transition: transform 0.3s ease;
}

.ypj-product-main-image-wrap:hover img {
  transform: scale(1.04);
}

.ypj-product-gallery-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ypj-thumb-btn {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  border: 1px solid var(--ypj-line);
  background: var(--ypj-panel);
  padding: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ypj-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.ypj-thumb-btn.is-active,
.ypj-thumb-btn:hover {
  border-color: #d32f2f;
  transform: translateY(-2px);
}

/* Column 2 (Middle): Technical Specifications Table */
.ypj-product-col-specs {
  background: var(--ypj-panel);
  border: 1px solid var(--ypj-line);
  border-radius: var(--ypj-radius);
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.ypj-specs-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ypj-spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--ypj-line);
  font-size: 14.5px;
}

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

.ypj-spec-label {
  color: var(--ypj-muted);
  font-weight: 600;
  min-width: 110px;
}

.ypj-spec-value {
  color: var(--ypj-text);
  font-weight: 700;
  text-align: left;
  direction: ltr;
}

/* Column 3 (Left): Buy Box */
.ypj-product-col-buy {
  background: var(--ypj-panel);
  border: 1px solid var(--ypj-line);
  border-radius: var(--ypj-radius);
  padding: 26px 22px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.ypj-buy-box {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ypj-price-block {
  text-align: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ypj-line);
}

.ypj-price-red {
  color: #d32f2f;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ypj-price-tax-note {
  font-size: 13px;
  color: var(--ypj-muted);
  margin-top: 4px;
}

/* Stepper Quantity Component */
.ypj-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ypj-line);
  border-radius: 8px;
  background: var(--ypj-panel-2);
  overflow: hidden;
}

.ypj-stepper-large {
  width: 100%;
  height: 48px;
  border-radius: 10px;
}

.ypj-stepper-btn {
  width: 44px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--ypj-text);
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
  user-select: none;
}

.ypj-stepper-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.ypj-stepper-input {
  flex: 1;
  min-width: 60px;
  text-align: center;
  border: 0 !important;
  background: transparent !important;
  font-size: 16px;
  font-weight: 700;
  color: var(--ypj-text) !important;
  padding: 0 4px !important;
  appearance: textfield;
  -moz-appearance: textfield;
}

.ypj-stepper-input::-webkit-outer-spin-button,
.ypj-stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Green Add to Cart Button */
.ypj-btn-green-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  background: #28a745;
  color: #ffffff !important;
  border: 0;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.28);
}

.ypj-btn-green-cart:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(40, 167, 69, 0.38);
}

.ypj-btn-green-cart svg {
  stroke: #ffffff;
}

.ypj-buy-box-extra-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--ypj-line);
}

.ypj-btn-full {
  width: 100%;
  text-align: center;
  justify-content: center;
  font-size: 13px;
  padding: 10px 14px;
}

.ypj-phone-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ypj-muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--ypj-panel-2);
}

.ypj-phone-link b {
  color: var(--ypj-gold);
  font-size: 14px;
  direction: ltr;
}

/* Details Section (Bottom) */
.ypj-product-details-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--ypj-line);
}

.ypj-product-details-head h2 {
  font-size: 20px;
  margin: 0 0 18px;
  color: var(--ypj-text);
}

.ypj-product-video-wrap {
  margin-bottom: 24px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--ypj-line);
  max-width: 720px;
}

.ypj-product-video-wrap video {
  width: 100%;
  display: block;
}

/* ==========================================================================
   Product Slider Card Enhancements (Stepper + Buy Button)
   ========================================================================== */

.ypj-product {
  display: flex;
  flex-direction: column;
  background: var(--ypj-panel);
  border: 1px solid var(--ypj-line);
  border-radius: var(--ypj-radius);
  overflow: hidden;
  box-shadow: var(--ypj-shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.ypj-product:hover {
  transform: translateY(-4px);
  border-color: var(--ypj-line-strong);
}

.ypj-product-media-link {
  display: block;
  height: 200px;
  overflow: hidden;
  background: var(--ypj-panel-2);
}

.ypj-product-media-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.ypj-product:hover .ypj-product-media-link img {
  transform: scale(1.05);
}

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

.ypj-product-title-link {
  text-decoration: none;
  color: inherit;
}

.ypj-product h3 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ypj-text);
  min-height: 42px;
}

.ypj-product-price-row {
  margin-bottom: 12px;
}

.ypj-product-price-row .ypj-price {
  font-size: 16px;
  font-weight: 700;
  color: #1f6b3a;
}

.ypj-card-buy-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.ypj-card-buy-bar .ypj-stepper {
  flex: 1;
  height: 38px;
}

.ypj-card-buy-bar .ypj-stepper-btn {
  width: 32px;
  font-size: 16px;
}

.ypj-card-buy-bar .ypj-stepper-input {
  font-size: 13px;
  font-weight: 600;
}

.ypj-btn-card-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  height: 38px;
  background: #28a745;
  color: #fff !important;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.ypj-btn-card-buy:hover {
  background: #218838;
  transform: translateY(-1px);
}

.ypj-btn-card-buy.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.ypj-btn-card-buy.is-added {
  background: #1f6b3a;
}

.ypj-product-more {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--ypj-muted);
  text-decoration: none;
  margin-top: auto;
  padding-top: 6px;
}

.ypj-product-more:hover {
  color: var(--ypj-gold);
}

/* Toast notification for AJAX cart */
.ypj-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #111111;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  pointer-events: none;
}

.ypj-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive adjustments for 3-column product layout */
@media (max-width: 980px) {
  .ypj-product-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

/* ==========================================================================
   Typography & Persian Numerals for Stepper & Buy Buttons
   ========================================================================== */

.ypj-stepper,
.ypj-stepper-btn,
.ypj-stepper-input,
.ypj-btn-green-cart,
.ypj-btn-card-buy,
.ypj-price-red,
.ypj-product-price-row {
  font-family: "Vazir", Tahoma, sans-serif !important;
}

.ypj-stepper-input {
  font-family: "Vazir", Tahoma, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--ypj-text) !important;
  direction: ltr !important;
  text-align: center !important;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Footer Copyright, CEO and Designer Credits
   ========================================================================== */

.ypj-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--ypj-line);
  color: var(--ypj-steel);
  font-size: 12.5px;
}

.ypj-copy-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.ypj-copy-ceo {
  color: var(--ypj-text);
  font-weight: 600;
  font-size: 12.5px;
}

.ypj-copy-left {
  display: flex;
  align-items: center;
  text-align: left;
}

.ypj-author-link {
  color: var(--ypj-gold) !important;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ypj-author-link:hover {
  color: var(--ypj-gold-2) !important;
  text-decoration: underline;
}

/* ==========================================================================
/* ==========================================================================
   Digits Login Modal & Page Custom Industrial Theme
   ========================================================================== */

.dig-container,
.dig-box,
.digits_login,
.digits_modal,
.dig_l_p_content,
.dig-ma-box,
.digits_form,
.dig_pg_box,
.dig_l_p_tabs,
.digits-form_page,
.digits-form_wrapper,
.dig_popmessage,
.dig_popmessage * {
  font-family: "Vazir", Tahoma, sans-serif !important;
}

.dig-box,
.dig_pg_box,
.digits-form_wrapper {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.03) !important;
  padding: 44px 38px !important;
  color: #1e293b !important;
}

.digits-form_container,
.digits-form_container.digits,
.digits-form_page .digits-form_container {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  max-width: 440px !important;
  width: 100% !important;
}

/* Remember Me Checkbox */
.digits_form-init_step_data {
  display: block !important;
  margin-top: 14px !important;
}

.digits-form_rememberme,
.digits-form_input_row.digits-form_rememberme,
.digits2_box .digits-form_input_row.digits-form_rememberme {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  height: auto !important;
  min-height: unset !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.digits-form_rememberme .dig_input_wrapper {
  display: inline-flex !important;
  align-items: center !important;
  flex-direction: row-reverse !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  cursor: pointer !important;
}

.digits-form_rememberme .dig_input_wrapper::before,
.digits-form_rememberme .dig_input_wrapper::after {
  display: none !important;
  content: none !important;
}

.digits-form_rememberme input[type="checkbox"],
.digits_login_remember_me {
  display: inline-block !important;
  appearance: auto !important;
  -webkit-appearance: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  width: 18px !important;
  height: 18px !important;
  accent-color: #16a34a !important;
  cursor: pointer !important;
  position: static !important;
  margin: 0 !important;
}

.digits-form_rememberme .dig_input_wrapper div {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #475569 !important;
  user-select: none !important;
}

/* Hide country code */
.digits-form_countrycode,
.countrycodecontainer,
.digits_countrycodecontainer,
.untdovr_flag_container_flag,
.digits-field-country_flag {
  display: none !important;
  width: 0 !important;
  max-width: 0 !important;
  visibility: hidden !important;
}

.dig-box input[type="text"],
.dig-box input[type="password"],
.dig-box input[type="tel"],
.dig-box input[type="email"],
.digits_login_field,
.digits-form_input input,
.mobile_field {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 14px !important;
  color: #1e293b !important;
  font-family: "Vazir", Tahoma, sans-serif !important;
  padding: 12px 16px !important;
  font-size: 16px !important;
  transition: all 0.2s ease !important;
}

.dig-box input:focus,
.digits_login_field:focus,
.digits-form_input input:focus,
.mobile_field:focus {
  border-color: #22c55e !important;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15) !important;
  outline: none !important;
}

/* Digits Action Button */
.dig-box button,
.dig-box input[type="submit"],
.digits-form_button,
.dig_wh_log_btn,
.digits_sb_submit,
.dig_pg_btn,
.digits-form_submit,
.digits-form_submit-btn {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 60%, #15803d 100%) !important;
  background-color: #16a34a !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 14px !important;
  height: 52px !important;
  padding: 0 24px !important;
  font-family: "Vazir", Tahoma, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.35) !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.dig-box button:hover,
.dig-box input[type="submit"]:hover,
.digits-form_button:hover,
.dig_pg_btn:hover,
.digits-form_submit:hover {
  background: linear-gradient(180deg, #2dd4bf 0%, #22c55e 40%, #15803d 100%) !important;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.45) !important;
  transform: translateY(-1px) !important;
}

/* Remove Digits Footer */
.digits_site_footer_box,
.protected_by_digits,
.digmsg-pow,
.dig_powrd,
.digits-site-footer {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.dig_login_cancel {
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  color: #475569 !important;
}

.dig_overlay_text,
.dig_overlay_pwrd {
  display: none !important;
}

/* My Account Login Box */
.ypj-account-login-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px var(--ypj-gutter) 80px;
}

.ypj-login-card {
  width: min(520px, 94vw);
  background: var(--ypj-panel);
  border: 1px solid var(--ypj-line);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.ypj-login-header {
  text-align: center;
  margin-bottom: 28px;
}

.ypj-login-header h2 {
  font-size: 22px;
  margin: 6px 0 10px;
  color: var(--ypj-text);
}

.ypj-login-header .ypj-lead {
  font-size: 14px;
  margin: 0 auto;
}

