@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --background-color: #f4f4f4;
    --surface-color: #ffffff;
    --text-color: #333333;
    --light-text-color: #fdfdfd;
    --border-color: #dddddd;
    --success-color: #2ecc71;
    --error-color: #131212e7;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --btn-hover-color: #2980b9;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3 {
    color: var(--secondary-color);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.site-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: var(--secondary-color);
    padding: 2rem;
    color: var(--light-text-color);
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.header {
    background-color: var(--surface-color);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.header h1 {
    margin: 0;
    font-size: 2rem;
}

.navigation h3 {
    color: var(--light-text-color);
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-top: 0;
}

.navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navigation a {
    display: block;
    color: var(--light-text-color);
    padding: 0.75rem 0;
    font-size: 1.1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-bottom: 0.5rem;
}

.navigation a:hover, .navigation a.active {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding-left: 10px;
    border-radius: 10px;
}

.content-area {
    padding: 2rem;
}

.content-area h2 {
    margin-top: 0;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--surface-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card p {
    padding: 1rem;
    margin: 0;
}

.form-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--surface-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 1rem 2rem; 
    margin: 0.75rem; 
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: var(--btn-hover-color);
    border-radius: 12px;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.status-message {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem auto;
    max-width: 600px;
    text-align: center;
}

.status-success {
    background-color: var(--success-color);
    color: var(--light-text-color);
}

.status-error {
    background-color: var(--error-color);
    color: var(--light-text-color);
}

.status-message h3 {
    margin-top: 0;
    color: var(--light-text-color);
}

@media (max-width: 768px) {
    .site-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        padding: 1rem;
        box-sizing: border-box;
    }

    .navigation ul {
        display: flex;
        justify-content: space-around;
    }

    .navigation h3 {
        display: none;
    }

    .navigation a {
        padding: 0.5rem 1rem;
    }
    
    .navigation a:hover, .navigation a.active {
      padding-left: 1rem;
    }

    .header {
        padding: 1rem;
    }
    
    .content-area {
        padding: 1rem;
    }
    
    .content-area h2 {
        font-size: 1.5rem;
    }

    .btn {
        margin: 0.5rem;
        padding: 0.875rem 1.5rem;
    }
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: var(--surface-color);
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}

.order-table th, .order-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.order-table th {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    font-weight: 600;
}

.order-table td {
    vertical-align: middle;
}

.order-table img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.order-table .product-name {
    font-weight: 600;
}

.order-table .price {
    color: var(--primary-color);
    font-weight: bold;
}

.order-table .out-of-stock {
    color: var(--error-color);
    font-style: italic;
}

.order-table input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.order-submission-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--surface-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.receipt-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--surface-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.receipt-header {
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.receipt-header h2 {
    margin: 0;
}

.receipt-details, .customer-details {
    margin-bottom: 2rem;
}

.receipt-details h3, .customer-details h3 {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.receipt-table {
    width: 100%;
    border-collapse: collapse;
}

.receipt-table th, .receipt-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.receipt-table th {
    text-align: left;
    background-color: #f9f9f9;
}

.receipt-table .total-row td {
    font-weight: bold;
    font-size: 1.1rem;
}

.receipt-footer {
    text-align: center;
    margin-top: 2rem;
}