/* 애니팜 레이아웃 2판 (2026-11-03): 요즘 쇼핑몰 꼴 — 흰 바탕 · 얇은 선 · 회색 검색창 · 가로 탭 · 밝은 바닥. 브랜드 = 애니팜 파랑 #008cd6 */
:root {
	--ap-blue: #008cd6;
	--ap-blue-700: #0270b0;
	--ap-blue-900: #0b3a5b;
	--ap-blue-50: #eef7fd;
	--ap-blue-100: #d8eefb;
	--ap-ink: #191f28;
	--ap-ink-2: #4e5968;
	--ap-ink-3: #8b95a1;
	--ap-line: #eceef1;
	--ap-fill: #f2f4f6;
	--ap-bg: #f8f9fa;
	--ap-red: #f04452;
	--ap-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
	--ap-max: 1200px;
	--ap-head-h: 64px;
}
html { -webkit-text-size-adjust: 100%; color-scheme: only light; } /* [11/6] 늘 밝게 — 입력칸 · 고르기 · 스크롤 막대도 기기 다크 모드를 안 따름 */
body { margin: 0; background: #fff; color: var(--ap-ink); font-family: var(--ap-font); font-size: 15px; line-height: 1.5; letter-spacing: -0.02em; word-break: keep-all; -webkit-font-smoothing: antialiased; }
.ap-wrap a { color: inherit; text-decoration: none; }
.ap-wrap img { max-width: 100%; }
.ap-wrap svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ap-inner { max-width: var(--ap-max); margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.ap-skip { position: absolute; left: -9999px; }
.ap-skip:focus { left: 12px; top: 12px; z-index: 1000; background: #fff; padding: 8px 12px; border-radius: 8px; }
.ap-only-mo { display: none !important; }
.ap-band { background: var(--ap-blue-900); color: #fff; text-align: center; font-size: 13px; padding: 8px 16px; }

/* 맨 위 안내 띠 (손님만, 닫으면 기억) */
.ap-strip { background: var(--ap-blue); color: #fff; font-size: 14px; }
.ap-strip-row { position: relative; display: flex; align-items: center; justify-content: center; height: 42px; }
.ap-strip a { color: #fff !important; }
.ap-strip a span { margin-left: 6px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ap-strip-close { position: absolute; right: 12px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; background: none; color: rgba(255, 255, 255, .8); cursor: pointer; }
.ap-strip-close svg { width: 18px; height: 18px; }

/* 머리 */
.ap-header { position: sticky; top: 0; z-index: 50; background: #fff; }
.ap-util { display: flex; justify-content: flex-end; align-items: center; gap: 4px; height: 36px; font-size: 12.5px; color: var(--ap-ink-2); }
.ap-util a, .ap-util-hi { padding: 0 10px; position: relative; }
.ap-util a + a::before, .ap-util-hi + a::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 10px; margin-top: -5px; background: #d1d6db; }
.ap-util a:hover { color: var(--ap-ink); }
.ap-util a.is-accent { color: var(--ap-blue); font-weight: 700; }
.ap-util-money { display: inline-flex; align-items: center; gap: 6px; color: var(--ap-ink) !important; font-weight: 600; }
.ap-util-money + .ap-util-money::before, .ap-util-money::before { display: none; }
.ap-util-money em { font-style: normal; padding: 1px 7px; border-radius: 5px; font-size: 11.5px; font-weight: 700; color: #fff; }
.ap-util-money em.is-anipay { background: #8b5cf6; }
.ap-util-money em.is-credit { background: #8b95a1; }
.ap-util-money + .ap-util-hi::before { display: none; }
.ap-util-hi { margin-left: 8px; }
.ap-head { display: flex; align-items: center; gap: 40px; height: var(--ap-head-h); }
.ap-logo { flex: none; display: flex; align-items: center; }
.ap-logo img { height: 30px; width: auto; display: block; }
.ap-search { position: relative; flex: 1; max-width: 460px; }
.ap-search input { width: 100%; box-sizing: border-box; height: 46px; padding: 0 52px 0 20px; border: 1.5px solid transparent; border-radius: 12px; background: var(--ap-fill); font: inherit; font-size: 15px; color: var(--ap-ink); outline: none; transition: background .15s, border-color .15s; -webkit-appearance: none; }
.ap-search input::placeholder { color: var(--ap-ink-3); }
.ap-search input:focus { background: #fff; border-color: var(--ap-blue); }
.ap-search button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 10px; background: none; color: var(--ap-ink); cursor: pointer; display: grid; place-items: center; }
.ap-icons { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.ap-icon { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--ap-ink); border-radius: 12px; cursor: pointer; }
.ap-icon:hover { background: var(--ap-fill); }
.ap-icon svg { width: 27px; height: 27px; }
.ap-badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; background: var(--ap-blue); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.ap-badge[hidden] { display: none; }

.ap-gnb { border-bottom: 1px solid var(--ap-line); box-shadow: 0 2px 6px rgba(0, 0, 0, .025); }
.ap-gnb-row { display: flex; align-items: center; height: 54px; gap: 24px; }
.ap-allcat { position: relative; flex: none; }
.ap-allcat-btn { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0; border: 0; background: none; font: inherit; font-size: 16px; font-weight: 700; color: var(--ap-ink); cursor: pointer; }
.ap-allcat-btn:hover, .ap-allcat-btn[aria-expanded="true"] { color: var(--ap-blue); }
.ap-mega { position: absolute; left: 0; top: 54px; display: flex; gap: 40px; min-width: 660px; padding: 24px 28px; background: #fff; border: 1px solid var(--ap-line); border-radius: 0 0 16px 16px; box-shadow: 0 16px 40px rgba(0, 20, 40, .1); }
.ap-mega[hidden] { display: none; }
.ap-mega-col { display: flex; flex-direction: column; gap: 2px; min-width: 180px; }
.ap-mega-head { font-weight: 800; font-size: 15px; padding: 4px 8px 10px; }
.ap-mega-item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; color: var(--ap-ink-2); font-size: 14.5px; }
.ap-mega-item:hover { background: var(--ap-blue-50); color: var(--ap-blue-700); }
.ap-mega-noic { flex: none; width: 28px; height: 28px; } /* [11/10] 아이콘 없는 분류(특가상품)도 글자 줄 맞춤 */
.ap-mega-empty { color: var(--ap-ink-3); margin: 0; }
.ap-tabs { display: flex; gap: 4px; flex: 1; min-width: 0; }
.ap-tabs a { position: relative; display: flex; align-items: center; height: 54px; padding: 0 14px; font-size: 16px; font-weight: 600; color: var(--ap-ink-2); white-space: nowrap; }
.ap-tabs a:hover { color: var(--ap-ink); }
.ap-tabs a.is-on { color: var(--ap-blue); font-weight: 700; }
.ap-tabs a.is-on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--ap-blue); }
/* [11/4] 브랜드관 칸 = 로고 (라이프펫 · 네오메디칼). 로고 그림에 투명 여백이 있어(위아래 약 12% · 6%) 높이를 그만큼 크게. 네오메디칼은 네모 엠블럼이라 더 크게 */
.ap-tabs a.ap-tab-brand img { display: block; height: 24px; width: auto; max-width: none; }
/* [11/9] 메뉴 말풍선 (학술정보센터 'HOT' — 고도몰 wg_custom.css menu_bubble 과 같은 꼴: 빨강 · 꼬리 · 1.2초 둥둥) */
.ap-tabs a.has-bubble { overflow: visible; }
.ap-tab-bubble { position: absolute; top: -12px; left: 50%; z-index: 5; padding: 3px 9px; border-radius: 14px; background: #ff4757; color: #fff; font-size: 11px; font-weight: 700; line-height: 1.2; white-space: nowrap; box-shadow: 0 2px 4px rgba(0, 0, 0, .18); pointer-events: none; transform: translateX(-50%); animation: ap-bubble-bounce 1.2s ease-in-out infinite; }
.ap-tab-bubble::after { content: ""; position: absolute; bottom: -5px; left: 50%; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #ff4757; transform: translateX(-50%); }
@keyframes ap-bubble-bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-5px); } }
.ap-tabs a.ap-tab-brand[data-brand="neomedical"] img { height: 32px; }
.ap-tabs a.ap-tab-brand:hover img { opacity: .8; }
/* [11/10] 태블릿 폭(861~1100px): 메뉴 칸이 넘쳐 '펫보험'이 잘렸음 → 칸 간격을 줄이고, 그래도 넘치면 가로로 밀어 보기.
   가로 스크롤 상자는 칸 위로 뜬 'HOT' 말풍선을 자르므로 이 폭에선 휴대폰처럼 글자 옆 작은 말풍선 */
@media (min-width: 861px) and (max-width: 1100px) {
	.ap-gnb-row { gap: 14px; }
	.ap-allcat-btn { gap: 8px; font-size: 15px; }
	.ap-tabs { gap: 0; overflow-x: auto; scrollbar-width: none; }
	.ap-tabs::-webkit-scrollbar { display: none; }
	.ap-tabs a { padding: 0 10px; font-size: 15px; }
	.ap-tabs a.is-on::after { left: 10px; right: 10px; }
	.ap-tabs a.ap-tab-brand img { height: 22px; }
	.ap-tabs a.ap-tab-brand[data-brand="neomedical"] img { height: 29px; }
	.ap-tab-bubble { position: static; display: inline-block; margin: 0 0 0 3px; padding: 2px 6px; border-radius: 8px; font-size: 10px; box-shadow: none; transform: translateY(-7px); animation: ap-bubble-bounce-t 1.2s ease-in-out infinite; }
	.ap-tab-bubble::after { display: none; }
	@keyframes ap-bubble-bounce-t { 0%, 100% { transform: translateY(-7px); } 50% { transform: translateY(-10px); } }
}

.ap-main { min-height: 50vh; }

/* 바닥 (밝게) */
.ap-copy { margin-top: 10px !important; font-size: 12px; color: #b0b8c1; }

/* [11/10] 오른쪽 배송 마감 안내 (layout.html .ap-side-cutoff) — 본문(1200px) 오른쪽 20px, 붙어 다니는 머리(알림 줄 포함 197px) 아래 20px = 첫 화면 큰 배너 윗선에 고정. 1699px 이하는 자리가 없어 숨김 (고도몰과 같음) */
.ap-side-cutoff { position: fixed; top: 217px; left: calc(50% + var(--ap-max) / 2 + 20px); z-index: 40; width: 220px; }
.ap-side-cutoff img { display: block; width: 220px; height: 320px; border-radius: 16px; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
@media (max-width: 1699px) { .ap-side-cutoff { display: none; } }
/* 떠 있는 문의 = 고도몰과 같은 상담 창 (chat.anipharm.kr 위젯, 버튼 모양은 js/cs-chat.js). 그림 바꾸기 전 기본 검은 버튼이 번쩍이지 않게 감춤 */
pq-chat-widget:not([data-icon-ready]) { visibility: hidden !important; }
.ap-drawer-on pq-chat-widget { display: none !important; }
/* [11/10] 회원 가입 · 로그인 · 인증 같은 양식 화면(휴대폰)은 문의 버튼 숨김 — 맨 아래 버튼을 가렸음. 표시는 layout.html $ap_cs_off · 메시지 스킨 로그인 칸 */
@media (max-width: 860px) { body:has([data-ap-cs-off]) pq-chat-widget { display: none !important; } }

/* 알림 (담기 등) */
.ap-toast { position: fixed; left: 50%; bottom: 40px; z-index: 200; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 14px 20px; border-radius: 14px; background: rgba(25, 31, 40, .92); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.ap-toast a { color: #7fd0ff !important; margin-left: 10px; font-weight: 700; white-space: nowrap; }
.ap-toast[hidden] { display: none; }

/* 모바일 서랍 */
.ap-drawer { position: fixed; inset: 0; z-index: 100; background: rgba(0, 10, 20, .45); }
.ap-drawer[hidden] { display: none; }
.ap-drawer-panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(88vw, 380px); overflow-y: auto; background: #fff; padding: 0 0 40px; animation: ap-slide .22s ease-out; }
@keyframes ap-slide { from { transform: translateX(-100%); } to { transform: none; } }
.ap-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 8px 10px 20px; font-size: 18px; }
.ap-drawer-member { margin: 0 16px; padding: 16px; border-radius: 16px; background: var(--ap-bg); }
.ap-drawer-member p { margin: 0 0 12px; font-size: 14px; color: var(--ap-ink-2); }
.ap-drawer-member div { display: flex; gap: 8px; }
.ap-drawer-member a { flex: 1; text-align: center; padding: 11px; background: #fff; border: 1px solid var(--ap-line); border-radius: 12px; font-weight: 700; font-size: 14px; }
.ap-drawer-member a.is-primary { background: var(--ap-blue); border-color: var(--ap-blue); color: #fff !important; }
.ap-drawer-group { padding: 22px 20px 0; }
.ap-drawer-title { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 16px; margin-bottom: 12px; }
.ap-drawer-title span { font-size: 13px; font-weight: 600; color: var(--ap-ink-3); }
.ap-drawer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 4px; }
.ap-drawer-grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; text-align: center; color: var(--ap-ink-2); }
.ap-drawer-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 18px; background: var(--ap-fill); }
.ap-drawer-ic img { width: 38px; height: 38px; }
.ap-drawer-ic.is-text { background: var(--ap-blue-50); color: var(--ap-blue-700); font-size: 14px; font-weight: 800; letter-spacing: -0.04em; } /* [11/10] 아이콘 없는 분류 = 이름 두 글자 */
.ap-drawer-cs { display: block; margin: 28px 20px 0; padding: 14px 16px; border-radius: 14px; background: var(--ap-blue-50); color: var(--ap-blue-700); font-size: 14px; }

/* 모바일 아래 탭 */
.ap-tabbar { display: none; }

@media (max-width: 860px) {
	body { font-size: 14px; }
	.ap-only-pc { display: none !important; }
	.ap-only-mo { display: flex !important; }
	html, body { overflow-x: clip; } /* hidden 이면 상세 탭 · 머리가 안 붙어 다님 (sticky 가 막힘) */
	.ap-strip { font-size: 12.5px; }
	.ap-strip-row { height: 38px; padding-right: 40px; justify-content: flex-start; }
	.ap-strip a strong { display: none; }
	.ap-head { height: 56px; gap: 10px; padding: 0 10px 0 16px; }
	.ap-logo img { height: 24px; }
	.ap-search { max-width: none; }
	.ap-search input { height: 40px; font-size: 14px; padding-left: 14px; border-radius: 10px; }
	.ap-search button { right: 2px; }
	.ap-icons { margin-left: 0; gap: 0; }
	.ap-icon { width: 40px; height: 40px; }
	.ap-gnb { box-shadow: none; }
	.ap-gnb-row { height: 46px; padding: 0; }
	.ap-tabs { overflow-x: auto; scrollbar-width: none; padding: 0 8px; gap: 0; }
	.ap-tabs::-webkit-scrollbar { display: none; }
	.ap-tabs a { height: 46px; padding: 0 12px; font-size: 15px; }
	.ap-tabs a.is-on::after { left: 12px; right: 12px; }
	.ap-tabs a.ap-tab-brand img { height: 21px; }
	.ap-tabs a.ap-tab-brand[data-brand="neomedical"] img { height: 28px; }
	.ap-tab-bubble { position: static; display: inline-block; margin: 0 0 0 3px; padding: 2px 5px; border-radius: 8px; font-size: 9.5px; box-shadow: none; transform: translateY(-7px); animation: ap-bubble-bounce-m 1.2s ease-in-out infinite; }
	.ap-tab-bubble::after { display: none; }
	@keyframes ap-bubble-bounce-m { 0%, 100% { transform: translateY(-7px); } 50% { transform: translateY(-10px); } }
	.ap-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--ap-line); }
	.ap-tabbar a, .ap-tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: none; font: inherit; font-size: 11px; color: var(--ap-ink-3); cursor: pointer; }
	.ap-tabbar svg { width: 24px; height: 24px; }
	.ap-tabbar .is-on { color: var(--ap-ink); font-weight: 700; }
	.ap-toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
	.ap-drawer-panel { animation: none; }
	.ap-tab-bubble { animation: none; }
}

/* [11/3] 바닥 = 지금 애니팜(www.anipharm.kr) 바닥 그대로: 위 밝은 링크 줄 + 검은 바탕 · 이름표 칸 · 노란 카카오 · 파란 ANIPOS (운영 화면 보고 맞춤) */
.ap-footer { margin-top: 80px; font-size: 14px; }
.ap-footer-navbar { background: var(--ap-bg); border-top: 1px solid var(--ap-line); }
.ap-footer-nav { display: flex; flex-wrap: wrap; gap: 6px 26px; padding: 18px 0; font-size: 14px; }
.ap-footer-nav a { color: var(--ap-ink-2); }
.ap-footer-nav a:hover { color: var(--ap-ink); }
.ap-footer-nav strong { color: var(--ap-ink); font-weight: 700; }
.ap-footer-main { background: #000; color: #fff; padding: 40px 0 48px; }
.ap-footer-cols { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, .8fr); gap: 32px 48px; }
.ap-footer-logo { display: block; width: 146px; height: auto; margin-bottom: 22px; }
.ap-footer-title { margin: 0 0 14px; font-size: 16px; font-weight: 700; color: #8a8a8a; }
.ap-footer-dl { display: grid; gap: 6px; margin: 0; }
.ap-footer-dl > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 10px; line-height: 1.55; }
.ap-footer-col:not(.is-co) .ap-footer-dl > div { grid-template-columns: 56px minmax(0, 1fr); }
.ap-footer-dl dt { justify-self: start; padding: 1px 8px; border-radius: 4px; background: #1c1c1c; color: #8a8a8a; font-size: 12px; white-space: nowrap; }
.ap-footer-dl dd { margin: 0; color: #fff; overflow-wrap: anywhere; }
.ap-footer-dl a { color: #fff !important; }
.ap-copy { margin: 22px 0 0; font-size: 12px; color: #777; }
.ap-footer-btns { display: flex; flex-wrap: nowrap; gap: 12px; margin-top: 18px; }
.ap-footer-btns a { flex: 1 1 0; min-width: 0; max-width: 184px; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 96px; padding: 10px 15px; border-radius: 10px; text-decoration: none; box-shadow: 0 2px 10px rgba(0, 0, 0, .05); transition: background .2s, transform .15s; }
.ap-footer-btns a:hover { transform: translateY(-1px); }
.ap-kakao { flex-direction: column; gap: 6px !important; background: #fee500; color: #191919 !important; font-size: 16px; font-weight: 700; }
.ap-kakao:hover { background: #f5dc00; }
.ap-kakao img { width: 44px; height: 44px; }
.ap-anipos { background: #008cd6; color: #fff !important; }
.ap-anipos:hover { background: #087fc0; }
.ap-anipos-ic { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: #008cd6; }
.ap-anipos-ic svg { width: 30px; height: auto; display: block; }
.ap-anipos-tx { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.ap-anipos-tx b { font-size: 16.8px; font-weight: 700; letter-spacing: .02em; }
@media (max-width: 1080px) {
	.ap-footer-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.ap-footer-col.is-co { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
	.ap-footer { margin-top: 56px; font-size: 13px; }
	/* [11/10] 바닥 링크 누름 칸 44px (전엔 링크 20px · 전화 15px 높이라 손가락으로 누르기 어려웠음) */
	.ap-footer-nav { gap: 0 18px; font-size: 13px; padding: 4px 0; }
	.ap-footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
	.ap-footer-tel { display: inline-block; padding: 14px 16px 14px 0; margin: -14px 0; font-weight: 700; } /* 보이는 줄 높이는 그대로, 누르는 칸만 넓힘 */
	.ap-footer-main { padding: 28px 0 100px; }
	.ap-footer-cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.ap-footer-dl > div { grid-template-columns: 104px minmax(0, 1fr); }
	.ap-footer-btns { gap: 8px; }
	.ap-footer-btns a { max-width: none; min-height: 84px; }
	.ap-kakao { font-size: 14px; }
	.ap-anipos-ic { flex-basis: 40px; width: 40px; height: 40px; }
	.ap-anipos-ic svg { width: 25px; }
	.ap-anipos-tx b { font-size: 13px; }
}
