/* Cart page suggestions */
.phm-suggestions {
    margin-top: 2rem;
    padding: 1.5rem 0;
}

.phm-suggestions-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #232323;
}

.phm-suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.phm-suggestion-card {
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.phm-suggestion-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.phm-suggestion-image {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
}

.phm-suggestion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.phm-suggestion-card:hover .phm-suggestion-image img {
    transform: scale(1.05);
}

.phm-suggestion-info {
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.phm-suggestion-name {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.phm-suggestion-name a {
    color: #232323;
    text-decoration: none;
}

.phm-suggestion-price {
    margin-bottom: 0.5rem;
}

.phm-suggestion-price .regular-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.85rem;
    margin-right: 0.3rem;
}

.phm-suggestion-price .price {
    font-weight: 600;
    color: #232323;
}

.phm-add-to-cart {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.phm-add-to-cart .material-icons {
    font-size: 1rem;
}

/* Modal suggestions (cards) */
.phm-modal-suggestions {
    border-top: 1px solid #e5e5e5;
    padding: 1rem 0 0;
    margin-top: 1rem;
}

.phm-modal-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #232323;
    text-transform: uppercase;
}

.phm-modal-grid {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.phm-modal-card {
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
    min-width: 130px;
    max-width: 150px;
    flex-shrink: 0;
}

.phm-modal-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.phm-modal-img {
    display: block;
    height: 130px;
    overflow: hidden;
    background: #f8f8f8;
}

.phm-modal-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.phm-modal-info {
    padding: 0.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.phm-modal-name {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: #232323;
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.phm-modal-price {
    font-size: 0.8rem;
}

.phm-modal-regular {
    text-decoration: line-through;
    color: #999;
    font-size: 0.75rem;
    margin-right: 0.2rem;
}

.phm-modal-current {
    font-weight: 600;
    color: #232323;
}

.phm-modal-card .phm-add-to-cart {
    width: 100%;
    border-radius: 0;
    border: none;
    border-top: 1px solid #e5e5e5;
    padding: 0.35rem 0.4rem;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.phm-modal-card .phm-add-to-cart .material-icons {
    font-size: 0.9rem;
}

.phm-modal-card .phm-add-to-cart span {
    font-size: 0.7rem;
}

@media (max-width: 767px) {
    .phm-suggestions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .phm-modal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
