:root{color-scheme:light;font-family:"Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",Arial,sans-serif;color:#262626;font-synthesis:weight}
*{box-sizing:border-box}
/* The page is the café frame itself: no scrollbars, the panel fills the frame's width. */
html,body{height:100%;margin:0;overflow:hidden;background:#fff}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
button,a{touch-action:manipulation}
.sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
main{display:flex;justify-content:center;align-items:flex-start;height:100%}

/* 메로 굿즈: a notebook panel. Sizes are in 828px design units of the panel's own width.
   A frame taller or wider than the design keeps the whole panel in view instead of cropping it. */
.goods{--u:calc(100cqw/828);position:relative;flex:none;container-type:inline-size;width:min(100%,calc(100vh*828/344));aspect-ratio:828/344;background:#d6d6d6 url(/assets/goods-panel.png) 0 0/100% 100% no-repeat;line-height:normal;color:#262626}
.goods-tools{position:absolute;top:4.4%;right:2.9%;display:flex;align-items:center;gap:calc(8*var(--u))}
.goods-all,.goods-fallback{padding:calc(4*var(--u)) calc(12*var(--u));border:2px solid #262626;border-radius:999px;background:#fff;box-shadow:2px 2px 0 #262626;color:#262626;font-size:calc(13*var(--u));font-weight:700;line-height:1.3;text-decoration:none;white-space:nowrap}
.goods-pause{display:grid;place-items:center;width:calc(28*var(--u));min-width:22px;aspect-ratio:1;padding:0;border:2px solid #262626;border-radius:50%;background:#fff;box-shadow:2px 2px 0 #262626;color:#262626;cursor:pointer}
.goods-pause svg{width:58%;height:58%;fill:currentColor}
:is(.goods-all,.goods-fallback,.goods-pause,.goods-card):focus-visible{outline:3px solid #343434;outline-offset:2px}
@media(hover:hover){:is(.goods-all,.goods-fallback,.goods-pause):hover{background:#262626;color:#fff}}
:is(.goods-all,.goods-fallback,.goods-pause):active{background:#262626;color:#fff;box-shadow:0 0 0 #262626}
.goods-view{--gap:2.4%;position:absolute;top:18%;left:8.9%;right:8.9%;height:72%;padding:calc(7*var(--u)) calc(4*var(--u)) 0 0;overflow:hidden}
.goods-track{display:flex;align-items:flex-start;gap:var(--gap);margin:0;padding:0;list-style:none}
.goods-track li{flex:0 0 calc((100% - 3*var(--gap))/4);aspect-ratio:158/236}
.goods-card{position:relative;display:flex;flex-direction:column;height:100%;overflow:hidden;border:2px solid #262626;border-radius:calc(10*var(--u));background:#fff;box-shadow:2px 2px 0 #262626;color:#262626;text-decoration:none}
.goods-card img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;background:#f6f6f6;border-bottom:2px solid #262626}
.goods-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:calc(8*var(--u)) calc(10*var(--u)) 0;font-size:calc(13*var(--u));line-height:1.35;word-break:keep-all;overflow-wrap:anywhere}
.goods-price{margin:auto calc(10*var(--u)) calc(9*var(--u));font-size:calc(14.5*var(--u));font-weight:800}
.goods-badge{position:absolute;top:calc(8*var(--u));left:calc(8*var(--u));padding:calc(2*var(--u)) calc(8*var(--u));border-radius:999px;background:#262626;color:#fff;font-size:calc(12*var(--u));font-weight:700}
.goods-fallback{position:absolute;top:40%;left:50%;translate:-50% -50%;font-size:calc(15*var(--u))}
@media(hover:hover){.goods-card:hover{translate:0 calc(-5*var(--u));box-shadow:3px 5px 0 #262626}}
.goods-card:active{translate:0 0;box-shadow:0 0 0 #262626}

/* Round side arrows, the same as the 독케익 gate's page turners. */
.goods-turn{position:absolute;top:42.5%;display:grid;place-items:center;width:4.4%;min-width:24px;aspect-ratio:1;padding:0;translate:-50% -50%;cursor:pointer;border:2px solid #262626;border-radius:50%;background:rgb(255 255 255/.92);box-shadow:2px 2px 0 #262626;color:#262626}
.goods-turn-prev{left:4.5%}
.goods-turn-next{left:95.5%}
.goods-turn svg{width:64%;height:64%;fill:currentColor}
.goods-turn:focus-visible{outline:3px solid #343434;outline-offset:2px}
@media(hover:hover){.goods-turn:hover{background:#262626;color:#fff;box-shadow:3px 3px 0 rgb(38 38 38/.35)}}
.goods-turn:active{background:#262626;color:#fff;box-shadow:0 0 0 #262626}
@keyframes goods-turn-prev{50%{transform:translateX(-18%)}}
@keyframes goods-turn-next{50%{transform:translateX(18%)}}

@media(prefers-reduced-motion:no-preference){
  .goods-card{transition:translate .18s cubic-bezier(.3,1.6,.5,1),box-shadow .18s}
  .goods-card img{transition:scale .3s ease-out}
  .goods-card:hover img{scale:1.05}
  .goods-all,.goods-pause{transition:background-color .15s,color .15s,box-shadow .15s}
  .goods-turn{transition:background-color .15s,color .15s,box-shadow .15s,scale .18s cubic-bezier(.3,1.6,.5,1)}
  .goods-turn:is(:hover,:focus-visible){scale:1.14}
  .goods-turn:active{scale:.9}
  .goods-turn-prev:is(:hover,:focus-visible) svg{animation:goods-turn-prev .7s ease-in-out infinite}
  .goods-turn-next:is(:hover,:focus-visible) svg{animation:goods-turn-next .7s ease-in-out infinite}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important}}
