/* ==========================================================================
   ۱. تنظیمات پایه و ریست قالب
   ========================================================================== */
* {
  box-sizing: border-box;
}

body {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
  background: linear-gradient(270deg, #2e2014 0%, #5b3e28 100%);
  min-height: 100%;
  min-width: 100%;
}

html {
  scroll-behavior: smooth;
}

.hero-title{
  font-size: xx-large;
  color: #ecd6c5;
}

.hero-desc{
  font-size: large;
  color: #90725b;
}

.hero-brand{
  font-size: xx-large;
  color: #f5d8bf;
}

.title-box{
  margin-top:-20%;
  margin-right: 15%;
  font-size: x-large;
  color: #bda28d;
}

.title-description{
  font-size: larger;
  color: #8b705a;
  margin-right:15%;
}

.btninst{
  background-image:url(img/bin.png);
  width:307px;
  height: 90px;
  margin-right: 15%;
  background-size: cover;
  border-radius: 10px;
}

/* ==========================================================================
   ۲. هدر و منوی ناوبری (Navigation Bar)
   ========================================================================== */
.main-nav {
  width: 100%;
  background: rgba(49, 23, 3, 0.27);
  padding: 35px 40px;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 999;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.445);
}

.main-nav nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 8px;
}

.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: flex-start;
  gap: 40px;
}

.main-nav ul li {
  display: inline-block;
}

.main-nav ul li a {
  color: #ffe4c8;
  text-decoration: none;
  font-size: 16px;
  position: relative;
  padding-bottom: 5px;
}

/* انیمیشن خط زیر منو */
.main-nav ul li a:after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background-color: #ffddb6;
  transition: 0.3s;
}

.main-nav ul li a:hover::after {
  width: 100%;
}

.logo {
  direction: rtl;
  color: #c0aa8f;
  margin-top: -2%;
  font-weight: bolder;
  font-size: larger;
}

/* ==========================================================================
   ۳. بخش هیرو و کانتینر اصلی (Hero & Containers)
   ========================================================================== */
.hero {
  position: relative;
  height: 1000px;
  background-image: url(img/fmbg.png);
  background-size: cover;
  background-position: center;
  margin-top: 5% !important; /* جلوگیری از رفتن زیر منو */
}

.h1 {
  position: absolute;
  left: 8%;
  top: 55%;
  transform: translateY(-50%);
  direction: rtl;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-logo {
  width: 400px;
  margin-top: 35px;
}

.main-logo img {
  width: 100%;
  height: auto;
}

.bg {
  margin-top: -10%;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 4% 2%;
}

.intro {
  text-align: center;
  margin-bottom: 4%;
  padding: 3%;
  background: rgb(116, 84, 59);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.intro p {
  font-size: 18px;
  line-height: 1.8;
  color: #d8c8b7;
  margin: 0;
}

/* ==========================================================================
   ۴. اسلایدر دسته‌بندی‌ها (Categories Scrollable Grid)
   ========================================================================== */
.categories {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 5px 20px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* حذف اسکرول‌بار در فایرفاکس */
}

.categories::-webkit-scrollbar {
  display: none; /* حذف اسکرول‌بار در کروم و سافاری */
}

.category-card {
  flex: 0 0 230px;
  height: 320px;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
  transition: .3s ease;
}

.category-card:hover {
  transform: translateY(-6px);
}

.category-image {
  width: 100%;
  height: 100%;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  position: relative;
}

.category-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.55),
    rgba(0,0,0,.15),
    transparent
  );
}

.category-btn {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 30px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  pointer-events: none;
}

.jdk{
  font-size: 12px;
}

.category-btn span {
  font-size: 12px;
}

/* تصاویر دسته‌بندی‌ها */
.category-coaster { background-image: url(img/dk.png); }
.category-mirror { background-image: url(img/ayne.png); }
.category-box { background-image: url(img/jabe.png); }
.category-incense { background-image: url(img/jo2.png); }
.category-j { background-image: url(img/jdk.png); }
.category-jgh { background-image: url(img/jagha.png); }
.category-sculpture { background-image: url(img/mp.png); }
.category-frame { background-image: url(img/zl.png); }
.category-setha { background-image: url(img/settt.png); }
.category-setha2 { background-image: url(img/set.png); }

/* ==========================================================================
   ۵. گرید محصولات و کارت‌های شیشه‌ای (Products & Glassmorphism Cards)
   ========================================================================== */
