@charset "utf-8";

/* HUNHUNHAN cart page */
.hh-cart-page {
    --hh-cart-line: #dfe4e1;
    --hh-cart-soft: #f4f6f4;
    --hh-cart-warm: #fbf7f3;
    --hh-cart-coral: #ff6248;
    color: var(--hh-ink);
    background: #fff;
}

.hh-cart-page #wrap { min-width: 0; padding: 0; background: #fff; }
.hh-cart-main { display: block; min-height: 60vh; }

.hh-cart-hero {
    padding: 72px 0 50px;
    border-bottom: 1px solid var(--hh-cart-line);
    background: #fff;
}
.hh-cart-hero__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 56px;
}
.hh-cart-hero__copy > p,
.cartx-section-head p,
.cartx-summary-eyebrow,
.cartx-empty > p {
    margin: 0;
    color: var(--hh-green);
    font-size: 10px;
    line-height: 1;
    font-weight: 760;
    letter-spacing: .14em;
}
.hh-cart-hero__copy h1 {
    margin: 13px 0 12px;
    color: var(--hh-ink);
    font-size: clamp(38px, 3.2vw, 52px);
    line-height: 1.05;
    font-weight: 680;
    letter-spacing: -.055em;
}
.hh-cart-hero__copy > span {
    color: #5d6661;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 440;
    letter-spacing: -.015em;
}

