:root {
    --ink: #18212b;
    --muted: #5f6f82;
    --line: #d6dee8;
    --bg: #f3f6fb;
    --panel: #ffffff;
    --brand: #0ea5a5;
    --brand-2: #0f766e;
    --warn: #b45309;
    --danger: #be123c;
    --radius: 14px;
    --shop-font-color: #18212b;
    --shop-approval-color: #0f172a;
    --shop-cancel-color: #334155;
    --shop-reset-color: #0f766e;
    --shop-delete-color: #be123c;
    --shop-highlight-color: #0ea5a5;
    --shop-bottom-color: #0f172a;
    --shop-icon-color: #ffffff;
    --mall-shell-width: 1400px;
    --mall-shell-padding-x: 16px;
    --mall-content-width: calc(var(--mall-shell-width) - (var(--mall-shell-padding-x) * 2));
}

/* Alpha public mall compatibility: keep existing alpha page templates while using the stock_ERP mall skin. */
.mall-wrap {
    max-width: var(--mall-shell-width);
    width: 100%;
    margin: 26px auto 42px;
    padding: 0 16px;
    flex: 1 0 auto;
}
.mall-page-home .mall-wrap {
    margin-top: 0;
}
.mall-hero {
    max-width: var(--mall-content-width);
    width: 100%;
    min-height: 360px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    gap: 34px;
    align-items: center;
    margin: 0 auto 22px;
    padding: 42px 36px;
    border-radius: calc(var(--radius) + 6px);
    background: linear-gradient(120deg, #12263d, #0f3f55);
    color: #f0fbff;
}
.m-titlebar-inner,
.m-header-inner,
.m-menubar-inner,
.mall-wrap {
    max-width: var(--mall-shell-width);
}
.mall-hero h1 {
    margin: 0 0 8px;
    font-family: "GmarketSansTTFMedium", sans-serif;
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1.08;
    letter-spacing: 0;
}
.mall-hero p {
    max-width: 620px;
    margin: 0 0 24px;
    color: #cdeaf0;
    line-height: 1.6;
}
.mall-hero img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: var(--radius);
}
.mall-section {
    margin: 30px auto;
}
.mall-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.mall-section-heading h2 {
    margin: 0;
    font-family: "GmarketSansTTFMedium", sans-serif;
    font-size: 1.22rem;
    color: #18212b;
}
.mall-section-heading a {
    font-family: "GmarketSansTTFLight", sans-serif;
    color: var(--shop-highlight-color);
    font-size: 0.86rem;
}
.mall-main-product-list {
    margin: 30px auto;
}
.list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.list-toolbar-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.list-toolbar-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.list-sort-link {
    color: #64748b;
    font-size: 0.84rem;
    text-decoration: none;
}
.list-sort-link.is-active {
    color: #111827;
    font-family: "GmarketSansTTFMedium", sans-serif;
}
.list-sort-sep {
    color: #cbd5e1;
}
.list-per-page {
    min-width: 136px;
    height: 34px;
    border: 1px solid #cfd8e3;
    border-radius: 0;
    background: #ffffff;
    color: #334155;
    padding: 0 10px;
    font: inherit;
}
.list-grid {
    width: 100%;
}
.list-grid-empty {
    width: 100%;
    min-height: 280px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
}
.mall-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.mall-product-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(17, 24, 39, 0.04);
}
.mall-product-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #eef2f7;
    color: #94a3b8;
    overflow: hidden;
}
.mall-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mall-product-no-image {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 0.8rem;
}
.mall-product-no-image i {
    font-size: 1.6rem;
}
.mall-product-info {
    display: grid;
    gap: 7px;
    padding: 11px;
}
.mall-product-name {
    min-height: 38px;
    color: #18212b;
    font-family: "GmarketSansTTFMedium", sans-serif;
    font-size: 14px;
    line-height: 1.45;
}
.mall-product-code {
    color: #94a3b8;
    font-size: 0.76rem;
}
.mall-status-badge {
    width: fit-content;
    display: inline-block;
    margin-top: 2px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
}
.mall-badge-normal {
    background: #ecfeff;
    color: #0f766e;
}
.mall-badge-muted {
    background: #f1f5f9;
    color: #64748b;
}
.mall-card,
.mall-table-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: 0 10px 25px rgba(17, 24, 39, 0.04);
}
.mall-form {
    display: grid;
    gap: 12px;
}
.mall-form label {
    display: grid;
    gap: 6px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}
.mall-form input,
.mall-form textarea,
.mall-form select,
.mall-qty-input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    padding: 0 12px;
    font-family: "GmarketSansTTFLight", sans-serif;
    font-size: 14px;
}
.mall-form textarea {
    min-height: 100px;
    padding-top: 10px;
    resize: vertical;
}
.mall-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}
.mall-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--shop-approval-color);
    border-radius: 10px;
    background: var(--shop-approval-color);
    color: #fff;
    font-family: "GmarketSansTTFMedium", sans-serif;
    cursor: pointer;
}
.mall-button.is-sub {
    border-color: var(--line);
    background: #fff;
    color: var(--shop-font-color);
}
.mall-empty {
    padding: 48px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: #64748b;
    text-align: center;
}
.mall-alert {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
    font-size: 13px;
}
.mall-alert.is-error {
    border-color: #fecaca;
    background: #fff1f2;
    color: #881337;
}
.mall-detail {
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
    gap: 34px;
    margin-top: 34px;
}
.mall-detail-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #eef2f7;
}
.mall-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mall-detail-info h1 {
    margin: 0 0 12px;
    font-family: "GmarketSansTTFMedium", sans-serif;
    font-size: 2rem;
    color: #18212b;
}
.mall-detail-price {
    display: block;
    margin: 20px 0;
    color: #0f172a;
    font-family: "GmarketSansTTFMedium", sans-serif;
    font-size: 1.7rem;
}
.mall-detail-content {
    margin-top: 38px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    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 var(--line);
    border-radius: 8px;
    background: #fff;
}
.mall-spec-list {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 18px 0;
}
.mall-spec-list dt {
    color: #64748b;
}
.mall-spec-list dd {
    margin: 0;
    color: #1f2937;
}
.mall-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.mall-table th,
.mall-table td {
    padding: 11px;
    border-bottom: 1px solid #e6edf5;
    text-align: left;
    font-size: 13px;
}
.mall-table th {
    background: #f8fbff;
    color: #334155;
}
.mall-qty-input {
    width: 82px;
}
.mall-summary {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    padding: 18px 0;
}
.mall-summary strong {
    font-family: "GmarketSansTTFMedium", sans-serif;
    color: #111827;
    font-size: 1.2rem;
}
.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 #e6edf5;
}
.mall-auth-wrap {
    display: flex;
    justify-content: center;
    padding: 54px 16px;
}
.mall-auth-card {
    width: min(420px, 100%);
}
.mall-link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    color: #1e293b;
    font-family: "GmarketSansTTFMedium", sans-serif;
}
.mall-text-button {
    border: 0;
    background: transparent;
    color: var(--shop-delete-color);
    cursor: pointer;
}
.wrap {
    max-width: var(--mall-shell-width);
    width: 100%;
    margin: 28px auto 48px;
    padding: 0 var(--mall-shell-padding-x);
}
.section-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
}
.product-page .product-detail-card {
    align-items: start;
    padding: 24px;
}
.product-gallery {
    min-width: 0;
}
.product-summary {
    min-width: 0;
    padding: 4px 2px;
}
.product-summary .mall-product-code {
    display: inline-block;
    margin-bottom: 10px;
}
.product-tabs {
    margin-top: 24px;
    padding: 0;
}
.product-tab-nav {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid var(--line);
}
.product-tab-nav a {
    min-width: 150px;
    padding: 15px 20px;
    border-right: 1px solid var(--line);
    text-align: center;
    color: #64748b;
}
.product-tab-nav a.is-active {
    color: #111827;
    font-family: "GmarketSansTTFMedium", sans-serif;
    box-shadow: inset 0 -2px 0 var(--shop-highlight-color);
}
.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", sans-serif;
}
.cart-summary,
.checkout-summary-card .mall-summary {
    border-top: 1px solid var(--line);
}
.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", sans-serif;
    font-size: 1.35rem;
}
.point-empty {
    height: 120px;
    color: #94a3b8;
    text-align: center;
}
.support-card .mall-support-grid {
    align-items: stretch;
}

