/* ============================================================
   Yuki Swag — storefront styles
   Design language matched to yukidata.com (hello-elementor):
   Figtree headings · amber pill CTAs · dark-purple glow · lavender
   All selectors namespaced under .yuki-swag to avoid theme clashes.
   ============================================================ */

.yuki-swag {
  /* ---- design tokens ---- */
  --ys-amber: #F7AF4D;
  --ys-amber-dark: #e89a2c;
  --ys-purple: #763AED;
  --ys-lavender: #C0B3FD;
  --ys-lavender-soft: #EDE9FF;
  --ys-ink: #1F2124;
  --ys-ink-2: #392F5A;
  --ys-black: #111315;
  --ys-gray: #69727D;
  --ys-line: #ECECEC;
  --ys-white: #ffffff;
  --ys-radius: 22px;
  --ys-radius-sm: 14px;
  --ys-shadow: 0 18px 50px -22px rgba(31, 33, 36, .35);
  --ys-shadow-soft: 0 10px 30px -16px rgba(57, 47, 90, .35);
  --ys-font-head: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ys-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  font-family: var(--ys-font-body);
  color: var(--ys-black);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.yuki-swag *,
.yuki-swag *::before,
.yuki-swag *::after { box-sizing: border-box; }

.yuki-swag img { max-width: 100%; display: block; }

.ys-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   HERO  — dark band with purple radial glow (mirrors site hero)
   ============================================================ */
.ys-hero {
  position: relative;
  overflow: hidden;
  background: var(--ys-ink);
  color: var(--ys-white);
  text-align: center;
  padding: 84px 24px 92px;
  isolation: isolate;
}
.ys-hero::before {
  content: "";
  position: absolute;
  inset: -40% 0 auto 0;
  height: 140%;
  background:
    radial-gradient(60% 70% at 50% 22%, rgba(118, 58, 237, .55), rgba(118, 58, 237, 0) 70%),
    radial-gradient(40% 50% at 78% 8%, rgba(192, 179, 253, .28), transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.ys-hero__logo { height: 40px; width: auto; margin: 0 auto 30px; opacity: .96; }
.ys-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ys-lavender);
  background: rgba(192, 179, 253, .12);
  border: 1px solid rgba(192, 179, 253, .28);
  padding: 7px 16px; border-radius: 100px; margin-bottom: 22px;
}
.ys-hero h1 {
  font-family: var(--ys-font-head);
  font-weight: 700;
  font-size: clamp(36px, 5.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 auto 18px;
  max-width: 16ch;
}
.ys-hero h1 .ys-accent { color: var(--ys-amber); }
.ys-hero p {
  margin: 0 auto;
  max-width: 56ch;
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(255, 255, 255, .78);
}

/* ============================================================
   STOREFRONT GRID
   ============================================================ */
.ys-shop { background: var(--ys-white); padding: 72px 0 96px; }
.ys-shop__head { text-align: center; margin-bottom: 48px; }
.ys-shop__head h2 {
  font-family: var(--ys-font-head); font-weight: 700;
  font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -.01em;
  margin: 0 0 10px;
}
.ys-shop__head p { margin: 0; color: var(--ys-gray); font-size: 17px; }

.ys-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
/* 3 per row; a short last row (e.g. the 4th & 5th cards) centers itself */
.ys-card { flex: 0 0 calc((100% - 48px) / 3); }

/* ---- product card ---- */
.ys-card {
  position: relative;
  border: 1px solid var(--ys-line);
  border-radius: var(--ys-radius);
  background: var(--ys-white);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease;
  will-change: transform;
}
.ys-card:hover,
.ys-card:focus-visible {
  transform: translateY(-8px);
  box-shadow: var(--ys-shadow);
  border-color: transparent;
  outline: none;
}
.ys-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--ys-lavender-soft);
  overflow: hidden;
}
.ys-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.ys-card:hover .ys-card__media img { transform: scale(1.05); }
.ys-card__tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(255,255,255,.9); backdrop-filter: blur(6px);
  color: var(--ys-ink-2); font-size: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 100px;
}
.ys-card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ys-card__name {
  font-family: var(--ys-font-head); font-weight: 700; font-size: 19px;
  line-height: 1.2; margin: 0; letter-spacing: -.01em;
}
.ys-card__desc { color: var(--ys-gray); font-size: 14.5px; margin: 0; flex: 1; }
.ys-card__cue {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; color: var(--ys-purple);
}
.ys-card__cue svg { transition: transform .3s ease; }
.ys-card:hover .ys-card__cue svg { transform: translateX(4px); }

