img {
    max-width: 100%
}

a {
    color: inherit
}

.shop-site-inner,
.shop-site-main {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto
}

.shop-site-header {
    border-bottom: 1px solid #e8ebed;
    background: #fff
}

.shop-site-header .shop-site-inner {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between
}

.shop-site-name {
    font-size: 20px;
    font-weight: 800;
    text-decoration: none
}

.shop-cart-status {
    padding: 9px 14px;
    border-radius: 20px;
    background: #f0f2f3;
    color: #7a8287;
    font-size: 13px
}

.shop-site-main {
    min-height: 70vh;
    padding: 45px 0 70px
}

.shop-hero {
    padding: 55px 25px;
    border-radius: 18px;
    background: #f6f7f8;
    text-align: center
}

.shop-hero p {
    margin: 0 0 8px;
    color: #7a8287;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em
}

.shop-hero h1 {
    margin: 0;
    font-size: clamp(28px, 5vw, 48px)
}

.shop-products {
    margin-top: 45px
}

.shop-section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 13px;
    border-bottom: 1px solid #e1e5e7
}

.shop-section-title h2 {
    margin: 0
}

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

.shop-product-card a {
    display: block;
    text-decoration: none
}

.shop-product-image {
    display: flex;
    aspect-ratio: 1/1;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background: #f0f2f3;
    color: #92999e;
    font-size: 12px
}

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

.shop-product-text {
    padding: 13px 3px
}

.shop-product-text h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.55
}

.shop-price {
    margin: 9px 0 0;
    font-size: 18px;
    font-weight: 800
}

.shop-price small,
.shop-detail-price small {
    font-size: 11px;
    font-weight: 400
}

.shop-stock {
    margin: 7px 0 0;
    color: #28794b;
    font-size: 12px;
    font-weight: 700
}

.shop-stock.soldout {
    color: #a54842
}

.shop-empty {
    padding: 50px;
    text-align: center;
    background: #f7f8f9;
    border-radius: 12px;
    color: #747c81
}

.shop-breadcrumb {
    display: flex;
    gap: 9px;
    margin-bottom: 28px;
    color: #70777c;
    font-size: 13px
}

.shop-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
    gap: 55px
}

.shop-main-image {
    display: flex;
    aspect-ratio: 4/3;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 14px;
    background: #f0f2f3;
    color: #92999e
}

.shop-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.shop-thumbnails {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 13px
}

.shop-thumb {
    aspect-ratio: 1/1;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #f0f2f3;
    cursor: pointer
}

.shop-thumb.active {
    border-color: #222
}

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

.shop-detail-info h1 {
    margin: 0;
    font-size: clamp(25px, 4vw, 38px)
}

.shop-code {
    color: #777f84;
    font-size: 12px
}

.shop-detail-price {
    margin: 20px 0 0;
    font-size: 29px;
    font-weight: 800
}

.shop-description {
    margin-top: 30px;
    padding-top: 27px;
    border-top: 1px solid #e1e5e7;
    line-height: 2
}

.shop-buy-area {
    margin-top: 35px;
    padding: 22px;
    border-radius: 12px;
    background: #f6f7f8
}

.shop-buy-area label {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px
}

.shop-buy-area select {
    padding: 8px
}

.shop-buy-area button {
    width: 100%;
    padding: 15px;
    border: 0;
    border-radius: 7px;
    background: #b9c0c4;
    color: #fff;
    font-weight: 800
}

.shop-site-footer {
    padding: 30px 20px;
    border-top: 1px solid #e8ebed;
    text-align: center;
    color: #7a8287;
    font-size: 12px
}

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

    .shop-detail {
        grid-template-columns: 1fr
    }
}

@media(max-width:650px) {

    .shop-site-inner,
    .shop-site-main {
        width: min(100% - 28px, 1180px)
    }

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

    .shop-thumbnails {
        grid-template-columns: repeat(5, minmax(0, 1fr))
    }

}

.shop-cms-edit {
    display: inline-block;
    margin-top: 10px;
    padding: 7px 10px;
    border-radius: 5px;
    background: #248bd2;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer
}

.shop-product-contents-section {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 1.5em;
}

.shop-color-form {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 97;
    margin: 0
}

.shop-color-picker {
    position: relative;
    display: block;
    width: 24px;
    height: 24px;
    overflow: hidden;
    cursor: pointer
}

.shop-color-picker img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain
}

.shop-color-picker input[type=color] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer
}

.shop-content-buttons-clear {
    clear: both
}

.shop-buy-area button:not(:disabled) {
    background: #168ad7;
    cursor: pointer
}

.shop-cart-link {
    display: block;
    margin-top: 13px;
    color: #168ad7;
    text-align: center;
    text-decoration: underline
}

.shop-cart-page>h1 {
    margin: 24px 0
}

.shop-cart-message {
    padding: 12px 16px;
    border-radius: 6px;
    background: #e8f5ec;
    color: #176b34
}

.shop-cart-message.is-error {
    background: #fff0f0;
    color: #a52d2d
}

.shop-cart-items {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.shop-cart-item {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 100px 120px auto;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border: 1px solid #e1e5e7;
    border-radius: 10px;
    background: #fff
}

.shop-cart-image {
    display: flex;
    aspect-ratio: 1/1;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f2f3
}

.shop-cart-image img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.shop-cart-product h2 {
    margin: 0 0 8px;
    font-size: 18px
}

.shop-cart-product p {
    margin: 3px 0;
    color: #666
}

.shop-cart-quantity {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px
}

.shop-cart-quantity input {
    width: 80px;
    padding: 8px
}

.shop-cart-subtotal {
    text-align: right
}

.shop-cart-remove,
.shop-cart-update {
    padding: 8px 13px;
    border: 1px solid #bbb;
    border-radius: 5px;
    background: #fff;
    color: #333;
    cursor: pointer
}

.shop-cart-remove {
    color: #b42318
}

.shop-cart-update {
    display: block;
    margin: 18px 0 0 auto
}

.shop-cart-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px 20px;
    margin: 30px 0 0 auto;
    max-width: 420px;
    padding: 24px;
    border-radius: 10px;
    background: #f6f7f8;
    text-align: right
}

.shop-cart-summary span {
    margin: 0
}

.shop-cart-summary strong {
    font-size: 22px
}

.shop-cart-summary small {
    grid-column: 2
}

.shop-cart-summary form,
.shop-cart-summary>button {
    grid-column: 1/-1
}

.shop-cart-summary button {
    width: 100%;
    margin-top: 8px;
    padding: 14px;
    border: 0;
    border-radius: 6px;
    background: #b9c0c4;
    color: #fff;
    font-weight: 700
}

.shop-cart-summary button:not(:disabled) {
    background: #168ad7;
    cursor: pointer
}

.shop-cart-back a,
.shop-complete-page a {
    color: #168ad7;
    text-decoration: underline
}

.shop-complete-page {
    min-height: 420px;
    padding-top: 50px;
    text-align: center
}

.shop-complete-page h1 {
    margin-bottom: 25px
}

.shop-complete-page p {
    margin: 13px 0
}

@media(max-width:760px) {
    .shop-cart-item {
        grid-template-columns: 85px minmax(0, 1fr);
        gap: 12px
    }

    .shop-cart-quantity,
    .shop-cart-subtotal,
    .shop-cart-remove {
        grid-column: 2
    }

    .shop-cart-subtotal {
        text-align: left
    }

    .shop-cart-update {
        width: 100%
    }

    .shop-cart-summary {
        max-width: none
    }
}

.centerBox button{
    width: 200px;
}