@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
  --ypj-font: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Tahoma, sans-serif;
  --ypj-bg: #f8fafc;
  --ypj-card-bg: #ffffff;
  --ypj-text: #0f172a;
  --ypj-text-muted: #64748b;
  --ypj-border: #e2e8f0;
  --ypj-border-strong: #cbd5e1;
  --ypj-primary: #16a34a;
  --ypj-primary-hover: #15803d;
  --ypj-gold: #c48b28;
  --ypj-gold-hover: #a1701b;
  --ypj-dark: #1e293b;
  --ypj-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --ypj-shadow: 0 4px 14px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.03);
  --ypj-shadow-lg: 0 16px 36px rgba(0,0,0,0.09), 0 4px 12px rgba(0,0,0,0.04);
  --ypj-radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--ypj-font);
  font-feature-settings: "ss01" 1;
  -webkit-font-feature-settings: "ss01" 1;
  -moz-font-feature-settings: "ss01" 1;
  font-variant-numeric: tabular-nums;
  background-color: var(--ypj-bg);
  background-image: url('/images/watermark.svg');
  background-repeat: repeat;
  background-size: 320px 320px;
  color: var(--ypj-text);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

button, input, select, textarea, table, th, td, p, span, h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  font-feature-settings: "ss01" 1;
  -webkit-font-feature-settings: "ss01" 1;
  -moz-font-feature-settings: "ss01" 1;
}

/* Explicit exemption for pure English technical codes, passwords and slugs */
input[type="password"],
input[type="email"],
input[name="slug"],
#cat-slug,
.en-num,
.ltr-code {
  font-feature-settings: "ss01" 0 !important;
  -webkit-font-feature-settings: "ss01" 0 !important;
  -moz-font-feature-settings: "ss01" 0 !important;
}

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

/* ==========================================================================
   TOPBAR
   ========================================================================== */
.ypj-topbar {
  background: #1e293b;
  color: #cbd5e1;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ypj-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.ypj-topbar-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ypj-topbar-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ypj-badge-gold {
  background: #fef3c7;
  color: #78350f !important;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid #fcd34d;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ypj-topbar .ypj-badge-gold {
  background: rgba(245, 158, 11, 0.2);
  color: #fde68a !important;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.ypj-phone-link {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-block;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease, text-decoration 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

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

.ypj-footer .ypj-phone-link {
  color: #f1f5f9;
}

/* ==========================================================================
   NAVBAR & HEADER
   ========================================================================== */
.ypj-header {
  position: sticky;
  top: 0;
  z-index: 9990;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ypj-border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.ypj-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
  white-space: nowrap;
}

.ypj-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ypj-brand img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.ypj-brand-text h1 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  white-space: nowrap;
}

/* Nav Menu */
.ypj-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.ypj-nav-item {
  position: relative;
  white-space: nowrap;
}

.ypj-nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  padding: 6px 2px;
  cursor: pointer;
  white-space: nowrap;
}

.ypj-nav-link:hover,
.ypj-nav-link.is-active {
  color: var(--ypj-primary);
}

.ypj-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ypj-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--ypj-border);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

.ypj-auth-btn {
  background: #0f172a;
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Mega Dropdown */
.ypj-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 540px;
  background: #ffffff;
  border: 1px solid var(--ypj-border-strong);
  border-radius: 16px;
  box-shadow: var(--ypj-shadow-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1000;
}

.ypj-nav-item:hover .ypj-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.ypj-dropdown-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ypj-gold);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ypj-border);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ypj-dropdown-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ypj-dropdown-col a {
  font-size: 13.5px;
  color: #475569;
  padding: 4px 6px;
  border-radius: 6px;
  display: block;
}

.ypj-dropdown-col a:hover {
  background: #f1f5f9;
  color: var(--ypj-primary);
}

/* Header Actions */
.ypj-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ypj-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid var(--ypj-border);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s;
}

.ypj-cart-btn:hover {
  background: #e2e8f0;
  border-color: var(--ypj-border-strong);
}

.ypj-cart-badge {
  background: var(--ypj-primary);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 1px 7px;
  min-width: 20px;
  text-align: center;
}

