/* =========================================================
   링크픽 공개 상점 · shop.css v4 (Claude 테마 리디자인)
   - 마크업: app/Views/public_shop.php + shop_product_card.php
   - 테마 키(milk~forest)와 --bg/--ink/--sub/--accent/--tile/--radius/--gap
     변수는 기존 그대로 유지 (관리자 테마 선택·메인 미리보기 호환)
   ========================================================= */

/* ---------- 테마 표시용 폰트 (자체 호스팅, KS X 1001 서브셋) ---------- */
@font-face{font-family:'LP Jua';src:url(linkpick-shop-fonts/Jua-Regular.woff2) format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'LP DoHyeon';src:url(linkpick-shop-fonts/DoHyeon-Regular.woff2) format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'LP BlackHan';src:url(linkpick-shop-fonts/BlackHanSans-Regular.woff2) format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'LP Batang';src:url(linkpick-shop-fonts/GowunBatang-Regular.woff2) format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'LP Batang';src:url(linkpick-shop-fonts/GowunBatang-Bold.woff2) format('woff2');font-weight:700;font-display:swap}

/* ---------- 테마 토큰 ---------- */
.theme-milk{--bg:#fff;--ink:#141414;--sub:#8a8a8a;--accent:#141414;--tile:#f1f1f1;--radius:10px;--gap:10px;
  --outer:#f2f2f0;--line:rgba(0,0,0,.08);--sale:#f0412f;--price:#141414;--star:#f5a524;--notice:#f6f6f5;
  --font-display:inherit;--display-weight:800;--font-price:inherit;--price-weight:800}
.theme-peach{--bg:#fff5f0;--ink:#4b2a21;--sub:#a47f73;--accent:#ff7a59;--tile:#ffe1d4;--radius:18px;--gap:10px;
  --outer:#f7e3d9;--line:rgba(255,122,89,.16);--sale:#ff4f2e;--price:#4b2a21;--star:#ffa63d;--notice:#ffe8de;
  --font-display:'LP Jua';--display-weight:400;--font-price:'LP Jua';--price-weight:400}
.theme-lavender{--bg:#f7f2ff;--ink:#2d2342;--sub:#8b7ca8;--accent:#8b6cf0;--tile:#e7dcff;--radius:16px;--gap:10px;
  --outer:#ebe2fb;--line:rgba(139,108,240,.15);--sale:#e5457f;--price:#2d2342;--star:#f6a93b;--notice:rgba(255,255,255,.7);
  --font-display:inherit;--display-weight:800;--font-price:inherit;--price-weight:800}
.theme-mint{--bg:#ecf7f2;--ink:#173f33;--sub:#62877a;--accent:#2fb383;--tile:#d3eee2;--radius:14px;--gap:9px;
  --outer:#dcefe6;--line:rgba(23,63,51,.07);--sale:#ec523b;--price:#173f33;--star:#f5a524;--notice:#fff;
  --font-display:'LP DoHyeon';--display-weight:400;--font-price:'LP DoHyeon';--price-weight:400}
.theme-butter{--bg:#fff3b5;--ink:#1f1b12;--sub:#6b5f35;--accent:#1f1b12;--tile:#fff9dc;--radius:14px;--gap:11px;
  --outer:#f3e389;--line:#1f1b12;--sale:#e5391f;--price:#1f1b12;--star:#e8890c;--notice:#fff;
  --font-display:'LP Jua';--display-weight:400;--font-price:'LP Jua';--price-weight:400}
.theme-midnight{--bg:#10151d;--ink:#eef2f7;--sub:#8e99aa;--accent:#c6f36b;--tile:#1f2733;--radius:12px;--gap:9px;
  --outer:#07090d;--line:rgba(255,255,255,.07);--sale:#ff7b72;--price:#fff;--star:#f6c453;--notice:#171e28;
  --font-display:inherit;--display-weight:800;--font-price:inherit;--price-weight:800}
.theme-linen{--bg:#f5efe4;--ink:#3e3428;--sub:#8d7f6c;--accent:#8a6f4e;--tile:#e8dfd0;--radius:0px;--gap:12px;
  --outer:#e9e0cf;--line:rgba(62,52,40,.14);--sale:#b24d2b;--price:#3e3428;--star:#b88a3e;--notice:transparent;
  --font-display:'LP Batang';--display-weight:700;--font-price:'LP Batang';--price-weight:700}
.theme-cherry{--bg:#fff0f3;--ink:#4b1526;--sub:#a26473;--accent:#ff3d6e;--tile:#ffd5df;--radius:20px;--gap:10px;
  --outer:#ffdbe4;--line:rgba(255,61,110,.14);--sale:#ff2d5a;--price:#4b1526;--star:#ff9f1c;--notice:#fff;
  --font-display:'LP BlackHan';--display-weight:400;--font-price:'LP BlackHan';--price-weight:400}