.products-page {
  display: none;
}

.products-page.active {
  display: block;
}

.daste{
  text-align: center; 
  font-size: larger; 
  color: #c9b19a;
}

.back-button {
  margin-top: 6%;
  background: linear-gradient(135deg, #563f2f 0%, #482e1c 100%);
  color: white;
  border: none;
  padding: 1% 5%;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 3%;
  transition: all 0.3s ease;
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
}

.back-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.445);
}

.products-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* کارت‌ها چسبیده به هم در مرکز قرار می‌گیرند */
  gap: 40px 25px;          /* ۴۰ پیکسل فاصله ردیف عمودی، ۲۵ پیکسل افقی */
  padding: 20px 0;
}

.product-card {
  position: relative;
  width: 230px;            /* حفظ ابعاد شیک و ثابت کارت در تمامی دیوایس‌ها */
  height: 320px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
  transition: .3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
}

.product-image {
  width: 100%;
  height: 100%;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  z-index: 2;
}

.product-title {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.glass-view-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  font-family: inherit;
}

.glass-view-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.glass-view-btn span {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.glass-view-btn:hover span {
  transform: translateX(-4px);
}

/* ==========================================================================
   ۶. صفحه جزئیات محصول (Product Details Page)
   ========================================================================== */
.details-page {
  display: none;
}

.details-page.active {
  display: block;
}

.details-container {
  background: linear-gradient(135deg, #382011 0%, #463222da 100%);
  border-radius: 16px;
  padding: 4%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.details-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2%;
  margin-bottom: 4%;
}

.details-image {
  width: 50%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-radius: 12px;
  background-color: transparent;
}

.details-info h2 {
  font-size: 32px;
  color: #9c7e63;
  margin-bottom: 5%;
}

.details-price {
  font-size: 28px;
  color: #a47f62;
  font-weight: bold;
  margin-bottom: 5%;
}

.specs-section h3 {
  font-size: 24px;
  font-weight: bolder;
  color: #82664b;
  margin-bottom: 5%;
  border-bottom: 3px solid #6b4a39;
  padding-bottom: 2%;
}

.spec-item {
  display: flex;
  padding: 1% 0%;
  border-bottom: 1px solid #654733;
}

.spec-label {
  font-weight: bold;
  color: #624d30;
  width: 30%;
}

.spec-value {
  color: #795436;
  font-weight: bolder;
}

/* ==========================================================================
   ۷. بخش ارتباط با ما و دکمه‌ها (Contact Section & Buttons)
   ========================================================================== */
.img {
  text-align: left;
}

.btninst {
  transition: transform 0.45s cubic-bezier(.22,1,.36,1), box-shadow 0.45s cubic-bezier(.22,1,.36,1);
}

.btninst:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.425);
}

.contact-content {
  display: flex;
  justify-content: center;
}

.contact-info {
  display: flex;
  width: 1400px;
  max-width: 1400px;
  justify-content: space-around;
  align-items: center;
  gap: 0;
  background: rgba(58, 40, 28, 0.597);
  border-radius: 25px;
  padding: 15px 20px;
}

.icon-paper {
  width: 27px;
  height: 27px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.contact-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 33.33%;
  padding: 10px;
  background: transparent;
  border-radius: 0;
  border-left: 1px solid rgba(255,218,177,0.25);
}

.contact-item:last-child {
  border-left: none;
}

.contact-icon {
  font-size: 30px;
  margin-left: 15px;
}

.contact-details {
  text-align: right;
}

.contact-details h3 {
  font-size: 16px;
  color: #d7b080;
  margin: 0 0 5px 0;
}

.contact-details p {
  font-size: 13px;
  color: #bca58d;
  margin: 0;
}

/* ==========================================================================
   ۸. فوتر سایت (Footer)
   ========================================================================== */
