/* =========================================================
   뽀르띠 테마 — 색상·폭은 :root 값만 바꾸면 전체에 반영됩니다.
   ========================================================= */
:root {
    --pt-max: 1100px;
    --pt-ink: #222;
    --pt-text: #353535;
    --pt-gray: #888;
    --pt-light: #aaa;
    --pt-line: #e5e5e5;
    --pt-bg: #fff;
    --pt-soft: #f8f8f8;
    --pt-accent: #f3a51b;      /* 섹션 제목 주황 */
    --pt-accent-deep: #d98a00;
    --pt-best: #59b6ec;        /* BEST 뱃지 */
    --pt-new: #f3a51b;
    --pt-sale: #e5484d;
    --pt-font: Roboto, "Pretendard Variable", Pretendard, "Nanum Gothic", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

body { margin: 0; font-family: var(--pt-font); font-size: 12px; color: var(--pt-text); background: var(--pt-bg); }
#hd_login_msg { display: none; }
#pt-wrap a { color: inherit; text-decoration: none; }
.pt-in { width: var(--pt-max); margin: 0 auto; position: relative; }
#pt-hd, #pt-ft, #wrapper { min-width: var(--pt-max); }
:where(#pt-hd, #pt-ft, .pt-main, .pt-quick) ul { margin: 0; padding: 0; list-style: none; }
.pt-main img, #pt-hd img { max-width: 100%; height: auto; display: block; }

/* ---------- 상단띠배너 ---------- */
.pt-topbn { position: relative; background: #fee500; text-align: center; }
.pt-topbn__inner { width: var(--pt-max); margin: 0 auto; }
.pt-topbn__inner img { margin: 0 auto; }
.pt-topbn__close { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; background: none; color: rgba(0,0,0,.55); font-size: 16px; cursor: pointer; }
.pt-topbn.is-closed { display: none; }

/* ---------- 유틸 바 ---------- */
.pt-bar { height: 43px; background: #fff; border-bottom: 1px solid #eee; z-index: 120; }
.pt-bar__inner { display: flex; align-items: center; justify-content: space-between; height: 43px; }
.pt-util { display: flex; align-items: center; }
.pt-util > li { position: relative; }
.pt-util > li > a { display: block; padding: 0 9px; line-height: 43px; color: #555; }
.pt-util > li:first-child > a { padding-left: 0; }
.pt-util > li + li > a::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 10px; margin-top: -5px; background: #ddd; }
.pt-util > li > a:hover { color: var(--pt-ink); }
.pt-util__strong > a { font-weight: 700; color: var(--pt-ink) !important; }
.pt-count { display: inline-block; min-width: 16px; height: 16px; padding: 0 4px; margin-left: 2px; border-radius: 8px; background: #d5d5d5; color: #fff; font-size: 10px; line-height: 16px; text-align: center; box-sizing: border-box; }
.pt-tip { position: absolute; left: 50%; top: 38px; transform: translateX(-50%); padding: 3px 7px; border-radius: 3px; background: #333; color: #fff; font-size: 11px; white-space: nowrap; z-index: 5; }
.pt-tip::before { content: ""; position: absolute; left: 50%; top: -4px; margin-left: -4px; border: 4px solid transparent; border-top: 0; border-bottom-color: #333; }
.pt-util__sub { display: none; position: absolute; left: 0; top: 100%; min-width: 120px; padding: 8px 0; background: #fff; border: 1px solid var(--pt-line); box-shadow: 0 6px 14px rgba(0,0,0,.06); z-index: 10; }
.pt-util__has:hover .pt-util__sub, .pt-util__has:focus-within .pt-util__sub { display: block; }
.pt-util__sub a { display: block; padding: 6px 14px; color: #666; }
.pt-util__sub a:hover { color: var(--pt-ink); background: var(--pt-soft); }

.pt-bar__right { display: flex; align-items: center; gap: 8px; }
.pt-sns { display: flex; gap: 5px; }
.pt-sns a { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #c9c9c9; color: #fff !important; font-size: 13px; }
.pt-sns a:hover { background: #999; }
.pt-search { position: relative; margin: 0; }
.pt-search input { width: 220px; height: 28px; padding: 0 32px 0 10px; border: 0; border-radius: 3px; background: #ececec; font: inherit; box-sizing: border-box; }
.pt-search input:focus { outline: 1px solid #ccc; background: #f4f4f4; }
.pt-search button { position: absolute; right: 2px; top: 2px; width: 24px; height: 24px; border: 0; background: none; color: #888; cursor: pointer; }

/* 스크롤 시 유틸바 + 카테고리바 고정 */
.pt-fixed .pt-bar { position: fixed; left: 0; right: 0; top: 0; box-shadow: 0 1px 0 #eee; }
.pt-fixed .pt-lnb { position: fixed; left: 0; right: 0; top: 43px; box-shadow: 0 4px 10px rgba(0,0,0,.05); }
.pt-fixed #pt-hd { padding-bottom: 94px; }

/* ---------- 로고 영역 ---------- */
.pt-spot__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 170px; }
.pt-roll { width: 260px; }
.pt-roll .swiper { overflow: hidden; padding-bottom: 14px; }
.pt-roll .swiper-slide a, .pt-roll .swiper-slide > span { display: flex; align-items: center; gap: 12px; }
.pt-roll img { width: 80px; height: 80px; object-fit: contain; flex: none; }
.pt-roll__txt small { display: block; font-size: 13px; color: #444; }
.pt-roll__txt b { display: block; margin-top: 3px; font-size: 17px; font-weight: 700; color: var(--pt-ink); letter-spacing: -.02em; }
.pt-roll__dots { position: absolute; left: 0 !important; bottom: 0 !important; text-align: left; }
.pt-roll__dots .swiper-pagination-bullet { width: 6px; height: 6px; margin: 0 3px 0 0 !important; background: #ccc; opacity: 1; transition: width .2s; }
.pt-roll__dots .swiper-pagination-bullet-active { width: 22px; border-radius: 3px; background: #888; }

.pt-logo { margin: 0; text-align: center; }
.pt-logo img { max-height: 70px; width: auto; margin: 0 auto; }
.pt-logo span { font-family: Georgia, "Times New Roman", serif; font-size: 40px; letter-spacing: .04em; color: var(--pt-accent); }

.pt-notice { justify-self: end; align-self: end; display: flex; align-items: center; gap: 10px; width: 300px; height: 40px; margin-bottom: 4px; overflow: hidden; }
.pt-notice__label { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--pt-ink); }
.pt-notice__list { position: relative; flex: 1; height: 40px; }
.pt-notice__list li { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; opacity: 0; transform: translateY(100%); transition: transform .4s, opacity .4s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #666; }
.pt-notice__list li.is-on { opacity: 1; transform: translateY(0); }
.pt-notice__list li.is-out { opacity: 0; transform: translateY(-100%); }

/* ---------- 카테고리 바 ---------- */
.pt-lnb { height: 51px; background: #fff; border-top: 1px solid #eee; border-bottom: 1px solid #eee; z-index: 110; }
.pt-lnb__inner { display: flex; align-items: center; height: 51px; }
.pt-lnb__all { flex: none; display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 50px; height: 50px; padding: 0 15px; margin-right: 12px; border: 0; border-right: 1px solid #eee; background: none; cursor: pointer; box-sizing: border-box; }
.pt-lnb__all span { display: block; height: 2px; background: #333; transition: transform .2s, opacity .2s; }
.pt-lnb__all[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.pt-lnb__all[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.pt-lnb__all[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.pt-lnb__list { display: flex; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.pt-lnb__list::-webkit-scrollbar { display: none; }
.pt-lnb__list > li { position: relative; flex: none; }
.pt-lnb__list > li > a { display: block; padding: 0 12px; line-height: 50px; font-size: 13px; color: #333; white-space: nowrap; }
.pt-lnb__list > li > a:hover { color: var(--pt-accent-deep); font-weight: 700; }
.pt-lnb__sub { display: none; position: fixed; min-width: 150px; padding: 10px 0; background: #fff; border: 1px solid var(--pt-line); box-shadow: 0 8px 18px rgba(0,0,0,.07); z-index: 130; }
.pt-lnb__sub.is-open { display: block; }
.pt-lnb__sub a { display: block; padding: 6px 16px; color: #666; white-space: nowrap; }
.pt-lnb__sub a:hover { color: var(--pt-ink); background: var(--pt-soft); }

.pt-allmenu { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid #eee; border-bottom: 1px solid #ddd; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
.pt-allmenu[hidden] { display: none; }
.pt-allmenu__inner { display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px 20px; padding: 32px 0 40px; }
.pt-allmenu dl { margin: 0; }
.pt-allmenu dt a { display: block; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid #eee; font-size: 13px; font-weight: 700; color: var(--pt-ink); }
.pt-allmenu dd { margin: 0; }
.pt-allmenu dd a { display: block; padding: 4px 0; color: #777; }
.pt-allmenu a:hover { color: var(--pt-accent-deep) !important; }

/* ---------- 우측 퀵바 ---------- */
.pt-quick { position: fixed; right: 0; top: 50%; z-index: 140; transform: translateY(-50%); display: flex; align-items: flex-start; transition: transform .3s; }
.pt-quick.is-folded { transform: translate(40px, -50%); }
.pt-quick__toggle { width: 40px; height: 44px; margin-top: 0; border: 0; background: #333; color: #fff; font-size: 20px; cursor: pointer; }
.pt-quick.is-folded .pt-quick__toggle i { transform: rotate(180deg); }
.pt-quick > ul { width: 40px; background: #fff; border: 1px solid #e2e2e2; border-right: 0; }
.pt-quick > ul > li { position: relative; border-bottom: 1px solid #eee; }
.pt-quick > ul > li:last-child { border-bottom: 0; }
.pt-quick > ul > li > a, .pt-quick > ul > li > button { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; background: none; color: #555; font-size: 14px; cursor: pointer; }
.pt-quick > ul > li > a:hover, .pt-quick > ul > li > button:hover { color: var(--pt-ink); background: var(--pt-soft); }
.pt-quick em { position: absolute; top: 5px; right: 4px; min-width: 14px; height: 14px; border-radius: 7px; background: var(--pt-accent); color: #fff; font-style: normal; font-size: 9px; line-height: 14px; text-align: center; }
.pt-quick__arrows { display: flex; flex-direction: column; }
.pt-quick__arrows button { display: flex; align-items: center; justify-content: center; width: 40px; height: 26px; border: 0; background: none; color: #666; font-size: 18px; cursor: pointer; }
.pt-quick__panel { display: none; position: absolute; right: 48px; top: 0; width: 160px; padding: 14px; background: #fff; border: 1px solid #ddd; box-shadow: 0 8px 18px rgba(0,0,0,.08); }
.pt-quick__today:hover .pt-quick__panel, .pt-quick__today:focus-within .pt-quick__panel { display: block; }
.pt-quick__panel strong { display: block; margin-bottom: 10px; font-size: 12px; color: var(--pt-ink); }
.pt-quick__panel ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pt-quick__panel img { width: 100%; height: auto; display: block; }
.pt-quick__panel p { margin: 0; color: var(--pt-gray); line-height: 1.5; }

/* ---------- 기본 테마 레이아웃 덮어쓰기 ---------- */
#wrapper.ms-wrapper { background: #fff; }
#wrapper.ms-is-index #container { width: 100%; min-height: 0; }
#wrapper.ms-is-index #container .shop-content { padding: 0; margin: 0; }

/* ---------- 메인 슬라이드 ---------- */
.pt-hero { position: relative; overflow: hidden; }
.pt-hero .swiper-slide img { width: 100%; height: auto; }
.pt-hero__tabs { position: absolute; left: 50%; bottom: 28px; z-index: 5; transform: translateX(-50%); display: flex; gap: 6px; }
.pt-hero__tabs button { height: 30px; padding: 0 14px; border: 1px solid #ddd; background: rgba(255,255,255,.95); color: #555; font: inherit; font-size: 12px; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s; }
.pt-hero__tabs button.is-on, .pt-hero__tabs button:hover { background: #555; border-color: #555; color: #fff; }

/* ---------- 메인아이콘 ---------- */
.pt-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 60px; }
.pt-icons__item { display: block; overflow: hidden; }
.pt-icons__item img { width: 100%; transition: transform .4s; }
.pt-icons__item:hover img { transform: scale(1.04); }

/* ---------- 메인모자이크 ---------- */
.pt-mosaic { display: grid; grid-template-columns: 1fr 1.9fr 1fr; gap: 12px; padding-top: 60px; }
.pt-mosaic__col { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.pt-mosaic__item { display: block; overflow: hidden; height: 100%; }
.pt-mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pt-mosaic__item:hover img { transform: scale(1.04); }
.pt-mosaic__mid { position: relative; min-width: 0; }
.pt-mosaic__mid .swiper { height: 100%; }
.pt-mosaic__dots { position: absolute; bottom: 14px !important; z-index: 3; }
.pt-mosaic__dots .swiper-pagination-bullet { width: 24px; height: 2px; border-radius: 0; background: #fff; opacity: .5; }
.pt-mosaic__dots .swiper-pagination-bullet-active { opacity: 1; }

/* ---------- 멀티슬라이드 ---------- */
.pt-multi { position: relative; padding-top: 60px; }
.pt-multi .swiper { overflow: hidden; }
.pt-multi__item img { width: 100%; }
.pt-multi__prev, .pt-multi__next { position: absolute; top: calc(50% + 20px); z-index: 5; width: 40px; height: 40px; margin-top: -20px; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: #333; font-size: 22px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.pt-multi__prev { left: 12px; } .pt-multi__next { right: 12px; }
.pt-multi__dots { position: static !important; margin-top: 16px; text-align: center; }
.pt-multi__dots .swiper-pagination-bullet, .pt-pager__dots .swiper-pagination-bullet { width: 7px; height: 7px; background: #ccc; opacity: 1; }
.pt-multi__dots .swiper-pagination-bullet-active, .pt-pager__dots .swiper-pagination-bullet-active { background: #777; }

/* ---------- 섹션 공통 ---------- */
.pt-sec { padding-top: 80px; }
.pt-divbn { display: block; margin-bottom: 70px; }
.pt-divbn img { width: 100%; }
.pt-head { margin-bottom: 36px; text-align: center; }
.pt-head__title { margin: 0; font-size: 26px; font-weight: 500; color: var(--pt-accent); letter-spacing: -.01em; }
.pt-head__sub { margin: 8px 0 0; font-size: 13px; color: #666; }
.pt-more { margin-top: 36px; text-align: center; }
.pt-more a { display: inline-block; padding: 10px 40px; border: 1px solid #ccc; font-size: 12px; letter-spacing: .06em; color: #555 !important; transition: border-color .2s, color .2s; }
.pt-more a:hover { border-color: #333; color: #333 !important; }

/* ---------- 상품 그리드 / 카드 ---------- */
.pt-grid { display: grid; grid-template-columns: repeat(var(--pt-cols, 3), 1fr); gap: 50px 30px; }
.ms-card { min-width: 0; }
.ms-card__media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--pt-soft); }
.ms-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ms-card:hover .ms-card__media img { transform: scale(1.05); }
.ms-card__badge { position: absolute; left: 0; top: 0; padding: 5px 9px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; letter-spacing: .06em; }
.ms-card.is-soldout .ms-card__media img { opacity: .5; }
.ms-card__body { padding-top: 14px; }
.ms-card__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; padding-bottom: 12px; border-bottom: 1px solid #eee; font-size: 12px; line-height: 1.5; color: #555; word-break: keep-all; }
.ms-card__name:hover { color: var(--pt-ink); }
.ms-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 12px; }
.ms-card__price strong { font-size: 13px; font-weight: 700; color: var(--pt-ink); }
.ms-card__price del { font-size: 12px; color: var(--pt-light); }
.ms-card__rate { font-style: normal; font-size: 13px; font-weight: 700; color: var(--pt-sale); }
.ms-card__icons { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 10px; }
.pt-badge { display: inline-block; padding: 2px 6px; font-size: 10px; line-height: 1.4; color: #fff; background: #999; }
.pt-badge--best { background: var(--pt-best); }
.pt-badge--new { background: var(--pt-new); }
.pt-badge--sale { background: var(--pt-sale); }
.pt-badge--md { background: #8e7cc3; }
.pt-badge--hot { background: #333; }

/* ---------- Weekly Best 페이지 슬라이드 ---------- */
.pt-pager { position: relative; }
.pt-pager .swiper { overflow: hidden; }
.pt-pager__prev, .pt-pager__next { position: absolute; top: 40%; z-index: 5; width: 42px; height: 42px; border: 1px solid #ddd; border-radius: 50%; background: rgba(255,255,255,.95); color: #555; font-size: 22px; cursor: pointer; }
.pt-pager__prev { left: -21px; } .pt-pager__next { right: -21px; }
.pt-pager__prev.swiper-button-disabled, .pt-pager__next.swiper-button-disabled { opacity: .3; cursor: default; }
.pt-pager__dots { position: static !important; margin-top: 30px; text-align: center; }

/* ---------- 하단배너 ---------- */
.pt-bottom { padding-top: 90px; }
.pt-bottom__item { display: block; }
.pt-bottom__item + .pt-bottom__item { margin-top: 12px; }
.pt-bottom__item img { width: 100%; }

/* ---------- REVIEW ---------- */
.pt-review__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 20px; }
.pt-review__list a { display: block; }
.pt-review__img { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--pt-soft); }
.pt-review__img img { width: 100%; height: 100%; object-fit: cover; }
.pt-review__star { display: block; margin-top: 12px; color: var(--pt-accent); font-size: 12px; letter-spacing: 1px; }
.pt-review__star i { font-style: normal; color: #ddd; }
.pt-review__list strong { display: block; margin-top: 6px; font-size: 13px; color: var(--pt-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-review__txt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; line-height: 1.6; color: #777; }
.pt-review__meta { display: block; margin-top: 8px; font-size: 11px; color: var(--pt-light); }

.pt-main { padding-bottom: 120px; }

/* ---------- 관리자 안내 ---------- */
.ms-hint { width: var(--pt-max); max-width: calc(100% - 32px); margin: 24px auto; padding: 16px 20px; box-sizing: border-box; border: 1px dashed var(--pt-accent); background: #fff8ea; font-size: 13px; line-height: 1.7; color: #555; }
.ms-hint strong { display: block; color: var(--pt-ink); }
.ms-hint a { color: var(--pt-accent-deep); font-weight: 700; }

/* ---------- 푸터 ---------- */
#pt-ft { margin-top: 0; border-top: 1px solid #e5e5e5; background: #fff; color: var(--pt-gray); }
.pt-ft__menu { border-bottom: 1px solid #eee; }
.pt-ft__menu ul { display: flex; gap: 26px; padding: 18px 0; }
.pt-ft__menu a { color: #555; }
.pt-ft__menu strong { color: var(--pt-ink); }
.pt-ft__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 40px 0 30px; }
.pt-ft__box h2 { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--pt-ink); }
.pt-ft__box p { margin: 0; line-height: 1.8; }
.pt-ft__tel { margin-bottom: 8px !important; font-size: 24px; font-weight: 700; color: var(--pt-ink); }
.pt-ft__links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pt-ft__links a:hover { color: var(--pt-ink); }
.pt-ft__info { padding: 24px 0 50px; border-top: 1px solid #f0f0f0; line-height: 1.9; }
.pt-ft__info p { margin: 0; }
.pt-ft__info span { display: inline-block; margin-right: 14px; }
.pt-ft__copy { margin-top: 10px !important; color: var(--pt-light); }

/* ---------- 기본 쇼핑몰 스킨 색상 맞춤 ---------- */
.sit_btn_buy, #sit_btn_buy { background: #333 !important; border-color: #333 !important; color: #fff !important; }
.sit_btn_buy:hover, #sit_btn_buy:hover { background: var(--pt-accent-deep) !important; border-color: var(--pt-accent-deep) !important; }
.shop_icon { background: var(--pt-best) !important; color: #fff !important; }

/* ---------- 팝업레이어 ---------- */
.hd_pops { box-shadow: 0 16px 40px rgba(0,0,0,.2); }
.hd_pops_con img { display: block; max-width: 100%; height: auto; }

/* ---------- 모바일 (기본 모바일 헤더 + 공용 메인) ---------- */
@media (max-width: 768px) {
    body { font-size: 13px; }
    .pt-in { width: auto; padding: 0 14px; }
    .pt-hero__tabs { bottom: 12px; max-width: calc(100% - 20px); overflow-x: auto; }
    .pt-hero__tabs button { height: 26px; padding: 0 10px; font-size: 11px; }
    .pt-icons { grid-template-columns: repeat(2, 1fr); gap: 8px; padding-top: 30px; }
    .pt-mosaic { grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 30px; }
    .pt-mosaic__mid { grid-column: 1 / -1; order: -1; }
    .pt-mosaic__col { grid-template-rows: auto auto; gap: 8px; }
    .pt-multi { padding-top: 30px; }
    .pt-sec { padding-top: 50px; }
    .pt-divbn { margin: 0 -14px 34px; }
    .pt-head { margin-bottom: 22px; }
    .pt-head__title { font-size: 21px; }
    .pt-grid { gap: 30px 10px; }
    .ms-card__name { font-size: 12px; }
    .pt-pager__prev, .pt-pager__next { display: none; }
    .pt-bottom { padding-top: 50px; margin: 0 -14px; }
    .pt-review__list { grid-template-columns: repeat(2, 1fr); gap: 26px 10px; }
    .pt-main { padding-bottom: 60px; }
    .hd_pops { left: 50% !important; top: 70px !important; transform: translateX(-50%); width: calc(100% - 40px) !important; max-width: 400px; }
    .hd_pops_con { width: auto !important; height: auto !important; }
}
