/* Basic Reset & Body Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header & Navigation */
header {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    display: inline-block;
    vertical-align: middle;
}

header nav {
    display: inline-block;
    vertical-align: middle;
    float: right;
}

header nav a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 10px 15px;
    margin-left: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

header nav a:hover {
    background-color: #34495e;
}

.cart-link, .quote-link {
    background-color: #e74c3c;
    font-weight: bold;
}

.cart-link:hover, .quote-link:hover {
    background-color: #c0392b;
}

/* Main Content */
main {
    padding: 40px 0;
}

/* Product List / Grid */
.product-list h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.product-card h3 {
    color: #2c3e50;
    margin: 15px 0 10px;
}

.product-card p {
    padding: 0 20px 15px;
    color: #555;
    font-size: 0.95em;
}

.product-card .button {
    display: inline-block;
    margin-bottom: 20px;
}

/* Product Detail Page */
.product-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.product-image {
    flex: 1;
    min-width: 300px;
}

.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.product-info {
    flex: 2;
    min-width: 300px;
}

.product-info h2 {
    color: #2c3e50;
    margin-top: 0;
}

.product-info .price {
    font-size: 1.8em;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 20px;
}

.product-info .description {
    margin-bottom: 25px;
    color: #555;
}

.product-info ul {
    list-style: disc inside;
    padding-left: 0;
    margin-bottom: 25px;
    color: #555;
}

.product-info ul li {
    margin-bottom: 8px;
}

.product-actions button {
    margin-right: 15px;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.button.primary {
    background-color: #3498db;
    color: #fff;
}

.button.primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.button.secondary {
    background-color: #2ecc71;
    color: #fff;
}

.button.secondary:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
}

/* Form Styling */
.form-page {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.quote-form-section h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.quote-form-section p {
    margin-bottom: 25px;
    color: #555;
}

.quote-items-summary {
    background-color: #ecf0f1;
    border: 1px solid #bdc3c7;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
}

.quote-items-summary h3 {
    margin-top: 0;
    color: #2c3e50;
}

.quote-items-summary ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.quote-items-summary ul li {
    background-color: #fdfdfd;
    border: 1px solid #e0e6e8;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}
.right-items {
    display: flex; /* Enable flexbox for input and button */
    gap: 10px;     /* Add some space between the input and*/
.quote-items-summary ul li span {
    font-weight: bold;
    color: #34495e;
}

.quote-items-summary ul li button {
    background-color: #e74c3c;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    transition: background-color 0.2s ease;
}

.quote-items-summary ul li button:hover {
    background-color: #c0392b;
}



/* Confirmation Page */
.confirmation-page {
    text-align: center;
    background-color: #fff;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.confirmation-page h2 {
    color: #2ecc71;
    margin-bottom: 20px;
}

.confirmation-page p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 15px;
}

.confirmation-page .button-group {
    margin-top: 30px;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer p {
    margin: 0;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    header nav {
        float: none;
        text-align: center;
        margin-top: 15px;
    }

    header nav a {
        display: block;
        margin: 5px auto;
    }

    .product-detail {
        flex-direction: column;
    }

    .product-image, .product-info {
        min-width: unset;
        width: 100%;
    }

    .form-page, .confirmation-page {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-actions button {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
}
