@font-face {
    font-family: "GMarketSans";
    src: local("GmarketSansTTFLight"), local("GmarketSansLight");
    font-weight: 300;
}

* {
    box-sizing: border-box;
}

body.mall-body {
    margin: 0;
    background: #f7fafc;
    color: var(--mall-font-color, #334155);
    font-family: "GMarketSans", "Helvetica Neue", Arial, system-ui, sans-serif;
    font-weight: 300;
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.mall-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
}

.mall-header-inner,
.mall-footer-inner,
.mall-wrap {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.mall-header-inner {
    min-height: 82px;
    display: grid;
    grid-template-columns: 260px minmax(280px, 1fr) auto;
    align-items: center;
    gap: 20px;
}

.mall-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.mall-brand img,
.mall-brand-mark {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.mall-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--mall-point-color, #53b8d0);
    color: #fff;
    font-weight: 700;
}

.mall-brand strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
}

.mall-brand small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 0.78rem;
}

.mall-search {
    display: flex;
    border: 1px solid #d9e2ec;
    background: #fff;
}

.mall-search input {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    outline: 0;
}

.mall-search button,
.mall-button {
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--mall-point-color, #53b8d0);
    background: var(--mall-point-color, #53b8d0);
    color: #fff;
    cursor: pointer;
}

.mall-button.is-sub {
    border-color: #cbd5e1;
    background: #fff;
    color: #334155;
}

.mall-user-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #475569;
    font-size: 0.85rem;
}

.mall-user-nav b {
    color: var(--mall-point-color, #53b8d0);
}

.mall-category-bar {
    width: min(1180px, calc(100% - 40px));
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 auto;
    overflow-x: auto;
    color: #475569;
    font-size: 0.88rem;
}

.mall-hero {
    width: min(1180px, calc(100% - 40px));
    min-height: 320px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 30px;
    align-items: center;
    margin: 32px auto;
    padding: 42px;
    background: #101827;
    color: #fff;
}

.mall-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.05;
}

.mall-hero p {
    max-width: 620px;
    color: #dbeafe;
}

.mall-hero img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
}

.mall-section {
    margin: 36px auto;
}

.mall-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.mall-section-heading h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
}

