/* Product Cards styles for WooCommerce BundleCraft */
.wbc-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: var(--wbc-card-padding, 16px);
    border-radius: var(--wbc-card-radius, 12px);
    background: var(--wbc-card-background, var(--wbc-card-bg));
    border: var(--wbc-card-border-width, 1px) var(--wbc-card-border-style, solid) var(--wbc-card-border, var(--wbc-border));
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    height: 100%;
    box-sizing: border-box;
}

.wbc-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border-color: var(--wbc-primary);
}

.wbc-product-card.wbc-card-selected {
    border-color: var(--wbc-primary);
    background: rgba(99, 102, 241, 0.04);
}

.wbc-card-thumbnail {
    text-align: center;
    margin-bottom: var(--wbc-card-spacing, 12px);
}

.wbc-card-thumbnail img {
    max-height: var(--wbc-card-image-height, 120px);
    object-fit: contain;
    border-radius: 8px;
}

.wbc-card-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wbc-card-title {
    font-family: var(--wbc-font-body), 'Inter', sans-serif;
    font-size: var(--wbc-font-size-body, 15px);
    font-weight: var(--wbc-font-weight, 600);
    margin: 0 0 8px 0;
    line-height: var(--wbc-line-height, 1.4);
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.wbc-card-price {
    font-family: var(--wbc-font-price), 'Inter', sans-serif;
    font-size: var(--wbc-font-size-price, 14px);
    font-weight: 700;
    color: var(--wbc-price-color, var(--wbc-primary));
    margin-bottom: 12px;
}

/* Quantity Adjustments */
.wbc-card-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wbc-qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--wbc-border);
    border-radius: 6px;
    overflow: hidden;
}

.wbc-qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--wbc-text);
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.wbc-qty-btn:hover {
    background: var(--wbc-border);
}

.wbc-qty-input {
    width: 32px;
    height: 28px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--wbc-border);
    border-right: 1px solid var(--wbc-border);
    background: transparent;
    color: var(--wbc-text);
    font-size: 13px;
    font-weight: 600;
}

/* Skeletons */
.wbc-skeleton-card {
    height: 230px;
    background: linear-gradient(90deg, var(--wbc-border) 25%, rgba(226, 232, 240, 0.4) 50%, var(--wbc-border) 75%);
    background-size: 200% 100%;
    animation: wbc-loading-shimmer 1.5s infinite;
    border-radius: 12px;
}

@keyframes wbc-loading-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Variation Selectors Compatibility with Appearance Builder */
.wbc-variation-selector-wrapper {
    margin-bottom: 12px;
    width: 100%;
}
.wbc-variation-attribute-row {
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
}
.wbc-variation-attribute-row label {
    font-family: var(--wbc-font-body), 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--wbc-text);
}
.wbc-variation-select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--wbc-border);
    border-radius: 6px;
    background: var(--wbc-card-background, #fff);
    color: var(--wbc-text);
    font-family: var(--wbc-font-body), 'Inter', sans-serif;
    font-size: 13px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s ease;
}
.wbc-variation-select:focus {
    border-color: var(--wbc-primary);
}
.wbc-variation-msg {
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
}
