/* =====================================================================
   South Gate – Hot offers "spotlight deck"
   Works with flyers of any size: each artwork sits on a blurred copy of itself
   ===================================================================== */
.sg_hx { --hx-navy: #0B1F35; --hx-deep: #061322; --hx-red: var(--accent, #E31E26); --hx-gold: #C9A24E; --hx-cream: #FFE2A8;
  position: relative; overflow: hidden; isolation: isolate; padding: 110px 0 90px; color: rgba(255,255,255,.78);
  background: radial-gradient(60% 70% at 85% 10%, rgba(227,30,38,.38), transparent 60%), radial-gradient(50% 60% at 0% 100%, rgba(26,143,201,.22), transparent 60%), linear-gradient(160deg, var(--hx-navy) 0%, var(--hx-deep) 100%); }

/* ambient colour taken from the active flyer */
.sg_hx_amb { position: absolute; inset: -10%; z-index: -2; pointer-events: none; }
.sg_hx_amb span { position: absolute; inset: 0; background: var(--art) center / cover; filter: blur(90px) saturate(1.4); opacity: 0; transform: scale(1.1); transition: opacity 1.4s ease; }
.sg_hx_amb span.is-on { opacity: .22; }
.sg_hx::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(6,19,34,.35), rgba(6,19,34,.1) 40%, rgba(6,19,34,.55)); }
.sg_hx_word { position: absolute; right: -2%; bottom: -40px; z-index: -1; font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: clamp(140px, 22vw, 340px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.08); pointer-events: none; user-select: none; }

