/* DECO ZIMA - Shared Global Chrome (Fixed Header, Watermark, Running Ticker, Footer, Profile Header Sync) */
@import url('/assets/fonts/font.css');

html, body, button, input, select, textarea {
  font-family: 'Yekan Bakh', 'Vazirmatn', Tahoma, sans-serif !important;
}

/* AMBIENT BACKGROUND FULL-SCREEN SEQUENTIAL VIDEO ACROSS ENTIRE SITE */
:root {
  --dz-ambient-opacity: 0.18;
}

#dz-ambient-bg-wrap {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  user-select: none;
  background: transparent;
}

.dz-ambient-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%) translateZ(0);
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
  pointer-events: none;
  filter: saturate(1.08) contrast(1.04);
}

.dz-ambient-video.active {
  opacity: var(--dz-ambient-opacity, 0.18);
}

@media (max-width: 768px) {
  :root {
    --dz-ambient-opacity: 0.15;
  }
}

.dz-ambient-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.08) 100%);
}

/* Legacy Watermark Removed per User Request */
#decozima-bg-watermark, .dz-wm-cell {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Ensure main content stacks cleanly above the pointer-events:none ambient video */
main, section, header, footer, .checkout-container, .profile-main-wrap, .product-page-container, .admin-container, .panel-box, .auth-card {
  position: relative;
  z-index: 2;
}

/* Fixed Header Enforcement Across ALL Pages */
.dz-fixed-top-shell,
.dz-fixed-inner-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1100 !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32) !important;
}

.dz-fixed-top-shell .header,
.dz-fixed-top-shell .sticky-header-group {
  position: static !important;
}

/* Global Back Button styling inside headers */
.dz-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(229, 169, 60, 0.4);
  color: #F8D070;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dz-back-btn:hover {
  background: rgba(229, 169, 60, 0.18);
  border-color: #E5A93C;
  color: #FFF;
  transform: translateX(2px);
}

/* Running Company Phone & Intro Bar (Bottom Marquee Strip) */
.dz-company-ticker-bar {
  position: relative;
  z-index: 2;
  width: 100%;
  background: linear-gradient(90deg, #09090D 0%, #15120A 50%, #09090D 100%);
  border-top: 2px solid #E5A93C;
  border-bottom: 1px solid rgba(229, 169, 60, 0.28);
  color: #F8D070;
  overflow: hidden;
  padding: 11px 0;
  direction: ltr;
}

.dz-company-ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 54px;
  will-change: transform;
  animation: dzCompanyTicker 32s linear infinite;
}

.dz-company-ticker-bar:hover .dz-company-ticker-track {
  animation-play-state: paused;
}

.dz-ticker-item {
  direction: rtl;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 700;
  color: #F8FAFC;
  white-space: nowrap;
}

.dz-ticker-item strong {
  color: #E5A93C;
  font-weight: 900;
}

.dz-ticker-sep {
  color: #E5A93C;
  font-size: 14px;
}

@keyframes dzCompanyTicker {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Unified Global Footer for Inner Pages */
.dz-global-footer {
  position: relative;
  z-index: 2;
  background: #050508;
  color: #E2E8F0;
  border-top: 2px solid rgba(229, 169, 60, 0.35);
  padding: 38px 24px 22px;
  direction: rtl;
}

.dz-global-footer-grid {
  max-width: 1320px;
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(170px, 1fr));
  gap: 24px;
}
@media (max-width: 1024px) {
  .dz-global-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .dz-global-footer-grid {
    grid-template-columns: 1fr;
  }
}
.dz-bot-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(229, 169, 60, 0.35);
  background: rgba(255, 255, 255, 0.05);
  color: #F8D070;
  margin: 4px 0 4px 6px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.dz-bot-pill:hover {
  transform: translateY(-2px);
  background: rgba(229, 169, 60, 0.16);
}

.dz-footer-col h4 {
  color: #E5A93C;
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dz-footer-col p {
  font-size: 12.5px;
  line-height: 1.85;
  color: #94A3B8;
  margin: 0 0 10px;
}

.dz-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dz-footer-links a {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 12.5px;
  transition: color 0.2s;
}

.dz-footer-links a:hover {
  color: #E5A93C;
}

.dz-global-footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 16px;
  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: 11.5px;
  color: #64748B;
}