.mall-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.mall-product-card {
    min-width: 0;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.mall-product-thumb {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f1f5f9;
    color: #94a3b8;
}

.mall-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mall-product-info {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.mall-product-name {
    min-height: 42px;
    color: #1e293b;
    font-weight: 500;
    line-height: 1.45;
}

.mall-product-code {
    color: #94a3b8;
    font-size: 0.78rem;
}

.mall-product-price {
    color: #111827;
    font-size: 1.05rem;
    font-weight: 600;
}

.mall-status-badge {
    width: fit-content;
    padding: 3px 8px;
    font-size: 0.72rem;
}

.mall-badge-normal {
    background: #e0f2fe;
    color: #0369a1;
}

.mall-badge-muted {
    background: #f1f5f9;
    color: #64748b;
}

.mall-card,
.mall-table-card {
    padding: 22px;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.mall-page-title {
    margin: 34px 0 18px;
    font-size: 1.8rem;
    font-weight: 600;
}

.mall-form {
    display: grid;
    gap: 14px;
}

.mall-form label {
    display: grid;
    gap: 6px;
    color: #475569;
    font-size: 0.86rem;
}

.mall-form input,
.mall-form textarea,
.mall-form select {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #d9e2ec;
    background: #fff;
}

.mall-form textarea {
    min-height: 100px;
    padding-top: 10px;
}

.mall-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.mall-text-button {
    border: 0;
    background: transparent;
    color: var(--mall-delete-color, #ef4444);
    cursor: pointer;
}

.mall-detail {
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
    gap: 34px;
    margin-top: 34px;
}

.mall-detail-image {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    overflow: hidden;
}

.mall-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mall-detail-info h1 {
    margin: 0 0 12px;
    font-size: 2rem;
}

.mall-detail-price {
    display: block;
    margin: 20px 0;
    font-size: 1.7rem;
    font-weight: 600;
}

.mall-detail-content {
    margin-top: 38px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    line-height: 1.7;
}

.mall-detail-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
}

.mall-detail-thumbs img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.mall-spec-list {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 18px 0;
}

.mall-spec-list dt {
    color: #64748b;
}

.mall-spec-list dd {
    margin: 0;
    color: #1f2937;
}

.mall-add-cart-form {
    margin-top: 22px;
}

.mall-table {
    width: 100%;
    border-collapse: collapse;
}

.mall-table th,
.mall-table td {
    padding: 13px 10px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.mall-table th {
    background: #f8fafc;
    color: #334155;
    font-weight: 600;
}

.mall-qty-input {
    width: 88px;
    min-height: 36px;
    padding: 0 8px;
    border: 1px solid #d9e2ec;
}

.mall-summary {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    padding: 18px 0;
    font-size: 1rem;
}

.mall-summary strong {
    color: #111827;
    font-size: 1.25rem;
    font-weight: 600;
}

.mall-split,
.mall-account-grid,
.mall-support-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.mall-order-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.mall-auth-wrap {
    display: flex;
    justify-content: center;
    padding: 54px 0;
}

.mall-auth-card {
    width: min(420px, 100%);
}

.mall-auth-card h1,
.mall-card h3 {
    margin-top: 0;
}

.mall-link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    color: #1e293b;
    font-weight: 600;
}

.mall-empty {
    padding: 48px 20px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    text-align: center;
}

.mall-alert {
    padding: 12px 14px;
    border: 1px solid #bae6fd;
    background: #f0f9ff;
    color: #0369a1;
}

.mall-alert.is-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}
.wrap {
    max-width: var(--mall-shell-width, 1400px);
    width: 100%;
    margin: 28px auto 48px;
    padding: 0 var(--mall-shell-padding-x, 16px);
}
.section-card {
    background: #ffffff;
    border: 1px solid var(--line, #d6dee8);
    border-radius: 0;
    box-shadow: none;
}
.product-page .product-detail-card {
    align-items: start;
    padding: 24px;
}
.product-gallery,
.product-summary {
    min-width: 0;
}
.product-tabs {
    margin-top: 24px;
    padding: 0;
}
.product-tab-nav {
    display: flex;
    border-bottom: 1px solid var(--line, #d6dee8);
}
.product-tab-nav a {
    min-width: 150px;
    padding: 15px 20px;
    border-right: 1px solid var(--line, #d6dee8);
    text-align: center;
    color: #64748b;
}
.product-tab-nav a.is-active {
    color: #111827;
    font-family: "GmarketSansTTFMedium", "GMarketSans", sans-serif;
    box-shadow: inset 0 -2px 0 var(--mall-point-color, #53b8d0);
}
.product-tab-panel {
    padding: 24px;
}
.product-tab-empty {
    border-top: 1px solid #eef2f7;
    color: #94a3b8;
    text-align: center;
}
.cart-card,
.checkout-card,
.my-orders-card,
.order-detail-card,
.profile-wrap > .profile-card,
.point-history-card,
.favorites-card,
.support-card {
    padding: 24px;
}
.cart-table-card,
.my-orders-table-wrap,
.order-detail-table-wrap,
.point-history-table-wrap {
    padding: 0;
    overflow-x: auto;
    border-radius: 0;
}
.cart-table th,
.cart-table td,
.my-orders-table th,
.my-orders-table td,
.order-detail-table th,
.order-detail-table td,
.point-history-table th,
.point-history-table td {
    text-align: center;
}
.cart-table th,
.my-orders-table th,
.order-detail-table th,
.point-history-table th {
    background: #f8fafc;
    color: #1f2937;
    font-family: "GmarketSansTTFMedium", "GMarketSans", sans-serif;
}
.cart-summary,
.checkout-summary-card .mall-summary {
    border-top: 1px solid var(--line, #d6dee8);
}
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 18px;
    align-items: start;
}
.checkout-form-card,
.checkout-summary-card,
.profile-card,
.point-history-summary-card {
    border-radius: 0;
    box-shadow: none;
}
.my-orders-wrap .my-orders-card,
.order-detail-wrap .order-detail-card,
.profile-wrap > .profile-card,
.point-history-wrap .point-history-card {
    display: grid;
    gap: 16px;
}
.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(160px, 1fr));
    gap: 14px;
}
.profile-layout .profile-card {
    min-height: 128px;
}
.point-history-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.point-history-summary-card {
    display: grid;
    gap: 8px;
}
.point-history-label {
    color: #64748b;
    font-size: 0.84rem;
}
.point-history-value {
    color: #111827;
    font-family: "GmarketSansTTFMedium", "GMarketSans", sans-serif;
    font-size: 1.35rem;
}
.point-empty {
    height: 120px;
    color: #94a3b8;
    text-align: center;
}

.mall-footer {
    margin-top: 60px;
    padding: 28px 0;
    background: var(--mall-bottom-color, #0f172a);
    color: #cbd5e1;
    font-size: 0.82rem;
}

.mall-footer strong {
    color: #fff;
}

@media (max-width: 900px) {
    .mall-header-inner,
    .mall-hero,
    .mall-detail,
    .mall-split,
    .mall-account-grid,
    .mall-support-grid,
    .checkout-layout,
    .profile-layout,
    .point-history-grid {
        grid-template-columns: 1fr;
    }

    .mall-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