.ypj-auth-btn {
  background: var(--ypj-dark);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ypj-auth-btn:hover {
  background: #0f172a;
}

.ypj-quote-btn {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ypj-quote-btn:hover {
  background: #15803d;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
  transform: translateY(-1px);
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.ypj-hero {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 64px 0 54px;
  overflow: hidden;
  border-bottom: 2px solid var(--ypj-gold);
}

.ypj-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.ypj-hero-copy h1,
.ypj-hero-copy h2 {
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 16px;
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.ypj-cat-icon {
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
  flex-shrink: 0;
}

.ypj-hero-copy p {
  font-size: 17px;
  color: #cbd5e1;
  line-height: 1.9;
  margin-bottom: 28px;
}

.ypj-hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.ypj-btn-lg {
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.ypj-btn-primary {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.35);
}

.ypj-btn-primary:hover {
  background: #15803d;
  transform: translateY(-2px);
}

.ypj-btn-outline {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: #ffffff;
}

.ypj-btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #ffffff;
}

.ypj-btn-outline-dark {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

.ypj-btn-outline-dark:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: var(--ypj-primary);
}

.ypj-hero-video-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  background: #000;
  aspect-ratio: 16 / 10;
  cursor: pointer;
}

.ypj-hero-video-card video,
.ypj-hero-video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ypj-hero-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.15);
  transition: opacity 0.25s ease, background 0.25s ease;
  pointer-events: none;
  z-index: 2;
}

.ypj-hero-video-card:hover .ypj-hero-video-overlay {
  background: rgba(0,0,0,0.3);
}

.ypj-hero-play-toggle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid var(--ypj-gold);
  color: #ffffff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, opacity 0.25s ease;
  pointer-events: auto;
  cursor: pointer;
}

.ypj-hero-video-card.is-playing .ypj-hero-play-toggle {
  opacity: 0;
  transform: scale(0.85);
}

.ypj-hero-video-card.is-playing:hover .ypj-hero-play-toggle {
  opacity: 0.95;
  transform: scale(1);
}

.ypj-hero-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ypj-gold);
  border: 1px solid rgba(217, 119, 6, 0.4);
}

/* ==========================================================================
   STATS BAR
   ========================================================================== */
.ypj-stats-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--ypj-border);
  padding: 24px 0;
  box-shadow: var(--ypj-shadow-sm);
}

.ypj-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.ypj-stat-item b {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
}

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

/* ==========================================================================
   SECTION HEADINGS
   ========================================================================== */
.ypj-section {
  padding: 56px 0;
}

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

.ypj-section-head h3 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  position: relative;
  padding-right: 14px;
}

.ypj-section-head h3::before {
  content: '';
  position: absolute;
  right: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--ypj-primary);
  border-radius: 2px;
}

.ypj-section-head p {
  color: var(--ypj-text-muted);
  font-size: 14.5px;
  margin-top: 4px;
}

.ypj-section-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--ypj-gold);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ypj-section-link:hover {
  color: var(--ypj-gold-hover);
  transform: translateX(-4px);
}

/* ==========================================================================
   PRODUCT CARDS & GRID
   ========================================================================== */
.ypj-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ypj-product-card {
  background: var(--ypj-card-bg);
  border: 1px solid var(--ypj-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--ypj-shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

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

.ypj-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  background: #f1f5f9;
  overflow: hidden;
}

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

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

.ypj-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(6px);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

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

.ypj-card-body h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}

.ypj-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.ypj-tag {
  background: #f8fafc;
  border: 1px solid var(--ypj-border);
  color: #475569;
  font-size: 11.5px;
  padding: 2px 7px;
  border-radius: 6px;
}

.ypj-card-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.ypj-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--ypj-primary);
}

.ypj-min-order-note {
  font-size: 11.5px;
  color: var(--ypj-text-muted);
}

/* Stepper Component */
.ypj-stepper-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.ypj-stepper {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid var(--ypj-border-strong);
  border-radius: 10px;
  overflow: hidden;
  height: 38px;
}

.ypj-stepper-btn {
  width: 32px;
  height: 100%;
  background: transparent;
  border: none;
  font-size: 16px;
  font-weight: bold;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.ypj-stepper-btn:hover {
  background: #e2e8f0;
  color: var(--ypj-primary);
}

.ypj-stepper-input {
  width: 65px;
  height: 100%;
  border: none;
  background: transparent;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
}

.ypj-stepper-input:focus {
  outline: none;
}

.ypj-btn-add-cart {
  flex: 1;
  height: 40px;
  background: var(--ypj-primary);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ypj-btn-add-cart:active {
  transform: scale(0.98);
}

.ypj-btn-add-cart:hover {
  background: var(--ypj-primary-hover);
}

/* ==========================================================================
   BLOG CARDS (COMPACT 4-COLUMN)
   ========================================================================== */
.ypj-posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.ypj-post-card {
  background: var(--ypj-card-bg);
  border: 1px solid var(--ypj-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: all 0.2s ease;
}

.ypj-post-card:hover {
  border-color: var(--ypj-border-strong);
  transform: translateY(-3px);
  box-shadow: var(--ypj-shadow);
}

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

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

.ypj-post-card: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-date {
  color: var(--ypj-gold);
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}

.ypj-post-body h4 {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.5;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}

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

/* ==========================================================================
   PRODUCT DETAILS PAGE
   ========================================================================== */
.ypj-product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: #ffffff;
  border: 1px solid var(--ypj-border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--ypj-shadow);
  margin-top: 24px;
}

/* ==========================================================================
   PRODUCT GALLERY, THUMBNAILS & LIGHTBOX MODAL
   ========================================================================== */
.ypj-gallery-wrap {
  position: relative;
  width: 100%;
}

.ypj-product-gallery {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--ypj-border);
  background: #ffffff;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ypj-shadow-sm);
  cursor: pointer;
  transition: all 0.25s ease;
}

.ypj-product-gallery:hover {
  border-color: var(--ypj-gold);
  box-shadow: var(--ypj-shadow);
}

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

.ypj-product-gallery:hover img {
  transform: scale(1.03);
}

.ypj-gallery-zoom-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #fbbf24;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  transition: all 0.2s;
  z-index: 5;
}

