@charset "utf-8";

.shop-main {
    padding: 20px 0 54px;
}

.shop-event-top {
    --event-gap: 14px;
    --slides-per-view: 3;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 20px;
}

.shop-event-viewport {
    overflow: hidden;
    border-radius: 16px;
}

.shop-event-track {
    display: flex;
    gap: var(--event-gap);
    transition: transform 0.55s ease;
    will-change: transform;
}

.shop-event-banner {
    flex: 0 0 calc((100% - (var(--event-gap) * (var(--slides-per-view) - 1))) / var(--slides-per-view));
    min-width: 0;
}

.shop-event-banner a {
    display: block;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

.shop-event-banner img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.shop-event-controls {
    margin-top: 8px;
    padding-top: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
}

.shop-event-progress {
    flex: 1;
    height: 2px;
    background: #dde2ea;
    margin-right: 14px;
    border-radius: 999px;
    overflow: hidden;
}

.shop-event-progress > span {
    display: block;
    width: 0;
    height: 100%;
    background: #808896;
    border-radius: 999px;
    transition: width 0.35s ease;
}

.shop-event-btn {
    height: 20px;
    min-width: 14px;
    padding: 0;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: #2f3542;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    box-shadow: none;
    transition: all 0.2s ease;
}

.shop-event-btn i {
    font-size: 12px;
    line-height: 1;
}

.shop-event-btn + .shop-event-btn {
    margin-left: 8px;
}

.shop-event-next {
    padding-left: 10px;
    position: relative;
}

.shop-event-next::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 10px;
    background: #d9dee8;
}

.shop-event-pause span {
    font-size: 11px;
}

.shop-event-btn:hover,
.shop-event-btn:focus {
    border-color: transparent;
    background: transparent;
    color: #111827;
    transform: none;
    box-shadow: none;
}

.shop-event-btn:active {
    transform: translateY(0);
}

.shop-event-indicator {
    position: absolute;
    right: 30px;
    bottom: 14px;
    display: none;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(16, 24, 48, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
}

.shop-event-indicator-pause {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
}

.shop-event-indicator-pause i {
    font-size: 10px;
    line-height: 1;
}

.shop-event-indicator-pause:active {
    transform: scale(0.96);
}

.shop-event-dots {
    display: none;
    margin-top: 8px;
    justify-content: center;
    align-items: center;
    gap: 7px;
}

.shop-event-dot {
    width: 7px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: #cad6ff;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shop-event-dot.is-active {
    width: 18px;
    background: #2b5cff;
}

.shop-main-center {
    margin-top: 14px;
}

.shop-main-center-title {
    margin: 0 0 12px;
    color: #1f2a45;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.shop-main-center-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 14px 18px;
}

.shop-main-center-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    text-decoration: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    width: 74px;
    box-shadow: none;
    transition: opacity 0.18s ease;
}