/* ============================================================
   OVERLAY (shared by detail popup + form modal)
   ============================================================ */
.ys-overlay {
  position: fixed; inset: 0; z-index: 99999;
  display: none;
  align-items: center; justify-content: center;
  padding: 28px;
  background: rgba(20, 16, 34, .55);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .28s ease;
}
.ys-overlay.is-open { display: flex; opacity: 1; }
.ys-overlay__panel {
  position: relative;
  width: 100%;
  background: var(--ys-white);
  border-radius: var(--ys-radius);
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.5);
  transform: translateY(18px) scale(.98);
  transition: transform .32s cubic-bezier(.2,.7,.2,1);
  max-height: calc(100vh - 56px);
  overflow: auto;
}
.ys-overlay.is-open .ys-overlay__panel { transform: translateY(0) scale(1); }

.ys-close {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 40px; height: 40px; border-radius: 100px;
  border: 1px solid var(--ys-line); background: var(--ys-white);
  cursor: pointer; display: grid; place-items: center;
  color: var(--ys-ink); transition: background .2s ease, transform .2s ease;
}
.ys-close:hover { background: #f4f4f4; transform: rotate(90deg); }

/* ---- detail popup layout ---- */
.ys-detail__panel { max-width: 980px; }
.ys-detail {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
}
.ys-detail__gallery { padding: 28px; background: var(--ys-lavender-soft); border-radius: var(--ys-radius) 0 0 var(--ys-radius); }
.ys-detail__stage {
  aspect-ratio: 1/1; border-radius: var(--ys-radius-sm); overflow: hidden;
  background: var(--ys-white); box-shadow: var(--ys-shadow-soft);
}
.ys-detail__stage img { width: 100%; height: 100%; object-fit: cover; }
.ys-detail__thumbs { display: flex; gap: 12px; margin-top: 16px; }
.ys-detail__thumb {
  width: 72px; height: 72px; border-radius: 12px; overflow: hidden;
  border: 2px solid transparent; background: var(--ys-white); cursor: pointer; padding: 0;
  transition: border-color .2s ease;
}
.ys-detail__thumb.is-active { border-color: var(--ys-purple); }
.ys-detail__thumb img { width: 100%; height: 100%; object-fit: cover; }

.ys-detail__info { padding: 40px 38px; display: flex; flex-direction: column; }
.ys-detail__tag {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ys-purple); margin-bottom: 12px;
}
.ys-detail__info h3 {
  font-family: var(--ys-font-head); font-weight: 700;
  font-size: clamp(24px, 3vw, 30px); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 8px;
}
.ys-detail__sub { color: var(--ys-ink-2); font-weight: 600; font-style: italic; margin: 0 0 18px; }
.ys-detail__copy { color: #4a4f57; font-size: 15.5px; margin: 0 0 24px; }
.ys-detail__meta { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 10px; }
.ys-detail__meta li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: #3c4148; }
.ys-detail__meta svg { color: var(--ys-purple); flex: none; }
.ys-detail__info .ys-btn { margin-top: auto; }

/* ============================================================
   BUTTONS
   ============================================================ */
.ys-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--ys-font-body); font-weight: 600; font-size: 16px;
  padding: 14px 28px; border-radius: 1000px; cursor: pointer;
  border: 1px solid var(--ys-black); text-decoration: none; line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.ys-btn--primary { background: var(--ys-amber); color: #1a1205; }
.ys-btn--primary:hover { background: var(--ys-amber-dark); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(247,175,77,.7); }
.ys-btn--block { width: 100%; }
.ys-btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ============================================================
   FORM MODAL
   ============================================================ */
.ys-form__panel { max-width: 520px; }
.ys-form__inner { padding: 40px 38px 36px; }
.ys-form__head { margin-bottom: 22px; }
.ys-form__head .ys-detail__tag { margin-bottom: 8px; }
.ys-form__head h3 {
  font-family: var(--ys-font-head); font-weight: 700; font-size: 26px; line-height: 1.15;
  letter-spacing: -.01em; margin: 0 0 6px;
}
.ys-form__head p { margin: 0; color: var(--ys-gray); font-size: 15px; }
.ys-form__product {
  display: flex; align-items: center; gap: 12px;
  background: var(--ys-lavender-soft); border-radius: var(--ys-radius-sm);
  padding: 10px 14px; margin-bottom: 22px;
}
.ys-form__product img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.ys-form__product strong { font-family: var(--ys-font-head); font-size: 15px; }
.ys-form__product span { display: block; font-size: 12.5px; color: var(--ys-gray); }

.ys-field { margin-bottom: 16px; }
.ys-field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ys-field label {
  display: block; font-size: 13px; font-weight: 600; color: #3c4148; margin-bottom: 6px;
}
.ys-field input, .ys-field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ys-black);
  padding: 12px 14px; border: 1px solid #dcdfe3; border-radius: var(--ys-radius-sm);
  background: #fafafa; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.ys-field textarea { resize: vertical; min-height: 80px; }
