/* RTL Support and Base Styles */
body {
  font-family: "Cairo", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  direction: rtl;
  text-align: right;
}

/* Header Styles */
.logo {
  max-height: 60px;
}

/* Breadcrumb Styles */
.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin-bottom: 2rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin: 0 0.5rem;
}

/* Product Images */
.product-images {
  position: sticky;
  top: 2rem;
}

.main-image img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  background-color: white;
  border: 1px solid #e9ecef;
}

.thumbnail-images {
  gap: 0.5rem;
}

.thumbnail-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: white;
}

.thumbnail-img:hover,
.active-thumbnail {
  border-color: #4472c4 !important;
  transform: scale(1.05);
}

/* Product Info */
.product-title {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1rem;
}

.product-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #666;
}

.product-code {
  font-size: 0.9rem;
  color: #666;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.price-value {
    font-size: 2rem;
    font-weight: bold;
    color: #1E46B6;
}

.currency {
    font-size: 1.2rem;
    color: #1E46B6;
}

.limited-quantity-badge {
  background-color: #ffc107;
  color: #000;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Product Specifications */
.product-specs {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-label {
  font-weight: 500;
  color: #666;
}

.spec-value {
  font-weight: bold;
  color: #333;
}

/* Buy Now Button */
.buy-now-btn {
    background-color: #1E46B6;
    border-color: #4472c4;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
}

.buy-now-btn:hover {
  background-color: #365a9b;
  border-color: #365a9b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(68, 114, 196, 0.3);
}

/* Related Products Section */
.section-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-bottom: 2rem;
}

/* Product Cards */
.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image-container {
  position: relative;
  padding: 1rem;
  background-color: #f8f9fa;
}

.product-image {
  width: 100%;
  height: 120px;
  object-fit: contain;
}

.product-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: #1E46B6;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.product-info-card {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-code-small {
  font-size: 0.7rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.product-rating {
  color: #ffc107;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.product-price-small {
  margin-bottom: 0.5rem;
}

    .product-price-small .price {
        font-size: 1rem;
        font-weight: bold;
        color: #1E46B6;
    }

    .product-price-small .currency {
        font-size: 0.8rem;
        color: #1E46B6;
    }

.product-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.brand-logo {
  height: 20px;
}

.brand-name {
  font-size: 0.8rem;
  color: #666;
}

.read-more-btn {
    background-color: #1E46B6;
    border-color: #4472c4;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-top: auto;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
  background-color: #365a9b;
  border-color: #365a9b;
  transform: translateY(-1px);
}

/* Footer Styles */
.footer-section {
  background: linear-gradient(135deg, #e8ecf3 0%, #d1d9e6 100%);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-title {
  color: #4472c4;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.footer-subtitle {
  color: #666;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.footer-contact {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #4472c4;
  font-weight: 500;
}

.contact-item i {
  font-size: 1.2rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #4472c4;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: #365a9b;
  transform: translateY(-2px);
  color: white;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-link {
  color: #666;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #4472c4;
}

.footer-payment {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.payment-logo {
  height: 30px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.payment-logo:hover {
  opacity: 1;
}

.footer-copyright {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  border-top: 1px solid #ddd;
  padding-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .product-title {
    font-size: 1.5rem;
  }

  .price-value {
    font-size: 1.5rem;
  }

  .buy-now-btn {
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
  }

  .footer-contact {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  .section-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  .thumbnail-images {
    justify-content: center;
  }

  .thumbnail-img {
    width: 60px;
    height: 60px;
  }

  .product-specs {
    padding: 1rem;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scale-in {
  animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