/* Header User Widget for Inner Pages if missing */
.dz-inline-user-box {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dz-inline-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(229, 169, 60, 0.45);
  color: #FFF;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dz-inline-user-btn:hover {
  border-color: #E5A93C;
  background: rgba(229, 169, 60, 0.16);
}

.dz-inline-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: #0F0F16;
  border: 1.5px solid #E5A93C;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  z-index: 1250;
  flex-direction: column;
  gap: 8px;
}

.dz-inline-user-dropdown.open {
  display: flex;
}

/* Isolated Hover Enlarged Specs Overlay on Homepage Product Cards */
.products-grid {
  align-items: stretch !important;
}

.product-card {
  position: relative !important;
  overflow: visible !important;
  z-index: 1;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.product-card .product-image-container {
  border-radius: 15px 15px 0 0;
  overflow: hidden;
  flex-shrink: 0;
}

.product-card:hover {
  z-index: 60 !important;
}

.product-card .product-hover-popover {
  display: none;
  position: absolute;
  top: calc(100% - 12px);
  left: 0;
  right: 0;
  background: #0E0E15;
  color: #F8FAFC;
  border: 1.5px solid #E5A93C;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.48);
  z-index: 75;
  pointer-events: auto;
  animation: dzCardPop 0.18s ease-out;
}

.product-card:hover .product-hover-popover {
  display: block;
}

@keyframes dzCardPop {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dz-pop-row {
  font-size: 11.5px;
  line-height: 1.7;
  color: #E2E8F0;
  margin-bottom: 6px;
}

.dz-pop-row strong {
  color: #F8D070;
}

.dz-pop-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.dz-pop-pill {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(229, 169, 60, 0.14);
  border: 1px solid rgba(229, 169, 60, 0.35);
  color: #F8D070;
}

/* ==========================================================================
   GLOBAL DROPDOWN CLASSES (DARK DEFAULT + LIGHT CHROME VARIANT)
   ========================================================================== */
.dz-dd-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #F8D070;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dz-dd-phone {
  font-size: 11px;
  color: #94A3B8;
  direction: ltr;
  text-align: right;
}

.dz-dd-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(229, 169, 60, 0.14);
  border: 1px solid #E5A93C;
  color: #F8D070;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.dz-dd-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #E2E8F0;
  font-size: 12px;
  text-decoration: none;
}

/* ==========================================================================
   MINIMALIST WHITE TOP CHROME (FOR WHITE-BODY PAGES)
   ========================================================================== */
body.dz-light-chrome .dz-fixed-top-shell,
body.dz-light-chrome .dz-fixed-inner-header {
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04) !important;
}

body.dz-light-chrome header.header {
  background: rgba(255, 255, 255, 0.97) !important;
  border-bottom: 1px solid #EAEAEA !important;
  box-shadow: none !important;
}