.ypj-product-gallery:hover .ypj-gallery-zoom-badge {
  background: rgba(22, 163, 74, 0.95);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.ypj-gallery-video-container {
  width: 100%;
  height: 100%;
  background: #0b132b;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ypj-gallery-video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
}

/* Thumbnails Strip Underneath Main Picture */
.ypj-gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.ypj-gallery-thumbs::-webkit-scrollbar {
  height: 5px;
}

.ypj-gallery-thumbs::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.ypj-thumb-item {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--ypj-border);
  background: #f8fafc;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.ypj-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ypj-thumb-item:hover {
  border-color: var(--ypj-gold);
  transform: translateY(-3px);
  box-shadow: var(--ypj-shadow-sm);
}

.ypj-thumb-item.is-active {
  border-color: var(--ypj-primary);
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.35);
}

.ypj-thumb-video-badge {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  gap: 2px;
  transition: background 0.2s;
}

.ypj-thumb-video-badge .play-icon {
  font-size: 20px;
  line-height: 1;
}

.ypj-thumb-item:hover .ypj-thumb-video-badge {
  background: rgba(22, 163, 74, 0.75);
}

/* ==========================================================================
   FULLSCREEN MEDIA LIGHTBOX MODAL WITH ZOOM (+/-) & VIDEO PLAYER
   ========================================================================== */
.ypj-media-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(10, 15, 29, 0.94);
  backdrop-filter: blur(12px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-in-out;
  direction: rtl;
}

.ypj-media-modal.is-open {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
}

.ypj-media-modal:not(.is-open) {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.ypj-media-modal:not(.is-open) * {
  pointer-events: none !important;
}

/* Modal Toolbar */
.ypj-modal-toolbar {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100010;
  pointer-events: auto;
}

.ypj-modal-title {
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 700;
  background: rgba(30, 41, 59, 0.7);
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ypj-modal-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ypj-modal-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.ypj-modal-btn:hover {
  background: var(--ypj-primary);
  border-color: var(--ypj-primary);
  color: #ffffff;
}

.ypj-modal-btn-close {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 18px;
  border-radius: 10px;
}

.ypj-modal-btn-close:hover {
  background: #dc2626 !important;
}

.ypj-zoom-indicator {
  color: #fbbf24;
  font-size: 13px;
  font-weight: 800;
  min-width: 48px;
  text-align: center;
}

/* Modal Media Stage / Viewport */
.ypj-modal-stage {
  position: relative;
  width: 100%;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ypj-modal-img-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: grab;
}

.ypj-modal-img-wrap.is-dragging {
  cursor: grabbing;
}

.ypj-modal-img {
  max-width: 88vw;
  max-height: 76vh;
  object-fit: contain;
  transition: transform 0.12s ease-out;
  transform-origin: center center;
  will-change: transform;
  border-radius: 8px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  user-select: none;
}

.ypj-modal-video {
  max-width: min(1000px, 92vw);
  max-height: 76vh;
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  background: #000000;
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Navigation Arrows Inside Modal */
.ypj-modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 100005;
}

.ypj-modal-nav-btn:hover {
  background: var(--ypj-primary);
  border-color: var(--ypj-primary);
  transform: translateY(-50%) scale(1.1);
}

.ypj-modal-nav-prev {
  right: 24px;
}

.ypj-modal-nav-next {
  left: 24px;
}

@media (max-width: 768px) {
  .ypj-modal-toolbar {
    flex-direction: column;
    gap: 10px;
    top: 10px;
    left: 10px;
    right: 10px;
  }
  .ypj-modal-title {
    font-size: 13px;
    padding: 4px 10px;
  }
  .ypj-modal-controls {
    padding: 4px 8px;
    gap: 6px;
    width: 100%;
    justify-content: space-between;
  }
  .ypj-modal-btn {
    padding: 5px 8px;
    font-size: 12px;
  }
  .ypj-modal-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  .ypj-modal-nav-prev { right: 8px; }
  .ypj-modal-nav-next { left: 8px; }
}

.ypj-product-info h1 {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.ypj-product-info .ypj-lead {
  font-size: 15px;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 24px;
}

.ypj-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 14px;
}

.ypj-specs-table th,
.ypj-specs-table td {
  padding: 10px 14px;
  border: 1px solid var(--ypj-border);
}

.ypj-specs-table th {
  background: #f8fafc;
  color: #475569;
  width: 35%;
  font-weight: 600;
}

.ypj-specs-table td {
  font-weight: 700;
  color: #0f172a;
}

/* ==========================================================================
   CART & QUOTE TABLES
   ========================================================================== */
.ypj-cart-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--ypj-shadow);
  border: 1px solid var(--ypj-border);
  margin-bottom: 24px;
}

