
.cart-page {
    padding: 28px 16px 80px;
    background: #fff;
}

.cart-container {
    width: min(100%, 1200px);
    margin: 0 auto;
}

.cart-heading {
    padding: 30px 0 34px;
    text-align: center;
}

.cart-heading > span {
    display: block;
    margin-bottom: 8px;
    color: #ba607f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
}

.cart-heading h1 {
    margin: 0;
    color: #202822;
    font-size: 34px;
}

.cart-heading p {
    margin: 10px 0 0;
    color: #7a837c;
    font-size: 14px;
}

.cart-alert {
    margin: 0 0 18px;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 14px;
}

.cart-alert.success {
    border: 1px solid #b9dfc7;
    background: #f1faf4;
    color: #245d39;
}

.cart-alert.error {
    border: 1px solid #efb8b8;
    background: #fff4f4;
    color: #a33131;
}

.cart-empty {
    padding: 70px 20px;
    border: 1px solid #e5eae6;
    border-radius: 16px;
    background: #fafcfb;
    text-align: center;
}

.cart-empty strong {
    display: block;
    color: #29322b;
    font-size: 20px;
}

.cart-empty p {
    margin: 9px 0 22px;
    color: #7a837c;
}

.cart-empty a {
    display: inline-flex;
    padding: 12px 20px;
    border-radius: 10px;
    background: #315f45;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

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

.cart-items {
    border-top: 2px solid #355241;
}

.cart-items-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 4px;
    border-bottom: 1px solid #e6eae7;
}

.cart-items-head strong {
    color: #252f29;
    font-size: 16px;
}

.cart-clear {
    border: 0;
    background: none;
    color: #838b85;
    cursor: pointer;
    font-weight: 600;
}

.cart-clear:hover {
    color: #b34e73;
}

.cart-item {
    position: relative;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 20px;
    padding: 26px 6px;
    border-bottom: 1px solid #e6eae7;
}

.cart-item.soldout {
    background: #fafafa;
}

.cart-item-image {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff8fb 0%, #f4f6f4 100%);
    border: 1px solid #f1d6df;
    text-decoration: none;
}

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

.cart-item-image span {
    color: #7e8c82;
    font-weight: 800;
}

.cart-item-title-wrap {
    position: relative;
    margin-right: 36px;
    padding: 2px 0 0;
}

.cart-item-chip {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 11px;
    border-radius: 999px;
    background: #fff1f6;
    color: #bb5577;
    font-size: 12px;
    font-weight: 800;
}

.cart-item-info h2 {
    margin: 10px 0 0;
    font-size: 27px;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.cart-item-info h2 a {
    color: #212a23;
    text-decoration: none;
    box-shadow: inset 0 -10px 0 rgba(235, 164, 192, .35);
}

.cart-option {
    margin: 14px 0 0;
    color: #6f7971;
    font-size: 13px;
}

.cart-option span {
    color: #b65a79;
    font-weight: 700;
}

.cart-soldout {
    display: block;
    margin-top: 10px;
    color: #b23a3a;
    font-size: 13px;
}

.cart-item-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-top: 24px;
}

.cart-qty-form {
    display: flex;
    align-items: flex-end;
}

.cart-qty-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e8dce2;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff 0%, #fff8fb 100%);
    box-shadow: 0 8px 20px rgba(160, 90, 118, .08);
}

.cart-qty-label {
    color: #8c6b78;
    font-size: 12px;
    font-weight: 700;
}

.cart-qty-controls {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #d9dfe1;
    border-radius: 12px;
    background: #fff;
}

.cart-qty-controls button,
.cart-qty-controls input {
    height: 46px;
    border: 0;
    background: #fff;
}

.cart-qty-controls button {
    width: 44px;
    padding: 0;
    cursor: pointer;
    color: #3a453e;
    font-size: 22px;
    font-weight: 500;
}

.cart-qty-controls button:hover {
    background: #fff3f7;
    color: #c15178;
}

.cart-qty-controls input {
    width: 62px;
    padding: 0;
    text-align: center;
    color: #1f2923;
    font-size: 18px;
    font-weight: 700;
    border-left: 1px solid #edf0f1;
    border-right: 1px solid #edf0f1;
}

.cart-qty-save {
    height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #cf6d91 0%, #b8567a 100%);
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.01em;
    cursor: pointer;
}