.ys-field input:focus, .ys-field textarea:focus {
  outline: none; border-color: var(--ys-purple); background: #fff;
  box-shadow: 0 0 0 3px rgba(118,58,237,.12);
}
.ys-field input.ys-invalid, .ys-field textarea.ys-invalid { border-color: #e0476b; background: #fff6f8; }
.ys-field__err { display: none; color: #d23a5e; font-size: 12.5px; margin-top: 5px; }
.ys-field input.ys-invalid ~ .ys-field__err,
.ys-field textarea.ys-invalid ~ .ys-field__err { display: block; }

/* honeypot — visually hidden, off-screen */
.ys-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ys-form__note { font-size: 12.5px; color: var(--ys-gray); text-align: center; margin: 14px 0 0; }
.ys-form__alert { display: none; background: #fff6f8; border: 1px solid #f3c2cf; color: #c02d50; font-size: 14px; padding: 11px 14px; border-radius: var(--ys-radius-sm); margin-bottom: 16px; }
.ys-form__alert.is-show { display: block; }

/* ---- success state ---- */
.ys-success { display: none; text-align: center; padding: 50px 38px 46px; }
.ys-success.is-show { display: block; }
.ys-success__icon {
  width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 100px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--ys-purple), var(--ys-lavender));
  box-shadow: 0 16px 36px -14px rgba(118,58,237,.6);
  animation: ys-pop .5s cubic-bezier(.2,1.3,.4,1) both;
}
@keyframes ys-pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.ys-success h3 { font-family: var(--ys-font-head); font-weight: 700; font-size: 25px; margin: 0 0 8px; }
.ys-success p { color: var(--ys-gray); margin: 0 auto 26px; max-width: 38ch; }

/* loading spinner inside button */
.ys-spin { width: 18px; height: 18px; border-radius: 100px; border: 2px solid rgba(0,0,0,.25); border-top-color: #1a1205; animation: ys-rotate .7s linear infinite; }
@keyframes ys-rotate { to { transform: rotate(360deg); } }

/* ============================================================
   FOOTER STRIP
   ============================================================ */
.ys-foot { text-align: center; padding: 30px 24px 56px; color: var(--ys-gray); font-size: 14px; background: var(--ys-white); }
.ys-foot a { color: var(--ys-purple); text-decoration: none; }

body.ys-modal-open { overflow: hidden; }

/* ============================================================
   ENTRANCE ANIMATION (cards stagger on load)
   ============================================================ */
.yuki-swag [data-reveal] { opacity: 0; transform: translateY(22px); }
.yuki-swag.ys-ready [data-reveal] {
  opacity: 1; transform: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--ys-delay, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .yuki-swag [data-reveal] { opacity: 1 !important; transform: none !important; }
  .ys-overlay, .ys-overlay__panel, .ys-card { transition: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  .ys-card { flex-basis: calc((100% - 24px) / 2); }  /* 2 per row */
}
@media (max-width: 520px) {
  .ys-card { flex-basis: 100%; }                     /* 1 per row */
}
@media (max-width: 760px) {
  .ys-hero { padding: 60px 22px 64px; }
  .ys-shop { padding: 52px 0 70px; }
  .ys-detail { grid-template-columns: 1fr; }
  .ys-detail__gallery { border-radius: var(--ys-radius) var(--ys-radius) 0 0; }
  .ys-detail__info { padding: 28px 24px 34px; }
  .ys-overlay { padding: 0; align-items: stretch; }
  .ys-overlay__panel { max-height: 100vh; border-radius: 0; min-height: 100vh; }
  .ys-form__inner { padding: 30px 22px 30px; }
}
@media (max-width: 460px) {
  .ys-field--row { grid-template-columns: 1fr; }
}

/* ============================================================
   THEME ARMOR
   hello-elementor / Elementor style bare <button>, <a>, inputs with
   their own amber background, pink hover, asymmetric "leaf" radius and
   padding — and do it with high specificity / !important, which bleeds
   into our cards, close buttons, thumbnails and CTAs on the live site.
   These rules use the #yuki-swag ID selector (outranks the theme's class
   selectors) to re-assert OUR intended look. Keep this block last.
   ============================================================ */

/* neutral baseline for every interactive element inside the widget */
#yuki-swag button,
#yuki-swag input,
#yuki-swag textarea,
#yuki-swag select {
  font-family: inherit !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  min-height: 0 !important;
  margin: 0 !important;
}
#yuki-swag button {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
  padding: 0 !important;
  width: auto;
  cursor: pointer;
  transition: none;
}

/* ---- product card ---- */
#yuki-swag .ys-card {
  background: var(--ys-white) !important;
  border: 1px solid var(--ys-line) !important;
  border-radius: var(--ys-radius) !important;
  box-shadow: none !important;
  padding: 0 !important;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease !important;
}
#yuki-swag .ys-card:hover,
#yuki-swag .ys-card:focus,
#yuki-swag .ys-card:focus-visible,
#yuki-swag .ys-card:active {
  background: var(--ys-white) !important;
  border-color: transparent !important;
  box-shadow: var(--ys-shadow) !important;
  color: inherit !important;
}
#yuki-swag .ys-card__body { background: var(--ys-white) !important; }

