.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideDown 0.3s ease;
    padding: 2rem;
}

.modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.modal-price {
    font-size: 1.2rem;
    color: #27ae60;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.modal-attributes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modal-attribute label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.modal-attribute select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dfe6e9;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.modal-attribute select:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.modal-quantity {
    margin-bottom: 1.5rem;
}

.modal-quantity label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.modal-quantity input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dfe6e9;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.modal-quantity input:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.modal-error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: #fadbd8;
    border-radius: 4px;
}

.modal-actions {
    display: flex;
    gap: 1rem;
}

.cart-section {
    padding: 3rem 0;
}

.cart-section h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cart-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 2fr 150px 100px 50px;
    gap: 1.5rem;
    align-items: center;
}

.cart-item-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.cart-item-price {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quantity-btn {
    background-color: #ecf0f1;
    border: none;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.quantity-btn:hover:not(:disabled) {
    background-color: #d5dbdb;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-value {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.cart-item-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: right;
}

.cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}

.cart-item-remove:hover {
    transform: scale(1.2);
}

.cart-summary {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin-left: auto;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ecf0f1;
}

.cart-summary-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    border: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cart-summary-value {
    font-weight: 600;
}

.cart-summary-total .cart-summary-value {
    color: #27ae60;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

.checkout-form h3 {
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #2c3e50;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 1px solid #dfe6e9;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.form-group input.error,
.form-group select.error {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
}

.checkout-error {
    color: #e74c3c;
    padding: 1rem;
    background-color: #fadbd8;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.checkout-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.checkout-summary {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
}

.checkout-summary h3 {
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.checkout-summary-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #ecf0f1;
}

.checkout-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    padding-top: 1rem;
    border-top: 2px solid #ecf0f1;
}

.checkout-summary-total span:last-child {
    color: #27ae60;
}

.order-confirmation {
    padding: 3rem 0;
}

.confirmation-header {
    text-align: center;
    margin-bottom: 3rem;
}

.confirmation-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.confirmation-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
}

.order-details-card,
.order-items-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.order-details-card h2,
.order-items-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.order-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.order-info-label {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.order-info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.order-total {
    font-size: 1.3rem;
    color: #27ae60;
}

.order-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-pending {
    background-color: #fdeaa8;
    color: #d68910;
}

.status-paid {
    background-color: #d5f4e6;
    color: #27ae60;
}

.status-failed {
    background-color: #fadbd8;
    color: #c0392b;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f5f7fa;
    border-radius: 4px;
}

.order-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.order-item-name {
    font-weight: 600;
    color: #2c3e50;
}

.order-item-quantity {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.order-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
}

.order-actions {
    text-align: center;
    margin-top: 2rem;
}

@media (max-width: 968px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
        order: -1;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cart-item-total {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .modal-content {
        max-width: 90%;
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
