@charset "utf-8";

:root {
    --shop-bg: #f8fafc;
    --shop-card: #ffffff;
    --shop-text: #0f172a;
    --shop-text-subtle: #475569;
    --shop-primary: #2563eb;
    --shop-primary-dark: #1d4ed8;
    --shop-border: #e5e7eb;
    --shop-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    --shop-radius-lg: 18px;
    --shop-radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html.shop-modal-open,
html.shop-modal-open body {
    overflow: hidden;
}

.shop-container {
    color: var(--shop-text);
    background: var(--shop-bg);
    min-height: 100vh;
    position: relative;
}

.shop-inner {
    --shop-inner-padding-x: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--shop-inner-padding-x);
    padding-right: var(--shop-inner-padding-x);
}

.shop-header {
    position: sticky;
    top: calc(0px + var(--shop-header-top-offset, 0px));
    z-index: 20;
    padding: 14px 0;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(232, 237, 255, 0.85);
}

.shop-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.shop-header .shop-inner {
    padding-left: 0;
}



.shop-logo-name {
    margin-left: 10px;
}

.shop-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.shop-nav-item-recommend {
    margin-left: 10px;
}

.shop-nav-list a,
.shop-nav-category-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    color: #3f4b69;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.18s ease;
}

.shop-nav-category-btn {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.shop-nav-list a i,
.shop-nav-category-btn i {
    color: #6a79a5;
    font-size: 14px;
}

.shop-nav-list a:hover,
.shop-nav-list a:focus,
.shop-nav-category-btn:hover,
.shop-nav-category-btn:focus {
    color: #1f4df0;
    background: #edf2ff;
}

.shop-nav-list a:hover i,
.shop-nav-list a:focus i,
.shop-nav-category-btn:hover i,
.shop-nav-category-btn:focus i {
    color: #1f4df0;
}

.shop-nav-link.is-active {
    color: #1f4df0;
    background: #eaf1ff;
    box-shadow: inset 0 0 0 1px #cfdcff;
}

.shop-nav-link.is-active i {
    color: #1f4df0;
}

.shop-nav-category-link.is-active {
    color: #1f4df0;
    background: #eaf1ff;
    box-shadow: inset 0 0 0 1px #cfdcff;
}

.shop-nav-category-link.is-active i {
    color: #1f4df0;
}

.shop-header-search-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #cfd4dc;
    border-radius: 8px;
    background: #eef1f4;
    color: #3f4755;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.shop-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.shop-header-cart-btn:hover,
.shop-header-cart-btn:focus,
.shop-header-search-btn:hover,
.shop-header-search-btn:focus {
    background: #e5e9ee;
    border-color: #c5ccd6;
}

.shop-search-modal {
    position: absolute;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0 20px;
    padding-top: clamp(72px, calc(50vh - 160px), 220px);
    background: rgba(20, 24, 31, 0.28);
}

.shop-search-modal[hidden] {
    display: none !important;
}

.shop-search-modal-dialog {
    width: 100%;
    max-width: 520px;
    border-radius: 12px;
    border: 1px solid #d9dee7;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(20, 24, 31, 0.12);
    padding: 14px;
}

.shop-search-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.shop-search-modal-head h2 {
    margin: 0;
    color: #2c3442;
    font-size: 16px;
    font-weight: 800;
}

.shop-search-modal-close {
    width: 30px;
    height: 30px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #ffffff;
    color: #4a5364;
    cursor: pointer;
}

.shop-search-modal-form {
    display: grid;
    gap: 10px;
    position: relative;
}

.shop-search-modal-input {
    width: 100%;
    height: 42px;
    border: 1px solid #c8ced8;
    border-radius: 10px;
    background: #ffffff;
    color: #1f2a45;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
}

.shop-search-modal-input::placeholder {
    color: #8b94a5;
}

.shop-search-modal-panel {
    border: 1px solid #d9e2ee;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    overflow: hidden;
}

.shop-search-modal-panel-scroll {
    max-height: min(320px, calc(100vh - 260px));
    overflow-y: auto;
    padding: 10px;
    display: grid;
    gap: 10px;
}

.shop-search-modal-section {
    display: grid;
    gap: 8px;
}

.shop-search-modal-section[hidden],
.shop-search-modal-empty[hidden],
.shop-search-modal-panel[hidden] {
    display: none !important;
}

.shop-search-modal-section-title {
    margin: 0;
    padding: 0 2px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.shop-search-modal-recent-list,
.shop-search-modal-product-list {
    display: grid;
    gap: 6px;
}

.shop-search-modal-item {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: #ffffff;
    color: #1e293b;
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.shop-search-modal-item:hover,
.shop-search-modal-item:focus-visible,
.shop-search-modal-item.is-active {
    background: #f8fbff;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.14);
    transform: translateY(-1px);
}

.shop-search-modal-item:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.24);
    outline-offset: 2px;
}

.shop-search-modal-recent-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
}