body.dz-light-chrome .brand-logo-img {
  border: 1px solid #EAEAEA !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

body.dz-light-chrome .brand-en-title {
  color: #A67014 !important;
}

body.dz-light-chrome .brand-en-sub {
  color: #64748B !important;
}

body.dz-light-chrome .brand-divider {
  background: #E5E7EB !important;
}

body.dz-light-chrome .brand-fa-text {
  color: #111827 !important;
}

body.dz-light-chrome .brand-fa-text span {
  color: #64748B !important;
}

body.dz-light-chrome .header-feature-badge {
  color: #64748B !important;
}

body.dz-light-chrome .btn-nav-home,
body.dz-light-chrome .btn-nav-archive,
body.dz-light-chrome .dz-back-btn {
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  color: #111827 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

body.dz-light-chrome .btn-nav-home:hover,
body.dz-light-chrome .btn-nav-archive:hover,
body.dz-light-chrome .dz-back-btn:hover {
  background: #F8F9FA !important;
  border-color: #C68A25 !important;
  color: #92400E !important;
}

body.dz-light-chrome .btn-cart,
body.dz-light-chrome .btn-user-avatar,
body.dz-light-chrome .dz-inline-user-btn {
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  color: #111827 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

body.dz-light-chrome .btn-cart:hover {
  background: #FEF2F2 !important;
  border-color: #FCA5A5 !important;
  color: #DC2626 !important;
}

body.dz-light-chrome .btn-user-avatar:hover,
body.dz-light-chrome .dz-inline-user-btn:hover {
  background: #F8F9FA !important;
  border-color: #D1D5DB !important;
  color: #111827 !important;
}

body.dz-light-chrome .user-avatar-circle {
  background: #F8F9FA !important;
  border: 1px solid #E5E7EB !important;
  color: #A67014 !important;
}

body.dz-light-chrome .user-hover-tooltip {
  background: #FFFFFF !important;
  border: 1px solid #EAEAEA !important;
  color: #111827 !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}

body.dz-light-chrome .user-dropdown-menu,
body.dz-light-chrome .dz-inline-user-dropdown {
  background: #FFFFFF !important;
  border: 1px solid #EAEAEA !important;
  color: #111827 !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1) !important;
}

body.dz-light-chrome .dropdown-user-avatar {
  background: #F8F9FA !important;
  border-color: #EAEAEA !important;
}

body.dz-light-chrome .dropdown-user-name,
body.dz-light-chrome .dz-dd-title {
  color: #111827 !important;
  border-bottom-color: #F1F5F9 !important;
}

body.dz-light-chrome .dropdown-user-phone,
body.dz-light-chrome .dz-dd-phone {
  color: #64748B !important;
}

body.dz-light-chrome .user-dropdown-divider {
  background: #F1F5F9 !important;
}

body.dz-light-chrome .dropdown-item-btn,
body.dz-light-chrome .dz-dd-link {
  background: #F8F9FA !important;
  border: 1px solid #EAEAEA !important;
  color: #1F2937 !important;
}

body.dz-light-chrome .dropdown-item-btn:hover,
body.dz-light-chrome .dz-dd-link:hover {
  background: #FEFCE8 !important;
  border-color: #FDE68A !important;
  color: #92400E !important;
}

body.dz-light-chrome .dz-dd-primary {
  background: #FEFCE8 !important;
  border: 1px solid #FDE68A !important;
  color: #92400E !important;
}

body.dz-light-chrome .hero-archive {
  background: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%) !important;
  border-bottom: 1px solid #EAEAEA !important;
  color: #111827 !important;
}

body.dz-light-chrome .hero-archive-title {
  color: #111827 !important;
}

body.dz-light-chrome .hero-archive-desc {
  color: #64748B !important;
}

/* Global Split Floating Controls: Chat on Right Wall, Scroll-Top Arrow on Left Wall */
.support-floating-wrapper {
  position: fixed !important;
  bottom: 28px !important;
  right: 24px !important;
  left: auto !important;
  z-index: 9998 !important;
}
.support-greeting-card {
  right: 0 !important;
  left: auto !important;
  bottom: 64px !important;
}
.support-chat-drawer {
  right: 24px !important;
  left: auto !important;
  bottom: 24px !important;
}
.btn-scroll-top {
  position: fixed !important;
  bottom: 28px !important;
  left: 24px !important;
  right: auto !important;
  margin-top: 0 !important;
  z-index: 9998 !important;
}
@media (max-width: 1024px) {
  .btn-support-floating {
    width: 46px !important;
    height: 46px !important;
  }
  .btn-support-floating svg {
    width: 20px !important;
    height: 20px !important;
  }
  .btn-scroll-top {
    width: 40px !important;
    height: 40px !important;
  }
  .dz-global-footer-grid {
    gap: 18px !important;
    padding: 24px 16px !important;
  }
}
@media (max-width: 768px) {
  html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  .support-floating-wrapper {
    bottom: 66px !important;
    right: 12px !important;
    left: auto !important;
  }
  .btn-support-floating {
    width: 42px !important;
    height: 42px !important;
  }
  .btn-support-floating svg {
    width: 18px !important;
    height: 18px !important;
  }
  .support-greeting-card {
    width: 215px !important;
    padding: 9px 11px !important;
    bottom: 52px !important;
  }
  .greeting-title, .greeting-body {
    font-size: 11px !important;
  }
  .btn-scroll-top {
    bottom: 66px !important;
    left: 12px !important;
    right: auto !important;
    width: 36px !important;
    height: 36px !important;
    margin-top: 0 !important;
  }
  .btn-scroll-top svg {
    width: 16px !important;
    height: 16px !important;
  }
  .support-chat-drawer {
    width: auto !important;
    max-width: 100vw !important;
    height: 75vh !important;
    right: 8px !important;
    left: 8px !important;
    bottom: 64px !important;
    border-radius: 16px !important;
  }
}

/* Brand Logos Clean Vector Presentation */
.brand-chip-logo-wrap {
  background: #FFFFFF !important;
  border: 1px solid #EAEAEA !important;
  border-radius: 14px !important;
  padding: 10px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}
.brand-chip-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}
