@font-face {
    font-family: p;
    src: url('fontp.ttf');}
@font-face {
    font-family: h;
    src: url('fonth.ttf');}

/* فونت و راست‌چین */
body {
  font-family: p;
  direction: rtl;
  text-align: right;
  margin: 0;
  padding: 0;
  background: linear-gradient(145deg, #000000, #b8860b); /* مشکی طلایی */
  color: #ffffff;
}

/* هدر */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: rgba(0,0,0,0.8);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo img {
  height: 50px;
  width: auto;
}

/* منو */
.menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.menu li a {
  text-decoration: none;
  color: #ffd700;
  padding: 5px 10px;
  border-radius: 5px;
  transition: all 0.3s ease;
  text-shadow: 0 0 5px #ffd700;
}

.menu li a:hover {
  background-color: #ffd700;
  color: #000;
  box-shadow: 0 0 10px #ffd700;
}

/* همبرگری برای موبایل */
.hamburger {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: #ffd700;
}

/* بخش‌ها */
section {
  padding: 80px 40px;
  border-bottom: 1px solid rgba(255,215,0,0.2);
}

/* ریسپانسیو */
@media screen and (max-width: 768px){
  .menu {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    flex-direction: column;
    background-color: rgba(0,0,0,0.95);
    gap: 30px;
    padding-top: 100px;
    transition: right 0.3s ease;
  }

  .menu.show {
    right: 0;
  }

  .hamburger {
    display: block;
  }
}

.logo img {
  height: 100px;
  width: auto; /* عرض متناسب با ارتفاع */
   border-top-left-radius: 20px;     /* بالا سمت چپ تیز */
  border-top-right-radius: 0px; /* بالا سمت راست گرد */
  border-bottom-left-radius: 0px; /* پایین سمت چپ گرد */
  border-bottom-right-radius: 20px; /* پایین سمت راست گر د*/
}

.logo img {
  height: 100px;
  width: auto;
  transition: transform 0.5s ease, filter 0.5s ease;

}

.logo img:hover {
  transform: scale(1.2) rotate(5deg);
  filter: brightness(1.2) saturate(1.3);
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px; /* فاصله بین لوگو و اسم */
}

.site-name {
  font-size: 28px;
  color: #ffd700;
  text-shadow: 0 0 5px #ffd700, 0 0 10px #ffec8b;
  font-weight: bold;
  transition: all 0.3s ease;
}

.logo:hover .site-name {
  color: #fff;
  text-shadow: 0 0 15px #ffd700, 0 0 30px #ffec8b;
  transform: scale(1.1);
}

.scroll-top {
  position: fixed;
  bottom: 30px;
  left: 30px; /* سمت چپ */
  background: #000;
  border: 2px solid #ffd700;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px #ffd700;
}

.scroll-top:hover {
  background: #ffd700;
  svg {
    fill: #000;
  }
  box-shadow: 0 0 20px #ffd700, 0 0 40px #ffec8b;
}
footer {
  background: #000;
  color: #fff;
  padding: 40px;
  border-top: 2px solid #ffd700;
  text-align: right;
}

footer h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #ffd700;
  text-shadow: 0 0 5px #ffd700, 0 0 10px #ffec8b;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-column, .address-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  text-align: center;
  width: 292px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111;
  padding: 10px 15px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;

}

.contact-item:hover {
  background: #ffd700;
  color: #000;
}

.contact-item img {
  width: 24px;
  height: 24px;
}

#audio-player {
  display: none;
}
.product-card {
  width: 280px;
  background: #1c1c1c;
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  
  /* تنظیم گوشه‌ها */
  border-top-left-radius: 20px;     /* بالا سمت چپ تیز */
  border-top-right-radius: 0px; /* بالا سمت راست گرد */
  border-bottom-left-radius: 20px; /* پایین سمت چپ گرد */
  border-bottom-right-radius: 0px; /* پایین سمت راست گر د*/
}


.product-name {
  background: #333;
  color: gold;
  padding: 15px 0;
  font-weight: bold;
  z-index: 5;
}

.product-price {
  background: #333;
  color: gold;
  padding: 15px 0;
  font-weight: bold;
  position: relative;
  z-index: 10;
}

.product-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: none; /* افکت زوم حذف شد */
}

/* l */
.modal {
  display: none;
  position: fixed;
  z-index: 50;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #1c1c1c;
  border-radius: 20px;
  padding: 20px;
  width: 80%;
  max-width: 600px;
  text-align: center;
  color: gold;
  position: relative;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {opacity:0; transform: translateY(-20px);}
  to {opacity:1; transform: translateY(0);}
}

