/* === Product page CSS (from your provided CSS) === */
/* Sidebar Styles */
.sidebar {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}
.sidebar-widget {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.sidebar-widget__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2a2a2a;
    position: relative;
    padding-bottom: 10px;
}
.sidebar-widget__title:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #ff6b6b;
}
.sidebar-widget__category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-widget__category li {
    margin-bottom: 10px;
}
.sidebar-widget__category a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
}
.sidebar-widget__category a:hover,
.sidebar-widget__category a.active {
    color: #ff6b6b;
    padding-left: 15px;
}
.sidebar-widget__category a.active {
    font-weight: 600;
}
.size-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
}
.size-option input[type="checkbox"] {
    margin-right: 10px;
}
.price-range-slider {
    padding: 15px 0;
}
.price-amount {
    display: flex;
    align-items: center;
    margin-top: 15px;
    font-size: 14px;
}
.price-amount input {
    width: 70px;
    margin: 0 5px;
    padding: 5px;
    border: 1px solid #f5f5dc;
    background-color: #f5f5dc;
    color: #ff6b6b;
    border-radius: 4px;
    text-align: center;
}

.course-card__image {
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0;
}
.course-card__image img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}
.course-card {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0 !important;
    margin-bottom: 30px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}
.course-card__image img {
    border-radius: 8px !important;
}
.course-card__content {
    padding: 20px !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.course-card__title {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #2a2a2a;
}
.course-card__price {
    font-size: 18px;
    font-weight: 700;
    color: #ff6b6b;
    margin-top: auto;
    padding-top: 10px;
}

.row.gutter-y-30 {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}
.col-xl-3.col-lg-4.col-sm-6 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
    margin-bottom: 30px;
}

@media (max-width: 1199px) {
    .col-xl-3.col-lg-4.col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
@media (max-width: 767px) {
    .col-xl-3.col-lg-4.col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
@media (max-width: 991px) {
    .sidebar {
        margin-bottom: 30px;
    }
    .col-lg-3,
    .col-lg-9 {
        padding-left: 15px;
        padding-right: 15px;
    }
}
@media (max-width: 576px) {
    .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* View Toggle Buttons */
.view-toggle {
    display: flex;
    justify-content: flex-end;
    margin: 0 15px 30px;
    gap: 10px;
}
.view-toggle button {
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    font-size: 14px;
}
.view-toggle button.active {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}
.view-toggle button i {
    font-size: 16px;
}

/* List view styles (kept minimal) */
.list-view .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
}
.list-view .course-card {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.list-view .course-card__image {
    flex: 0 0 300px;
    max-width: 300px;
    height: 250px;
    overflow: hidden;
}
.list-view .course-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.list-view .course-card__content {
    flex: 1;
    padding: 25px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.course-card__description {
    font-size: 14px !important;
    color: #666 !important;
    min-height: 40px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.4 !important;
    max-height: 2.8em !important;
}

/* Wishlist styles */
.wishlist-btn {
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    color: #ddd;
    transition: color 0.3s;
}
.wishlist-btn:hover {
    color: #ff4444;
}
.wishlist-btn.active {
    color: #ff4444;
}
.wishlist-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Toast styling */
#toast-container > .toast {
    background-color: #FF6B6B;
    color: white;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 1;
}


#toast-container > div {
    padding-left: 45px !important;  /* Increase left padding */
    background-position: 15px center !important; /* Icon position fix */
}
