/* ==========================================================================
   Gentora cart — drawer + /cart page (mobile first)
   Uses the brand tokens from gentora-brand.css. Green is reserved for savings.
   ========================================================================== */
.gjc {
    --gjc-ink: var(--brand-ink, #1F1A17);
    --gjc-muted: var(--brand-muted, #6F655C);
    --gjc-line: var(--brand-border, #E9E2D8);
    --gjc-ivory: var(--brand-ivory, #FAF6F0);
    --gjc-primary: var(--brand-primary, #6E2433);
    --gjc-primary-hover: var(--brand-primary-hover, #5A1C29);
    --gjc-primary-soft: var(--brand-primary-soft, #F6ECEE);
    --gjc-gold: var(--brand-gold, #B08A4E);
    --gjc-save: #1F7A4D;
    --gjc-save-bg: #E8F5EC;
    --gjc-radius: 12px;
    color: var(--gjc-ink);
    font-family: var(--brand-font-sans, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 14px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}
.gjc *, .gjc *::before, .gjc *::after { box-sizing: border-box; }
.gjc a { text-decoration: none; }
.gjc button { font-family: inherit; }
.gjc .gjc-muted { color: var(--gjc-muted); }
.gjc .gjc-free { color: var(--gjc-save); font-weight: 700; }

.gjc-sec-title {
    font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--gjc-ink); margin: 0 0 12px;
}
.gjc-link {
    background: none; border: 0; padding: 0; cursor: pointer;
    color: var(--gjc-primary); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.gjc-link:hover { color: var(--gjc-primary-hover); }

/* ---------- Drawer shell ---------- */
.gentora-cart-drawer {
    position: fixed; top: 0; right: 0; z-index: 1060;
    width: 440px; max-width: 100vw; height: 100vh; height: 100dvh;
    background: #fff; box-shadow: -8px 0 32px rgba(0, 0, 0, .14);
    transform: translateX(105%); transition: transform .32s cubic-bezier(.16, 1, .3, 1);
    display: flex; flex-direction: column;
}
.gentora-cart-drawer.active { transform: translateX(0); }
.gentora-cart-drawer-content { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.gentora-cart-drawer-overlay {
    position: fixed; inset: 0; z-index: 1058; background: rgba(20, 14, 12, .45);
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.gentora-cart-drawer-overlay.active { opacity: 1; visibility: visible; }
body.gentora-drawer-open { overflow: hidden !important; }
@media (max-width: 575.98px) { .gentora-cart-drawer { width: 100vw; } }

.gjc-drawer { display: flex; flex-direction: column; height: 100%; min-height: 0; background: #fff; }
.gjc-announce {
    flex-shrink: 0; background: var(--brand-footer, #231B18); color: #F4EEE6;
    font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    text-align: center; padding: 8px 14px;
}
.gjc-announce-page { border-radius: var(--gjc-radius); margin: 12px 0 0; }
.gjc-drawer-head {
    flex-shrink: 0; display: flex; align-items: flex-start; justify-content: space-between;
    padding: 14px 16px 12px; border-bottom: 1px solid var(--gjc-line);
}
.gjc-drawer-title { font-size: 18px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; margin: 0; color: var(--gjc-ink); }
.gjc-drawer-title span { font-weight: 700; }
.gjc-continue {
    display: inline-flex; align-items: center; gap: 3px; margin-top: 2px;
    background: none; border: 0; padding: 0; cursor: pointer;
    color: var(--gjc-primary); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.gjc-continue:hover { color: var(--gjc-primary-hover); }
.gjc-close {
    width: 36px; height: 36px; margin: -4px -6px 0 0; border: 0; background: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; color: var(--gjc-ink); border-radius: 50%;
}
.gjc-close:hover { background: var(--gjc-ivory); }
.gjc-drawer-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 20px; }
.gjc-drawer-body > * + * { margin-top: 18px; }
.gjc-drawer-body-empty { display: flex; flex-direction: column; justify-content: center; }

/* ---------- Milestone tracker ---------- */
.gjc-ms {
    background: linear-gradient(180deg, var(--gjc-primary-soft), #fff);
    border: 1px solid #EFDDE1; border-radius: var(--gjc-radius); padding: 14px 16px 12px;
}
.gjc-ms.is-complete { background: linear-gradient(180deg, var(--gjc-save-bg), #fff); border-color: #CFE8D8; }
.gjc-ms-head { text-align: center; font-size: 13.5px; color: var(--gjc-ink); margin-bottom: 14px; }
.gjc-ms-head strong { font-weight: 800; }
.gjc-ms-track { position: relative; height: 6px; background: #EADFD3; border-radius: 99px; margin: 0 12px 0 0; }
.gjc-ms-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--gjc-primary); border-radius: 99px; transition: width .4s ease; }
.gjc-ms.is-complete .gjc-ms-fill { background: var(--gjc-save); }
.gjc-ms-node {
    position: absolute; top: 50%; width: 26px; height: 26px; margin-left: -13px; transform: translateY(-50%);
    display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
    background: #fff; border: 2px solid #D9CBBC; color: var(--gjc-muted);
}
.gjc-ms-node.is-reached { background: var(--gjc-primary); border-color: var(--gjc-primary); color: #fff; }
.gjc-ms.is-complete .gjc-ms-node.is-reached { background: var(--gjc-save); border-color: var(--gjc-save); }
.gjc-ms-labels { display: grid; margin-top: 18px; }
.gjc-ms-label { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; padding-left: 6px; }
.gjc-ms-label-title { font-size: 12px; font-weight: 700; color: var(--gjc-ink); line-height: 1.25; }
.gjc-ms-label-sub { font-size: 11px; color: var(--gjc-muted); }
.gjc-ms-label.is-reached .gjc-ms-label-title { color: var(--gjc-primary); }
.gjc-ms-apply {
    margin-top: 4px; border: 0; border-radius: 6px; background: var(--gjc-primary); color: #fff;
    font-size: 11px; font-weight: 700; padding: 4px 8px; cursor: pointer; white-space: nowrap;
}
.gjc-ms-apply:hover { background: var(--gjc-primary-hover); }
.gjc-ms-applied { margin-top: 4px; font-size: 11px; font-weight: 700; color: var(--gjc-save); }

/* ---------- Line items ---------- */
.gjc-lines { display: flex; flex-direction: column; }
.gjc-line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--gjc-line); transition: opacity .2s; }
.gjc-line:first-child { padding-top: 0; }
.gjc-line:last-child { border-bottom: 0; padding-bottom: 0; }
.gjc-line.is-busy { opacity: .45; pointer-events: none; }
.gjc-line.is-inactive { opacity: .6; }
.gjc-line.is-new { animation: gjcNew 1.4s ease-out; }
@keyframes gjcNew { 0% { background: var(--gjc-primary-soft); } 100% { background: transparent; } }
.gjc-line-thumb {
    flex: 0 0 72px; width: 72px; height: 72px; border-radius: 10px; overflow: hidden;
    background: var(--gjc-ivory); border: 1px solid var(--gjc-line);
}
.gjc-line-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gjc-line-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.gjc-line-top { display: flex; align-items: flex-start; gap: 8px; }
.gjc-line-name {
    flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 600; color: var(--gjc-ink) !important; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gjc-line-remove {
    flex-shrink: 0; width: 30px; height: 30px; margin: -5px -6px 0 0; border: 0; background: none; cursor: pointer;
    color: var(--gjc-muted); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
}
.gjc-line-remove:hover { color: var(--brand-danger, #B42318); background: #FDF1F0; }
.gjc-line-variant { font-size: 12.5px; color: var(--gjc-muted); }
.gjc-line-variant-select { display: inline-flex; align-items: center; gap: 6px; margin: 0; align-self: flex-start; }
.gjc-line-variant-select select {
    height: 28px; padding: 0 26px 0 10px; border: 1px solid var(--gjc-line); border-radius: 6px; background-color: #fff;
    font-size: 12.5px; font-weight: 700; color: var(--gjc-ink); cursor: pointer;
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%236F655C' stroke-width='3'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 8px center;
}
.gjc-line-tag {
    align-self: flex-start; font-size: 10.5px; font-weight: 700; color: var(--gjc-save);
    background: var(--gjc-save-bg); border-radius: 99px; padding: 2px 8px;
}
.gjc-line-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.gjc-line-price, .gjc-rec-price { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 6px; }
.gjc-price { font-size: 15px; font-weight: 800; color: var(--gjc-ink); }
.gjc-price-was { font-size: 12.5px; color: var(--gjc-muted); }
.gjc-price-off { font-size: 12.5px; font-weight: 800; color: var(--gjc-save); }
.gjc-qty {
    flex-shrink: 0; display: inline-flex; align-items: center; height: 34px;
    border: 1px solid var(--gjc-line); border-radius: 8px; background: #fff;
}
.gjc-qty button {
    width: 32px; height: 100%; border: 0; background: none; cursor: pointer; font-size: 16px; color: var(--gjc-ink);
    display: inline-flex; align-items: center; justify-content: center;
}
.gjc-qty button:disabled { color: #C9BFB4; cursor: not-allowed; }
.gjc-qty span { min-width: 24px; text-align: center; font-weight: 700; font-size: 14px; }
.gjc-line-note { font-size: 12px; font-weight: 600; color: #9A6A12; }
.gjc-line-note.is-bad { color: var(--brand-danger, #B42318); }

/* ---------- Recommended carousel ---------- */
.gjc-recs-track {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px;
    margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-padding: 0 16px; scrollbar-width: none;
}
.gjc-recs-track::-webkit-scrollbar { display: none; }
.gjc-rec {
    flex: 0 0 76%; max-width: 280px; scroll-snap-align: start;
    display: flex; gap: 10px; padding: 10px; border: 1px solid var(--gjc-line); border-radius: var(--gjc-radius); background: #fff;
}
.gjc-rec-img { flex: 0 0 76px; width: 76px; height: 76px; border-radius: 8px; overflow: hidden; background: var(--gjc-ivory); }
.gjc-rec-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gjc-rec-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gjc-rec-rating { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; color: var(--gjc-ink); }
.gjc-rec-rating svg { color: var(--gjc-gold); }
.gjc-rec-rating span { color: var(--gjc-muted); font-weight: 500; }
.gjc-rec-name {
    font-size: 13px; font-weight: 600; color: var(--gjc-ink) !important; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gjc-rec .gjc-price { font-size: 14px; }
.gjc-rec-btn {
    margin-top: auto; align-self: flex-start; min-width: 72px; height: 32px; padding: 0 14px;
    border: 0; border-radius: 8px; background: var(--gjc-primary); color: #fff !important;
    font-size: 12.5px; font-weight: 700; letter-spacing: .03em; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.gjc-rec-btn:hover { background: var(--gjc-primary-hover); }
.gjc-rec-btn.is-muted { background: #EEE8E1; color: var(--gjc-muted) !important; }

/* ---------- Offers & coupons ---------- */
.gjc-offers { display: flex; flex-direction: column; gap: 8px; }
.gjc-offers .gjc-sec-title { margin-bottom: 4px; }
.gjc-coupon-applied {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
    background: var(--gjc-save-bg); border: 1px dashed #8CC7A1; color: var(--gjc-save);
}
.gjc-coupon-applied-text { flex: 1 1 auto; font-size: 13px; color: var(--gjc-ink); }
.gjc-coupon-applied-text span { display: block; font-size: 12px; color: var(--gjc-save); font-weight: 600; }
.gjc-offer {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
    border: 1px solid var(--gjc-line); background: #fff;
}
.gjc-offer.is-locked { background: var(--gjc-ivory); }
.gjc-offer-code {
    flex-shrink: 0; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; color: var(--gjc-primary);
    border: 1.5px dashed var(--gjc-primary); border-radius: 6px; padding: 4px 7px; background: #fff;
}
.gjc-offer-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.gjc-offer-text strong { font-size: 13px; font-weight: 700; }
.gjc-offer-text span { font-size: 11.5px; color: var(--gjc-muted); }
.gjc-offer-btn {
    flex-shrink: 0; height: 30px; padding: 0 12px; border: 1px solid var(--gjc-primary); border-radius: 8px; background: #fff;
    color: var(--gjc-primary) !important; font-size: 12px; font-weight: 800; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.gjc-offer-btn:hover { background: var(--gjc-primary); color: #fff !important; }
.gjc-offer-need { flex-shrink: 0; font-size: 11.5px; font-weight: 700; color: var(--gjc-muted); text-align: right; }
.gjc-coupon-form { display: flex; gap: 8px; margin-top: 2px; }
.gjc-coupon-form input {
    flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--gjc-line); border-radius: 10px;
    font-size: 14px; text-transform: uppercase; background: #fff; color: var(--gjc-ink);
}
.gjc-coupon-form input::placeholder { text-transform: none; color: #A39889; }
.gjc-coupon-form button {
    flex-shrink: 0; width: 84px; height: 44px; border: 0; border-radius: 10px; background: var(--gjc-ink); color: #fff;
    font-size: 13px; font-weight: 700; cursor: pointer;
}
.gjc-coupon-msg { display: none; font-size: 12px; font-weight: 600; color: var(--brand-danger, #B42318); }
.gjc-coupon-msg.is-visible { display: block; }

/* ---------- Delivery & trust ---------- */
.gjc-delivery {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--gjc-line); border-radius: var(--gjc-radius);
    color: var(--gjc-ink);
}
.gjc-delivery div { display: flex; flex-direction: column; }
.gjc-delivery span { font-size: 11.5px; color: var(--gjc-muted); }
.gjc-delivery strong { font-size: 14px; font-weight: 700; }
.gjc-trust { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gjc-trust li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.gjc-trust-icon {
    width: 38px; height: 38px; border-radius: 50%; background: var(--gjc-ivory); color: var(--gjc-ink);
    display: inline-flex; align-items: center; justify-content: center;
}
.gjc-trust-text { display: flex; flex-direction: column; }
.gjc-trust-text strong { font-size: 11.5px; font-weight: 700; line-height: 1.25; }
.gjc-trust-text small { font-size: 10.5px; color: var(--gjc-muted); line-height: 1.25; }

/* ---------- Saved pack drafts ---------- */
.gjc-drafts:empty { display: none; }
.gjc-draft { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed var(--gjc-line); border-radius: 10px; margin-top: 8px; }
.gjc-draft-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.gjc-draft-text strong { font-size: 13px; }
.gjc-draft-text span { font-size: 11.5px; color: var(--gjc-muted); }

/* ---------- Footer (sticky) ---------- */
.gjc-footer { flex-shrink: 0; background: #fff; border-top: 1px solid var(--gjc-line); box-shadow: 0 -6px 18px rgba(31, 26, 23, .06); }
.gjc-savings {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    background: var(--gjc-save-bg); color: var(--gjc-save); font-size: 13px; font-weight: 600; padding: 8px 12px; text-align: center;
}
.gjc-savings strong { font-weight: 800; }
.gjc-savings-inline { border-radius: 10px; margin: 12px 0 0; }
.gjc-footer-breakup { padding: 12px 16px 0; max-height: 45vh; overflow-y: auto; }
.gjc-footer-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 10px 16px 8px; }
.gjc-footer-total { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 6px; }
.gjc-footer-total span { font-size: 15px; font-weight: 600; }
.gjc-footer-total strong { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.gjc-footer-total small { width: 100%; font-size: 11px; color: var(--gjc-muted); }
.gjc-footer .gjc-checkout { margin: 0 16px 14px; width: auto; }
.gjc-checkout {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 8px 16px;
    border-radius: 10px; background: var(--gjc-primary); color: #fff !important;
    font-size: 15px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transition: background .2s;
}
.gjc-checkout:hover { background: var(--gjc-primary-hover); color: #fff !important; }
.gjc-pay-icons { display: inline-flex; gap: 4px; }
.gjc-pay-icon {
    font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: none;
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); border-radius: 4px; padding: 2px 5px; line-height: 1.2;
}

/* ---------- Breakup ---------- */
.gjc-breakup { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.gjc-breakup > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.gjc-breakup dt { font-weight: 500; color: var(--gjc-muted); margin: 0; }
.gjc-breakup dd { font-weight: 700; margin: 0; text-align: right; }
.gjc-breakup .is-saving dt, .gjc-breakup .is-saving dd { color: var(--gjc-save); }
.gjc-breakup .is-total { border-top: 1px dashed var(--gjc-line); padding-top: 10px; margin-top: 2px; font-size: 15px; }
.gjc-breakup .is-total dt { color: var(--gjc-ink); font-weight: 800; }
.gjc-breakup .is-total dd { font-weight: 800; }

/* ---------- Empty ---------- */
.gjc-empty { text-align: center; padding: 24px 8px; display: flex; flex-direction: column; align-items: center; }
.gjc-empty-icon {
    width: 76px; height: 76px; border-radius: 50%; background: var(--gjc-ivory); color: var(--gjc-primary);
    display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.gjc-empty h3 { font-family: var(--brand-font-serif, Georgia, serif); font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.gjc-empty p { font-size: 13.5px; color: var(--gjc-muted); margin: 0 0 18px; max-width: 280px; }
.gjc-empty-btn { max-width: 280px; }
.gjc-empty-recs { margin-top: 20px; text-align: left; }

/* ---------- /cart page ---------- */
.gjc-page-section { padding: 8px 0 120px; background: var(--brand-ivory, #FAF6F0); }
.gjc-page { padding-top: 4px; }
.gjc-page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0; }
.gjc-page-title { font-family: var(--brand-font-serif, Georgia, serif); font-size: 22px; font-weight: 700; margin: 0; color: var(--gjc-ink); }
.gjc-page-title span { font-family: var(--brand-font-sans, sans-serif); font-size: 14px; font-weight: 500; color: var(--gjc-muted); }
.gjc-page-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.gjc-page-main, .gjc-page-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.gjc-card { background: #fff; border: 1px solid var(--gjc-line); border-radius: var(--gjc-radius); padding: 16px; }
.gjc-card.gjc-lines { padding-top: 16px; padding-bottom: 16px; }
.gjc-card-plain .gjc-trust { margin-top: 12px; }
.gjc-card-plain .gjc-delivery + .gjc-trust { margin-top: 14px; }
.gjc-page .gjc-recs-track { margin: 0; padding: 0 0 4px; }
.gjc-page .gjc-line-thumb { flex-basis: 84px; width: 84px; height: 84px; }
.gjc-summary .gjc-checkout { margin-top: 14px; }
.gjc-page-side .gjc-summary { display: none; } /* mobile: total + breakup live in the sticky footer */
.gjc-page-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; }
.gjc-page-empty { background: #fff; border: 1px solid var(--gjc-line); border-radius: var(--gjc-radius); padding: 24px 16px; margin: 16px 0; }

@media (min-width: 992px) {
    .gjc-page-section { padding-bottom: 48px; }
    .gjc-page-head { margin: 22px 0 18px; }
    .gjc-page-title { font-size: 28px; }
    .gjc-page-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
    .gjc-page-side { position: sticky; top: 96px; }
    .gjc-page-side .gjc-summary { display: block; }
    .gjc-page-sticky { display: none; }
    .gjc-card { padding: 20px; }
    .gjc-rec { flex-basis: 260px; }
}

@media (min-width: 576px) {
    .gjc-rec { flex-basis: 250px; }
}
@media (prefers-reduced-motion: reduce) {
    .gentora-cart-drawer, .gjc-ms-fill, .gjc-line { transition: none; }
    .gjc-line.is-new { animation: none; }
}

/* The footer already shows the total next to the toggle */
.gjc-footer-breakup .gjc-breakup .is-total { display: none; }
.gjc-footer-breakup { padding-bottom: 4px; border-bottom: 1px dashed var(--gjc-line, #E9E2D8); }

/* ==========================================================================
   Offers engine UI — free-gift picker, offer cards (eligible + locked), gift lines
   ========================================================================== */
/* ---------- Free gift picker ---------- */
.gjc-gifts-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.gjc-gifts .gjc-sec-title { display: inline-flex; align-items: center; gap: 6px; }
.gjc-gifts .gjc-sec-title svg { color: var(--gjc-primary); }
.gjc-gifts-note { font-size: 11.5px; font-weight: 600; color: var(--gjc-muted); }
.gjc-gifts-track {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px;
    margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-padding: 0 16px; scrollbar-width: none;
}
.gjc-page .gjc-gifts-track { margin: 0; padding-left: 0; padding-right: 0; }
.gjc-gifts-track::-webkit-scrollbar { display: none; }
.gjc-gift {
    flex: 0 0 74%; max-width: 270px; scroll-snap-align: start; position: relative;
    display: flex; gap: 10px; padding: 10px; border: 1px solid var(--gjc-line); border-radius: var(--gjc-radius); background: #fff;
    transition: border-color .2s, background .2s;
}
.gjc-gift.is-selected { border-color: var(--gjc-save); background: var(--gjc-save-bg); }
.gjc-gift-img { position: relative; flex: 0 0 72px; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; background: var(--gjc-ivory); }
.gjc-gift-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .25s; }
.gjc-gift.is-locked { background: var(--gjc-ivory); }
.gjc-gift.is-locked .gjc-gift-img img { filter: blur(2.5px) saturate(.75); opacity: .85; transform: scale(1.06); }
.gjc-gift-lock {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--gjc-ink);
}
.gjc-gift-lock svg { width: 26px; height: 26px; padding: 6px; border-radius: 50%; background: rgba(255,255,255,.9); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.gjc-gift-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gjc-gift-name {
    font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--gjc-ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gjc-gift-price { display: flex; align-items: baseline; gap: 6px; }
.gjc-gift-free { font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--gjc-save); }
.gjc-gift-price del { font-size: 12px; color: var(--gjc-muted); }
.gjc-gift-btn {
    margin-top: auto; align-self: flex-start; height: 32px; padding: 0 14px; border: 0; border-radius: 8px;
    background: var(--gjc-primary); color: #fff; font-size: 12.5px; font-weight: 700; cursor: pointer;
    display: inline-flex; align-items: center; gap: 5px;
}
.gjc-gift-btn:hover { background: var(--gjc-primary-hover); }
.gjc-gift-btn.is-added { background: #fff; color: var(--gjc-save); border: 1px solid var(--gjc-save); }
.gjc-gift-need { margin-top: auto; font-size: 11.5px; font-weight: 700; color: var(--gjc-primary); line-height: 1.3; }

/* ---------- Offer cards ---------- */
.gjc-offer-list { display: flex; flex-direction: column; gap: 8px; }
.gjc-offer { align-items: stretch; }
.gjc-offer-title-wrap { display: flex; align-items: center; gap: 6px; align-self: flex-start; }
.gjc-offer-title { font-size: 16px; font-weight: 700; color: var(--gjc-primary, #6E2433); background: none !important; border: none !important; padding: 0 !important; line-height: 1.25; display: inline-flex; align-items: center; gap: 6px; }
.gjc-offer.is-locked .gjc-offer-title { color: var(--gjc-muted, #6F655C); }
.gjc-offer-badge {
    position: relative; flex: 0 0 auto; border-radius: 0; background: none !important; color: var(--gjc-primary);
    display: flex; align-items: center; justify-content: flex-start; text-align: left; padding: 0 !important; overflow: hidden;
}
.gjc-offer-badge-val { font-size: 16px; font-weight: 700; line-height: 1.25; background: none !important; }
.gjc-offer .gjc-offer-text { gap: 2px; justify-content: center; }
.gjc-offer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.gjc-offer .gjc-offer-code { padding: 2px 6px; font-size: 11px; }
.gjc-offer-flag {
    font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    padding: 2px 6px; border-radius: 99px; background: #F1ECE5; color: var(--gjc-muted);
}
.gjc-offer-flag.is-best { background: var(--gjc-save-bg); color: var(--gjc-save); }
.gjc-offer-flag.is-season { background: var(--brand-gold-soft, #F3EBDD); color: var(--brand-gold-text, #84632F); }
.gjc-offer-desc { font-size: 12px; color: var(--gjc-muted); line-height: 1.35; }
.gjc-offer-save { font-size: 12px; font-weight: 700; color: var(--gjc-save); }
.gjc-offer-ends { font-size: 11px; color: var(--gjc-muted); }
.gjc-offer .gjc-offer-need { text-align: left; color: var(--gjc-primary); font-size: 12px; }
.gjc-offer-btn { align-self: center; }
.gjc-offer-progress { display: block; height: 4px; border-radius: 99px; background: #EAE3DA; overflow: hidden; margin-top: 3px; max-width: 180px; }
.gjc-offer-progress i { display: block; height: 100%; background: var(--gjc-primary); border-radius: 99px; }
/* Locked: dimmed card, softly blurred discount badge, readable text */
.gjc-offer.is-locked { background: var(--gjc-ivory); border-style: dashed; }
.gjc-offer.is-locked .gjc-offer-badge { background: #EFE9E2; color: var(--gjc-muted); }
.gjc-offer.is-locked .gjc-offer-badge-val { filter: blur(1.6px); opacity: .7; }
.gjc-offer-lock { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--gjc-ink); }
.gjc-offer.is-locked .gjc-offer-code { border-color: #BDB2A6; color: var(--gjc-muted); }
.gjc-auto-tag { font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--gjc-save); margin-left: 4px; }
.gjc-offers.is-compact .gjc-offer { padding: 8px 10px; }
.gjc-offers.is-compact .gjc-offer-badge { flex-basis: 56px; }
.gjc-offers.is-compact .gjc-offer-badge-val { font-size: 12px; }

/* ---------- Gift lines & savings ---------- */
.gjc-line.is-gift { background: linear-gradient(0deg, var(--gjc-save-bg), var(--gjc-save-bg)); border-radius: 10px; padding-left: 8px; padding-right: 8px; }
.gjc-line-tag.is-gift { display: inline-flex; align-items: center; gap: 4px; background: var(--gjc-save); color: #fff; }
.gjc-line-qty-fixed { font-size: 12px; font-weight: 600; color: var(--gjc-muted); }
.gjc-savings-sub { font-weight: 500; opacity: .9; }

/* ==========================================================================
   Offers: one horizontal row of compact cards (drawer, /cart, checkout)
   ========================================================================== */
.gjc-offers .gjc-offer-row {
    flex-direction: row; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-left: 2px; padding: 2px 2px 6px;
    margin-right: -16px; padding-right: 16px; scrollbar-width: none;
}
.gjc-offers .gjc-offer-row::-webkit-scrollbar { display: none; }
.gjc-offer-row .gjc-offer {
    flex: 0 0 240px; max-width: 240px; scroll-snap-align: start;
    flex-direction: column; align-items: stretch; gap: 8px; padding: 12px;
}
.gjc-offer-row .gjc-offer-badge {
    flex: 0 0 auto; width: auto; min-height: 0; align-self: flex-start;
    padding: 0 !important; border-radius: 0; position: relative; background: none !important;
}
.gjc-offer-row .gjc-offer-badge-val { font-size: 16px; font-weight: 700; color: var(--gjc-primary, #6E2433); white-space: nowrap; background: none !important; }
.gjc-offer-row .gjc-offer-lock { position: static; transform: none; margin-left: 6px; vertical-align: -2px; }
.gjc-offer-row .gjc-offer-text { flex: 1 1 auto; justify-content: flex-start; }
.gjc-offer-row .gjc-offer-desc {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gjc-offer-row .gjc-offer-progress { max-width: none; }
.gjc-offer-row .gjc-offer-btn { align-self: stretch; text-align: center; margin-top: auto; min-height: 40px; }
.gjc-offer-row .gjc-offer:focus-visible { outline: 2px solid var(--gjc-primary); outline-offset: 2px; }
.gjc-offers.is-compact .gjc-offer-row .gjc-offer { flex-basis: 210px; max-width: 210px; padding: 10px; }
.gjc-offers.is-compact .gjc-offer-row { margin-right: 0; padding-right: 2px; }
.gjc-offers .gjc-coupon-applied { margin-top: 2px; }
@media (min-width: 992px) {
    .gjc-page .gjc-offers .gjc-offer-row { margin-right: 0; padding-right: 2px; }
}
@media (prefers-reduced-motion: reduce) { .gjc-offers .gjc-offer-row { scroll-behavior: auto; } }
/* ===== end offers row ===== */

/* ===== product packs (App\Support\Packs) ===== */
.gjc-pack { border: 1px solid var(--gjc-line); border-radius: var(--gjc-radius); padding: 0 12px 10px; margin: 6px 0 12px; background: #fff; transition: opacity .2s; }
.gjc-lines > .gjc-pack:first-child { margin-top: 0; }
.gjc-lines > .gjc-pack:last-child { margin-bottom: 0; }
.gjc-pack.is-busy { opacity: .45; pointer-events: none; }
.gjc-pack-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px dashed var(--gjc-line); margin-bottom: 4px; }
.gjc-pack-title { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 14px; color: var(--gjc-ink); }
.gjc-pack-title svg { color: var(--gjc-primary); flex-shrink: 0; }
.gjc-pack-title strong { font-weight: 800; }
.gjc-pack-save { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--gjc-save-bg); color: var(--gjc-save); font-size: 12px; font-weight: 700; }
.gjc-pack-remove { border: 0; background: none; padding: 6px 0; min-height: 32px; color: var(--gjc-primary); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gjc-pack-remove:hover { color: var(--gjc-primary-hover); }
.gjc-pack .gjc-line { padding: 12px 0; }
.gjc-pack .gjc-line:last-of-type { border-bottom: 0; }
.gjc-pack-note { margin: 2px 0 0; font-size: 12px; color: var(--gjc-muted); }
/* ===== end product packs ===== */
