.pbc-widget {
    --bg-color: #f9f9f9;
    --text-color: #333333;
    --muted-color: #666666;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);

    background: var(--bg-color);
    color: var(--text-color);
    border-radius: 16px;
    text-align: center;
    font-family: system-ui, -apple-system, sans-serif;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;

    display: flex;
    flex-direction: column;
    height: 100%;
}

.pbc-widget:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.elementor-loop-container .e-loop-item,
.elementor-loop-container .swiper-slide {
    height: auto;
}

.elementor-loop-container .elementor-widget-container,
.elementor-loop-container .pbc-widget {
    height: 100%;
}

.pbc-big {
    max-width: 450px;
    padding: 30px 25px;
    margin: 0 auto;
}

.pbc-middle {
    max-width: 380px;
    padding: 25px 20px;
    margin: 0 auto;
}

.pbc-small,
.pbc-widget:not(.pbc-big):not(.pbc-middle) {
    max-width: 320px;
    padding: 18px 15px;
    margin: 0 auto;
}

.pbc-image {
    margin: 0 0 18px;
    flex: 0 0 auto;
}

.pbc-image img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 12px;
}

.pbc-title {
    padding: 5px 16px 0;
    margin: 0 0 16px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--text-color);

    min-height: calc(1.2em * 4);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.subline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 8px;
    margin: 0 16px 16px;
    font-size: 14px;
    color: var(--muted-color);
}

.subline-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.subline-item:not(:first-child)::before {
    content: "•";
    margin-right: 8px;
    color: #999999;
}

.pbc-price-wrap {
    margin-top: auto;
    padding-top: 10px;
}

.pbc-price-label {
    display: block;
    font-size: 14px;
    line-height: 1.2;
    color: var(--text-color);
    margin-bottom: 6px;
}

.pbc-price {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.pbc-price ins {
    text-decoration: none;
}

.pbc-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 12px 0 20px;
    padding: 8px;
}

.tag {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.pbc-big .tag {
    font-size: 13px;
    padding: 8px 14px;
}

.pbc-excerpt {
    color: #7f8c8d;
    font-size: clamp(12px, 3.5vw, 14px);
    line-height: 1.5;
    margin: 0 0 20px;
}

.pbc-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    font-weight: 600;
    text-decoration: none;
    font-size: clamp(13px, 3vw, 15px);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--e-global-color-4fded08, #f97c00);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(249, 124, 0, 0.4);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(249, 124, 0, 0.5);
}

.btn-outline {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-outline:hover {
    background: #3498db;
    color: #ffffff;
}

@media (max-width: 1023px) {
    .pbc-big {
        max-width: 380px;
        padding: 25px 20px;
    }
}

@media (max-width: 767px) {
    .pbc-big,
    .pbc-middle,
    .pbc-small,
    .pbc-widget:not(.pbc-big):not(.pbc-middle) {
        max-width: 320px;
        padding: 18px 15px;
    }

    .pbc-title {
        min-height: calc(1.2em * 3);
        -webkit-line-clamp: 3;
    }

    .subline {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .pbc-actions {
        flex-direction: column;
    }

    .pbc-tags {
        gap: 8px;
    }
}

