* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Vazirmatn', sans-serif;
  background-color: #fafafa;
  color: #222;
  line-height: 1.6;
  padding-top: 80px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* هدر */
.header {
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  padding: 15px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.3s ease;
  box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

.header.scrolled {
  background: rgba(0,0,0,0.95);
  padding: 12px 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  width: 180px;
  height: auto;
}

.nav a {
  color: white;
  text-decoration: none;
  margin: 0 0.8rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover {
  color: #ffd700;
}

.cart {
  font-size: 1.5rem;
  cursor: pointer;
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  left: -8px;
  background: #e63946;
  color: white;
  font-size: 0.75rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.header.hide {
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

/* اسلایدر  */
.slider-container {
  max-width: 1200px;
  margin: 30px auto;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  height: 500px;
}

.slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
}

.slide-content {
  position: absolute;
  bottom: 50px;
  right: 50px;
  color: white;
  background: rgba(0,0,0,0.6);
  padding: 20px 30px;
  border-radius: 10px;
  max-width: 40%;
  direction: rtl;
  text-align: right;
  font-family: 'Vazirmatn', sans-serif;
}

.slide-content h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.slide-content p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: white;
  transform: scale(1.2);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.slider-btn:hover {
  background: rgba(0,0,0,0.8);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

/* محصولات */
.products {
  padding: 4rem 0;
  text-align: center;
}

.products h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.subtitle {
  color: #666;
  margin-bottom: 2.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-8px);
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-card h3 {
  padding: 1rem;
  font-size: 1.2rem;
}

.price {
  color: #e63946;
  font-weight: 700;
  padding: 0 1rem;
}

.product-card .btn {
  margin: 1rem;
  width: calc(100% - 2rem);
  background: gold;
  color: #000;
  border: none;
  padding: 0.8rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
}

.product-card .btn:hover {
  background: #e6c200;
}

/* دکمه "درباره ما" */
.about-btn {
  background: #e63946;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.95rem;
  transition: background 0.3s ease, transform 0.2s;
  display: inline-block;
  margin-top: 0.8rem;
}

.about-btn:hover {
  background: #c1121f;
  transform: translateY(-2px);
}

/* پنل محتوای درباره ما */
.about-content {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  line-height: 1.6;
  font-size: 0.9rem;
  color: #ddd;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-content p {
  margin: 0.5rem 0;
}

/* فوتر */
.footer-3d {
  background: linear-gradient(145deg, #0f0f0f, #1a1a1a);
  color: white;
  text-align: center;
  padding: 60px 20px 30px;
  font-family: 'Vazirmatn', sans-serif;
  perspective: 1000px;
  margin-top: 50px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
  text-align: right;
}

.footer-section h3,
.footer-section h4 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #ffd700;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after,
.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 3px;
  background: #ffd700;
  border-radius: 3px;
}

.footer-section p {
  color: #aaa;
  line-height: 1.8;
  font-size: 0.95rem;
}

.footer-section.links a,
.footer-section.contact a {
  display: block;
  color: #ddd;
  text-decoration: none;
  margin: 10px 0;
  padding: 8px 0;
  transition: all 0.3s;
  border-radius: 5px;
}

.footer-section.links a:hover,
.footer-section.contact a:hover {
  color: #ffd700;
  background: rgba(255, 215, 0, 0.1);
  padding-right: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  color: #ddd;
}

.contact-item i {
  color: #ffd700;
  font-size: 1.2rem;
}

.social-icons-3d {
  margin: 30px 0;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.icon {
  display: inline-block;
  margin: 0 18px;
  font-size: 32px;
  color: white;
  transition: transform 0.4s, color 0.4s, text-shadow 0.4s;
  position: relative;
}

.icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background: rgba(255, 215, 0, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.4s;
}

.icon:hover::before {
  transform: translate(-50%, -50%) scale(1.5);
}

.icon:hover {
  transform: rotateY(20deg) rotateX(10deg) scale(1.4);
  text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.insta:hover {
  color: #f09433;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.telegram:hover {
  color: #0088cc;
  text-shadow: 0 0 15px rgba(0, 136, 204, 0.7);
}

.whatsapp:hover {
  color: #25D366;
  text-shadow: 0 0 15px rgba(37, 211, 102, 0.7);
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-3d {
  margin: 0;
  font-size: 0.9rem;
  color: #888;
}

.copyright-3d i {
  margin-left: 5px;
  color: #ffd700;
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .social-icons-3d {
    margin: 25px 0;
  }

  .icon {
    font-size: 28px;
    margin: 0 15px;
  }
}

@media (max-width: 480px) {
  .footer-3d {
    padding: 40px 15px 20px;
  }

  .icon {
    font-size: 26px;
    margin: 0 12px;
  }

  .footer-section h3,
  .footer-section h4 {
    font-size: 1.2rem;
  }

  .footer-bottom {
    margin-top: 20px;
    padding-top: 15px;
  }
}

/* استایل صفحه لاگین */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.auth-container {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  width: 90%;
  max-width: 450px;
  text-align: center;
  position: relative;
}

.logo-auth {
  margin-bottom: 20px;
}

.logo-img-auth {
  width: 120px;
  height: auto;
}

.auth-container h1 {
  margin-bottom: 1.5rem;
  color: #000;
  font-size: 1.8rem;
  font-weight: 700;
}

.auth-container input {
  width: 100%;
  padding: 12px 15px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.auth-container input:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0;
  font-size: 0.9rem;
}

.remember-forgot label {
  color: #555;
  cursor: pointer;
}
.forgot-password {
  color: #e63946;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.forgot-password:hover {
  color: #c1121f;
  text-decoration: underline;
}

.divider {
  margin: 25px 0;
  position: relative;
  text-align: center;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #ddd;
}

.divider span {
  background: white;
  padding: 0 15px;
  color: #888;
  position: relative;
  font-size: 0.9rem;
}

.btn-social {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 30px;
  background: white;
  color: #555;
  font-family: 'Vazirmatn', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-social.google:hover {
  background: #ea4335;
  color: white;
  border-color: #ea4335;
}

.btn-social i {
  font-size: 1.2rem;
}

/* ریسپانسیو اسلایدر */
@media (max-width: 768px) {
  .slider-container {
    height: 350px;
  }

  .slide-content {
    bottom: 30px;
    right: 20px;
    max-width: 80%;
    padding: 15px 20px;
  }

  .slide-content h2 {
    font-size: 1.8rem;
  }

  .slide-content p {
    font-size: 1rem;
  }
}
/* ============ سبد خرید ============ */
.cart-container {
  padding: 4rem 0;
  background: #f8f9fa;
  min-height: 80vh;
}

.page-title {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: #333;
  text-align: center;
}

.page-title i {
  margin-left: 10px;
  color: #ffd700;
}

/* سبد خالی */
.empty-cart {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.empty-cart i {
  font-size: 5rem;
  color: #ddd;
  margin-bottom: 20px;
}

.empty-cart h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #555;
}

.empty-cart p {
  color: #888;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

/* محتوای سبد خرید - ساختار 2 ستونی */
.cart-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.cart-items {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cart-items h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #333;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

/* جدول سبد خرید */
.cart-table {
  width: 100%;
}

.cart-header,
.cart-row {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1fr 0.5fr;
  gap: 15px;
  padding: 15px 10px;
  align-items: center;
}

.cart-header {
  background: #f8f9fa;
  font-weight: 600;
  color: #555;
  border-radius: 8px;
  margin-bottom: 10px;
}

.cart-col {
  text-align: center;
}

.cart-col.product {
  text-align: right;
  display: flex;
  align-items: center;
  gap: 15px;
}

.cart-col.product img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.product-info h4 {
  font-size: 1rem;
  color: #333;
}

.cart-col.price,
.cart-col.total {
  font-weight: 600;
  color: #e63946;
}

/* کنترل تعداد */
.quantity-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.quantity-control button {
  width: 30px;
  height: 30px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.quantity-control button:hover {
  background: #ffd700;
  border-color: #ffd700;
  color: #000;
}

.quantity-control span {
  min-width: 30px;
  font-weight: 600;
}

/* دکمه حذف */
.btn-remove {
  background: #e63946;
  color: white;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-remove:hover {
  background: #c1121f;
  transform: scale(1.1);
}

/* خلاصه سفارش */
.cart-summary {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  position: sticky;
  top: 100px;
}

.cart-summary h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #333;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-divider {
  height: 2px;
  background: #ffd700;
  margin: 15px 0;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #e63946;
  border-top: 2px solid #ffd700;
}

/* کد تخفیف */
.discount-code {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 2px solid #f0f0f0;
}

.discount-code h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #333;
}

.discount-input {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.discount-input input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Vazirmatn', sans-serif;
}

.btn-apply {
  background: #28a745;
  color: white;
  border: none;
  padding: 0 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-apply:hover {
  background: #218838;
}

.discount-message {
  font-size: 0.9rem;
  margin-top: 5px;
}

/* اطلاعات مشتری */
.customer-info,
.shipping-method {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 2px solid #f0f0f0;
}

.customer-info h3,
.shipping-method h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #333;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #555;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Vazirmatn', sans-serif;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ffd700;
}

/* روش ارسال */
.shipping-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.shipping-option {
  display: flex;
  align-items: center;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.shipping-option:hover {
  border-color: #ffd700;
}

.shipping-option input[type="radio"] {
  margin-left: 15px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.shipping-option span {
  flex: 1;
}

.shipping-option span strong {
  display: block;
  color: #333;
  font-size: 1.1rem;
}

.shipping-option span small {
  display: block;
  color: #888;
  font-size: 0.9rem;
  margin-top: 5px;
}

.shipping-option input[type="radio"]:checked + span {
  color: #ffd700;
}

/* دکمه پرداخت */
.btn-checkout {
  width: 100%;
  background: linear-gradient(135deg, #e63946, #c1121f);
  color: white;
  border: none;
  padding: 15px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 30px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.6);
}

.btn-checkout:active {
  transform: translateY(0);
}

/* صفحه پرداخت */
.payment-container {
  padding: 4rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.payment-box {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-width: 800px;
  margin: 0 auto;
}

.payment-header {
  text-align: center;
  margin-bottom: 30px;
}

.payment-header i {
  font-size: 3rem;
  color: #ffd700;
  margin-bottom: 15px;
}

.payment-header h1 {
  font-size: 2rem;
  color: #333;
}

.order-summary,
.payment-info,
.payment-gateway {
  margin-bottom: 30px;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 15px;
}

.order-summary h2,
.payment-info h2,
.payment-gateway h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-item {
  margin-bottom: 10px;
  color: #555;
}

.info-item strong {
  display: block;
  margin-bottom: 5px;
  color: #333;
}

.gateway-info {
  background: white;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 25px;
  border: 1px solid #e0e0e0;
}

.gateway-info p {
  margin-bottom: 10px;
  color: #555;
}

.gateway-info i {
  margin-left: 10px;
  color: #28a745;
}

.payment-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.btn-pay,
.btn-wallet {
  padding: 15px;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-pay {
  background: linear-gradient(135deg, #ffd700, #ff9900);
  color: #000;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-pay:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.btn-wallet {
  background: linear-gradient(135deg, #1e90ff, #4169e1);
  color: white;
  box-shadow: 0 4px 15px rgba(30, 144, 255, 0.4);
}

.btn-wallet:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 144, 255, 0.6);
}

/* وضعیت پرداخت */
.payment-status {
  margin-top: 30px;
  padding: 30px;
  background: white;
  border-radius: 15px;
  text-align: center;
}

.status-icon i {
  font-size: 3rem;
  margin-bottom: 15px;
}

#statusMessage {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

#statusDetails {
  color: #888;
  font-size: 1.1rem;
}

/* صفحه موفقیت */
.success-container {
  padding: 4rem 0;
  background: linear-gradient(135deg, #28a745, #20c997);
  min-height: 100vh;
}

.success-box {
  background: white;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.success-icon {
  margin-bottom: 30px;
}

.success-icon i {
  font-size: 6rem;
  color: #28a745;
}

.success-box h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #333;
}

.success-message {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 40px;
}

.order-details {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 30px;
}

.order-details h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #333;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
}

.detail-item:last-child {
  border-bottom: none;
}

.status-badge {
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.status-badge.paid {
  background: #d4edda;
  color: #155724;
}

.next-steps {
  background: #e7f3ff;
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 30px;
  text-align: right;
}

.next-steps h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #007bff;
}

.next-steps ul {
  list-style: none;
  padding: 0;
}

.next-steps li {
  padding: 10px 0;
  color: #555;
  font-size: 1.05rem;
}

.next-steps li i {
  margin-left: 10px;
  color: #28a745;
}

.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 30px;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 15px 25px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #ffd700, #ff9900);
  color: #000;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.btn-secondary {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.6);
}

.contact-info {
  background: #fff3cd;
  padding: 20px;
  border-radius: 15px;
  border: 1px solid #ffeaa7;
}

.contact-info p {
  color: #856404;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.phone-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #e63946;
  text-decoration: none;
  margin-top: 10px;
}

.phone-number:hover {
  color: #c1121f;
}

/* ریسپانسیو سبد خرید */
@media (max-width: 768px) {
  .cart-content {
    grid-template-columns: 1fr;
  }

  .cart-header,
  .cart-row {
    grid-template-columns: 1fr;
    text-align: right;
  }

  .cart-col.product {
    flex-direction: column;
    align-items: flex-start;
  }

  .payment-buttons,
  .action-buttons {
    grid-template-columns: 1fr;
  }
}

/* دکمه به‌روزرسانی آمار */
.btn-refresh {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.95rem;
  transition: background 0.3s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-refresh:hover {
  background: #45a049;
  transform: translateY(-2px);
}

/* چت‌بات */
.chatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

.chat-header {
  background: #e63946;
  color: white;
  padding: 15px;
  border-radius: 15px 15px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.chat-toggle {
  background: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
}

.chat-messages {
  padding: 15px;
  height: 300px;
  overflow-y: auto;
  background: #f9f9f9;
}

.chat-message {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 10px;
  max-width: 80%;
}

.user-message {
  background: #e63946;
  color: white;
  margin-left: auto;
  text-align: right;
}

.bot-message {
  background: #ddd;
  color: #333;
}

.chat-input {
  display: flex;
  padding: 10px;
  border-top: 1px solid #eee;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-family: 'Vazirmatn', sans-serif;
  direction: rtl;
  text-align: right;
}

.chat-input button {
  background: #e63946;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 20px;
  margin-right: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

.chat-input button:hover {
  background: #c1121f;
}

/* آیکون چت‌بات در هدر */
.chat-icon {
  font-size: 1.4rem;
  color: white;
  cursor: pointer;
  transition: transform 0.2s, color 0.2s;
}

.chat-icon:hover {
  color: #ffd700;
  transform: scale(1.1);
}


/* ==================== نسخه نهایی کامل موبایل - شیک شو ==================== */

@media (max-width: 768px) {

  /* ===== هدر - لوگو چپ + منو وسط + سبد/چت چپ ===== */
  .header {
    padding: 6px 0 !important;
  }

  .header .container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 5px 10px !important;
  }

  .logo {
    order: 1 !important;
    text-align: left !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    position: static !important;
    transform: none !important;
  }

  .logo-img {
    width: 85px !important;
    height: auto !important;
  }

  .nav {
    order: 2 !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    width: auto !important;
    gap: 3px !important;
    margin: 0 !important;
    flex: 1 !important;
  }

  .nav a {
    margin: 0 2px !important;
    padding: 4px 6px !important;
    font-size: 0.75rem !important;
    white-space: nowrap !important;
    background: transparent !important;
    border-radius: 4px !important;
  }

  .header-actions {
    order: 3 !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    width: auto !important;
    flex: 0 0 auto !important;
    justify-content: flex-start !important;
  }

  .cart i,
  .chat-icon i {
    font-size: 1.2rem !important;
  }

  .cart-count {
    width: 16px !important;
    height: 16px !important;
    font-size: 0.7rem !important;
    top: -5px !important;
    left: -5px !important;
  }

  body {
    padding-top: 55px !important;
  }

  /* ===== محصولات - 3 ستونه ===== */
  .product-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    padding: 0 10px !important;
  }

  .product-card {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .product-card img {
    height: 120px !important;
    object-fit: cover !important;
  }

  .product-card h3 {
    font-size: 0.85rem !important;
    padding: 8px 5px !important;
    margin: 0 !important;
  }

  .product-card .price {
    font-size: 0.8rem !important;
    padding: 0 5px !important;
  }

  .product-card .btn {
    margin: 8px 5px !important;
    padding: 8px !important;
    font-size: 0.75rem !important;
    width: calc(100% - 10px) !important;
  }

  .products h2 {
    font-size: 1.3rem !important;
  }

  .subtitle {
    font-size: 0.85rem !important;
    padding: 0 10px !important;
  }

  /* ===== فوتر - 3 ستونه ===== */
  .footer-content {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    text-align: right !important;
    padding: 0 10px !important;
  }

  .footer-section {
    text-align: right !important;
  }

  .footer-section h3,
  .footer-section h4 {
    font-size: 1rem !important;
    margin-bottom: 15px !important;
    padding-bottom: 8px !important;
  }

  .footer-section h3::after,
  .footer-section h4::after {
    right: 0 !important;
    transform: none !important;
    width: 30px !important;
  }

  .footer-section p {
    font-size: 0.8rem !important;
    line-height: 1.6 !important;
  }

  .footer-section.links a {
    font-size: 0.8rem !important;
    padding: 6px 0 !important;
    margin: 5px 0 !important;
  }

  .contact-item {
    font-size: 0.8rem !important;
    margin: 8px 0 !important;
  }

  .contact-item i {
    font-size: 1rem !important;
  }

  .about-btn {
    font-size: 0.8rem !important;
    padding: 0.5rem 1rem !important;
    margin-top: 0.5rem !important;
  }

  .social-icons-3d {
    margin: 20px 0 !important;
    padding-top: 20px !important;
  }

  .icon {
    font-size: 24px !important;
    margin: 0 12px !important;
  }

  .copyright-3d {
    font-size: 0.8rem !important;
  }
}

/* ===== موبایل خیلی کوچک ===== */
@media (max-width: 480px) {

  .header {
    padding: 5px 0 !important;
  }

  .nav a {
    font-size: 0.7rem !important;
    padding: 3px 5px !important;
  }

  .logo-img {
    width: 70px !important;
  }

  .cart i,
  .chat-icon i {
    font-size: 1.1rem !important;
  }

  body {
    padding-top: 50px !important;
  }

  .product-grid {
    gap: 8px !important;
    padding: 0 5px !important;
  }

  .product-card img {
    height: 100px !important;
  }

  .product-card h3 {
    font-size: 0.75rem !important;
    padding: 5px 3px !important;
  }

  .product-card .price {
    font-size: 0.7rem !important;
  }

  .product-card .btn {
    font-size: 0.65rem !important;
    padding: 6px !important;
    margin: 5px 3px !important;
    width: calc(100% - 6px) !important;
  }

  .footer-content {
    gap: 15px !important;
    padding: 0 5px !important;
  }

  .footer-section h3,
  .footer-section h4 {
    font-size: 0.9rem !important;
    margin-bottom: 10px !important;
  }

  .footer-section p,
  .footer-section.links a,
  .contact-item {
    font-size: 0.75rem !important;
  }

  .about-btn {
    font-size: 0.75rem !important;
    padding: 0.4rem 0.8rem !important;
  }

  .icon {
    font-size: 22px !important;
    margin: 0 10px !important;
  }

  .copyright-3d {
    font-size: 0.75rem !important;
  }
}

@media (max-width: 360px) {
  .nav a {
    font-size: 0.65rem !important;
    padding: 2px 4px !important;
  }

  .logo-img {
    width: 60px !important;
  }

  .header-actions {
    gap: 8px !important;
  }

  .product-card img {
    height: 85px !important;
  }

  .product-card h3 {
    font-size: 0.7rem !important;
  }

  .product-card .price {
    font-size: 0.65rem !important;
  }

  .product-card .btn {
    font-size: 0.6rem !important;
    padding: 5px !important;
  }

  .footer-content {
    gap: 10px !important;
  }

  .footer-section h3,
  .footer-section h4 {
    font-size: 0.85rem !important;
  }

  .footer-section p,
  .footer-section.links a,
  .contact-item {
    font-size: 0.7rem !important;
  }
}
