/* BASIC css start */
/* =========================================================
   안나홀츠 메인 CSS (리뉴얼)
   기존 메인 CSS를 전부 지우고 이 내용으로 교체하세요.
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;800&display=swap');
/* ===== 안나홀츠 메인 리뉴얼 (ah- 로 시작하는 클래스만 사용 → 기존 스킨 CSS와 충돌 방지) ===== */
.ah-main{--accent:#2f5d50;--sale:#c8331c;--ink:#191919;--sub:#5f5f5f;--line:#e8e6e1;--bg2:#f6f5f2;--green:#eef0eb;
  font-family:'Noto Sans KR',sans-serif;color:var(--ink);letter-spacing:-.01em;line-height:1.5}
.ah-main *{box-sizing:border-box}
.ah-main a{color:var(--ink);text-decoration:none}
.ah-main img{max-width:100%;vertical-align:top;border:0}
.ah-main ul{list-style:none;margin:0;padding:0}
.ah-main p{margin:0}
.ah-wrap{max-width:1200px;margin:0 auto;padding:0 20px}
.ah-sec{padding-top:80px}
.ah-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:26px}
.ah-head h2{margin:0 0 4px;font-size:28px;font-weight:800;letter-spacing:-.02em;color:var(--ink)}
.ah-head span{font-size:14px;color:var(--sub)}
.ah-head .ah-link{font-size:14px;padding:10px 0}

