.shop-container {
    display: flex;
}
.shop-filter-close-btn {
    width: 100%;
    display: none;
    justify-content: end;
}
#btn-filter-close img {
    width: 26px;
    height: 26px;
}

.shop-filter {
    min-height: 100dvh;
    width: 280px;
    background-color: rgb(242, 242, 232);
    display: flex;
    padding: 20px 0;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    transition: all 0.6s ease;
}
.filters-layout {
    display: flex;
    justify-content: first baseline;
    width: 200px;
}
.filters-layout-item {
    width: 100px;
    font-size: 12px;
}
.filters-layout-label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.filters-layout-label img {
    width: 10px;
}
.filters-layout-options {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}
.filter-checkbox-input {
    display: none;
}
.filter-checkbox:has(.filter-checkbox-input:checked) .filter-checkbox-label {
    font-weight: bold;
}

.filter-color-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-color-swatches {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.filter-color-square {
    width: 12px;
    height: 12px;
    border: 1px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #ccc;
    flex-shrink: 0;
    position: relative;
}

.filter-color-swatches .filter-color-square + .filter-color-square {
    margin-left: -5px;
}

.filter-color-swatches .filter-color-square:nth-child(1) { z-index: 1; }
.filter-color-swatches .filter-color-square:nth-child(2) { z-index: 2; }
.filter-color-swatches .filter-color-square:nth-child(3) { z-index: 3; }
.filter-color-swatches .filter-color-square:nth-child(4) { z-index: 4; }
.filter-color-swatches .filter-color-square:nth-child(n+5) { z-index: 5; }


.shop-showcase-container {
    display: flex;
    flex: 1;
    flex-direction: column;
}
.shop-showcase {
    width: 100%;
    padding: 20px;

    display: grid;
    gap: 42px;
    overflow: hidden;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.showcase-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.showcase-card-img {
    aspect-ratio: 3 / 4;
    width: 100%;
    background-color: #fff;
}
.showcase-card-info {
    padding: 8px 8px;
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: white;
    gap: 2px;
}
.showcase-card-info div {
    height: 16px;
}
.like-error-shake {
    animation: like-error-shake 0.4s ease;
}

@keyframes like-error-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}
.showcase-card-title {
    display: flex;
    align-items: center;
    justify-content:space-between;
}
.showcase-card-title h6 {
    margin: 0;
    font-size: 14px;
    font-weight: normal;
}
.showcase-card-title button {
    padding: 0;
}
.showcase-card-title img {
    margin: 0;
    width: 20px;
}
.showcase-card-price-info {
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}
.showcase-card-price-info p {
    margin: 0;
    font-size: 12px;
}

.showcase-card.sold-out .showcase-card-img,
.showcase-card.sold-out .showcase-card-price-info > div,
.showcase-card.sold-out .showcase-card-clr,
.showcase-card.sold-out .showcase-card-title h6 {
    opacity: 0.55;
}
.showcase-card.sold-out .showcase-card-info {
    background-color: #f4f4f4;
}
.showcase-card.sold-out .showcase-card-title button,
.showcase-card.sold-out .showcase-card-price-info p {
    opacity: 1;
    color: red;
}

.showcase-card-clr {
    display: flex;
    gap: 2px;
}
.showcase-card-clr div {
    background-color: black;
    width: 16px;
    height: 16px;
    border: 2px solid lightgray;
}
.store-detail {
    overflow: hidden;
    display: grid;
    gap: 80px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    font-size: 14px;
    width: 100%;
    padding: 40px;
    align-items: start;
}
.store-detail-pic {
    aspect-ratio: 3 / 4;
    width: min(100%, 480px);
    max-height: 640px;
    background-color: #fff;
}

.store-detail-card {
    height: 640px;
    background-color: white;
    width: 80%;
    max-width: 480px;
    position: relative;
    overflow: hidden;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.store-detail-card[hidden] {
    display: none;
}

.store-detail-title, .store-detail-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.store-detail h1, .store-detail h2, .store-detail h3, .store-detail h4, .store-detail h5, .store-detail h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
}
#store-detail-like-btn img {
    width: 18px;
}
.store-detail-title-sec {
    margin-bottom: 40px;
}
.store-price h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
}

.store-price-rating {
    color: #111;
    font-size: 12px;
    letter-spacing: 1px;
    line-height: 1;
}


.store-detail-color {
    border-top: 1px solid black;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 12px;
}
.store-detail-color>h3 {
    margin: 8px 0 4px;
    font-weight: bold;
}

