/* style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -moz-tap-highlight-color: transparent;
}

@font-face {
  font-family: 'Vazir';
  src: url('/contents/font/Vazir-Black.woff2') format('woff2');
  font-display: swap;
}

body {
  font-family: 'Vazir', sans-serif;
  background: #fefaf5;
  color: #2c241a;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== HEADER ========== */
.header {
  background: #2c241a;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #4a3f32;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 24px;
  flex-wrap: wrap;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.logo-img-header {
  height: 55px;
  width: auto;
  border-radius: 1rem;
  background: #efeadc;
  padding: 4px;
  transition: transform 0.2s ease;
}
.logo-img-header:hover {
  transform: scale(1.02);
}
.store-name {
  font-size: 1.4rem;
  font-weight: bold;
  color: #efeadc;
  letter-spacing: 1px;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  text-decoration: none;
  color: #efeadc;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 0%;
  height: 2px;
  background: #c7a252;
  transition: width 0.3s ease;
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-links a:hover {
  color: #c7a252;
}
.auth-buttons {
  display: flex;
  gap: 1rem;
}
.btn-outline, .btn-primary-nav {
  text-decoration: none;
  padding: 0.5rem 1.2rem;
  border-radius: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}
.btn-outline {
  border: 1px solid #c7a252;
  color: #c7a252;
  background: transparent;
}
.btn-outline:hover {
  background: #c7a25220;
  transform: translateY(-2px);
}
.btn-primary-nav {
  background: #c7a252;
  color: #2c241a;
}
.btn-primary-nav:hover {
  background: #dbb46a;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* دکمه همبرگری */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.hamburger-line {
  width: 28px;
  height: 2.5px;
  background-color: #efeadc;
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
}
.mobile-menu-toggle.open .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-menu-toggle.open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.open .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* منوی کشویی */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}
.drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: #2c241a;
  box-shadow: -4px 0 20px rgba(0,0,0,0.2);
  z-index: 210;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}
.drawer.open {
  right: 0;
}
.drawer-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid #4a3f32;
  margin-bottom: 1.5rem;
}
.drawer-title {
  font-size: 1.4rem;
  color: #efeadc;
  font-weight: bold;
}
.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.drawer-nav a {
  text-decoration: none;
  color: #efeadc;
  font-size: 1.1rem;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}
.drawer-nav a:hover {
  color: #c7a252;
  padding-right: 0.5rem;
}
.drawer-auth {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.btn-outline-drawer, .btn-primary-drawer {
  text-align: center;
  text-decoration: none;
  padding: 0.7rem;
  border-radius: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}
.btn-outline-drawer {
  border: 1px solid #c7a252;
  color: #c7a252;
}
.btn-outline-drawer:hover {
  background: #c7a25220;
  transform: translateX(-4px);
}
.btn-primary-drawer {
  background: #c7a252;
  color: #2c241a;
}
.btn-primary-drawer:hover {
  background: #dbb46a;
  transform: translateX(-4px);
}

/* ========== HERO ========== */
.hero {
  background: #f9f2e7;
  padding: 3rem 0;
}
.hero-grid {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-content {
  flex: 1;
}
.hero-content h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}
.hero-content h1 span {
  color: #b47c44;
}
.hero-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #5b4a34;
}
.btn-hero {
  display: inline-block;
  margin-top: 1.8rem;
  background: #c7a252;
  color: #2c241a;
  padding: 0.8rem 2rem;
  border-radius: 1rem;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}
.btn-hero:hover {
  background: #b88d42;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.hero-image {
  flex: 1;
  text-align: center;
}
.hero-banner-img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 1rem;
  transition: transform 0.3s ease;
}
.hero-banner-img:hover {
  transform: scale(1.02);
}

/* ========== دسته بندی ========== */
.categories {
  padding: 3rem 0;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #4f3a26;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.8rem;
}
.category-card {
  background: #fff6ed;
  border-radius: 1rem;
  padding: 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #f0e1d0;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 25px -10px rgba(0,0,0,0.15);
  border-color: #c7a252;
}
.cat-icon {
  font-size: 2.6rem;
  transition: transform 0.2s ease;
}
.category-card:hover .cat-icon {
  transform: scale(1.1);
}
.category-card h3 {
  margin: 0.6rem 0;
}

