@import url('../fonts/font.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: shabnam, sans-serif;
}

body {
    background: #0f182a;

}

footer {
    width: 100%;
    background: var(--black);
}

.footer-container .content_1 img {
     height: 130px;
    width: 200px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    padding: 60px 0;
    flex-direction: row-reverse;
}
.footer-container h4 {
    color: var(--white);
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 25px;
    font-size: 18px;
}

.footer-container a {
    display: block;
    text-decoration: none;
    color: var(--grey);
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-container .content_1 p,
.footer-container .content_4 p {
    color: var(--grey);
    margin: 25px 0;
    font-size: 14px;
}

.footer-container .content_4 input[type="email"] {
    background-color: var(--black);
    border: none;
    color: var(--white);
    outline: none;
    padding: 15px 0;
}

.footer-container .content_4 .f-mail {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-container .content_4 .bx {
    color: var(--white);
}

.f-design {
    width: 100%;
    color: var(--white);
    text-align: center;
}

.f-design .f-design-txt {
    border-top: 1px solid var(--grey);
    padding: 25px 0;
    font-size: 14px;
    color: var(--grey);
}


/* //........ contact ...... // */

.contact {
    margin-top: 45px;
}

iframe {
    height: 72vh;
    width: 100%;
}

.form {
    display: flex;
    justify-content: space-between;
    margin: 80px 0;
}

.form .form-txt {
    flex-basis: 48%;
}

.form .form-txt h4 {
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 1.5px;
    font-size: 15px;
    margin-bottom: 15px;
}

.form .form-txt h1 {
    font-weight: 600;
    color: var(--black);
    font-size: 40px;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    color: var(--light-black);
}

.form .form-txt span {
    color: var(--light-black);
    font-size: 14px;
}

.form .form-txt h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 15px 0;
    color: var(--light-black);
}

.form .form-txt p {
    color: var(--light-black);
    font-size: 14px;
}

.form .form-details {
    flex-basis: 48%;
}

.form .form-details input[type="text"],
.form .form-details input[type="email"] {
    padding: 15px 20px;
    color: var(--grey);
    outline: none;
    border: 1px solid var(--grey);
    margin: 35px 15px;
    font-size: 14px;
}

.form .form-details textarea {
    padding: 15px 20px;
    margin: 0 15px;
    color: var(--grey);
    outline: none;
    border: 1px solid var(--grey);
    font-size: 14px;
    resize: none;
}

.form .form-details button {
    padding: 15px 25px;
    color: var(--white);
    font-weight: 500;
    background: var(--black);
    outline: none;
    border: none;
    margin: 15px;
    font-size: 14px;
    letter-spacing: 2px;
    cursor: pointer;
}




/* کادر کلی گالری */
.gallery-wrapper {
    max-width: 1300px;
    margin: 50px auto;
    margin-top: 110px;
    padding: 30px;
    background: linear-gradient(to right, #27406c, #1e2122);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* کادر عنوان */
.gallery-title {
  text-align: center;
  margin-bottom: 30px;
  padding: 10px;
  background-color: #1f2e49;
  color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.gallery-title h2 {
  margin: 0;
  font-size: 24px;
}

/* گالری عکس‌ها */
.gallery-container {
  display: flex;
  justify-content: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 400px);
  grid-gap: 20px;
}

.image-box {
  width: 400px;
  height: 325px;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.image-box:hover {
  transform: scale(1.03);
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* افکت نمایش نام عکس هنگام هاور */
.image-box:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 10px;
  font-size: 16px;
  text-align: center;
  font-family: 'Tahoma', sans-serif;
}




.agedes {
  position: absolute;
  top: 0;
  left: 1.25rem; /* معادل left-5 */
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.25rem 0.5rem;
  font-size: 0.9rem;
  font-weight: bold;
  border-bottom-left-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

/* استایل برای امتیاز MAL */
/* باکس امتیاز MAL به صورت ستونی و ظریف */
.sjmrate {
  position: absolute;
  bottom: 0.75rem;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 0.3rem 0.5rem;
  font-size: 16px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 500;
  border-radius: 0.375rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 50px;
  height: auto;
  text-align: center;
}

/* آیکون MAL کوچک و ظریف */
.malbrr i.aio-mal {
    display: block;
    width: 35px;
    height: 35px;
    background-image: url(https://upload.wikimedia.org/wikipedia/commons/7/7a/MyAnimeList_Logo.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 10px;
    flex-direction: row-reverse;
     margin-bottom: 20px;

}

.pagination a {
  padding: 8px 14px;
  background-color: #4a90e2;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  font-size: 16px;
}

.pagination a:hover {
  background-color: #357ab8;
}

.pagination span {
  padding: 8px 10px;
  color: #555;
  font-size: 16px;
}


/* //....... Media Queries .......// */

/* همبرگری */
.hamburger {
  font-size: 28px;
  cursor: pointer;
  color: white;
  display: none;
  padding: 10px;
  z-index: 1001;
}

/* منو اصلی */
.menu-items {
  display: flex;
  flex-direction: row;
  margin-right: 3rem;
  transition: all 0.3s ease;
}
@media (max-width: 1024px) {
  .neon-box {
    width: 100%;
    margin-left: 0;
    height: auto;
    flex-direction: column;
    padding: 20px;
    border-radius: 30px;
  }

  .best-seller {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .best-p1 {
    width: 90%;
    max-width: 300px;
    margin: 10px auto;
  }

  .best-p1 img {
    width: 100%;
    height: auto;
    border-radius: 15px;
  }

  .sjmrate {
    width: 45px;
    font-size: 14px;
  }

  .agedes {
    font-size: 0.8rem;
    padding: 2px 6px;
  }

  .hover-text {
    font-size: 0.9rem;
    padding: 6px;
  }

  .top-sales-header {
    flex-direction: column;
    text-align: center;
    padding: 10px;
  }

  .top-sales-header h2,
  .top-sales-header p {
    font-size: 1rem;
  }

  .view-all-btn {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .gallery {
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 14px;
  }

  .image-box {
    height: 250px;
  }

  .gallery-title h2 {
    font-size: 20px;
  }

  .sjmrate {
    font-size: 13px;
    width: 40px;
  }

  .agedes {
    font-size: 0.75rem;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 8px;
  }

  .pagination a,
  .pagination span {
    font-size: 13px;
    padding: 5px 8px;
  }
  .l-news {
    flex-direction: column;
    align-items: center;
    gap: 140px;
    padding: 0 10px;
  }

  .l-news1, .l-news2, .l-news3 {
    width: 100%;
    max-width: 320px;
    height: auto;
  }

  .news1-conte, .news2-conte, .news3-conte {
    position: static;
    padding: 15px;
    margin-top: 10px;
    text-align: center;
  }

  .news-heading h2 {
    font-size: 24px;
  }

  .news-heading p {
    font-size: 16px;
  }

  .custom-button {
    font-size: 18px;
    padding: 10px 20px;
  }
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 10px;
  }

  .footer-container > div {
    margin-bottom: 30px;
  }

  .footer-container img {
    width: 150px;
    height: auto;
  }

  .f-mail {
    flex-direction: column;
    gap: 10px;
  }

  .f-design .f-design-txt {
    font-size: 13px;
  }

  .menu-items {
    display: none;
    flex-direction: column;
    background-color: rgba(246, 241, 241, 0.95);
    position: absolute;
    top: 100px;
    right: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 999;
  }

  .menu-items.show {
    display: flex;
  }

  .menu-items li {
    margin: 10px 0;
    text-align: center;
  }

  .navbar-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
  }

  .logoZ {
    width: 90px;
  }

  .magic-text {
    font-size: 20px;
    margin-right: 0;
    text-align: center;
  }

  #backgroundImage {
    height: 400px;
  }
}

/* 🖥 مانیتورهای بزرگ (عرض بیشتر از 1440px) */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }

  .magic-text {
    font-size: 32px;
    margin-right: -800px;
  }

  .menu-items li {
    font-size: 1.4rem;
  }

  .neon-box {
    width: 1350px;
    height: 500px;
  }

  .seller .best-p1 {
    width: 280px;
    height: 400px;
  }
}

/* 💻 دسکتاپ معمولی (1025px تا 1439px) */
@media (min-width: 1025px) and (max-width: 1439px) {
  .container {
    max-width: 1200px;
  }

  .magic-text {
    font-size: 28px;
    margin-right: -600px;
  }

  .menu-items li {
    font-size: 1.2rem;
  }

  .neon-box {
    width: 1200px;
    height: 480px;
  }

  .seller .best-p1 {
    width: 260px;
    height: 380px;
  }
}

/* 📲 تبلت افقی و لپ‌تاپ کوچک (769px تا 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  body {
    font-size: 15px;
  }

  .container {
    width: 90%;
  }

  .logo {
    margin-right: 30px;
    flex-direction: row;
    justify-content: flex-start;
  }

  .magic-text {
    font-size: 24px;
    margin-right: -300px;
  }

  .navbar-container {
    flex-direction: row;
    height: auto;
    padding: 10px 20px;
  }

  .menu-items {
    flex-direction: row;
    justify-content: center;
    margin-right: 1rem;
  }

  .menu-items li {
    margin: 10px;
    font-size: 17px;
  }

  #backgroundImage {
    height: 600px;
  }

  .head-txt {
    font-size: 17px;
  }

  .neon-box {
    width: 100%;
    margin-left: 0;
    height: auto;
    flex-direction: column;
  }

  .collections {
    flex-direction: column;
  }

  .seller {
    flex-direction: column;
    align-items: center;
  }

  .form {
    flex-direction: column;
  }

  .form .form-txt,
  .form .form-details {
    width: 100%;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .l-news {
    flex-direction: column;
    gap: 30px;
  }
}

/* 📳 موبایل متوسط (481px تا 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  body {
    font-size: 14px;
    transform: scale(0.95);
    transform-origin: top center;
  }

  .logo {
    margin-right: 0;
    margin-bottom: 10px;
    flex-direction: row;
    justify-content: center;
  }

  .logoZ {
    width: 40px;
  }

  .container {
    width: 95%;
    padding: 0 10px;
  }

  .head {
    flex-direction: column;
    align-items: center;
    font-size: 13px;
    text-align: center;
  }

  .magic-text {
    font-size: 20px;
    margin-right: 0;
    text-align: center;
  }

  .navbar-container {
    flex-direction: column;
    height: auto;
    padding: 10px 0;
  }

  .menu-items {
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 10px 0;
  }

  .menu-items li {
    margin: 10px 0;
    font-size: 16px;
  }

  .navbar-container ul a {
    font-size: 16px;
  }

  #backgroundImage {
    height: 400px;
    margin-top: 60px;
  }

  .head-txt {
    font-size: 16px;
    text-align: center;
    padding: 10px;
  }

  .neon-box {
    width: 100%;
    margin-left: 0;
    height: auto;
    flex-direction: column;
  }

  .collections {
    flex-direction: column;
  }

  .seller {
    flex-direction: column;
    align-items: center;
  }

  .seller .best-p1 {
    width: 90%;
    margin: 20px 0;
  }

  .form {
    flex-direction: column;
  }

  .form .form-txt,
  .form .form-details {
    width: 100%;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .l-news {
    flex-direction: column;
    gap: 30px;
  }

  .l-news img {
    width: 100%;
    height: auto;
  }

  .l-news1,
  .l-news2,
  .l-news3 {
    width: 100%;
    height: auto;
  }

  .news1-conte,
  .news2-conte,
  .news3-conte {
    position: static;
    padding: 15px;
  }
}

/* 📱 موبایل کوچک (عرض کمتر از 480px) */
@media (max-width: 480px) {
  body {
    font-size: 13px;
    transform: scale(0.9);
    transform-origin: top center;
  }
 .gallery-wrapper {
    padding: 15px;
    margin-top: 110px;
  }

  .gallery-title h2 {
    font-size: 18px;
  }

  .image-box {
    height: 220px;
  }

  .sjmrate {
    font-size: 12px;
    width: 38px;
  }

  .agedes {
    font-size: 0.7rem;
    padding: 2px 5px;
  }

  .pagination a,
  .pagination span {
    font-size: 12px;
    padding: 5px 6px;
  }
  .logoZ {
    width: 35px;
  }

  .magic-text {
    font-size: 18px;
    text-align: center;
    margin-right: 0;
  }

  .menu-items li {
    font-size: 15px;
  }

  .head-txt {
    font-size: 15px;
  }

  #backgroundImage {
    height: 300px;
  }

  .custom-button {
    font-size: 18px;
    padding: 10px 20px;
  }

  .news-heading h2 {
    font-size: 24px;
  }

  .form .form-details input,
  .form .form-details textarea {
    margin: 15px 0;
    width: 100%;
  }

  .footer-container .content_1 img {
    width: 150px;
    height: auto;
  }
}