.store-color-btn-sec label.sold-out,
.store-size-btns label.sold-out {
    opacity: 0.35;
    cursor: not-allowed;
}

.store-color-btn-sec {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
}

.store-color-btn-sec > p {
    margin: 0;
    width: 4px;
    flex-shrink: 0;
    background-color: aqua;
}

.store-color-btn-sec label {
    cursor: pointer;
    flex:1;
}

.store-color-btns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.store-color-btns input {
    display: none;
}

.store-color-btns label span {
    display: block;
    padding: 8px 16px;
    color: black;
    font-weight: bold;
    background-color: rgb(238, 236, 236);
}

.store-color-btns input:checked + span {
    background-color: black;
    color: white;
}

.store-detail-size {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 12px;
}
.store-detail-size>h3 {
    margin-bottom: 4px;
    font-weight: bold;
}
.store-size-btns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}
.store-size-btns input {
    display: none;
}

.store-size-btns label {
    cursor: pointer;
}

.store-size-btns label span {
    display: block;
    padding: 8px 16px;
    background-color: rgb(238, 236, 236);
    color: black;
    font-weight: bold;
}

.store-size-btns input:checked + span {
    background-color: black;
    color: white;
}

#store-btn-add2cart {
    width: 100%;
    background: black;
    color: white;
    padding: 10px;
    transition: all 0.2s ease;
}

#store-btn-add2cart:hover {
    background: rgb(25, 25, 25);
    color: rgb(180, 180, 180);
}

.store-detail-desc {
    margin: 12px 0 24px;
}
.store-detail-desc h4 {
    white-space: pre-line;
    line-height: 1.2;
}
.store-detail-recom {
    border-top: 1px solid black;
}
.store-detail-recom>h3 {
    margin: 8px 0 4px;
    font-weight: bold;
}
.store-detail-recom-items {
    display: flex;
    gap: 20px;
    width: 100%;
    margin-top: 12px;
}
.store-detail-recom-item {
    width: 20%;
}
.store-detail-recom-item>img {
    width: 100%;
    background-color: #fff;
}

.store-detail-info {
    display: none;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    border-top: 1px solid black;
}
.detail-info-close-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
}
#btn-info-close img {
    width: 26px;
    height: 26px;
}


.detail-info-close-btn>h3 {
    margin: 8px 0 4px;
    font-weight: bold;
}

.detail-info-close-btn-filter {
    display: flex;
    justify-content: center;
    gap: 30px;
}
.detail-info-close-cmin {
    margin: 8px 0 4px;
    gap: 20px;
}
.detail-info-close-btn-filter>h3 {
    margin: 8px 0 4px;
    font-weight: bold;
}

.detail-info-close-btn-filter label {
    font-weight: bold;
    color: gray;
}

.detail-info-close-btn-filter input {
    display: none;
}

.detail-info-close-btn-filter label span {
    font-weight: bold;
}

