/*
 * Yaazh City promo folder — the design of one folder page (1080 x 1350 px).
 * Shared by the staff Folder Creator (page-folder-creator.php) and the
 * public folder page (page-folder.php), so both always look identical.
 * The drawing code is assets/js/yaazh-folder.js.
 */
/* ===================== The folder page (1080 x 1350) =====================
   Fixed pixel sizes on purpose: this is drawn once at full size and exported
   as an image, so it must look identical on every screen. The preview is a
   scaled-down copy of exactly the same markup. */
   .yzf-page { position: relative; width: 1080px; height: 1350px; overflow: hidden; background: #fff; color: #1A1410;
    font-family: 'Bricolage Grotesque', 'Arial Black', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.yzf-page * { box-sizing: border-box; }
.yzf-p-rays { position: absolute; inset: 0;
    /* --ray is the page's colour as "r, g, b"; the default is the yellow. */
    background: radial-gradient(circle at 16% 74%, rgba(var(--ray, 255, 193, 7), .38) 0, rgba(var(--ray, 255, 193, 7), 0) 44%),
                repeating-conic-gradient(from 0deg at 16% 74%, rgba(var(--ray, 255, 193, 7), .12) 0deg 7deg, rgba(255,255,255,0) 7deg 15deg); }
.yzf-p-head { position: absolute; left: 0; right: 0; top: 0; height: 172px; display: flex; align-items: center; justify-content: space-between; padding: 0 46px; z-index: 2; }
.yzf-p-dates { background: #FFC107; color: #B8050F; font-weight: 800; font-stretch: 75%; font-size: 64px; line-height: 1; padding: 12px 26px 14px; border-radius: 20px; transform: rotate(-2.5deg); box-shadow: 0 7px 0 #B8050F; letter-spacing: -.5px; }
.yzf-p-brand { display: flex; align-items: center; gap: 16px; }
.yzf-p-brand img { height: 104px; width: auto; display: block; }
.yzf-p-city { font-weight: 800; font-stretch: 75%; font-size: 54px; line-height: .86; color: #E30613; text-transform: uppercase; }
.yzf-p-city span { color: #1A1410; display: block; }
.yzf-p-stripe { position: absolute; left: 0; right: 0; top: 172px; height: 12px; background: #E30613; border-bottom: 5px solid #FFC107; z-index: 2; }
.yzf-p-side { position: absolute; left: 44px; top: 222px; width: 292px; z-index: 5;
    /* Ends just above the tiger's head (y = 790), so products placed
       "above the tiger" never overlap him. */
    bottom: 560px; display: flex; flex-direction: column; align-items: flex-start; }
.yzf-p-pageno { display: inline-block; background: #1A1410; color: #fff; font-weight: 700; font-size: 22px; padding: 7px 16px; border-radius: 999px; letter-spacing: 1px; }
.yzf-p-cat { margin: 16px 0 0; width: 100%; font-size: 80px; font-weight: 800; font-stretch: 75%; color: #E30613; line-height: .9; text-transform: uppercase; overflow-wrap: normal; word-break: normal; hyphens: manual; }
.yzf-p-promo { display: inline-block; margin-top: 18px; background: #E30613; color: #FFC107; font-weight: 800; font-stretch: 75%; font-size: 44px; padding: 6px 20px 8px; border-radius: 14px; transform: rotate(-4deg); }
/* 336 px wide, from 6 px: ends at 342 px, clear of the product grid at 352 px. */
.yzf-p-tiger { position: absolute; left: 6px; bottom: 118px; width: 336px; height: auto; z-index: 4; filter: drop-shadow(0 16px 18px rgba(26,20,16,.28)); }
.yzf-p-grid { position: absolute; left: 352px; right: 40px; top: 222px; bottom: 206px; display: grid; gap: 22px; z-index: 3; }
.yzf-p-grid.n1 { grid-template: 1fr / 1fr; }
.yzf-p-grid.n2 { grid-template: repeat(2, 1fr) / 1fr; }
.yzf-p-grid.n3 { grid-template: repeat(3, 1fr) / 1fr; }
.yzf-p-grid.n4 { grid-template: repeat(2, 1fr) / repeat(2, 1fr); }
.yzf-p-grid.n5, .yzf-p-grid.n6 { grid-template: repeat(3, 1fr) / repeat(2, 1fr); }
.yzf-p-grid.n7, .yzf-p-grid.n8 { grid-template: repeat(4, 1fr) / repeat(2, 1fr); gap: 18px; }
.yzf-p-empty { grid-column: 1 / -1; grid-row: 1 / -1; border: 4px dashed #f2c14e; border-radius: 28px; display: flex; align-items: center; justify-content: center; text-align: center; color: #b58a1c; font-weight: 700; font-size: 34px; padding: 40px; }
.yzf-t { position: relative; background: #fff; border-radius: 26px; border: 3px solid #FFE08A; box-shadow: 0 16px 30px -14px rgba(26,20,16,.4); padding: 18px; min-width: 0; min-height: 0; display: grid; }
.yzf-t-img { display: flex; align-items: center; justify-content: center; min-height: 0; min-width: 0; }
.yzf-t-img img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.yzf-t-info { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.yzf-t-name { font-weight: 800; font-stretch: 80%; color: #B8050F; text-transform: uppercase; line-height: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yzf-t-unit { font-weight: 600; color: #5c5048; margin-top: 4px; }
.yzf-t-was { color: #6b6b6b; font-weight: 700; text-decoration: line-through; text-decoration-color: #E30613; text-decoration-thickness: 3px; margin-top: 10px; }
.yzf-t-now { align-self: flex-start; background: #E30613; color: #fff; font-weight: 800; font-stretch: 75%; line-height: 1; border-radius: 18px; border: 4px solid #FFC107; transform: rotate(-3deg); box-shadow: 0 6px 0 #8e0a10; margin-top: 6px; white-space: nowrap; }
.yzf-t-suffix { font-weight: 800; color: #1A1410; text-transform: uppercase; margin-top: 10px; }
.yzf-t-sticker { position: absolute; top: -22px; right: -18px; width: 132px; height: 132px; background: #FFC107; color: #B8050F;
    clip-path: polygon(50% 0%, 61% 13%, 77% 6%, 79% 23%, 95% 25%, 88% 40%, 100% 50%, 88% 60%, 95% 75%, 79% 77%, 77% 94%, 61% 87%, 50% 100%, 39% 87%, 23% 94%, 21% 77%, 5% 75%, 12% 60%, 0% 50%, 12% 40%, 5% 25%, 21% 23%, 23% 6%, 39% 13%);
    display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 800; font-stretch: 75%; font-size: 30px; line-height: .92; padding: 26px; transform: rotate(10deg); text-transform: uppercase; z-index: 5; }
/* Big tiles: the sticker sits in the top-right corner, over the text column,
   so the name leaves room for it instead of running underneath. */
.yzf-p-grid.n1 .has-sticker .yzf-t-name, .yzf-p-grid.n2 .has-sticker .yzf-t-name, .yzf-p-grid.n3 .has-sticker .yzf-t-name { padding-right: 104px; }
/* Big tiles (1–3 per page): photo left, text right */
.yzf-p-grid.n1 .yzf-t, .yzf-p-grid.n2 .yzf-t, .yzf-p-grid.n3 .yzf-t { grid-template-columns: 44% 1fr; gap: 20px; }
.yzf-p-grid.n1 .yzf-t-name { font-size: 64px; } .yzf-p-grid.n1 .yzf-t-now { font-size: 120px; padding: 8px 28px 12px; } .yzf-p-grid.n1 .yzf-t-was { font-size: 40px; } .yzf-p-grid.n1 .yzf-t-unit { font-size: 32px; }
.yzf-p-grid.n2 .yzf-t-name { font-size: 46px; } .yzf-p-grid.n2 .yzf-t-now { font-size: 92px; padding: 6px 24px 10px; } .yzf-p-grid.n2 .yzf-t-was { font-size: 32px; } .yzf-p-grid.n2 .yzf-t-unit { font-size: 26px; }
.yzf-p-grid.n3 .yzf-t-name { font-size: 38px; } .yzf-p-grid.n3 .yzf-t-now { font-size: 72px; padding: 4px 20px 8px; } .yzf-p-grid.n3 .yzf-t-was { font-size: 28px; } .yzf-p-grid.n3 .yzf-t-unit { font-size: 24px; }
.yzf-p-grid.n1 .yzf-t-suffix, .yzf-p-grid.n2 .yzf-t-suffix, .yzf-p-grid.n3 .yzf-t-suffix { font-size: 26px; }
/* Grid tiles (4–6 per page): photo on top, text below */
.yzf-p-grid.n4 .yzf-t, .yzf-p-grid.n5 .yzf-t, .yzf-p-grid.n6 .yzf-t { grid-template-rows: minmax(0, 1fr) auto; padding: 14px 16px 18px; }
.yzf-p-grid.n4 .yzf-t-name { font-size: 32px; } .yzf-p-grid.n4 .yzf-t-now { font-size: 64px; padding: 4px 18px 8px; } .yzf-p-grid.n4 .yzf-t-was { font-size: 26px; margin-top: 6px; }
.yzf-p-grid.n5 .yzf-t-name, .yzf-p-grid.n6 .yzf-t-name { font-size: 26px; -webkit-line-clamp: 1; }
.yzf-p-grid.n5 .yzf-t-now, .yzf-p-grid.n6 .yzf-t-now { font-size: 50px; padding: 3px 16px 6px; border-width: 3px; }
.yzf-p-grid.n5 .yzf-t-was, .yzf-p-grid.n6 .yzf-t-was { font-size: 22px; margin-top: 4px; }
.yzf-p-grid.n4 .yzf-t-unit, .yzf-p-grid.n5 .yzf-t-unit, .yzf-p-grid.n6 .yzf-t-unit { font-size: 20px; margin-top: 2px; }
.yzf-p-grid.n4 .yzf-t-suffix, .yzf-p-grid.n5 .yzf-t-suffix, .yzf-p-grid.n6 .yzf-t-suffix { font-size: 18px; margin-top: 6px; }
.yzf-p-grid.n4 .yzf-t-info, .yzf-p-grid.n5 .yzf-t-info, .yzf-p-grid.n6 .yzf-t-info { padding-top: 8px; }
.yzf-p-grid.n5 .yzf-t-sticker, .yzf-p-grid.n6 .yzf-t-sticker { width: 104px; height: 104px; font-size: 23px; padding: 20px; top: -16px; right: -14px; }
.yzf-p-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.yzf-p-foot { position: absolute; left: 0; right: 0; bottom: 0; height: 172px; background: #E30613; border-top: 8px solid #FFC107; display: flex; align-items: center; gap: 26px; padding: 0 40px 0 392px; color: #fff; z-index: 3; }
.yzf-p-ya { flex: 1; min-width: 0; font-weight: 800; font-stretch: 75%; font-size: 58px; line-height: .9; color: #FFC107; }
.yzf-p-ya b { color: #fff; display: block; white-space: nowrap; overflow: hidden; }
.yzf-p-info { font-size: 21px; font-weight: 600; line-height: 1.35; text-align: right; font-family: Arial, sans-serif; }
.yzf-p-qr { width: 124px; height: 124px; background: #fff; border-radius: 14px; padding: 8px; flex-shrink: 0; }
.yzf-p-qr svg { width: 100%; height: 100%; display: block; }

/* On the public folder page, product tiles are links to the product. */
a.yzf-t { text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
a.yzf-t:hover { transform: translateY(-4px) rotate(-.3deg); box-shadow: 0 22px 36px -14px rgba(26,20,16,.5); }
a.yzf-t:focus-visible { outline: 6px solid #1A1410; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { a.yzf-t { transition: none; } a.yzf-t:hover { transform: none; } }

/* 7–8 products in the grid (rows of 4): the tiles are wider than tall at
   this size, so photo left and text right, like the big tiles — smaller. */
.yzf-p-grid.n7 .yzf-t, .yzf-p-grid.n8 .yzf-t,
.yzf-p-spots .yzf-t { grid-template-columns: 38% 1fr; gap: 10px; padding: 12px 14px; border-radius: 20px; }
.yzf-p-grid.n7 .yzf-t-name, .yzf-p-grid.n8 .yzf-t-name, .yzf-p-spots .yzf-t-name { font-size: 22px; }
.yzf-p-grid.n7 .yzf-t-unit, .yzf-p-grid.n8 .yzf-t-unit, .yzf-p-spots .yzf-t-unit { font-size: 16px; margin-top: 2px; }
.yzf-p-grid.n7 .yzf-t-was, .yzf-p-grid.n8 .yzf-t-was, .yzf-p-spots .yzf-t-was { font-size: 18px; margin-top: 4px; text-decoration-thickness: 2px; }
.yzf-p-grid.n7 .yzf-t-now, .yzf-p-grid.n8 .yzf-t-now, .yzf-p-spots .yzf-t-now { font-size: 42px; padding: 2px 12px 5px; border-width: 3px; border-radius: 14px; box-shadow: 0 4px 0 #8e0a10; }
.yzf-p-grid.n7 .yzf-t-suffix, .yzf-p-grid.n8 .yzf-t-suffix, .yzf-p-spots .yzf-t-suffix { font-size: 15px; margin-top: 5px; }
.yzf-p-grid.n7 .yzf-t-sticker, .yzf-p-grid.n8 .yzf-t-sticker, .yzf-p-spots .yzf-t-sticker { width: 84px; height: 84px; font-size: 18px; padding: 16px; top: -14px; right: -12px; }
.yzf-p-grid.n7 .has-sticker .yzf-t-name, .yzf-p-grid.n8 .has-sticker .yzf-t-name, .yzf-p-spots .has-sticker .yzf-t-name { padding-right: 60px; }

/* "Above the tiger": up to 2 optional spots under the category name. They
   take the room left in the side column; with spots, the heading and the
   PROMO label get a little smaller to make space. */
.yzf-p-spots { flex: 1 1 auto; min-height: 0; width: 100%; display: grid; gap: 14px; margin-top: 18px; }
.yzf-p-spots.s1 { grid-template-rows: minmax(0, 260px); }
.yzf-p-spots.s2 { grid-template-rows: repeat(2, minmax(0, 1fr)); }
.yzf-p-side.has-spots .yzf-p-promo { font-size: 32px; margin-top: 12px; padding: 4px 16px 6px; }
.yzf-p-side.has-spots .yzf-p-cat { margin-top: 12px; }

/* Socials over the footer's left part, under the tiger (which stands on the
   footer). Their own layer on the page, above the tiger (z-index 4) — inside
   the footer (z-index 3) they'd be drawn beneath it if its feet reach in. */
.yzf-p-social { position: absolute; left: 40px; bottom: 0; height: 172px; padding-top: 8px; box-sizing: border-box; width: 330px; display: flex; flex-direction: column; justify-content: center; gap: 9px; z-index: 6; }
.yzf-p-soc { display: flex; align-items: center; gap: 12px; color: #fff; font-family: Arial, sans-serif; font-weight: 700; font-size: 23px; line-height: 1; white-space: nowrap; text-shadow: 0 1px 3px rgba(80, 0, 0, .55); }
.yzf-p-soc .ico { width: 36px; height: 36px; border-radius: 50%; background: #FFC107; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.yzf-p-soc .ico svg { width: 22px; height: 22px; display: block; }

/* Patterns other than the rays: the same soft glow behind the tiger, with
   the chosen pattern (an SVG drawn by yaazh-folder.js) over the whole page. */
.yzf-p-glow { position: absolute; inset: 0; background: radial-gradient(circle at 16% 74%, rgba(var(--ray, 255, 193, 7), .32) 0, rgba(var(--ray, 255, 193, 7), 0) 46%); }
.yzf-p-pat { position: absolute; top: 0; left: 0; width: 1080px; height: 1350px; pointer-events: none; }