.block-product-card {
    position: relative;
}

.block-product-card.product-card-style--card {
    background-color: rgb(var(--color-background));
}

.block-product-card.product-card-style--card .block-product-price,
.block-product-card.product-card-style--card .block-product-title {
    padding-inline: 8px;
}

/* QC / Buy Now Buttons & Modals */
.product-card-action-buttons {
    display: flex;
    gap: 8px;
    width: 100%;
    padding: 4px 8px 12px;
    box-sizing: border-box;
}

.pca-btn {
    flex: 1;
    height: 36px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.pca-btn--qc {
    background: transparent;
    border: 1px solid #ff6b00;
    color: #ff6b00;
    flex: 0 0 80px;
    width:100%;
}

.pca-btn--buynow {
    background: #ff6b00;
    border: none;
    color: #fff;
    width:100%;
}

.pca-btn:hover {
    opacity: 0.8;
}

/* Modal Overlay */
.pca-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2147483647;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    animation: pcaFadeIn 0.3s ease;
}

@keyframes pcaFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.pca-modal-overlay.is-open {
    display: flex;
}

/* Common Modal Styles */
.pca-modal {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 16px;
    padding: 32px 24px;
    overflow-y: auto;
    box-sizing: border-box;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.pca-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #ff6b00;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    padding: 4px;
    transition: transform 0.2s;
}

.pca-modal__close:hover {
    transform: scale(1.1);
}

/* QC Modal Specific */
.pca-modal--qc {
    background: #000;
    color: #fff;
}

.pca-modal__subtitle {
    color: #ff6b00;
    font-size: 15px;
    margin-bottom: 24px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pca-qc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .pca-qc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.pca-qc-item {
    background: #fff;
    border-radius: 12px;
    padding: 6px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pca-qc-item:hover {
    transform: translateY(-4px);
}

.pca-qc-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Buy Now Modal Specific */
.pca-modal--buynow {
    background: #fff;
    color: #333;
    max-width: 420px;
    padding: 40px 24px 24px;
}

.pca-buynow-list {
    margin-bottom: 32px;
}

.pca-buynow-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f2f2f2;
}

.pca-buynow-item:last-child {
    border-bottom: none;
}

.pca-buynow-item__logo {
    width: 48px;
    height: 48px;
    margin-right: 16px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pca-buynow-item__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pca-buynow-item__name {
    flex-grow: 1;
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.pca-buynow-item__btn {
    background: #ff6b00;
    color: #fff;
    padding: 8px 20px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
    white-space: nowrap;
}

.pca-buynow-item__btn:hover {
    background: #e65a00;
    color: #fff;
}

.pca-buynow-close-btn {
    display: block;
    width: 100%;
    max-width: 160px;
    margin: 0 auto;
    height: 44px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    color: #666;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}

.pca-buynow-close-btn:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}