/* ----------------------- */
/* 1. Global Reset & Base  */
/* ----------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ----------------------- */
/* 2. Header Styling       */
/* ----------------------- */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #081501; /* Dark green background */
    min-height: 70px;
    border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
}

/* Burger Menu Icon */
.menu-icon {
    font-size: 24px;
    color: #fff;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    cursor: pointer;
}

/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin-left: 20px;
}

.logo {
    width: 200px;
    height: auto;
    object-fit: contain;
    cursor: pointer;
}

/* Icon Section (Account, Cart, etc.) */
.icons-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.account-icon,
.cart-icon {
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.account-icon:hover,
.cart-icon:hover {
    color: #ff8c00;
}

/* ----------------------- */
/* 3. Cart Page Section    */
/* ----------------------- */
main {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.cart-section {
    max-width: 800px;
    width: 100%;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cart-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Cart Items */
.cart-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.item-details h3 {
    font-size: 1.2rem;
    color: #333;
}

.item-details p {
    margin: 3px 0;
    color: #666;
}

.item-price {
    font-weight: bold;
    color: #ff8c00;
}

/* Remove Button */
.remove-item-btn {
    padding: 10px 15px;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s;
}

.remove-item-btn:hover {
    background-color: #c0392b;
    transform: scale(1.05);
}

/* Cart Summary */
.cart-summary {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #ddd;
    background-color: #f9f9f9;
    border-radius: 12px;
}

.total-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.checkout-btn {
    padding: 12px 20px;
    background-color: #bac11b;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s;
    width: 100%; /* Full width for better responsiveness */
    max-width: 300px; /* Restrict excessive width */
}

.checkout-btn:hover {
    background-color: #e07c00;
    transform: scale(1.05);
}

/* Ticket Assignment Interface */
.ticket-item {
    margin: 10px 0;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f8f8f8;
}

.ticket-item h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.ticket-assignment {
    margin-top: 10px;
}

.ticket-assignment-select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
}

.email-input-container {
    margin-bottom: 10px;
}

.ticket-email {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.assign-ticket-btn {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
}

.assign-ticket-btn:hover {
    background-color: #45a049;
}

.tickets-container {
    margin-top: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.cart-item-image {
    width: 150px; /* Adjust as needed */
    height: 150px; /* Adjust as needed */
    overflow: hidden; /* Ensure the image doesn't overflow */
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-img {
    max-width: 100%; /* Ensure the image doesn't exceed the container width */
    max-height: 100%; /* Ensure the image doesn't exceed the container height */
    object-fit: cover; /* Maintain aspect ratio while covering the container */
    border-radius: 8px; /* Optional: Add rounded corners */
}
/* ----------------------- */
/* 4. Footer Styling       */
/* ----------------------- */


/* ----------------------- */
/* 5. Responsive Queries  */
/* ----------------------- */
@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 150px;
    }

    .cart-section h1 {
        font-size: 2rem;
    }

    .checkout-btn {
        width: 100%;
    }
}
