/* 페이지 이동 스켈레톤 : 헤더, GNB, 하단 메뉴는 두고 본문 자리만 덮음 */
.ap-skel-nav {position:fixed; left:0; top:0; width:100%; bottom:0; z-index:9000; background:#fff; overflow:hidden; opacity:0; transition:opacity .12s ease-out;}
.ap-skel-nav.is-visible {opacity:1;}
.ap-skel-nav.is-instant {transition:none;}
.ap-skel-nav.is-leaving {opacity:0; transition:opacity .2s ease-out;}
.ap-skel-page {padding:16px;}

.ap-skel {position:relative; overflow:hidden; background:#f2f3f5; border-radius:6px;}
.ap-skel::after {content:""; position:absolute; top:0; left:0; width:100%; height:100%; transform:translateX(-100%); background:linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.65), rgba(255,255,255,0)); animation:ap-skel-shimmer 1.2s linear infinite;}
@keyframes ap-skel-shimmer {100% {transform:translateX(100%);}}

.ap-skel--line {height:14px; margin-top:8px;}
.ap-skel--line.w90 {width:90%;}
.ap-skel--line.w70 {width:70%;}
.ap-skel--line.w50 {width:50%;}
.ap-skel--line.w30 {width:30%;}
.ap-skel--title {height:20px; width:40%; margin:24px 0 12px;}
.ap-skel--ratio {height:0;}
.ap-skel--banner {padding-top:56%; border-radius:10px;}
.ap-skel--square {padding-top:100%;}

.ap-skel-row {display:flex; justify-content:space-between;}
.ap-skel-shortcut {width:17%; text-align:center;}
.ap-skel-shortcut .ap-skel--circle {padding-top:100%; border-radius:50%;}
.ap-skel-shortcut .ap-skel--line {margin:8px auto 0; width:80%; height:10px;}

.ap-skel-cards3 {display:flex; justify-content:space-between;}
.ap-skel-cards3 > div {width:31.5%;}
.ap-skel-grid2 {display:flex; flex-wrap:wrap; justify-content:space-between;}
.ap-skel-grid2 > div {width:48.5%; margin-bottom:20px;}

.ap-skel-chips {display:flex; margin-bottom:16px;}
.ap-skel-chips .ap-skel {width:64px; height:30px; border-radius:15px; margin-right:8px;}

