/* ==================== ریست و فونت ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Vazirmatn', sans-serif;
  scroll-behavior: smooth;
}

body {
  background: #12121f;
  color: #f5f5f5;
  line-height: 1.7;
}

.container {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
}

/* ==================== هدر ==================== */
header {
  background: rgba(28,28,46,0.7);
  backdrop-filter: blur(12px);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row-reverse;
  gap: 1rem;
  position: relative;
  z-index: 202;
}

header h1.logo {
  color: #ffce7b;
  font-weight: 900;
  font-size: 2rem;
  position: relative;
  z-index: 203;
}

header nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

header nav a {
  color: #f5f5f5;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: 0.3s;
}

header nav a::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: #ffce7b;
  transition: 0.3s;
  margin-top: 4px;
}

header nav a:hover::after {
  width: 100%;
}

/* ==================== همبرگر ==================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  cursor: pointer;
  z-index: 201;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #ffce7b;
  border-radius: 3px;
  transition: all 0.4s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==================== Hero ==================== */
.hero {
  position: relative;
  background: url('roses-bg.jpg') no-repeat center/cover;
  padding: 8rem 0 7rem;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18,18,31,0.65);
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ffce7b;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: #d1d1d1;
}

.btn {
  padding: 0.9rem 3rem;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg,#ffce7b,#ff9e5b);
  color: #12121f;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: 0.4s;
  box-shadow: 0 0 15px rgba(255,206,123,0.6);
}

.btn:hover {
  background: linear-gradient(135deg,#ffd97f,#ff7e5f);
  transform: scale(1.08);
  box-shadow: 0 0 25px rgba(255,206,123,0.9);
}

/* ==================== سکشن‌ها ==================== */
.section {
  padding: 6rem 0;
  text-align: center;
}

/* ==================== Features ==================== */
.features {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.feature {
  background: #1e1e33;
  padding: 1.5rem 3rem;
  border-radius: 25px;
  font-weight: 700;
  transition: transform 0.4s, box-shadow 0.4s;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.feature:hover {
  background: #2a2a4a;
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

/* ==================== محصولات ==================== */
.product-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.product-card {
  background: #1c1c2e;
  padding: 1.2rem;
  border-radius: 25px;
  width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  transition: transform 0.6s ease, box-shadow 0.4s;
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.product-card:hover {
  transform: perspective(1000px) rotateY(8deg) translateY(-12px) scale(1.05);
  box-shadow: 0 20px 30px rgba(0,0,0,0.7);
}

.product-card img {
  width: 100%;
  border-radius: 20px;
}

.product-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  text-align: center;
}

.price {
  color: #ffce7b;
  font-weight: 700;
  font-size: 1.1rem;
}

.product-card .btn.small-btn {
  width: 100%;
  padding: 0.6rem 0;
  font-size: 0.95rem;
  border-radius: 12px;
}

/* ==================== فرم سفارش ==================== */
form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 450px;
  margin: 2.5rem auto 0;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: #12121f;
  border-radius: 12px;
  padding: 8px 12px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}

.input-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.input-group input {
  flex: 1;
  background: transparent;
  border: 0;
  color: #f5f5f5;
  padding: 10px 8px;
  font-size: 1rem;
  outline: none;
}

input::placeholder {
  color: #aaa;
}

.input-group:focus-within {
  border-color: rgba(255,206,123,0.95);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  transform: translateY(-2px);
  box-shadow:
    0 0 8px rgba(255,206,123,0.25),
    0 0 28px rgba(255,206,123,0.18),
    0 4px 30px rgba(0,0,0,0.35);
  animation: glowPulse 1.2s ease-in-out infinite;
}

.input-group:focus-within .input-icon {
  transform: scale(1.05) translateX(-2px);
  filter: drop-shadow(0 4px 12px rgba(255,206,123,0.12));
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow:
      0 0 6px rgba(255,206,123,0.18),
      0 0 18px rgba(255,206,123,0.12),
      0 6px 20px rgba(0,0,0,0.28);
  }
  50% {
    box-shadow:
      0 0 10px rgba(255,206,123,0.28),
      0 0 28px rgba(255,206,123,0.22),
      0 10px 30px rgba(0,0,0,0.32);
  }
}

.submit-btn {
  background: linear-gradient(135deg,#ffce7b,#ff9e5b);
  border: none;
  color: #12121f;
  font-weight: 800;
  border-radius: 12px;
  padding: 0.9rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.submit-btn:hover {
  background: linear-gradient(135deg,#ffd97f,#ff7e5f);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255,206,123,0.5);
}

/* ==================== Testimonials ==================== */
.testimonial {
  background: #1e1e33;
  padding: 1.5rem;
  margin: 1rem auto;
  max-width: 500px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

/* ==================== FAQ ==================== */
.faq-item {
  text-align: right;
  background: #1e1e33;
  padding: 1rem 1.5rem;
  margin: 1rem auto;
  border-radius: 12px;
  max-width: 700px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.faq-item h3 {
  color: #ffce7b;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* ==================== Footer ==================== */
footer {
  background: #1c1c2e;
  color: #f5f5f5;
  padding: 2.5rem;
  text-align: right;
  font-size: 0.95rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto 1.5rem;
}

.footer-column {
  flex: 1 1 300px;
}

.footer-column h3 {
  color: #ffce7b;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  border-bottom: 2px solid #ffce7b;
  display: inline-block;
  padding-bottom: 4px;
}

.footer-column p {
  margin: 0.7rem 0;
  line-height: 1.6;
  color: #d1d1d1;
}

.footer-rights {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 1.5rem;
  padding-top: 2rem;
  margin-bottom: -0.8rem;
  margin-right: -2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
  header .logo {
    font-size: 1.8rem;
    z-index: 203;
  }

  /* همبرگر سمت راست */
  .hamburger {
    display: flex;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 201;
  }

  /* منوی موبایل راست‌چین */
  header nav ul.menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100vh;
    background: #12121f;
    flex-direction: column;
    gap: 2rem;
    padding: 6rem 1.5rem 2rem 1.5rem;
    overflow-y: auto;
    align-items: flex-end; /* آیتم‌ها راست‌چین */
    text-align: right; /* متن‌ها راست‌چین */
    transform: translateX(100%); /* اول خارج از صفحه */
    transition: transform 0.4s ease;
    z-index: 200;
    direction: rtl; /* آیتم‌ها راست به چپ */
  }

  /* وقتی منو باز شد */
  header nav ul.menu.show {
    transform: translateX(0);
  }

  header nav ul.menu li {
    width: 100%;
  }

  header nav ul.menu li a {
    display: block;
    width: 100%;
  }

  .product-list {
    flex-direction: column;
    align-items: center;
  }

  .product-card {
    width: 90%;
  }
}

/* Chrome, Safari, Edge */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

.menu{
  padding-top: 0.5rem;
}