.modal-content img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 20px 0 20px 0;
  margin-bottom: 15px;
}

.modal-content h2 { margin: 10px 0; }
.modal-content p { margin: 15px 0; }
.modal-price { font-size: 20px; font-weight: bold; margin-top: 15px; }

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: rgb(83, 0, 0);
  font-size: 28px;
  cursor: pointer;
}



.product-card:hover {
    transform: scale(1.05);
}
.image-slider {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.image-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 100%;
    opacity: 0;
    transition: all 0.8s ease-in-out;
}
.image-slider img.active {
    left: 0;
    opacity: 1;
}
.product-info {
    padding: 10px;
    background: #222;
}
.product-name {
    font-size: 18px;
    color: #FFD700; /* طلایی */
}

/* مودال */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.close-white{
  font-size: 40pt;
  cursor: pointer;
color: brown;
margin-left: 85%;
}
.modal-content {
    background: #111;
    color: #fff;
    padding: 20px;
    border-radius: 15px;
    width: 80%;
    max-width: 700px;
    position: relative;
}
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: rgb(83, 0, 0);;
}
.modal-slider {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}
.modal-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}
.modal-slider img.modal-active {
    display: block;
}
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #FFD700;
    border: none;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
}
.prev { left: 10px; }
.next { right: 10px; }
.modal-title {
    font-size: 22px;
    color: #FFD700;
    margin-top: 10px;
}
.modal-description {
    margin: 10px 0;
    font-size: 16px;
}
.modal-price {
    font-size: 18px;
    color: #FFD700;
    font-weight: bold;
}

.drag-slider {
  width: 100%;
  max-width: 1000px;  /* حداکثر پهنای دسکتاپ */
  aspect-ratio: 16/9; /* نسبت تصویر */
  margin: auto;
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
}

.drag-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* تصویر کامل دیده شود */
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.5s ease;
  opacity: 0;
  user-select: none;
  pointer-events: none;
}

.drag-slider img.active {
  opacity: 1;
}

/* افکت ظاهر شدن */
.scroll-appear {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.scroll-appear.active {
  opacity: 1;
  transform: translateY(0);
}

/* افکت کارت‌ها */
.product-card {
  background: linear-gradient(135deg, #1a1a1a, #222);
  border-radius: 12px;
  overflow: hidden;
  padding: 15px;
  margin: 20px 0;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.product-card:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 25px 40px rgba(0,0,0,0.5);
}

.re {
  height: 10px;
  width: 300px;
}

/* شبیه‌سازی حالت موبایل برای تبلت و دسکتاپ */
@media screen and (min-width: 500px) {
    body {
        max-width: 420px;
        margin: 40px auto;
        border-radius: 30px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        border: 8px solid #000;
        padding: 20px;
    }

    html {
        background: #342a00;
    }
    
    /* منوی همبرگری برای تبلت و دسکتاپ */
    .menu-toggle {
        display: block !important;
    }
    
    nav .menu {
        display: none !important;
        flex-direction: column !important;
        background: rgba(0,0,0,0.95) !important;
        position: absolute !important;
        top: 70px !important;
        right: 0 !important;
        left: 0 !important;
        padding: 20px !important;
        z-index: 999 !important;
    }
    
    nav .menu.show {
        display: flex !important;
    }
    
    /* محصولات ۱ ستونه */
    .product-card {
        width: 100% !important;
        margin: 10px 0 !important;
        display: block !important;
    }
}

    html {
        background: #342a00; /* پس‌زمینه تاریک برای دور قاب */
    }
}

/* مخفی کردن منوی اصلی در دسکتاپ و نمایش دکمه */
.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: #ffcc00;
  cursor: pointer;
}

/* برای دسکتاپ هم منوی همبرگری */
@media screen and (min-width: 500px) {
  .menu {
    display: none; /* مخفی کردن منو پیش‌فرض */
    flex-direction: column;
    background: rgba(0, 0, 0, 0.9);
    position: fixed;
    top: 60px;
    right: 20px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
  }

  .menu.show {
    display: flex; /* نمایش وقتی اکتیو شد */
  }

  .menu-toggle {
    display: block; /* نمایش دکمه در دسکتاپ */
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
  }
}


.footer {
    border-top-left-radius: 20px;     /* بالا سمت چپ تیز */
  border-top-right-radius: 20px; /* بالا سمت راست گرد */
  border-bottom-left-radius: 20px; /* پایین سمت چپ گرد */
  border-bottom-right-radius: 20px; /* پایین سمت راست گر د*/
}

