/* Cart Container */
.cart-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.cart-title {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* Progress Steps */
.cart-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.progress-step {
    display: flex;
    align-items: center;
    color: #999;
}

.progress-step.active {
    color: #000;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}

.active .step-number {
    background-color: #000;
    color: white;
}

/* Grid Layout */
.cart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }
}

/* Cart Items Section */
.cart-items-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cart-items {
    margin-bottom: 1.5rem;
}

.cart-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    padding-top: 1rem;
    border-top: 2px solid #eee;
}

/* Customer Information Section */
.customer-info-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.customer-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
}

.form-group em {
    color: #ff4444;
}

.name-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

input, select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

input:focus, select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0,102,204,0.1);
}

/* Action Buttons */
.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.continue-shopping, .proceed-checkout {
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.continue-shopping {
    background-color: #f0f0f0;
    color: #333;
}

.proceed-checkout {
    background-color: #0066cc;
    color: white;
}

.continue-shopping:hover {
    background-color: #e0e0e0;
}

.proceed-checkout:hover {
    background-color: #0052a3;
}

/* Quantity Input */
.quantity-input {
    width: 60px;
    text-align: center;
    padding: 0.5rem;
}

/* Delete Button */
.delete-button {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.delete-button:hover {
    background-color: #ff0000;
}

/* Delivery Info Section */
.delivery-info-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.info-notice {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.info-notice p {
    margin: 0.5rem 0;
    color: #666;
}

.delivery-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h2 {
    color: #333;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Payment Options */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.2s;
}

.payment-option:hover {
    border-color: #0066cc;
}

.payment-option input[type="radio"] {
    margin-top: 0.25rem;
}

.payment-option label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
}

.payment-title {
    font-weight: 500;
    color: #333;
}

.payment-description {
    font-size: 0.9rem;
    color: #666;
}

/* Back Button */
.back-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    background-color: #f0f0f0;
    color: #333;
}

.back-button:hover {
    background-color: #e0e0e0;
}

/* Textarea */
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
}

textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0,102,204,0.1);
}

/* Credit Card Form */
.credit-card-form {
    margin-top: 1rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.credit-card-form .form-group {
    margin-bottom: 1rem;
}

.credit-card-form .form-group:last-child {
    margin-bottom: 0;
}

.credit-card-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.2s;
}

.credit-card-form input:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0,102,204,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.expiry-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.expiry-inputs input {
    width: 4rem;
}

.expiry-inputs span {
    color: #666;
    font-size: 1.2rem;
}

#card_cvv {
    width: 5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .delivery-info-section {
        padding: 1rem;
    }

    .payment-option {
        padding: 0.75rem;
    }

    .cart-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .cart-actions button {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
    
    .credit-card-form {
        padding: 1rem;
    }
}

/* Confirm Section Styles */
.confirm-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.order-summary {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.order-summary h2 {
    color: #333;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.confirm-info-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
}

.confirm-info-section h2 {
    color: #333;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0066cc;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item label {
    color: #666;
    font-size: 0.9rem;
}

.info-item span {
    color: #333;
    font-size: 1rem;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* Cart Items in Confirmation */
.confirm-section .cart-items {
    margin-bottom: 1.5rem;
}

.confirm-section .cart-item {
    background-color: white;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.confirm-section .cart-total {
    font-size: 1.25rem;
    padding: 1rem;
    background-color: white;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive Design for Confirmation */
@media (max-width: 768px) {
    .confirm-section {
        padding: 1rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .confirm-info-section {
        padding: 1rem;
    }

    .order-summary {
        padding: 1rem;
    }
}

/* Completion Page Styles */
.completion-section {
    background: white;
    padding: 3rem 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 800px;
    margin: 2rem auto;
}

.completion-icon {
    margin: 0 auto 2rem;
    width: 64px;
    height: 64px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.completion-section h2 {
    color: #333;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.completion-message {
    margin: 2rem 0;
    color: #666;
    line-height: 1.6;
}

.completion-message p {
    margin: 0.5rem 0;
}

.back-to-home {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s;
    margin-top: 2rem;
}

.back-to-home:hover {
    background-color: #0052a3;
}

/* Progress Steps for Completion */
.progress-step.completed {
    background-color: #4CAF50;
    color: white;
}

.progress-step.completed .step-number {
    background-color: white;
    color: #4CAF50;
}

/* Responsive Design for Completion */
@media (max-width: 768px) {
    .completion-section {
        padding: 2rem 1rem;
        margin: 1rem;
    }

    .completion-section h2 {
        font-size: 1.5rem;
    }

    .completion-icon {
        width: 48px;
        height: 48px;
    }
}

.credit-card-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.card-icon {
    height: 20px;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
}

.payment-option label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-description {
    margin: 2px 0;
    font-size: 0.9em;
} 