/* heading */
.sg_hx_head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 56px; }
.sg_hx_eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.sg_hx_flame { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--hx-red); color: #fff; font-size: 14px; box-shadow: 0 0 0 6px rgba(227,30,38,.22), 0 10px 26px -6px rgba(227,30,38,.8); animation: sgFlame 2.2s ease-in-out infinite; }
.sg_hx_title { color: #fff !important; font-size: clamp(38px, 4.4vw, 64px) !important; line-height: 1.02 !important; font-weight: 700 !important; letter-spacing: -.04em !important; margin: 0 0 16px !important; }
.sg_hx_title em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: 0; color: var(--hx-cream) !important; }
.sg_hx_text { margin: 0; max-width: 50ch; font-size: 16px; line-height: 1.7; color: rgba(255,255,255,.7); }
.sg_hx_ctrl { display: flex; align-items: center; gap: 10px; }
.sg_hx_count { display: flex; align-items: baseline; gap: 6px; margin-right: 14px; font-variant-numeric: tabular-nums; }
.sg_hx_count b { font-size: 46px; font-weight: 800; color: #fff; letter-spacing: -.04em; line-height: 1; }
.sg_hx_count span { font-size: 16px; color: rgba(255,255,255,.5); }
.sg_hx_arrow { width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.04); color: #fff; display: grid; place-items: center; cursor: pointer; transition: .25s; backdrop-filter: blur(6px); }
.sg_hx_arrow:hover { background: #fff; color: var(--hx-navy); border-color: #fff; }
.sg_hx_all { margin-left: 6px; display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 40px; background: #fff; color: var(--hx-navy) !important; font-weight: 700; transition: .25s; }
.sg_hx_all:hover { background: var(--hx-red); color: #fff !important; }

/* stage */
.sg_hx_stage { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 70px; align-items: center; }

/* deck */
.sg_hx_deck { --h: clamp(460px, 44vw, 620px); position: relative; height: var(--h); perspective: 1800px; }
.sg_hx_card { position: absolute; top: 0; left: 0; width: calc(var(--h) * .8); height: var(--h); margin: 0; border-radius: 24px; overflow: hidden; background: var(--hx-navy); isolation: isolate; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 60px 90px -40px rgba(0,0,0,.75); transform-origin: 50% 100%;
  transition: transform .9s cubic-bezier(.2,.8,.2,1), opacity .7s ease, filter .7s ease; will-change: transform; }
.sg_hx_card_bg { position: absolute; inset: -40px; z-index: -1; background: var(--art) center / cover; filter: blur(26px) saturate(1.3) brightness(.75); transform: scale(1.1); }
.sg_hx_card_img { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 14px; }
.sg_hx_card_img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.sg_hx_card[data-pos="0"]:hover .sg_hx_card_img img { transform: scale(1.025); }
.sg_hx_shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.28) 46%, transparent 60%); transform: translateX(-120%); }
.sg_hx_card[data-pos="0"] .sg_hx_shine { animation: hxShine 1.4s .35s ease forwards; }
@keyframes hxShine { to { transform: translateX(120%); } }
.sg_hx_zoom { position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.95); color: var(--hx-navy); opacity: 0; transform: translateY(8px); transition: .3s; }
.sg_hx_card[data-pos="0"]:hover .sg_hx_zoom { opacity: 1; transform: none; }
.sg_hx_zoom:hover { background: var(--hx-red); color: #fff; }

/* positions in the deck */
.sg_hx_card[data-pos="0"] { z-index: 5; transform: none; opacity: 1; }
.sg_hx_card[data-pos="1"] { z-index: 4; transform: translateX(15%) translateZ(-120px) rotate(5deg); opacity: .85; filter: brightness(.6) saturate(.9); }
.sg_hx_card[data-pos="2"] { z-index: 3; transform: translateX(27%) translateZ(-240px) rotate(9deg); opacity: .5; filter: brightness(.45) saturate(.8); }
.sg_hx_card[data-pos="-1"] { z-index: 6; transform: translateX(-70%) translateY(30px) rotate(-14deg); opacity: 0; pointer-events: none; }
.sg_hx_card[data-pos="9"] { z-index: 1; transform: translateX(50%) translateZ(-300px) rotate(14deg); opacity: 0; pointer-events: none; }
.sg_hx_card[data-pos="1"]:hover { filter: brightness(.8); }

/* info */
.sg_hx_info { position: relative; z-index: 6; }
.sg_hx_panels { display: grid; }
.sg_hx_panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(24px); transition: opacity .6s ease, transform .8s cubic-bezier(.2,.8,.2,1), visibility 0s .6s; }
.sg_hx_panel.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .7s .2s ease, transform .9s .2s cubic-bezier(.2,.8,.2,1), visibility 0s; }
.sg_hx_loc { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--hx-gold); margin: 0 0 16px; }
.sg_hx_num { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; font-size: 26px; letter-spacing: 0; color: rgba(255,255,255,.35); margin-right: 6px; }
.sg_hx_name { margin: 0 0 22px !important; font-size: clamp(28px, 3vw, 44px) !important; line-height: 1.1 !important; font-weight: 700 !important; letter-spacing: -.03em !important; }
.sg_hx_name a { color: #fff !important; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .5s; }
.sg_hx_name a:hover { background-size: 100% 2px; }
.sg_hx_chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.sg_hx_chips span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 30px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; }
.sg_hx_chips .is-badge { background: var(--hx-red); border-color: var(--hx-red); }
.sg_hx_chips .is-new { background: linear-gradient(135deg, #E6C77E, #B38A35); border-color: transparent; color: #1d1606; }
.sg_hx_chips .is-urgent { border-color: rgba(255,170,90,.6); color: #FFD3A3; }
.sg_hx_chips .is-urgent i { animation: sgFlame 1.6s ease-in-out infinite; }
.sg_hx_price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 22px 0; margin-bottom: 30px; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.sg_hx_price small { width: 100%; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.sg_hx_price b { font-size: clamp(34px, 3.4vw, 46px); font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1.05; }
.sg_hx_price b.is-req { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: 0; color: var(--hx-cream); }
.sg_hx_price em { font-style: normal; font-size: 14px; color: rgba(255,255,255,.6); }
.sg_hx_btns { display: flex; flex-wrap: wrap; gap: 12px; }
.sg_hx_btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 28px; border-radius: 40px; font-weight: 700; font-size: 15px; transition: transform .3s, background .3s, color .3s, box-shadow .3s; }
.sg_hx_btn.is-main { background: var(--hx-red); color: #fff !important; box-shadow: 0 18px 34px -16px rgba(227,30,38,.9); }
.sg_hx_btn.is-main:hover { transform: translateY(-2px); background: #fff; color: var(--hx-navy) !important; }
.sg_hx_btn.is-wa { background: rgba(37,211,102,.14); color: #6BF0A0 !important; border: 1px solid rgba(37,211,102,.35); }
.sg_hx_btn.is-wa:hover { background: #25D366; color: #fff !important; }
.sg_hx_btn.is-icon { width: 56px; padding: 0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.2); color: #fff !important; }
.sg_hx_btn.is-icon:hover { background: #fff; color: var(--hx-navy) !important; }
.sg_hx_timer { margin-top: 38px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; max-width: 420px; }
.sg_hx_timer span { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--hx-red), var(--hx-gold)); }

/* filmstrip */
.sg_hx_strip { display: flex; gap: 14px; margin-top: 64px; overflow-x: auto; padding: 6px 2px 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
.sg_hx_strip::-webkit-scrollbar { display: none; }
.sg_hx_thumb { flex: 1 0 230px; max-width: 300px; display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: #fff; text-align: left; cursor: pointer; scroll-snap-align: start; transition: background .3s, border-color .3s, transform .3s; }
.sg_hx_thumb:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }
.sg_hx_thumb.is-on { background: #fff; border-color: #fff; color: var(--hx-navy); }
.sg_hx_thumb_img { flex: 0 0 52px; height: 64px; border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.1); }
.sg_hx_thumb_img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.sg_hx_thumb_txt { min-width: 0; }
.sg_hx_thumb_txt small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--hx-gold); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg_hx_thumb.is-on .sg_hx_thumb_txt small { color: var(--hx-red); }
.sg_hx_thumb_txt b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.3; font-weight: 700; }

/* one offer only */
.sg_hx.is-single .sg_hx_count { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) { .sg_hx_stage { gap: 46px; } .sg_hx_deck { --h: clamp(420px, 46vw, 540px); } }
@media (max-width: 991px) {
  .sg_hx { padding: 80px 0 70px; }
  .sg_hx_head { margin-bottom: 40px; }
  .sg_hx_stage { grid-template-columns: 1fr; gap: 40px; }
  .sg_hx_deck { --h: min(580px, 100vw); width: calc(var(--h) * .8); margin: 0 auto; transform: translateX(-6%); }
  .sg_hx_card[data-pos="1"] { transform: translateX(10%) translateZ(-120px) rotate(4deg); }
  .sg_hx_card[data-pos="2"] { transform: translateX(18%) translateZ(-240px) rotate(8deg); }
  .sg_hx_zoom { opacity: 1; transform: none; }
  .sg_hx_info { text-align: center; }
  .sg_hx_loc, .sg_hx_chips, .sg_hx_btns, .sg_hx_price { justify-content: center; }
  .sg_hx_timer { margin-left: auto; margin-right: auto; }
}
@media (max-width: 575px) {
  .sg_hx { padding: 64px 0 56px; }
  .sg_hx_head { gap: 22px; }
  .sg_hx_ctrl { width: 100%; }
  .sg_hx_count { margin-right: auto; }
  .sg_hx_count b { font-size: 36px; }
  .sg_hx_arrow { width: 48px; height: 48px; }
  .sg_hx_all { padding: 13px 18px; font-size: 14px; }
  .sg_hx_deck { --h: 100vw; transform: translateX(-7%); }
  .sg_hx_card { border-radius: 20px; }
  .sg_hx_btn { height: 52px; padding: 0 20px; }
  .sg_hx_btn.is-main, .sg_hx_btn.is-wa { flex: 1 1 100%; }
  .sg_hx_btn.is-icon { display: none; }
  .sg_hx_strip { margin-top: 40px; }
  .sg_hx_thumb { flex-basis: 200px; }
}
@media (prefers-reduced-motion: reduce) { .sg_hx_card, .sg_hx_panel, .sg_hx_amb span { transition: none; } .sg_hx_shine { display: none; } }
.sg_hx_chips:not(:has(span)) { display: none; }

/* optional background photo (back office › Settings › Home page) */
.sg_hx.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -3; background: var(--hx-photo) center / cover no-repeat; }
.sg_hx.has-photo .sg_hx_amb span.is-on { opacity: .12; }
.sg_hx.has-photo::after { background: linear-gradient(90deg, rgba(6,19,34,.88) 0%, rgba(6,19,34,.72) 45%, rgba(6,19,34,.62) 100%), linear-gradient(180deg, rgba(6,19,34,.35), rgba(6,19,34,.65)); }
.sg_hx.has-photo.is-light::after { background: linear-gradient(90deg, rgba(6,19,34,.8) 0%, rgba(6,19,34,.55) 45%, rgba(6,19,34,.4) 100%), linear-gradient(180deg, rgba(6,19,34,.2), rgba(6,19,34,.55)); }
.sg_hx.has-photo.is-strong::after { background: linear-gradient(90deg, rgba(6,19,34,.94) 0%, rgba(6,19,34,.85) 50%, rgba(6,19,34,.78) 100%); }
@media (max-width: 767px) { .sg_hx.has-photo::after { background: rgba(6,19,34,.8); } .sg_hx.has-photo.is-light::after { background: rgba(6,19,34,.68); } .sg_hx.has-photo.is-strong::after { background: rgba(6,19,34,.9); } }
