﻿.login-wrapper {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    padding: 40px 20px;
}

.login-box {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.login-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    text-align: center;
}

.login-sub {
    text-align: center;
    color: #777;
    font-size: 14px;
    margin-bottom: 28px;
    line-height: 1.6;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

    .login-form input[type="text"],
    .login-form input[type="password"] {
        height: 46px;
        border: 1px solid #ddd;
        border-radius: 10px;
        padding: 0 14px;
        font-size: 14px;
    }

    .login-form input:focus {
        outline: none;
        border-color: #6f3b1f;
    }

.login-btn {
    margin-top: 10px;
    height: 48px;
    border-radius: 999px;
    border: none;
    background: #3a2316;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

    .login-btn:hover {
        background: #5a2d19;
    }

.login-error {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    margin-bottom: 16px;
    text-align: center;
}

.login-links {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
}

    .login-links a {
        color: #6f3b1f;
        font-weight: 700;
    }

.login-footer {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    color: #888;
}

.auto-login-check {
    font-size: 14px;
    color: #555;
}
.mall-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 24px;
}

.section-title {
    margin: 32px 0 22px;
    font-size: 28px;
    font-weight: 800;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 18px;
    overflow: hidden;
    transition: all .2s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
}

    .product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    }

.product-image {
    height: 210px;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.product-info {
    padding: 18px;
}

.product-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-desc {
    color: #777;
    font-size: 14px;
    line-height: 1.5;
    min-height: 42px;
}

.product-price {
    margin-top: 14px;
    font-size: 18px;
    font-weight: 800;
    color: #5a2d19;
}

.soldout-badge {
    margin-top: 10px;
    display: inline-block;
    background: #222;
    color: #fff;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
}

.detail-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 24px;
    padding: 36px;
}

.detail-image {
    background: #f3f3f3;
    border-radius: 20px;
    overflow: hidden;
    min-height: 420px;
}

    .detail-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.detail-info h2 {
    font-size: 32px;
    margin: 0 0 16px;
}

.detail-desc {
    color: #666;
    line-height: 1.7;
    margin-bottom: 24px;
}

.detail-price {
    font-size: 30px;
    font-weight: 800;
    color: #5a2d19;
    margin: 24px 0;
}

.qty-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

    .qty-box input {
        width: 90px;
        height: 42px;
        padding: 0 10px;
        border: 1px solid #ddd;
        border-radius: 8px;
    }

.empty-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 48px;
    text-align: center;
    color: #777;
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .detail-wrap {
        grid-template-columns: 1fr;
        padding: 22px;
    }
}
.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}

    .cart-table th, .cart-table td {
        padding: 16px;
        border-bottom: 1px solid #eee;
        text-align: center;
    }

.cart-product {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .cart-product img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 10px;
    }

.cart-total {
    margin-top: 24px;
    font-size: 22px;
    text-align: right;
}

body {
    margin: 0;
    font-family: 'Malgun Gothic', Arial, sans-serif;
    color: #222;
    background: #fafafa;
}

a {
    color: inherit;
    text-decoration: none;
}

.mall-header {
    height: 68px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.mall-header-inner {
    max-width: 1180px;
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mall-logo {
    font-size: 24px;
    font-weight: 900;
}

.mall-nav {
    display: flex;
    gap: 28px;
    font-weight: 700;
}

.mall-user {
    display: flex;
    gap: 14px;
    font-size: 14px;
}

.home-hero {
    background: linear-gradient(135deg, #1f130c, #6f3b1f);
    color: #fff;
}

.home-hero-inner {
    max-width: 1180px;
    min-height: 430px;
    margin: 0 auto;
    padding: 80px 24px;
    display: flex;
    align-items: center;
}

.hero-kicker {
    color: #e4c49a;
    font-weight: 700;
    margin-bottom: 14px;
}

.home-hero h1 {
    font-size: 52px;
    line-height: 1.2;
    margin: 0 0 22px;
}

.home-hero p {
    font-size: 18px;
    line-height: 1.7;
    color: #f0e6dc;
}

.hero-actions {
    margin-top: 30px;
    display: flex;
    gap: 12px;
}

.btn-main,
.btn-sub {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
}

.btn-main {
    background: #fff;
    color: #3a2316;
}

.btn-sub {
    background: transparent;
    border: 1px solid #ddd;
    color: #333;
}

.home-hero .btn-sub {
    color: #fff;
    border-color: rgba(255,255,255,.45);
}

.mall-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 24px;
}

.section-title {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 24px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.category-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 22px;
    padding: 32px;
    min-height: 130px;
    box-shadow: 0 10px 30px rgba(0,0,0,.04);
}

    .category-card strong {
        display: block;
        font-size: 22px;
        margin-bottom: 12px;
    }

    .category-card span {
        color: #777;
    }

.mall-footer {
    background: #1f1f1f;
    color: #fff;
    padding: 34px 24px;
    margin-top: 60px;
}

@media (max-width: 900px) {
    .mall-header-inner {
        height: auto;
        flex-direction: column;
        gap: 14px;
        padding: 18px 24px;
    }

    .mall-header {
        height: auto;
    }

    .mall-nav {
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .home-hero h1 {
        font-size: 36px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }
}
.checkout-wrap {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 28px;
}

.checkout-form-box,
.checkout-summary {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 22px;
    padding: 30px;
}

    .checkout-form-box h3,
    .checkout-summary h3 {
        margin-top: 0;
    }

.form-row {
    margin-bottom: 16px;
}

    .form-row label {
        display: block;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .form-row input {
        width: 100%;
        height: 44px;
        border: 1px solid #ddd;
        border-radius: 10px;
        padding: 0 12px;
        box-sizing: border-box;
    }

.checkout-submit {
    margin-top: 20px;
    width: 100%;
}

.summary-item,
.summary-total {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.summary-total {
    font-size: 20px;
}

.payment-wrap {
    max-width: 720px;
    margin: 0 auto;
}

.payment-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 22px;
    padding: 32px;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

    .payment-row span {
        color: #777;
    }

.payment-button {
    width: 100%;
    margin-top: 24px;
}