.ypj-cart-table th,
.ypj-cart-table td {
  padding: 16px;
  border-bottom: 1px solid var(--ypj-border);
  text-align: right;
}

.ypj-cart-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 14px;
}

.ypj-cart-summary {
  background: #ffffff;
  border: 1px solid var(--ypj-border-strong);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--ypj-shadow);
}

/* ==========================================================================
   MODAL (FLOATING OTP AUTHENTICATION)
   ========================================================================== */
.ypj-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.ypj-modal-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

.ypj-modal {
  background: #ffffff;
  border-radius: 20px;
  width: min(420px, 94vw);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid #e2e8f0;
  padding: 32px 28px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ypj-modal-backdrop.is-active .ypj-modal {
  transform: translateY(0);
}

.ypj-modal-close {
  position: absolute;
  top: 16px;
  left: 16px;
  background: transparent;
  border: none;
  font-size: 20px;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.2s;
}

.ypj-modal-close:hover {
  color: #ef4444;
}

.ypj-modal h3 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  margin-bottom: 6px;
}

.ypj-modal p {
  font-size: 13.5px;
  color: #64748b;
  text-align: center;
  margin-bottom: 24px;
}

.ypj-input-group {
  margin-bottom: 16px;
}

.ypj-input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.ypj-input {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1.5px solid var(--ypj-border-strong);
  padding: 0 14px;
  font-size: 15px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ypj-input:focus {
  border-color: var(--ypj-primary);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
}

.ypj-phone-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.ypj-phone-prefix {
  position: absolute;
  left: 14px;
  color: #64748b;
  font-weight: 700;
  font-size: 14px;
  direction: ltr;
  pointer-events: none;
}

.ypj-phone-input {
  padding-left: 48px !important;
  direction: ltr !important;
  text-align: right !important;
}

.ypj-btn-full {
  width: 100%;
  height: 48px;
  background: var(--ypj-primary);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
  margin-top: 10px;
}

.ypj-btn-full:hover {
  background: var(--ypj-primary-hover);
}

/* Toast Notifications */
.ypj-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 22px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  animation: ypjFadeDown 0.3s ease;
}

.ypj-toast-success {
  border: 1.5px solid #86efac;
  background: #f0fdf4;
  color: #15803d;
}

.ypj-toast-error {
  border: 1.5px solid #fca5a5;
  background: #fef2f2;
  color: #dc2626;
}

@keyframes ypjFadeDown {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.ypj-footer {
  margin-top: auto;
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 0 20px;
  border-top: 3px solid var(--ypj-gold);
}

.ypj-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 36px;
}

.ypj-footer h5 {
  color: var(--ypj-gold);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}

.ypj-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
}

.ypj-footer a:hover {
  color: #ffffff;
}

.ypj-footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.ypj-footer-ceo {
  font-weight: 700;
  color: #f1f5f9;
  display: block;
  margin-top: 4px;
}

.ypj-designer-link {
  color: #38bdf8;
  font-weight: 700;
}

.ypj-designer-link:hover {
  text-decoration: underline;
  color: #7dd3fc;
}

/* ==========================================================================
   MOBILE DRAWER & HAMBURGER NAVIGATION
   ========================================================================== */
.ypj-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 38px;
  height: 38px;
  background: #ffffff;
  border: 1px solid var(--ypj-border);
  border-radius: 8px;
  padding: 8px 6px;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.2s;
  flex-shrink: 0;
}

.ypj-mobile-toggle span {
  width: 100%;
  height: 2.5px;
  background: #0f172a;
  border-radius: 2px;
  transition: all 0.25s;
}

