/* Price Update Plugin - Frontend Styles */

.pup-product-display {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 4px;
    border-left: 4px solid #27ae60;
    margin: 10px 0;
    font-size: 16px;
}

.pup-product-label {
    font-weight: 600;
    color: #333;
}

.pup-price-value {
    font-size: 18px;
    font-weight: 700;
    color: #27ae60;
    font-family: 'Courier New', monospace;
}

/* Product Tree Display */
.pup-product-tree {
    display: block;
    margin: 15px 0;
}

.pup-product-tree .pup-product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin: 8px 0;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pup-product-tree .pup-product-item:hover {
    background: #f0f8ff;
    border-color: #27ae60;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.pup-product-name {
    font-weight: 600;
    color: #333;
    flex: 1;
}

.pup-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #27ae60;
    font-family: 'Courier New', monospace;
    min-width: 100px;
    text-align: right;
}

/* Subcategories */
.pup-subcategories {
    margin-left: 20px;
    margin-top: 10px;
    border-left: 2px dashed #ddd;
    padding-left: 15px;
}

.pup-subcategories .pup-product-tree {
    margin: 0;
}

/* Price Update Animation */
.pup-price-updating {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Table Format */
.pup-prices-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.pup-prices-table thead {
    background: #f5f5f5;
}

.pup-prices-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #ddd;
}

.pup-prices-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
}

.pup-prices-table tr:nth-child(even) {
    background: #f9f9f9;
}

.pup-prices-table tr:hover {
    background: #f0f8ff;
}

.pup-prices-table .pup-price-col {
    font-weight: 600;
    color: #27ae60;
    font-family: 'Courier New', monospace;
}

/* Responsive */
@media (max-width: 768px) {
    .pup-product-display {
        flex-direction: column;
        align-items: flex-start;
        font-size: 14px;
    }

    .pup-product-tree .pup-product-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .pup-product-price {
        margin-top: 8px;
        width: 100%;
        text-align: left;
    }

    .pup-prices-table {
        font-size: 13px;
    }

    .pup-prices-table th,
    .pup-prices-table td {
        padding: 8px;
    }
}