.shop-search-modal-recent-icon {
    width: 18px;
    height: 18px;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.shop-search-modal-recent-text {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-search-modal-product-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 68px;
    padding: 8px;
}

.shop-search-modal-product-thumb {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.shop-search-modal-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shop-search-modal-product-body {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.shop-search-modal-product-name {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-search-modal-product-caption {
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
}

.shop-search-modal-product-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.shop-search-modal-product-discount-rate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.01em;
}

.shop-search-modal-product-discount {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.shop-search-modal-product-discount i {
    font-size: 10px;
    line-height: 1;
}

.shop-search-modal-product-price {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.shop-search-modal-product-price-origin {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    color: #94a3b8;
    text-decoration: line-through;
}

@media (max-width: 860px) {
    .shop-search-modal-product-item {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 10px;
        min-height: 64px;
        padding: 7px;
    }

    .shop-search-modal-product-thumb {
        width: 48px;
        height: 48px;
        border-radius: 11px;
    }

    .shop-search-modal-product-body {
        gap: 4px;
    }

    .shop-search-modal-product-price-row {
        gap: 5px;
    }

    .shop-search-modal-product-price {
        font-size: 12px;
    }

    .shop-search-modal-product-price-origin,
    .shop-search-modal-product-caption,
    .shop-search-modal-product-discount-rate {
        font-size: 10px;
    }

    .shop-search-modal-product-discount {
        width: 16px;
        height: 16px;
    }

    .shop-search-modal-product-discount i {
        font-size: 9px;
    }
}

.shop-search-modal-empty {
    margin: 0;
    padding: 16px 12px;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
}

.shop-search-modal-panel mark {
    padding: 0;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0) 0%, rgba(37, 99, 235, 0.18) 100%);
    color: #0f172a;
}

.shop-search-modal-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.shop-cart-option-modal {
    position: fixed;
    inset: 0;
    z-index: 122;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(20, 24, 31, 0.32);
    overflow-y: auto;
}

.shop-cart-option-modal[hidden] {
    display: none !important;
}

.shop-cart-option-modal-dialog {
    width: 100%;
    max-width: 480px;
    margin: auto;
    border-radius: 16px;
    border: 1px solid #d9e2ee;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    padding: 18px;
    display: grid;
    gap: 16px;
}

.shop-cart-option-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.shop-cart-option-modal-copy {
    min-width: 0;
}

.shop-cart-option-modal-copy h2 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
}

.shop-cart-option-modal-product {
    margin: 6px 0 0;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
    word-break: break-word;
}

.shop-cart-option-modal-close {
    width: 34px;
    height: 34px;
    border: 1px solid #d8dee8;
    border-radius: 10px;
    background: #ffffff;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.shop-cart-option-modal-close:hover,
.shop-cart-option-modal-close:focus {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

.shop-cart-option-modal-body {
    display: grid;
    gap: 10px;
}

.shop-cart-option-modal-label {
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
}

.shop-cart-option-modal-select {
    width: 100%;
    height: 46px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    outline: none;
}

.shop-cart-option-modal-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.shop-cart-option-modal-select:disabled {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

.shop-cart-option-modal-help,
.shop-cart-option-modal-empty {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
}

.shop-cart-option-modal-help {
    color: #475569;
}

.shop-cart-option-modal-help.is-info {
    color: #475569;
}

.shop-cart-option-modal-help.is-warning {
    color: #b45309;
}

.shop-cart-option-modal-help.is-error {
    color: #b91c1c;
}

.shop-cart-option-modal-empty {
    color: #64748b;
}

.shop-cart-option-modal-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.shop-cart-option-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.shop-cart-option-modal-btn {
    min-width: 110px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 14px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.shop-cart-option-modal-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.shop-cart-option-modal-btn-ghost:hover,
.shop-cart-option-modal-btn-ghost:focus {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.shop-cart-option-modal-btn-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.shop-cart-option-modal-btn-primary:hover,
.shop-cart-option-modal-btn-primary:focus {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.shop-search-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.shop-search-modal-btn {
    height: 36px;
    min-width: 72px;
    border-radius: 9px;
    border: 1px solid #c8ced8;
    background: #edf0f4;
    color: #4a5364;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}

.shop-search-modal-btn-ghost {
    background: #e9edf2;
}

.shop-search-modal-btn-primary {
    background: #cfd5de;
    border-color: #c2c9d4;
    color: #2f3745;
}

.shop-category-modal {
    position: absolute;
    inset: 0;
    z-index: 121;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0 20px;
    padding-top: clamp(72px, calc(50vh - 220px), 220px);
    background: rgba(20, 24, 31, 0.28);
}

.shop-category-modal[hidden] {
    display: none !important;
}

.shop-category-modal-dialog {
    width: 100%;
    max-width: 860px;
    border-radius: 10px;
    border: 1px solid #e2e6ec;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(20, 24, 31, 0.08);
    padding: 16px;
}

.shop-category-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf1f5;
}

.shop-category-modal-head h2 {
    margin: 0;
    color: #1f2937;
    font-size: 16px;
    font-weight: 700;
}

.shop-category-modal-close {
    width: 30px;
    height: 30px;
    border: 1px solid #e1e6ee;
    border-radius: 6px;
    background: #ffffff;
    color: #475467;
    cursor: pointer;
}

.shop-category-modal-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f8fafc;
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.shop-category-modal-all:hover,
.shop-category-modal-all:focus {
    background: #f1f5f9;
    border-color: #d7dee8;
}

.shop-category-modal-all.is-active {
    border-color: #2b5cff;
    background: #edf3ff;
    color: #1f4df0;
}

.shop-category-modal-groups {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 14px 16px;
    margin-top: 12px;
    max-height: min(60vh, 460px);
    overflow-y: auto;
}

.shop-category-group {
    min-width: 0;
    padding: 10px 10px 8px;
    border: 1px solid #eef2f6;
    border-radius: 8px;
    background: #ffffff;
}

.shop-category-group-title {
    margin: 0 0 9px;
    padding: 0 0 6px;
    border-bottom: 1px solid #edf1f5;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.35;
}

.shop-category-group-title:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.shop-category-group-title a {
    color: #111827;
    text-decoration: none;
}

.shop-category-group-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

.shop-category-group-link.is-active .shop-category-group-name {
    color: #1f4df0;
    font-weight: 800;
}

.shop-category-group-link.is-active .shop-category-group-thumb {
    border-color: #c7d7ff;
    background: #edf3ff;
}

.shop-category-group-thumb {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid #e6ebf2;
    background: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.shop-category-group-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shop-category-group-thumb i {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1;
}

.shop-category-group-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-category-sub-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.shop-category-sub-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.shop-category-sub-main-link {
    display: block;
    min-width: 0;
    flex: 1;
    color: #667085;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.45;
}

.shop-category-sub-main-link.is-active {
    color: #1f4df0;
    font-weight: 700;
}

.shop-category-sub-more {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #ffffff;
    color: #64748b;
    text-decoration: none;
    font-size: 12px;
    line-height: 1;
}

.shop-category-sub-more i {
    font-size: 11px;
    line-height: 1;
}

.shop-category-group-title a:hover,
.shop-category-group-title a:focus,
.shop-category-sub-main-link:hover,
.shop-category-sub-main-link:focus,
.shop-category-sub-more:hover,
.shop-category-sub-more:focus {
    color: #1f4df0;
}

.shop-category-sub-more:hover,
.shop-category-sub-more:focus {
    border-color: #cfd8e3;
    background: #f8fafc;
}

.shop-category-modal-empty {
    margin: 8px 0 0;
    padding: 8px 0;
    color: #667085;
    font-size: 13px;
}

@media (min-width: 861px) {
    .shop-header .shop-inner {
        padding-right: 0;
    }

    .shop-header-actions {
        margin-left: auto;
    }
}

.shop-eyebrow {
    margin: 0;
    color: var(--shop-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.shop-page-center {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.shop-surface-card {
    width: 100%;
    border-radius: var(--shop-radius-lg);
    border: 1px solid var(--shop-border);
    background: var(--shop-card);
    box-shadow: var(--shop-shadow);
}

.shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.shop-btn i {
    font-size: 15px;
}

.shop-btn-primary {
    background: var(--shop-primary);
    border-color: var(--shop-primary);
    color: #ffffff;
}

.shop-btn-primary:hover,
.shop-btn-primary:focus {
    background: var(--shop-primary-dark);
    border-color: var(--shop-primary-dark);
    box-shadow: 0 9px 22px rgba(43, 92, 255, 0.28);
}

.shop-btn-ghost {
    background: #ffffff;
    border-color: var(--shop-border);
    color: var(--shop-text);
}

.shop-btn-ghost:hover,
.shop-btn-ghost:focus {
    border-color: #cfd9ff;
    background: #f8faff;
}

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

.shop-product-card {
    min-width: 0;
    display: flex;
}

.shop-product-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border: 1px solid var(--shop-border);
    border-radius: 14px;
    padding: 11px;
    box-shadow: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.shop-product-thumb {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-product-thumb-link {
    display: flex;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.shop-product-member-only {
    position: absolute;
    top: 0px;
    right: 0px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #374151;
    box-shadow: none;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.shop-product-badges {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.shop-product-recommend,
.shop-product-best,
.shop-product-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.shop-product-recommend {
    background: #7c3aed;
}

.shop-product-best {
    background: #dc2626;
}

.shop-product-new {
    background: #2563eb;
}

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

.shop-product-wishlist-btn {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #e11d48;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.shop-product-wishlist-btn i {
    font-size: 15px;
    line-height: 1;
}

.shop-product-wishlist-btn:hover,
.shop-product-wishlist-btn:focus {
    background: #fff1f2;
    border-color: #fda4af;
    color: #be123c;
    transform: translateY(-1px);
}

.shop-product-wishlist-btn.is-active {
    background: #ffe4e6;
    border-color: #fb7185;
    color: #be123c;
}

.shop-product-cart-btn {
    position: absolute;
    left: 8px;
    bottom: 8px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.shop-product-cart-btn i {
    font-size: 15px;
    line-height: 1;
}

.shop-product-cart-btn:hover,
.shop-product-cart-btn:focus,
.shop-product-cart-btn:focus-visible {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
    transform: translateY(-1px);
}

.shop-product-cart-btn.is-disabled,
.shop-product-cart-btn:disabled {
    background: rgba(248, 250, 252, 0.96);
    border-color: rgba(203, 213, 225, 0.8);
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

.shop-product-info {
    padding: 10px 2px 2px;
    min-height: 104px;
    display: flex;
    flex-direction: column;
}

.shop-product-info-link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.shop-product-title {
    margin: 0;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.75em;
}

.shop-product-price {
    margin: 1px 0 0;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.shop-product-price-origin {
    margin-top: 1px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    text-decoration: line-through;
}

.shop-product-price-sale {
    margin-top: 0;
    color: #dc2626;
    font-size: 16px;
    font-weight: 900;
}

.shop-product-discount-meta {
    margin-top: 1px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shop-product-discount-line {
    color: #64748b;
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.shop-product-delivery-guide {
    margin-top: 8px;
    display: grid;
    gap: 4px;
}

.shop-product-delivery-guide-item {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: #475569;
    font-size: 12px;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.shop-product-delivery-guide-item i {
    margin-top: 1px;
    color: #2563eb;
    font-size: 12px;
    line-height: 1;
}

.shop-product-delivery-guide-item.is-free-delivery {
    color: #0f766e;
    font-weight: 700;
}

.shop-product-delivery-guide-item.is-free-delivery i {
    color: #0f766e;
}

.shop-product-link:hover,
.shop-product-link:focus-within {
    border-color: #cbd5e1;
    background: #ffffff;
    transform: translateY(-2px);
}

.shop-common-pagination {
    margin-top: 14px;
    display: flex;
    gap: 6px;
    justify-content: center;
}

.shop-common-page-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.shop-common-page-link.is-active {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.shop-common-page-link.is-disabled {
    opacity: .45;
    pointer-events: none;
}

.max-w-200 {
	max-width: 200px;
}

@media (max-width: 1024px) {
    .shop-product-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .shop-inner {
        --shop-inner-padding-x: 14px;
    }
}

@media (max-width: 860px) {
    .shop-header {
        position: static;
        top: auto;
		padding:0;
		margin-bottom:8px;
    }

    .shop-logo {
        margin-left: 5px;
    }

    .shop-header-container {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .shop-nav {
        flex: 1;
        min-width: 0;
        overflow-x: auto;
    }

    .shop-logo-name {
        display: none;
    }

    .shop-header-search-btn {
        width: 32px;
        height: 32px;
        border-radius: 9px;
        flex-shrink: 0;
    }

    .shop-header-cart-btn {
        width: 32px;
        height: 32px;
        border-radius: 9px;
        flex-shrink: 0;
    }

    .shop-nav-list {
        width: max-content;
        flex-wrap: nowrap;
        gap: 2px;
    }

    .shop-nav-list a {
        height: 40px;
        min-height: 40px;
        padding: 0 8px;
        gap: 4px;
        font-size: 13px;
    }

    .shop-nav-category-btn {
        height: 40px;
        min-height: 40px;
        padding: 0 8px;
        gap: 4px;
        font-size: 13px;
    }

    .shop-nav-list a i {
        font-size: 13px;
    }

    .shop-search-modal {
        padding: 0 14px;
        padding-top: 72px;
    }

    .shop-cart-option-modal {
        padding: 16px 14px;
    }

    .shop-category-modal {
        padding: 0 14px;
        padding-top: 72px;
    }

    .shop-search-modal-dialog {
        padding: 12px;
    }

    .shop-cart-option-modal-dialog {
        padding: 14px;
    }

    .shop-category-modal-dialog {
        padding: 12px;
    }

    .shop-category-modal-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .shop-product-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width: 520px) {
    .shop-product-link {
        padding: 8px;
        border-radius: 12px;
    }

    .shop-product-title {
        font-size: 13px;
    }

    .shop-product-price {
        font-size: 14px;
    }

    .shop-product-member-only {
        top: 6px;
        right: 6px;
        height: 22px;
        padding: 0 6px;
        font-size: 10px;
    }

    .shop-product-badges {
        top: 6px;
        left: 6px;
        gap: 3px;
    }

    .shop-product-wishlist-btn {
        right: 6px;
        bottom: 6px;
        width: 32px;
        height: 32px;
    }

    .shop-product-cart-btn {
        left: 6px;
        bottom: 6px;
        width: 32px;
        height: 32px;
    }

    .shop-cart-option-modal-actions {
        grid-template-columns: 1fr 1fr;
        display: grid;
    }

    .shop-cart-option-modal-btn {
        min-width: 0;
    }

    .shop-product-recommend,
    .shop-product-best,
    .shop-product-new {
        min-height: 20px;
        padding: 0 7px;
        font-size: 10px;
    }

    .shop-category-modal-groups {
        grid-template-columns: 1fr;
    }

    .shop-common-pagination {
        margin-top: 24px;
        gap: 4px;
    }

    .shop-common-page-link {
        min-width: 30px;
        height: 30px;
        padding: 0 7px;
        border-radius: 6px;
        font-size: 12px;
    }
}

.display-none-important {
	display: none !important;
}

.display-none{
	display: none;
}

.shop-cart-sheet {
    position: fixed;
    inset: 0;
    z-index: 1250;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.24s ease;
}

.shop-cart-sheet[hidden] {
    display: none;
}

.shop-cart-sheet.is-open {
    opacity: 1;
    pointer-events: auto;
}

.shop-cart-sheet.is-loading {
    pointer-events: auto;
}

.shop-cart-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(2px);
}

.shop-cart-sheet-panel {
    position: relative;
    width: min(100%, 820px);
    max-height: min(72vh, 640px);
    padding: 12px 20px calc(18px + env(safe-area-inset-bottom, 0px));
    border-radius: 28px 28px 0 0;
    background: #ffffff;
    box-shadow: 0 -14px 36px rgba(15, 23, 42, 0.14);
    transform: translateY(100%);
    transition: transform 0.28s ease;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 12px;
}

.shop-cart-sheet.is-open .shop-cart-sheet-panel {
    transform: translateY(0);
}

.shop-cart-sheet-handle {
    width: 56px;
    height: 6px;
    border-radius: 999px;
    background: #dbe4f0;
    margin: 0 auto;
    cursor: grab;
    touch-action: none;
}

.shop-cart-sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.shop-cart-sheet.is-dragging {
    transition: none;
}

.shop-cart-sheet.is-dragging .shop-cart-sheet-panel {
    transition: none;
}

.shop-cart-sheet.is-dragging .shop-cart-sheet-handle,
.shop-cart-sheet.is-dragging .shop-cart-sheet-head {
    cursor: grabbing;
}

.shop-cart-sheet-head strong {
    display: block;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #111827;
    line-height: 1.15;
}

.shop-cart-sheet-subtitle {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #7b8794;
    line-height: 1.5;
}

.shop-cart-sheet.is-loading .shop-cart-sheet-subtitle {
    color: #475569;
}

.shop-cart-sheet-close {
    width: 42px;
    height: 42px;
    border: 1px solid #d8e1ec;
    border-radius: 14px;
    background: #ffffff;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    touch-action: manipulation;
}

.shop-cart-sheet-close:hover {
    background: #f8fafc;
    border-color: #bfdbfe;
    color: #2563eb;
}

.shop-cart-sheet-close:focus-visible,
.shop-cart-sheet-remove:focus-visible,
.shop-cart-sheet-link:focus-visible,
.shop-cart-sheet-item-link:focus-visible,
.shop-cart-sheet-thumb-link:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.shop-cart-sheet-body {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
    padding-top: 2px;
}

.shop-cart-sheet-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 16px;
}

.shop-cart-sheet-item {
    position: relative;
    display: grid;
    gap: 8px;
    width: 170px;
    min-width: 170px;
    max-width: 170px;
    align-content: start;
}

.shop-cart-sheet-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    box-shadow: none;
}

.shop-cart-sheet-item-link,
.shop-cart-sheet-thumb-link {
    text-decoration: none;
    color: inherit;
}

.shop-cart-sheet-thumb-link {
    position: absolute;
    inset: 0;
    display: block;
}

.shop-cart-sheet-thumb,
.shop-cart-sheet-thumb-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.shop-cart-sheet-thumb {
    object-fit: cover;
    display: block;
}

.shop-cart-sheet-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    color: #b5bfd0;
    font-size: 34px;
}

.shop-cart-sheet-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.42);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.16);
}

.shop-cart-sheet-remove:hover {
    background: rgba(220, 38, 38, 0.88);
}

.shop-cart-sheet-item-info {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.shop-cart-sheet-item-title {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    color: #1f2937;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.shop-cart-sheet-item-option,
.shop-cart-sheet-item-qty {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-cart-sheet-item-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 1px;
}

.shop-cart-sheet-item-price {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
}

.shop-cart-sheet-item-origin {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    text-decoration: line-through;
}

.shop-cart-sheet-empty {
    margin: 0;
    padding: 28px 12px;
    border: 1px dashed #d6deea;
    border-radius: 18px;
    background: #f8fafc;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    text-align: center;
}

.shop-cart-sheet-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.shop-cart-sheet-total-wrap {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.shop-cart-sheet-total-label {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}

.shop-cart-sheet-total-price {
    font-size: 19px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.03em;
}

.shop-cart-sheet-total-origin {
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
    text-decoration: line-through;
}

.shop-cart-sheet-total-discount {
    font-size: 12px;
    font-weight: 700;
    color: #059669;
}

.shop-cart-sheet-item-bottom {
    display: grid;
    gap: 4px;
    align-items: start;
    margin-top: 4px;
}

.shop-cart-sheet-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 220px;
    height: 56px;
    padding: 0 24px;
    border-radius: 16px;
    background: #18b6aa;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
    box-shadow: 0 10px 22px rgba(24, 182, 170, 0.24);
}

.shop-cart-sheet-link:hover {
    background: #0fa79b;
}

.shop-cart-sheet-link i {
    font-size: 17px;
    line-height: 1;
    flex-shrink: 0;
}

.shop-cart-sheet-link span {
    display: inline-block;
}

.shop-cart-sheet-panel.is-busy::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(3px);
    z-index: 5;
}

.shop-cart-sheet-panel.is-busy::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border: 3px solid #dbeafe;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: shopCartSheetSpin 0.8s linear infinite;
    z-index: 6;
}

@keyframes shopCartSheetSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .shop-cart-sheet-panel {
        width: 100%;
        max-height: 78vh;
        padding: 10px 16px calc(16px + env(safe-area-inset-bottom, 0px));
        border-radius: 26px 26px 0 0;
    }

    .shop-cart-sheet-head strong {
        font-size: 18px;
    }

    .shop-cart-sheet-subtitle {
        font-size: 12px;
        margin-top: 2px;
    }

    .shop-cart-sheet-list {
        display: flex;
        flex-wrap: nowrap;
        width: max-content;
        min-width: 100%;
        gap: 0;
        justify-content: flex-start;
        scroll-snap-type: x proximity;
    }

    .shop-cart-sheet-item {
        flex: 0 0 132px;
        width: 132px;
        min-width: 132px;
        max-width: 132px;
        margin-right: 12px;
        scroll-snap-align: start;
    }

    .shop-cart-sheet-item:last-child {
        margin-right: 0;
    }

    .shop-cart-sheet-body {
        overflow-x: auto;
        overflow-y: hidden;
        padding-right: 0;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .shop-cart-sheet-thumb-wrap {
        border-radius: 14px;
    }

    .shop-cart-sheet-remove {
        width: 32px;
        height: 32px;
        top: 7px;
        right: 7px;
    }

    .shop-cart-sheet-item-title {
        font-size: 14px;
    }

    .shop-cart-sheet-item-bottom {
        align-items: start;
        gap: 6px;
    }

    .shop-cart-sheet-foot {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 1fr;
        align-items: end;
        gap: 14px;
    }

    .shop-cart-sheet-total-wrap {
        width: 100%;
        gap: 2px;
    }

    .shop-cart-sheet-link {
        width: 100%;
        min-width: 0;
        height: 60px;
        padding: 0 14px;
        gap: 8px;
        font-size: 15px;
        white-space: nowrap;
    }
}

@media (max-width: 380px) {
    .shop-cart-sheet-list {
        min-width: max-content;
    }

    .shop-cart-sheet-item {
        flex-basis: 120px;
        width: 120px;
        min-width: 120px;
        max-width: 120px;
    }

    .shop-cart-sheet-foot {
        grid-template-columns: minmax(0, 1fr);
    }
}