.ap-skel-detail {padding:0;}
.ap-skel-detail .ap-skel--square {border-radius:0;}
.ap-skel-detail .ap-skel-body {padding:16px;}
.ap-skel--price {height:24px; width:45%; margin-top:16px;}
.ap-skel-divider {height:8px; background:#f7f7f7; margin:20px -16px;}

/* 메인 홈 (Figma 어바웃펫 FO 스켈레톤 > 메인 홈, MO 375 기준) */
.ap-skel--line.w60 {width:60%;}
.ap-skel-home .ap-skel {background:#eceef1;}
.ap-skel-h-visual {height:0; padding-top:54.9%; border-radius:0;}
.ap-skel-h-pager {position:absolute; right:12px; bottom:12px; width:70px; height:20px; border-radius:10px; background:#dfe2e7; z-index:1;}
.ap-skel-h-quick {height:227px; padding:8px 8px 0; box-sizing:border-box;}
.ap-skel-h-qtabs {display:flex; height:34px; padding:2px; border-radius:17px; background:#f5f6f8; box-sizing:border-box;}
.ap-skel-h-qtabs > div {flex:1; border-radius:15px;}
.ap-skel-h-qtabs > .is-on {flex:0 0 64px; background:#dfe2e7;}
.ap-skel-h-qgrid {display:flex; flex-wrap:wrap; padding:14px 12px 0;}
.ap-skel-h-qitem {width:25%; margin-bottom:14px; text-align:center;}
.ap-skel-h-qitem > .ap-skel {width:50px; height:50px; margin:0 auto; border-radius:12px;}
.ap-skel-h-qitem > .ap-skel--line {width:44px; height:10px; margin:6px auto 0;}
.ap-skel-h-bannr {height:0; padding-top:23.5%; margin:4px 0; border-radius:0;}
.ap-skel-h-title {display:flex; justify-content:space-between; align-items:flex-end; padding:20px 20px 12px;}
.ap-skel-h-title .t1 {width:150px; height:18px;}
.ap-skel-h-title .t2 {width:110px; height:12px; margin-top:6px;}
.ap-skel-h-title .more {width:42px; height:12px;}
.ap-skel-h-tdband {display:flex; align-items:center; justify-content:center; height:82px; background:#e9ebef;}
.ap-skel-h-clock {width:36px; height:36px; margin-right:10px; border-radius:50%; background:#dadde3;}
.ap-skel-h-digits {display:flex;}
.ap-skel-h-digits i {width:22px; height:30px; margin-right:4px; border-radius:4px; background:#f5f6f8;}
.ap-skel-h-digits b {width:6px; margin-right:4px;}
.ap-skel-h-rail {display:flex; padding:14px 0 0 20px; overflow:hidden;}
.ap-skel-h-card {flex:0 0 145px; margin-right:15px;}
.ap-skel-h-img {height:145px; border-radius:8px;}
.ap-skel-h-cart {width:18px; height:18px; margin:6px 4px 0 auto; border-radius:4px;}
.ap-skel-h-card .ap-skel--line {height:12px;}
.ap-skel-h-price {display:flex; margin-top:10px;}
.ap-skel-h-price .ap-skel {width:32px; height:17px; margin-right:6px;}
.ap-skel-h-price .ap-skel + .ap-skel {width:64px;}

/* 홈 : 첫 화면 아래쪽 늦은 코너(타임딜 등) 자리 스켈레톤. is-ghost는 코너 html 도착 후 위에 겹쳐 사라짐 */
.ap-skel-slot {background:#fff; opacity:1; transition:opacity .2s ease-out;}
.ap-skel-slot .ap-skel {background:#eceef1;}
.ap-skel-slot.is-ghost {position:absolute; left:0; top:0; right:0; z-index:5; pointer-events:none;}
.ap-skel-slot.is-leaving {opacity:0;}

/* 홈 : 스켈레톤이 걷힌 뒤 붙는 아래 코너, 그 안의 늦은 이미지 */
.ap-corner-in {animation:ap-corner-in .3s ease-out both;}
@keyframes ap-corner-in {from {opacity:0;} to {opacity:1;}}
img.ap-img-in {opacity:0; transition:opacity .25s ease-out;}
img.ap-img-in.is-loaded {opacity:1;}

/* 화면별 템플릿 (Figma 어바웃펫 FO 스켈레톤 각 페이지, MO 375 기준) */
.ap-sk {position:relative; height:100%;}
.ap-sk .ap-skel {flex:0 0 auto; background:#eceef1; border-radius:4px;}
.ap-sk .ap-skel.c2 {background:#f4f5f7;}
.ap-sk .ap-skel.c3 {background:#dfe2e7;}
.ap-sk .ap-skel.cw {background:rgba(255,255,255,.75);}
.ap-sk-row {display:flex; align-items:center;}
.ap-sk-col {display:flex; flex-direction:column;}
.ap-sk-cell {flex:1; display:flex; align-items:center; justify-content:center; height:100%;}
.ap-sk-btno {flex:0 0 auto; display:flex; align-items:center; justify-content:center; border:1px solid #e6e8ec; border-radius:4px; box-sizing:border-box;}
.ap-sk-gap {height:var(--ap-gap, 0px); overflow:hidden; display:flex; flex-direction:column; justify-content:flex-end;}
.ap-sk-pill {position:absolute; z-index:1; border-radius:9px; background:#dfe2e7;}
.ap-sk-grid {display:grid; grid-template-columns:1fr 1fr; column-gap:15px; row-gap:20px; padding:0 16px;}
.ap-sk-card {min-width:0;}
.ap-sk .ap-sk-img {width:100%; height:0; padding-top:100%; border-radius:8px;}
.ap-sk-rank {position:absolute; left:0; bottom:0; z-index:1; width:22px; height:22px; border-radius:4px; background:#dfe2e7;}
.ap-sk-fix,
.ap-sk-menubar {position:absolute; left:0; right:0; bottom:0; z-index:2; background:#fff;}
.ap-sk-menubar {display:flex; height:56px; border-top:1px solid #f4f5f7; box-sizing:border-box;}
.ap-sk-menubar > div {flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center;}
.ap-skel-nav.has-bottom .ap-sk-menubar {display:none;}
/* 검은 화면(펫TV 영상 상세) : 흰 반짝임이 번쩍이지 않게 옅게 */
.ap-sk-dark .ap-skel::after {background:linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.06), rgba(255,255,255,0));}

@media (prefers-reduced-motion: reduce) {
	.ap-skel::after {animation:none; display:none;}
	.ap-skel-nav {transition:none;}
	.ap-corner-in {animation:none;}
	img.ap-img-in {transition:none; opacity:1;}
}