.ypj-mobile-toggle.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.ypj-mobile-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.ypj-mobile-toggle.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.ypj-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.ypj-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.ypj-drawer {
  position: fixed;
  top: 0;
  right: -340px;
  width: min(340px, 86vw);
  height: 100vh;
  background: #ffffff;
  z-index: 9999;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ypj-drawer.is-open {
  right: 0;
}

.ypj-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ypj-border);
  background: #f8fafc;
}

.ypj-drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #0f172a;
  font-size: 15px;
}

.ypj-drawer-close {
  background: #ffffff;
  border: 1px solid var(--ypj-border);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 16px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.ypj-drawer-close:hover {
  color: #ef4444;
}

.ypj-drawer-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ypj-drawer-search {
  display: flex;
  gap: 6px;
}

.ypj-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ypj-drawer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  transition: all 0.15s;
}

.ypj-drawer-link:hover,
.ypj-drawer-link.is-active {
  background: #f1f5f9;
  color: var(--ypj-primary);
}

.ypj-drawer-accordion-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid var(--ypj-border);
  cursor: pointer;
  text-align: right;
  transition: background 0.15s;
}

.ypj-drawer-accordion-btn:hover {
  background: #f1f5f9;
}

.ypj-drawer-accordion-content {
  padding: 12px 14px;
  background: #ffffff;
  border-radius: 8px;
  margin-top: 6px;
  border: 1px solid #e2e8f0;
}

.ypj-drawer-cat-group {
  margin-bottom: 12px;
}

.ypj-drawer-cat-group b {
  display: block;
  font-size: 12px;
  color: var(--ypj-gold);
  margin-bottom: 6px;
}

.ypj-drawer-cat-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ypj-drawer-cat-group a {
  font-size: 13px;
  color: #475569;
  display: block;
  padding: 2px 0;
}

.ypj-drawer-cat-group a:hover {
  color: var(--ypj-primary);
}

.ypj-drawer-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #16a34a;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13.5px;
  padding: 12px;
  border-radius: 10px;
  margin-top: 12px;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
  text-decoration: none;
}

/* Responsive Grid Base Classes */
.ypj-cart-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 32px;
  align-items: flex-start;
}

.ypj-quote-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 36px;
  align-items: flex-start;
}

.ypj-contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 36px;
  align-items: flex-start;
}

.ypj-about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.ypj-post-detail-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.ypj-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Responsive Cart Components */
.ypj-cart-desktop-table {
  display: block;
}

.ypj-cart-mobile-list {
  display: none;
}

.ypj-cart-mobile-card {
  background: #ffffff;
  border: 1px solid var(--ypj-border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--ypj-shadow-sm);
  transition: all 0.2s;
}

.ypj-cart-checkout-box {
  background: #ffffff;
  border: 1px solid var(--ypj-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--ypj-shadow-sm);
}

/* Modals & Popups System */
.ypj-modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 99999 !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  overflow-y: auto !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.ypj-modal-backdrop.is-active,
.ypj-modal-backdrop[style*="display: flex"],
.ypj-modal-backdrop[style*="display:flex"],
.ypj-modal-backdrop[style*="display: block"],
.ypj-modal-backdrop[style*="display:block"] {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.ypj-modal {
  background: #ffffff !important;
  border: 1px solid var(--ypj-border) !important;
  border-radius: 20px !important;
  padding: 30px 26px !important;
  width: 100% !important;
  max-width: 620px;
  max-height: 88vh !important;
  overflow-y: auto !important;
  position: relative !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4) !important;
  animation: ypjModalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  direction: rtl !important;
  text-align: right !important;
}

