/* ==========================================================================
   PRESS JUICERY — ScaanMe store theme "press-juice-store"
   Cold-pressed wellness · dewy-white #F6FBF2 / deep-leaf #15301C / juice-orange #FF6F3C
   Cabinet Grotesk display (variable) · Inter body · Tajawal (Arabic)
   SIGNATURE: "Pour fill" — cards fill with their fruit colour bottom->top on
   scroll-reveal (one GPU-cheap scaleY layer per card) + a droplet on hover.
   Mobile-first · logical properties (RTL-safe) · prefers-reduced-motion aware.
   ========================================================================== */

:root {
    --pj-bg: var(--tk-bg, #F6FBF2);            /* dewy white (light-first) */
    --pj-panel: #FFFFFF;
    --pj-txt: var(--tk-text, #15301C);          /* deep leaf */
    --pj-txt-soft: color-mix(in srgb, var(--tk-text, #15301C), var(--tk-bg, #F6FBF2) 14%);
    --pj-muted: color-mix(in srgb, var(--tk-text, #15301C), var(--tk-bg, #F6FBF2) 38%);
    --pj-line: color-mix(in srgb, var(--tk-secondary, #6BCB3B) 18%, var(--tk-bg, #F6FBF2));
    --pj-line-soft: color-mix(in srgb, var(--tk-secondary, #6BCB3B) 10%, var(--tk-bg, #F6FBF2));
    --pj-line-strong: color-mix(in srgb, var(--tk-secondary, #6BCB3B) 30%, var(--tk-bg, #F6FBF2));
    --pj-accent: var(--tk-primary, #FF6F3C);       /* juice orange (one signature accent) */
    --pj-accent-deep: color-mix(in srgb, var(--tk-primary, #FF6F3C), #000 14%);
    --pj-green: var(--tk-secondary, #6BCB3B);        /* base fresh green */
    --pj-green-deep: color-mix(in srgb, var(--tk-secondary, #6BCB3B), #000 22%);
    --pj-berry: var(--tk-accent2, #E0407A);        /* secondary fruit pop — per-product only */
    --pj-wash: color-mix(in srgb, var(--tk-secondary, #6BCB3B) 12%, var(--tk-bg, #F6FBF2));
    --pj-citrus: var(--tk-accent3, #FFB02E);
    --pj-r: 18px;               /* generous, juicy radius */
    --pj-r-sm: 12px;
    --pj-font-d: var(--tk-font-header, 'Cabinet Grotesk'), 'Tajawal', system-ui, sans-serif;
    --pj-font-b: var(--tk-font-content, 'Inter'), 'Tajawal', system-ui, sans-serif;
    --pj-ease: cubic-bezier(.22, .61, .36, 1);
    --pj-shadow: 0 18px 44px -22px rgb(from var(--tk-text, #15301C) r g b / .32);
    --pj-shadow-soft: 0 10px 28px -18px rgb(from var(--tk-text, #15301C) r g b / .28);
}

html { scroll-behavior: smooth; }

body {
    background: var(--pj-bg) !important;
    color: var(--pj-txt);
    font-family: var(--pj-font-b);
    font-weight: 400;
    letter-spacing: -0.005em;
    -webkit-font-smoothing: antialiased;
    padding-block-end: 74px; /* mobile dock clearance */
}

body[dir="rtl"] { font-family: 'Tajawal', var(--pj-font-b); letter-spacing: 0; }
body[dir="rtl"] .pj-display,
body[dir="rtl"] .pj-hero-title,
body[dir="rtl"] .pj-card-name,
body[dir="rtl"] .pj-product-name { font-family: 'Tajawal', var(--pj-font-d); }

img { max-width: 100%; }
a { color: var(--pj-txt); }
a:hover { color: var(--pj-accent); }

/* ---------- Shell / layout -------------------------------------------- */
.pj-page { min-height: 100vh; display: flex; flex-direction: column; }
.pj-main { flex: 1 0 auto; }
.pj-shell { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 18px; }
.pj-section { margin-block: 42px; }

/* ---------- Type ------------------------------------------------------- */
.pj-display {
    font-family: var(--pj-font-d);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.06;
    color: var(--pj-txt);
    margin: 0;
}

.pj-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--pj-font-b);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--pj-green-deep);
}
.pj-eyebrow .num {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 22px; padding-inline: 6px;
    border-radius: 999px; background: var(--pj-green); color: #fff;
    font-size: 10px;
}
.pj-eyebrow::after { content: ""; flex: 0 1 44px; height: 2px; border-radius: 2px; background: var(--pj-line-strong); }

.pj-sechead { display: flex; flex-direction: column; gap: 10px; margin-block-end: 18px; }
.pj-sechead-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.pj-sechead .pj-display { font-size: clamp(1.55rem, 5.2vw, 2.3rem); }
.pj-sechead-link {
    font-size: 12px; font-weight: 600; letter-spacing: .04em;
    color: var(--pj-green-deep); text-decoration: none;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 13px; border-radius: 999px;
    background: var(--pj-wash); white-space: nowrap;
    transition: background .22s var(--pj-ease), color .22s var(--pj-ease);
}
.pj-sechead-link:hover { background: var(--pj-green); color: #fff; }
.pj-count { font-size: 12px; font-weight: 600; color: var(--pj-muted); white-space: nowrap; }

/* ---------- Buttons / forms -------------------------------------------- */
.pj-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding-inline: 24px;
    border: 2px solid transparent; border-radius: 999px;
    font-family: var(--pj-font-b); font-size: 14px; font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: background .22s var(--pj-ease), color .22s var(--pj-ease), border-color .22s var(--pj-ease), transform .22s var(--pj-ease), box-shadow .22s var(--pj-ease);
}
.pj-btn:active { transform: translateY(1px); }
.pj-btn-ink { background: var(--pj-accent); color: #fff !important; border-color: var(--pj-accent); box-shadow: var(--pj-shadow-soft); }
.pj-btn-ink:hover { background: var(--pj-accent-deep); border-color: var(--pj-accent-deep); color: #fff !important; }
.pj-btn-ghost { background: var(--pj-panel); color: var(--pj-txt) !important; border-color: var(--pj-line-strong); }
.pj-btn-ghost:hover { border-color: var(--pj-green); color: var(--pj-green-deep) !important; }
.pj-btn-paper { background: #fff; color: var(--pj-txt) !important; border-color: #fff; box-shadow: var(--pj-shadow-soft); }
.pj-btn-paper:hover { background: var(--pj-green); border-color: var(--pj-green); color: #fff !important; }
.pj-btn-block { width: 100%; }

.pj-input, .pj-select {
    height: 46px; width: 100%;
    border: 1.5px solid var(--pj-line); border-radius: 999px;
    background: var(--pj-panel); color: var(--pj-txt);
    font-family: inherit; font-size: 14px; padding-inline: 18px;
    transition: border-color .2s var(--pj-ease), box-shadow .2s var(--pj-ease);
    appearance: auto;
}
.pj-input:focus, .pj-select:focus { outline: none; border-color: var(--pj-green); box-shadow: 0 0 0 4px rgb(from var(--tk-secondary, #6BCB3B) r g b / .14); }
.pj-input::placeholder { color: var(--pj-muted); }

/* ---------- Topbar ------------------------------------------------------ */
.pj-topbar {
    position: sticky; top: 0; z-index: 1030;
    background: rgb(from var(--tk-bg, #F6FBF2) r g b / .9);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-block-end: 1px solid var(--pj-line);
}
.pj-topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.pj-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; }
.pj-brand-logo {
    width: 40px; height: 40px; object-fit: cover; flex-shrink: 0;
    border-radius: 50%; border: 2px solid var(--pj-green); background: var(--pj-wash);
}
.pj-brand-name {
    font-family: var(--pj-font-d); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--pj-txt);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pj-topbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pj-cart-trigger {
    position: relative; width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    border: none; border-radius: 50%;
    color: #fff; background: var(--pj-accent); cursor: pointer; text-decoration: none;
    box-shadow: var(--pj-shadow-soft);
    transition: background .22s var(--pj-ease), transform .22s var(--pj-ease);
}
.pj-cart-trigger:hover { background: var(--pj-accent-deep); color: #fff; transform: translateY(-1px); }
.pj-cart-trigger svg { width: 21px; height: 21px; }
.pj-cart-badge {
    position: absolute; top: -4px; inset-inline-end: -4px;
    min-width: 20px; height: 20px; padding-inline: 5px;
    display: flex; align-items: center; justify-content: center;
    background: var(--pj-berry); color: #fff;
    border: 2px solid var(--pj-bg);
    border-radius: 999px; font-size: 10px; font-weight: 700; line-height: 1;
}

/* ---------- Notes (session alerts) -------------------------------------- */
.pj-note {
    border: 1px solid var(--pj-line); border-inline-start: 4px solid var(--pj-green);
    background: var(--pj-panel); border-radius: var(--pj-r-sm);
    padding: 14px 16px; margin-block: 14px 0; font-size: 14.5px;
}
.pj-note-success { border-inline-start-color: var(--pj-green); }
.pj-note-danger { border-inline-start-color: var(--pj-accent); }

/* ---------- Hero (01 — pour-fill bottles) -------------------------------- */
.pj-hero {
    position: relative; margin-block-start: 18px;
    border-radius: var(--pj-r); overflow: hidden;
    background: var(--pj-txt);
    box-shadow: var(--pj-shadow);
}
.pj-hero-rail {
    display: flex; height: clamp(380px, 60vh, 560px);
    overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; -ms-overflow-style: none;
}
.pj-hero-rail::-webkit-scrollbar { display: none; }
.pj-hero-slide { flex: 0 0 100%; scroll-snap-align: center; height: 100%; }
.pj-hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pj-hero-scrim {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(8, 24, 12, .82) 0%, rgba(8, 24, 12, .34) 48%, rgba(8, 24, 12, .04) 76%);
}
.pj-hero-cap { position: absolute; inset-inline: 0; bottom: 0; padding: 24px 20px 28px; color: #fff; pointer-events: none; }
.pj-hero-cap .pj-eyebrow { color: #C6F0AE; }
.pj-hero-cap .pj-eyebrow .num { background: var(--pj-accent); }
.pj-hero-cap .pj-eyebrow::after { background: rgba(255, 255, 255, .28); }
.pj-hero-title {
    font-family: var(--pj-font-d); font-weight: 800; letter-spacing: -0.03em;
    font-size: clamp(2rem, 8vw, 3.6rem); line-height: 1.02;
    margin: 12px 0 16px; max-width: 16ch;
}
.pj-hero-title em { font-style: normal; color: var(--pj-citrus); }
.pj-hero-cap .pj-btn { pointer-events: auto; }

/* ---------- Trust strip -------------------------------------------------- */
.pj-trust {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0;
    border-radius: var(--pj-r); margin-block: 18px 8px;
    padding: 16px 8px; background: var(--pj-panel);
    border: 1px solid var(--pj-line);
}
.pj-trust-item {
    position: relative; display: flex; align-items: center; gap: 8px;
    padding-inline: 18px;
    font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--pj-txt-soft);
}
.pj-trust-item i { font-size: 17px; color: var(--pj-green-deep); }
.pj-trust-item + .pj-trust-item::before {
    content: ""; position: absolute; inset-inline-start: -2px; top: 50%; translate: 0 -50%;
    width: 4px; height: 4px; border-radius: 50%; background: var(--pj-accent);
}

/* ---------- Rails (shared) ----------------------------------------------- */
.pj-tilerail, .pj-prodrail, .pj-cat-rail, .pj-thumb-rail {
    display: flex; overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; -ms-overflow-style: none;
    padding-block: 4px;
}
.pj-tilerail::-webkit-scrollbar, .pj-prodrail::-webkit-scrollbar,
.pj-cat-rail::-webkit-scrollbar, .pj-thumb-rail::-webkit-scrollbar { display: none; }
.pj-tilerail { gap: 14px; }
.pj-prodrail { gap: 14px; }

/* ---------- Category tiles (02 — Collections) ---------------------------- */
.pj-tile {
    position: relative; flex: 0 0 min(78%, 360px); aspect-ratio: 4 / 3;
    border-radius: var(--pj-r); overflow: hidden; scroll-snap-align: start;
    text-decoration: none; background: var(--pj-wash); display: block;
    box-shadow: var(--pj-shadow-soft);
}
.pj-tile-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--pj-ease); }
.pj-tile:hover .pj-tile-img { transform: scale(1.06); }
.pj-tile-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 24, 12, .74), rgba(8, 24, 12, 0) 58%); pointer-events: none; }
.pj-tile-cap { position: absolute; inset-inline: 0; bottom: 0; padding: 16px; display: flex; flex-direction: column; gap: 4px; color: #fff; }
.pj-tile-kicker { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #C6F0AE; }
.pj-tile-name { font-family: var(--pj-font-d); font-weight: 800; letter-spacing: -0.02em; font-size: clamp(1.25rem, 4vw, 1.6rem); line-height: 1.1; }
.pj-tile-cta {
    display: inline-flex; align-items: center; gap: 6px; margin-block-start: 6px;
    font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff;
}
.pj-tile-cta i { font-size: 15px; transition: transform .3s var(--pj-ease); }
.pj-tile:hover .pj-tile-cta i { transform: translateX(4px); }
body[dir="rtl"] .pj-tile-cta i { transform: scaleX(-1); }
body[dir="rtl"] .pj-tile:hover .pj-tile-cta i { transform: scaleX(-1) translateX(4px); }

/* Categories page grid of tiles */
.pj-tilegrid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.pj-tilegrid .pj-tile { flex: none; aspect-ratio: 16 / 9; }

/* ---------- Category pill rail (filter view) ------------------------------ */
.pj-cathead { margin-block-start: 24px; }
.pj-cat-rail { gap: 9px; margin-block: 14px 4px; }
.pj-cat-link {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
    border: 1.5px solid var(--pj-line); border-radius: 999px;
    padding: 8px 16px; background: var(--pj-panel);
    font-size: 13px; font-weight: 600;
    color: var(--pj-txt); text-decoration: none; white-space: nowrap;
    scroll-snap-align: start;
    transition: border-color .2s var(--pj-ease), background .2s var(--pj-ease), color .2s var(--pj-ease);
}
.pj-cat-link img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.pj-cat-link:hover { border-color: var(--pj-green); color: var(--pj-green-deep); }
.pj-cat-link.is-active { background: var(--pj-green); color: #fff; border-color: var(--pj-green); }

/* ---------- Product cards (per-product fruit colour + POUR FILL) ---------- */
.pj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pj-prodrail .pj-card { flex: 0 0 min(70%, 280px); scroll-snap-align: start; }

/* Per-product fruit colour: cards set --fruit inline (data-driven from product). */
.pj-card {
    --fruit: var(--pj-green);
    position: relative;
    display: flex; flex-direction: column;
    background: var(--pj-panel);
    border: 1px solid var(--pj-line); border-radius: var(--pj-r);
    overflow: hidden;
    transition: border-color .3s var(--pj-ease), box-shadow .3s var(--pj-ease), transform .3s var(--pj-ease);
}
.pj-card:hover { border-color: color-mix(in srgb, var(--fruit) 50%, var(--pj-line)); box-shadow: var(--pj-shadow); transform: translateY(-3px); }

/* POUR-FILL signature: a colour layer behind the media that scales up from the
   bottom (like juice filling a glass) when the card enters the viewport. */
.pj-card-media {
    position: relative; display: block; aspect-ratio: 1 / 1;
    overflow: hidden; background: var(--pj-wash);
}
.pj-card-media::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to top, color-mix(in srgb, var(--fruit) 55%, transparent), color-mix(in srgb, var(--fruit) 12%, transparent));
    transform: scaleY(1); transform-origin: bottom;
    transition: transform .6s var(--pj-ease);
    pointer-events: none; mix-blend-mode: multiply;
}
.pj-card.is-poured .pj-card-media::before { transform: scaleY(0); }
/* droplet — a tiny dot that falls on hover */
.pj-card-media::after {
    content: ""; position: absolute; z-index: 3;
    top: 8px; inset-inline-start: 50%; translate: -50% 0;
    width: 7px; height: 7px; border-radius: 0 50% 50% 50%;
    background: var(--fruit); rotate: 45deg;
    opacity: 0; transition: none;
}
.pj-card:hover .pj-card-media::after { animation: pj-drop .7s var(--pj-ease) forwards; }
@keyframes pj-drop {
    0%   { opacity: 0; transform: translateY(0) scale(.6); }
    25%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(54px) scale(1); }
}
.pj-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--pj-ease), transform .7s var(--pj-ease); }
.pj-card-img-alt { opacity: 0; }
.pj-card:hover .pj-card-img-alt { opacity: 1; }
.pj-card:hover .pj-card-media .pj-card-img:only-child { transform: scale(1.05); }
.pj-flag {
    position: absolute; top: 10px; inset-inline-start: 10px; z-index: 4;
    background: var(--fruit); color: #fff;
    font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: 5px 11px; border-radius: 999px;
}
.pj-flag-out { background: var(--pj-muted); }
.pj-card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 14px 15px; gap: 4px; }
.pj-card-link { text-decoration: none; color: inherit; min-width: 0; }
.pj-card-name {
    font-family: var(--pj-font-d); font-weight: 700; letter-spacing: -0.01em; font-size: 16px; line-height: 1.22;
    margin: 0; color: var(--pj-txt);
}
.pj-card-meta {
    font-size: 13px; color: var(--pj-muted); margin: 2px 0 0; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* Nutrition chip per product */
.pj-nutri { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 8px; }
.pj-nutri-chip {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 10.5px; font-weight: 700; letter-spacing: .03em;
    color: var(--pj-green-deep); background: var(--pj-wash);
    border-radius: 999px; padding: 4px 9px;
}
.pj-nutri-chip i { font-size: 13px; }
.pj-card-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin-block-start: auto; padding-block-start: 12px;
}
.pj-price-wrap { display: flex; flex-direction: column; min-width: 0; }
.pj-price { font-family: var(--pj-font-d); font-weight: 800; font-size: 17px; color: var(--pj-txt); }
.pj-price-old { font-size: 12.5px; color: var(--pj-muted); text-decoration: line-through; }
.pj-add {
    flex-shrink: 0; width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: var(--fruit); color: #fff !important;
    border: none; border-radius: 50%;
    cursor: pointer; text-decoration: none; font-size: 19px;
    box-shadow: var(--pj-shadow-soft);
    transition: filter .22s var(--pj-ease), transform .22s var(--pj-ease);
}
.pj-add:hover { filter: brightness(1.08); transform: scale(1.06); }

/* ---------- Cleanse / Subscription bundle strips ------------------------- */
.pj-cleanse-rail { gap: 14px; }
.pj-bundle {
    flex: 0 0 min(82%, 320px); scroll-snap-align: start;
    display: flex; flex-direction: column; gap: 6px;
    padding: 20px; border-radius: var(--pj-r);
    background: linear-gradient(155deg, var(--pj-wash), var(--pj-panel));
    border: 1px solid var(--pj-line);
}
.pj-bundle-tag { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pj-accent); }
.pj-bundle-name { font-family: var(--pj-font-d); font-weight: 800; letter-spacing: -0.02em; font-size: 1.4rem; color: var(--pj-txt); margin: 2px 0; }
.pj-bundle-desc { font-size: 13.5px; color: var(--pj-muted); line-height: 1.5; margin: 0 0 6px; }
.pj-bundle-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-block-start: auto; }
.pj-bundle-price { font-family: var(--pj-font-d); font-weight: 800; font-size: 1.25rem; color: var(--pj-green-deep); }

.pj-subscribe {
    display: grid; gap: 16px; align-items: center;
    padding: 26px 20px; border-radius: var(--pj-r);
    background: var(--pj-txt); color: #fff;
    box-shadow: var(--pj-shadow);
}
.pj-subscribe-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--pj-citrus); }
.pj-subscribe-title { font-family: var(--pj-font-d); font-weight: 800; letter-spacing: -0.02em; font-size: clamp(1.5rem, 5vw, 2rem); line-height: 1.08; margin: 8px 0 6px; }
.pj-subscribe-sub { font-size: 14.5px; color: rgba(255, 255, 255, .8); line-height: 1.55; margin: 0 0 6px; max-width: 46ch; }
.pj-subscribe-save {
    display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
    font-size: 12px; font-weight: 700; letter-spacing: .04em;
    background: var(--pj-green); color: #fff; border-radius: 999px; padding: 6px 13px;
}

/* ---------- Reviews scroll ------------------------------------------------ */
.pj-review-rail { gap: 14px; }
.pj-review {
    flex: 0 0 min(82%, 340px); scroll-snap-align: start;
    display: flex; flex-direction: column; gap: 10px;
    padding: 20px; border-radius: var(--pj-r);
    background: var(--pj-panel); border: 1px solid var(--pj-line);
}
.pj-review-stars { color: var(--pj-citrus); font-size: 15px; letter-spacing: 2px; }
.pj-review-text { font-size: 14.5px; line-height: 1.6; color: var(--pj-txt-soft); margin: 0; }
.pj-review-who { display: flex; align-items: center; gap: 9px; margin-block-start: auto; }
.pj-review-ava {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--pj-wash); color: var(--pj-green-deep); font-weight: 800; font-size: 14px;
    font-family: var(--pj-font-d);
}
.pj-review-name { font-weight: 700; font-size: 13px; color: var(--pj-txt); }
.pj-review-role { font-size: 11.5px; color: var(--pj-muted); }

/* ---------- Toolbar (search / price / sort) -------------------------------- */
.pj-toolbar {
    display: flex; flex-direction: column; gap: 10px;
    padding: 14px; margin-block: 16px 22px;
    background: var(--pj-panel);
    border: 1px solid var(--pj-line); border-radius: var(--pj-r);
}
.pj-search, .pj-pricef { display: flex; gap: 8px; min-width: 0; }
.pj-search .pj-input, .pj-pricef .pj-input { flex: 1 1 auto; min-width: 0; }

/* ---------- Pagination ------------------------------------------------------ */
.pj-pagination { margin-block: 28px 8px; }
.pj-pagination .justify-content-end { justify-content: center !important; }
.pj-pagination .pagination { display: flex; gap: 6px; margin: 0; flex-wrap: wrap; justify-content: center; }
.pj-pagination .page-link {
    display: flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px; padding-inline: 8px;
    border: 1.5px solid var(--pj-line); border-radius: 999px;
    background: var(--pj-panel); color: var(--pj-txt);
    font-weight: 700; box-shadow: none;
    transition: border-color .2s var(--pj-ease), background .2s var(--pj-ease);
}
.pj-pagination .page-link:hover { border-color: var(--pj-green); color: var(--pj-green-deep); }
.pj-pagination .page-item.active .page-link { background: var(--pj-green); border-color: var(--pj-green); color: #fff; }
.pj-pagination .page-item.disabled .page-link { color: var(--pj-muted); background: transparent; }

/* ---------- Empty states (pure-CSS bottle mark) ------------------------------ */
.pj-empty {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    text-align: center; padding: 56px 18px; margin-block: 22px;
    background: var(--pj-panel);
    border: 1.5px dashed var(--pj-line-strong); border-radius: var(--pj-r);
}
.pj-empty-mark {
    position: relative; width: 34px; height: 50px;
    border: 2px solid var(--pj-green); border-radius: 8px 8px 14px 14px;
    margin-block: 10px 16px;
}
.pj-empty-mark::before {
    content: ""; position: absolute; top: -9px; inset-inline-start: 50%; translate: -50% 0;
    width: 14px; height: 9px; border: 2px solid var(--pj-green); border-bottom: none; border-radius: 4px 4px 0 0;
}
.pj-empty-mark::after {
    content: ""; position: absolute; inset-inline: 3px; bottom: 3px; height: 40%;
    background: var(--pj-green); border-radius: 0 0 11px 11px; opacity: .5;
}
.pj-empty-title { font-family: var(--pj-font-d); font-weight: 800; font-size: 21px; margin: 0; }
.pj-empty-sub { color: var(--pj-muted); font-size: 14px; margin: 0; max-width: 42ch; }
.pj-empty .pj-btn { margin-block-start: 8px; }

/* ---------- Cart drawer — leaf inversion -------------------------------------- */
#offcanvasEnd.pj-drawer {
    background: var(--pj-txt); color: #fff;
    width: min(420px, 94vw);
    border-inline-start: 1px solid rgba(255, 255, 255, .1);
}
.pj-drawer .offcanvas-header { padding: 18px; border-block-end: 1px solid rgba(255, 255, 255, .12); }
.pj-drawer-title { font-family: var(--pj-font-d); font-weight: 800; letter-spacing: -0.02em; font-size: 20px; color: #fff; margin: 0; }
.pj-drawer .btn-close { filter: invert(1) grayscale(1); opacity: .8; }
.pj-drawer .offcanvas-body { padding: 16px 18px; }

.pj-cart-item {
    display: flex; gap: 12px; margin-block-end: 10px; padding: 11px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--pj-r-sm);
}
.pj-cart-item-img { width: 70px; height: 70px; object-fit: cover; flex-shrink: 0; border-radius: 10px; background: #1f3a26; }
.pj-cart-item-info { flex: 1; min-width: 0; }
.pj-cart-item-name {
    font-family: var(--pj-font-d); font-weight: 700; font-size: 15px;
    color: #fff; margin: 0 0 1px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pj-cart-item-sub {
    display: block; font-size: 12px; color: rgba(255, 255, 255, .58);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pj-cart-item-sub.sm-cart-variants { color: #C6F0AE; font-weight: 600; }
.pj-cart-item-price { margin: 6px 0 9px; font-family: var(--pj-font-d); font-size: 15px; font-weight: 800; color: var(--pj-citrus); }
.pj-cart-item-actions { display: flex; align-items: center; gap: 6px; }
.pj-qty-btn {
    width: 32px; height: 32px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    background: transparent; color: #fff;
    border: 1px solid rgba(255, 255, 255, .26); border-radius: 50%;
    cursor: pointer; transition: background .2s var(--pj-ease), border-color .2s var(--pj-ease);
}
.pj-qty-btn:hover { border-color: var(--pj-green); background: rgb(from var(--tk-secondary, #6BCB3B) r g b / .18); }
.pj-qty-btn svg { width: 15px; height: 15px; }
.pj-qty-num { min-width: 28px; text-align: center; font-weight: 700; font-size: 14px; color: #fff; }
.pj-qty-remove { margin-inline-start: auto; color: var(--pj-berry); border-color: rgb(from var(--tk-accent2, #E0407A) r g b / .42); }
.pj-qty-remove:hover { background: var(--pj-berry); border-color: var(--pj-berry); color: #fff; }

.pj-cart-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 44px 14px; }
.pj-empty-mark-light { border-color: rgba(255, 255, 255, .7); }
.pj-empty-mark-light::before { border-color: rgba(255, 255, 255, .7); }
.pj-empty-mark-light::after { background: var(--pj-green); }
.pj-cart-empty-text { font-family: var(--pj-font-d); font-weight: 700; font-size: 17px; color: rgba(255, 255, 255, .88); margin: 0; }

.pj-drawer-foot { padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); border-block-start: 1px solid rgba(255, 255, 255, .12); }
.pj-cart-total {
    display: flex; justify-content: space-between; align-items: baseline;
    font-family: var(--pj-font-d); font-weight: 800; font-size: 17px;
    color: #fff; margin: 0 0 12px;
}
.pj-cart-total-num { color: var(--pj-citrus); font-size: 20px; }
.pj-place-order {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    height: 50px; width: 100%;
    background: var(--pj-accent); color: #fff !important;
    border-radius: 999px; cursor: pointer; text-decoration: none;
    font-size: 14px; font-weight: 700; letter-spacing: .01em;
    transition: background .22s var(--pj-ease);
}
.pj-place-order:hover { background: var(--pj-accent-deep); color: #fff !important; }
.pj-place-order i { font-size: 18px; }

/* ---------- Modals ------------------------------------------------------------ */
.pj-modal .modal-content {
    position: relative;
    background: var(--pj-panel); color: var(--pj-txt);
    border: 1px solid var(--pj-line); border-radius: var(--pj-r);
    box-shadow: 0 30px 70px rgb(from var(--tk-text, #15301C) r g b / .26);
}
.pj-modal .modal-header { padding: 18px 20px; border-block-end: 1px solid var(--pj-line-soft); align-items: flex-start; }
.pj-modal .modal-title { font-family: var(--pj-font-d); font-weight: 800; letter-spacing: -0.02em; font-size: 20px; }
.pj-modal-sub { display: block; margin-block-start: 2px; font-size: 12.5px; color: var(--pj-muted); }
.pj-modal .modal-footer { border-block-start: 1px solid var(--pj-line-soft); gap: 8px; }
.pj-modal .form-label {
    font-size: 12px; font-weight: 700; letter-spacing: .02em;
    color: var(--pj-txt-soft);
}
.pj-modal .form-control, .pj-modal .form-select {
    border: 1.5px solid var(--pj-line); border-radius: var(--pj-r-sm);
    background: var(--pj-bg); color: var(--pj-txt);
}
.pj-modal .form-control:focus, .pj-modal .form-select:focus {
    border-color: var(--pj-green); box-shadow: 0 0 0 4px rgb(from var(--tk-secondary, #6BCB3B) r g b / .14);
}
.pj-modal .form-check-input:checked { background-color: var(--pj-green); border-color: var(--pj-green); }
.pj-modal .form-check-input:focus { border-color: var(--pj-green); box-shadow: 0 0 0 4px rgb(from var(--tk-secondary, #6BCB3B) r g b / .14); }

/* ---------- Single product ------------------------------------------------------ */
.pj-crumb {
    display: flex; align-items: center; gap: 8px; margin-block: 18px 0;
    font-size: 12px; font-weight: 600; color: var(--pj-muted);
}
.pj-crumb a { color: var(--pj-green-deep); text-decoration: none; }
.pj-crumb a:hover { color: var(--pj-accent); }
.pj-crumb-sep { color: var(--pj-line-strong); }
.pj-crumb-cur { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }

.pj-product { --fruit: var(--pj-green); display: grid; grid-template-columns: 1fr; gap: 26px; margin-block: 22px 10px; }
.pj-gallery { display: flex; flex-direction: column; min-width: 0; }
.pj-gallery-main {
    display: block; position: relative; aspect-ratio: 1 / 1;
    border-radius: var(--pj-r); overflow: hidden; background: var(--pj-wash);
    box-shadow: var(--pj-shadow-soft);
}
.pj-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pj-thumb-rail { gap: 10px; margin-block-start: 10px; }
.pj-thumb {
    flex: 0 0 70px; aspect-ratio: 1 / 1; display: block;
    border: 1.5px solid var(--pj-line); border-radius: 12px;
    overflow: hidden; background: var(--pj-wash); scroll-snap-align: start;
    transition: border-color .2s var(--pj-ease);
}
.pj-thumb:hover { border-color: var(--pj-green); }
.pj-thumb img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }

.pj-product-name {
    font-family: var(--pj-font-d); font-weight: 800; letter-spacing: -0.03em;
    font-size: clamp(1.8rem, 6vw, 2.6rem); line-height: 1.08;
    margin: 10px 0 6px;
}
.pj-product-sub { color: var(--pj-muted); font-size: 15.5px; margin: 0 0 16px; line-height: 1.5; }
.pj-product-price {
    display: flex; align-items: baseline; gap: 12px;
    margin-block: 4px 16px; padding-block-end: 16px;
    border-block-end: 1px solid var(--pj-line);
}
.pj-product-price .pj-price { font-size: 26px; }
.pj-product-price .pj-price-old { font-size: 15px; }
.pj-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 6px; }
.pj-chip {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; letter-spacing: .03em;
    border-radius: 999px; padding: 7px 13px; color: var(--pj-green-deep); background: var(--pj-wash);
}
.pj-chip i { font-size: 14px; }
.pj-chip-accent { color: #fff; background: var(--fruit); }
.pj-concierge-hint {
    display: flex; align-items: center; gap: 8px;
    margin-block: 16px 18px;
    font-size: 12.5px; color: var(--pj-muted); line-height: 1.45;
}
.pj-concierge-hint i { font-size: 17px; color: var(--pj-green-deep); flex-shrink: 0; }

.pj-prose { font-size: 15px; line-height: 1.74; color: var(--pj-txt-soft); }
.pj-prose h1, .pj-prose h2, .pj-prose h3, .pj-prose h4 {
    font-family: var(--pj-font-d); font-weight: 800; letter-spacing: -0.02em; color: var(--pj-txt);
    margin-block: 1.2em .5em;
}
.pj-prose img { border-radius: var(--pj-r-sm); }
.pj-prose a { color: var(--pj-accent); }
.pj-prose table { width: 100%; border-collapse: collapse; }
.pj-prose th, .pj-prose td { border: 1px solid var(--pj-line); padding: 8px 10px; }
.pj-prose blockquote { border-inline-start: 3px solid var(--pj-green); margin-inline: 0; padding-inline-start: 14px; color: var(--pj-txt); }

/* Share include — light re-skin */
.product-share-card .share-title {
    font-size: 12px; font-weight: 700; letter-spacing: .04em;
    color: var(--pj-muted);
}
.product-share-card .share-icon { border-color: var(--pj-line); background: var(--pj-panel); }

/* ---------- Variant picker (restyled chips — neutral sm-* classes) ----------- */
.pj-product-info .sm-variants { margin: 4px 0 18px; }
.pj-product-info .sm-variant-label {
    font-size: 12px; font-weight: 700; letter-spacing: .02em;
    color: var(--pj-txt-soft); opacity: 1; text-transform: none;
}
.pj-product-info .sm-variant-opt {
    border: 1.5px solid var(--pj-line-strong); border-radius: 999px;
    padding: 8px 16px; font-size: 13px; font-weight: 600;
    color: var(--pj-txt); background: var(--pj-panel); opacity: 1;
}
.pj-product-info .sm-variant-opt:hover { border-color: var(--pj-green); color: var(--pj-green-deep); }
.pj-product-info .sm-variant-opt.is-selected {
    border-color: var(--pj-green); border-width: 2px;
    background: var(--pj-green); color: #fff;
}
@supports (background: color-mix(in srgb, red, blue)) {
    .pj-product-info .sm-variant-opt.is-selected { background: var(--pj-green); }
}
.pj-product-info .sm-variant-opt:focus-visible { outline: 2px solid var(--pj-green); outline-offset: 2px; }

/* ---------- Policy page ----------------------------------------------------------- */
.pj-policy { padding-block: 30px 10px; max-width: 860px; }
.pj-policy .pj-display {
    font-size: clamp(1.8rem, 5.4vw, 2.6rem);
    margin-block: 10px 16px; padding-block-end: 16px;
    border-block-end: 1px solid var(--pj-line);
}

/* ---------- Footer (leaf) ------------------------------------------------------------ */
.pj-footer {
    flex-shrink: 0;
    background: var(--pj-txt); color: rgba(255, 255, 255, .78);
    margin-block-start: 58px; padding-block: 40px 26px;
    border-block-start: 4px solid var(--pj-green);
}
.pj-footer a { text-decoration: none; transition: color .2s var(--pj-ease); }
.pj-footer-top {
    display: flex; flex-direction: column; gap: 22px;
    padding-block-end: 24px; border-block-end: 1px solid rgba(255, 255, 255, .12);
}
.pj-footer-brand { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pj-footer-wordmark { font-family: var(--pj-font-d); font-weight: 800; letter-spacing: -0.02em; font-size: 26px; color: #fff; }
.pj-footer-tag { font-size: 13.5px; color: rgba(255, 255, 255, .58); margin: 6px 0 0; max-width: 48ch; line-height: 1.5; }
.pj-social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pj-social a {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%;
    color: #fff; font-size: 17px;
}
.pj-social a:hover { border-color: var(--pj-green); background: var(--pj-green); color: #fff; }
.pj-footer-links {
    display: flex; flex-wrap: wrap; gap: 9px 22px;
    padding-block: 18px; border-block-end: 1px solid rgba(255, 255, 255, .12);
    font-size: 12.5px; font-weight: 600;
}
.pj-footer-links a { color: rgba(255, 255, 255, .65); }
.pj-footer-links a:hover { color: #fff; }
.pj-footer-base {
    display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between;
    padding-block-start: 18px; font-size: 12.5px; color: rgba(255, 255, 255, .55);
}
.pj-footer-base a { color: var(--pj-citrus); }
.pj-footer-base a:hover { color: #fff; }

/* ---------- Mobile dock --------------------------------------------------------------- */
.pj-dock {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 1040;
    display: flex; justify-content: space-around; align-items: stretch;
    background: rgb(from var(--tk-text, #15301C) r g b / .97);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-block-start: 1px solid rgba(255, 255, 255, .12);
    padding-block: 9px calc(9px + env(safe-area-inset-bottom));
}
.pj-dock a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: rgba(255, 255, 255, .6); text-decoration: none; cursor: pointer;
    font-size: 10px; font-weight: 600; letter-spacing: .04em;
}
.pj-dock a i { font-size: 21px; }
.pj-dock a.is-active, .pj-dock a:hover { color: var(--pj-green); }

/* ---------- Preloader / floating alerts (defensive) ------------------------------------ */
.preloader-wrapper {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    background: var(--pj-bg);
}
.pj-loader {
    width: 34px; height: 34px; border-radius: 50%;
    border: 2px solid var(--pj-line);
    border-block-start-color: var(--pj-green);
    animation: pj-spin 1s linear infinite;
}
@keyframes pj-spin { to { transform: rotate(360deg); } }
.alert-float {
    position: fixed; top: 18px; inset-inline: 0; z-index: 3000;
    display: none; border-radius: var(--pj-r-sm);
}

/* ---------- Wallet partial spacing ------------------------------------------------------ */
.scaanme-wallet-buttons { margin-block: 30px 6px !important; }

/* ---------- >=760px layer ----------------------------------------------------------------- */
@media (min-width: 760px) {
    body { padding-block-end: 0; }
    .pj-dock { display: none; }
    .pj-shell { padding-inline: 28px; }
    .pj-section { margin-block: 62px; }
    .pj-topbar-in { height: 72px; }
    .pj-brand-name { font-size: 21px; }
    .pj-hero-cap { padding: 36px 36px 40px; }
    .pj-trust { margin-block: 24px 0; }
    .pj-trust-item { padding-inline: 26px; }
    .pj-tile { flex-basis: 380px; aspect-ratio: 16 / 11; }
    .pj-tile-cap { padding: 20px 22px; }
    .pj-tilegrid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .pj-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    .pj-prodrail { gap: 18px; }
    .pj-prodrail .pj-card { flex-basis: 280px; }
    .pj-card-body { padding: 16px 17px 17px; }
    .pj-card-name { font-size: 17px; }
    .pj-bundle { flex-basis: 340px; }
    .pj-review { flex-basis: 360px; }
    .pj-subscribe { grid-template-columns: 1.4fr .9fr; padding: 36px 34px; align-items: center; }
    .pj-toolbar { flex-direction: row; align-items: center; padding: 14px 16px; }
    .pj-search { flex: 1.5 1 0; }
    .pj-pricef { flex: 1.2 1 0; }
    .pj-toolbar .pj-select { flex: 0 0 210px; width: 210px; }
    .pj-product { grid-template-columns: 1fr 1fr; gap: 48px; margin-block: 40px 16px; }
    .pj-product-info { padding-block-start: 8px; }
    .pj-thumb { flex-basis: 80px; }
    .pj-footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

@media (min-width: 1080px) {
    .pj-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Reduced motion layer (POUR-FILL kill: show FILLED state) ----------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .pj-tile:hover .pj-tile-img,
    .pj-card:hover .pj-card-media .pj-card-img:only-child { transform: none; }
    /* the pour layer collapses immediately (reveal the product, no animation) */
    .pj-card-media::before { transform: scaleY(0) !important; transition: none !important; }
    .pj-card-media::after { display: none; }
}


/* ============================================================
   Cart toast — bulletproof compact pill.
   Overrides the legacy inline showAlert() sizing (width:75% /
   inset-inline:0) that made the Tabler solid alert blow up to a
   half-screen panel. Forces a centered top toast, auto height.
   ============================================================ */
.alert-float {
    position: fixed !important;
    inset-block-start: 16px !important;
    inset-block-end: auto !important;
    bottom: auto !important;
    inset-inline: 16px !important;
    z-index: 4000;
    width: auto !important;
    max-width: 420px !important;
    margin-inline: auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 13px 20px !important;
    border: 0 !important;
    border-radius: 999px !important;
    text-align: center !important;
    font-weight: 700;
    font-size: 14.5px;
    line-height: 1.4;
    background: var(--pj-green-deep) !important;
    color: #fff !important;
    box-shadow: 0 16px 38px -10px rgb(from var(--tk-text, #15301C) r g b / .42);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}
.alert-float.show {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
}
#errorAlertContainer.alert-float { background: var(--pj-accent) !important; }
.alert-float .btn-close,
.alert-float .alert-icon { display: none !important; }
@media (prefers-reduced-motion: reduce) {
    .alert-float { transition: none; }
}


/* ============================================================
   GLOBAL CONTAINMENT BASELINE (founder remark: diagonal-scroll
   drift / horizontal "wiggle" on mobile + zoom-out).
   overflow-x:clip on html is sticky-safe (unlike hidden) and
   stops the horizontal pan; overscroll-behavior-x:none kills the
   rubber-band; max-width:100% + min-width:0 prevent any child
   from forcing the document wider than the viewport.
   ============================================================ */
html { overflow-x: clip; }
body { overflow-x: clip; overscroll-behavior-x: none; max-width: 100%; }
/* horizontal scrollers keep their swipe to themselves */
.car-track, .reel, .film-reel, .tm-track, .letters, .marquee, .marquee-track,
[class*="-track"], [class*="-rail"], [class*="-carousel"], [class*="-scroll"] {
    overscroll-behavior-x: contain;
    max-width: 100vw;
}


/* ============================================================
   FOUNDER-REMARK POLISH PASS — spacing + RTL containment.
   (1) Header close-buttons (cart drawer + order/newsletter/info
       modals) must never glue to / collide with the title.
   (2) Comfortable inner padding so nothing touches an edge.
   (3) Keep prices / numbers LTR; flip directional chevrons.
   ============================================================ */

/* ---- Cart drawer header: guaranteed gap + breathing room ---- */
.pj-drawer .offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-block: calc(16px + env(safe-area-inset-top)) 16px;
}
.pj-drawer .offcanvas-header .btn-close {
    margin: 0;
    flex: 0 0 auto;
    padding: 6px;
}
.pj-drawer-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Modals: header title + close never collide (esp. RTL) ---- */
.pj-modal .modal-content { position: relative; }
.pj-modal .modal-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: nowrap;
    padding-inline-end: 52px;
    position: relative;
}
.pj-modal .modal-header > :first-child { min-width: 0; flex: 1 1 auto; }
.pj-modal .modal-title { overflow-wrap: anywhere; }
.pj-modal .modal-header .btn-close {
    position: absolute;
    inset-block-start: 16px;
    inset-inline-end: 18px;
    inset-inline-start: auto;
    margin: 0;
    z-index: 2;
}
.pj-modal .modal-body .btn-close { position: static; margin-inline-start: auto; }
.pj-modal .modal-body { padding-inline: 20px; }

/* ---- Inputs: long placeholders stay tidy inside the box ---- */
.pj-input, .pj-select,
.pj-modal .form-control, .pj-modal .form-select {
    text-overflow: ellipsis;
}
.pj-modal .form-control, .pj-modal .form-select { padding-inline: 14px; }

/* ============================================================
   RTL refinements (Arabic). Logical props carry most of the
   layout; these handle the bits that need explicit care.
   ============================================================ */

/* Prices, the discount <del>, badges & qty numbers stay LTR so
   "$8" / "$10" never reorder around the currency glyph. */
body[dir="rtl"] .pj-price,
body[dir="rtl"] .pj-price-old,
body[dir="rtl"] .pj-cart-item-price,
body[dir="rtl"] .pj-cart-total-num,
body[dir="rtl"] .pj-bundle-price,
body[dir="rtl"] .pj-qty-num,
body[dir="rtl"] .pj-count {
    direction: ltr;
    unicode-bidi: isolate;
}
/* keep the price block hugging the correct (start) edge of the row */
body[dir="rtl"] .pj-price-wrap { align-items: flex-end; }

/* Bundle/review program names lead with a Latin digit ("1-Day Reset",
   "3-Day Glow"): isolate so the number never reorders behind the word in AR. */
body[dir="rtl"] .pj-bundle-name,
body[dir="rtl"] .pj-review-stars { unicode-bidi: isolate; }

/* numbered eyebrow + kicker isolate so the digit reads LTR inside AR */
body[dir="rtl"] .pj-eyebrow .num,
body[dir="rtl"] .pj-tile-kicker { unicode-bidi: isolate; }

/* Directional links / crumb read RTL */
body[dir="rtl"] .pj-sechead-link,
body[dir="rtl"] .pj-crumb { direction: rtl; }
body[dir="rtl"] .pj-crumb-cur { max-width: 60vw; }

/* Toolbar: in row mode the sort <select> chevron + text read RTL */
body[dir="rtl"] .pj-select { background-position: left .75rem center; }

/* The tile CTA arrow mirrors via scaleX(-1); make the row read RTL too. */
body[dir="rtl"] .pj-tile-cta { flex-direction: row-reverse; justify-content: flex-end; }

/* Trust strip dividers look even either direction */
body[dir="rtl"] .pj-trust-item + .pj-trust-item::before { inset-inline-start: -2px; }