.detail-info-close-btn-filter input:checked + span {
    color: black;
}
.store-detail-units, .store-detail-materials {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}
.store-detail-units { flex-direction:column; align-items:stretch; gap:22px; overflow-y:auto; padding:14px 0 20px; box-sizing:border-box; }
.store-detail-units-chart { display:flex; width:100%; min-height:0; flex:0 0 auto; justify-content:center; align-items:center; gap:24px; }
.store-detail-unit-column { min-width:140px; }
.store-detail-unit-values { width:100%; }
.store-detail-units-chart .detail-cmin { display:flex; justify-content:space-between; gap:12px; padding:2px 0; border:0; font-size:12px; }
.store-detail-units-chart .detail-cmin span:first-child { color:#777; }
.store-size-compare-wrap { position:relative; width:100%; margin:10px auto 0; text-align:center; }
.store-size-compare-button { min-width:150px; height:40px; padding:0 22px; border:1px solid #111; background:#111; color:#fff; font:inherit; font-size:11px; cursor:pointer; transition:background-color .18s ease, color .18s ease, box-shadow .18s ease; }
.store-size-compare-button:not(:disabled):hover { background:#fff; color:#111; box-shadow:0 4px 12px rgba(0,0,0,.12); }
.store-size-compare-button:not(:disabled):active { box-shadow:none; }
.store-size-compare-button:not(:disabled):focus-visible { outline:2px solid #777; outline-offset:3px; }
.store-size-compare-button:disabled { border-color:#ccc; background:#f1f1f1; color:#999; cursor:not-allowed; }
.store-size-login-tooltip { display:none; position:absolute; left:50%; top:calc(100% + 10px); z-index:2; padding:8px 12px; transform:translateX(-50%); border-radius:4px; background:#111; color:#fff; font-size:11px; line-height:1.3; text-decoration:none; white-space:nowrap; box-shadow:0 3px 10px rgba(0,0,0,.16); }
.store-size-login-tooltip::after { content:""; position:absolute; bottom:100%; left:50%; transform:translateX(-50%); border:6px solid transparent; border-bottom-color:#111; }
.store-size-compare-wrap.is-guest .store-size-login-tooltip { display:inline-block; }
.store-size-login-tooltip:hover, .store-size-login-tooltip:focus-visible { color:#c8c8c8; text-decoration:none; }
.store-size-compare-modal { position:fixed; inset:0; z-index:10000; display:none; align-items:center; justify-content:center; padding:20px; box-sizing:border-box; background:rgba(0,0,0,.48); }
.store-size-compare-modal.is-open { display:flex; }
.store-size-compare-dialog { width:min(100%,520px); max-height:min(80vh,640px); overflow:auto; padding:22px; box-sizing:border-box; background:#fff; }
.store-size-compare-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding-bottom:14px; border-bottom:1px solid #e5e5e5; }
.store-size-compare-header h3 { margin:0; font-size:16px; font-weight:600; }
.store-size-compare-header button { width:32px; height:32px; padding:0; border:0; background:transparent; font-size:26px; line-height:1; cursor:pointer; }
.store-size-comparison { padding-top:16px; }
.store-size-comparison h5 { margin:0 0 10px; font-size:11px; font-weight:600; }
.store-size-comparison-body { position:relative; min-height:48px; }
#store-size-compare-content.is-blurred { filter:blur(5px); user-select:none; pointer-events:none; }
.store-size-comparison-body.is-profile-locked { min-height:150px; }
.store-size-register-prompt { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; padding:16px; box-sizing:border-box; text-align:center; }
.store-size-register-prompt[hidden] { display:none !important; }
.store-size-register-prompt p { margin:0; color:#333; font-size:13px; line-height:1.6; }
.store-size-register-prompt a { display:inline-flex; min-height:36px; align-items:center; justify-content:center; padding:0 16px; background:#111; color:#fff; font-size:11px; text-decoration:none; }
.store-size-register-prompt a:hover, .store-size-register-prompt a:focus-visible { color:#ccc; }
.store-size-comparison > p { margin:0; color:#888; font-size:10px; line-height:1.6; }
.store-size-comparison-row { display:grid; grid-template-columns:1.2fr 1fr 1fr 1fr; gap:8px; padding:8px 0; border-top:1px solid #e5e5e5; font-size:10px; }
.store-size-comparison-row span { min-width:0; }
.store-size-comparison-row span:first-child { color:#777; }
.store-size-comparison-row span:not(:first-child) { text-align:right; }
.store-size-comparison-row .is-larger-than-product { color:#c62828; font-weight:600; }
.store-size-comparison-row .is-smaller-than-product { color:#2463c7; font-weight:600; }
.store-size-compare-notice { margin:0; color:#999; font-size:10px; line-height:1.6; }
.store-detail-materials {
    flex-direction: column;
    gap: 10px;
}
.store-detail-materials div {
    display: flex;
    gap: 8px;
}
.store-detail-units-chart>img {
    width: 30%;
}
.store-detail-policies {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    white-space: pre-line;
    line-height: 1.7;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.store-detail-policies h1 {
    font-weight: 700;
    margin: 0;
    margin-top: 16px;
}
.store-detail-policies p {
    font-weight: 500;
    margin: 0;
}

.store-detail-models {
    width: 100%;
    display: grid;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    gap: 20px;
    white-space: pre-line;
    line-height: 1.4;
    padding: 10px;
}

.detail-model {
    display: flex;
    gap: 10px;
}
.detail-model img {
    width: 80px;
    aspect-ratio: 1 / 1;
}
.detail-model-desc {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.detail-model-desc h1 {
    margin: 0;
    font-weight: 500;
}
.detail-model-desc p {
    margin: 0;
}


.detail-cmin {
    display: flex;
    gap: 12px;
    line-height: 1.5;
}





.store-detail-miscs {
    margin-top: auto;
    flex-shrink: 0;
}
.store-detail-miscs button {
    padding: 0;
    margin-right: 10px;
}
.store-detail-miscs button:hover {
    color: rgb(161, 160, 160);
}


.vvc-product-reviews {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.vvc-product-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 34px;
    flex: 0 0 34px;
    padding: 0 2px;
    border-bottom: 1px solid #111;
    box-sizing: border-box;
}

.vvc-review-nav {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111;
    font-family: inherit;
    font-size: 9px;
    line-height: 1;
    cursor: pointer;
}

.vvc-review-nav span:first-child,
.vvc-review-nav span:last-child {
    font-size: 12px;
}

.vvc-review-count {
    color: #111;
    font-size: 9px;
    line-height: 1;
}

.vvc-review-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
    color: #999;
    font-size: 11px;
}

.vvc-review-slider {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 0;
    flex: 1;
    overflow: hidden;
}

.vvc-review {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 18px 0 0;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    pointer-events: none;
    transition: opacity .35s ease, transform .4s ease, visibility 0s linear .4s;
}

.vvc-review.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
    transition: opacity .35s ease, transform .4s ease;
}


/* REVIEW META */

.vvc-review-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex: 0 0 38px;
    margin: 0 0 12px;
    box-sizing: border-box;
}

.vvc-review-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.vvc-review-avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    overflow: hidden;
    border-radius: 50%;
    background: #f3f3f3;
}

.vvc-review-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vvc-review-user-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.vvc-review-user-info strong {
    color: #111;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
}

.vvc-review-user-info span {
    color: #111;
    font-size: 9px;
    letter-spacing: 1px;
    line-height: 1;
}

.vvc-review-meta time {
    color: #999;
    font-size: 8px;
    line-height: 1;
}


/* PHOTO */

.vvc-review-photo-slider {
    position: relative;
    width: 100%;
    height: 370px;
    min-height: 0;
    flex: 0 0 370px;
    overflow: hidden;
    background: #f5f5f5;
}

.vvc-review-photo-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}

.vvc-review-photo {
    width: 100%;
    min-width: 100%;
    height: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.vvc-review-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}


/* PHOTO BUTTON */

.vvc-review-photo-prev,
.vvc-review-photo-next {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, .12);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
}

.vvc-review-photo-prev {
    left: 10px;
}

.vvc-review-photo-next {
    right: 10px;
}


/* PHOTO PAGINATION */

.vvc-review-photo-pagination {
    position: absolute;
    left: 50%;
    bottom: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    transform: translateX(-50%);
}

.vvc-review-photo-pagination span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .6);
}

.vvc-review-photo-pagination span.is-active {
    width: 12px;
    border-radius: 2px;
    background: #fff;
}


/* REVIEW TEXT */

.vvc-review-content {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 14px 2px 0;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.vvc-review-content p {
    max-width: 100%;
    margin: 0;
    color: #222;
    font-size: 10px;
    line-height: 1.7;
    white-space: pre-line;
    word-break: keep-all;
}


/* MOBILE */

@media screen and (max-width: 1024px) {
    .shop-showcase {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .store-detail-card {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .shop-showcase {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .store-detail-card {
        width: 100%;
    }
    
    .shop-filter {
        display: none;
        z-index: 4000;
        width: 100%;
        transition: all 0s ease;
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.35);
        position: fixed;
        inset: 0;
        height: 100dvh;
        overscroll-behavior: contain;
    }
    .shop-filter-close-btn {
        display: flex;
    }
    .store-detail {
        gap: 10px;
        padding: 0;
        grid-template-columns: 1fr;
    }
    .store-detail-pic {
        margin: 0 auto;
        max-width: 100%;
        max-height: 1024;
    }
    .store-detail-card {
        max-width: 100%;
        max-height: 1024;
    }

    .store-detail-units-chart { gap:14px; }
    .store-detail-units-chart > img { width:38%; }
    .store-detail-unit-column { min-width:0; flex:1; }
    .store-size-compare-dialog { padding:18px; }


    .vvc-product-reviews {
        padding-top: 56px;
    }

    .vvc-product-reviews-header {
        padding-bottom: 18px;
    }

    .vvc-review-nav {
        font-size: 9px;
    }

    .vvc-review-count {
        font-size: 9px;
    }

    .vvc-review {
        padding: 28px 0 56px;
    }

    .vvc-review-meta {
        margin-bottom: 22px;
    }

    .vvc-review-avatar {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .vvc-review-photo-prev,
    .vvc-review-photo-next {
        width: 32px;
        height: 32px;
        opacity: 1;
    }

    .vvc-review-photo-prev {
        left: 10px;
    }

    .vvc-review-photo-next {
        right: 10px;
    }

    .vvc-review-content {
        padding-top: 20px;
    }

    .vvc-review-content p {
        font-size: 11px;
        line-height: 1.8;
    }
}