@keyframes ypjModalPop {
  0% { opacity: 0; transform: scale(0.95) translateY(12px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.ypj-modal-close {
  position: absolute !important;
  top: 18px !important;
  left: 18px !important;
  background: #f1f5f9 !important;
  border: none !important;
  border-radius: 50% !important;
  width: 34px !important;
  height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  color: #64748b !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  z-index: 10 !important;
}

.ypj-modal-close:hover {
  background: #fee2e2 !important;
  color: #ef4444 !important;
  transform: rotate(90deg) !important;
}

/* Footer Designer Credit */
.ypj-designer-credits {
  font-size: 11px;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ypj-designer-link {
  color: #38bdf8;
  font-weight: 700;
  font-size: 11px;
}

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

.ypj-admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.ypj-shop-search-form {
  display: flex;
  gap: 8px;
}

.ypj-shop-search-form input {
  width: 260px;
}

.ypj-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ypj-border);
}

.ypj-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
  display: block;
}

.ypj-table-scroll-hint {
  display: none;
}

/* Viewport safety */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   DESKTOP INTEGRITY RULES (min-width: 993px)
   ========================================================================== */
@media (min-width: 993px) {
  .ypj-mobile-toggle,
  .ypj-drawer,
  .ypj-drawer-overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .ypj-nav {
    display: flex !important;
  }

  .ypj-top-cats,
  .ypj-grid-3 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
  }

  .ypj-cart-grid {
    display: grid !important;
    grid-template-columns: 2fr 1.2fr !important;
    gap: 32px !important;
  }

  .ypj-quote-grid {
    display: grid !important;
    grid-template-columns: 1.8fr 1.2fr !important;
    gap: 36px !important;
  }

  .ypj-contact-grid {
    display: grid !important;
    grid-template-columns: 1.2fr 1.8fr !important;
    gap: 36px !important;
  }

  .ypj-about-grid {
    display: grid !important;
    grid-template-columns: 1.2fr 0.8fr !important;
    gap: 40px !important;
  }

  .ypj-post-detail-grid {
    display: grid !important;
    grid-template-columns: 2.2fr 1fr !important;
    gap: 40px !important;
  }

  .ypj-form-row-2 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }

  .ypj-admin-kpi-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 14px !important;
  }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1100px) {
  .ypj-product-grid,
  .ypj-posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ypj-admin-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet & Mobile Breakpoint (max-width: 992px) */
@media (max-width: 992px) {
  .ypj-topbar-info span:not(:first-child) {
    display: none;
  }
  .ypj-topbar-inner {
    justify-content: center;
    text-align: center;
  }
  
  .ypj-nav {
    display: none !important;
  }
  .ypj-mobile-toggle {
    display: flex !important;
  }

  .ypj-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .ypj-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .ypj-hero-copy p {
    text-align: justify;
    text-align-last: center;
  }
  .ypj-hero-cta {
    justify-content: center;
  }
  .ypj-hero-video-card {
    max-width: 540px;
    width: 100%;
    margin: 0 auto;
  }

  .ypj-cart-grid,
  .ypj-quote-grid,
  .ypj-contact-grid,
  .ypj-about-grid,
  .ypj-post-detail-grid,
  .ypj-product-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .ypj-top-cats,
  .ypj-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .ypj-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

/* Standard Mobile Breakpoint (max-width: 768px) */
@media (max-width: 768px) {
  .container {
    width: 94vw;
    padding-inline: 4px;
  }
  
  .ypj-topbar {
    display: none;
  }

  .ypj-header-inner {
    height: 54px;
  }
  
  .ypj-brand-text h1 {
    font-size: 15px;
  }
  
  .ypj-brand img {
    height: 28px;
  }

  .ypj-btn-text {
    display: none;
  }

  .ypj-actions {
    gap: 8px;
    z-index: 9992;
  }

  .ypj-cart-btn,
  .ypj-auth-btn {
    padding: 7px 12px;
    min-height: 38px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
  }

  .ypj-mobile-toggle {
    width: 40px;
    height: 40px;
    padding: 9px 7px;
    border-radius: 9px;
    cursor: pointer;
    z-index: 9995;
  }

  .ypj-hero {
    padding: 34px 0 38px;
  }

  .ypj-hero-copy h1,
  .ypj-hero-copy h2 {
    font-size: clamp(21px, 6vw, 28px);
    line-height: 1.45;
    color: #ffffff !important;
  }

  .ypj-hero-copy p {
    font-size: 14.5px;
    line-height: 1.8;
  }

  .ypj-hero-cta {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .ypj-hero-cta .ypj-btn-lg {
    width: 100%;
    justify-content: center;
    padding: 12px 14px;
    font-size: 14.5px;
  }

  .ypj-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .ypj-stat-item {
    padding: 14px 8px;
  }

  .ypj-stat-item b {
    font-size: 18px;
  }

  .ypj-stat-item span {
    font-size: 11.5px;
  }

  .ypj-top-cats,
  .ypj-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .ypj-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .ypj-card-body {
    padding: 10px;
  }

  .ypj-card-body h4 {
    font-size: 13px;
    min-height: 36px;
  }

  .ypj-price {
    font-size: 13px;
  }

  .ypj-stepper-row {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .ypj-stepper {
    width: 100%;
    justify-content: space-between;
    height: 38px;
  }

  .ypj-stepper-btn {
    width: 38px;
    font-size: 18px;
  }

  .ypj-stepper-input {
    flex: 1;
    width: auto;
    font-size: 14px;
  }

  .ypj-btn-add-cart {
    width: 100%;
    height: 44px;
    font-size: 15px;
    font-weight: 800;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(22, 163, 74, 0.25);
  }

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

  .ypj-post-thumb {
    height: 180px;
  }

  .ypj-shop-search-form {
    width: 100%;
  }

  .ypj-shop-search-form input {
    width: 100% !important;
    flex: 1;
  }

  .ypj-filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
  }

  .ypj-filter-pills a {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .ypj-form-row-2 {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .ypj-cart-desktop-table {
    display: none !important;
  }

  .ypj-cart-mobile-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .ypj-cart-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .ypj-cart-checkout-box {
    padding: 18px 14px !important;
  }

  .ypj-admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .admin-tab-pane > div {
    padding: 16px 12px !important;
    border-radius: 14px !important;
  }

  .ypj-table-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 6px 12px;
    margin-bottom: 12px;
    text-align: center;
  }

  .ypj-table-wrapper {
    width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
    margin-bottom: 16px;
    border-radius: 10px;
    box-shadow: inset -4px 0 8px -4px rgba(0,0,0,0.1);
  }

  .ypj-table-wrapper::-webkit-scrollbar {
    height: 6px;
  }
  .ypj-table-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
  }
  .ypj-table-wrapper::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
  }
  .ypj-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--ypj-primary);
  }

  .ypj-cart-table {
    min-width: 740px !important;
    margin-bottom: 0 !important;
  }

  .ypj-cart-table th,
  .ypj-cart-table td {
    padding: 10px 12px !important;
    font-size: 12.5px !important;
    white-space: nowrap !important;
  }

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

  .ypj-footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  /* Admin & Profile Panes */
  .admin-tab-pane > div,
  .prof-tab-pane > div {
    padding: 16px !important;
  }
}