/* 메인 배너 */
.ah-hero{position:relative;background:var(--green);overflow:hidden}
.ah-slide{display:none}.ah-slide.on{display:block}
.ah-slide img{width:100%;display:block}
.ah-hero-ctrl{position:absolute;right:24px;bottom:20px;display:flex;align-items:center;gap:8px}
.ah-hero-ctrl button{width:36px;height:36px;border-radius:50%;border:0;background:rgba(255,255,255,.9);cursor:pointer;font-size:16px}
.ah-hero-ctrl span{padding:4px 12px;border-radius:14px;background:rgba(25,25,25,.75);color:#fff;font-size:12px}

/* 혜택 */
.ah-benefit{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding-top:28px}
.ah-benefit a{display:flex;flex-direction:column;gap:2px;padding:20px;border:1px solid var(--line);border-radius:12px}
.ah-benefit b{font-size:15px}.ah-benefit small{font-size:13px;color:var(--sub)}

/* 피부고민 */
.ah-concern{display:grid;grid-template-columns:repeat(5,1fr);gap:20px}
.ah-concern a{display:flex;flex-direction:column;align-items:center;gap:12px;font-size:16px;font-weight:700}
.ah-concern i{width:120px;height:120px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-style:normal;font-weight:400;font-size:13px;color:#4a4a4a}

/* 탭 패널 · 더보기 */
.ah-pane{display:none}.ah-pane.on{display:block}
.ah-more{display:flex;justify-content:center;margin-top:36px}
.ah-more a{display:inline-flex;align-items:center;height:48px;padding:0 40px;border:1px solid #d6d3cc;border-radius:24px;font-size:15px;font-weight:500}

/* 상품 그리드   메이크샵 상품폼(pro_basic) 출력물도 4열 카드로 정리 */
.ah-grid .item{display:grid !important;grid-template-columns:repeat(4,1fr);gap:36px 20px;width:auto !important}
.ah-grid .item > *{float:none !important;width:auto !important;margin:0 !important;padding:0 !important}
.ah-grid .item:after{display:none !important}
.ah-grid .thumbnail{position:relative;aspect-ratio:1/1;border-radius:10px;overflow:hidden;background:var(--bg2);margin-bottom:12px}
.ah-grid .thumbnail img{width:100% !important;height:100% !important;object-fit:cover}
.ah-grid .prd-name,.ah-grid .prd-name a{font-size:15px;font-weight:500;line-height:1.4;color:var(--ink);text-align:left}
.ah-grid .prd-price,.ah-grid .price{font-size:17px;font-weight:700;margin-top:6px;text-align:left}
.ah-grid strike,.ah-grid .consumer{font-size:13px;font-weight:400;color:#6b6b6b}

/* BEST SELLER   브랜드스토어형 기간 탭 + 순위 */
.ah-best-top{text-align:center;margin-bottom:32px}
.ah-best-top h2{margin:0;font-size:30px;font-weight:800;letter-spacing:.02em;color:var(--ink)}
.ah-best-top p{font-size:14px;color:var(--sub);margin-top:6px}
.ah-ptabs{display:inline-flex;margin-top:22px;border:1px solid var(--line);border-radius:26px;padding:4px;background:var(--bg2)}
.ah-ptabs button{min-width:88px;height:40px;padding:0 18px;border:0;border-radius:22px;background:none;font:inherit;font-size:15px;color:var(--sub);cursor:pointer}
.ah-ptabs button.on{background:var(--ink);color:#fff;font-weight:700}
.ah-basis{font-size:13px;color:var(--sub);margin-bottom:16px !important}
.ah-rank .item{counter-reset:ahrank}
.ah-rank .item > *{position:relative;counter-increment:ahrank}
.ah-rank .item > *::before{content:counter(ahrank);position:absolute;top:0;left:0;z-index:2;width:34px;height:34px;border-radius:10px 0 10px 0;background:#6b6b6b;color:#fff;font-size:15px;font-weight:800;display:flex;align-items:center;justify-content:center}
.ah-rank .item > *:nth-child(-n+3)::before{background:var(--accent)}

/* 메이크샵 상품폼(pro_basic) 출력물 정리   기존 고정폭·테두리·버튼 해제 */
.ah-grid .list,.ah-grid .item-list,.ah-grid .space{width:auto !important;height:auto !important;border:0 !important;padding:0 !important;margin:0 !important;background:none !important;float:none !important;box-shadow:none !important}
.ah-grid .thumbnail,.ah-grid .thumbnail02{width:auto !important;float:none !important;border:0 !important}
.ah-grid .prd-info{float:none !important;padding:0 !important}
.ah-grid .prd-subname,.ah-grid .prd-sub{font-size:13px;color:var(--sub);margin-top:2px}
.ah-grid .prd-opt,.ah-grid .choice{display:none !important}   /* 미리보기·자세히보기 버튼 숨김 (보이게 하려면 이 줄 삭제) */
.ah-grid .prd-price .cost,.ah-grid .prd-price strike{display:inline;margin-right:6px}

/* 직접 입력 상품 카드 (홀츠베베·홀츠포맨) */
.ah-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:36px 20px}
.ah-card .ah-thumb{aspect-ratio:1/1;border-radius:10px;overflow:hidden;background:var(--bg2);margin-bottom:12px}
.ah-card .ah-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.ah-card a:hover .ah-thumb img{transform:scale(1.04)}
.ah-card .ah-cat{font-size:12px;color:var(--sub)}
.ah-card .ah-name{font-size:15px;font-weight:500;line-height:1.4;margin-top:2px}
.ah-card .ah-price{font-size:17px;font-weight:700;margin-top:6px}
.ah-card .ah-price small{font-size:14px;font-weight:500}

/* 추천 박스배너 */
.ah-boxes{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.ah-boxes a{display:block;border-radius:12px;overflow:hidden}
.ah-boxes img{width:100%;transition:transform .3s}.ah-boxes a:hover img{transform:scale(1.03)}

/* 중간 배너 */
.ah-midbanner a{display:block;border-radius:14px;overflow:hidden;text-align:center;background:var(--bg2)}

/* 브랜드 라인업 */
.ah-brands{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.ah-brands a{display:flex;flex-direction:column;justify-content:space-between;gap:36px;min-height:220px;padding:26px;border-radius:14px}
.ah-brands small{display:block;font-size:12px;font-weight:700;margin-bottom:6px}
.ah-brands b{display:block;font-size:22px;margin-bottom:6px}
.ah-brands p{font-size:14px;line-height:1.6;color:#4a4a4a}

/* 안나홀츠 쇼츠 */
.ah-shorts{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.ah-short{position:relative;aspect-ratio:9/16;border-radius:12px;overflow:hidden;background:#000}
.ah-short iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.ah-yt-probe{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;overflow:hidden}
/* 안나홀츠 인스타그램   공식 게시물 퍼가기를 정사각형 타일로 잘라서 표시 */
.ah-insta{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.ah-insta-item{position:relative;display:block;aspect-ratio:1/1;border-radius:10px;overflow:hidden;background:var(--bg2)}
.ah-insta-item iframe{position:absolute;left:-1px;top:-56px;width:calc(100% + 2px);height:900px;border:0;pointer-events:none}
.ah-insta-item:hover{opacity:.85}
/* 브랜드 스토리 */
.ah-story{margin-top:96px;background:var(--accent);color:#fff}
.ah-story .ah-wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:28px;padding-top:64px;padding-bottom:64px}
.ah-story small{font-size:13px;font-weight:700;color:#cfe0d8}
.ah-story h2{margin:12px 0;font-size:30px;line-height:1.4;font-weight:800;color:#fff}
.ah-story p{font-size:15px;line-height:1.8;color:#e3ece8}
.ah-story .ah-btns{display:flex;gap:10px;flex-wrap:wrap}
.ah-story .ah-btns a{display:inline-flex;align-items:center;height:48px;padding:0 24px;border-radius:24px;font-size:15px;font-weight:700;background:#fff;color:var(--ink)}
.ah-story .ah-btns a.line{background:none;border:1px solid #fff;color:#fff;font-weight:500}

/* ---- 상품 카드 보정: 공통 CSS(header.1.css)의 ".item .list{width:calc(25% - 12px) !important}" 등을 이기도록 우선순위를 높임 ---- */
.ah-main .ah-grid .item > .list{display:block !important;width:100% !important;border:0 !important;margin:0 !important;padding:0 !important;text-align:left !important;font-size:14px !important;vertical-align:top}
.ah-main .ah-grid .item .item-list{width:100% !important;height:auto !important;background:none !important;border:0 !important;padding:0 !important;margin:0 !important}
.ah-main .ah-grid .thumbnail{width:100% !important;aspect-ratio:1/1;border-radius:10px;overflow:hidden;background:var(--bg2);margin:0 0 12px !important}
.ah-main .ah-grid .thumbnail a{display:block;width:100%;height:100%}
.ah-main .ah-grid .thumbnail img{display:block;width:100% !important;height:100% !important;max-width:none !important;object-fit:cover;transition:transform .3s}
.ah-main .ah-grid .list:hover .thumbnail img{transform:scale(1.04)}
.ah-main .ah-grid .prd-info{text-align:left !important}
.ah-main .ah-grid .prd-icon{min-height:0;margin-bottom:4px}
.ah-main .ah-grid .prd-name,.ah-main .ah-grid .prd-name a{font-size:15px !important;font-weight:500;line-height:1.4;color:var(--ink) !important}
.ah-main .ah-grid .sub-name,.ah-main .ah-grid .sub-name a{font-size:13px !important;line-height:1.4;color:var(--sub) !important;margin-top:2px}
.ah-main .ah-grid .prd-price{font-size:17px !important;font-weight:700;color:var(--ink) !important;margin-top:8px}
.ah-main .ah-grid .prd-price strike{font-size:13px;font-weight:400;color:#6b6b6b;margin-right:6px}
.ah-main .ah-grid .prd-opt{display:none !important}
.ah-loading{padding:40px 0;text-align:center;font-size:14px;color:var(--sub)}

/* 반응형 */
@media (max-width:1024px){
  .ah-grid .item,.ah-cards{grid-template-columns:repeat(3,1fr)}
  .ah-brands,.ah-benefit{grid-template-columns:repeat(2,1fr)}
  .ah-insta{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:640px){
  .ah-sec{padding-top:56px}.ah-head h2{font-size:22px}
  .ah-grid .item,.ah-cards,.ah-boxes,.ah-shorts{grid-template-columns:repeat(2,1fr);gap:28px 12px}
  .ah-concern{grid-template-columns:repeat(3,1fr)}.ah-concern i{width:84px;height:84px}
  .ah-insta{grid-template-columns:repeat(2,1fr)}
  .ah-insta-item:nth-child(5){display:none}
}
/* BASIC css end */

