* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    color: #1a1a1a;
    line-height: 1.7;
    background: #f8f9fa;
}

header {
    background: white;
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 0;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
    color: #1a1a1a;
}

.back-btn {
    padding: 10px 25px;
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    color: #1a1a1a;
}

.back-btn:hover {
    background: #e0e0e0;
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 30px;
}

.order-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    background: white;
    padding: 30px;
    border-radius: 15px;
}

.step {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e5e5e5;
    top: 20px;
    z-index: 0;
}

.step.active:not(:last-child)::after {
    background: #1a1a1a;
}

.step-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e5e5;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 10px;
}

.step.active .step-number {
    background: #1a1a1a;
    color: white;
}

.step-label {
    font-size: 14px;
    font-weight: 600;
    color: #999;
}

.step.active .step-label {
    color: #1a1a1a;
}

.order-content {
    background: white;
    padding: 50px;
    border-radius: 15px;
    display: none;
}

.order-content.active {
    display: block;
}

h2 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 40px;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.product-image {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-detail h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
}

.product-price {
    font-size: 32px;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.product-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e5e5e5;
}

.quantity-selector {
    margin-bottom: 30px;
}

.quantity-selector label {
    display: block;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 16px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.quantity-controls button {
    width: 40px;
    height: 40px;
    border: 2px solid #e5e5e5;
    background: white;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    font-weight: 700;
}

.quantity-controls button:hover {
    border-color: #1a1a1a;
}

.quantity-controls input {
    width: 80px;
    height: 40px;
    text-align: center;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
}

.total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    margin-bottom: 30px;
    border-top: 2px solid #1a1a1a;
    border-bottom: 2px solid #1a1a1a;
}

.total-price span:first-child {
    font-size: 18px;
    font-weight: 700;
}

.total-price span:last-child {
    font-size: 28px;
    font-weight: 900;
    color: #1a1a1a;
}

.cta-btn {
    width: 100%;
    padding: 18px;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.cta-btn:hover {
    background: #000;
    transform: translateY(-2px);
}

.full-width {
    width: 100%;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: #fafafa;
    border-radius: 10px;
    margin-bottom: 20px;
}

.cart-item-info h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
}

.cart-item-price {
    font-size: 18px;
    font-weight: 700;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-controls button {
    width: 35px;
    height: 35px;
    border: 2px solid #e5e5e5;
    background: white;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    font-weight: 700;
}

.cart-item-controls span {
    font-size: 18px;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
}

.cart-summary {
    background: #fafafa;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    font-size: 16px;
}

.cart-summary-row.total {
    border-top: 2px solid #1a1a1a;
    margin-top: 15px;
    padding-top: 20px;
    font-size: 20px;
    font-weight: 900;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a1a1a;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.payment-method {
    padding: 25px;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-method:hover {
    border-color: #1a1a1a;
}

.payment-method.selected {
    border-color: #1a1a1a;
    background: #fafafa;
}

.payment-method div:first-child {
    font-size: 40px;
    margin-bottom: 10px;
}

.payment-method div:last-child {
    font-weight: 700;
    font-size: 15px;
}

.order-complete {
    text-align: center;
    padding: 50px 0;
}

.check-icon {
    width: 100px;
    height: 100px;
    background: #00c879;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    font-weight: 900;
    margin: 0 auto 30px;
}

.order-complete h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.order-complete p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.order-number {
    display: inline-block;
    padding: 15px 30px;
    background: #fafafa;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 40px;
}

.order-info-box {
    background: #fafafa;
    border-radius: 10px;
    padding: 30px;
    margin: 40px auto;
    max-width: 600px;
    text-align: left;
}

.order-info-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
}

.order-info-row:last-child {
    border-bottom: none;
}

.order-info-label {
    font-weight: 700;
    color: #666;
}

.order-info-value {
    font-weight: 700;
}

@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .order-content {
        padding: 30px 20px;
    }
}