/* =========================================================
   Sobji Core 1.24.0 – Gift card page ([sobji_gift_card_shop], /gift-card/)
   Moved from the page's own HTML block (developer note, 21 Nov 2026). Loaded only where the shortcode renders
   (Sobji_Gift_Cards::page_assets). The form itself is styled by account.css + gift-cards.css.
   Plugin output is marked data-sobji="gc-…"; gift-card-page.js removes an old hand-written grid / falling layer.
   ========================================================= */

/* 1.25.0: Great Vibes is self-hosted (public/fonts, OFL) under its own family name, so Cloudflare Fonts or a cache
   plugin rewriting Google Fonts can't leave "Gift" in a generic cursive. Preloaded on the gift card page. */
@font-face{font-family:"Sobji Great Vibes";src:url("../fonts/great-vibes-latin-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212}

/* ---------- Hero and "How it works" (still in the page block; kept here so its <style> can go) ---------- */
/* 1.25.0: hero redesigned (CSS only – the markup and its Bangla dictionary entries stay as they are):
   gift badge on top, richer gradient with a soft highlight and a faint large gift, fluid balanced heading. */
.sgc-hero{position:relative;overflow:hidden;isolation:isolate;color:#fff;border-radius:20px;padding:30px 30px 28px;margin-bottom:24px;
  background:radial-gradient(120% 90% at 100% 0%,rgba(255,255,255,.16) 0,rgba(255,255,255,0) 55%),radial-gradient(80% 70% at 0% 100%,rgba(246,176,44,.16) 0,rgba(246,176,44,0) 60%),linear-gradient(140deg,#174d2f 0%,#1f6b3f 55%,#2e8b57 100%);
  box-shadow:0 14px 30px rgba(23,77,47,.22)}
.sgc-hero::before{content:"";display:block;width:44px;height:44px;margin:0 0 14px;border-radius:14px;background:rgba(255,255,255,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M12 8v13'/%3E%3Cpath d='M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7'/%3E%3Cpath d='M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5'/%3E%3C/svg%3E") center/22px no-repeat;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
.sgc-hero::after{content:"";position:absolute;z-index:-1;right:-34px;bottom:-40px;width:180px;height:180px;opacity:.09;transform:rotate(-12deg);pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M12 8v13'/%3E%3Cpath d='M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7'/%3E%3Cpath d='M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5'/%3E%3C/svg%3E") center/contain no-repeat}
.sgc-hero h2{color:#fff;margin:0 0 10px;font-size:clamp(22px,5.6vw,30px);font-weight:800;line-height:1.22;letter-spacing:-.015em;text-wrap:balance;max-width:24ch}
.sgc-hero p{margin:0;color:rgba(255,255,255,.9);font-size:15.5px;line-height:1.6;max-width:52ch;text-wrap:pretty}
/* "Up to N% off" label, top right (added by gift-card-page.js from the offer settings) */
.sgc-hero-badge{position:absolute;z-index:2;top:30px;right:30px;display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 13px 0 11px;border-radius:999px;background:#f6b02c;color:#1d2327;font-size:13px;font-weight:800;line-height:1;letter-spacing:.01em;white-space:nowrap;box-shadow:0 6px 16px rgba(0,0,0,.2),inset 0 0 0 1px rgba(255,255,255,.35)}
.sgc-hero-badge::before{content:"";flex:none;width:14px;height:14px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.6 2.6A2 2 0 0 0 11.2 2H4a2 2 0 0 0-2 2v7.2a2 2 0 0 0 .6 1.4l8.7 8.7a2.4 2.4 0 0 0 3.4 0l6.6-6.6a2.4 2.4 0 0 0 0-3.4z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.6 2.6A2 2 0 0 0 11.2 2H4a2 2 0 0 0-2 2v7.2a2 2 0 0 0 .6 1.4l8.7 8.7a2.4 2.4 0 0 0 3.4 0l6.6-6.6a2.4 2.4 0 0 0 0-3.4z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E") center/contain no-repeat}
@media (max-width:600px){
  .sgc-hero-badge{top:22px;right:20px;height:28px;font-size:12px;padding:0 11px 0 9px}
  .sgc-hero{padding:22px 20px 22px;border-radius:16px;margin-bottom:18px}
  .sgc-hero::before{width:40px;height:40px;border-radius:12px;margin-bottom:12px;background-size:20px}
  .sgc-hero::after{width:130px;height:130px;right:-26px;bottom:-30px}
  .sgc-hero p{font-size:14.5px;line-height:1.55}
}
.sgc-how{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin:8px 0 28px}
.sgc-how div{background:#f2f8f3;border-radius:12px;padding:14px;font-size:14px}
.sgc-how b{display:block;color:#1f5f3a;margin-bottom:4px}

/* ---------- Offer grid: 4 / 3 / 2 / 1 per row ---------- */
.sgc-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:0 0 28px}
@media (max-width:1100px){.sgc-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:900px){.sgc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.sgc-grid{grid-template-columns:1fr}}
.sobji-gcshop .sgc-grid{margin:0}

/* ---------- Offer card ---------- */
.sgc-card{position:relative;overflow:hidden;cursor:pointer;background:linear-gradient(145deg,#174d2f,#2c7a4b);color:#fff;border-radius:16px;padding:22px;min-height:170px;box-shadow:0 6px 18px rgba(0,0,0,.12);transition:transform .15s,box-shadow .15s}
.sgc-card:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(0,0,0,.18)}
.sgc-card:focus-visible{outline:3px solid #9fd7ad;outline-offset:3px}
.sgc-card.is-picked{box-shadow:0 0 0 3px #f5b700,0 10px 24px rgba(0,0,0,.18)}
.sgc-brand{font-weight:700;font-size:15px}
.sgc-brand small{font-weight:500;opacity:.8;letter-spacing:.08em;font-size:10px}
.sgc-val{font-size:32px;font-weight:800;margin:14px 0 6px}
.sgc-card--custom .sgc-val{letter-spacing:.04em}
.sgc-pay{font-size:14px}
.sgc-pay s{opacity:.65;margin-left:4px}
.sgc-save{display:inline-block;margin-top:8px;background:#fff;color:#1f5f3a;border-radius:20px;padding:2px 10px;font-size:12px;font-weight:700}
.sgc-badge{position:absolute;top:12px;right:12px;background:#f5b700;color:#222;font-weight:800;font-size:12px;border-radius:20px;padding:3px 9px}

/* Hover light sweep: slanted band, left → right, once per hover */
.sgc-card::before{content:"";position:absolute;top:0;left:-80%;width:55%;height:100%;background:linear-gradient(105deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.28) 50%,rgba(255,255,255,0) 100%);transform:skewX(-20deg);pointer-events:none;z-index:1}
.sgc-card:hover::before{animation:sgcSweep .9s ease-out}
@keyframes sgcSweep{0%{left:-80%}100%{left:140%}}

/* "+" button: half turn on hover + pulse ring */
.sgc-plus{position:absolute;right:18px;bottom:18px;width:46px;height:46px;border-radius:50%;background:#fff;color:#1f5f3a;display:flex;align-items:center;justify-content:center;font-size:30px;font-weight:400;line-height:1;box-shadow:0 4px 12px rgba(0,0,0,.18);transition:transform .45s cubic-bezier(.34,1.56,.64,1)}
.sgc-plus::after{content:"";position:absolute;inset:0;border-radius:50%;box-shadow:0 0 0 0 rgba(255,255,255,.7);opacity:0;pointer-events:none}
.sgc-plus:hover{transform:rotate(180deg)}
.sgc-plus:hover::after{animation:sgcPulse 1.4s ease-out infinite}
@keyframes sgcPulse{0%{opacity:.9;box-shadow:0 0 0 0 rgba(255,255,255,.75)}100%{opacity:0;box-shadow:0 0 0 16px rgba(255,255,255,0)}}

/* ---------- Preview card (inside [sobji_gift_card_shop]; real elements since 1.24.0) ---------- */
.sobji-gcshop-preview.sgc-pv{isolation:isolate;box-shadow:inset 0 0 0 1px rgba(233,207,134,.28),inset 0 0 0 6px rgba(0,0,0,.04),0 14px 34px rgba(14,58,34,.28)}

/* Title: white, bold, spaced capitals, inset from top/left */
.sgc-pv .sobji-gcshop-preview-brand,.sgc-pv .sobji-gcshop-preview-brand *{font-family:inherit;font-style:normal;font-size:11px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;line-height:1.4;color:#fff}
.sgc-pv .sobji-gcshop-preview-brand{display:block;margin:6px 0 0 6px}

/* Logo, top right */
.sgc-pv-logo{position:absolute;top:20px;right:26px;width:60px;height:auto;z-index:2;pointer-events:none}

/* "Gift" in gold script with "CARD" just below, bottom right */
.sgc-pv-mark{position:absolute;right:30px;bottom:18px;display:flex;flex-direction:column;align-items:flex-end;z-index:2;pointer-events:none}
/* The side padding stops background-clip:text from cutting off the swash of the G. */
.sgc-pv-gift{font-family:"Sobji Great Vibes","Great Vibes","Brush Script MT",cursive;font-weight:400;font-size:27px;line-height:1.15;padding:4px 6px 8px 12px;margin:0 0 -8px -2px;overflow:visible;display:inline-block;background:linear-gradient(115deg,#a87a28 0%,#e9c873 25%,#fff4cf 45%,#d8aa4f 62%,#f2d98f 80%,#9c7024 100%);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;filter:drop-shadow(0 1px 0 rgba(0,0,0,.4))}
.sgc-pv-card{margin-top:-2px;font-family:inherit;font-style:normal;font-size:8.5px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;line-height:1;color:#e9cf86}

/* Looping diagonal sweep, bottom-left → top-right: 5.5 s pass, 5.5 s pause */
.sgc-pv-sweep{position:absolute;inset:-60%;background:linear-gradient(45deg,rgba(255,255,255,0) 44%,rgba(255,255,255,.07) 47%,rgba(255,255,255,.24) 50%,rgba(255,255,255,.07) 53%,rgba(255,255,255,0) 56%);pointer-events:none;z-index:3;transform:translate(-55%,55%);animation:sgcSweepDiag 11s ease-in-out infinite}
@keyframes sgcSweepDiag{0%,50%{transform:translate(-55%,55%)}100%{transform:translate(55%,-55%)}}

/* The old page block drew the logo, "Gift", "card" and the sweep with pseudo-elements (WORKAROUND rules).
   While that <style> is still on the page, switch them off on the plugin's preview so nothing shows twice. */
.sgc-pv::before,.sgc-pv .sobji-gcshop-preview-amt::after,.sgc-pv .sobji-gcshop-preview-chip::after,.sgc-pv .sobji-gcshop-preview-brand::after{content:none!important;animation:none!important;background:none!important}

/* Falling vegetable layer (behind the content; needs isolation:isolate on the card) */
.sgc-fall{position:absolute;inset:0;overflow:hidden;z-index:-1;pointer-events:none}
.sgc-fall[hidden]{display:none!important}
.sgc-fall span{position:absolute;top:-32px;line-height:1;opacity:.38;filter:saturate(.85) drop-shadow(0 1px 2px rgba(0,0,0,.2));animation:sgcFall linear infinite;will-change:transform}
.sgc-fall span.r{animation-name:sgcFallSpin}
@keyframes sgcFall{0%{transform:translateY(0)}100%{transform:translateY(270px)}}
@keyframes sgcFallSpin{0%{transform:translateY(0) rotate(0)}100%{transform:translateY(270px) rotate(360deg)}}

/* ---------- Reduced motion: no sweeps, no turn, no falling icons ---------- */
@media (prefers-reduced-motion:reduce){
  .sgc-card,.sgc-card:hover{transition:none;transform:none}
  .sgc-plus,.sgc-plus:hover{transition:none;transform:none}
  .sgc-plus:hover::after,.sgc-card:hover::before,.sgc-pv-sweep,.sgc-fall span{animation:none}
  .sgc-pv-sweep{display:none}
  .sgc-fall{display:none}
}