.theme-sky{--bg:#eef6ff;--ink:#163a59;--sub:#6c87a3;--accent:#3d8bfd;--tile:#d9eaff;--radius:14px;--gap:10px;
  --outer:#dcebfb;--line:rgba(61,139,253,.13);--sale:#f0484e;--price:#163a59;--star:#f5a524;--notice:#fff;
  --font-display:inherit;--display-weight:800;--font-price:inherit;--price-weight:800}
.theme-forest{--bg:#f7f4ea;--ink:#213b30;--sub:#727c6d;--accent:#2f5d48;--tile:#e4e8d8;--radius:12px;--gap:10px;
  --outer:#e6e2d3;--line:rgba(33,59,48,.1);--sale:#c4512e;--price:#213b30;--star:#d39a2c;--notice:#efebdd;
  --font-display:'LP Batang';--display-weight:700;--font-price:inherit;--price-weight:800}

/* ---------- 기본 레이아웃 ---------- */
.shop-body{margin:0;background:var(--outer,#f2f2f0);color:var(--ink,#141414);font-family:'Pretendard Variable',Pretendard,-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
.shop{position:relative;background:var(--bg);color:var(--ink);width:100%;max-width:440px;min-height:100svh;margin:0 auto;overflow:hidden;box-sizing:border-box;padding-bottom:env(safe-area-inset-bottom)}
.shop *{box-sizing:border-box}
@media(min-width:480px){.shop{box-shadow:0 0 0 1px var(--line),0 20px 60px -30px rgba(0,0,0,.25)}}

/* 헤더 */
.shop-header{position:relative;text-align:center;padding:44px 24px 6px}
.shop-avatar{position:relative;width:96px;height:96px;margin:0 auto 16px;border-radius:50%;padding:4px;background:var(--bg);box-shadow:0 0 0 1.5px var(--line);display:grid;place-items:center}
.shop-avatar img,.shop-avatar span{width:100%;height:100%;border-radius:50%;display:grid;place-items:center}
.shop-avatar img{object-fit:cover}
.shop-avatar span{background:var(--tile);color:var(--accent);font-family:var(--font-display);font-weight:var(--display-weight);font-size:34px}
.shop h1{font-family:var(--font-display);font-weight:var(--display-weight);font-size:var(--h1-size,22px);line-height:1.3;letter-spacing:-.5px;margin:0;word-break:keep-all;overflow-wrap:anywhere}
.shop-handle{display:inline-block;margin-top:6px;font-size:12.5px;font-weight:500;color:var(--sub);letter-spacing:-.1px}
.shop-bio{font-size:13px;line-height:1.65;color:var(--ink);opacity:.78;margin:12px auto 0;max-width:320px;word-break:keep-all;overflow-wrap:anywhere}

/* 파트너스 고지 */
.affiliate-notice{margin:20px 16px 22px;padding:10px 12px;border-radius:12px;background:var(--notice);font-size:12px;line-height:1.7;font-weight:500;color:var(--ink);opacity:.8;text-align:center;letter-spacing:-.2px;word-break:keep-all}
.affiliate-notice>span{display:block}

/* 상품 그리드 */
.shop-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px var(--gap);padding:0 14px;align-items:stretch}
.shop-item{position:relative;display:flex;flex-direction:column;min-width:0;height:100%;color:var(--ink);text-decoration:none;-webkit-tap-highlight-color:transparent}
.shop-item:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:calc(var(--radius) + 4px)}

/* 썸네일: 쿠팡 이미지는 대부분 흰 배경 → 흰 타일 + contain 으로 잘림 없이 */
.shop-image{position:relative;aspect-ratio:1/1;background:#fff;border-radius:var(--radius);overflow:hidden;isolation:isolate;box-shadow:0 0 0 1px var(--line);display:grid;place-items:center;color:var(--sub)}
.shop-image>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transition:transform .45s cubic-bezier(.2,.7,.2,1),filter .45s}
.shop-image-empty{opacity:.5;font-size:22px}

