/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    padding-top: 70px;
    color: #333;
    background-color: #f9f9f9;
}
/* Breadcrumb Styles */
.breadcrumb {
    padding: 20px;
    background-color: #e0e0e0;
    border-radius: 5px;
    width: 100%; /* Match the width of .category-page */
  }
  
  .breadcrumb ol {
    list-style: none;
    margin: 0;
    display: flex;
    align-items: center;
  }
  
  .breadcrumb li {
    display: inline-block;
    margin: 0 5px;
    font-size: 0.7rem;
    color: #666;
    white-space:nowrap;
  }
  
  .breadcrumb li:not(:last-child)::after {
    content: "›"; /* Add a separator between breadcrumb items */
    margin-left: 10px;
    color: #666;
  }
  
  .breadcrumb a {
    color: #0b175f;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .breadcrumb a:hover {
    color: #0b175f;
  }
a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Main Product Container */
.product-container {
    display: flex;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    gap: 40px;
}

.product-gallery {
    flex: 1;
}

.main-image {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.thumbnail:hover {
    border-color: #3498db;
}

.thumbnail.active {
    border-color: #3498db;
    border-width: 2px;
}

.product-details {
    flex: 1;
}

.product-details h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.stars {
    color: #f1c40f;
    margin-right: 10px;
}

.review-count {
    color: #7f8c8d;
    font-size: 14px;
}

.price-container {
    margin: 20px 0;
}

.current-price {
    font-size: 28px;
    font-weight: 700;
    color: #e74c3c;
}

.original-price {
    font-size: 18px;
    text-decoration: line-through;
    color: #95a5a6;
    margin-left: 10px;
}

.discount {
    background-color: #e74c3c;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
    margin-left: 10px;
}

.availability {
    color: #27ae60;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.availability i {
    margin-right: 8px;
}

.product-description {
    margin-bottom: 25px;
}

.product-description p {
    margin-bottom: 15px;
}

.product-description ul {
    margin-left: 20px;
    margin-bottom: 15px;
    list-style-position: inside;
}

.product-description li {
    margin-bottom: 8px;
}

/* Color and Size Options */
.color-options, .size-options {
    margin-bottom: 20px;
}

.color-options h3, .size-options h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.color-selector, .size-selector {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
}

.color-option:hover {
    border-color: #0b175f;
}

.color-option.active {
    border-color: #0b175f;
    position: relative;
}

.color-option.active::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
}

.size-option {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.size-option:hover {
    border-color: #0b175f;
}

.size-option.active {
    background-color: #0b175f;
    color: white;
    border-color: #0b175f;
}

/* Quantity Selector */
.quantity-selector {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.quantity-selector label {
    margin-right: 15px;
    font-weight: 500;
}

.quantity-control {
    display: flex;
    align-items: center;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    background-color: #f1f1f1;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

.quantity-btn:hover {
    background-color: #e0e0e0;
}

#quantity {
    width: 50px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    margin: 0 5px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.add-to-cart {
    background-color: #3498db;
    color: white;
    flex: 1;
}

.add-to-cart:hover {
    background-color: #2980b9;
}

.buy-now {
    background-color: #2ecc71;
    color: white;
    flex: 1;
}

.buy-now:hover {
    background-color: #27ae60;
}

.wishlist {
    background-color: white;
    border: 1px solid #ddd;
    color: #7f8c8d;
    flex: 1;
}

.wishlist:hover {
    background-color: #f9f9f9;
    color: #e74c3c;
}

.wishlist i {
    margin-right: 5px;
}

/* Downloads Section */
.downloads {
    margin-bottom: 25px;
}

.downloads h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.download-link {
    display: block;
    color: #0b175f;
    margin-bottom: 8px;
}

.download-link i {
    margin-right: 8px;
}

.download-link:hover {
    text-decoration: underline;
}

/* Share Section */
.share-section h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #7f8c8d;
    font-size: 20px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #3498db;
}

/* Product Features Section */
.product-features {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.product-features h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #2c3e50;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 30px 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 40px;
    color: #ffc107;
    margin-bottom: 20px;
}

.feature h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

/* Reviews Section */
.reviews-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.reviews-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #2c3e50;
}

.review-summary {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.average-rating {
    text-align: center;
    padding-right: 30px;
    border-right: 1px solid #eee;
}

.rating-value {
    font-size: 48px;
    font-weight: 700;
    display: block;
    color: #2c3e50;
}

.average-rating .stars {
    font-size: 24px;
    margin: 10px 0;
}

.total-reviews {
    color: #7f8c8d;
    font-size: 14px;
}

.rating-bars {
    flex: 1;
    padding-left: 30px;
}

.rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.rating-bar span:first-child {
    width: 60px;
}

.bar-container {
    flex: 1;
    height: 10px;
    background-color: #ecf0f1;
    border-radius: 5px;
    margin: 0 10px;
    overflow: hidden;
}

.bar {
    height: 100%;
    background-color: #f1c40f;
}

.rating-bar span:last-child {
    width: 40px;
    text-align: right;
    color: #7f8c8d;
    font-size: 14px;
}

/* Review Form */
.review-form {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}

.review-form h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.star-rating {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
}

.star-rating i {
    margin-right: 5px;
}

.star-rating i.active {
    color: #f1c40f;
}

#review-text, #review-name {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.submit-review {
    background-color: #3498db;
    color: white;
}

.submit-review:hover {
    background-color: #2980b9;
}

/* Related Products */
.related-products {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.related-products h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #2c3e50;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    padding: 15px;
    font-size: 18px;
    color: #2c3e50;
}

.product-card .price {
    padding: 0 15px 15px;
    font-weight: 700;
    color: #e74c3c;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
    }
    
    .review-summary {
        flex-direction: column;
    }
    
    .average-rating {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-right: 0;
        padding-bottom: 30px;
        margin-bottom: 30px;
    }
    
    .rating-bars {
        padding-left: 0;
    }
    
    header {
        flex-direction: column;
        padding: 15px;
    }
    
    nav ul {
        margin: 15px 0;
    }
    
    .action-buttons .btn {
        flex: 100%;
    }
}


.blog-section {
    padding: 40px 20px;
    text-align: center;
}

.blog-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
}

.blog-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.blog-card {
    text-decoration: none;
    color: #333;
    width: 300px;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-image {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
}

.blog-card h3 {
    font-size: 1.2rem;
    margin: 10px 0;
    padding: 0 10px;
}

.blog-card p {
    font-size: 1rem;
    color: #666;
    padding: 0 10px;
}