/* ==========================================================================
   EUPHORIA JEWELLERY — PRODUCT DETAIL PAGE
   Loads after home.css (shares its tokens, header, footer, cards, carousel).
   In Elementor: Theme Builder › Single Product template; paste this with home.css.
   ========================================================================== */

/* Jump targets clear the sticky header */
.ej-ptabs, #ej-reviews { scroll-margin-top: 150px; }

/* ---------- Top: gallery + buy box ---------- */
.ej-pdp__top {
  display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  grid-template-areas: "gallery info" "details info"; grid-template-rows: auto 1fr;
  column-gap: clamp(20px, 3vw, 36px); row-gap: 22px; align-items: start; padding-bottom: clamp(40px, 5vw, 64px);
}
.ej-pdp__top > .ej-gallery { grid-area: gallery; }
.ej-pdp__top > .ej-pdp__info { grid-area: info; }
.ej-pdp__top > .ej-ptabs { grid-area: details; min-width: 0; margin-top: 0; }

/* Gallery */
.ej-gallery { position: relative; min-width: 0; }
.ej-gallery__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ej-gallery__item { position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background: #fff; border: 1px solid #f0f0f0; cursor: zoom-in; }
.ej-gallery__item img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .8s var(--ej-ease), opacity .3s; }
.ej-gallery__item:hover img { transform: scale(1.04); }
.ej-gallery__item img.is-swapping { opacity: .2; }
.ej-gallery__caption { position: absolute; left: 0; right: 0; bottom: 12px; padding-inline: 12px; text-align: center; font-size: 11.5px; color: var(--ej-text); }
.ej-gallery__zoom { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--ej-ink); font-size: 15px; opacity: 0; transition: opacity .25s; }
.ej-gallery__item:hover .ej-gallery__zoom, .ej-gallery__item:focus-visible .ej-gallery__zoom { opacity: 1; }
.ej-gallery__count { display: none; }
.ej-gallery__dots { display: none; }

