/* Coway catalog. Transition patterns adapted from yui540/css-animations (MIT).
   Sources: 2025-02-25 mask; 2026-04-17 popup/turn; 2026-04-25 ripple;
   2026-04-29 draw line; 2026-06-07 heart; 2026-06-08 panel/shine.
   Full original set and license: /assets/motions/yui540/. */
.catalog-categories { grid-column: 1 / -1; }
.home-promotion-banner { display: grid; grid-template-columns: minmax(180px,264px) minmax(0,1fr) auto; align-items: center; gap: 22px; margin: 16px 14px 4px; padding: 12px; border: 1px solid #e8eef2; border-radius: 18px; background: #fff; transition: border-color .3s, box-shadow .3s; }.home-promotion-image { display: block; overflow: hidden; border-radius: 11px; }.home-promotion-banner img { display: block; width: 100%; height: auto; }.home-promotion-copy strong { display: block; color: #436579; font-size: 15px; font-weight: 400; line-height: 1.65; }.home-promotion-copy small { display: block; margin-top: 6px; color: #9aaeb9; font-size: 10px; line-height: 1.8; }.home-promotion-action { display: inline-flex; align-items: center; justify-content: center; gap: 13px; margin-right: 10px; padding: 11px 16px; border: 1px solid #e2ebf0; border-radius: 11px; color: #668a9f; font-size: 10px; white-space: nowrap; }.home-promotion-action svg { width: 14px; height: 14px; transition: transform .3s; }.home-promotion-banner:hover { border-color: #d7e3e9; box-shadow: 0 5px 18px #183b4c06; }.home-promotion-banner:hover .home-promotion-action svg { transform: translate(2px,-2px); }.home-promotion-banner:focus-visible { outline: 2px solid #597b8c; outline-offset: 4px; }
.catalog-intro { padding: 18px 14px 24px; }.catalog-intro > span { font-size: 9px; letter-spacing: 2px; color: #9aadb7; }.catalog-intro h1 { font-size: 30px; font-weight: 400; color: #234556; margin: 9px 0; }.catalog-intro p { font-size: 11px; color: #97a9b3; }
.card-colors { display: flex; gap: 4px; align-items: center; }.card-colors > span { width: 9px; height: 9px; border-radius: 50%; border: 1px solid #00000015; }
.card-price { display: flex; align-items: baseline; gap: 5px; margin-top: 14px; color: #8c9fa9; font-size: 9px; }.card-price strong { color: #234556; font-size: 21px; font-weight: 500; }.card-price-note { color: #97a8b1; font-size: 8px; margin: 4px 0 6px; line-height: 1.8; }
.product-copy h3 a:focus-visible, .product-image-button:focus-visible, .product-detail-trigger:focus-visible { outline: 2px solid #597b8c; outline-offset: 3px; }
.category-list.coway-categories { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; overflow: visible; }
.coway-category { border: 1px solid transparent; border-radius: 16px; padding: 12px 6px 14px; display: flex; flex-direction: column; align-items: center; gap: 12px; transition: background .25s, border-color .25s, transform .25s; }
.category-image { width: 80px; height: 80px; border-radius: 22px; background: #f8fbfd; padding: 8px; position: relative; overflow: hidden; }
.category-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .45s cubic-bezier(.22,.61,.36,1); }
.coway-category > span { font-size: 11px; text-align: center; font-weight: 400; line-height: 1.6; color: #5c7383; }
.coway-category:hover { background: #f9fcfe; }
.coway-category:hover img { transform: translateY(-3px) scale(1.06); }
.coway-category[aria-pressed="true"] { background: #eff9fd; border-color: #cdeaf6; }
.coway-category[aria-pressed="true"] > span { color: #0088c5; }
.coway-category.category-picked .category-image img { animation: yui_2026_04_17_tips_1_popup .6s ease-in-out both; }
.catalog-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 22px; }
.catalog-heading .section-subtitle { margin: 6px 0 0; }
#catalog-reset { display: inline-flex; align-items: center; gap: 6px; color: #0088c5; font-size: 11px; flex-shrink: 0; }
#catalog-reset svg { width: 14px; }
.product-grid > .coway-product { padding: 12px; border: 1px solid #e5edf2; border-radius: 18px; box-shadow: none; transition: box-shadow .3s, border-color .3s, transform .3s; }
.coway-product[hidden] { display: none !important; }
.product-grid .product-image-button { position: relative; width: 100%; height: auto; aspect-ratio: 1.1; overflow: hidden; background: #fafcfd; border-radius: 12px; display: grid; place-items: center; }
.product-image-button img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: normal; }
.product-image-button::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, #ffffffa0 50%, transparent 65%); transform: translateX(-130%); pointer-events: none; }
@media (hover: hover) {
 .coway-product:hover { border-color: #e1e5e8; box-shadow: 0 12px 28px #00000008; transform: translateY(-3px); }
 .coway-product:hover .product-image-button::after { animation: catalog-shine .85s cubic-bezier(.22,.61,.36,1); }
}
@keyframes catalog-shine { from { transform: translateX(-130%); } to { transform: translateX(130%); } }
.product-copy { padding: 15px 3px 8px; }
.product-type { font-size: 10px; color: #91a1ac; }
.product-grid .coway-product h3 { font-size: 15px; color: #234556; font-weight: 500; height: auto; min-height: 0; margin-top: 6px; line-height: 1.55; }
.product-sku { color: #8da0ad; font-size: 10px; margin-top: 6px; letter-spacing: .3px; }
.product-grid .coway-product > .product-actions { margin: auto 3px 0; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f0f4f6; }
.product-actions .product-detail-trigger { width: auto; height: 32px; display: inline-flex; align-items: center; gap: 6px; background: transparent; color: #0088c5; font-size: 11px; }
.product-detail-trigger svg { width: 14px; transition: transform .25s; }
.product-detail-trigger:hover svg { transform: translate(2px, -2px); }
.product-actions .product-save { position: relative; width: 32px; height: 32px; border-radius: 50%; background: #f6fafc; color: #a1b5c1; display: grid; place-items: center; overflow: visible; }
.product-save svg { width: 16px; height: 16px; stroke-width: 1.7; }
.product-save[aria-pressed="true"] { color: #0088c5; }
.product-save[aria-pressed="true"] svg { fill: #0088c5; }
.product-save.save-pop svg { animation: yui_2026_04_17_tips_1_popup .6s ease-in-out both; }
.save-burst { position: absolute; inset: -6px; border: 1px solid #77d1f0; border-radius: 50%; opacity: 0; pointer-events: none; }
.save-pop .save-burst { animation: catalog-ripple .6s ease-out; }
@keyframes catalog-ripple { from { opacity: .7; transform: scale(.4); } to { opacity: 0; transform: scale(1.3); } }
.product-detail { position: fixed; inset: 0; margin: auto; padding: 0; width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); border: 1px solid #e5edf2; border-radius: 24px; overflow: auto; color: #234556; }
.product-detail::backdrop { background: #183b4c55; backdrop-filter: blur(5px); }
.product-detail[open] { animation: catalog-panel-in .45s cubic-bezier(.22,.61,.36,1) both; }
@keyframes catalog-panel-in { from { opacity: 0; transform: translateY(20px) scale(.97); clip-path: inset(0 0 25% 0 round 24px); } to { opacity: 1; transform: translateY(0) scale(1); clip-path: inset(0 round 24px); } }
.detail-layout { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 36px; align-items: center; }
.detail-close { position: absolute; right: 14px; top: 14px; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #e3edf2; border-radius: 10px; background: #fff; z-index: 2; }
.detail-close svg { width: 16px; }
.detail-image { background: #fafcfd; border-radius: 16px; aspect-ratio: 1; overflow: hidden; }
.detail-image img { width: 100%; height: 100%; object-fit: contain; }
.detail-copy > span { font-size: 12px; color: #0088c5; }
.detail-copy h2 { font-size: 27px; font-weight: 500; margin-top: 12px; }
.detail-copy p { font-size: 12px; line-height: 1.8; margin-top: 14px; color: #8397a4; }
@media (max-width: 1023px) { .category-list.coway-categories { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px) {
 .home-promotion-banner { grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 5px; margin: 13px 4px 4px; padding: 11px; border-radius: 14px; }.home-promotion-image { grid-row: 1 / 3; border-radius: 8px; }.home-promotion-copy strong { font-size: 11px; }.home-promotion-copy small { display: none; }.home-promotion-action { justify-self: start; margin: 0; padding: 2px 0; border: 0; border-radius: 0; gap: 7px; font-size: 9px; }.home-promotion-action svg { width: 12px; height: 12px; }
 .card-price { margin-top: 11px; gap: 4px; font-size: 8px; }.card-price strong { font-size: 18px; }.card-price-note { font-size: 7px; }
 .catalog-intro h1 { font-size: 23px; }.catalog-intro { padding: 12px 8px 18px; }.catalog-intro p { font-size: 10px; }.card-colors { gap: 3px; }.card-colors > span { width: 7px; height: 7px; }
 .category-list.coway-categories { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 4px; }
 .coway-category { padding: 8px 2px; gap: 8px; border-radius: 12px; }
 .category-image { width: 58px; height: 58px; padding: 5px; border-radius: 16px; }
 .coway-category > span { font-size: 9px; max-width: 84px; }
 .catalog-heading { margin-bottom: 18px; }
 #view-home .catalog-heading h2 { font-size: 16px; }
 .catalog-heading .section-subtitle { font-size: 10px; }
 .product-grid > .coway-product { padding: 8px; border-radius: 14px; }
 .product-grid .product-image-button { aspect-ratio: 1; border-radius: 10px; }
 .product-copy { padding: 10px 2px; }
 .product-grid .coway-product h3 { font-size: 13px; }
 .product-type { font-size: 9px; }
 .product-sku { font-size: 9px; }
 .product-grid .coway-product > .product-actions { margin: auto 2px 0; padding-top: 8px; }
 .product-actions .product-detail-trigger { font-size: 10px; }
 .product-actions .product-save { width: 28px; height: 28px; }
 .detail-layout { grid-template-columns: 1fr; gap: 18px; padding: 26px; }
 .detail-image { max-height: 230px; }
 .detail-copy h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
 .coway-category.category-picked img, .save-pop svg, .save-pop .save-burst, .product-detail[open], .coway-product:hover .product-image-button::after { animation: none !important; }
}
