* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Cairo", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #faf1e5;
  color: #5d4037;
  line-height: 1.6;
}

.header {
  background-color: #faf1e5;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(93, 64, 55, 0.1);
  position: relative;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  height: 60px;
  order: 1;
}

.cart-icon {
  font-size: 24px;
  color: #5d4037;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
  order: 2;
}

.cart-icon:hover {
  color: #8d6e63;
}

.cart-count {
  position: absolute;
  top: -8px;
  left: -8px;
  background-color: #d32f2f;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #faf1e5 0%, #f5e6d3 100%);
}

.hero h1 {
  font-family: "Amiri", serif;
  font-size: 3rem;
  margin-bottom: 20px;
  color: #5d4037;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(93, 64, 55, 0.1);
  line-height: 1.4;
  background: linear-gradient(45deg, #5d4037, #8d6e63);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-family: "Cairo", sans-serif;
  font-size: 1.3rem;
  color: #8d6e63;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
}

.products-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.section-title {
  font-family: "Amiri", serif;
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #5d4037;
  font-weight: 700;
}

/* Category Navigation */
.category-nav {
  background-color: #faf1e5;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(12, 65, 65, 0.1);
  margin-bottom: 40px;
}

.category-buttons {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 0 20px;
  flex-wrap: wrap;
}

.category-btn {
  padding: 12px 24px;
  border: 2px solid #8d6e63;
  background: transparent;
  color: #0c4141;
  border-radius: 25px;
  cursor: pointer;
  font-family: "Cairo", sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 16px;
}

.category-btn:hover,
.category-btn.active {
  background: #8d6e63;
  color: white;
  transform: translateY(-2px);
}

.products-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.section-title {
  font-family: "Amiri", serif;
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #8d6e63;
  font-weight: 700;
}

/* Input with icon styling - التعديل الجديد */
.input-with-icon {
  position: relative;
  flex: 1;
}

.input-with-icon input {
  padding-left: 45px !important;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #8d6e63;
  font-size: 16px;
  pointer-events: none;
  z-index: 1;
}

/* إزالة التنسيق القديم للأيقونة في الليبول */
.form-group label i {
  display: none;
}

.form-group label i.fa-search {
  display: none;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.product-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(93, 64, 55, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(93, 64, 55, 0.15);
}

.product-card.out-of-stock {
  opacity: 0.7;
}

/* Product Badge/Notification Styling */
.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #87ceeb, #4fc3f7);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  font-family: "Cairo", sans-serif;
  box-shadow: 0 2px 8px rgba(135, 206, 235, 0.4);
  z-index: 10;
  animation: badgePulse 2s infinite;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes badgePulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(135, 206, 235, 0.4);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(135, 206, 235, 0.6);
  }
}

.product-badge.discount {
  background: linear-gradient(135deg, #ff6b6b, #ff5252);
  animation: discountPulse 1.5s infinite;
}

@keyframes discountPulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
  }

  50% {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.6);
  }
}

.product-badge.pre-order {
  background: linear-gradient(135deg, #9c27b0, #7b1fa2);
}

.product-badge.new {
  background: linear-gradient(135deg, #4caf50, #388e3c);
}

.product-badge.limited {
  background: linear-gradient(135deg, #ff9800, #f57c00);
}

/* تعديل خصائص الصورة الأساسية (للابتوب) */
.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  background-color: #f5f5f5;
}

.product-title {
  font-family: "Cairo", sans-serif;
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #5d4037;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.product-price {
  font-family: "Cairo", sans-serif;
  font-size: 1.6rem;
  color: #d32f2f;
  font-weight: 800;
  margin-bottom: 10px;
}

.stock-info {
  font-size: 0.9rem;
  margin-bottom: 20px;
  padding: 5px 10px;
  border-radius: 5px;
}

.stock-available {
  background-color: #e8f5e8;
  color: #2e7d32;
}

.stock-low {
  background-color: #fff3e0;
  color: #f57c00;
}

.stock-out {
  background-color: #ffebee;
  color: #d32f2f;
}

.product-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn {
  font-family: "Cairo", sans-serif;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background-color: #5d4037;
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background-color: #4e342e;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: #5d4037;
  border: 2px solid #5d4037;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #5d4037;
  color: white;
  transform: translateY(-2px);
}

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.footer {
  background-color: #5d4037;
  color: white;
  text-align: center;
  padding: 40px 20px;
  margin-top: 60px;
  font-family: "Cairo", sans-serif;
}

/* Order Form Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.modal-content {
  background-color: #faf1e5;
  margin: 2% auto;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 700px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.close {
  color: #5d4037;
  float: left;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 15px;
  left: 20px;
}

.close:hover {
  color: #d32f2f;
}

.form-title {
  font-family: "Amiri", serif;
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #5d4037;
  font-weight: 700;
}

/* Order items styling */
.order-items {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  border: 2px solid #e0e0e0;
}

.order-items-title {
  font-family: "Amiri", serif;
  color: #5d4037;
  margin-bottom: 15px;
  text-align: center;
  font-size: 1.5rem;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
}

.order-item:last-child {
  border-bottom: none;
  font-weight: bold;
  color: #d32f2f;
  font-size: 1.1rem;
  padding-top: 15px;
  margin-top: 10px;
  border-top: 2px solid #e0e0e0;
}

.order-item-details {
  display: flex;
  align-items: center;
  flex: 1;
}

/* تعديل صور المنتجات في السلة وفورم الطلب */
.order-item-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 5px;
  margin-left: 15px;
}

.order-item-name {
  font-weight: 600;
}

.order-item-quantity {
  color: #666;
  font-size: 0.9rem;
}

.order-item-price {
  font-weight: bold;
  color: #5d4037;
}

.order-item-remove {
  background: none;
  border: none;
  color: #d32f2f;
  cursor: pointer;
  font-size: 16px;
  margin-right: 10px;
  transition: transform 0.2s ease;
}

.order-item-remove:hover {
  transform: scale(1.2);
}

/* Feedback Section */
.feedback-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background: linear-gradient(135deg, #faf1e5 0%, #f5e6d3 100%);
}

.feedback-carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feedback-carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 20px 0;
  width: 100%;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE Edge */
}