@media (max-width: 900px) {
    .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));
    }
}

@media (max-width: 560px) {
    .mall-product-grid {
        grid-template-columns: 1fr;
    }
}
* { box-sizing: border-box; }
@font-face {
    font-family: "GmarketSansTTFLight";
    src: url("/public/fonts/GmarketSansTTFLight.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "GmarketSansTTFMedium";
    src: url("/public/fonts/GmarketSansTTFMedium.woff") format("woff");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
html, body {
    margin: 0;
    padding: 0;
    font-family: "GmarketSansTTFLight", sans-serif;
    color: var(--shop-font-color);
    background: #ffffff;
    overflow-x: hidden;
}
html {
    height: 100%;
}
body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
a { color: inherit; text-decoration: none; }
.m-header-wrap {
    position: sticky;
    top: 0;
    z-index: 30;
}
.m-titlebar {
    width: 100%;
    height: 35px;
    background: #fff;
    border-bottom: 1px solid #eaeaea;
}
.m-titlebar-inner {
    max-width: 1400px;
    height: 35px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: "GmarketSansTTFLight", sans-serif;
}
.m-titlebar-left {
    font-size: 0.8rem;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
}
.m-titlebar-label {
    font-family: "GmarketSansTTFLight", sans-serif;
}
.m-titlebar-value {
    font-family: "GmarketSansTTFMedium", sans-serif;
}
.m-titlebar-welcome {
    margin-right: 10px;
}
.m-titlebar-sep {
    margin-right: 10px;
    font-family: "GmarketSansTTFLight", sans-serif;
}
.m-titlebar-right {
    display: inline-flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    padding-right: 10px;
}
.m-titlebar-right a {
    font-family: "GmarketSansTTFMedium", sans-serif;
    font-size: 0.7rem;
    color: #475569;
    margin-right: 20px !important;
}
.m-titlebar-right a:hover {
    color: var(--shop-highlight-color);
}
.m-titlebar-authority-value {
    font-family: "GmarketSansTTFMedium", sans-serif;
}
.m-titlebar-right .m-titlebar-sep,
.m-titlebar-authority,
.m-titlebar-authority .m-titlebar-label,
.m-titlebar-authority-value {
    font-size: 0.7rem;
}
.m-header {
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #eaeaea;
}
.m-menubar {
    width: 100%;
    height: 50px;
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
    position: relative;
    z-index: 2;
}
.m-menubar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: #eaeaea;
    pointer-events: none;
}
.m-menubar-inner {
    max-width: 1400px;
    height: 50px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}
.m-browse-btn {
    width: 300px;
    height: 50px;
    border: 0;
    background: var(--shop-highlight-color);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    cursor: pointer;
    font-family: "GmarketSansTTFMedium", sans-serif;
    font-size: 0.82rem;
    position: relative;
    z-index: 1;
}
.m-browse-left {
    display: inline-flex;
    align-items: center;
    gap: 20px !important;
}
.m-browse-text-mobile {
    display: none;
}
.m-browse-left .fa-bars {
    font-size: 1.2rem !important;
    line-height: 1;
}
.m-menubar-nav {
    display: inline-flex;
    align-items: center;
    gap: 18px;
}
.m-menubar-right {
    display: none;
}
.mall-skin-default .m-menubar-nav {
    margin-right: auto;
}
.mall-skin-default .m-menubar-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 12px;
}
.mall-skin-default .m-user-menu-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.mall-skin-default .m-user-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    min-width: 136px;
    border: 1px solid color-mix(in srgb, var(--shop-bottom-color) 76%, #ffffff 24%);
    border-radius: 8px;
    background: var(--shop-bottom-color);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    z-index: 120;
    padding: 11px 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.mall-skin-default .m-user-menu-panel[hidden] {
    display: none !important;
}
.mall-skin-default .m-user-menu-panel::before,
.mall-skin-default .m-user-menu-panel::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
}
.mall-skin-default .m-user-menu-panel::before {
    top: -8px;
    border-bottom: 8px solid color-mix(in srgb, var(--shop-bottom-color) 76%, #ffffff 24%);
}
.mall-skin-default .m-user-menu-panel::after {
    top: -7px;
    border-bottom: 8px solid var(--shop-bottom-color);
}
.mall-skin-default .m-user-menu-link {
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 10px;
    gap: 13px;
    color: #ffffff;
    font-size: 0.79rem;
    font-family: "GmarketSansTTFLight", sans-serif;
    text-decoration: none;
    white-space: nowrap;
}
.mall-skin-default .m-user-menu-link i {
    width: 14px;
    text-align: center;
    flex: 0 0 14px;
    margin-left: 5px;
}
.mall-skin-default .m-user-menu-link:hover {
    background: transparent;
    color: #ffffff;
}
.mall-skin-default .m-user-menu-link.is-logout {
    color: #ffffff;
}
.mall-skin-default .m-user-menu-link.is-logout:hover {
    background: transparent;
    color: #ffffff;
}
.mall-skin-default .m-menubar-user {
    font-family: "GmarketSansTTFMedium", sans-serif;
    font-size: 0.8rem;
    color: #374151;
    white-space: nowrap;
}
.mall-skin-default .m-menubar-hi {
    font-family: "GmarketSansTTFLight", sans-serif;
}
.mall-skin-default .m-menubar-user-value {
    font-family: "GmarketSansTTFMedium", sans-serif;
}
.mall-skin-default .m-menubar-auth {
    font-family: "GmarketSansTTFMedium", sans-serif !important;
    font-size: 0.8rem;
    color: #374151;
    text-decoration: none;
    white-space: nowrap;
}
.mall-skin-default .m-menubar-auth.is-disabled {
    opacity: 0.6;
    cursor: default;
}
.mall-skin-default .m-menubar-icon-btn {
    width: 50px;
    height: 50px;
    position: relative;
    border-style: solid !important;
    border-color: #eaeaea !important;
    border-left-width: 1px !important;
    border-right-width: 1px !important;
    border-top-width: 0 !important;
    border-bottom-width: 1px !important;
    background: #ffffff;
    color: #1f2937;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
}
.mall-skin-default .m-menubar-icon-count {
    position: absolute;
    top: 4px;
    right: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.54rem;
    line-height: 20px;
    color: #ffffff;
    background: #ef4444;
    border: 1px solid #ffffff;
    font-family: "GmarketSansTTFMedium", sans-serif;
}
.mall-skin-default .m-menubar-icon-count.is-visible {
    display: flex;
}
.mall-skin-default .m-menubar-icon-btn:hover,
.mall-skin-default .m-menubar-icon-btn.is-active {
    background: var(--shop-highlight-color) !important;
    color: #ffffff !important;
}
.mall-skin-default .m-menubar-icon-btn:hover i,
.mall-skin-default .m-menubar-icon-btn.is-active i {
    color: #ffffff !important;
}
.m-category-panel {
    position: absolute;
    left: 16px;
    top: 50px;
    width: auto;
    min-width: 560px;
    height: auto;
    overflow: visible;
    background: #ffffff !important;
    border: 1px solid #d9e1e8;
    border-top: 0;
    z-index: 60;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}
.m-category-panel-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    height: 100%;
    width: max-content;
    align-items: stretch;
}
.m-category-list-wrap {
    border-right: 1px solid #e5edf5;
    overflow: visible;
    background: #fbfdff;
}
.m-category-list {
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #ffffff !important;
}
.m-category-list li {
    margin: 0;
}
.m-category-link {
    display: block;
    padding: 12px 18px;
    font-family: "GmarketSansTTFMedium", sans-serif;
    font-size: 0.82rem;
    color: #334155;
    background: transparent;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.m-category-link:hover,
.m-category-link.is-active {
    background: #f8fbff;
    color: var(--shop-highlight-color);
}
.m-category-preview {
    display: grid;
    grid-template-columns: var(--browse-featured-width, 210px) var(--browse-sub-width, max-content);
    gap: 18px;
    padding: 20px;
    align-items: start;
    height: 100%;
    width: max-content;
    align-self: stretch;
}
.m-category-preview.is-without-featured {
    grid-template-columns: var(--browse-sub-width, max-content);
}
.m-category-preview-featured,
.m-category-preview-sub {
    min-width: 0;
}
.m-category-preview-sub {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    width: max-content;
    align-self: stretch;
}
.m-category-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.m-category-preview-title {
    font-family: "GmarketSansTTFMedium", sans-serif;
    font-size: 0.95rem;
    color: #0f172a;
}
.m-category-preview-all {
    font-size: 0.77rem;
    color: var(--shop-highlight-color);
    white-space: nowrap;
}
.m-category-featured-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    min-height: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    width: 180px;
}
.m-category-featured-thumb {
    width: 180px;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    overflow: hidden;
    background: #eef2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.65rem;
}
.m-category-featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.m-category-featured-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 180px;
}
.m-category-featured-name {
    font-family: "GmarketSansTTFLight", sans-serif;
    font-weight: 300;
    font-size: 13px;
    line-height: 1.45;
    color: #0f172a;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
}
.m-category-featured-price {
    font-family: "GmarketSansTTFMedium", sans-serif;
    font-size: 0.92rem;
    color: var(--shop-highlight-color);
}
.m-category-sublist {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--browse-sub-column-width, 190px);
    grid-template-rows: repeat(var(--browse-sub-rows, 8), minmax(34px, auto));
    gap: 10px;
    align-content: start;
    overflow: visible;
    padding-bottom: 2px;
    width: max-content;
}
.m-category-sublist a {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 3px 14px;
    border: 1px solid #e6edf5;
    border-radius: 0;
    background: #ffffff;
    font-family: "GmarketSansTTFLight", sans-serif;
    font-weight: 300;
    font-size: 13px;
    color: #334155;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
    white-space: nowrap;
}
.m-category-sublist a:hover {
    border-color: var(--shop-highlight-color);
    color: #ffffff !important;
    background: var(--shop-highlight-color);
}
.m-category-preview-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 18px;
    border: 1px dashed #d6e1eb;
    border-radius: 16px;
    background: #fbfdff;
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
}
.m-category-empty {
    padding: 12px 14px;
    font-size: 0.8rem;
    color: #64748b;
}
.m-menubar-inner a {
    font-family: "GmarketSansTTFMedium", sans-serif;
    font-size: 0.82rem;
    color: #4b5563;
}
.m-menubar-inner a:hover {
    color: var(--shop-highlight-color);
}
.m-menubar-inner .m-category-sublist a {
    font-family: "GmarketSansTTFLight", sans-serif !important;
    font-weight: 300 !important;
    font-size: 13px !important;
    color: #334155;
}
.m-menubar-inner .m-category-sublist a:hover {
    color: #ffffff !important;
}
.m-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    min-height: 78px;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 280px 1fr auto;
    gap: 18px;
    align-items: center;
}
.m-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.m-brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
}
.m-brand-fallback {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: #fff;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.05em;
}
.m-brand-name {
    font-size: 22px;
    font-weight: 600;
    font-family: "GmarketSansTTFMedium", sans-serif;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.m-brand-text {
    display: inline-flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}
.m-brand-subtitle {
    font-size: 0.8rem;
    font-family: "GmarketSansTTFLight", sans-serif;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.m-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0;
    min-width: 0;
}
.m-search-input {
    height: 49px;
    border: 1px solid #cfd9e4;
    border-right: 0;
    padding: 0 14px;
    font-size: 14px;
    border-radius: 0;
    outline: none;
}
.m-search-input:focus {
    border-color: #0f766e;
}
.m-search-btn {
    height: 49px;
    border: 1px solid var(--shop-highlight-color);
    background: var(--shop-highlight-color);
    color: #fff;
    font-weight: 700;
    border-radius: 0;
    width: 49px;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.m-search-icon {
    font-size: 22px !important;
    width: auto !important;
    height: auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #ffffff !important;
}
.m-search-btn i,
.m-search-btn svg,
.m-search-btn .m-search-icon {
    line-height: 1;
    color: #ffffff !important;
}
.m-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.m-nav a {
    font-size: 13px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    white-space: nowrap;
}
.m-nav a:hover { border-color: var(--shop-highlight-color); color: var(--shop-highlight-color); }
.wrap {
    max-width: 1400px;
    margin: 26px auto 42px;
    padding: 0 16px;
    flex: 1 0 auto;
}
.wrap.wrap-index { margin-top: 0 !important; }
.hero {
    background: linear-gradient(120deg, #12263d, #0f3f55);
    color: #f0fbff;
    border-radius: calc(var(--radius) + 6px);
    padding: 24px;
    margin-bottom: 16px;
}
.hero h1 { margin: 0 0 6px; font-size: 30px; letter-spacing: -0.03em; }
.hero p { margin: 0; color: #cdeaf0; }
.main-hero-slider {
    position: relative;
    width: 100vw;
    height: 700px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    background: #ffffff;
    border-top: 0px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 20px;
}
.main-hero-track {
    position: relative;
    width: 100%;
    height: 100%;
}
.main-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}
.main-hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}
.main-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.main-hero-caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: #ffffff;
    padding: 24px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.65);
    z-index: 1;
    pointer-events: none;
    margin: 0 auto;
    max-width: min(920px, 88vw);
}
.main-hero-caption-title {
    font-family: "GmarketSansTTFMedium", sans-serif;
    font-size: 2rem;
    line-height: 1.2;
}
.main-hero-caption-content {
    margin-top: 12px;
    font-family: "GmarketSansTTFLight", sans-serif;
    font-size: 1rem;
    line-height: 1.45;
}
.main-hero-link-btn {
    margin-top: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    min-width: 101px;
    height: 41px;
    padding: 0 17px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: rgba(17, 24, 39, 0.28);
    color: #ffffff !important;
    font-family: "GmarketSansTTFLight", sans-serif !important;
    font-weight: 300;
    font-size: 1.08rem;
    text-decoration: none;
    pointer-events: auto;
    box-shadow: none !important;
    text-shadow: none !important;
}
.main-hero-link-btn:hover {
    background: rgba(255, 255, 255, 0.92);
    color: #111827 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
.main-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    border: 0;
    background: transparent;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    z-index: 2;
    font-size: 20px;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}