.shop-pin{position:absolute;z-index:2;left:6px;top:6px;padding:3px 6px 2px;border-radius:6px;background:var(--accent);color:var(--bg);font-size:9px;font-weight:800;letter-spacing:.8px;line-height:1.3}
.shop-delivery{position:absolute;z-index:2;left:5px;bottom:5px;display:flex;align-items:center;height:19px;padding:0 5px;border-radius:6px;background:rgba(255,255,255,.94);box-shadow:0 1px 4px rgba(0,0,0,.12)}
.shop-delivery>img{display:block;height:13px;width:auto}
.shop-delivery.is-text{font-size:9.5px;font-weight:700;color:#3a3a3a;letter-spacing:-.2px}

/* 캡션: 4줄 고정 높이 → 가격 유무와 상관없이 줄이 맞음 */
.shop-caption{container-type:inline-size;flex:1;display:flex;flex-direction:column;padding:9px 2px 0;font-variant-numeric:tabular-nums}
.shop-caption-top{min-width:0}
.shop-caption-bottom{margin-top:auto;padding-top:5px;min-width:0}
.shop-product-option{display:block;margin-top:2px;font-size:10.5px;line-height:15px;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.2px}
.shop-fact-checked{display:block;margin-top:1px;font-size:9.5px;line-height:13px;color:var(--sub);opacity:.85;white-space:nowrap;letter-spacing:-.1px}
.shop-facts-note{margin:20px 22px 0;font-size:10.5px;line-height:1.65;color:var(--sub);text-align:center;word-break:keep-all}
.shop-product-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;height:34px;font-size:12.5px;line-height:17px;font-weight:500;letter-spacing:-.3px;word-break:keep-all;overflow-wrap:anywhere;color:var(--ink)}
.shop-sub{display:flex;align-items:center;gap:4px;height:15px;font-size:10.5px;line-height:15px;white-space:nowrap;overflow:hidden}
.shop-sub del{color:var(--sub);text-decoration-thickness:1px;flex-shrink:0}
.shop-price-condition{font-style:normal;font-weight:700;font-size:10px;color:var(--sale);overflow:hidden;text-overflow:ellipsis}
.shop-price{display:flex;align-items:baseline;gap:3px;height:22px;white-space:nowrap;overflow:hidden}
.shop-discount{flex-shrink:0;font-size:min(13px,12cqi);font-weight:800;color:var(--sale);letter-spacing:-.3px}
.shop-current-price{font-family:var(--font-price);font-weight:var(--price-weight);font-size:min(var(--price-size,16px),15cqi);line-height:22px;letter-spacing:-.4px;color:var(--price)}
.shop-current-price>span{font-family:'Pretendard Variable',Pretendard,sans-serif;font-size:11px;font-weight:600;margin-left:1px;letter-spacing:0}
.shop .shop-price .is-long{font-size:min(13.5px,11.3cqi);letter-spacing:-.5px}
.shop .shop-price .is-xl{font-size:min(12px,9.6cqi);letter-spacing:-.5px}
.shop-price-link{align-self:center;font-size:min(11px,12cqi);font-weight:600;color:var(--accent)}
.shop-rating{display:flex;align-items:center;gap:3px;height:16px;margin-top:1px;font-size:10.5px;line-height:16px;white-space:nowrap;overflow:hidden}
.shop-stars{display:inline-flex;align-items:center;gap:2px;font-weight:700;color:var(--ink)}
.shop-stars>i{font-style:normal;color:var(--star);font-size:11px}
.shop-reviews{color:var(--sub);overflow:hidden;text-overflow:ellipsis}

/* 페이지 이동 · 빈 상태 · 푸터 */
.shop-pagination{display:flex;justify-content:center;align-items:center;gap:6px;padding:34px 12px 8px}
.shop-pagination a{display:grid;place-items:center;min-width:38px;height:38px;padding:0 6px;border-radius:12px;color:var(--ink);text-decoration:none;font-size:14px;font-weight:600;background:transparent;transition:background .15s}
.shop-pagination a.is-arrow{font-size:20px;font-weight:400;color:var(--sub)}
.shop-pagination a[aria-current]{background:var(--accent);color:var(--bg);font-weight:800}
@media(hover:hover){.shop-pagination a:not([aria-current]):hover{background:var(--tile)}}
.shop-empty{margin:10px 16px;padding:56px 20px;text-align:center;font-size:14px;color:var(--sub);border:1.5px dashed var(--line);border-radius:16px}
.shop-end{height:44px}

