.favorites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* Product Grid Layout - Column-based Layout */
#favorites-container,
.product-grid {
    column-count: 4;
    column-gap: 20px;
}

@media (max-width: 1199px) {

    #favorites-container,
    .product-grid {
        column-count: 3;
    }
}

@media (max-width: 991px) {

    #favorites-container,
    .product-grid {
        column-count: 2;
    }
}

@media (max-width: 575px) {

    #favorites-container,
    .product-grid {
        column-count: 1;
    }
}

/* Remove row and column classes for column-based layout */
.col-md-3,
.col-md-4 {
    float: none;
    display: block;
    width: 100%;
    padding: 0;
    margin-bottom: 20px;
    break-inside: avoid;
}

.empty-favorites {
    text-align: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 30px 0;
}

.empty-favorites i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 15px;
}

.empty-favorites h3 {
    margin-bottom: 10px;
    color: #555;
}

.empty-favorites p {
    color: #777;
    margin-bottom: 20px;
}

.empty-favorites .btn {
    background-color: #333;
    color: white;
    padding: 10px 25px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.empty-favorites .btn:hover {
    background-color: #555;
}

.product-card {
    position: relative;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #fff;
    margin-bottom: 20px;
}

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

.product-image-link {
    display: block;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.product-image-link img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

.product-card .favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid #ccc;
    transition: all 0.2s;
    padding: 0;
}

.product-card .favorite-btn i {
    color: #000;
    font-size: 20px;
}

.product-card .favorite-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

.product-card .favorite-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.product-details {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.product-title a {
    color: #333;
    text-decoration: none;
}

.product-title a:hover {
    color: #000;
}

.product-artist {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.product-artist a {
    color: #666;
    text-decoration: none;
}

.product-artist a:hover {
    color: #333;
}

.product-price {
    font-weight: bold;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.price-section {
    font-weight: bold;
    margin-right: 10px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
    font-size: 14px;
}

.discounted-price {
    color: #333;
    font-weight: 700;
    font-size: 16px;
}

.regular-price {
    color: #333;
    font-weight: 700;
    font-size: 16px;
}

.meta-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.meta-tag {
    background-color: #f0f0f0;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 11px;
    color: #666;
    white-space: nowrap;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.artwork-meta {
    display: none;
    /* Hide the old meta section */
}

.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
    gap: 10px;
}

.add-to-favorite {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.add-to-favorite i {
    color: #333;
    font-size: 18px;
}

.add-to-favorite:hover {
    background: #f5f5f5;
}

.add-to-favorite.active i {
    color: #000;
}

.add-to-cart {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    background-color: #000;
    color: #fff;
    padding: 8px 15px;
    height: 40px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.add-to-cart:hover {
    background-color: #333;
    color: #fff;
}

/* Error message styling */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}