/* General Styles */
body {
    font-family: 'IRANSans', 'Tahoma', sans-serif;
    background-color: #f5f5f5;
}

.container {
    display: flex;
    padding: 20px;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.flex-60 {
    flex: 6;
}
.quantity-input {
    border: 1px solid gray;
    border-radius: 5px;
    padding: 2px;
}
.product-quantity {
    text-align: end;
    text-align: -webkit-left;
}
.rtl {
    direction: rtl;
    text-align: right;
}

/* Filter Section Styles */
.filter-section {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.filter-section h6 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.filter-section label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 14px;
}

.filter-section input[type="checkbox"] {
    margin-left: 10px;
}

/* Price Filter Styles */
.price-filter {
    margin: 15px 0;
}

.range {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.slider {
    position: relative;
    height: 5px;
    background-color: #ddd;
    border-radius: 5px;
    margin: 20px 0;
}

.slider .active {
    position: absolute;
    height: 100%;
    background-color: #4CAF50;
    border-radius: 5px;
    width: 100%;
}

.circle {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #fff;
    border: 2px solid #4CAF50;
    border-radius: 50%;
    top: -5px;
    cursor: pointer;
}

.circle.left {
    left: 0;
}

.circle.right {
    right: 0;
}

.apply-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 14px;
}

.apply-button:hover {
    background-color: #45a049;
}

/* Search Container Styles */
.shop-search-container {
    margin-bottom: 20px;
}

.shop-search-main {
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.shop-search-select {
    padding: 10px;
    border: none;
    background-color: #f8f8f8;
    min-width: 150px;
}

.shop-search-input {
    flex: 1;
    padding: 10px 15px;
    border: none;
}

.shop-search-main button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

.shop-search-main button:hover {
    background-color: #45a049;
}

/* Products Section Styles */
.products-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.product-card .supplier {
    color: #777;
    font-size: 14px;
}

.product-card hr {
    margin: 10px 0;
    opacity: 0.2;
}

.product-card .volume {
    font-size: 13px;
    color: #555;
}

.product-card .price {
    font-weight: bold;
    color: #4CAF50;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}

.pagination-button-container {
    display: flex;
    gap: 5px;
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    background-color: #fff;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.pagination a.active {
    background-color: #4CAF50;
    color: white;
}

.pagination a:hover:not(.active) {
    background-color: #f1f1f1;
}

.prev-button, .next-button {
    margin: 0 10px;
}

/* Product Details Page */

.product-container {
    display: flex;
    flex-direction: row;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.product-container img.w-40 {
    width: 40%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-left: 20px;
}

.product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.product-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.product-stars {
    display: flex;
}

.product-star {
    width: 16px;
    height: 16px;
    background-color: #FFD700;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    margin-right: 3px;
}

.product-divider {
    height: 1px;
    width: 100%;
    background-color: #eee;
    margin: 15px 0;
}

.product-text {
    margin-bottom: 20px;
}

.product-description {
    line-height: 1.6;
    color: #555;
}

/* Product Thumbnails */
.product-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.product-thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.product-thumbnail:hover {
    border-color: #4CAF50;
}

/* Product Tabs */
.product-tab-container {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-tab-header {
    display: flex;
    border-bottom: 1px solid #eee;
}

.product-tab-header-item {
    padding: 15px 20px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.product-tab-header-item.active {
    color: #4CAF50;
    font-weight: bold;
}

.product-tab-header-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #4CAF50;
}

.product-tab-header-text {
    font-size: 16px;
}

/* Tab Content */
.product-description-container {
    padding: 20px;
}

.product-tab-content-item {
    display: none;
}

.product-tab-content-item.active {
    display: block;
}

.product-description-text-box {
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.product-description-guarantee-section {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

.product-description-guarantee-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.product-description-guarantee-text {
    color: #555;
}

/* Related Products */
.related-product-container {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.related-product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.related-product-header h6 {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.dots {
    display: flex;
}

.dots span {
    width: 8px;
    height: 8px;
    background-color: #ddd;
    border-radius: 50%;
    margin-right: 5px;
}

.dots span:first-child {
    background-color: #4CAF50;
}

.related-product-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-product-item {
    display: flex;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.related-product-image {
    width: 100px;
    margin-left: 15px;
}

.related-product-image img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

.related-product-content {
    flex: 1;
}

.related-product-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.related-product-description {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.5;
}

.related-product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.related-product-price {
    font-weight: bold;
    color: #4CAF50;
}

.related-product-instructor {
    display: flex;
    font-size: 14px;
}

.instructor-name {
    margin-right: 5px;
    color: #555;
}

.instructor-label {
    color: #777;
}

.related-product-action {
    margin-top: 10px;
}

.related-product-action .btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.related-product-action .btn:hover {
    background-color: #45a049;
}

.no-related-products {
    text-align: center;
    padding: 20px;
    color: #777;
}

/* Responsive Styles */
@media (max-width: 768px) {
/*    .container {
        flex-direction: column;
    }
*/    
    .products-section {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .product-card img {
        height: 150px;
    }
    
    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .product-container {
        flex-direction: column;
    }
    
    .product-container img.w-40 {
        width: 100%;
        margin-left: 0;
        margin-bottom: 20px;
    }
    
    .product-tab-header {
        flex-wrap: wrap;
    }
    
    .product-tab-header-item {
        flex: 1;
        text-align: center;
        padding: 10px;
    }
    
    .related-product-item {
        flex-direction: column;
    }
    
    .related-product-image {
        width: 100%;
        margin-left: 0;
        margin-bottom: 10px;
    }
    
    .related-product-image img {
        height: 150px;
    }
}

/* Left Side Section Styles */
.left-side-section {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.left-side-section h2 {
    font-weight: bold;
    margin-bottom: 15px;
}

.left-side-section label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #575757;
}

.left-side-section input[type="checkbox"] {
    margin-left: 10px;
}

.social-share-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    padding: 10px;
    margin: 10px;
}

.social-share-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-share-icon {
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-share-text {
    color: #838383;
    font-family: 'Segoe UI', sans-serif;
}

.social-share-instagram {
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-share-other {
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.left-side-border {
    border: 1px solid rgb(229,229,229);
}

.course-container {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 5px;
    padding: 80px 20px 20px 20px;
    margin: 10px;
}

.course-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.course-section {
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-section-label {
    color: #545454;
}

.course-section-number {
    font-weight: 700;
    color: #545454;
}

.course-section-value {
    color: #545454;
}

.course-divider {
    width: 1px;
    height: 35px;
    background-color: #707070;
    opacity: 0.14;
}

.course-status {
    background-color: #58c5c7;
    padding: 10px 50px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
    margin-left: -40px;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    flex: 1 1 40%;
    max-width: 40%;
    position: absolute;
    left: 20px;
    top: 20px;
    display: flex;
    justify-content: center;
    white-space: nowrap;
}

.course-status span {
    color: #fff;
}

.course-container-description {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 5px;
    padding: 0px 0px 20px 0px;
    margin: 10px;
    max-width: 100%;
    width: 100%;
    position: relative;
}

.course-support-info {
    margin-bottom: 20px;
}

.course-support-info p {
    color: #3b3b3b;
    line-height: 1.5;
}

.course-price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.price-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-label {
    color: #6f6d6d;
}

.discounted-price {
    color: #003d73;
    font-weight: 700;
}

.original-price {
    color: #898989;
    text-decoration: line-through;
}

.currency {
    color: #003d73;
    font-weight: 700;
}

.course-enrollment {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.enrollment-button {
    background-color: #80b022;
    padding: 15px 30px;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    width: 100%;
    color: white;
}

.enrollment-button span {
    color: #fff;
}

.product-divider {
    width: 100%;
    height: 1px;
    background-color: #707070;
    opacity: 0.14;
    margin-bottom: 20px;
}

.product-status {
    background-color: #58c5c7;
    padding: 10px 50px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
    margin-left: -40px;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    flex: 1 1 40%;
    max-width: 40%;
    position: absolute;
    left: 20px;
    top: 20px;
    display: flex;
    justify-content: center;
    white-space: nowrap;
}

/* Container layout classes */
.d-flex {
    display: flex;
}

.flex-60 {
    flex: 1 1 60%;
    max-width: 60%;
    padding-right: 15px;
}

.flex-30 {
    flex: 1 1 30%;
    max-width: 30%;
    padding-left: 15px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.mt-0 {
    margin-top: 0 !important;
}

.p-0 {
    padding: 0 !important;
}

.pt-0 {
    padding-top: 0 !important;
}

.ms-1 {
    margin-right: 0.25rem !important;
}

/* Guarantee Section */
.guarantee-container {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.guarantee-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.highlight-text {
    color: rgb(88,197,199);
    font-weight: bold;
}

/* Product Stats */
.product-stats-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
    padding: 10px;
}

.product-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #545454;
}

.product-stat-item i {
    color: #58c5c7;
    font-size: 18px;
}

/* Advertisement Styles */
.advertisement-container {
    display: flex;
    flex-direction: column;
    padding: 15px;
    width: 100%;
}

.advertisement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.advertisement-header h6 {
    font-weight: 700;
    color: #0a0a0a;
    margin: 0;
    font-size: 16px;
}

.advertisement-header .dots {
    display: flex;
    gap: 5px;
}

.advertisement-header .dots span {
    width: 5px;
    height: 5px;
    background-color: #e8cf75;
    border-radius: 50%;
}

.advertisement-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.advertisement-link {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.advertisement-image {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.advertisement-image:hover {
    transform: scale(1.03);
}

.advertisement-text {
    text-align: center;
    color: #555;
    font-size: 14px;
}

/* Bestseller Products Slider */
.bestseller-container {
    display: flex;
    flex-direction: column;
    padding: 15px;
    width: 100%;
}

.bestseller-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.bestseller-header h6 {
    font-weight: 700;
    color: #0a0a0a;
    margin: 0;
    font-size: 16px;
}

.bestseller-header .dots {
    display: flex;
    gap: 5px;
}

.bestseller-header .dots span {
    width: 5px;
    height: 5px;
    background-color: #e8cf75;
    border-radius: 50%;
}

.bestseller-slider-container {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.bestseller-slider {
    flex: 1;
    overflow: hidden;
    position: relative;
    margin: 0 10px;
}

.bestseller-slider-inner {
    display: flex;
    transition: transform 0.3s ease;
}

.bestseller-item {
    flex: 0 0 100%;
    padding: 10px;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.bestseller-item:hover {
    transform: translateY(-5px);
}

.bestseller-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.bestseller-content {
    text-align: center;
}

.bestseller-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bestseller-price {
    font-size: 13px;
    color: #58c5c7;
    font-weight: bold;
}

.slider-nav-button {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #eee;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #555;
    transition: all 0.2s ease;
    z-index: 2;
}

.slider-nav-button:hover {
    background-color: #58c5c7;
    color: white;
}

.slider-nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slider-nav-button i {
    font-size: 14px;
}

/* Advertisement comment styles */
.advertisement-comment {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.advertisement-background {
    background-color: #fff;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    width: 100%;
}

.advertisement-top-section {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
}

.advertisement-small-rectangle {
    width: 35.781px;
    height: 3.326px;
    background-color: #e49d07;
    border-radius: 1px;
    transform: rotate(-90deg);
    margin-left: 10px;
    max-height: 2px;
}

.advertisement-title {
    font-size: 1.2rem;
    color: #0a0a0a;
    margin-right: 10px;
}

.advertisement-background img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.advertisement-subtitle {
    font-size: 1.2rem;
    color: #0a0a0a;
    text-align: center;
}

.course-completion-certificate {
    padding: 0 !important;
}

@media (max-width: 480px) {
    .products-section {
        grid-template-columns: 1fr;
    }
    .container{
        display:block;
    }
}
