/* Product Cards Widget */
.pcw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pcw-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}


.pcw-card-image-link {
    display: block;
    text-decoration: none;
}

.pcw-card-title-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.pcw-card-title-link:hover {
    text-decoration: none;
}

.pcw-card-title-link:hover .pcw-title {
    color: #1a7abf;
}

/* Image Area */
.pcw-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    flex-shrink: 0;
}

.pcw-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Content Area */
.pcw-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
}

/* Title */
.pcw-title {
    font-size: 18px;
    font-weight: 600;
    color: #222222;
    margin: 0 0 10px;
    line-height: 1.4;
}

/* Description wrap */
.pcw-desc-wrap {
    width: 100%;
    margin-top: 0;
}

/* Description — 超出 2 行隐藏 */
.pcw-desc {
    font-size: 14px;
    color: #666666;
    line-height: 1.7;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    width: 100%;
    transition: max-height 0.3s ease;
}

.pcw-desc.expanded {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

.pcw-desc p,
.pcw-desc ul,
.pcw-desc ol {
    margin: 0;
}

/* Read More / Read Less button */
.pcw-read-more {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: #1a7abf;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    cursor: pointer;
    transition: color 0.25s ease;
    margin-top: 4px;
    outline: none;
}

.pcw-read-more:hover,
.pcw-read-more:focus {
    background: transparent !important;
    background-color: transparent !important;
    color: #0d5a8e;
}

/* Responsive */
@media (max-width: 1024px) {
    .pcw-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .pcw-grid {
        grid-template-columns: 1fr;
    }
}
