/* Product Quote System Frontend Styles */

/* Quote Button Styles */
.pqs-quote-button-wrapper {
    margin: 15px 0;
    clear: both;
}

.pqs-add-to-quote-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.pqs-add-to-quote-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.pqs-add-to-quote-button:hover::before {
    left: 100%;
}

.pqs-add-to-quote-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.pqs-add-to-quote-button:active {
    transform: translateY(0);
}

.pqs-add-to-quote-button:disabled,
.pqs-add-to-quote-button.in-quote {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pqs-add-to-quote-button.pqs-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Quote List Styles */
.pqs-quote-list {
    margin: 30px 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.pqs-quote-list h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: 0;
    padding: 20px 25px;
    font-size: 20px;
    font-weight: 600;
}

.pqs-quote-item {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.pqs-quote-item:hover {
    background-color: #f8f9fa;
}

.pqs-quote-item:last-child {
    border-bottom: none;
}

.pqs-quote-item-image {
    width: 100px;
    height: 100px;
    margin-right: 20px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pqs-quote-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pqs-quote-item:hover .pqs-quote-item-image img {
    transform: scale(1.05);
}

.pqs-quote-item-details {
    flex-grow: 1;
    min-width: 0;
}

.pqs-quote-item-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    color: #2c3e50;
    line-height: 1.4;
}

.pqs-quote-item-title a {
    color: inherit;
    text-decoration: none;
}

.pqs-quote-item-title a:hover {
    color: #667eea;
}

.pqs-quote-item-price {
    color: #e74c3c;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 5px;
}

.pqs-quote-item-quantity {
    font-size: 14px;
    color: #7f8c8d;
}

.pqs-quote-item-actions {
    margin-left: 20px;
    flex-shrink: 0;
}

.pqs-remove-item {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.pqs-remove-item:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

/* Empty Quote State */
.pqs-empty-quote {
    text-align: center;
    padding: 60px 25px;
    color: #7f8c8d;
}

.pqs-empty-quote p {
    font-size: 16px;
    margin-bottom: 20px;
}

.pqs-empty-quote a {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pqs-empty-quote a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Quote Summary */
.pqs-quote-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 0 0 10px 10px;
    border-top: 2px solid #dee2e6;
}

.pqs-quote-total {
    font-size: 20px;
    font-weight: 700;
    text-align: right;
    margin-bottom: 15px;
    color: #2c3e50;
}

.pqs-quote-summary .description {
    font-size: 13px;
    color: #6c757d;
    font-style: italic;
    text-align: right;
    margin: 0;
}

/* Contact Form 7 Integration */
.pqs-cf7-form {
    margin-top: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.pqs-cf7-form h3 {
    color: #2c3e50;
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}


/* Messages */
.pqs-message {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 6px;
    font-weight: 500;
    position: relative;
    animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pqs-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pqs-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.pqs-message::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
    border-radius: 6px 0 0 6px;
}

/* Loading States */
.pqs-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.pqs-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .pqs-quote-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
    }
    
    .pqs-quote-item-image {
        width: 80px;
        height: 80px;
        margin-right: 0;
        margin-bottom: 15px;
        align-self: center;
    }
    
    .pqs-quote-item-actions {
        margin-left: 0;
        margin-top: 15px;
        align-self: center;
    }
    
    .pqs-quote-total {
        text-align: center;
        font-size: 18px;
    }
    
    .pqs-quote-summary .description {
        text-align: center;
    }
    
    .pqs-cf7-form {
        padding: 20px;
    }
    
    .pqs-add-to-quote-button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .pqs-quote-list,
    .pqs-cf7-form {
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
    }
    
    .pqs-quote-item {
        padding: 15px;
    }
    
    .pqs-cf7-form {
        padding: 15px;
    }
    
    .pqs-quote-list h3 {
        padding: 15px;
        font-size: 18px;
    }
}

/* Accessibility */
.pqs-add-to-quote-button:focus,
.pqs-remove-item:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .pqs-quote-item-actions,
    .pqs-cf7-form {
        display: none;
    }
    
    .pqs-quote-list {
        box-shadow: none;
        border: 1px solid #000;
    }
}
