/* Quotation Page Styles */
.quotation-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    margin-bottom: 30px;
}

.quotation-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    animation: fadeInUp 0.8s ease-out;
}

.quotation-header p {
    font-size: 1.2em;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.quotation-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Products Selection Section */
.products-selection {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.products-selection h2 {
    color: var(--primary-blue);
    margin-bottom: 25px;
    font-size: 1.8em;
}

.products-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-filter {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    min-width: 150px;
    transition: var(--transition);
}

.category-filter:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 75, 132, 0.1);
}

.search-bar {
    display: flex;
    flex: 1;
    min-width: 250px;
}

.search-bar input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    transition: var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.search-bar button {
    padding: 12px 15px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: var(--transition);
}

.search-bar button:hover {
    background: var(--secondary-blue);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    padding: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 180px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

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

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-card h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 1.1em;
    line-height: 1.3;
}

.price {
    display: block;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--accent-red);
    margin-bottom: 15px;
}

.add-to-quote-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-quote-btn:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
}

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

/* Quote Cart Section */
.quote-cart {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.cart-header h2 {
    color: var(--primary-blue);
    font-size: 1.5em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.clear-cart-btn {
    padding: 8px 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.clear-cart-btn:hover {
    background: #c82333;
}

.cart-items {
    margin-bottom: 25px;
    max-height: 400px;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-cart i {
    font-size: 3em;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-cart p {
    margin-bottom: 5px;
    font-size: 14px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    animation: slideInRight 0.3s ease-out;
}

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

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.3;
}

.cart-item-price {
    color: var(--accent-red);
    font-weight: bold;
    font-size: 14px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 15px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.quantity-input {
    width: 50px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.remove-item-btn {
    padding: 5px;
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    margin-left: 10px;
    transition: var(--transition);
}

.remove-item-btn:hover {
    color: #c82333;
    transform: scale(1.1);
}

/* Cart Summary */
.cart-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-row.total {
    font-weight: bold;
    font-size: 16px;
    color: var(--primary-blue);
    border-top: 1px solid #dee2e6;
    padding-top: 10px;
    margin-top: 10px;
}

/* Quote Actions */
.quote-actions {
    text-align: center;
}

.request-quote-btn {
    width: 100%;
    padding: 15px;
    background: var(--accent-red);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.request-quote-btn:hover:not(:disabled) {
    background: #d63384;
    transform: translateY(-2px);
}

.request-quote-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideInUp 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e0e0e0;
    background: var(--primary-blue);
    color: white;
    border-radius: 10px 10px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5em;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.close-modal:hover {
    transform: scale(1.1);
}

/* Quote Form */
.quote-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-blue);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 75, 132, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.cancel-btn {
    flex: 1;
    padding: 12px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cancel-btn:hover {
    background: #5a6268;
}

.submit-quote-btn {
    flex: 2;
    padding: 12px;
    background: var(--accent-red);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-quote-btn:hover {
    background: #d63384;
}

/* Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .quotation-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .quote-cart {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .quotation-header h1 {
        font-size: 2em;
    }
    
    .quotation-header p {
        font-size: 1em;
    }
    
    .products-filter {
        flex-direction: column;
    }
    
    .search-bar {
        min-width: auto;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cart-item-quantity {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .quotation-container {
        padding: 0 15px;
    }
    
    .products-selection,
    .quote-cart {
        padding: 20px;
    }
} 