.main-hero-arrow.prev { left: 28px; }
.main-hero-arrow.next { right: 28px; }
.main-hero-arrow:hover {
    background: transparent;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.main-hero-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}
.main-hero-dot {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.22);
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    transition: width .2s ease, height .2s ease, border-radius .2s ease, border-color .2s ease, background-color .2s ease;
}
.main-hero-dot:not(.is-active) {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}
.main-hero-dot::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    background: #ffffff;
    opacity: 0;
}
.main-hero-dot.is-active {
    width: 48px;
    height: 8px;
    border-radius: 999px;
    border-color: rgba(255,255,255,1);
    background: rgba(255,255,255,0.22);
}
.main-hero-dot.is-active.progressing::after {
    opacity: 1;
    animation: heroDotFill var(--main-hero-interval, 3s) linear forwards;
}
@keyframes heroDotFill {
    from { width: 0%; }
    to { width: 100%; }
}
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card {
    background: var(--panel);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(17, 24, 39, 0.04);
}
.card-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #eef2f7; }
.card-body { padding: 11px; }
.card-title { font-size: 14px; font-weight: 700; min-height: 38px; }
.price-line { display: flex; align-items: baseline; gap: 7px; margin-top: 8px; }
.price { font-size: 17px; font-weight: 800; color: #0f172a; }
.price-old { font-size: 12px; color: #94a3b8; text-decoration: line-through; }
.badge { display: inline-block; margin-top: 7px; font-size: 11px; padding: 4px 8px; border-radius: 999px; background: #ecfeff; color: #0f766e; }
.row { display: flex; gap: 10px; align-items: center; }
.btn {
    appearance: none;
    border: 1px solid transparent;
    background: var(--shop-approval-color);
    color: #fff;
    font-weight: 700;
    padding: 11px 14px;
    border-radius: 10px;
    cursor: pointer;
}
.btn.sub { background: #fff; color: var(--shop-font-color); border-color: var(--line); }
.btn.confirm,
.btn.approve,
.btn.save { background: var(--shop-approval-color); border-color: var(--shop-approval-color); }
.btn.cancel,
.btn.close { background: var(--shop-cancel-color); border-color: var(--shop-cancel-color); }
.btn.reset { background: var(--shop-reset-color); border-color: var(--shop-reset-color); }
.btn.warn { background: var(--shop-reset-color); border-color: var(--shop-reset-color); }
.btn.danger,
.btn.delete,
.btn.remove { background: var(--shop-delete-color); border-color: var(--shop-delete-color); }
.section-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.input, .select, .textarea {
    width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font-size: 14px; background: #fff;
}
.textarea { min-height: 90px; resize: vertical; }
label { display: block; margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.help { font-size: 12px; color: var(--muted); }
.muted { color: var(--muted); }
.alert { margin-bottom: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid #fecaca; background: #fff1f2; color: #881337; font-size: 13px; }
.ok { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 11px; border-bottom: 1px solid #e6edf5; font-size: 13px; }
th { color: #334155; background: #f8fbff; }
.qty-box { width: 70px; }
.m-footer {
    margin: 26px 0 0;
    padding: 0;
    width: 100%;
    color: var(--shop-icon-color);
    background: var(--shop-bottom-color);
    border-top: 1px solid color-mix(in srgb, var(--shop-bottom-color) 78%, #ffffff);
}
.m-footer-inner {
    width: min(1400px, calc(100% - 28px));
    margin: 0 auto;
    padding: 18px 0 16px;
}
.m-footer-top {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 20px;
    align-items: start;
}
.m-footer-title {
    font-family: "GmarketSansTTFMedium", sans-serif;
    font-size: 1rem;
    line-height: 1.3;
    color: var(--shop-icon-color);
}
.m-footer-line {
    margin-top: 7px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    line-height: 1.45;
    color: color-mix(in srgb, var(--shop-icon-color) 92%, #ffffff 8%);
    flex-wrap: wrap;
}
.m-footer-line-mobile {
    display: none;
}
.m-footer-line .k { opacity: 0.85; }
.m-footer-line .v { font-family: "GmarketSansTTFMedium", sans-serif; }
.m-footer-line .dot { opacity: 0.55; }
.m-footer-bank {
    border: 1px solid color-mix(in srgb, var(--shop-icon-color) 22%, transparent);
    background: color-mix(in srgb, var(--shop-bottom-color) 86%, #ffffff 14%);
    border-radius: 10px;
    padding: 12px;
}
.m-footer-bank-title {
    font-family: "GmarketSansTTFMedium", sans-serif;
    font-size: 0.86rem;
    color: var(--shop-icon-color);
}
.m-footer-bank-box {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.m-footer-bank-logo {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: contain;
    background: #ffffff;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569;
}
.m-footer-bank-logo-empty { font-size: 16px; }
.m-footer-bank-list { margin-top: 2px; }
.m-footer-bank-line {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: color-mix(in srgb, var(--shop-icon-color) 90%, #ffffff 10%);
}
.m-footer-bank-line .bank-name {
    font-family: "GmarketSansTTFMedium", sans-serif;
    font-size: 0.82rem;
    color: var(--shop-icon-color);
}
.m-footer-bank-line .bank-account,
.m-footer-bank-line .bank-holder {
    font-size: 0.78rem;
}
.m-footer-bank.has-multi .m-footer-bank-logo {
    width: 30px;
    height: 30px;
    border-radius: 6px;
}
.m-footer-bottom {
    margin-top: 13px;
    padding-top: 10px;
    border-top: 1px solid color-mix(in srgb, var(--shop-icon-color) 20%, transparent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.m-footer-policy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.m-footer-policy a {
    color: var(--shop-icon-color);
    font-size: 0.78rem;
    text-decoration: none;
}
.m-footer-policy a:hover { text-decoration: underline; }
.m-footer-policy .dot { opacity: 0.55; }
.m-footer-copy {
    font-size: 0.74rem;
    opacity: 0.85;
}
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cat-card {
    display: block;
    border: 1px solid #d7e0ea;
    border-radius: 12px;
    padding: 12px;
    background: linear-gradient(160deg, #ffffff, #f8fbff);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}
.cat-card strong { display: block; font-size: 14px; margin-bottom: 4px; }
.cat-card span { font-size: 12px; color: #64748b; }
.crumbs { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; color: #475569; }
.crumbs a { color: var(--shop-highlight-color); }


body.mall-theme-brand {
    background: #ffffff;
    color: var(--shop-font-color);
}
body.mall-theme-brand .m-header {
    border-bottom: 1px solid #eaeaea;
    background: #ffffff;
    backdrop-filter: none;
}
body.mall-theme-brand .m-menubar {
    border-bottom: 0;
}
body.mall-theme-brand .m-header-inner {
    min-height: 84px;
}
body.mall-theme-brand .m-brand-name {
    font-size: 24px;
    letter-spacing: -0.03em;
}
body.mall-theme-brand .m-nav a {
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--shop-font-color);
    padding: 8px 10px;
    font-weight: 600;
}
body.mall-theme-brand .m-nav a:hover {
    color: var(--shop-highlight-color);
}
body.mall-theme-brand .wrap { max-width: 1400px; margin-top: 18px; }
body.mall-theme-brand .wrap.wrap-index { margin-top: 0 !important; }
body.mall-theme-brand .hero {
    background: linear-gradient(180deg, #ffffff, #f9fafb);
    color: #111827;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    margin-bottom: 18px;
}
body.mall-theme-brand .hero p {
    color: #6b7280;
}
body.mall-theme-brand .section-card,
body.mall-theme-brand .card {
    border-radius: 0;
    border: 1px solid #e5e7eb;
    box-shadow: none;
    background: #fff;
}
body.mall-theme-brand .card-body {
    padding: 13px 11px 14px;
}
body.mall-theme-brand .card-title {
    font-size: 13px;
    min-height: 34px;
    line-height: 1.4;
}
body.mall-theme-brand .price {
    font-size: 16px;
    letter-spacing: -0.02em;
}
body.mall-theme-brand .badge {
    background: #f3f4f6;
    color: var(--shop-font-color);
}
body.mall-theme-brand .btn {
    border-radius: 0;
    background: var(--shop-approval-color);
}
body.mall-theme-brand .btn.sub {
    background: #fff;
    border: 1px solid #d1d5db;
}
body.mall-theme-brand .cat-card {
    border-radius: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
}
body.mall-theme-brand .crumbs a {
    color: var(--shop-highlight-color);
}
body.mall-theme-brand .m-footer {
    border-radius: 0;
}
body.m-product-search-modal-open {
    overflow: hidden;
}
.m-product-search-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.m-product-search-modal[hidden] {
    display: none;
}
.m-product-search-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
}
.m-product-search-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(520px, calc(100vw - 40px));
    border: 1px solid #d1d5db;
    background: #ffffff;
    padding: 18px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.18);
}
.m-product-search-modal-title {
    margin: 0;
    font-size: 1rem;
    font-family: "GmarketSansTTFMedium", sans-serif;
    color: #111827;
}
.m-product-search-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}
.m-product-search-modal-close {
    width: 28px;
    height: 28px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0;
}
.m-product-search-modal-close:hover {
    background: #f8fafc;
    color: #0f172a;
}
.m-product-search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    padding: 0 10px;
    height: 42px;
}
.m-product-search-field i {
    color: #64748b;
    font-size: 0.88rem;
}
.m-product-search-field input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 0.9rem;
    font-family: "GmarketSansTTFLight", sans-serif;
    color: #111827;
}
.m-product-search-recent {
    margin-top: 14px;
}
.m-product-search-recent-title {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 8px;
}
.m-product-search-recent-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 32px;
}
.m-product-search-recent-item {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.m-product-search-recent-btn {
    height: 32px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #334155;
    font-size: 0.76rem;
    padding: 0 26px 0 10px;
    cursor: pointer;
    font-family: "GmarketSansTTFLight", sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.m-product-search-recent-btn .date {
    color: #94a3b8;
}
.m-product-search-recent-btn i {
    font-size: 0.72rem;
}
.m-product-search-recent-btn:hover {
    border-color: #d1d5db;
    color: #334155;
}
.m-product-search-recent-delete {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
}
.m-product-search-recent-item:hover .m-product-search-recent-delete {
    opacity: 1;
    pointer-events: auto;
}
.m-product-search-recent-delete:hover {
    background: transparent;
    color: #64748b;
}
.m-product-search-recent-empty {
    font-size: 0.78rem;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
}
.m-product-search-modal-actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.m-product-search-modal-actions .btn {
    border-radius: 0;
    font-family: "GmarketSansTTFLight", sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    min-width: 98px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.m-product-search-modal-actions #productSearchSubmitBtn.is-pressed {
    transform: translateY(1px);
    filter: brightness(0.92);
}

@media (max-width: 1080px) {
    .m-titlebar-right {
        display: none;
    }
    .m-titlebar-inner,
    .m-header-inner,
    .m-menubar-inner,
    .wrap {
        max-width: 100%;
    }
    .m-titlebar-left {
        font-size: 0.75rem;
    }
    .m-header-inner {
        grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto;
        gap: 12px;
        min-height: 72px;
        padding: 10px 14px;
    }
    .m-brand-logo,
    .m-brand-fallback {
        width: 42px;
        height: 42px;
    }
    .m-brand-name {
        font-size: 20px;
    }
    .m-brand-subtitle {
        font-size: 0.76rem;
    }
    .m-search-input,
    .m-search-btn {
        height: 46px;
    }
    .m-search {
        margin-right: 50px;
    }
    .m-nav {
        gap: 4px;
    }
    .m-nav a {
        padding: 7px 8px;
        font-size: 12px;
    }
    .m-menubar {
        height: auto;
    }
    .m-menubar-inner {
        gap: 12px;
        min-height: 48px;
        padding: 0 14px;
    }
    .m-browse-btn {
        width: 240px;
    }
    .m-category-panel {
        width: 240px;
    }
    .mall-skin-default .m-menubar-right {
        gap: 8px;
    }
    .mall-skin-default .m-menubar-user {
        display: none;
    }
    .mall-skin-default .m-menubar-icon-btn {
        width: 46px;
        height: 46px;
    }
    .wrap {
        margin: 18px auto 34px;
        padding: 0 14px;
    }
    body.mall-theme-brand .wrap {
        margin-top: 16px;
    }
    .section-card {
        padding: 14px;
        border-radius: 12px;
    }
    .m-footer-inner {
        width: calc(100% - 28px);
    }
    .m-footer-top {
        grid-template-columns: minmax(0, 1fr) 300px;
    }
    .main-hero-slider {
        height: 560px;
    }
    .main-hero-caption {
        max-width: min(760px, 90vw);
    }
    .main-hero-caption-title {
        font-size: 1.72rem;
    }
    .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .m-header-wrap {
        position: static;
    }
    .m-titlebar {
        display: none;
    }
    .m-header-inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        min-height: 0;
        padding: 12px;
    }
    .m-brand {
        width: 100%;
    }
    .m-brand-logo,
    .m-brand-fallback {
        width: 38px;
        height: 38px;
    }
    .m-brand-name {
        font-size: 18px;
    }
    .m-brand-subtitle,
    .m-nav {
        display: none;
    }
    .m-search {
        width: 100%;
        margin-right: 0;
    }
    .m-search-input,
    .m-search-btn {
        height: 44px;
    }
    .m-menubar {
        height: auto;
    }
    .m-menubar-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "browse icons";
        align-items: center;
        gap: 10px;
        min-height: 44px;
        height: auto;
        padding: 0 12px;
        overflow: visible;
        white-space: normal;
    }
    .m-browse-btn {
        grid-area: browse;
        width: 100%;
        height: 44px;
        padding: 0 12px;
        font-size: 0.78rem;
    }
    .m-browse-left {
        gap: 10px !important;
    }
    .m-browse-text-desktop {
        display: none;
    }
    .m-browse-text-mobile {
        display: inline;
    }
    .m-category-panel {
        left: 12px;
        top: calc(100% + 1px);
        width: calc(100% - 24px);
        min-width: 0;
        height: min(60vh, 420px);
    }
    .m-menubar-nav {
        display: none;
    }
    .mall-skin-default .m-menubar-right {
        grid-area: icons;
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
        margin-left: 0;
    }
    .mall-skin-default .m-menubar-user {
        display: none;
    }
    .mall-skin-default .m-menubar-icon-btn {
        width: 42px;
        height: 42px;
    }
    .mall-skin-default .m-menubar-icon-count {
        top: 1px;
        right: 1px;
        width: 18px;
        height: 18px;
        line-height: 18px;
        font-size: 0.5rem;
    }
    .mall-skin-default .m-user-menu-panel {
        left: auto;
        right: 0;
        transform: none;
    }
    .mall-skin-default .m-user-menu-panel::before,
    .mall-skin-default .m-user-menu-panel::after {
        left: calc(100% - 24px);
        transform: translateX(-50%);
    }
    .wrap {
        margin: 14px auto 26px;
        padding: 0 12px;
    }
    body.mall-theme-brand .wrap {
        margin-top: 12px;
    }
    .section-card {
        padding: 12px;
        border-radius: 10px;
    }
    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    th,
    td {
        padding: 10px 8px;
        font-size: 12px;
    }
    .btn {
        padding: 10px 12px;
        font-size: 13px;
    }
    .input,
    .select,
    .textarea {
        padding: 10px 11px;
        font-size: 13px;
    }
    .m-footer-inner {
        width: calc(100% - 24px);
        padding: 16px 0 14px;
    }
    .m-footer-top {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .m-footer-line-desktop {
        display: none;
    }
    .m-footer-line-mobile {
        display: flex;
    }
    .m-footer-bank {
        max-width: 100%;
    }
    .m-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 24px;
    }
    .main-hero-slider {
        height: 420px;
    }
    .main-hero-caption {
        max-width: 92vw;
        padding: 18px;
    }
    .main-hero-caption-title {
        font-size: 1.45rem;
    }
    .main-hero-caption-content {
        font-size: 0.92rem;
    }
    .main-hero-link-btn {
        margin-top: 28px;
        min-width: 92px;
        height: 38px;
        font-size: 0.92rem;
    }
    .main-hero-arrow.prev { left: 14px; }
    .main-hero-arrow.next { right: 14px; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .wrap {
        padding: 0 10px;
    }
    .section-card {
        padding: 10px;
    }
    .m-brand-name {
        font-size: 17px;
    }
    .m-browse-btn {
        font-size: 0.75rem;
    }
    .m-menubar-nav {
        gap: 10px;
    }
    .m-menubar-nav a {
        font-size: 0.75rem;
    }
    .m-product-search-modal {
        padding: 12px;
    }
    .m-product-search-modal-dialog {
        width: calc(100vw - 24px);
        padding: 14px;
    }
    .main-hero-slider {
        height: 340px;
    }
    .main-hero-caption {
        padding: 16px;
    }
    .main-hero-caption-title {
        font-size: 1.2rem;
    }
    .main-hero-caption-content {
        font-size: 0.84rem;
    }
}
@media (max-width: 480px) {
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .m-brand-name { font-size: 16px; }
    .main-hero-slider { height: 320px; }
}
@media (max-width: 380px) {
    .grid { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: 1fr; }
}

.product-page .product-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: 24px;
    align-items: stretch;
    padding: 24px;
    border-radius: 0;
}
.product-media-pane,
.product-info-pane {
    min-width: 0;
}
.product-media-gallery {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    max-width: 720px;
}
.product-media-main {
    flex: 1 1 auto;
    min-width: 0;
    background: #f8fafc;
    border: 1px solid #dbe3eb;
}
.product-media-main .card-img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0;
}
.product-media-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-family: "GmarketSansTTFLight", sans-serif;
}
.product-media-thumbs {
    flex: 0 0 86px;
    display: grid;
    grid-template-rows: repeat(5, minmax(0, 1fr));
    gap: 10px;
}
.product-media-thumb {
    width: 86px;
    min-height: 0;
    border: 1px solid #dbe3eb;
    border-radius: 0;
    background: #ffffff;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
}
.product-media-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}
.product-media-thumb.is-active {
    border-color: var(--shop-highlight-color);
    box-shadow: inset 0 0 0 1px var(--shop-highlight-color);
}
.product-media-thumb.is-empty {
    cursor: default;
    background: #f8fafc;
}
.product-info-pane {
    display: flex;
    flex-direction: column;
    padding: 6px 4px 0;
}
.product-code-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.product-code-row .mall-product-code {
    margin: 0;
    color: #64748b;
    font-size: 0.86rem;
    letter-spacing: 0;
}
.product-title {
    margin: 0;
    color: #111827;
    font-family: "GmarketSansTTFMedium", sans-serif;
    font-size: 1.8rem;
    line-height: 1.35;
    letter-spacing: 0;
}
.product-rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.9rem;
}
.review-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.product-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #cbd5e1;
}
.product-review-count {
    color: var(--shop-highlight-color);
    text-decoration: none;
}
.product-meta-list {
    margin: 0 0 18px;
}
.product-price-summary {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 14px;
    min-height: 58px;
    margin: 0 0 14px;
    padding: 18px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.product-discount-rate {
    color: var(--shop-delete-color);
    font-family: "GmarketSansTTFMedium", sans-serif;
    font-size: 1.45rem;
    line-height: 1;
}
.product-price-values {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.product-old-price {
    color: #94a3b8;
    font-size: 0.92rem;
    text-decoration: line-through;
}
.product-sale-price {
    color: #111827;
    font-family: "GmarketSansTTFMedium", sans-serif;
    font-size: 1.65rem;
    line-height: 1;
}
.product-delivery-policy {
    margin: 0 0 18px;
    padding: 13px 14px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 0.9rem;
}
.product-delivery-policy strong {
    margin-right: 4px;
    color: #1f2937;
    font-family: "GmarketSansTTFMedium", sans-serif;
}
.product-order-form {
    margin-top: auto;
}
.product-option-box {
    margin-bottom: 14px;
}
.product-option-label,
.product-single-label {
    display: block;
    margin-bottom: 7px;
    color: #1f2937;
    font-family: "GmarketSansTTFMedium", sans-serif;
    font-size: 0.9rem;
}
.product-option-native {
    width: 100%;
    min-height: 48px;
    border: 1px solid #dbe3eb;
    border-radius: 0;
    background: #ffffff;
    color: var(--shop-font-color);
    font-family: "GmarketSansTTFLight", sans-serif;
    font-size: 0.95rem;
    padding: 0 12px;
}
.product-single-qty-inline {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.product-single-qty-inline .product-single-label {
    margin-bottom: 9px;
}
.product-selected-option-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dbe3eb;
    background: #ffffff;
}
.product-selected-option-qty-btn {
    width: 38px;
    height: 38px;
    border: 0;
    background: #ffffff;
    color: #475569;
    font-size: 1rem;
    cursor: pointer;
}
.product-selected-option-qty-input {
    width: 54px;
    height: 38px;
    border: 0;
    border-left: 1px solid #dbe3eb;
    border-right: 1px solid #dbe3eb;
    color: #111827;
    text-align: center;
    font-family: "GmarketSansTTFMedium", sans-serif;
    outline: none;
}
.product-order-divider {
    height: 1px;
    margin: 8px 0 16px;
    background: #e2e8f0;
}
.product-order-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    color: #1f2937;
}
.product-order-total-row strong {
    color: var(--shop-delete-color);
    font-family: "GmarketSansTTFMedium", sans-serif;
    font-size: 1.35rem;
}
.product-order-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.product-order-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 0;
    text-decoration: none;
    font-family: "GmarketSansTTFMedium", sans-serif;
}
.product-order-buttons .btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}
.product-tabs {
    margin-top: 18px;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
}
.product-tab-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid #dbe3eb;
}
.product-tab-btn {
    min-height: 52px;
    border: 0;
    border-right: 1px solid #dbe3eb;
    background: #ffffff;
    color: #64748b;
    font-family: "GmarketSansTTFLight", sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
}
.product-tab-btn:last-child {
    border-right: 0;
}
.product-tab-btn.is-active {
    color: #111827;
    font-family: "GmarketSansTTFMedium", sans-serif;
    box-shadow: inset 0 -2px 0 var(--shop-highlight-color);
}
.product-tab-panel {
    display: none;
    min-height: 240px;
    padding: 24px;
}
.product-tab-panel.is-active {
    display: block;
}
.product-detail-content {
    color: #334155;
    font-family: "GmarketSansTTFLight", sans-serif;
    font-size: 0.95rem;
    line-height: 1.75;
}
.product-detail-content img,
.product-detail-content table {
    max-width: 100%;
}
.product-detail-content table {
    width: 100%;
    border-collapse: collapse;
}
.product-detail-content table td,
.product-detail-content table th {
    border: 0.5px solid Grey;
}
.product-detail-shipping-block {
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid #e2e8f0;
}
.product-detail-shipping-block h2 {
    margin: 0 0 12px;
    color: #111827;
    font-family: "GmarketSansTTFMedium", sans-serif;
    font-size: 1.05rem;
}
.shipping-guide {
    display: block;
    font-family: "GmarketSansTTFLight", sans-serif;
    line-height: 1.75;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.shipping-guide h2,
.shipping-guide h3,
.shipping-guide h4 {
    margin: 0 0 24px;
    color: inherit;
    font-family: "GmarketSansTTFMedium", sans-serif;
    font-weight: 600;
    line-height: 1.35;
}
.shipping-guide h2 {
    font-size: 1.55rem;
}
.shipping-guide h3 {
    font-size: 1.45rem;
}
.shipping-guide h4 {
    margin-bottom: 14px;
    font-size: 1rem;
}
.shipping-guide p {
    margin: 0 0 20px;
}
.shipping-guide p:last-child {
    margin-bottom: 0;
}
.shipping-guide strong,
.shipping-guide b {
    font-family: "GmarketSansTTFMedium", sans-serif;
    font-weight: 600;
}
.shipping-guide em,
.shipping-guide i {
    font-style: italic;
}
.shipping-guide u {
    text-decoration: underline;
}
.shipping-guide s {
    text-decoration: line-through;
}
.shipping-guide ul,
.shipping-guide ol {
    margin: 0 0 20px 24px;
    padding: 0;
}
.shipping-guide li {
    margin: 0 0 6px;
}
.shipping-guide a {
    color: var(--shop-highlight-color);
    text-decoration: underline;
}
.shipping-guide blockquote {
    margin: 0 0 20px;
    padding: 10px 14px;
    border-left: 4px solid #dbe3eb;
    color: #64748b;
}
.shipping-guide table {
    width: 100%;
    max-width: 100%;
    margin: 0 0 20px;
    border-collapse: collapse;
}
.shipping-guide table td,
.shipping-guide table th {
    padding: 8px 10px;
    border: 0.5px solid Grey;
}
.shipping-guide img {
    max-width: 100%;
    height: auto;
}
.product-tab-empty {
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-align: center;
}
.product-tab-empty.is-active {
    display: flex;
}
@media (max-width: 980px) {
    .product-page .product-top-grid {
        grid-template-columns: 1fr;
    }
    .product-media-gallery {
        max-width: none;
    }
}
@media (max-width: 640px) {
    .product-page .product-top-grid {
        gap: 18px;
        padding: 14px;
    }
    .product-media-gallery {
        flex-direction: column;
    }
    .product-media-thumbs {
        flex: none;
        width: 100%;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        grid-template-rows: none;
    }
    .product-media-thumb {
        width: 100%;
        aspect-ratio: 1 / 1;
    }
    .product-title {
        font-size: 1.35rem;
    }
    .product-single-qty-inline {
        align-items: flex-start;
        flex-direction: column;
    }
    .product-tab-btn {
        min-height: 46px;
        font-size: 0.84rem;
    }
    .product-tab-panel {
        padding: 16px;
    }
}

body.mall-page-product .m-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid #dbe3eb;
    border-radius: 999px;
    color: #334155;
    background: #ffffff;
    line-height: 1;
}
body.mall-page-product .m-nav a:hover {
    border-color: var(--shop-highlight-color);
    color: var(--shop-highlight-color);
}
body.mall-page-product .wrap.product-page {
    position: relative;
}
body.mall-page-product .product-page .product-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    margin-top: 0;
    padding: 16px;
    border: 1px solid #dbe3eb;
    border-radius: 12px;
    background: #ffffff;
}
body.mall-page-product .product-media-gallery {
    width: calc(100% - 50px);
    max-width: 100%;
    display: flex;
    align-items: stretch;
    gap: 8px;
}
body.mall-page-product .product-media-main {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: #f8fafc;
}
body.mall-page-product .product-media-main .card-img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: cover;
    border-radius: 0;
}
body.mall-page-product .product-media-thumbs {
    width: calc((100% - 40px) / 6);
    flex: 0 0 calc((100% - 40px) / 6);
    display: grid;
    grid-template-rows: repeat(5, auto);
    gap: 8px;
}
body.mall-page-product .product-media-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 0;
    border: 1px solid #dbe3eb;
    border-radius: 0;
    background: #ffffff;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    overflow: hidden;
    cursor: pointer;
    display: block;
    position: relative;
}
body.mall-page-product .product-media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
body.mall-page-product .product-media-thumb.is-active {
    border-color: transparent;
    box-shadow: none;
}
body.mall-page-product .product-media-thumb.is-active::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 3px var(--shop-approval-color);
    pointer-events: none;
}
body.mall-page-product .product-media-thumb.is-empty {
    border: 0;
    background: #f8fafc;
    cursor: default;
}
body.mall-page-product .product-info-pane {
    padding: 30px 30px 20px 0;
    margin-left: -20px;
    box-sizing: border-box;
}
body.mall-page-product .product-title {
    margin: 0 0 8px;
    color: #0f172a;
    font-family: "GmarketSansTTFMedium", sans-serif;
    font-size: 1.45rem;
    line-height: 1.35;
    letter-spacing: 0;
}
body.mall-page-product .product-rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 2px 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    color: #64748b;
}
body.mall-page-product .review-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
body.mall-page-product .product-stars {
    display: inline-flex;
    gap: 2px;
    color: var(--shop-highlight-color);
    font-size: 1.104rem;
}
body.mall-page-product .product-rating-score {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}
body.mall-page-product .product-review-count {
    color: #64748b;
    font-size: 0.82rem;
    text-decoration: none;
    white-space: nowrap;
}
body.mall-page-product .product-price-summary {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 12px;
    min-height: 0;
    margin: 0 0 10px;
    padding: 0;
    border: 0;
}
body.mall-page-product .product-discount-rate {
    color: #ef4444;
    font-family: "GmarketSansTTFMedium", sans-serif;
    font-size: 1.6rem;
    line-height: 1;
    white-space: nowrap;
}
body.mall-page-product .product-price-values {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}
body.mall-page-product .product-consumer-price {
    color: #94a3b8;
    font-size: 0.8rem;
    text-decoration: line-through;
    white-space: nowrap;
}
body.mall-page-product .product-sale-price {
    color: #0f172a;
    font-family: "GmarketSansTTFMedium", sans-serif;
    font-size: 1.2rem;
    line-height: 1;
    white-space: nowrap;
}
body.mall-page-product .product-delivery-policy {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #475569;
    font-size: 0.82rem;
    line-height: 1.45;
}
body.mall-page-product .product-delivery-policy strong {
    color: #334155;
    font-family: "GmarketSansTTFMedium", sans-serif;
    margin-right: 6px;
}
body.mall-page-product .product-order-form {
    margin-top: 14px;
}
body.mall-page-product .product-option-box {
    margin: 10px 0 12px;
}
body.mall-page-product .product-option-select {
    position: relative;
}
body.mall-page-product .product-option-toggle {
    width: 100%;
    min-height: 68px;
    border: 1px solid #dbe3eb;
    border-radius: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    cursor: pointer;
    text-align: left;
}
body.mall-page-product .product-option-toggle-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
body.mall-page-product .product-option-thumb {
    width: 46px;
    height: 46px;
    border-radius: 0;
    object-fit: cover;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    flex: 0 0 auto;
}
body.mall-page-product .product-option-thumb.is-hidden {
    display: none;
}
body.mall-page-product .product-option-thumb.is-color {
    display: inline-flex;
    box-sizing: border-box;
}
body.mall-page-product .product-option-thumb.is-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    font-size: 15px;
    line-height: 1;
    font-family: "GmarketSansTTFLight", sans-serif;
}
body.mall-page-product .product-option-thumb.is-empty::before {
    content: "X";
}
body.mall-page-product .product-option-text {
    min-width: 0;
    margin-left: 10px;
    color: #334155;
    font-size: calc(0.84rem + 2px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.mall-page-product .product-option-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 260px;
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    border: 1px solid #dbe3eb;
    border-radius: 0;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}
body.mall-page-product .product-option-item {
    width: 100%;
    min-height: 54px;
    border: 1px solid transparent;
    border-radius: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 8px;
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
}
body.mall-page-product .product-option-item .product-option-text {
    flex: 1 1 auto;
    min-width: 0;
}
body.mall-page-product .product-option-item .product-option-thumb {
    margin-right: 20px;
}
body.mall-page-product .product-option-item:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}
body.mall-page-product .product-option-item.is-selected {
    background: #e8f7fb;
    border-color: #bde7f0;
}
body.mall-page-product .product-option-item[disabled],
body.mall-page-product .product-option-item.is-soldout {
    cursor: not-allowed;
    opacity: 0.7;
}
body.mall-page-product .product-option-soldout-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3.5px 6px;
    border: 1px solid #ef4444;
    color: #dc2626;
    background: #ffffff;
    font-size: 0.7rem;
    line-height: 1.2;
    border-radius: 0;
    white-space: nowrap;
    flex: 0 0 auto;
    box-sizing: border-box;
    margin-left: 6px;
}
body.mall-page-product .product-selected-options {
    margin-top: 8px;
}
body.mall-page-product .product-selected-options[hidden] {
    display: none !important;
}
body.mall-page-product .product-selected-options-shell {
    border: 1px solid #dbe3eb;
    background: #f3f4f6;
    padding: 6px;
    box-sizing: border-box;
}
body.mall-page-product .product-selected-options-title {
    margin: 5px 5px 6px 10px;
    color: #64748b;
    font-family: "GmarketSansTTFMedium", sans-serif;
    font-size: 0.8rem;
}
body.mall-page-product .product-selected-options-list {
    display: grid;
    gap: 6px;
}
body.mall-page-product .product-selected-option {
    margin-top: 0;
    border: 1px solid #dbe3eb;
    background: #ffffff;
    padding: 5px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-sizing: border-box;
}
body.mall-page-product .product-selected-option-main {
    min-width: 0;
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
body.mall-page-product .product-selected-option-preview {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
}
body.mall-page-product .product-selected-option-preview-img,
body.mall-page-product .product-selected-option-preview-empty {
    width: 36px;
    height: 36px;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
    background: #f1f5f9;
    color: #ef4444;
    font-size: 10px;
    line-height: 1;
    font-family: "GmarketSansTTFLight", sans-serif;
}
body.mall-page-product .product-selected-option-preview-empty::before {
    content: "X";
}
body.mall-page-product .product-selected-option-preview-empty.is-color {
    color: transparent;
}
body.mall-page-product .product-selected-option-preview-empty.is-color::before {
    content: "";
}
body.mall-page-product .product-selected-option-label-line {
    min-width: 0;
    max-width: 100%;
    color: #0f172a;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.mall-page-product .product-selected-option-right {
    margin-left: 12px;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
body.mall-page-product .product-single-qty-inline {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
body.mall-page-product .product-single-qty-label {
    color: #475569;
    font-size: 0.82rem;
    white-space: nowrap;
}
body.mall-page-product .product-selected-option-qty {
    display: inline-flex;
    align-items: center;
    height: 32px;
    border: 1px solid #dbe3eb;
    background: #ffffff;
}
body.mall-page-product .product-selected-option-qty-btn {
    width: 30px;
    height: 30px;
    border: 0;
    background: #f8fafc;
    color: #334155;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
body.mall-page-product .product-selected-option-qty-btn:hover {
    background: #e2e8f0;
}
body.mall-page-product .product-selected-option-qty-btn[disabled] {
    cursor: not-allowed;
    opacity: 0.45;
    background: #f1f5f9;
}
body.mall-page-product .product-selected-option-qty-input {
    width: 40px;
    height: 30px;
    border: 0;
    border-left: 1px solid #dbe3eb;
    border-right: 1px solid #dbe3eb;
    text-align: center;
    font-size: 0.82rem;
    color: #0f172a;
    padding: 0;
    background: #ffffff;
}
body.mall-page-product .product-selected-option-price {
    min-width: 70px;
    color: #0f172a;
    font-size: 0.9rem;
    text-align: right;
    white-space: nowrap;
}
body.mall-page-product .product-selected-option-remove {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #ef4444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
body.mall-page-product .product-selected-option-remove:hover {
    background: #fee2e2;
}
body.mall-page-product .product-order-divider {
    height: 0;
    border-top: 1px solid #e2e8f0;
    margin: 20px 0 30px;
    background: transparent;
}
body.mall-page-product .product-order-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    color: #334155;
    font-size: 0.86rem;
}
body.mall-page-product .product-order-total-label {
    color: #64748b;
    white-space: nowrap;
}
body.mall-page-product .product-order-total-value {
    display: inline-flex;
    align-items: flex-end;
    gap: 6px;
    color: #0f172a;
    white-space: nowrap;
    text-align: right;
}
body.mall-page-product .product-order-total-qty-text {
    display: inline-flex;
    align-items: flex-end;
    gap: 4px;
    line-height: 1;
}
body.mall-page-product .product-order-total-value strong {
    font-family: "GmarketSansTTFMedium", sans-serif;
}
body.mall-page-product .product-order-total-value [data-order-total-amount] {
    display: inline-block;
    margin-left: 14px;
    color: var(--shop-approval-color);
    font-size: 2em;
    line-height: 1;
    vertical-align: bottom;
}
body.mall-page-product .product-order-buttons {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
body.mall-page-product .product-order-buttons .btn {
    width: 100%;
    min-height: auto;
    justify-content: center;
    border-radius: 0;
    padding-top: 16px;
    padding-bottom: 16px;
    font-size: calc(1em + 1px);
}
body.mall-page-product .product-order-buttons .btn[disabled],
body.mall-page-product .product-order-buttons .btn[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.45;
    pointer-events: none;
}
body.mall-page-product .product-order-buttons .btn.is-soldout {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
    opacity: 0.6;
}
body.mall-page-product .product-tabs {
    margin-top: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}
body.mall-page-product .product-tab-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid #e2e8f0;
}
body.mall-page-product .product-tab-btn {
    border: 0;
    border-right: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    font-family: "GmarketSansTTFLight", sans-serif;
    font-size: 0.88rem;
    padding: 13px 8px;
    cursor: pointer;
}
body.mall-page-product .product-tab-btn:last-child {
    border-right: 0;
}
body.mall-page-product .product-tab-btn.is-active {
    color: #0f172a;
    font-family: "GmarketSansTTFMedium", sans-serif;
    background: #f8fafc;
    box-shadow: none;
}
body.mall-page-product .product-tab-panel {
    display: none;
    min-height: 0;
    padding: 16px;
}
body.mall-page-product .product-tab-panel.is-active {
    display: block;
}
body.mall-page-product .product-detail-content {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    color: #1f2937;
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
}
body.mall-page-product .product-detail-content img,
body.mall-page-product .product-detail-content video,
body.mall-page-product .product-detail-content canvas,
body.mall-page-product .product-detail-content svg,
body.mall-page-product .product-detail-content embed,
body.mall-page-product .product-detail-content object {
    max-width: 100% !important;
    height: auto !important;
}
body.mall-page-product .product-detail-content table {
    display: block;
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
}
.product-recent-view-widget {
    position: fixed;
    top: 193px;
    right: 10px;
    width: 104px;
    z-index: 40;
}
.product-recent-view-widget .m-recent-view-widget-title {
    display: block;
    margin-bottom: 0;
    padding: 5px 8px 4px;
    background: var(--shop-highlight-color);
    color: #ffffff;
    font-family: "GmarketSansTTFMedium", sans-serif;
    font-size: 0.72rem;
    line-height: 1.3;
    text-align: center;
}
.product-recent-view-widget .m-recent-view-widget-box {
    border: 1px solid #d1d5db;
    background: #ffffff;
    padding: 8px 6px 10px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}
.product-recent-view-widget .m-recent-view-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.product-recent-view-widget .m-recent-view-item {
    position: relative;
    display: block;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 0;
    line-height: 0;
}
.product-recent-view-widget .m-recent-view-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #eef2f7;
}
.product-recent-view-widget .m-recent-view-pagination {
    display: grid;
    grid-template-columns: 18px 1fr 18px;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}
.product-recent-view-widget .m-recent-view-page {
    color: #6b7280;
    font-size: 0.76rem;
    line-height: 1;
    text-align: center;
}
.product-recent-view-widget .m-recent-view-page-btn {
    width: 18px;
    height: 18px;
    border: 1px solid #d1d5db;
    background: transparent;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    font-size: 0.7rem;
}
.product-recent-view-widget .m-recent-view-page-btn:disabled {
    opacity: 0.4;
    cursor: default;
}
@media (max-width: 1320px) {
    .product-recent-view-widget {
        display: none;
    }
}
@media (max-width: 980px) {
    body.mall-page-product .product-page .product-top-grid {
        grid-template-columns: 1fr;
    }
    body.mall-page-product .product-info-pane {
        margin-left: 0;
        padding: 8px 0 0;
    }
}
@media (max-width: 640px) {
    body.mall-page-product .product-media-gallery {
        width: 100%;
        flex-direction: column;
    }
    body.mall-page-product .product-media-thumbs {
        width: 100%;
        flex: none;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        grid-template-rows: none;
    }
    body.mall-page-product .product-selected-option,
    body.mall-page-product .product-selected-option-main,
    body.mall-page-product .product-selected-option-right {
        align-items: flex-start;
        flex-direction: column;
    }
    body.mall-page-product .product-selected-option-right {
        margin-left: 0;
        width: 100%;
    }
    body.mall-page-product .product-order-total-row {
        align-items: flex-start;
        flex-direction: column;
    }
    body.mall-page-product .product-order-total-value {
        width: 100%;
        justify-content: space-between;
    }
}
