/*
 * Jucheware theme - "poster" layer.
 * Shop colours (accent, background, card, text) come from the theme settings; this file lays the Juche poster language
 * on top: flag stripes, sunrise rays, paper grain, poster lettering, slogan banners, medal-style cards.
 * Palette: flag red / flag blue / white, with gold for stars and trims. Nothing else.
 */
:root {
  --j-red: #be1e2d;
  --j-red-hi: #ed1c27;
  --j-red-deep: #7a0f1a;
  --j-blue: #024fa2;
  --j-blue-hi: #3d7fd6;
  --j-gold: #d9a441;
  --j-gold-hi: #f5c33b;
  --j-paper: #f2ebdd;
  --j-line: rgba(190, 30, 45, .34);
  --j-display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --j-ko: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

::selection { background: var(--j-red); color: #fff; }
html { scrollbar-color: var(--j-red) #0d0a0c; }
body { -webkit-font-smoothing: antialiased; }

/* keyboard users: a way past the header */
.juche-skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px;
  background: var(--j-red); color: #fff; font-weight: 700; transition: top .15s;
}
.juche-skip:focus { top: 12px; outline: 3px solid var(--j-gold-hi); }

/* ---- flag stripes (top and bottom of every page), the sunrise behind everything, paper grain ---- */
.juche-flag {
  height: 14px;
  background: linear-gradient(var(--j-blue) 0 28%, #fff 28% 36%, var(--j-red) 36% 64%, #fff 64% 72%, var(--j-blue) 72%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}
.juche-flag-bottom { height: 10px; margin-top: 2rem; }
.juche-backdrop {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% -15%, rgba(237, 28, 39, .28), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 110%, rgba(2, 79, 162, .18), transparent 70%);
}
.juche-backdrop::before {
  content: ""; position: absolute; left: 50%; top: -62vmax; width: 220vmax; height: 220vmax; translate: -50% 0;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(237, 28, 39, .085) 0 2.6deg, transparent 2.6deg 5.2deg);
  mask: radial-gradient(circle, #000 8%, transparent 52%);
  -webkit-mask: radial-gradient(circle, #000 8%, transparent 52%);
}
/* printed-poster grain: an SVG noise tile at low opacity (no image hosting needed) */
.juche-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---- cards everywhere: a red hairline instead of the grey one, slightly warmer card ---- */
.bg-card.border, .bg-background.border { border-color: var(--j-line) !important; }

/* ---- section titles of the built-in components: poster banner tags with a Korean caption ---- */
.component h2.border-l-4 {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--j-display); font-weight: 400; font-size: 1.85rem; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; border-left: 0 !important; padding: 8px 22px 8px 18px !important; margin-bottom: 1.25rem !important;
  background: linear-gradient(100deg, var(--j-red-deep), var(--j-red) 60%, var(--j-red-hi));
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18), 0 10px 30px rgba(190, 30, 45, .25);
}
.component h2.border-l-4::before { content: "\2605"; color: var(--j-gold-hi); font-family: sans-serif; font-size: 1.2rem; }
.component h2.border-l-4::after {
  font-family: var(--j-ko); font-weight: 900; font-size: .8rem; letter-spacing: .3em; color: rgba(255, 255, 255, .7); margin-left: 6px; padding-right: 14px;
}
#products h2.border-l-4::after, [data-component-id="products-page"] h2::after { content: "\C81C\D488"; }    /* 제품 */
[data-component-id^="faq"] h2.border-l-4::after { content: "\C9C8\BB38"; }                               /* 질문 */
[data-component-id^="feedbacks"] h2.border-l-4::after, [data-component-id="feedbacks"] h2::after { content: "\D3C9\AC00"; }  /* 평가 */
[data-component-id^="video-gallery"] h2.border-l-4::after { content: "\C601\C0C1"; }                     /* 영상 */
[data-component-id^="text-block"] h2.border-l-4::after { content: "\C548\B0B4"; }                        /* 안내 */
[data-component-id^="blog"] h2.border-l-4::after { content: "\C18C\C2DD"; }                               /* 소식 */

/* ---- header ---- */
.juche-header > .bg-card {
  background: linear-gradient(100deg, rgba(74, 12, 20, .92), rgba(22, 14, 18, .96) 55%) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .4), inset 0 -3px 0 var(--j-red), inset 0 -5px 0 rgba(217, 164, 65, .6);
}
.juche-wordmark {
  font-family: var(--j-display); font-weight: 400; letter-spacing: .14em; text-transform: uppercase; line-height: 1;
  font-size: 1.75rem; color: #fff; text-shadow: 2px 2px 0 var(--j-red);
}
.juche-header-motto { font-family: var(--j-ko); font-weight: 700; font-size: 11px; letter-spacing: .34em; color: var(--j-gold-hi); margin-top: 3px; }
.juche-header nav a, .juche-header nav button { transition: background-color .15s, color .15s, transform .15s, box-shadow .15s; }
.juche-header nav a:hover, .juche-header nav button:hover { transform: translateY(-1px); border-color: rgba(217, 164, 65, .5) !important; }
.juche-header nav a.text-accent-500, .juche-header nav button.text-accent-500 {
  background: var(--j-red) !important; color: #fff !important; border-color: var(--j-gold) !important;
  box-shadow: 0 6px 18px rgba(190, 30, 45, .4);
}

/* ---- hero ---- */
.juche-hero-wrap { margin-top: 1.5rem; }
.juche-hero {
  position: relative; overflow: hidden; border-radius: 14px; border: 1px solid rgba(217, 164, 65, .35);
  background: linear-gradient(#1a070b, #5a1019 46%, #2a0a10 78%, #120709);
  box-shadow: 0 0 0 4px rgba(190, 30, 45, .18), 0 40px 100px rgba(0, 0, 0, .55);
}
.juche-rays {
  position: absolute; left: 50%; bottom: -50%; width: 280%; aspect-ratio: 1; translate: -50% 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 60, 70, .38) 0 3.2deg, transparent 3.2deg 6.4deg);
  mask: radial-gradient(circle, #000 14%, transparent 60%);
  -webkit-mask: radial-gradient(circle, #000 14%, transparent 60%);
  animation: juche-turn 140s linear infinite;
}
.juche-sun {
  position: absolute; left: 50%; bottom: -14%; width: 620px; height: 620px; translate: -50% 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 190, 70, .55), rgba(255, 120, 40, .18) 42%, transparent 66%);
}
/* a great red star behind the title, faint, like a poster watermark */
.juche-bigstar {
  position: absolute; left: 50%; top: 2%; width: 560px; height: 560px; translate: -50% 0; pointer-events: none; opacity: .14;
  background: var(--j-red-hi);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
/* the flag band across the top of the hero */
.juche-hero-stripe {
  position: absolute; inset: 0 0 auto 0; height: 10px;
  background: linear-gradient(90deg, var(--j-blue) 0 18%, #fff 18% 21%, var(--j-red) 21% 79%, #fff 79% 82%, var(--j-blue) 82%);
}
@keyframes juche-turn { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { .juche-rays, .juche-ribbon-track, .juche-slogan-rays { animation: none !important; } }

/* vertical Korean slogans down the hero's sides (wide screens only) */
.juche-side {
  position: absolute; top: 120px; z-index: 1; pointer-events: none;   /* beside the title block, clear of the screenshot */
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--j-ko); font-weight: 900; font-size: clamp(26px, 3vw, 44px); letter-spacing: .5em; color: #fff;
  padding: 26px 12px; border-radius: 6px; background: var(--j-red); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5), 0 0 0 3px var(--j-red), 0 0 0 5px var(--j-gold);
}
.juche-side-l { left: 34px; }
.juche-side-r { right: 34px; }
@media (max-width: 1100px) { .juche-side { display: none; } }

.juche-emblem { filter: drop-shadow(0 8px 26px rgba(0, 0, 0, .6)) drop-shadow(0 0 18px rgba(255, 190, 70, .25)); }
.juche-kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--j-gold-hi); margin-bottom: 14px;
}
.juche-title {
  font-family: var(--j-display); font-weight: 400; font-size: clamp(56px, 10vw, 124px); line-height: .95; letter-spacing: .06em; color: #fff;
  text-shadow: 3px 3px 0 var(--j-red-hi), 6px 6px 0 rgba(0, 0, 0, .45), 0 10px 40px rgba(0, 0, 0, .5);
}
.juche-tagline { font-size: clamp(18px, 2.3vw, 24px); color: var(--j-paper); font-weight: 500; }
.juche-motto {
  display: inline-block; font-family: var(--j-ko); font-weight: 900; letter-spacing: .36em; font-size: 15px; color: #fff;
  padding: 6px 18px 6px 24px; background: var(--j-blue); border-radius: 4px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35);
}