/* ---- close buttons ---- */
#yuki-swag .ys-close {
  background: var(--ys-white) !important;
  border: 1px solid var(--ys-line) !important;
  border-radius: 100px !important;
  box-shadow: none !important;
  color: var(--ys-ink) !important;
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
}
#yuki-swag .ys-close:hover,
#yuki-swag .ys-close:focus,
#yuki-swag .ys-close:active {
  background: #f4f4f4 !important;
  color: var(--ys-ink) !important;
}

/* ---- pill CTAs ---- */
#yuki-swag .ys-btn {
  border-radius: 1000px !important;
  border: 1px solid var(--ys-black) !important;
  padding: 14px 28px !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}
#yuki-swag .ys-btn--block { width: 100% !important; }
#yuki-swag .ys-btn--primary,
#yuki-swag .ys-btn--primary:focus,
#yuki-swag .ys-btn--primary:active {
  background: var(--ys-amber) !important;
  color: #1a1205 !important;
}
#yuki-swag .ys-btn--primary:hover {
  background: var(--ys-amber-dark) !important;
  color: #1a1205 !important;
  box-shadow: 0 12px 24px -10px rgba(247,175,77,.7) !important;
}

/* ---- gallery thumbnails ---- */
#yuki-swag .ys-detail__thumb {
  background: var(--ys-white) !important;
  border: 2px solid transparent !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: 72px !important;
  height: 72px !important;
}
#yuki-swag .ys-detail__thumb.is-active { border-color: var(--ys-purple) !important; }

/* ---- form inputs ---- */
#yuki-swag .ys-field input,
#yuki-swag .ys-field textarea {
  background-color: #fafafa !important;
  background-image: none !important;
  border: 1px solid #dcdfe3 !important;
  border-radius: var(--ys-radius-sm) !important;
  box-shadow: none !important;
  color: var(--ys-black) !important;
  padding: 12px 14px !important;
  width: 100% !important;
  min-height: 0 !important;
}
#yuki-swag .ys-field input:focus,
#yuki-swag .ys-field textarea:focus {
  border-color: var(--ys-purple) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(118,58,237,.12) !important;
}
#yuki-swag .ys-field input.ys-invalid,
#yuki-swag .ys-field textarea.ys-invalid {
  border-color: #e0476b !important;
  background: #fff6f8 !important;
}

/* ---- links inside the widget keep our colors, not theme's ---- */
#yuki-swag .ys-card__cue { color: var(--ys-purple) !important; }
#yuki-swag .ys-foot a { color: var(--ys-purple) !important; }

/* ---- text must wrap (theme can force white-space: nowrap) ---- */
#yuki-swag h1, #yuki-swag h2, #yuki-swag h3, #yuki-swag p, #yuki-swag span {
  white-space: normal !important;
  overflow-wrap: break-word;
  text-overflow: clip !important;
}
#yuki-swag .ys-card { overflow: hidden !important; }
#yuki-swag .ys-card__body,
#yuki-swag .ys-card__name,
#yuki-swag .ys-card__desc { min-width: 0; max-width: 100%; }

/* ---- keep the product tag above the (transform-scaled) image on hover ---- */
#yuki-swag .ys-card__tag { z-index: 2 !important; }
#yuki-swag .ys-card__media img { z-index: 0; }
