﻿/* Custom Styles for Arabic E-commerce Site */

/* RTL Support */
body {
  font-family: "Cairo", Tahoma, Geneva, Verdana, sans-serif;
  direction: rtl;
  text-align: right;
}


.toast-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8); 
    background: #28a745;
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    display: none;
    z-index: 9999;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.4s ease; 
}

.toast-message.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.toast-message.error {
    background: #dc3545;
}

.hero-subtitle {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Search Section */
.search-section {
  background-color: #f8f9fa;
}

.search-section .form-control {
  border-radius: 25px 0 0 25px;
  border: 1px solid #ddd;
  padding: 12px 20px;
}

.search-section .btn {
  border-radius: 0 25px 25px 0;
  border: 1px solid #ddd;
  border-right: none;
}

/* Product Cards */
.product-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: white;
  margin-bottom: 20px;
}

.product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.product-image {
  position: relative;
  padding: 20px;
  text-align: center;
  
}

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

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #C2CDEB;
  color: rgb(0, 0, 0);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.product-info {
  padding: 15px;
}

.product-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-code {
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
}

.product-rating {
  margin-bottom: 10px;
}

.product-rating .stars {
  color: #ffc107;
  font-size: 12px;
}

.product-price {
  font-size: 18px;
  font-weight: 700;
  color: #1E46B6;
  margin-bottom: 10px;
}

.product-brand {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.product-brand img {
  height: 20px;
  margin-left: 8px;
}

.product-brand span {
  font-size: 12px;
  color: #666;
}

.btn-order {
  background-color: #1E46B6;
  border-color: #1E46B6;
  color: white;
  width: 100%;
  padding: 10px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-order:hover {
  background-color: #365a9b;
  border-color: #365a9b;
  color: white;
}

/* Sidebar Filters */
.card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 15px;
}

.card-header h5 {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.form-check {
  margin-bottom: 8px;
}

.form-check-input:checked {
  background-color: #1E46B6;
  border-color: #1E46B6;
}

.form-check-label {
  font-size: 14px;
  color: #666;
}

/* Footer */
footer {
  background-color: #f8f9fa;
}

footer h4 {
  color: #333;
  font-weight: 600;
  margin-bottom: 15px;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: #1E46B6;
}

.social-links a {
  
  font-size: 18px;
  text-decoration: none;
}

.social-links a:hover {
  color: #1E46B6;
}

.contact-info p {
  margin-bottom: 8px;
  color: #666;
  font-size: 14px;
}

.payment-methods img {
  border-radius: 4px;
  border: 1px solid #ddd;
}

/* Responsive Design */
@media (max-width: 768px) {
  .product-card {
    margin-bottom: 15px;
  }

  .search-section .form-control {
    border-radius: 6px;
    margin-bottom: 10px;
  }

  .search-section .btn {
    border-radius: 6px;
    width: 100%;
  }

  .contact-info,
  .social-links {
    text-align: center !important;
    margin-top: 20px;
  }
}

/* Loading Animation */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}
/* Responsive Sidebar Filters */
@media (max-width: 992px) {
    #sidebarFilters {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 85%;
        height: 100%;
        background: #fff;
        z-index: 1050;
        overflow-y: auto;
        box-shadow: -3px 0 10px rgba(0,0,0,0.2);
        padding: 20px;
        transition: all 0.3s ease;
    }

        #sidebarFilters.show-filters {
            display: block;
            animation: slideIn 0.3s ease forwards;
        }

    @keyframes slideIn {
        from {
            transform: translateX(100%);
            opacity: 0;
        }

        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    
}