.body {
    margin: 0;
    background-color: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
  }

  .heartbeat-line {
    position: relative;
    width: 80%;
    height: 4px;
    background: linear-gradient(90deg, gold, darkorange, gold);
    overflow: hidden;
  }

  .heartbeat-line::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(
      90deg,
      transparent,
      transparent 20px,
      gold 20px,
      gold 22px
    );
    animation: heartbeat 1s linear infinite;
  }

  @keyframes heartbeat {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0); }
    100% { transform: translateX(100%); }
  }

  .header{
  border-top-left-radius: 20px;     /* بالا سمت چپ تیز */
  border-top-right-radius: 20px; /* بالا سمت راست گرد */
  border-bottom-left-radius: 20px; /* پایین سمت چپ گرد */
  border-bottom-right-radius: 20px; /* پایین سمت راست گر د*/
  }

  .po{
  border-top-left-radius: 20px;     /* بالا سمت چپ تیز */
  border-top-right-radius: 20px; /* بالا سمت راست گرد */
  border-bottom-left-radius: 20px; /* پایین سمت چپ گرد */
  border-bottom-right-radius: 20px; /* پایین سمت راست گر د*/ 
  }

  /* خط موج طلایی متحرک پشت سایت */
@keyframes moveWave {
    0% { background-position: 0 0; }
    100% { background-position: 200% 0; }
}

.wave-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* پشت همه عناصر */
    background: linear-gradient(270deg, transparent 30%, gold, transparent 70%);
    background-size: 200% 100%;
    animation: moveWave 8s linear infinite;
    opacity: 0.3; /* شفاف برای طبیعی بودن */
}

/* برای دسکتاپ نمایش داده شود */
@media (max-width: 768px) {
    .wave-background {
        display: none;
    }
}

/* دکمه توضیحات */
.toggle-btn {
  background: #333;
  color: #fff;
  border: none;
  padding: 8px 12px;
  margin: 10px 0;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
}
.toggle-btn:hover {
  background: #555;
}

/* حالت کشویی برای توضیحات */
.modal-description {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

/* وقتی فعال میشه */
.modal-description.active {
  max-height: 500px; /* اندازه مناسب برای متن توضیحات */
  opacity: 1;
}

/* دکمه شناور چرخ دستی */
.floating-cart {
  position: fixed; /* شناور روی صفحه */
  top: 20px;
  left: 20px; /* بالا سمت چپ */
  z-index: 10000;
  color: gold; /* هم‌رنگ با منو */
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  animation: wave 2s infinite linear;
}

@keyframes wave {
  0% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(5px) rotate(5deg); }
  50% { transform: translateX(0) rotate(0deg); }
  75% { transform: translateX(-5px) rotate(-5deg); }
  100% { transform: translateX(0) rotate(0deg); }
}

.floating-cart svg {
  width: 100%;
  height: 100%;
}

/* تنظیمات موبایل برای چرخ دستی شناور */
@media screen and (max-width: 768px) {
  .floating-cart {
    top: 48px;
    left: 80px; /* هنوز بالا سمت چپ */
    width: 40px;
    height: 40px;
    animation: wave 1.5s infinite linear; /* کمی سریع‌تر */
  }
}


.classname {
box-shadow:inset 0 1px 0 0 #ffffff;
background-color:#ededed;
border-top-left-radius:6px;
border-top-right-radius:6px;
border-bottom-right-radius:6px;
border-bottom-left-radius:6px;
border:1px solid #dcdcdc;
display:inline-block;
color:#777777;
font-size:15px;
font-weight:bold;
height:50px;
line-height:50px;
text-decoration:none;
text-align:center;
text-shadow:1px 1px 0px #ffffff;
padding: 0 10px;
}
.classname:hover {
background-color:#dfdfdf;
}.classname:active {
position: relative;
top: 1px;
}
  
#typing-container {
    max-width: 800px;
    margin: 50px auto;
    text-align: center;
    font-family: 'Vazir', sans-serif;
    font-size: 1.2em;
    color: #333;
    min-height: 80px;
}

/* کرسر چشمک زن */
#line1::after, #line2::after {
    content: '|';
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%,100% {opacity: 0;}
    50% {opacity: 1;}
}
@media (min-width: 768px) and (max-width: 1024px) {
    .product-card { width: calc(50% - 20px) !important; display: inline-block !important; text-align: right !important; }
}