/* ---------- Buy box ---------- */
.ej-pdp__info { min-width: 0; }
.ej-pdp__eyebrow { margin-bottom: 6px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ej-gold); }
.ej-pdp__title { font-family: var(--ej-font); font-size: clamp(18px, 1.7vw, 21px); font-weight: 400; line-height: 1.45; color: var(--ej-ink); }
.ej-pdp__rating-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.ej-pdp__rating { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ej-ink); }
.ej-pdp__rating .ej-star { color: #e8a33d; }
.ej-pdp__rating .ej-sep { color: #cfcfcf; }
.ej-pdp__rating:hover .ej-pdp__count { text-decoration: underline; }
.ej-pdp__actions { display: flex; gap: 2px; }
.ej-pdp__icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--ej-ink); font-size: 18px; transition: background .2s, color .2s; }
.ej-pdp__icon:hover { background: var(--ej-soft); }
.ej-pdp__icon[aria-pressed="true"] { color: #c0392b; }
.ej-pdp__price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 10px; }
.ej-pdp__price { font-size: 25px; font-weight: 600; letter-spacing: .01em; color: var(--ej-ink); }
.ej-pdp__unit { font-size: 12px; color: var(--ej-muted); }
.ej-pdp__save { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; font-weight: 500; color: #2e7d32; }
.ej-pdp__tax { margin-top: 2px; font-size: 11.5px; color: var(--ej-muted); }
.ej-pdp__link { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ej-ink); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.ej-pdp__link:hover { color: var(--ej-gold); }
.ej-pdp__offer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; background: #fbf4e8; border: 1px solid #f1e3c8; font-size: 12px; color: var(--ej-ink); }
.ej-pdp__offer span { display: flex; align-items: center; gap: 8px; }
.ej-pdp__offer i { font-size: 16px; color: var(--ej-gold); }
.ej-pdp__offer .ej-pdp__link { flex: none; white-space: nowrap; }

/* Options card */
.ej-pdp__card { margin-top: 14px; padding: 0 14px; border: 1px solid var(--ej-line); }
.ej-opt { padding: 14px 0; }
.ej-opt + .ej-opt { border-top: 1px solid var(--ej-line); }
.ej-opt__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.ej-opt__label { font-size: 12.5px; color: var(--ej-ink); }
.ej-opt__value { margin-left: 4px; color: var(--ej-muted); }
.ej-opt__list { display: flex; flex-wrap: wrap; gap: 6px; }
.ej-choice { position: relative; cursor: pointer; }
.ej-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ej-choice__box { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 66px; padding: 8px 8px 7px; border: 1px solid transparent; background: #fff; font-size: 10.5px; line-height: 1.3; color: var(--ej-text); text-align: center; transition: border-color .2s, background .2s, color .2s; }
.ej-choice:hover .ej-choice__box { background: var(--ej-soft); }
.ej-choice input:checked + .ej-choice__box { border-color: #d9d9d9; background: #f5f5f5; color: var(--ej-ink); }
.ej-choice input:focus-visible + .ej-choice__box { outline: 2px solid var(--ej-gold); outline-offset: 2px; }
.ej-choice__icon { width: 32px; height: 32px; display: grid; place-items: center; }
.ej-choice__icon svg { width: 100%; height: 100%; }
.ej-choice__price { font-size: 10px; color: var(--ej-muted); }
.ej-choice--chip .ej-choice__box { min-width: 86px; padding: 9px 12px; border-color: var(--ej-line); font-size: 12px; }
.ej-choice--chip input:checked + .ej-choice__box { border-color: var(--ej-ink); background: #fff; }
.ej-metal { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-weight: 600; color: rgba(0, 0, 0, .5); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.ej-metal--yellow { background: radial-gradient(circle at 35% 30%, #fff4c7, #e7bd52 55%, #b98a22); }
.ej-metal--white, .ej-metal--silver { background: radial-gradient(circle at 35% 30%, #fff, #dde1e5 55%, #a9b0b7); }
.ej-metal--rose { background: radial-gradient(circle at 35% 30%, #ffe7de, #e3a28b 55%, #b06a52); }
.ej-tagchips { display: flex; flex-wrap: wrap; gap: 6px; }
.ej-tagchip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: var(--ej-soft); font-size: 11.5px; color: var(--ej-ink); }
.ej-tagchip i { color: var(--ej-gold); }
.ej-opt__note { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 9px 12px; background: #fbf4e8; font-size: 11.5px; color: var(--ej-ink); }
.ej-opt__note i { font-size: 16px; color: var(--ej-gold); }
.ej-qty { display: inline-flex; align-items: center; border: 1px solid var(--ej-line); }
.ej-qty button { width: 38px; height: 38px; font-size: 16px; transition: background .2s; }
.ej-qty button:hover { background: var(--ej-soft); }
.ej-qty output { min-width: 36px; text-align: center; font-size: 13px; color: var(--ej-ink); }

/* Add-ons */
.ej-addons { margin-top: 16px; }
.ej-addons__label { margin-bottom: 8px; font-size: 12.5px; color: var(--ej-ink); }
.ej-addons__box { border: 1px solid var(--ej-line); }
.ej-addons__tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--ej-soft); }
.ej-addons__tab { padding: 11px 10px; border-bottom: 1px solid var(--ej-line); font-size: 12px; color: var(--ej-muted); transition: color .2s, background .2s; }
.ej-addons__tab[aria-selected="true"] { background: #fff; border-bottom-color: transparent; color: var(--ej-ink); font-weight: 500; }
.ej-addons__panel { padding: 12px; }
.ej-addons__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.ej-addon { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--ej-line); cursor: pointer; transition: border-color .2s, background .2s; }
.ej-addon:hover { background: #fafafa; }
.ej-addon input { margin: 2px 0 0; accent-color: var(--ej-ink); }
.ej-addon:has(input:checked) { border-color: var(--ej-ink); }
.ej-addon__text { flex: 1; min-width: 0; }
.ej-addon strong { display: block; font-size: 12px; font-weight: 500; color: var(--ej-ink); }
.ej-addon small { display: block; font-size: 11px; color: var(--ej-muted); }
.ej-addon__price { font-size: 12px; color: var(--ej-ink); white-space: nowrap; }
.ej-addons__foot { padding: 8px 12px; background: #fbf4e8; text-align: center; font-size: 11.5px; color: var(--ej-gold); }
.ej-addons textarea { width: 100%; min-height: 76px; padding: 10px 12px; border: 1px solid var(--ej-line); font: inherit; font-size: 12.5px; color: var(--ej-ink); resize: vertical; outline: none; }
.ej-addons textarea:focus { border-color: #bdbdbd; }
.ej-addons__count { margin-top: 4px; text-align: right; font-size: 11px; color: var(--ej-muted); }

/* CTA */
.ej-pdp__cta { display: grid; gap: 8px; margin-top: 16px; }
.ej-pdp__cta-row { display: flex; gap: 8px; }
.ej-atb { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 50px; padding: 0 18px; background: var(--ej-ink); color: #fff !important; transition: background .25s; }
.ej-atb:hover { background: #000; }
.ej-atb.is-added { background: #2e7d32; }
.ej-atb__price { font-size: 14px; font-weight: 600; }
.ej-atb__label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.ej-pdp__buy { width: 100%; min-height: 48px; letter-spacing: .14em; text-transform: uppercase; }
.ej-pdp__expert { display: flex; justify-content: center; align-items: center; gap: 8px; padding-top: 2px; font-size: 12px; color: var(--ej-text); }
.ej-pdp__expert i { font-size: 17px; color: #25d366; }
.ej-pdp__expert:hover { color: var(--ej-ink); }

/* Delivery + confidence */
.ej-box { margin-top: 14px; padding: 12px 14px 14px; border: 1px solid var(--ej-line); }
.ej-delivery__eta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ej-ink); }
.ej-delivery__eta i { font-size: 17px; color: var(--ej-gold); }
.ej-delivery__eta strong { font-weight: 500; color: var(--ej-gold); }
.ej-pin { display: flex; margin-top: 10px; border: 1px solid var(--ej-line); }
.ej-pin input { flex: 1; min-width: 0; height: 38px; padding: 0 12px; border: 0; outline: none; font: inherit; font-size: 12.5px; color: var(--ej-ink); }
.ej-pin button { padding: 0 16px; border-left: 1px solid var(--ej-line); font-size: 12px; font-weight: 500; color: var(--ej-ink); }
.ej-pin button:hover { background: var(--ej-soft); }
.ej-pin__msg { min-height: 18px; margin-top: 6px; font-size: 11.5px; }
.ej-pin__msg.is-ok { color: #2e7d32; }
.ej-pin__msg.is-error { color: #b3261e; }
.ej-confidence__title { margin-bottom: 12px; font-size: 12.5px; color: var(--ej-text); }
.ej-confidence ul { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; text-align: center; }
.ej-confidence li { font-size: 10.5px; line-height: 1.35; color: var(--ej-ink); }
.ej-confidence li i { width: 38px; height: 38px; margin: 0 auto 6px; display: grid; place-items: center; border-radius: 50%; background: var(--ej-soft); font-size: 17px; }

/* Specification / price / manufacturer tabs */
.ej-ptabs { margin-top: 14px; border: 1px solid var(--ej-line); }
.ej-ptabs__list { display: flex; gap: 2px; margin: 10px 10px 0; padding: 4px; border-radius: 24px; background: var(--ej-soft); overflow-x: auto; scrollbar-width: none; }
.ej-ptab { flex: 1; padding: 8px 12px; border-radius: 20px; font-size: 12px; color: var(--ej-text); white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.ej-ptab[aria-selected="true"] { background: #fff; color: var(--ej-ink); font-weight: 500; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.ej-ptabs__body { position: relative; max-height: 250px; overflow: hidden; transition: max-height .45s var(--ej-ease); }
.ej-ptabs__body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); pointer-events: none; transition: opacity .3s; }
.ej-ptabs.is-open .ej-ptabs__body { max-height: 1600px; }
.ej-ptabs.is-open .ej-ptabs__body::after { opacity: 0; }
.ej-ptabs__panel { padding: 14px 16px 16px; font-size: 12.5px; }
.ej-ptabs__more { display: flex; justify-content: center; align-items: center; gap: 6px; width: 100%; padding: 8px; border-top: 1px solid var(--ej-line); font-size: 11.5px; color: var(--ej-ink); }
.ej-ptabs__more i { transition: transform .3s; }
.ej-ptabs.is-open .ej-ptabs__more i { transform: rotate(180deg); }
.ej-spec { width: 100%; margin-top: 10px; border-collapse: collapse; }
.ej-spec th, .ej-spec td { padding: 7px 0; border-bottom: 1px dashed #e6e6e6; font-size: 12px; text-align: left; vertical-align: top; }
.ej-spec th { width: 46%; padding-right: 10px; font-weight: 400; color: var(--ej-muted); }
.ej-spec td { color: var(--ej-ink); overflow-wrap: anywhere; }
.ej-spec td.ej-num { text-align: right; }
.ej-spec .is-total th, .ej-spec .is-total td { border-bottom: 0; font-weight: 600; color: var(--ej-ink); }
.ej-ptabs__note { margin-top: 8px; font-size: 11px; color: var(--ej-muted); }

/* ---------- Reviews ---------- */
.ej-rv { background: var(--ej-soft); }
.ej-rv__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.ej-rv__score { width: 100%; max-width: 320px; margin-inline: auto; text-align: center; }
.ej-rv__avg { display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 14px; color: var(--ej-ink); }
.ej-rv__stars { color: #e8a33d; font-size: 16px; letter-spacing: 2px; }
.ej-rv__based { margin-top: 4px; font-size: 12.5px; }
.ej-rv__bars { display: grid; gap: 5px; margin: 14px 0 16px; }
.ej-rv__bar { display: grid; grid-template-columns: 28px 1fr 22px; align-items: center; gap: 8px; font-size: 11px; color: var(--ej-muted); }
.ej-rv__track { position: relative; height: 5px; overflow: hidden; background: #e0e0e0; }
.ej-rv__track span { position: absolute; inset: 0 auto 0 0; background: #e8a33d; }
.ej-rv__write { width: 100%; }
.ej-rv__summary h3 { font-size: 13.5px; font-weight: 500; color: var(--ej-ink); }
.ej-rv__summary p { margin-top: 8px; font-size: 12.5px; color: #8f8f8f; }
.ej-rv__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ej-rv__chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid #d6d6d6; background: #fff; font-size: 11.5px; color: var(--ej-ink); }
.ej-rlist { max-width: 820px; }
.ej-rlist__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.ej-rlist__tab { padding-bottom: 4px; border-bottom: 1px solid var(--ej-ink); font-size: 12.5px; color: var(--ej-ink); }
.ej-rlist__sort { font-size: 12px; }
.ej-rlist__sort select { margin-left: 6px; padding: 6px 8px; border: 1px solid var(--ej-line); background: #fff; font: inherit; font-size: 12px; }
.ej-ritem { padding: 18px 0; border-bottom: 1px solid var(--ej-line); }
.ej-ritem__head { display: flex; gap: 10px; align-items: center; }
.ej-ritem__avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ej-ink); color: #fff; font-size: 11px; font-weight: 500; }
.ej-ritem__name { font-size: 12.5px; font-weight: 600; color: var(--ej-ink); }
.ej-ritem__meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #e8a33d; }
.ej-ritem__meta b { color: var(--ej-ink); }
.ej-ritem__meta time { color: var(--ej-muted); }
.ej-ritem .ej-rv__chip { margin-top: 10px; }
.ej-ritem__title { margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--ej-ink); }
.ej-ritem__text { margin-top: 6px; font-size: 12.5px; line-height: 1.7; }
.ej-ritem__verified { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-size: 11px; color: #2e7d32; }

/* ---------- Dialogs (offers, guides, review form) ---------- */
.ej-modal { width: min(520px, calc(100% - 32px)); max-height: min(86vh, 720px); padding: 0; border: 0; background: #fff; color: var(--ej-text); box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.ej-modal::backdrop { background: rgba(20, 19, 17, .5); }
.ej-modal[open] { animation: ej-pop .3s var(--ej-ease); }
@keyframes ej-pop { from { opacity: 0; transform: translateY(14px); } }
.ej-modal__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--ej-line); }
.ej-modal__title { font-size: 15px; font-weight: 500; color: var(--ej-ink); }
.ej-modal__close { width: 36px; height: 36px; display: grid; place-items: center; font-size: 20px; }
.ej-modal__body { max-height: calc(min(86vh, 720px) - 66px); overflow-y: auto; padding: 16px 20px 22px; font-size: 12.5px; }
.ej-list-rows li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--ej-line); }
.ej-list-rows li:last-child { border-bottom: 0; }
.ej-list-rows i { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fbf4e8; font-size: 19px; color: var(--ej-gold); }
.ej-list-rows strong { display: block; font-size: 13px; font-weight: 500; color: var(--ej-ink); }
.ej-list-rows small { font-size: 12px; color: var(--ej-muted); }
.ej-guide-row { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ej-line); }
.ej-guide-row svg { width: 56px; height: 56px; }
.ej-guide-row strong { font-size: 13px; font-weight: 500; color: var(--ej-ink); }
.ej-guide-row small { font-size: 12px; color: var(--ej-muted); }
.ej-modal__note { margin-top: 12px; font-size: 11.5px; color: var(--ej-muted); }
.ej-form label, .ej-form .ej-form__label { display: block; margin: 14px 0 6px; font-size: 12px; color: var(--ej-ink); }
.ej-form input[type="text"], .ej-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #d9d9d9; font: inherit; font-size: 13px; color: var(--ej-ink); outline: none; }
.ej-form input[type="text"]:focus, .ej-form textarea:focus { border-color: var(--ej-ink); }
.ej-form textarea { min-height: 96px; resize: vertical; }
.ej-form .ej-btn { width: 100%; margin-top: 16px; }
.ej-form__error { min-height: 18px; margin-top: 8px; font-size: 12px; color: #b3261e; }
.ej-starpick { display: inline-flex; flex-direction: row-reverse; gap: 4px; border: 0; margin: 0; padding: 0; }
.ej-starpick input { position: absolute; opacity: 0; pointer-events: none; }
.ej-starpick label { margin: 0 !important; font-size: 26px; line-height: 1; color: #d6d6d6; cursor: pointer; transition: color .15s; }
.ej-starpick input:checked ~ label, .ej-starpick label:hover, .ej-starpick label:hover ~ label { color: #e8a33d; }
.ej-starpick input:focus-visible + label { outline: 2px solid var(--ej-gold); outline-offset: 2px; }

/* Lightbox */
.ej-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #fff; }
.ej-lightbox::backdrop { background: #fff; }
.ej-lightbox img { width: 100%; height: 100% !important; padding: 56px 72px; object-fit: contain; }
.ej-lightbox__btn { position: absolute; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ej-soft); color: var(--ej-ink); font-size: 20px; transition: background .2s; }
.ej-lightbox__btn:hover { background: #e6e6e6; }
.ej-lightbox__close { top: 16px; right: 16px; }
.ej-lightbox__prev { top: 50%; left: 16px; transform: translateY(-50%); }
.ej-lightbox__next { top: 50%; right: 16px; transform: translateY(-50%); }
.ej-lightbox__count { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font-size: 12px; color: var(--ej-muted); }

/* Sticky add-to-bag bar */
.ej-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; background: #fff; box-shadow: 0 -6px 24px rgba(0, 0, 0, .08); transform: translateY(110%); transition: transform .35s var(--ej-ease); }
.ej-sticky.is-show { transform: none; }
.ej-sticky__inner { display: flex; align-items: center; gap: 14px; min-height: 72px; }
.ej-sticky img { width: 52px; height: 52px !important; flex: none; object-fit: contain; border: 1px solid var(--ej-line); }
.ej-sticky__text { flex: 1; min-width: 0; }
.ej-sticky__title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12.5px; color: var(--ej-ink); }
.ej-sticky__meta { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; color: var(--ej-muted); }
.ej-sticky .ej-atb { flex: 0 0 auto; min-width: 280px; }
body.ej-has-sticky .ej-wa { bottom: 92px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .ej-pdp__top { grid-template-columns: 1fr; grid-template-areas: "gallery" "info" "details"; grid-template-rows: none; }
  .ej-gallery { margin-inline: calc(var(--ej-gutter) * -1); }
  .ej-gallery__grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 62%; gap: 8px; padding-inline: var(--ej-gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--ej-gutter); scrollbar-width: none; }
  .ej-gallery__grid::-webkit-scrollbar { display: none; }
  .ej-gallery__item { scroll-snap-align: start; }
  .ej-gallery__dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
  .ej-gallery__dots .ej-dot { width: 6px; height: 6px; }
  .ej-gallery__dots .ej-dot.is-active { width: 18px; }
  .ej-rv__grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .ej-gallery__grid { grid-auto-columns: 100%; gap: 0; padding-inline: 0; scroll-padding-inline: 0; }
  .ej-gallery__item { border: 0; }
  .ej-gallery__count { display: block; position: absolute; right: 12px; top: 12px; z-index: 1; padding: 3px 10px; border-radius: 12px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; }
  .ej-gallery__zoom { display: none; }
  .ej-addons__grid { grid-template-columns: 1fr; }
  .ej-ptab { padding: 8px 6px; font-size: 11.5px; }
  .ej-confidence ul { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
  .ej-modal { width: 100%; max-width: 100%; margin: auto 0 0; max-height: 88vh; }
  .ej-modal__body { max-height: calc(88vh - 66px); }
  .ej-lightbox img { padding: 60px 8px; }
  .ej-sticky img, .ej-sticky__meta { display: none; }
  .ej-sticky__inner { gap: 10px; min-height: 64px; }
  .ej-sticky .ej-atb { min-width: 0; flex: 1 1 60%; min-height: 46px; padding: 0 14px; }
  .ej-sticky__title { font-size: 12px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  body.ej-has-sticky .ej-wa { bottom: 80px; }
}