/* Small Smartphone (max-width: 420px) */
@media (max-width: 420px) {
  .ypj-product-grid {
    grid-template-columns: 1fr;
  }

  .ypj-admin-kpi-grid {
    grid-template-columns: 1fr !important;
  }

  .ypj-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ADMIN PRODUCT GALLERY UPLOADER & MEDIA MANAGER
   ========================================================================== */
.ypj-admin-media-box {
  background: #f8fafc;
  border: 1.5px dashed var(--ypj-border-strong);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  transition: border-color 0.2s, background 0.2s;
}

.ypj-admin-media-box.drag-over {
  border-color: var(--ypj-primary);
  background: #f0fdf4;
}

.ypj-admin-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.ypj-admin-media-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--ypj-border);
  aspect-ratio: 1 / 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ypj-shadow-sm);
}

.ypj-admin-media-item.is-primary {
  border-color: var(--ypj-primary);
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.4);
}

.ypj-admin-media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ypj-admin-media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.ypj-admin-media-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(15, 23, 42, 0.85);
  color: #fbbf24;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}

.ypj-admin-media-del {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  z-index: 3;
}

.ypj-admin-media-del:hover {
  background: #dc2626;
}

.ypj-admin-media-set-primary {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  font-size: 10px;
  border: none;
  padding: 3px;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  z-index: 2;
}

.ypj-admin-media-item.is-primary .ypj-admin-media-set-primary {
  background: var(--ypj-primary);
  color: #fff;
  font-weight: 700;
}

/* ==========================================================================
   SEO & BRAND UTILITIES
   ========================================================================== */
.ypj-brand-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  white-space: nowrap;
}

/* FAQ Accordion Styles for Google Rich Results */
.ypj-faq-section {
  background: #ffffff;
  border-top: 1px solid var(--ypj-border);
  border-bottom: 1px solid var(--ypj-border);
  padding: 56px 0;
}

.ypj-faq-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 960px;
  margin: 0 auto;
}

.ypj-faq-item {
  border: 1px solid var(--ypj-border);
  border-radius: 14px;
  background: #f8fafc;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ypj-faq-item:hover {
  border-color: var(--ypj-gold);
  box-shadow: var(--ypj-shadow-sm);
}

.ypj-faq-question {
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  background: transparent;
  width: 100%;
  border: none;
  text-align: right;
  font-family: inherit;
}

.ypj-faq-question::after {
  content: "▾";
  font-size: 18px;
  color: var(--ypj-gold);
  transition: transform 0.2s ease;
  margin-right: 12px;
}

.ypj-faq-item.is-open .ypj-faq-question::after {
  transform: rotate(180deg);
}

.ypj-faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 14.5px;
  color: #475569;
  line-height: 1.9;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 14px;
}

.ypj-faq-item.is-open .ypj-faq-answer {
  display: block;
}

/* ==========================================================================
   FACTORY & PRODUCTION VIDEOS SHOWCASE
   ========================================================================== */
.ypj-video-showcase-section {
  background: #f8fafc;
  border-top: 1px solid var(--ypj-border);
  padding: 50px 0 60px;
}

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