.feedback-carousel::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari */
}

.feedback-item {
  flex: 0 0 auto;
  width: 500px;
  height: 300px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(93, 64, 55, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  cursor: pointer;
}

.feedback-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(93, 64, 55, 0.15);
}

.feedback-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 15px;
  display: block;
  margin: auto;
}

.carousel-arrow {
  background: #5d4037;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background 0.3s ease;
  z-index: 10;
}

.carousel-arrow:hover {
  background: #8d6e63;
}

.left-arrow {
  right: -20px;
}

.right-arrow {
  left: -20px;
}

/* Responsive Design for Feedback Section */
@media (max-width: 1024px) {
  .feedback-item {
    width: 250px;
    height: 330px;
  }

  .carousel-arrow {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .left-arrow {
    right: -15px;
  }

  .right-arrow {
    left: -15px;
  }
}

@media (max-width: 768px) {
  .feedback-section {
    padding: 40px 10px;
  }

  .feedback-item {
    width: 200px;
    height: 270px;
  }

  .carousel-arrow {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .left-arrow {
    right: -10px;
  }

  .right-arrow {
    left: -10px;
  }
}

@media (max-width: 480px) {
  .feedback-item {
    width: 180px;
    height: 240px;
  }

  .carousel-arrow {
    width: 25px;
    height: 25px;
    font-size: 14px;
  }

  .left-arrow {
    right: -5px;
  }

  .right-arrow {
    left: -5px;
  }
}

/* Form group styling */
.form-group {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  position: relative;
}

.form-group label {
  width: 120px;
  font-weight: 600;
  color: #5d4037;
  font-family: "Cairo", sans-serif;
  margin-left: 15px;
}

.form-group input,
.form-group select {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  font-family: "Cairo", sans-serif;
  background-color: white;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #5d4037;
}

.optional {
  color: #8d6e63;
  font-size: 14px;
  font-weight: 400;
}

/* Area dropdown styling */
.area-dropdown {
  position: absolute;
  top: 100%;
  right: 135px;
  left: 0;
  background: white;
  border: 2px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.area-option {
  padding: 12px 15px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  font-family: "Cairo", sans-serif;
  transition: background-color 0.2s ease;
}

.area-option:hover {
  background-color: #f5f5f5;
}

.area-option:last-child {
  border-bottom: none;
}

.payment-notice {
  background-color: #e8f5e8;
  border: 2px solid #4caf50;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  margin: 20px 0;
  font-family: "Cairo", sans-serif;
  color: #2e7d32;
  font-weight: 600;
}

.form-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.btn-cancel {
  background-color: #e0e0e0;
  color: #5d4037;
}

.btn-cancel:hover {
  background-color: #bdbdbd;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 1001;
  padding: 20px;
  overflow-y: auto;
  font-family: "Cairo", sans-serif;
}

.cart-sidebar.open {
  right: 0;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
}

.cart-overlay.show {
  display: block;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.cart-header h3 {
  font-family: "Amiri", serif;
  font-size: 1.5rem;
  color: #5d4037;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

/* تعديل صور المنتجات في السلة وفورم الطلب */
.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
  margin-left: 15px;
}

.cart-total {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #5d4037;
  text-align: center;
}

.cart-total h3 {
  font-family: "Cairo", sans-serif;
  font-size: 1.3rem;
  color: #5d4037;
  font-weight: 700;
}

.loading {
  display: none;
  text-align: center;
  color: #5d4037;
}

.success-message {
  display: none;
  background-color: #e8f5e8;
  color: #2e7d32;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  margin-top: 20px;
}

.empty-cart-message {
  text-align: center;
  padding: 20px;
  color: #8d6e63;
  font-style: italic;
}

.error-message {
  display: none;
  background-color: #ffebee;
  color: #d32f2f;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  margin-top: 20px;
  border: 1px solid #d32f2f;
}

/* Enhanced Arabic typography */
h1,
h2,
h3,
.product-title {
  letter-spacing: 0.5px;
}

/* Responsive Design */

/* التابلت - عرض كارتين جنب بعض */
@media (max-width: 1024px) and (min-width: 769px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 100%;
    padding: 0 20px;
  }

  .product-card {
    padding: 20px;
  }

  .product-image {
    height: 200px;
    object-fit: contain;
  }

  .product-title {
    font-size: 1.2rem;
  }

  .product-price {
    font-size: 1.4rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .product-badge {
    top: 10px;
    right: 10px;
    font-size: 11px;
    padding: 5px 10px;
  }
}

/* الموبايل - عرض كارتين جنب بعض */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 10px;
  }

  .product-card {
    padding: 15px;
  }

  .product-image {
    height: 150px;
    object-fit: contain;
  }

  .product-title {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .product-price {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .stock-info {
    font-size: 0.8rem;
    margin-bottom: 15px;
    padding: 4px 8px;
  }

  .product-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .btn {
    padding: 10px 15px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.3;
  }

  .hero p {
    font-size: 1.1rem;
    padding: 0 10px;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .whatsapp-float {
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .modal-content {
    width: 95%;
    margin: 5% auto;
    padding: 20px;
  }

  .form-buttons {
    flex-direction: column;
  }

  .form-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-group label {
    width: 100%;
    margin-bottom: 8px;
    margin-left: 0;
  }

  .form-group input,
  .form-group select {
    width: 100%;
  }

  .area-dropdown {
    right: 0;
  }

  .cart-sidebar {
    width: 100%;
    right: -100%;
  }

  .order-item-image {
    width: 40px;
    height: 40px;
  }

  .cart-item img {
    width: 50px;
    height: 50px;
  }

  /* تعديل الأيقونة للموبايل */
  .input-with-icon input {
    padding-left: 40px !important;
  }

  .input-icon {
    left: 12px;
    font-size: 14px;
  }

  .product-badge {
    top: 8px;
    right: 8px;
    font-size: 10px;
    padding: 4px 8px;
  }
}

/* الموبايل الصغير جداً */
@media (max-width: 480px) {
  .products-grid {
    gap: 10px;
    padding: 0 5px;
  }

  .product-card {
    padding: 12px;
  }

  .product-image {
    height: 120px;
  }

  .product-title {
    font-size: 0.9rem;
  }

  .product-price {
    font-size: 1.1rem;
  }

  .btn {
    padding: 8px 12px;
    font-size: 11px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .order-item-image {
    width: 35px;
    height: 35px;
  }

  .cart-item img {
    width: 45px;
    height: 45px;
  }

  .product-badge {
    top: 6px;
    right: 6px;
    font-size: 9px;
    padding: 3px 6px;
  }
}

@media (max-width: 400px) {
  .cart-sidebar {
    width: 100%;
    right: -100%;
  }
}

/* CSS Animation */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.shipping-info {
  font-size: 0.9rem;
  margin-top: 5px;
  text-align: center;
}

.shipping-free {
  color: #d32f2f;
  font-weight: bold;
}

.cart-total small {
  display: block;
  font-size: 0.8rem;
  margin-top: 5px;
}

/* Image Preview Modal */
#imageModal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: auto;
}

#imageModal .modal-content {
  background: white;
  margin: 5% auto;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 90%;
  text-align: center;
  position: relative;
}

#fullImage {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
  object-fit: contain;
}

#imageCaption {
  margin-top: 10px;
  font-family: "Cairo", sans-serif;
  color: #5d4037;
  font-size: 1.2rem;
}

/* Responsive adjustments for image modal */
@media (max-width: 768px) {
  #imageModal .modal-content {
    margin: 10% auto;
    padding: 15px;
    max-width: 95%;
  }

  #fullImage {
    max-height: 70vh;
  }

  #imageCaption {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  #imageModal .modal-content {
    margin: 15% auto;
    padding: 10px;
    max-width: 98%;
  }

  #fullImage {
    max-height: 60vh;
  }

  #imageCaption {
    font-size: 0.9rem;
  }
}