.main-footer {
  background-color: #482f1c37;
  color: #bfa78f;
  padding: 60px 20px;
  direction: rtl;
  font-family: 'Tahoma', sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-column {
  flex: 1;
  min-width: 200px;
  margin-bottom: 30px;
  padding: 0 20px;
  text-align: right;
}

.footer-column:not(:last-child) {
  border-left: 1px dotted #4a3b30;
}

.footer-column h3 {
  color: #d1b496;
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: normal;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: #bfa78f;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 14px;
}

.footer-column ul li a:hover {
  color: #ffffff;
}

.brand-col {
  text-align: center;
}

.footer-logo {
  border: 2px dashed #d1b496;
  padding: 15px;
  display: inline-block;
  margin-bottom: 20px;
  transform: rotate(45deg);
}

.logo-text {
  display: block;
  transform: rotate(-45deg);
  font-size: 20px;
  color: #d1b496;
}

.brand-description {
  font-size: 14px;
  line-height: 1.8;
  color: #a8927d;
}

.newsletter-col p {
  font-size: 13px;
  margin-bottom: 20px;
  color: #a8927d;
}

.newsletter-form {
  display: flex;
  background-color: transparent;
  border: 1px solid #4a3b30;
  border-radius: 25px;
  padding: 5px;
  max-width: 300px;
}

.newsletter-form input[type="email"] {
  background: transparent;
  border: none;
  padding: 10px 15px;
  color: #ffffff;
  width: 100%;
  direction: ltr;
  text-align: right;
}

.newsletter-form input[type="email"]:focus {
  outline: none;
}

.newsletter-form button {
  background-color: transparent;
  border: 1px solid #d1b496;
  color: #d1b496;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.newsletter-form button:hover {
  background-color: #d1b496;
  color: #231b15;
}

  .drawing-image{
    border-radius:15px;
  }

    .setm{
    text-align: center;
     font-size: larger; 
     color: #c9b19a;
     margin-top:-3%;
  }

@media (max-width: 768px) {

 
  html,
  body {
    overflow-x: hidden;
  }

  /* ===== HERO ===== */
  .hero {
    height: 700px !important;
    margin-top: 70px !important;

    /* نمایش کامل عکس */
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: top center !important;
  }

  .bg {
    margin-top: 0 !important;
  }

  .h1 {
    position: absolute !important;

    /* متن سمت چپ تصویر */
    left: 3% !important;
    top: 20% !important;

    transform: translateY(-50%) !important;

    width: 42% !important;

    align-items: flex-start !important;
    text-align: right !important;

    padding: 0 !important;
  }

  .hero-title {
    font-size: 13px !important;
    line-height: 1.35 !important;
    margin: 0 !important;
}

.hero-desc {
    font-size: 11px !important;
    line-height: 1 !important;
    margin-top: -15px !important;
    margin-bottom: 0 !important;
}

.hero-brand {
    font-size: 16px !important;
    line-height: 0 !important;
    margin-top: 10px !important;

}

  /* ===== لوگوی ویژگی ها ===== */

  .main-logo {
    width: 130px !important;
    margin-top: 5px !important;
    
  filter: brightness(1) invert(0);
  }


  /* دسته بندی */
  .daste{
    text-align: center;
     font-size: medium;
      color: #c9b19a;
      margin-top:-110%;
  }

  .category-btn{
    font-size: medium;
  }

  .drawing-image{
    border-radius:15px;
    margin-top: -10%;
  }

  .title-box{
    font-size: small;
    margin-top:-26%;
    color: #f4e5da;
  }

  .title-description{
    font-size: x-small;
    margin-top: -6%;
    color: #d7bca7;
  }

  /* ================= INSTAGRAM BUTTON ================= */
.btninst {
    width: 19%; /* اندازه دکمه به 10% کاهش یافت */
    max-width: 190px; /* حداکثر عرض نیز به نصف کاهش یافت */
    height: 38px; /* ارتفاع دکمه کمتر شد */
    background-size: contain; /* برای حفظ تناسب تصویر دکمه */
    background-repeat: no-repeat;
    background-position: center;
    position: absolute; /* برای قرارگیری روی تصویر اصلی */
    bottom: 120px; /* فاصله از پایین بنر */
    right: 20px; /* فاصله از سمت راست بنر */
    z-index: 10; /* برای اطمینان از قرارگیری روی سایر لایه‌ها */
  }
  .setm{
    text-align: center;
     font-size: larger; 
     color: #c9b19a;
     margin-top:-20%;
  }

  .logomiras{
    width:75px;
    margin-top: -20%;
  }

  /* ================= CATEGORIES ================= */
  .categories {
    padding: 10px;
    gap: 12px;
  }

  .category-card {
    flex: 0 0 160px;
    height: 220px;
  }

  /* ================= PRODUCTS ================= */
  .products-grid {
    justify-content: center;
    gap: 15px;
  }

  .product-card {
    width: 160px;
    height: 240px;
  }
  .products-page {
  display: none;
  margin-top:20%;
}

.products-page.active {
  display: block;
}


  /* ================= CONTACT (IMPORTANT FIX) ================= */
  .contact-info {
    width: 100% !important;   /* ❗ FIX اصلی تو */
    flex-direction: column;
    padding: 15px;
  }

  .contact-item {
    width: 100%;
    border-left: none;
    border-bottom: 1px solid rgba(255,218,177,0.2);
  }

  /* details */
  .details-page {
  display: none;
  margin-top:20%;
}

.details-page.active {
  display: block;
}

.details-container {
  background: linear-gradient(135deg, #382011 0%, #463222da 100%);
  border-radius: 16px;
  padding: 4%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.details-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2%;
  margin-bottom: 4%;
}

.details-image {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-radius: 12px;
  background-color: transparent;
}

.details-info h2 {
  font-size: 25px;
  color: #9c7e63;
  margin-bottom: 5%;
}

.details-price {
  font-size: 15px;
  color: #a47f62;
  font-weight: bold;
  margin-bottom: 5%;
}

.specs-section h3 {
  font-size: 24px;
  font-weight: bolder;
  color: #82664b;
  margin-bottom: 5%;
  border-bottom: 3px solid #6b4a39;
  padding-bottom: 2%;
}

.spec-item {
  display: flex;
  padding: 1% 0%;
  border-bottom: 1px solid #654733;
}

.spec-label {
  font-weight: bold;
  color: #624d30;
  width: 30%;
}

.spec-value {
  color: #795436;
  font-weight: bolder;
}

 /* ==========================================================================
   ۸. فوتر سایت (Footer)
   ========================================================================== */
.main-footer {
  background-color: #482f1c37;
  color: #bfa78f;
  padding: 60px 20px;
  direction: rtl;
  font-family: 'Tahoma', sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap; /* از شکستن ستون‌ها به زیر هم جلوگیری می‌کند */
  justify-content: space-between;
}

.footer-column {
  flex: 1;
  min-width: 0; /* محدودیت قبلی حذف شد تا ستون‌ها بتوانند فشرده شوند */
  margin-bottom: 0;
  padding: 0 15px;
  text-align: right;
}

.footer-column:not(:last-child) {
  border-left: 1px dotted #4a3b30;
}

.footer-column h3 {
  color: #d1b496;
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: normal;
  white-space: nowrap; /* جلوگیری از دو خطی شدن عناوین مهم */
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: #bfa78f;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 14px;
}

.footer-column ul li a:hover {
  color: #ffffff;
}

/* ==========================================================================
   ۸. فوتر سایت (Footer) - نسخه نهایی اصلاح شده بدون تداخل
   ========================================================================== */
.main-footer {
  background-color: #482f1c37;
  color: #bfa78f;
  padding: 60px 20px;
  direction: rtl;
  font-family: 'Tahoma', sans-serif;
  clear: both;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.footer-column {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
  padding: 0 15px;
  text-align: right;
}

.footer-column:not(:last-child) {
  border-left: 1px dotted #4a3b30;
}

.footer-column h3 {
  color: #d1b496;
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: normal;
  white-space: nowrap;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: #bfa78f;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 14px;
}

.footer-column ul li a:hover {
  color: #ffffff;
}

/* رفع استایل‌های تداخلی صفحه جزئیات برای حذف اسکرول اضافی */
.details-page.active {
  display: block !important;
  margin-bottom: 0 !important;
  margin-top: 20%;
  padding-bottom: 0 !important;
}

/* اصلاحات اختصاصی برای صفحات کوچک (موبایل و قاب گوشی) */
@media screen and (max-width: 768px) {
  .main-footer {
    padding: 30px 10px !important;
    margin-top: 40%;
  }

  /* مخفی کردن کامل بخش دوم (دسترسی سریع) در حالت موبایل */
  .footer-column:nth-child(2) {
    display: none !important;
  }

  /* مخفی کردن کامل بخش سوم (محصولات) در حالت موبایل */
  .footer-column:nth-child(3) {
    display: none !important;
  }

  .footer-column {
    padding: 0 12px !important;
  }

  .footer-column h3 {
    font-size: 14px !important;
    margin-bottom: 12px !important;
  }

  .footer-column ul li {
    margin-bottom: 8px !important;
  }

  .footer-column ul li a {
    font-size: 12px !important;
  }
}
}