* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.5;
}

.container {
    max-width: 428px;
    margin: 0 auto;
    background-color: white;
    min-height: 100vh;
    position: relative;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    padding: 20px 16px;
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 10;
}

.back-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    margin-right: 16px;
}

.header-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

/* Progress Steps */
.progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background-color: white;
    margin-bottom: 8px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    z-index: 2;
    position: relative;
}

.step-circle.completed {
    background-color: #3b82f6;
    color: white;
}

.step-circle.current {
    background-color: #3b82f6;
    color: white;
}

.step-circle:not(.completed):not(.current) {
    background-color: #e5e7eb;
    color: #9ca3af;
}

.step-label {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.progress-step.current .step-label {
    color: #333;
    font-weight: 500;
}

.progress-step.completed .step-label {
    color: #666;
}

.progress-line {
    position: absolute;
    top: 18px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #e5e7eb;
    z-index: 1;
}

.progress-line.completed {
    background-color: #3b82f6;
}

.progress-step:last-child .progress-line {
    display: none;
}

/* Delivery Section */
.delivery-section {
    background-color: white;
    padding: 24px 16px;
    margin-bottom: 8px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.customer-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.delivery-address, .contact-number {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

/* Product Section */
.product-section {
    background-color: white;
    padding: 24px 16px;
    margin-bottom: 8px;
}

.product-card {
    display: flex;
    gap: 16px;
}

.product-image {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.price-tag {
    position: absolute;
    top: -6px;
    left: -6px;
    background-color: #059669;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.product-info {
    flex: 1;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.rating {
    margin-bottom: 12px;
}

.star {
    color: #fbbf24;
    font-size: 16px;
    margin-right: 2px;
}

.star.filled {
    color: #fbbf24;
}

.star:not(.filled) {
    color: #e5e7eb;
}

.product-details {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.quantity {
    font-size: 14px;
    color: #333;
}

.discount {
    background-color: #059669;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.current-price {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Price Section */
.price-section {
    background-color: white;
    padding: 24px 16px;
    margin-bottom: 8px;
}

.price-breakdown {
    margin-bottom: 16px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.price-row.total {
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
    margin-top: 8px;
}

.price-label {
    font-size: 14px;
    color: #666;
}

.total-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.price-value {
    font-size: 14px;
    color: #333;
}

.discount-value {
    color: #059669;
    font-weight: 500;
}

.free-delivery {
    color: #059669;
    font-weight: 500;
}

.total-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.savings-message {
    color: #059669;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* Security Message */
.security-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background-color: #f8f9fa;
    margin: 8px 0;
}

.security-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.security-text {
    flex: 1;
}

.security-text p {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

/* Bottom Section */
.bottom-section {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 428px;
    background-color: white;
    padding: 16px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.final-price {
    display: flex;
    flex-direction: column;
}

.old-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.new-price {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.continue-btn {
    background-color: #fbbf24;
    color: #333;
    border: none;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.continue-btn:hover {
    background-color: #f59e0b;
}

.continue-btn:active {
    transform: translateY(1px);
}

/* Responsive Design */
@media (max-width: 428px) {
    .container {
        max-width: 100%;
    }
    
    .bottom-section {
        max-width: 100%;
    }
}

/* Add space at bottom to avoid overlap with fixed bottom section */
.container {
    padding-bottom: 100px;
}

/* Animation for progress steps */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.step-circle.current {
    animation: pulse 2s infinite;
}