.shop-main-center-thumb {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-main-center-thumb img {
    width: 78%;
    height: 78%;
    object-fit: contain;
}

.shop-main-center-name {
    color: #334155;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
    word-break: keep-all;
    letter-spacing: -0.01em;
}

.shop-main-center-item:hover,
.shop-main-center-item:focus {
    background: transparent;
    opacity: 0.88;
}

.shop-recommend {
    margin-top: 40px;
    margin-bottom: 40px;
}

.shop-best,
.shop-new {
    margin-top: 40px;
    margin-bottom: 40px;
}

.shop-products-page {
    margin-top: 0;
    padding-top: 20px;
}

.shop-products-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.shop-products-sidebar {
    position: sticky;
    top: calc(20px + var(--shop-products-sidebar-top-offset, 0px));
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    padding: 12px 10px;
}

.shop-products-sidebar-title {
    margin: 0;
    padding: 0 0 12px;
    border-bottom: 0;
    color: #111111;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.shop-products-side-parent-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.shop-products-side-parent-row {
    display: flex;
    align-items: center;
    gap: 0;
}

.shop-products-side-parent-link {
    flex: 1;
    min-width: 0;
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 0 0 0 10px;
    border-left: 2px solid transparent;
    letter-spacing: -0.01em;
    transition: color 0.15s ease, border-color 0.15s ease;
    overflow: hidden;
}

.shop-products-side-parent-thumb {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 1px solid #e6ebf2;
    background: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    font-size: 11px;
    color: #94a3b8;
}

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

.shop-products-side-parent-item.is-active .shop-products-side-parent-thumb {
    border-color: #c7d7ff;
    background: #edf3ff;
    color: #4a7cff;
}

.shop-products-side-toggle {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #8f98a6;
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
}

.shop-products-side-toggle i {
    font-size: 10px;
    line-height: 1;
}

.shop-products-side-toggle:hover,
.shop-products-side-toggle:focus {
    color: #0f172a;
    background: #f3f4f6;
}

.shop-products-side-parent-item.is-active > .shop-products-side-parent-row > .shop-products-side-parent-link {
    color: #0f172a;
    font-weight: 700;
    border-left-color: #2563eb;
}

.shop-products-side-child-list {
    list-style: none;
    margin: 0 0 6px;
    padding: 0 0 0 12px;
    display: flex;
    flex-direction: column;
}

.shop-products-side-grandchild-list {
    list-style: none;
    margin: -2px 0 4px;
    padding: 0 0 0 10px;
    display: flex;
    flex-direction: column;
}

.shop-products-side-grandchild-list .shop-products-side-child-link {
    min-height: 26px;
    font-size: 11px;
    color: #9fa8b6;
    padding-left: 10px;
    position: relative;
}

.shop-products-side-grandchild-list .shop-products-side-child-link.is-active {
    color: #0f172a;
}

.shop-products-side-child-list[hidden] {
    display: none;
}

.shop-products-side-child-link {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    color: #64748b;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    padding: 0 4px;
    border-radius: 0;
    letter-spacing: -0.01em;
    transition: color 0.15s ease;
}

.shop-products-side-child-list > li > .shop-products-side-child-link {
    padding-left: 15px;
}

.shop-products-side-child-link.is-active {
    color: #0f172a;
    font-weight: 600;
    background: transparent;
}

.shop-products-side-parent-link:hover,
.shop-products-side-parent-link:focus,
.shop-products-side-child-link:hover,
.shop-products-side-child-link:focus {
    color: #0f172a;
}

.shop-products-content {
    min-width: 0;
}

.shop-products-breadcrumb {
    margin: 0 0 4px;
    color: #c0c6d0;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    line-height: 1;
    gap: 4px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    letter-spacing: -0.01em;
}

.shop-products-breadcrumb i {
    font-size: 8px;
    color: #d5d9e0;
    line-height: 1;
    transform: translateY(0.5px);
}

.shop-products-mobile-category-toggle {
    display: none;
    width: 100%;
    min-height: 28px;
    border: 0;
    border-radius: 8px;
    background: #ffffff;
    color: #111111;
    font-size: 12px;
    font-weight: 600;
    padding: 0;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.shop-products-mobile-category-summary {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.shop-products-mobile-category-label {
    color: #8f98a6;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
}

.shop-products-mobile-category-current {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: none;
    min-height: 28px;
    line-height: 1;
    overflow: hidden;
}

.shop-products-mobile-category-thumb {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    overflow: hidden;
    background: #f8fafc;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.shop-products-mobile-category-text {
    min-width: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-products-mobile-category-parent {
    display: inline-block;
    color: #8f98a6;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
}

.shop-products-mobile-category-child {
    display: inline-block;
    color: #111111;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.shop-products-mobile-category-action {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    gap: 4px;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.shop-products-mobile-category-action-text {
    color: inherit;
}

.shop-products-mobile-category-toggle i {
    flex-shrink: 0;
    color: #b0b8c1;
    font-size: 11px;
    line-height: 1;
}

.shop-products-content .shop-product-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.shop-products-content .shop-product-link {
    border-color: #e5e7eb;
    border-radius: 14px;
    box-shadow: none;
    padding: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.shop-products-content .shop-product-link:hover,
.shop-products-content .shop-product-link:focus-within {
    border-color: #cbd5e1;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.shop-products-meta {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 13px;
    letter-spacing: -0.01em;
}

.shop-products-meta strong {
    color: #0f172a;
}

.shop-products-meta-label {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    vertical-align: middle;
}

.shop-products-meta-label.is-best {
    border-color: #fde68a;
    background: #fffbeb;
    color: #b45309;
}

.shop-products-meta-label.is-new {
    border-color: #d1fae5;
    background: #ecfdf5;
    color: #047857;
}

.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-products-empty {
    margin: 8px auto 0;
    padding: 20px 16px;
    max-width: 460px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.shop-products-empty i {
    font-size: 16px;
    line-height: 1;
    color: #8f98a6;
}

.shop-divider {
    height: 1px;
    margin: 18px auto 16px;
    max-width: 1200px;
    width: calc(100% - 40px);
    background: linear-gradient(90deg, rgba(148, 163, 184, 0) 0%, rgba(148, 163, 184, 0.38) 50%, rgba(148, 163, 184, 0) 100%);
}

.shop-section-title {
    margin: 0 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.shop-section-title i {
    color: #475569;
    font-size: 18px;
    line-height: 1;
}

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

.shop-section-head .shop-section-title {
    margin-bottom: 0;
}

.shop-section-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

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

.shop-section-more:hover,
.shop-section-more:focus {
    color: #2563eb;
}

.shop-hero {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 22px;
    align-items: stretch;
}

.shop-hero-content,
.shop-hero-card {
    background: var(--shop-card);
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius-lg);
    box-shadow: var(--shop-shadow);
}

.shop-hero-content {
    padding: 36px;
}

.shop-hero-title {
    margin: 10px 0 14px;
    color: #1c2440;
    font-size: 39px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.shop-hero-text {
    margin: 0;
    color: var(--shop-text-subtle);
    font-size: 16px;
    line-height: 1.75;
}

.shop-hero-actions {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.shop-hero-card {
    padding: 20px;
    display: grid;
    gap: 12px;
    align-content: center;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.shop-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: var(--shop-radius-md);
    border: 1px solid #e8eeff;
    background: #ffffff;
}

.shop-stat-item i {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #edf2ff;
    color: #2b5cff;
    font-size: 18px;
    flex-shrink: 0;
}

.shop-stat-item strong {
    display: block;
    color: #1f2a45;
    font-size: 15px;
}

.shop-stat-item p {
    margin: 2px 0 0;
    color: #607096;
    font-size: 13px;
    line-height: 1.5;
}

.shop-links {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.shop-link-card {
    display: block;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #e8eeff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 8px 22px rgba(21, 33, 73, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.shop-link-card i {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #edf2ff;
    color: #2b5cff;
    font-size: 18px;
}

.shop-link-card strong {
    display: block;
    margin-top: 12px;
    color: #1f2a45;
    font-size: 16px;
}

.shop-link-card span {
    display: block;
    margin-top: 6px;
    color: #5f6f93;
    font-size: 14px;
    line-height: 1.55;
}

.shop-link-card:hover,
.shop-link-card:focus {
    transform: translateY(-2px);
    border-color: #cfd9ff;
    box-shadow: 0 14px 28px rgba(26, 44, 93, 0.13);
}

@media (max-width: 1024px) {
    .shop-hero-title {
        font-size: 32px;
    }

    .shop-main-center-list {
        gap: 12px 14px;
    }

}

@media (max-width: 860px) {
    .shop-hero {
        grid-template-columns: 1fr;
    }

    .shop-event-top {
        --slides-per-view: 1;
        --event-gap: 0px;
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding-left: 0;
        padding-right: 0;
    }

    .shop-event-viewport {
        border-radius: 0;
    }

    .shop-event-banner a {
        border-radius: 0;
        border: 0;
        box-shadow: none;
    }

    .shop-event-controls {
        display: none;
    }

    .shop-event-indicator {
        display: inline-flex;
        right: 6px;
        bottom: 24px;
        padding: 4px 9px;
        gap: 5px;
        font-size: 11px;
        opacity: 0.7;
    }

    .shop-event-dots {
        display: flex;
        width: 100vw;
        max-width: 100vw;
        margin-top: 10px;
        padding: 0 14px;
        justify-content: center;
        box-sizing: border-box;
    }

    .shop-event-dot {
        background: #b9bec8;
    }

    .shop-event-dot.is-active {
        background: #6f7684;
    }

    .shop-links {
        grid-template-columns: 1fr;
    }

    .shop-divider {
        width: calc(100% - 28px);
        margin: 14px auto 12px;
    }

    .shop-section-title {
        font-size: 18px;
    }

    .shop-section-more {
        font-size: 12px;
    }

    .shop-main-center {
        position: relative;
        margin-top: 10px;
    }

    .shop-main-center::before,
    .shop-main-center::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 18px;
        pointer-events: none;
        z-index: 1;
    }

    .shop-main-center::before {
        left: var(--shop-inner-padding-x);
        background: linear-gradient(90deg, var(--shop-bg) 24%, rgba(248, 250, 252, 0) 100%);
    }

    .shop-main-center::after {
        right: var(--shop-inner-padding-x);
        background: linear-gradient(270deg, var(--shop-bg) 24%, rgba(248, 250, 252, 0) 100%);
    }

    .shop-main-center-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .shop-main-center-list {
        justify-content: flex-start;
        gap: 12px 12px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 14px 2px 2px;
    }

    .shop-main-center-list::-webkit-scrollbar {
        display: none;
    }

    .shop-main-center-item {
        flex: 0 0 66px;
        width: 66px;
    }

    .shop-main-center-thumb {
        width: 52px;
        height: 52px;
    }

    .shop-main-center-name {
        font-size: 12px;
    }

    .shop-products-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .shop-products-sidebar {
        position: static;
        top: auto;
        padding: 8px 10px;
    }

    .shop-products-mobile-category-toggle {
        display: flex;
        align-items: center;
        margin-bottom: 0px;
        min-height: 28px;
        padding: 0;
    }

    [data-shop-products-cat-panel] {
        display: none;
    }

    [data-shop-products-cat-panel].is-open {
        display: block;
    }

    .shop-products-side-parent-list {
        margin-top: 0;
    }

    .shop-products-side-child-list {
        margin-bottom: 4px;
    }

    .shop-products-side-grandchild-list {
        margin: -4px 0 2px;
        padding-left: 8px;
    }

    .shop-products-side-grandchild-list .shop-products-side-child-link {
        min-height: 24px;
        font-size: 11px;
        padding-left: 8px;
    }

    .shop-products-mobile-category-action {
        justify-content: flex-end;
    }

    .shop-products-breadcrumb {
        display: none;
    }

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

	.shop-product-delivery-guide-item {
		font-size: 11px;
	}
}

@media (prefers-reduced-motion: reduce) {
    .shop-event-track,
    .shop-event-btn,
    .shop-event-dot {
        transition: none;
    }
}

@media (max-width: 520px) {
    .shop-main {
        padding-top: 5px;
    }

    .shop-hero-content {
        padding: 24px 18px;
    }

    .shop-hero-title {
        font-size: 28px;
    }

    .shop-btn {
        width: 100%;
    }

    .shop-main-center-list {
        gap: 10px;
    }

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

	#shop-products-side-panel{
		max-height: 200px;
		overflow-y: auto;
	}

    .shop-products-mobile-category-action {
        font-size: 11px;
    }

    .shop-products-side-grandchild-list .shop-products-side-child-link {
        min-height: 22px;
        font-size: 10px;
    }

}
