/**
 * WooCommerce Price Quote - Public Styles
 * Styles for product display and layout
 */

/* Add to Quote Button Styles */
.wcpq-add-to-quote.button {
    background-color: #0073aa;
    border-color: #0073aa;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.wcpq-add-to-quote.button:hover {
    background-color: #005177;
    border-color: #005177;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wcpq-add-to-quote.button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Success feedback for add to quote button */
.wcpq-added-success,
.button.wcpq-added-success {
    background-color: #48bb78 !important;
    border-color: #48bb78 !important;
    color: #fff !important;
    animation: wcpq-success-pulse 0.5s ease;
    cursor: pointer;
    position: relative;
}

.wcpq-added-success:hover,
.button.wcpq-added-success:hover {
    background-color: #38a169 !important;
    border-color: #38a169 !important;
    color: #fff !important;
}

/* Optional: Add a subtle icon animation */
.wcpq-added-success::before {
    content: '';
    display: inline-block;
    margin-right: 5px;
    animation: wcpq-check-appear 0.3s ease-out;
}

@keyframes wcpq-success-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes wcpq-check-appear {
    0% { 
        opacity: 0;
        transform: scale(0) rotate(-45deg);
    }
    100% { 
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Product Grid Responsiveness */
@media (max-width: 768px) {
    .wcpq-products-display .woocommerce ul.products[class*=columns-] li.product,
    .wcpq-products-display .woocommerce-page ul.products[class*=columns-] li.product {
        width: 48%;
        margin: 0 1% 20px;
    }
}

@media (max-width: 480px) {
    .wcpq-products-display .woocommerce ul.products[class*=columns-] li.product,
    .wcpq-products-display .woocommerce-page ul.products[class*=columns-] li.product {
        width: 100%;
        margin: 0 0 20px;
    }
}

/* Single Product Popup */
.wcpq-enquery-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.wcpq-enquery-modal-box {
    display: none;
    position: fixed;
    background: #fff;
    border-radius: 5px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.wcpq-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.wcpq-modal-close:hover {
    color: #333;
}

/* Utility Classes */
.wait-txt {
    display: none;
    color: #666;
    font-style: italic;
}

/* Loading Spinner */
.fa-spin {
    animation: fa-spin 2s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(359deg); }
}

/* Archive Button Layout - removed width constraints to let theme handle it */

/* Quote History Page Styles */
.wpq-history-header {
    margin-bottom: 40px;
    padding: 20px 0;
}

.wpq-page-title {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.wpq-page-subtitle {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.wpq-quotes-summary {
    margin-bottom: 40px;
}

.wpq-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.wpq-summary-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.wpq-summary-number {
    display: block;
    font-size: 36px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 5px;
}

.wpq-summary-label {
    display: block;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wpq-products-section {
    margin-top: 40px;
}

.wpq-section-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}


.wpq-quote-status {
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    margin: 10px 0;
}

.wpq-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
}

.wpq-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.wpq-status-responded {
    background: #dbeafe;
    color: #1e40af;
}

.wpq-status-completed {
    background: #d1fae5;
    color: #065f46;
}

.wpq-quote-date {
    display: block;
    font-size: 11px;
    color: #666;
    margin-top: 5px;
}


.wpq-notice {
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.wpq-notice-info {
    background: #e0f2fe;
    border: 1px solid #0284c7;
    color: #075985;
}

.wpq-empty-state {
    padding: 60px 20px;
}

.wpq-empty-icon {
    margin-bottom: 20px;
}

.wpq-empty-state h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.wpq-empty-state p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Responsive Styles for Quote History */
@media (max-width: 768px) {
    .wpq-summary-cards {
        grid-template-columns: 1fr;
    }
    
    .wpq-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    }
    
    .wpq-page-title {
        font-size: 24px;
    }
    
    .wpq-section-title {
        font-size: 20px;
    }
}