.ypj-video-card {
  background: #ffffff;
  border: 1.5px solid var(--ypj-border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  outline: none;
  position: relative;
  user-select: none;
}

.ypj-video-card:hover {
  transform: translateY(-5px);
  border-color: var(--ypj-gold);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.ypj-video-thumb-box {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 13;
  background: #0f172a;
  overflow: hidden;
}

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

.ypj-video-card:hover .ypj-video-thumb-box img {
  transform: scale(1.05);
}

.ypj-video-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.ypj-video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.18);
  transition: background 0.25s ease;
  z-index: 1;
}

.ypj-video-card:hover .ypj-video-play-overlay {
  background: rgba(0, 0, 0, 0.32);
}

.ypj-video-play-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ypj-video-card:hover .ypj-video-play-icon {
  transform: scale(1.14);
  box-shadow: 0 10px 28px rgba(217, 119, 6, 0.6);
}

.ypj-video-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  background: #ffffff;
}

.ypj-video-card-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.6;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}

.ypj-video-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  border-top: 1px dashed #e2e8f0;
  padding-top: 10px;
}

.ypj-video-action {
  color: var(--ypj-gold);
  font-weight: 800;
  font-size: 12px;
}

.ypj-video-tag {
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
}

.ypj-video-hidden {
  display: none !important;
}

.ypj-video-expand-btn {
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 700;
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid var(--ypj-border);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--ypj-shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ypj-video-expand-btn:hover {
  background: var(--ypj-primary);
  color: #ffffff;
  border-color: var(--ypj-primary);
}

/* Sleek Video Modal */
.ypj-factory-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: max(20px, env(safe-area-inset-top));
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  animation: ypjFadeIn 0.2s ease-out;
}

/* Floating exit button visible at all times on mobile and desktop */
.ypj-factory-modal-floating-exit {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: max(14px, env(safe-area-inset-left));
  z-index: 100005;
  background: #dc2626;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  padding: 8px 18px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(220, 38, 38, 0.5);
  transition: all 0.2s ease;
}

.ypj-factory-modal-floating-exit:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(185, 28, 28, 0.7);
}

.ypj-factory-modal-floating-exit .exit-icon {
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.ypj-factory-modal-dialog {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  width: 100%;
  max-width: 840px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
  position: relative;
  margin: auto;
}

.ypj-factory-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #1e293b;
  gap: 12px;
}

.ypj-factory-modal-close {
  background: #dc2626;
  border: none;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  transition: all 0.2s;
}

.ypj-factory-modal-close:hover {
  background: #b91c1c;
}

.ypj-factory-modal-body {
  flex: 1;
  min-height: 280px;
  max-height: 65vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.ypj-factory-modal-actions {
  display: flex;
  gap: 12px;
  padding: 12px 18px;
  background: #1e293b;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  align-items: center;
}

.ypj-modal-btn-bottom-exit {
  flex: 1;
  background: rgba(220, 38, 38, 0.15);
  border: 1.5px solid #dc2626;
  color: #fca5a5;
  border-radius: 10px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.ypj-modal-btn-bottom-exit:hover {
  background: #dc2626;
  color: #ffffff;
}

.ypj-factory-modal-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 18px 12px;
  background: #1e293b;
  text-align: center;
}

@keyframes ypjFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive queries */
@media (max-width: 1024px) {
  .ypj-video-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .ypj-video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .ypj-video-thumb-box {
    aspect-ratio: 9 / 13;
  }
  .ypj-video-card-title {
    font-size: 12px;
    min-height: auto;
    margin-bottom: 6px;
  }
  .ypj-video-card-body {
    padding: 10px 12px;
  }
  .ypj-video-play-icon {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .ypj-factory-modal {
    padding: 8px;
    padding-top: 60px; /* room for the floating exit button */
    padding-bottom: 24px;
    align-items: flex-start;
  }
  .ypj-factory-modal-dialog {
    max-height: none;
    border-radius: 14px;
    margin: 0 auto;
  }
  .ypj-factory-modal-floating-exit {
    top: max(10px, env(safe-area-inset-top));
    left: max(10px, env(safe-area-inset-left));
    padding: 7px 14px;
    font-size: 12.5px;
  }
  .ypj-factory-modal-body {
    min-height: 240px;
    max-height: 58vh;
    padding: 2px;
  }
  .ypj-factory-modal-actions {
    flex-direction: column;
    gap: 8px;
    padding: 10px 14px;
  }
  .ypj-modal-btn-bottom-exit,
  .ypj-factory-modal-actions a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .ypj-video-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .ypj-video-thumb-box {
    aspect-ratio: 16 / 10;
  }
}