.cart-qty-save:hover {
    filter: brightness(.98);
}

.cart-price-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
    min-width: 150px;
}

.cart-price-box span {
    color: #7c827d;
    font-size: 12px;
    font-weight: 700;
}

.cart-line-total {
    color: #1d5738;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -0.03em;
}

.cart-remove {
    width: 36px;
    height: 36px;
    border: 0;
    background: none;
    color: #929a94;
    font-size: 28px;
    cursor: pointer;
}

.cart-remove:hover {
    color: #b23a3a;
}

.cart-summary {
    position: sticky;
    top: 20px;
    padding: 28px 24px;
    border: 1px solid #dfe6e1;
    border-radius: 18px;
    background: linear-gradient(180deg, #fcfdfc 0%, #f7faf8 100%);
}

.cart-summary h2 {
    margin: 0 0 22px;
    color: #29322b;
    font-size: 19px;
}

.cart-summary dl {
    margin: 0;
}

.cart-summary dl > div {
    display: flex;
    justify-content: space-between;
    margin: 11px 0;
    color: #677169;
    font-size: 14px;
}

.cart-summary dd {
    margin: 0;
    color: #303a32;
    font-weight: 700;
}

.cart-total {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 19px;
    padding-top: 20px;
    border-top: 1px solid #dfe6e1;
}

.cart-total span {
    font-weight: 700;
}

.cart-total strong {
    color: #1f5f3b;
    font-size: 24px;
}

.cart-reward {
    display: flex;
    justify-content: space-between;
    margin: 15px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #eef7f1;
    color: #57705f;
    font-size: 12px;
}

.cart-reward strong {
    color: #315f45;
}

.cart-order-button {
    width: 100%;
    height: 54px;
    margin-top: 22px;
    border: 0;
    border-radius: 12px;
    background: #b8c2bb;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.cart-continue {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    margin-top: 10px;
    border: 1px solid #cfd8d1;
    border-radius: 12px;
    color: #455149;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.cart-continue:hover {
    background: #f2f7f4;
}

.cart-summary small {
    display: block;
    margin-top: 14px;
    color: #8a928c;
    font-size: 11px;
    line-height: 1.6;
}

.shop-cart-link {
    position: relative;
}

.shop-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: 3px;
    padding: 0 5px;
    border-radius: 999px;
    background: #c35f84;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

/* product detail buy area */
.product-detail-top {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
    gap: 34px;
    align-items: start;
    margin-bottom: 54px;
}

.product-buy-panel {
    padding: 24px 24px 26px;
    border: 1px solid #ece3e7;
    border-radius: 22px;
    background: linear-gradient(180deg, #fff 0%, #fff9fb 100%);
    box-shadow: 0 14px 36px rgba(169, 94, 126, .08);
}

.product-detail-category {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 13px;
    border-radius: 999px;
    background: #fff1f6;
    color: #bb5577;
    font-size: 12px;
    font-weight: 800;
}

.product-buy-panel h1 {
    margin: 14px 0 12px;
    color: #1f2722;
    font-size: 40px;
    line-height: 1.28;
    letter-spacing: -0.03em;
}

.product-buy-panel h1::after {
    content: '';
    display: block;
    width: 92px;
    height: 6px;
    margin-top: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, #de759b 0%, #f4bdd1 100%);
}

.product-short-description {
    margin: 0 0 20px;
    color: #667169;
    line-height: 1.8;
}

.product-detail-price {
    margin: 0 0 18px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #eee5e8;
}

.product-detail-price > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0;
}

.product-detail-price span {
    color: #7d857f;
    font-size: 13px;
    font-weight: 700;
}

.product-detail-price del {
    color: #999fa0;
    font-weight: 700;
}

.product-detail-price em {
    color: #c1587d;
    font-style: normal;
    font-weight: 800;
}

.product-detail-price .payment-price strong {
    color: #1d5738;
    font-size: 33px;
    letter-spacing: -0.03em;
}

.product-detail-info {
    margin: 0;
    padding: 18px 4px 16px;
    border-top: 1px solid #eceeef;
    border-bottom: 1px solid #eceeef;
}

.product-detail-info > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 10px 0;
}

.product-detail-info dt {
    color: #7b8380;
}

.product-detail-info dd {
    margin: 0;
    color: #25302a;
    font-weight: 700;
}