.juche-btn {
  position: relative; display: inline-block; padding: 14px 30px; border-radius: 6px; font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: #fff;
  background: var(--j-red); border: 1px solid var(--j-gold); transition: background-color .15s, transform .15s, box-shadow .15s;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25), 0 10px 28px rgba(190, 30, 45, .4);
}
.juche-btn:hover { background: var(--j-red-hi); transform: translateY(-2px); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35), 0 14px 34px rgba(237, 28, 39, .5); }
.juche-btn-ghost { background: rgba(0, 0, 0, .25); border-color: rgba(255, 255, 255, .35); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .08); }
.juche-btn-ghost:hover { background: rgba(255, 255, 255, .1); box-shadow: none; }

.juche-shot {
  max-width: 1000px; margin: 0 auto; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(217, 164, 65, .45);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .65), 0 0 0 6px rgba(190, 30, 45, .22), 0 0 0 7px rgba(217, 164, 65, .25);
}
.juche-shot img { display: block; }

/* the scrolling slogan ribbon under the hero */
.juche-ribbon {
  margin-top: 16px; overflow: hidden; border-radius: 8px; background: var(--j-red);
  border-top: 3px solid #fff; border-bottom: 3px solid #fff; box-shadow: 0 0 0 3px var(--j-blue), 0 0 0 4px var(--j-gold);
}
.juche-ribbon-track {
  display: flex; width: max-content; gap: 28px; padding: 11px 0; white-space: nowrap;
  font-family: var(--j-display); font-weight: 400; letter-spacing: .26em; text-transform: uppercase; color: #fff; font-size: 16px;
  animation: juche-scroll 44s linear infinite;
}
.juche-ribbon-star { color: var(--j-gold-hi); }
@keyframes juche-scroll { to { transform: translateX(-50%); } }