/* 우측 상단 링크픽 배지 (예전 하단 made with linkpick 대체) */
.shop-made{position:absolute;z-index:5;top:max(12px,env(safe-area-inset-top));right:12px;display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 9px 0 6px;border-radius:999px;background:rgba(255,255,255,.82);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 0 0 1px rgba(0,0,0,.07),0 2px 8px -3px rgba(0,0,0,.18);color:#222;text-decoration:none;font-size:10.5px;font-weight:700;letter-spacing:-.3px;line-height:1;white-space:nowrap;-webkit-tap-highlight-color:transparent;transition:transform .15s}
.shop-made>img{width:14px;height:14px;border-radius:4px;display:block}
.shop-made>span{font-size:10px;opacity:.55;margin-left:1px}
.shop-made:active{transform:scale(.96)}
@media(hover:hover){.shop-made:hover{background:#fff}}
.theme-midnight .shop-made,.theme-forest .shop-made{background:rgba(255,255,255,.12);color:#f2f5f0;box-shadow:0 0 0 1px rgba(255,255,255,.16)}
.theme-butter .shop-made{background:#fff;color:var(--ink);box-shadow:2px 2px 0 var(--ink);border:1.5px solid var(--ink);-webkit-backdrop-filter:none;backdrop-filter:none}
.theme-linen .shop-made{border-radius:2px;background:rgba(255,255,255,.6);color:var(--ink)}

/* 좁은 폰(≤360px) */
@media(max-width:360px){
  .shop-grid{padding:0 10px;column-gap:7px}
  .shop-product-name{font-size:12px}
  .shop-sub,.shop-rating{font-size:10px}
  .shop-delivery>img{height:11px}.shop-delivery{height:17px;padding:0 4px}
}

/* =========================================================
   테마별 개성
   ========================================================= */

/* 01 밀크 화이트 — 여백 많은 미니멀, 얇은 선 */
.theme-milk .shop-avatar{box-shadow:0 0 0 1px #e4e4e4}
.theme-milk .shop-pagination a[aria-current]{border-radius:50%}

/* 02 피치 코랄 — 스토리 링 아바타, 둥글고 따뜻한 그림자 */
.theme-peach .shop-avatar{background:linear-gradient(135deg,#ffb38a,#ff7a59 50%,#ff5f87);padding:3px;box-shadow:none}
.theme-peach .shop-avatar img,.theme-peach .shop-avatar span{border:3px solid var(--bg)}
.theme-peach{--h1-size:26px}
.theme-peach .shop-pin{background:#ff7a59;color:#fff;border-radius:999px}
.theme-peach{--price-size:17px}
.theme-peach .shop-pagination a[aria-current]{color:#fff;border-radius:999px}

/* 03 라벤더 드림 — 그라데이션 배경, 반투명 유리 고지 */
.shop.theme-lavender{background:radial-gradient(120% 340px at 50% -60px,#e3d5ff 0,#f7f2ff 70%) no-repeat,var(--bg)}
.theme-lavender .shop-avatar{background:linear-gradient(135deg,#b9a2ff,#ffb3d9);padding:3px;box-shadow:0 10px 24px -12px rgba(139,108,240,.6)}
.theme-lavender .shop-avatar img,.theme-lavender .shop-avatar span{border:3px solid #fff}
.theme-lavender .affiliate-notice{border:1px solid rgba(139,108,240,.16);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.theme-lavender .shop-pin{background:linear-gradient(135deg,#8b6cf0,#d07be6);color:#fff}
.theme-lavender .shop-pagination a[aria-current]{color:#fff;background:linear-gradient(135deg,#8b6cf0,#c17ae8)}

/* 04 민트 소다 — 흰 카드에 담긴 상품, 상큼한 핸들 칩 */
.theme-mint .shop-avatar{box-shadow:0 0 0 3px var(--accent);padding:4px}
.theme-mint{--h1-size:26px}.theme-mint h1{letter-spacing:0}
.theme-mint .shop-handle{padding:3px 11px;border-radius:999px;background:#fff;color:var(--accent);font-weight:700;font-size:12px}
.theme-mint .shop-grid{gap:12px var(--gap);padding:0 12px}
.theme-mint .shop-item{background:#fff;border-radius:18px;padding:6px 6px 8px;box-shadow:0 1px 0 rgba(23,63,51,.04),0 6px 16px -10px rgba(23,63,51,.25)}
.theme-mint .shop-caption{padding:8px 2px 0}
.theme-mint{--price-size:17px}.theme-mint .shop-current-price{letter-spacing:0}
.theme-mint .shop-pin{background:var(--accent);color:#fff}
.theme-mint .shop-pagination a[aria-current]{color:#fff}
@media(max-width:360px){.theme-mint .shop-item{padding:4px 4px 6px}.theme-mint .shop-grid{padding:0 8px;column-gap:6px}}

/* 05 버터 옐로우 — 굵은 외곽선 + 오프셋 그림자(네오 브루탈) */
.theme-butter .shop-avatar{background:#ffd84d;box-shadow:none;border:2.5px solid var(--ink);padding:4px;box-shadow:4px 4px 0 var(--ink)}
.theme-butter .shop-avatar img,.theme-butter .shop-avatar span{border:2px solid var(--ink)}
.theme-butter{--h1-size:26px}.theme-butter h1{letter-spacing:0}
.theme-butter .shop-handle{margin-top:9px;padding:3px 12px;border:2px solid var(--ink);border-radius:999px;background:#fff;color:var(--ink);font-weight:700;font-size:12px}
.theme-butter .affiliate-notice{border:2px solid var(--ink);color:var(--ink);box-shadow:3px 3px 0 var(--ink)}
.theme-butter .shop-grid{row-gap:24px;padding:0 15px 0 13px}
.theme-butter .shop-pin{background:var(--ink);color:#ffd84d;left:5px;top:5px}
.theme-butter .shop-delivery{box-shadow:none;border:1.5px solid var(--ink)}
.theme-butter{--price-size:17px}.theme-butter .shop-current-price{letter-spacing:0}
.theme-butter .shop-stars{color:var(--ink)}
.theme-butter .shop-pagination a{border:2px solid var(--ink);background:#fff;box-shadow:2px 2px 0 var(--ink)}
.theme-butter .shop-pagination a.is-arrow{color:var(--ink)}
.theme-butter .shop-pagination a[aria-current]{background:var(--ink);color:#ffd84d}

/* 06 미드나잇 — 다크, 라임 포인트, 카드형 */
.shop.theme-midnight{background:radial-gradient(90% 300px at 50% -80px,rgba(198,243,107,.16),transparent 70%) no-repeat,var(--bg)}
.theme-midnight .shop-avatar{background:var(--bg);box-shadow:0 0 0 2px var(--accent),0 0 28px -4px rgba(198,243,107,.45)}
.theme-midnight .shop-avatar span{background:#1f2733}
.theme-midnight .shop-bio{opacity:.7}
.theme-midnight .affiliate-notice{border:1px solid var(--line)}
.theme-midnight .shop-grid{gap:12px var(--gap);padding:0 12px}
.theme-midnight .shop-item{background:#171e28;border-radius:16px;padding:6px 6px 8px;box-shadow:0 0 0 1px var(--line)}
.theme-midnight .shop-caption{padding:8px 2px 0}
.theme-midnight .shop-pin{background:var(--accent);color:#10151d}
.theme-midnight .shop-pagination a[aria-current]{color:#10151d}
@media(hover:hover){.theme-midnight .shop-pagination a:not([aria-current]):hover{background:#1f2733}}
@media(max-width:360px){.theme-midnight .shop-item{padding:4px 4px 6px}.theme-midnight .shop-grid{padding:0 8px;column-gap:6px}}

/* 07 베이지 리넨 — 명조 타이틀, 직각, 잡지 같은 가는 선 */
.theme-linen .shop-header{padding-top:48px}
.theme-linen .shop-avatar{width:90px;height:90px;padding:5px;box-shadow:0 0 0 1px var(--accent)}
.theme-linen{--h1-size:24px}.theme-linen h1{letter-spacing:-.2px}
.theme-linen .shop-handle{font-size:12px;letter-spacing:1.6px;text-transform:lowercase}
.theme-linen .affiliate-notice{border-radius:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:22px 20px 24px;padding:11px 4px}
.theme-linen .shop-grid{row-gap:26px;padding:0 16px}
.theme-linen .shop-pin{border-radius:0;background:var(--ink);color:var(--bg);letter-spacing:1.6px;font-weight:600}
.theme-linen .shop-delivery{border-radius:2px}
.theme-linen .shop-product-name{font-weight:400}
.theme-linen{--price-size:16px}.theme-linen .shop-current-price{letter-spacing:-.2px}
.theme-linen .shop-pagination a{border-radius:0;font-family:'LP Batang',serif}
.theme-linen .shop-pagination a[aria-current]{background:transparent;color:var(--ink);box-shadow:inset 0 -2px 0 var(--ink)}

/* 08 체리 팝 — 굵은 타이틀, 스티커 느낌 PICK */
.theme-cherry .shop-avatar{background:#fff;padding:4px;box-shadow:0 0 0 3px var(--accent),0 0 0 7px #ffd5df}
.theme-cherry{--h1-size:24px}.theme-cherry h1{letter-spacing:.2px}
.theme-cherry .shop-handle{color:var(--accent);font-weight:700}
.theme-cherry .affiliate-notice{border:1.5px dashed rgba(255,61,110,.35)}
.theme-cherry .shop-pin{left:auto;right:5px;top:5px;padding:4px 6px 3px;border-radius:999px;background:var(--accent);color:#fff;transform:rotate(8deg);box-shadow:0 2px 6px rgba(255,45,90,.4)}
.theme-cherry{--price-size:15.5px}.theme-cherry .shop-current-price{letter-spacing:0}
.theme-cherry .shop-pagination a[aria-current]{color:#fff;border-radius:999px}

/* 09 스카이 블루 — 흰 헤더 카드가 하늘 위에 떠 있는 구성 */
.theme-sky .shop-header{background:#fff;margin:0 0 4px;padding-bottom:22px;border-radius:0 0 30px 30px;box-shadow:0 10px 30px -18px rgba(22,58,89,.35)}
.theme-sky .shop-header::before{content:"";position:absolute;left:0;right:0;top:0;height:78px;background:linear-gradient(180deg,#d6e9ff,#fff);border-radius:0}
.theme-sky .shop-avatar{background:#fff;box-shadow:0 0 0 2px var(--accent)}
.theme-sky .shop-handle{color:var(--accent);font-weight:600}
.theme-sky .shop-pin{color:#fff}
.theme-sky .shop-pagination a[aria-current]{color:#fff}

/* 10 포레스트 — 짙은 숲색 헤더 밴드 + 크림 바탕 */
.theme-forest .shop-header{background:#1f3d30;color:#f7f4ea;padding:44px 24px 30px;border-radius:0 0 28px 28px}
.theme-forest .shop-avatar{background:#1f3d30;box-shadow:0 0 0 1.5px #d9e6b8}
.theme-forest .shop-avatar span{background:#2f5d48;color:#f7f4ea}
.theme-forest{--h1-size:24px}.theme-forest h1{letter-spacing:-.3px}
.theme-forest .shop-handle{color:#c8d8c2}
.theme-forest .shop-bio{color:#e7eedf;opacity:.9}
.theme-forest .affiliate-notice{margin-top:18px}
.theme-forest .shop-pin{background:#1f3d30;color:#e7f0c9}
.theme-forest .shop-pagination a[aria-current]{background:#1f3d30;color:#f7f4ea}

/* =========================================================
   관리자 '테마 선택' 미니 미리보기 (member_shop.php)
   ========================================================= */
.theme-option{background:#fff;color:#27352e}
.mini-shop{background:var(--bg);color:var(--ink);border-radius:9px;padding:14px 9px 10px;min-height:115px;border:1px solid #0000000c}
.mini-shop>i{display:block;width:25px;height:25px;border-radius:50%;background:var(--tile);border:2px solid var(--accent);margin:0 auto 6px}
.mini-shop>b{display:block;background:var(--ink);opacity:.6;width:36px;height:3px;margin:0 auto 10px;border-radius:2px}
.mini-shop>div{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}
.mini-shop>div>span{aspect-ratio:1;background:#fff;border-radius:calc(var(--radius)/2.5);box-shadow:0 0 0 1px var(--line,#0000000c)}
.theme-butter .mini-shop span{border:1px solid var(--ink);box-shadow:1.5px 1.5px 0 var(--ink)}
.theme-midnight .mini-shop>div>span{background:#1f2733;box-shadow:none}
.theme-mint .mini-shop>div>span{box-shadow:0 2px 4px -2px rgba(23,63,51,.3)}
.theme-forest .mini-shop{background:linear-gradient(#1f3d30 0 45%,#f7f4ea 45%)}
.theme-forest .mini-shop>b{background:#fff}
.theme-sky .mini-shop{background:linear-gradient(#fff 0 45%,#eef6ff 45%)}
.theme-peach .mini-shop>i{border-color:#ff7a59}
.theme-lavender .mini-shop{background:linear-gradient(#e3d5ff,#f7f2ff 60%)}

/* =========================================================
   v6 · 썸네일 효과 (테마별)
   - PC: 마우스 올리면 확대·빛 테두리·떠오름 등
   - 모바일: 누르는 순간 눌림 효과 + 처음 보일 때 순서대로 떠오름
   - PICK 상품: 테마색 테두리가 은은하게 숨쉬듯 빛남
   ========================================================= */
.shop-image{transition:box-shadow .35s ease,transform .35s cubic-bezier(.2,.7,.2,1),border-color .35s}
.shop-item{transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s ease}
.shop-image::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;border-radius:inherit;background:linear-gradient(115deg,transparent 30%,var(--shine,rgba(255,255,255,0)) 50%,transparent 70%);transform:translateX(-130%);transition:transform .8s ease}
.shop-item:active .shop-image{transform:scale(.965)}

/* 처음 보일 때 순서대로 떠오름 */
@keyframes lp-rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.shop-item{animation:lp-rise .55s cubic-bezier(.2,.7,.2,1) backwards}
.shop-item:nth-child(2){animation-delay:.04s}.shop-item:nth-child(3){animation-delay:.08s}
.shop-item:nth-child(4){animation-delay:.12s}.shop-item:nth-child(5){animation-delay:.16s}.shop-item:nth-child(6){animation-delay:.2s}
.shop-item:nth-child(7){animation-delay:.24s}.shop-item:nth-child(8){animation-delay:.28s}.shop-item:nth-child(9){animation-delay:.32s}

/* PICK 상품: 숨쉬는 테두리 빛 */
@keyframes lp-breathe{0%,100%{outline-color:transparent}50%{outline-color:var(--glow)}}
.shop-item:has(.shop-pin) .shop-image{outline:2px solid transparent;outline-offset:2px;animation:lp-breathe 2.8s ease-in-out infinite}

/* 01 밀크 — 얇은 회색 선, 올리면 살짝 떠오르며 그림자 */
.theme-milk{--glow:rgba(20,20,20,.28)}
.theme-milk .shop-image{box-shadow:0 0 0 1px #ececec}
@media(hover:hover){
 .theme-milk .shop-item:hover .shop-image{box-shadow:0 0 0 1px #d6d6d6,0 14px 26px -16px rgba(0,0,0,.35);transform:translateY(-3px)}
 .theme-milk .shop-item:hover .shop-image>img{transform:scale(1.05)}}

/* 02 피치 — 코랄빛 은은한 광채, 올리면 링 + 빛 스침 */
.theme-peach{--glow:rgba(255,122,89,.55);--shine:rgba(255,255,255,.6)}
.theme-peach .shop-image{box-shadow:0 0 0 1px rgba(255,122,89,.14),0 0 16px -4px rgba(255,130,95,.45),0 8px 16px -12px rgba(255,79,46,.4)}
@media(hover:hover){
 .theme-peach .shop-item:hover .shop-image{box-shadow:0 0 0 2px rgba(255,122,89,.5),0 0 24px -2px rgba(255,122,89,.45),0 14px 22px -14px rgba(255,79,46,.5);transform:translateY(-3px)}
 .theme-peach .shop-item:hover .shop-image>img{transform:scale(1.07)}
 .theme-peach .shop-item:hover .shop-image::after{transform:translateX(130%)}}

/* 03 라벤더 — 보랏빛 오라 테두리, 올리면 핑크빛까지 번지며 빛 스침 */
.theme-lavender{--glow:rgba(160,120,245,.6);--shine:rgba(255,255,255,.65)}
.theme-lavender .shop-image{box-shadow:0 0 0 1.5px rgba(185,162,255,.45),0 0 18px -5px rgba(160,125,250,.6),0 8px 18px -12px rgba(91,60,190,.45)}
@media(hover:hover){
 .theme-lavender .shop-item:hover .shop-image{box-shadow:0 0 0 2px rgba(185,162,255,.85),0 0 26px -2px rgba(208,123,230,.55),0 14px 24px -14px rgba(91,60,190,.55);transform:translateY(-3px)}
 .theme-lavender .shop-item:hover .shop-image>img{transform:scale(1.06)}
 .theme-lavender .shop-item:hover .shop-image::after{transform:translateX(130%)}}

/* 04 민트 — 흰 카드 전체가 떠오르며 민트 테두리 */
.theme-mint{--glow:rgba(47,179,131,.6)}
.theme-mint .shop-image{border-radius:12px;box-shadow:none;background:#fff}
.theme-mint .shop-item{box-shadow:0 0 0 1px rgba(47,179,131,.08),0 6px 16px -10px rgba(23,63,51,.25)}
@media(hover:hover){
 .theme-mint .shop-item:hover{transform:translateY(-4px);box-shadow:0 0 0 2px rgba(47,179,131,.45),0 16px 26px -14px rgba(23,63,51,.4)}
 .theme-mint .shop-item:hover .shop-image>img{transform:scale(1.07)}}
.theme-mint .shop-item:active{transform:scale(.97)}
.theme-mint .shop-item:active .shop-image{transform:none}

/* 05 버터 — 굵은 테두리, 올리면 튀어나오고 누르면 꾹 눌림 */
.theme-butter{--glow:#1f1b12}
.theme-butter .shop-image{border:2px solid var(--ink);box-shadow:3px 3px 0 var(--ink)}
@media(hover:hover){
 .theme-butter .shop-item:hover .shop-image{transform:translate(-2px,-2px);box-shadow:5px 5px 0 var(--ink)}
 .theme-butter .shop-item:hover .shop-image>img{transform:scale(1.06) rotate(-1.5deg)}}
.theme-butter .shop-item:active .shop-image{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink)}
.theme-butter .shop-item:has(.shop-pin) .shop-image{outline-offset:3px}

/* 06 미드나잇 — 어둠 속 라임 네온 테두리 */
.theme-midnight{--glow:rgba(198,243,107,.7);--shine:rgba(255,255,255,.35)}
.theme-midnight .shop-image{border-radius:11px;box-shadow:none}
.theme-midnight .shop-item{box-shadow:0 0 0 1px var(--line),0 0 14px -6px rgba(198,243,107,.25)}
@media(hover:hover){
 .theme-midnight .shop-item:hover{transform:translateY(-3px);box-shadow:0 0 0 1px rgba(198,243,107,.7),0 0 24px -2px rgba(198,243,107,.38)}
 .theme-midnight .shop-item:hover .shop-image>img{transform:scale(1.07)}
 .theme-midnight .shop-item:hover .shop-image::after{transform:translateX(130%)}}
.theme-midnight .shop-item:active{transform:scale(.97);box-shadow:0 0 0 1px rgba(198,243,107,.7),0 0 20px -2px rgba(198,243,107,.35)}
.theme-midnight .shop-item:active .shop-image{transform:none}

/* 07 리넨 — 종이를 겹친 듯한 액자 프레임, 올리면 프레임이 벌어짐 */
.theme-linen{--glow:rgba(138,111,78,.6)}
.theme-linen .shop-image{box-shadow:0 0 0 1px var(--line),4px 4px 0 -1px var(--bg),4px 4px 0 0 var(--line)}
@media(hover:hover){
 .theme-linen .shop-item:hover .shop-image{box-shadow:0 0 0 1px var(--accent),6px 6px 0 -1px var(--bg),6px 6px 0 0 rgba(138,111,78,.45);transform:translate(-1px,-1px)}
 .theme-linen .shop-item:hover .shop-image>img{transform:scale(1.04);filter:sepia(.12) saturate(1.05)}
 .theme-linen .shop-item:hover .shop-product-name{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}}

/* 08 체리 — 흰 테두리 스티커 + 분홍 광채, 올리면 살짝 기울며 반짝 */
.theme-cherry{--glow:rgba(255,61,110,.6);--shine:rgba(255,255,255,.7)}
.theme-cherry .shop-image{border:2.5px solid #fff;box-shadow:0 0 0 1px rgba(255,61,110,.15),0 0 16px -4px rgba(255,61,110,.45),0 8px 18px -12px rgba(255,45,90,.45)}
@media(hover:hover){
 .theme-cherry .shop-item:hover .shop-image{transform:rotate(-1.5deg) scale(1.03);box-shadow:0 0 0 1px rgba(255,61,110,.35),0 0 26px -2px rgba(255,61,110,.5),0 14px 24px -14px rgba(255,45,90,.55)}
 .theme-cherry .shop-item:hover .shop-image::after{transform:translateX(130%)}
 .theme-cherry .shop-item:hover .shop-pin{animation:lp-wiggle .5s ease}}
@keyframes lp-wiggle{0%,100%{transform:rotate(8deg)}30%{transform:rotate(-6deg) scale(1.1)}60%{transform:rotate(12deg)}}

/* 09 스카이 — 하늘로 떠오르며 푸른 빛 + 빛 스침 */
.theme-sky{--glow:rgba(61,139,253,.55);--shine:rgba(255,255,255,.7)}
.theme-sky .shop-image{box-shadow:0 0 0 1px rgba(61,139,253,.12),0 0 14px -6px rgba(61,139,253,.4),0 8px 16px -12px rgba(22,58,89,.4)}
@media(hover:hover){
 .theme-sky .shop-item:hover .shop-image{transform:translateY(-5px);box-shadow:0 0 0 1.5px rgba(61,139,253,.45),0 0 20px -4px rgba(61,139,253,.45),0 18px 26px -14px rgba(61,139,253,.55)}
 .theme-sky .shop-item:hover .shop-image>img{transform:scale(1.05)}
 .theme-sky .shop-item:hover .shop-image::after{transform:translateX(130%)}}

/* 10 포레스트 — 숲빛 안쪽 테두리, 올리면 연둣빛 링 */
.theme-forest{--glow:rgba(47,93,72,.55)}
.theme-forest .shop-image{box-shadow:0 0 0 1px var(--line),0 6px 14px -10px rgba(33,59,48,.35)}
@media(hover:hover){
 .theme-forest .shop-item:hover .shop-image{transform:translateY(-3px);box-shadow:0 0 0 2px rgba(47,93,72,.4),0 0 0 5px rgba(217,230,184,.55),0 14px 22px -14px rgba(33,59,48,.45)}
 .theme-forest .shop-item:hover .shop-image>img{transform:scale(1.06)}}

@media(prefers-reduced-motion:reduce){
 .shop-item,.shop-image,.shop-image>img,.shop-image::after{animation:none!important;transition:none!important}
 .shop-item:has(.shop-pin) .shop-image{outline-color:var(--glow)}}
