/* Glow Beauty cart — scoped to body.shop-tpl-glow_beauty only */
body.shop-tpl-glow_beauty.shop-body-premium {
    margin: 0;
    font-family: var(--gb-font, "DM Sans", system-ui, sans-serif);
    background: var(--store-bg, #fff9f8);
    color: var(--store-text, #4a3933);
    -webkit-font-smoothing: antialiased;
    --gb-font: var(--store-font, "DM Sans", system-ui, sans-serif);
    --gb-heading: var(--store-heading-font, "Cormorant Garamond", Georgia, serif);
    --gb-blush: color-mix(in srgb, var(--store-primary, #c08497) 14%, var(--store-bg, #fff9f8) 86%);
    --gb-rose-soft: color-mix(in srgb, var(--store-primary, #c08497) 22%, transparent);
    --gb-surface: color-mix(in srgb, var(--store-card-bg, #fff) 92%, var(--store-bg, #fff9f8) 8%);
    --gb-border: color-mix(in srgb, var(--store-primary, #c08497) 18%, var(--store-text, #4a3933) 8%);
    --gb-border-soft: color-mix(in srgb, var(--store-text, #4a3933) 10%, transparent);
    --gb-muted: color-mix(in srgb, var(--store-text, #4a3933) 62%, var(--store-bg, #fff9f8) 38%);
    --gb-cta: var(--store-button, var(--store-primary, #c08497));
    --gb-radius: max(18px, min(28px, calc(var(--store-btn-radius, 999px) * 0.04 + 18px)));
    --gb-pill: 999px;
    --gb-btn-radius: max(12px, min(999px, var(--store-btn-radius, 999px)));
    --gb-shadow: 0 2px 8px color-mix(in srgb, var(--store-primary) 8%, transparent),
        0 18px 48px color-mix(in srgb, var(--store-text) 6%, transparent);
    --gb-shadow-hover: 0 8px 24px color-mix(in srgb, var(--store-primary) 14%, transparent),
        0 28px 56px color-mix(in srgb, var(--store-text) 8%, transparent);
    --gb-glass: color-mix(in srgb, var(--store-card-bg, #fff) 88%, transparent);
    --gb-safe-top: env(safe-area-inset-top, 0px);
    --gb-page-bg: color-mix(in srgb, var(--store-bg) 72%, var(--store-card-bg) 28%);
}

body.shop-tpl-glow_beauty .gb-cart-page {
    min-height: 100vh;
    padding-bottom: max(108px, calc(92px + env(safe-area-inset-bottom)));
    background: var(--gb-page-bg);
}

body.shop-tpl-glow_beauty .gb-cart-shell {
    width: min(1120px, calc(100% - 48px));
    margin-inline: auto;
}

/* ── Header ── */
body.shop-tpl-glow_beauty .gb-cart-header {
    position: sticky;
    top: calc(var(--gb-safe-top) + 8px);
    z-index: 220;
    margin: 10px 0 14px;
    padding: 10px 16px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    background: var(--gb-glass);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid var(--gb-border-soft);
    border-radius: var(--gb-pill);
    box-shadow: var(--gb-shadow);
}

body.shop-tpl-glow_beauty .gb-cart-header-back,
body.shop-tpl-glow_beauty .gb-cart-header-bag {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--gb-border-soft);
    background: var(--store-card-bg);
    color: var(--store-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.shop-tpl-glow_beauty .gb-cart-header-back:hover,
body.shop-tpl-glow_beauty .gb-cart-header-bag:hover {
    transform: translateY(-1px);
    box-shadow: var(--gb-shadow);
}

body.shop-tpl-glow_beauty .gb-cart-header-brand {
    font-family: var(--gb-heading);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--store-primary);
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.shop-tpl-glow_beauty .gb-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: var(--gb-pill);
    background: var(--gb-cta);
    color: #fff;
    font: 600 10px/17px var(--gb-font);
    text-align: center;
}

/* ── Hero ── */
body.shop-tpl-glow_beauty .gb-cart-hero {
    text-align: center;
    padding: clamp(32px, 6vw, 52px) 12px clamp(24px, 4vw, 36px);
    max-width: 640px;
    margin-inline: auto;
}

body.shop-tpl-glow_beauty .gb-cart-hero h1 {
    margin: 0;
    font-family: var(--gb-heading);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--store-text);
}

body.shop-tpl-glow_beauty .gb-cart-hero p {
    margin: 16px auto 0;
    max-width: 38ch;
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--gb-muted);
}

/* ── Layout ── */
body.shop-tpl-glow_beauty .gb-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

@media (min-width: 960px) {
    body.shop-tpl-glow_beauty .gb-cart-layout {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
        gap: 40px;
    }
}

/* ── Free shipping progress ── */
body.shop-tpl-glow_beauty .gb-cart-ship {
    margin-bottom: 22px;
    padding: 16px 18px;
    border-radius: var(--gb-radius);
    border: 1px solid var(--gb-border-soft);
    background: var(--store-card-bg);
    box-shadow: var(--gb-shadow);
}

body.shop-tpl-glow_beauty .gb-cart-ship p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--gb-muted);
}

body.shop-tpl-glow_beauty .gb-cart-ship strong {
    color: var(--store-primary);
    font-weight: 600;
}

body.shop-tpl-glow_beauty .gb-cart-ship-track {
    height: 5px;
    border-radius: var(--gb-pill);
    background: var(--gb-blush);
    overflow: hidden;
}

body.shop-tpl-glow_beauty .gb-cart-ship-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        var(--store-primary),
        color-mix(in srgb, var(--store-accent) 70%, var(--store-primary) 30%)
    );
    transition: width 0.5s ease;
}

/* ── Cart items ── */
body.shop-tpl-glow_beauty .gb-cart-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

body.shop-tpl-glow_beauty .gb-cart-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
    background: var(--store-card-bg);
    border: 1px solid var(--gb-border-soft);
    border-radius: var(--gb-radius);
    box-shadow: var(--gb-shadow);
    position: relative;
}

body.shop-tpl-glow_beauty .gb-cart-item-glow {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: var(--gb-pill);
    font: 600 9px/1 var(--gb-font);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: color-mix(in srgb, var(--store-card-bg) 94%, transparent);
    color: var(--store-primary);
    border: 1px solid var(--gb-rose-soft);
    backdrop-filter: blur(6px);
}

body.shop-tpl-glow_beauty .gb-cart-item-media {
    border-radius: calc(var(--gb-radius) - 6px);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--gb-blush);
    display: block;
}

body.shop-tpl-glow_beauty .gb-cart-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.shop-tpl-glow_beauty .gb-cart-item-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

body.shop-tpl-glow_beauty .gb-cart-item-title {
    margin: 0;
    font-family: var(--gb-heading);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.25;
}

body.shop-tpl-glow_beauty .gb-cart-item-title a {
    color: inherit;
    text-decoration: none;
}

body.shop-tpl-glow_beauty .gb-cart-item-title a:hover {
    color: var(--store-primary);
}

body.shop-tpl-glow_beauty .gb-cart-item-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--gb-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.shop-tpl-glow_beauty .gb-cart-item-price {
    font: 600 16px/1.3 var(--gb-font);
    color: var(--store-text);
    margin-top: 4px;
}

body.shop-tpl-glow_beauty .gb-cart-item-price old {
    margin-left: 8px;
    font-weight: 500;
    font-size: 13px;
    color: var(--gb-muted);
    text-decoration: line-through;
}

body.shop-tpl-glow_beauty .gb-cart-item-line {
    font-size: 12px;
    color: var(--gb-muted);
    letter-spacing: 0.02em;
}

body.shop-tpl-glow_beauty .gb-cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--gb-border-soft);
}

/* ── Quantity ── */
body.shop-tpl-glow_beauty .gb-cart-qty {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border-radius: var(--gb-pill);
    border: 1px solid var(--gb-border-soft);
    background: var(--gb-blush);
}

body.shop-tpl-glow_beauty .gb-cart-qty button {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: var(--store-card-bg);
    color: var(--store-text);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    box-shadow: 0 1px 4px color-mix(in srgb, var(--store-text) 6%, transparent);
}

body.shop-tpl-glow_beauty .gb-cart-qty button:hover {
    color: var(--store-primary);
}

body.shop-tpl-glow_beauty .gb-cart-qty button:active {
    transform: scale(0.92);
}

body.shop-tpl-glow_beauty .gb-cart-qty input {
    width: 38px;
    border: none;
    background: transparent;
    text-align: center;
    font: 600 15px/1 var(--gb-font);
    color: var(--store-text);
    -moz-appearance: textfield;
}

body.shop-tpl-glow_beauty .gb-cart-qty input::-webkit-outer-spin-button,
body.shop-tpl-glow_beauty .gb-cart-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

body.shop-tpl-glow_beauty .gb-cart-remove {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--gb-muted);
    font: 500 13px/1 var(--gb-font);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 8px 4px;
}

body.shop-tpl-glow_beauty .gb-cart-remove:hover {
    color: var(--store-primary);
}

/* ── Summary ── */
body.shop-tpl-glow_beauty .gb-cart-aside {
    position: relative;
}

@media (min-width: 960px) {
    body.shop-tpl-glow_beauty .gb-cart-summary {
        position: sticky;
        top: calc(var(--gb-safe-top) + 88px);
    }
}

body.shop-tpl-glow_beauty .gb-cart-summary {
    padding: 26px 24px;
    background: var(--store-card-bg);
    border: 1px solid var(--gb-border-soft);
    border-radius: var(--gb-radius);
    box-shadow: var(--gb-shadow-hover);
}

body.shop-tpl-glow_beauty .gb-cart-summary h2 {
    margin: 0 0 20px;
    font-family: var(--gb-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--store-text);
}

body.shop-tpl-glow_beauty .gb-cart-sum-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 11px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--gb-border-soft);
}

body.shop-tpl-glow_beauty .gb-cart-sum-row span:first-child {
    color: var(--gb-muted);
    font-size: 14px;
}

body.shop-tpl-glow_beauty .gb-cart-sum-row--discount span:last-child {
    color: var(--store-primary);
    font-weight: 600;
}

body.shop-tpl-glow_beauty .gb-cart-sum-row--total {
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid var(--gb-border);
    border-bottom: none;
    font-family: var(--gb-heading);
    font-size: 1.35rem;
    font-weight: 600;
}

body.shop-tpl-glow_beauty .gb-cart-sum-row--total span:first-child {
    color: var(--store-text);
    font-size: 1.1rem;
}

body.shop-tpl-glow_beauty .gb-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 0 24px;
    border-radius: var(--gb-btn-radius);
    border: 1px solid transparent;
    font: 600 12px/1 var(--gb-font);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

body.shop-tpl-glow_beauty .gb-btn--primary {
    margin-top: 22px;
    background: var(--gb-cta);
    color: #fff;
    box-shadow: 0 10px 28px color-mix(in srgb, var(--gb-cta) 35%, transparent);
}

body.shop-tpl-glow_beauty .gb-btn--primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

body.shop-tpl-glow_beauty .gb-btn--secondary {
    margin-top: 12px;
    background: transparent;
    color: var(--store-text);
    border-color: var(--gb-border-soft);
}

body.shop-tpl-glow_beauty .gb-btn:active {
    transform: scale(0.98);
}

/* ── Empty ── */
body.shop-tpl-glow_beauty .gb-cart-empty {
    text-align: center;
    padding: clamp(56px, 12vw, 88px) 28px;
    background: var(--store-card-bg);
    border: 1px dashed var(--gb-border);
    border-radius: var(--gb-radius);
    box-shadow: var(--gb-shadow);
}

body.shop-tpl-glow_beauty .gb-cart-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: var(--gb-blush);
    border: 1px solid var(--gb-rose-soft);
    color: var(--store-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

body.shop-tpl-glow_beauty .gb-cart-empty h2 {
    margin: 0;
    font-family: var(--gb-heading);
    font-size: 1.75rem;
    font-weight: 500;
}

body.shop-tpl-glow_beauty .gb-cart-empty p {
    margin: 14px auto 26px;
    max-width: 36ch;
    font-size: 15px;
    line-height: 1.65;
    color: var(--gb-muted);
}

body.shop-tpl-glow_beauty .gb-cart-empty .gb-btn {
    max-width: 300px;
    margin-inline: auto;
}

/* ── Sticky checkout ── */
body.shop-tpl-glow_beauty .gb-cart-sticky {
    position: fixed;
    left: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 280;
    width: min(440px, calc(100% - 28px));
    transform: translateX(-50%);
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px 12px 20px;
    background: var(--gb-glass);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid var(--gb-border-soft);
    border-radius: var(--gb-pill);
    box-shadow: var(--gb-shadow-hover);
}

body.shop-tpl-glow_beauty[data-cart-has-items="1"] .gb-cart-sticky {
    display: flex;
}

body.shop-tpl-glow_beauty .gb-cart-sticky-total {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

body.shop-tpl-glow_beauty .gb-cart-sticky-total span:first-child {
    font: 600 10px/1 var(--gb-font);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gb-muted);
}

body.shop-tpl-glow_beauty .gb-cart-sticky-total strong {
    font-family: var(--gb-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--store-text);
}

body.shop-tpl-glow_beauty .gb-cart-sticky .gb-btn--primary {
    margin: 0;
    width: auto;
    min-height: 46px;
    padding: 0 22px;
    white-space: nowrap;
}

@media (min-width: 960px) {
    body.shop-tpl-glow_beauty .gb-cart-sticky {
        display: none !important;
    }
    body.shop-tpl-glow_beauty .gb-cart-aside .gb-btn--primary {
        display: inline-flex;
    }
}

@media (max-width: 720px) {
    body.shop-tpl-glow_beauty .gb-cart-shell {
        width: calc(100% - 28px);
    }
    body.shop-tpl-glow_beauty .gb-cart-item {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 14px;
        padding: 16px;
    }
    body.shop-tpl-glow_beauty .gb-cart-aside .gb-btn--primary {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.shop-tpl-glow_beauty .gb-cart-item,
    body.shop-tpl-glow_beauty .gb-cart-qty button,
    body.shop-tpl-glow_beauty .gb-btn,
    body.shop-tpl-glow_beauty .gb-cart-sticky {
        transition: none !important;
    }
}