/* ---- slogan banner ---- */
.juche-slogan-wrap { margin: 3rem 0 1rem; }
.juche-slogan {
  position: relative; overflow: hidden; border-radius: 12px; padding: 44px 24px 36px; text-align: center;
  background: linear-gradient(100deg, var(--j-red-deep), var(--j-red) 50%, var(--j-red-deep));
  border: 1px solid var(--j-gold); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .22), 0 0 0 4px rgba(190, 30, 45, .25), 0 30px 70px rgba(0, 0, 0, .5);
}
.juche-slogan-rays {
  position: absolute; left: 50%; top: 50%; width: 200%; aspect-ratio: 1; translate: -50% -50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, .07) 0 4deg, transparent 4deg 8deg);
  animation: juche-turn 160s linear infinite;
}
.juche-slogan-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.juche-slogan-star { color: var(--j-gold-hi); font-size: 22px; letter-spacing: .5em; }
.juche-slogan-ko {
  font-family: var(--j-ko); font-weight: 900; font-size: clamp(44px, 8vw, 96px); line-height: 1.05; letter-spacing: .18em; color: #fff;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .5);
}
.juche-slogan-en { font-family: var(--j-display); font-weight: 400; font-size: clamp(22px, 3vw, 34px); letter-spacing: .14em; text-transform: uppercase; color: var(--j-gold-hi); }
.juche-slogan-sub { font-size: 16px; color: rgba(255, 255, 255, .85); max-width: 640px; }
.juche-stats {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 30px auto 0; max-width: 720px;
  background: rgba(255, 255, 255, .25); border: 2px solid rgba(255, 255, 255, .25); border-radius: 8px; overflow: hidden;
}
.juche-stats > div { background: var(--j-red-deep); padding: 16px 10px; }
.juche-stats dt { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.juche-stats dd { font-family: var(--j-display); font-size: clamp(28px, 4vw, 40px); color: #fff; letter-spacing: .04em; margin-top: 2px; }
.juche-stats-star { color: var(--j-gold-hi); font-size: .6em; vertical-align: .3em; margin-left: 4px; }

/* ---- feature rows ---- */
.juche-eyebrow { color: var(--j-gold-hi); font-weight: 700; letter-spacing: .3em; font-size: 12px; text-transform: uppercase; }
.juche-eyebrow::before {
  content: ""; display: inline-block; width: 26px; height: 3px; background: var(--j-red-hi); margin-right: 12px; vertical-align: 4px;
}
.juche-h2 {
  font-family: var(--j-display); font-weight: 400; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: .04em; text-transform: uppercase;
  margin: 12px 0 14px; color: #fff; text-shadow: 2px 2px 0 var(--j-red);
}
.juche-lead { max-width: 680px; font-size: 18px; color: rgba(var(--cl-t-primary), .66); }
.juche-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; margin-top: 64px; }
.juche-row-flip { grid-template-columns: 1.25fr 1fr; }
.juche-row-flip .juche-row-text { order: 2; }
.juche-row-text h3 {
  font-family: var(--j-display); font-weight: 400; font-size: 34px; letter-spacing: .06em; text-transform: uppercase; color: #fff; margin-bottom: 10px;
  display: flex; align-items: center; gap: 14px;
}
.juche-row-text h3::before { content: "\2605"; font-family: sans-serif; color: var(--j-gold-hi); font-size: 22px; filter: drop-shadow(0 0 8px rgba(245, 195, 59, .5)); }
.juche-row-text p { color: rgba(var(--cl-t-primary), .7); font-size: 17px; line-height: 1.65; }
.juche-row-img {
  width: 100%; height: auto; border-radius: 10px; border: 1px solid rgba(217, 164, 65, .4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55), 0 0 0 4px rgba(190, 30, 45, .18);
}
@media (max-width: 860px) {
  .juche-row, .juche-row-flip { grid-template-columns: 1fr; gap: 22px; margin-top: 44px; }
  .juche-row-flip .juche-row-text { order: 0; }
}

/* ---- product cards: medal-style - flag band on top, gold star by the name, lift and glow on hover ---- */
a.group.bg-card {
  position: relative; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.group.bg-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; z-index: 1;
  background: linear-gradient(90deg, var(--j-blue) 0 22%, #fff 22% 26%, var(--j-red-hi) 26% 74%, #fff 74% 78%, var(--j-blue) 78%);
}
a.group.bg-card h3 { font-family: var(--j-display); font-weight: 400; letter-spacing: .05em; text-transform: uppercase; font-size: 1.25rem; }
a.group.bg-card h3::before { content: "\2605"; color: var(--j-gold-hi); font-family: sans-serif; font-size: .85em; margin-right: 8px; }
a.group.bg-card .text-accent-500 { color: var(--j-gold-hi) !important; font-family: var(--j-display); font-size: 1.15em; letter-spacing: .04em; }
a.group.bg-card:hover {
  transform: translateY(-4px); border-color: var(--j-gold) !important;
  box-shadow: 0 18px 50px rgba(190, 30, 45, .3), 0 0 0 1px rgba(217, 164, 65, .3);
}

/* ---- FAQ cards: a gold star bullet, red open-state ---- */
.juche-faq h3::before { content: "\2605"; color: var(--j-red-hi); font-family: sans-serif; margin-right: 10px; }

/* ---- primary buttons of the built-in components (buy, add to cart, ...) ---- */
.bg-accent-500:not(.rounded-full) { box-shadow: inset 0 0 0 1px rgba(217, 164, 65, .55), 0 8px 22px rgba(190, 30, 45, .3); }

/* ---- footer: flag hairline, slogan ---- */
.juche-footer { background: linear-gradient(#120b0e, #220a10) !important; border-color: rgba(217, 164, 65, .3) !important; position: relative; overflow: hidden; }
.juche-footer::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--j-blue) 0 22%, #fff 22% 26%, var(--j-red-hi) 26% 74%, #fff 74% 78%, var(--j-blue) 78%);
}
.juche-footer p.font-semibold { font-family: var(--j-display); font-weight: 400; letter-spacing: .12em; text-transform: uppercase; }

/* ---- page titles of the built-in pages (product, listing, blog post): poster lettering ---- */
[data-component-id="product-page"] h1, [data-component-id="products-page"] h1, [data-component-id="blog-post-page"] h1 {
  font-family: var(--j-display); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; font-size: 1.9rem; text-shadow: 2px 2px 0 var(--j-red);
}