/* ========== اسلایدرها ========== */
.products-slider-section, .testimonials-slider {
  margin: 2rem 0;
}
.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.slider-container {
  overflow-x: auto;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
  border-radius: 1rem;
}
.slider-container::-webkit-scrollbar {
  display: none;
}
.slider-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.slider-container:active {
  cursor: grabbing;
}
.slider-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
}
.product-card {
  width: 220px;
  background: white;
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 6px 12px rgba(0,0,0,0.03);
  border: 1px solid #eddabc;
  transition: all 0.3s ease;
}
.product-card:hover {
  box-shadow: 0 15px 25px -8px rgba(0,0,0,0.1);
  border-color: #c7a252;
}
.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #e4d4be;
  border-radius: 1rem;
  margin-bottom: 0.7rem;
  transition: transform 0.3s ease;
}
.product-card:hover .product-img {
  transform: scale(1.02);
}
.per-meter {
  font-size: 0.8rem;
  color: #7a6233;
  margin-top: 0.3rem;
}
.price {
  color: #b67b34;
  font-weight: bold;
  margin: 0.2rem 0 0.5rem;
}
.detail-btn {
  background: none;
  border: 1px solid #c7a252;
  padding: 0.4rem 1.2rem;
  border-radius: 1rem;
  cursor: pointer;
  font-family: Vazir;
  transition: all 0.3s ease;
}
.detail-btn:hover {
  background: #c7a252;
  color: white;
  transform: scale(1.05);
}
.testimonial-card {
  width: 280px;
  background: white;
  border-radius: 1rem;
  padding: 1.8rem;
  box-shadow: 0 8px 18px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  box-shadow: 0 15px 25px -8px rgba(0,0,0,0.1);
}
.testimonial-card p {
  font-style: italic;
}
.stars {
  color: #f1b742;
  margin-top: 0.6rem;
}
.testimonials-slider {
  background: #f5ede2;
  padding: 3rem 0;
  margin: 2rem 0;
}

/* ========== فوتر ========== */
.footer {
  background: #2c241a;
  color: #efeadc;
  padding-top: 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.footer-col h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li a, .footer-col p {
  color: #d6cbbc;
  text-decoration: none;
  line-height: 1.8;
  transition: all 0.3s ease;
}
.footer-col ul li a:hover {
  color: #c7a252;
  padding-right: 5px;
}
.footer-logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.footer-logo-img {
  height: 45px;
  width: auto;
  border-radius: 0.8rem;
  background: #efeadc;
  padding: 3px;
  transition: transform 0.2s ease;
}
.footer-logo-img:hover {
  transform: scale(1.05);
}
.footer-logo-area h4 {
  margin: 0;
  font-size: 1.3rem;
  color: #efeadc;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
  color: #d6cbbc;
  transition: all 0.3s ease;
}
.contact-item:hover {
  color: #c7a252;
  transform: translateX(-4px);
}
.contact-item svg {
  flex-shrink: 0;
  color: #c7a252;
}
.social-icons {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}
.social-icon svg {
  width: 28px;
  height: 28px;
  color: #efeadc;
  transition: all 0.3s ease;
}
.social-icon:hover svg {
  color: #c7a252;
  transform: translateY(-3px);
}
.enamad-wrapper {
  margin-top: 1rem;
  text-align: center;
}
.enamad-label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  color: #c7a252;
}
.enamad-box {
  background: #efeadc20;
  padding: 0.8rem;
  border-radius: 1rem;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.3s ease;
}
.enamad-box:hover {
  transform: scale(1.05);
  background: #efeadc30;
}
.enamad-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.footer-bottom {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid #4a3f32;
  margin-top: 2rem;
  font-size: 0.8rem;
}

/* ========== ریسپانسیو ========== */
@media (max-width: 800px) {
  .nav-links, .auth-buttons { display: none; }
  .mobile-menu-toggle { display: flex; }
  .hero-grid { flex-direction: column; text-align: center; }
  .slider-header { flex-direction: column; align-items: center; gap: 0.5rem; }
  .store-name { font-size: 1.1rem; }
}
@media (max-width: 550px) {
  .product-card { width: 180px; }
  .testimonial-card { width: 240px; }
  .category-grid { gap: 1rem; }
  .enamad-box {
    width: 80px;
    height: 80px;
    padding: 0.5rem;
  }
}