.product-option-area {
    margin-top: 22px;
}

.product-option-area label {
    display: block;
    margin-bottom: 9px;
    color: #6f7772;
    font-size: 13px;
    font-weight: 800;
}

.product-option-area select {
    width: 100%;
    height: 52px;
    padding: 0 14px;
    border: 1px solid #d7dfe0;
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
}

.product-cart-form {
    margin-top: 22px;
}

.product-cart-quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 16px;
    background: #fff4f8;
    border: 1px solid #efd5df;
}

.product-cart-quantity > span {
    color: #8a6675;
    font-size: 13px;
    font-weight: 800;
}

.product-cart-quantity > div {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #d9dfe1;
    border-radius: 12px;
    background: #fff;
}

.product-cart-quantity button,
.product-cart-quantity input {
    height: 48px;
    border: 0;
    background: #fff;
}

.product-cart-quantity button {
    width: 44px;
    font-size: 22px;
    cursor: pointer;
}

.product-cart-quantity button:hover {
    background: #fff1f6;
    color: #c15178;
}

.product-cart-quantity input {
    width: 88px;
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    border-left: 1px solid #edf0f1;
    border-right: 1px solid #edf0f1;
}

.product-cart-submit,
.product-cart-view,
.product-purchase-placeholder button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 54px;
    margin-top: 14px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
}

.product-cart-submit {
    border: 0;
    background: linear-gradient(135deg, #cf6d91 0%, #b8567a 100%);
    color: #fff;
    cursor: pointer;
}

.product-cart-view {
    border: 1px solid #ebd5df;
    background: #fff;
    color: #ab4b6f;
}

.product-purchase-placeholder button {
    border: 0;
    background: #bbc3be;
    color: #fff;
}

@media (max-width: 1024px) {
    .cart-item-info h2 {
        font-size: 22px;
    }

    .cart-line-total {
        font-size: 28px;
    }

    .product-detail-top {
        grid-template-columns: 1fr;
    }
}

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

    .cart-summary {
        position: static;
    }
}

@media (max-width: 720px) {
    .cart-item {
        grid-template-columns: 88px minmax(0, 1fr) auto;
        gap: 12px;
        padding: 18px 2px;
    }

    .cart-item-info h2 {
        font-size: 18px;
    }

    .cart-item-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .cart-price-box {
        align-items: flex-start;
        min-width: 0;
    }

    .cart-line-total {
        font-size: 26px;
    }

    .cart-qty-box {
        flex-wrap: wrap;
    }
}

@media (max-width: 620px) {
    .cart-page {
        padding: 18px 12px 55px;
    }

    .cart-heading {
        padding: 24px 0;
    }

    .cart-heading h1 {
        font-size: 27px;
    }

    .cart-item {
        grid-template-columns: 1fr;
        padding: 18px 0;
    }

    .cart-item-image {
        width: 108px;
    }

    .cart-item-title-wrap {
        margin-right: 0;
    }

    .cart-remove {
        position: absolute;
        top: 14px;
        right: 0;
    }

    .cart-qty-controls {
        width: 100%;
    }

    .cart-qty-controls input {
        flex: 1;
        width: auto;
    }

    .product-buy-panel {
        padding: 20px 18px 22px;
    }

    .product-buy-panel h1 {
        font-size: 27px;
    }

    .product-detail-price .payment-price strong {
        font-size: 28px;
    }

    .product-cart-quantity {
        flex-direction: column;
        align-items: stretch;
    }

    .product-cart-quantity > div {
        width: 100%;
    }

    .product-cart-quantity input {
        flex: 1;
        width: auto;
    }
}

.product-buy-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.product-buy-buttons .product-cart-submit,.product-buy-buttons .product-buy-now{margin-top:0}
.product-buy-now{display:inline-flex;align-items:center;justify-content:center;width:100%;height:54px;border:0;border-radius:14px;background:linear-gradient(135deg,#315f45,#244c36);color:#fff;font-size:15px;font-weight:800;cursor:pointer}
.product-buy-now:hover{filter:brightness(.98)}
.product-buy-error{margin-top:15px;padding:12px 14px;border:1px solid #efb8b8;border-radius:10px;background:#fff4f4;color:#a33131;font-size:13px}
@media(max-width:620px){.product-buy-buttons{grid-template-columns:1fr}}