.hh-cart-steps {
    width: min(100%, 430px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
}
.hh-cart-steps li {
    position: relative;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #929995;
    font-size: 13px;
    font-weight: 470;
    white-space: nowrap;
}
.hh-cart-steps li:not(:last-child)::after {
    content: "";
    width: 24px;
    height: 1px;
    position: absolute;
    top: 50%;
    right: 11px;
    background: #dce1de;
}
.hh-cart-steps b {
    width: 32px;
    height: 32px;
    display: grid;
    flex: 0 0 32px;
    place-items: center;
    border: 1px solid #dce1de;
    border-radius: 50%;
    background: #fff;
    font-size: 10px;
    font-weight: 650;
}
.hh-cart-steps .is-active { color: var(--hh-green); font-weight: 620; }
.hh-cart-steps .is-active b { color: #fff; border-color: var(--hh-green); background: var(--hh-green); }

.hh-cart-content { padding: 62px 0 104px; background: #fff; }
.cartx-wrap { position: relative; overflow: visible; }
.cartx-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    align-items: stretch;
    gap: clamp(34px, 4vw, 58px);
    overflow: visible;
}
.cartx-main,
.cartx-side { min-width: 0; }
.cartx-main { align-self: start; }
.cartx-side { position: relative; align-self: stretch; overflow: visible; }
.cartx-section { margin: 0; padding: 0; border: 0; background: #fff; }
.cartx-section-head {
    min-height: 67px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--hh-ink);
}
.cartx-sec-title {
    margin: 9px 0 0;
    color: var(--hh-ink);
    font-size: 26px;
    line-height: 1.25;
    font-weight: 650;
    letter-spacing: -.04em;
}
.cartx-sec-title small {
    margin-left: 5px;
    color: var(--hh-green);
    font-size: 15px;
    font-weight: 620;
}
.cartx-section-head > span {
    max-width: 280px;
    padding-top: 24px;
    color: #747d78;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 430;
    text-align: right;
}

.cartx-topbar {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 2px;
    border-bottom: 1px solid var(--hh-cart-line);
}
.cartx-top-left,
.cartx-top-right { display: flex; align-items: center; gap: 12px; }
.cartx-top-right { color: #7a827e; font-size: 12px; font-weight: 430; }
.cartx-list { display: grid; gap: 14px; padding-top: 18px; }
.cartx-item {
    padding: 20px;
    border: 1px solid var(--hh-cart-line);
    border-radius: 14px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.cartx-item:hover { border-color: #bdc7c2; box-shadow: 0 12px 30px rgba(22, 34, 29, .05); }
.cartx-item.is-invalid { border-color: #eadedb; background: #fbfaf9; }
.cartx-row {
    display: grid;
    grid-template-columns: 22px 132px minmax(0, 1fr) 145px;
    align-items: start;
    gap: 18px;
}
.cartx-checksolo { align-self: start; margin-top: 6px; }
.cartx-thumb {
    width: 132px;
    height: 132px;
    overflow: hidden;
    border-radius: 10px;
    background: #f6f4f0;
}
.cartx-thumb img { width: 100%; height: 100%; display: block; object-fit: contain; }
.cartx-info { min-width: 0; padding-top: 2px; }
.cartx-brand {
    margin: 0 0 8px;
    color: var(--hh-green);
    font-size: 9px;
    line-height: 1;
    font-weight: 720;
    letter-spacing: .13em;
}
.cartx-name { margin: 0 0 8px; }
.cartx-name a {
    display: -webkit-box;
    overflow: hidden;
    color: var(--hh-ink);
    font-size: 17px;
    line-height: 1.45;
    font-weight: 600;
    letter-spacing: -.028em;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.cartx-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; color: #68716c; font-size: 13px; line-height: 1.5; }
.cartx-meta span + span::before { content: "·"; margin-right: 12px; color: #a0a7a3; }
.cartx-optionbox { margin-top: 12px; padding: 10px 12px; border: 1px solid #ecefed; border-radius: 8px; background: #f7f8f7; }
.cartx-optionline { display: flex; justify-content: space-between; gap: 14px; padding: 2px 0; color: #5d6661; font-size: 12px; line-height: 1.55; }
.cartx-optionline .value { flex: 0 0 auto; color: #303733; font-weight: 560; white-space: nowrap; }
.cartx-badge-invalid { display: inline-block; margin-top: 10px; padding: 5px 8px; border-radius: 999px; color: #a84432; background: #f9e9e5; font-size: 11px; font-weight: 600; }
.cartx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 14px; }
.cartx-pricebox { padding-top: 4px; text-align: right; }
.cartx-pricebox > span { display: block; margin-bottom: 7px; color: #8a918d; font-size: 11px; font-weight: 430; }
.cartx-price { color: var(--hh-ink); font-size: 21px; line-height: 1.2; font-weight: 680; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }

.cartx-btn {
    min-width: 0;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border: 1px solid #ced5d1;
    border-radius: 7px;
    color: #444c48;
    background: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}
.cartx-btn:hover { color: var(--hh-green); border-color: #7d9a92; }
.cartx-btn-blue { color: var(--hh-green); border-color: #9eb2ac; }
.cartx-btn-red { color: #7b817e; border-color: #d5dad7; background: #fff; }
.cartx-btn-dark { color: #fff; border-color: var(--hh-green); background: var(--hh-green); }
.hh-page .cartx-btn-dark { color: #fff; }
.cartx-coupon-chip { width: auto; color: var(--hh-cart-coral); border-color: #f1b8ae; background: #fff9f7; white-space: nowrap; }
.cartx-coupon-chip.is-owned,
.cartx-coupon-chip.is-download,
.cartx-coupon-chip.is-guest { color: var(--hh-cart-coral); border-color: #f1b8ae; background: #fff9f7; }

.cartx-checkui { display: inline-flex; align-items: center; gap: 8px; color: #3f4743; font-size: 13px; font-weight: 520; cursor: pointer; user-select: none; }
.cartx-chk-item,
#cartx_chk_all { width: 1px !important; height: 1px !important; position: absolute !important; left: -9999px !important; opacity: 0 !important; }
.cartx-checkui .box {
    width: 20px;
    height: 20px;
    display: inline-block;
    position: relative;
    flex: 0 0 20px;
    border: 1.5px solid #9da6a1;
    border-radius: 5px;
    background: #fff;
    box-sizing: border-box;
}
.cartx-chk-item:checked + .cartx-checkui .box,
#cartx_chk_all:checked + .cartx-checkui .box { border-color: var(--hh-green); background: var(--hh-green); }
.cartx-chk-item:checked + .cartx-checkui .box::after,
#cartx_chk_all:checked + .cartx-checkui .box::after {
    content: "";
    width: 5px;
    height: 9px;
    position: absolute;
    top: 3px;
    left: 6px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cartx-summary {
    position: sticky;
    top: calc(var(--hh-storefront-header-height, 72px) + 24px);
    padding: 27px;
    border: 1px solid var(--hh-cart-line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 20px 48px rgba(20, 31, 26, .07);
}
.cartx-summary-title { margin-top: 9px; color: var(--hh-ink); font-size: 25px; line-height: 1.2; font-weight: 650; letter-spacing: -.04em; }
.cartx-summary-sub { display: flex; align-items: center; gap: 5px; margin-top: 9px; color: #727a76; font-size: 12px; line-height: 1.5; }
.cartx-summary-sub strong { color: #3c4540; font-weight: 620; }
.cartx-summary-list { display: grid; gap: 12px; margin: 24px 0 0; padding: 21px 0; border-top: 1px solid var(--hh-cart-line); border-bottom: 1px solid var(--hh-cart-line); list-style: none; }
.cartx-summary-grid li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; color: #545d58; font-size: 14px; line-height: 1.5; }
.cartx-summary-grid .value { color: var(--hh-ink); font-size: 14px; font-weight: 590; text-align: right; font-variant-numeric: tabular-nums; }
.cartx-summary-total { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 16px; padding-top: 22px; }
.cartx-summary-total span { color: var(--hh-ink); font-size: 15px; font-weight: 600; }
.cartx-summary-total strong { color: var(--hh-ink); font-size: 29px; line-height: 1; font-weight: 700; letter-spacing: -.04em; text-align: right; font-variant-numeric: tabular-nums; }
.cartx-coupon-notice { display: flex; align-items: flex-start; gap: 11px; margin-top: 22px; padding: 14px; border: 1px solid #f0d4cc; border-radius: 10px; background: var(--hh-cart-warm); }
.cartx-coupon-notice__icon { width: 30px; height: 30px; display: grid; flex: 0 0 30px; place-items: center; border-radius: 50%; color: var(--hh-cart-coral); background: #fff; }
.cartx-coupon-notice__icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.cartx-coupon-notice p { min-width: 0; margin: 0; }
.cartx-coupon-notice strong { display: block; color: #2c3430; font-size: 12px; line-height: 1.45; font-weight: 620; }
.cartx-coupon-notice p > span { display: block; margin-top: 3px; color: #777f7b; font-size: 10.5px; line-height: 1.5; font-weight: 420; }
.cartx-bundle-notice { margin-top: 10px; padding: 14px; border: 1px solid #bfd8ce; border-radius: 10px; background: #edf6f2; }
.cartx-bundle-notice strong { display: block; color: #155a49; font-size: 12px; line-height: 1.45; font-weight: 680; }
.cartx-bundle-notice span { display: block; margin-top: 3px; color: #61706a; font-size: 10.5px; line-height: 1.5; }
.cartx-summary-actions { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 9px; margin-top: 18px; }
.cartx-summary-actions .cartx-btn { width: 100%; height: 52px; }
.cartx-btn-order {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    border: 1px solid var(--hh-green);
    border-radius: 8px;
    color: #fff;
    background: var(--hh-green);
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
}
.hh-page .cartx-btn-order { color: #fff; font-weight: 650; }
.hh-page .cartx-btn-order:hover { color: #fff; background: #173e35; }
.cartx-note { margin-top: 11px; color: #8a918d; font-size: 10.5px; line-height: 1.55; font-weight: 410; }

.cartx-empty {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    border: 1px solid var(--hh-cart-line);
    border-radius: 16px;
    background: #fbfcfb;
    text-align: center;
}
.cartx-empty__icon { width: 68px; height: 68px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 50%; color: var(--hh-green); background: #edf3f0; }
.cartx-empty__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.cartx-empty h2 { margin: 13px 0 11px; color: var(--hh-ink); font-size: 28px; line-height: 1.3; font-weight: 640; letter-spacing: -.04em; }
.cartx-empty > span:not(.cartx-empty__icon) { max-width: 430px; color: #69716d; font-size: 14px; line-height: 1.65; font-weight: 430; }
.cartx-empty__actions { display: flex; align-items: center; gap: 17px; margin-top: 27px; }
.cartx-empty__primary { min-width: 150px; height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border-radius: 8px; color: #fff; background: var(--hh-green); font-size: 13px; font-weight: 620; text-decoration: none; }
.cartx-empty__secondary { color: #3e4742; font-size: 12px; font-weight: 540; text-decoration: none; }
.cartx-empty__secondary b { margin-left: 3px; color: var(--hh-green); font-weight: 500; }

.hh-cart-assurance { border-top: 1px solid var(--hh-cart-line); border-bottom: 1px solid var(--hh-cart-line); background: #fafbfa; }
.hh-cart-assurance__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.hh-cart-assurance__grid > div { min-height: 112px; display: flex; align-items: center; gap: 14px; padding: 24px 30px; }
.hh-cart-assurance__grid > div + div { border-left: 1px solid var(--hh-cart-line); }
.hh-cart-assurance__grid > div > span { width: 38px; height: 38px; display: grid; flex: 0 0 38px; place-items: center; border-radius: 50%; color: var(--hh-green); background: #edf3f0; }
.hh-cart-assurance svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hh-cart-assurance p { min-width: 0; margin: 0; }
.hh-cart-assurance strong { display: block; color: var(--hh-ink); font-size: 13px; line-height: 1.45; font-weight: 620; }
.hh-cart-assurance small { display: block; margin-top: 3px; color: #747d78; font-size: 11px; line-height: 1.45; font-weight: 420; }

.hh-cart-mobile-checkout { display: none; }

/* option editor */
.cartx-layer { display: none; position: fixed; z-index: 11000; inset: 0; }
.cartx-layer.is-open { display: block; }
.cartx-layer-dim { position: absolute; inset: 0; background: rgba(8, 13, 11, .46); }
.cartx-layer-dialog { width: min(92vw, 600px); max-height: 88dvh; position: absolute; top: 50%; left: 50%; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 24px 70px rgba(12, 20, 16, .22); transform: translate(-50%, -50%); }
.cartx-layer-head { min-height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; border-bottom: 1px solid var(--hh-cart-line); }
.cartx-layer-title { color: var(--hh-ink); font-size: 19px; font-weight: 640; letter-spacing: -.03em; }
.cartx-layer-close { width: 36px; height: 36px; padding: 0; border: 0; color: #535c57; background: transparent; font-size: 27px; line-height: 1; cursor: pointer; }
.cartx-layer-body { max-height: calc(88dvh - 68px); padding: 22px; overflow: auto; }
.cartx-form-row { margin-bottom: 17px; }
.cartx-form-row label { display: block; margin-bottom: 8px; color: var(--hh-ink); font-size: 13px; font-weight: 600; }
.cartx-form-row select,
.cartx-form-row input[type="text"] { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #ced5d1; border-radius: 8px; color: var(--hh-ink); background: #fff; box-sizing: border-box; font: inherit; font-size: 13px; }
.cartx-form-help { margin-top: 6px; color: #7b837f; font-size: 11px; }
.cartx-opt-list { display: grid; gap: 9px; }
.cartx-opt-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px; border: 1px solid var(--hh-cart-line); border-radius: 9px; }
.cartx-opt-left { min-width: 0; display: flex; align-items: center; gap: 9px; }
.cartx-opt-left label { margin: 0; color: #3f4743; font-size: 13px; font-weight: 500; }
.cartx-opt-qty { width: 70px !important; text-align: center; }
.cartx-form-btns { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.cartx-mini-check { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.cartx-mini-check input { position: absolute; opacity: 0; pointer-events: none; }
.cartx-mini-check .box { width: 18px; height: 18px; display: inline-block; position: relative; border: 1.5px solid #99a29d; border-radius: 4px; background: #fff; box-sizing: border-box; }
.cartx-mini-check input:checked + .box { border-color: var(--hh-green); background: var(--hh-green); }
.cartx-mini-check input:checked + .box::after { content: ""; width: 4px; height: 8px; position: absolute; top: 2px; left: 5px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

@media (max-width: 1120px) {
    .cartx-grid { grid-template-columns: minmax(0, 1fr) 350px; gap: 28px; }
    .cartx-row { grid-template-columns: 22px 112px minmax(0, 1fr) 126px; gap: 15px; }
    .cartx-thumb { width: 112px; height: 112px; }
    .cartx-summary { padding: 23px; }
}

@media (max-width: 920px) {
    .hh-cart-hero { padding: 46px 0 36px; }
    .hh-cart-hero__inner { align-items: flex-start; flex-direction: column; gap: 30px; }
    .hh-cart-steps { width: 100%; max-width: 520px; }
    .hh-cart-content { padding: 40px 0 70px; }
    .cartx-grid { grid-template-columns: 1fr; gap: 34px; }
    .cartx-summary { position: static; top: auto; box-shadow: none; }
    .hh-cart-assurance__grid > div { padding-inline: 20px; }
    .hh-cart-page.hh-has-mobile-dock { padding-bottom: calc(var(--hh-mobile-dock-height, 66px) + var(--hh-mobile-dock-safe, 0px) + 82px); }
    .hh-cart-mobile-checkout {
        min-height: 78px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(140px, 42%);
        align-items: center;
        gap: 14px;
        position: fixed;
        z-index: 10005;
        right: 0;
        bottom: calc(var(--hh-mobile-dock-height, 66px) + var(--hh-mobile-dock-safe, 0px));
        left: 0;
        padding: 10px 18px;
        border-top: 1px solid var(--hh-cart-line);
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 -10px 28px rgba(20, 31, 26, .08);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }
    .hh-cart-mobile-checkout > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; color: #757e79; font-size: 10px; font-weight: 470; }
    .hh-cart-mobile-checkout strong { overflow: hidden; color: var(--hh-ink); font-size: 21px; line-height: 1.2; font-weight: 700; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
    .hh-cart-mobile-checkout .cartx-btn-order { height: 52px; }
    .cartx-summary-actions .cartx-btn-order { display: none; }
    .cartx-summary-actions { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .hh-cart-hero__copy h1 { font-size: 38px; }
    .hh-cart-hero__copy > span { font-size: 13px; }
    .hh-cart-steps { gap: 5px; }
    .hh-cart-steps li { gap: 7px; font-size: 11px; }
    .hh-cart-steps li:not(:last-child)::after { width: 12px; right: 4px; }
    .hh-cart-steps b { width: 28px; height: 28px; flex-basis: 28px; font-size: 9px; }
    .cartx-section-head { display: block; }
    .cartx-section-head > span { max-width: none; display: block; padding-top: 10px; text-align: left; }
    .cartx-sec-title { font-size: 23px; }
    .cartx-topbar { align-items: flex-start; flex-direction: column; padding-block: 14px; }
    .cartx-top-right { padding-left: 1px; }
    .cartx-item { padding: 15px; }
    .cartx-row { grid-template-columns: 20px 88px minmax(0, 1fr); gap: 13px; }
    .cartx-thumb { width: 88px; height: 88px; }
    .cartx-info { padding-top: 0; }
    .cartx-brand { margin-bottom: 6px; font-size: 8px; }
    .cartx-name a { font-size: 15px; line-height: 1.42; }
    .cartx-meta { gap: 2px 8px; font-size: 11.5px; }
    .cartx-meta span + span::before { margin-right: 8px; }
    .cartx-optionbox { grid-column: 1 / -1; }
    .cartx-actions { gap: 6px; }
    .cartx-actions .cartx-btn { height: 32px; padding-inline: 9px; font-size: 11px; }
    .cartx-coupon-chip { max-width: 100%; white-space: normal; text-align: center; }
    .cartx-pricebox { grid-column: 2 / 4; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 2px; padding-top: 13px; border-top: 1px solid #edf0ee; text-align: left; }
    .cartx-pricebox > span { margin: 0; }
    .cartx-price { font-size: 19px; }
    .cartx-summary { padding: 22px 19px; }
    .cartx-summary-title { font-size: 23px; }
    .cartx-summary-total strong { font-size: 26px; }
    .cartx-empty { min-height: 380px; padding: 52px 18px; }
    .cartx-empty h2 { font-size: 24px; }
    .cartx-empty > span:not(.cartx-empty__icon) { font-size: 13px; }
    .cartx-empty__actions { align-items: stretch; flex-direction: column; gap: 13px; }
    .hh-cart-assurance__grid { grid-template-columns: 1fr; }
    .hh-cart-assurance__grid > div { min-height: 91px; padding: 18px 6px; }
    .hh-cart-assurance__grid > div + div { border-top: 1px solid var(--hh-cart-line); border-left: 0; }
    .hh-cart-mobile-checkout { padding-inline: 14px; }
}

@media (max-width: 390px) {
    .hh-cart-steps li span { font-size: 10px; }
    .cartx-row { grid-template-columns: 20px 78px minmax(0, 1fr); gap: 10px; }
    .cartx-thumb { width: 78px; height: 78px; }
    .hh-cart-mobile-checkout { grid-template-columns: minmax(0, 1fr) 132px; gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    .cartx-item { transition-duration: .01ms !important; }
}
