/* BASIC css start */
  /* 색상 팔레트 */
  :root {
    --penm-navy-900: #2c344e;
    --penm-navy-800: #3f4b6f;
    --penm-navy-700: #403F6F;
    --penm-navy-100: #e4eaff;
    --penm-navy-150: #c8d5ff;
    --penm-white: #ffffff;
    --penm-shadow: 0 10px 24px rgba(44,52,78,0.18);
  }
/* 모바일에서만 노출 */
.penm-m-header, .penm-m-nav, .penm-m-drawer { display:none; }
@media (max-width: 1024px){
  .penm-top-utility, .penm-header, .penm-nav-bar { display:none !important; } /* PC 헤더/네비 숨김 */
  .penm-m-header, .penm-m-nav, .penm-m-drawer { display:block; }
}

/* ===== 헤더 ===== */
.penm-m-header{
  position:sticky; top:0; z-index:3000;
  display:flex; align-items:center; justify-content:space-between;
  height:56px; padding:0 10px;
  background:#ffffff; border-bottom:1px solid #eaeef6;
}
.penm-m-left, .penm-m-right{ display:flex; gap:4px; align-items:center; }

/* 아이콘 버튼/링크 공통 */
.penm-m-icon-btn,
.penm-m-icon-link{
  width:38px; height:38px;
  display:inline-flex; align-items:center; justify-content:center;
  font-size:20px; color:#2c344e; background:#fff; border:none; text-decoration:none;
}

/* 장바구니 뱃지 */
.penm-m-cart{ position:relative; }
.penm-m-badge{
  position:absolute; top:-2px; right:-2px; min-width:18px; height:18px;
  display:flex; align-items:center; justify-content:center;
  padding:0 4px; border-radius:9px; font-size:11px; font-weight:700;
  background:#f2a4b3; color:#fff;
}

/* 요청한 로고 스타일(그대로) */
.penm-m-logo{ margin:0; }
.penm-m-logo a{ display:block; height:60px; }
.penm-m-logo img{ height:60px; width:auto; display:block; }

/* ===== 가로 네비 ===== */
.penm-m-nav{
  position:sticky; top:56px; z-index:2999;
  display:flex; align-items:center; gap:6px;
  padding:0 6px; height:44px; background:#3f4b6f;
}
.penm-m-nav .penm-m-nav-list{
  display:flex; gap:10px; overflow-x:auto; -webkit-overflow-scrolling:touch;
  scrollbar-width:none; flex:1 1 auto;
}
.penm-m-nav .penm-m-nav-list::-webkit-scrollbar{ display:none; }
.penm-m-nav .penm-m-nav-list li{ flex:0 0 auto; }
.penm-m-nav .penm-m-nav-list a{
  display:block; color:#e4eaff; text-decoration:none;
  padding:0 10px; line-height:28px; border-radius:14px; font-weight:700; font-size:16px;
  white-space:nowrap;
}
.penm-m-nav .penm-m-nav-list a:hover{ background:#2c344e; color:#ffffff; }
.penm-m-nav-toggle{
  flex:0 0 auto; width:36px; height:36px; border:none; border-radius:8px;
  background:#2c344e; color:#ffffff; font-size:16px;
}

/* ===== Drawer 공통 ===== */
body.penm-no-scroll{ overflow:hidden; }
.penm-m-drawer{ position:fixed; inset:0; z-index:3500; pointer-events:none; }
.penm-m-drawer__backdrop{
  position:absolute; inset:0; background:rgba(0,0,0,.35); opacity:0; transition:opacity .2s ease;
}
.penm-m-drawer__panel{
  position:absolute; inset:0 0 0 auto; width:100%; max-width:560px;
  background:#fff; transform:translateX(100%); transition:transform .25s ease;
  display:flex; flex-direction:column;
}
.penm-m-drawer.penm-is-open{ pointer-events:auto; }
.penm-m-drawer.penm-is-open .penm-m-drawer__backdrop{ opacity:1; }
.penm-m-drawer.penm-is-open .penm-m-drawer__panel{ transform:translateX(0); }

/* Drawer 상단바 */
.penm-m-drawer__topbar{
  display:flex; align-items:center; justify-content:space-between;
  height:52px; padding:0 14px; border-bottom:1px solid #e4eaff; background:#ffffff;
}
.penm-m-home{ color:#2c344e; font-weight:700; display:flex; gap:8px; align-items:center; }
.penm-m-close{ background:none; border:none; font-size:22px; color:#2c344e; }
/* 첫 번째 햄버거 헤더 좌측 그룹 */
.penm-m-drawer-left {
  display: flex;
  align-items: center;
  gap: 15px; /* HOME과 버튼 사이 간격 */
}

/* 첫 번째 햄버거 비회원 주문조회 버튼 */
.penm-m-drawer-order-btn {
  display: inline-block;
  font-size: 14px;
  color: #ffffff;
  background-color: #ab3e41;
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.2s ease;
}

.penm-m-drawer-order-btn:hover {
  background-color: #ab3e41;
}

/* 아코디언 목록 */
.penm-m-accordion{ list-style:none; margin:0; padding:8px 0 24px; overflow:auto; }
.penm-m-row{
  display:flex; align-items:center; justify-content:space-between;
  width:100%; padding:16px 16px; border-bottom:1px solid #eef2fa;
  font-size:16px; font-weight:700; color:#2c344e; text-align:left; background:#f9fafe;
}
.penm-m-accordion > li > .penm-m-row:hover{ background:#e4eaff; color:#2c344e; }
.penm-m-accordion .penm-has-children .penm-m-row{ background:#ffffff; }
.penm-m-accordion-btn{ border:none; background:none; cursor:pointer; }
.penm-m-accordion-btn i{ transition:transform .2s ease; color:#777; }

.penm-m-sub{ display:none; background:#fff; }
.penm-m-sub li a{
  display:block; padding:14px 18px; border-bottom:1px solid #f0f3fb;
  color:#2c344e; font-size:15px; font-weight:500; text-decoration:none;
}
.penm-m-sub li a:hover{ background:#f7f9ff; }

/* 열림 상태 표시 */
.penm-has-children.penm-is-open > .penm-m-accordion-btn{
  color:#3f4b6f;
  border-left:4px solid #c8d5ff; padding-left:12px;
}
.penm-has-children.penm-is-open > .penm-m-accordion-btn i{
  transform:rotate(180deg); color:#3f4b6f;
}

/* 모션 최소화 */
@media (prefers-reduced-motion: reduce){
  .penm-m-drawer__panel, .penm-m-drawer__backdrop, .penm-m-accordion-btn i{ transition:none; }
}
/* ===================== 두 번째 햄버거(카탈로그)   카테고리 영역만 ===================== */
/* 오버레이 */
.penm-m-catalog{
  position:fixed; inset:0; background:#ffffff; z-index:5000;
  transform:translateX(100%); transition:transform .25s ease;
}
.penm-m-catalog.is-open{ transform:translateX(0); }

/* 헤더 */
.penm-m-cat-header{
  height:52px; display:flex; align-items:center; justify-content:space-between;
  padding:0 14px; border-bottom:1px solid #e9ecf4;
  background:#403F6F; color:#ffffff;
}
.penm-m-cat-header strong{ font-size:16px; font-weight:700; }
.penm-m-cat-close{
  background:transparent; border:0; padding:0; width:40px; height:40px;
  display:inline-flex; align-items:center; justify-content:center;
  color:#fff; line-height:1; appearance:none; -webkit-appearance:none; box-shadow:none;
}
.penm-m-cat-close i{ color:#fff; }

/* 카탈로그 헤더 좌측 그룹 (메뉴 + 주문조회) */
.penm-m-cat-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 카탈로그 헤더 비회원 주문조회 버튼 */
.penm-m-cat-order-btn {
  display: inline-block;
  font-size: 12px;
  color: #403F6F;
  background-color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
}

.penm-m-cat-order-btn:hover {
  background-color: #f0f0f0;
}

/* 레이아웃 */
.penm-m-cat-body{ display:flex; height:calc(100% - 52px); }

/* 왼쪽 탭 */
.penm-m-cat-aside{
  width:92px; background:#f7f8fc; border-right:1px solid #e9ecf4;
  padding:0; overflow-y:auto;
}
.penm-m-cat-tab{
  display:block; width:100%; padding:12px 10px; margin:0;
  text-align:left; font-size:13px; color:#2c344e;
  background:transparent; border:0; border-bottom:1px solid #e9ecf4;
}
.penm-m-cat-tab.is-active{
  background:transparent; color:#3f4b6f; font-weight:700;
  border-left:3px solid #3f4b6f; padding-left:7px; /* 보더만큼 보정 */
}

/* 패널 */
.penm-m-cat-panels{ flex:1; overflow:auto; }
.penm-m-cat-panel{ display:none; padding:12px 14px 24px; }
.penm-m-cat-panel.is-active{ display:block; }

/* ===== 카테고리 메인 행(아코디언/링크 공통)“선만 있는” 라인 스타일 ===== */
.penm-m-cat-row,
a.penm-m-cat-link{
  display:flex; align-items:center; gap:8px;
  width:100%; box-sizing:border-box;
  padding:14px 12px;
  background:transparent; color:#2c344e; text-decoration:none;
  border:0; border-bottom:1px solid #e9ecf4; border-radius:0;
  text-align:left; /* 안전장치 */
}
.penm-m-cat-title{
  flex:1; display:block; text-align:left;
  font-size:15px; font-weight:700;
}
/* 토글 아이콘은 항상 맨 우측 */
.penm-m-cat-icon{
  margin-left:auto; color:#3f4b6f;
  transition:transform .2s ease, color .2s ease;
}

/* 열림 강조(하단 라인만 살짝 강조) */
.penm-m-acc.is-open .penm-m-cat-row{ border-color:#c8d5ff; }
.penm-m-acc.is-open .penm-m-cat-icon{ transform:rotate(180deg); color:#2c344e; }

/* 아코디언 본문  항목들도 “선만 있는” 스타일 */
.penm-m-acc{ margin:0; }
.penm-m-acc-body{ display:none; padding:0 0 4px; }
.penm-m-acc.is-open .penm-m-acc-body{ display:block; }
.penm-m-acc-body li a{
  display:block; padding:12px 12px; font-size:14px; color:#2c344e; text-decoration:none;
  background:transparent; border:0; border-bottom:1px solid #eef1f6; border-radius:0;
}
.penm-m-acc-body li:last-child a{ border-bottom:0; }
 
/* ========== 전체브랜드: 가나다 칩 & 리스트 ========== */
.penm-m-az-filter{
  position:sticky; top:0; z-index:1; background:#ffffff;
  padding:8px 0 10px; margin-bottom:6px;
}
.penm-m-az-chip{
  display:inline-block; padding:6px 10px; margin:4px 4px 6px 0;
  font-size:13px; border:1px solid #c8d5ff; border-radius:14px;
  background:#e4eaff; color:#2c344e; text-decoration:none;
}
.penm-m-az-chip.is-active{ background:#3f4b6f; border-color:#3f4b6f; color:#ffffff; }

.penm-m-brand-block{ padding:10px 0 4px; border-top:1px solid #eef1f6; }
.penm-m-brand-block h4{ margin:8px 0; font-size:14px; color:#3f4b6f; }
.penm-m-brand-list{ display:flex; flex-wrap:wrap; gap:6px 14px; padding-bottom:6px; }
.penm-m-brand-list li a{ font-size:14px; color:#2c344e; text-decoration:none; }

/* ========== 나라별 브랜드 ========== */
.penm-flag{ height:18px; width:auto; vertical-align:-3px; margin-right:6px; }
.penm-m-country-filter{ margin-bottom:6px; }

/* ========== 인기 브랜드 ========== */
.penm-m-pop-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:12px;
}
.penm-m-pop-item{ display:block; text-align:center; color:#2c344e; font-size:13px; text-decoration:none; }
.penm-m-pop-item figure{
  height:74px; background:#ffffff; border:1px solid #e9ecf4; border-radius:8px;
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.penm-m-pop-item img{ max-width:90%; max-height:90%; object-fit:contain; }
.penm-m-pop-item span{ display:block; margin-top:6px; }

/* === 2번째 햄버거 메뉴바 아이콘 === */
.penm-m-right a.penm-m-catalog-open i,
.penm-header-right a.penm-m-catalog-open i{
  font-size: 22px;
  line-height: 1;
}

/* === 2번째 햄버거 오버레이 닫기 아이콘 === */
.penm-m-cat-close i{
  font-size: 22px;
  line-height: 1;
}

/* ===== 모바일 검색 모달 (전체 화면) ===== */
.penm-m-search-modal{
  position: fixed;
  inset: 0;
  z-index: 3000;
  background:#fff;
  display:none;                 /* 기본 숨김 */
}
.penm-m-search-modal.is-open{ display:block; }

.penm-m-search-wrap{
  height:100%;
  width:100%;
  padding:20px 18px 30px;
  box-sizing:border-box;
}

/* 상단 헤더 */
.penm-m-search-header{
  position:relative;
  height:56px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.penm-m-search-title{
  font-size:20px;               /* 필요하면 18~20 조절 */
  font-weight:600;
  letter-spacing:-0.5px;
  color:#111;
}
.penm-m-search-close{
  position:absolute;
  right:6px;
  top:50%;
  transform:translateY(-50%);
  background:none;
  border:0;
  font-size:28px;
  color:#666;
  line-height:1;
  cursor:pointer;
}

/* ===== 입력 영역: 밑줄형 + 아이콘 겹치기 ===== */
.penm-m-search-field{
  position: relative;
  margin:28px 6px 0;
}

/* 인풋: 한 줄, 오른쪽에 아이콘 자리 확보 */
.penm-m-search-input{
  width:100% !important;
  border:0 !important;
  border-bottom:2px solid #e1e1e1 !important;
  padding:12px 44px 12px 0 !important;  /* 아이콘 공간 확보 */
  font-size:18px !important;
  outline:none !important;
  background:#fff !important;
  box-sizing:border-box;
}
.penm-m-search-input:focus{
  border-bottom-color:#bdbdbd !important;
}

/* 검색 버튼(링크): 아이콘만, 배경/테두리 없음 */
.penm-m-search-button{
  position:absolute;
  right:0;
  top:50%;
  transform:translateY(-50%);
  width:36px;
  height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  background:transparent;
  border:0;
  color:#444 !important;
  border-radius:0;
  cursor:pointer;
}
.penm-m-search-button i{ font-size:22px; line-height:1; }
.penm-m-search-button:hover{ color:#403F6F !important; }

/* 자동완성 레이어가 밑줄과 겹치지 않도록 간격 */
.penm-m-search-autocomplete{
  position:relative;
  margin-top:12px;
  z-index:1;
}
.penm-m-search-autocomplete *{ max-width:100%; }

/* 데스크톱에서는 숨김(모바일 전용) */
@media (min-width: 769px){
  .penm-m-search-modal{ display:none !important; }
}



        /* 상단 유틸리티 바 */
        .penm-top-utility {
            background-color: white;
            border-bottom: 1px solid #e4eaff;
            color: #333;
            padding: 8px 0;
            font-size: 14px;
        }

        .penm-top-utility .penm-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .penm-top-left span {
            margin-right: 25px;
            /* font-weight: 500; */
        }

        .penm-top-right {
            display: flex;
            align-items: center;
            gap: 25px;
        }

        .penm-top-right .penm-menu-item {
            position: relative;
        }

        .penm-top-right a {
            color: #333;
            text-decoration: none;
            /* font-weight: 400; */
            font-size: 14px;
            transition: color 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .penm-top-right a:hover {
            color: #403F6F;
        }

        /* 쿠폰 뱃지 */
        .penm-coupon-badge {
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(45deg, #3f4b6f, #2c344e);
            color: white;
            padding: 3px 8px;
            border-radius: 12px;
            font-size: 10px;
            font-weight: bold;
            white-space: nowrap;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
            animation: float 2s ease-in-out infinite;
            z-index: 1500;
            margin-top: 5px;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-3px); }
        }

        /* 장바구니 카운트 */
        .penm-cart-count {
            background-color: #2c344e;
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }

        /* 마이페이지 드롭다운 */
        .penm-mypage-dropdown {
            position: absolute;
            top: 100%;
            right: 0;
            background: white;
            border: 1px solid #ddd;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            z-index: 1001;
            min-width: 100px;
            margin-top: 8px;
        }

        .penm-menu-item:hover .penm-mypage-dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .penm-mypage-dropdown a {
            display: block;
            padding: 8px 18px;
            color: #333;
            font-size: 13px;
            border-bottom: 1px solid #c8d5ff;
        }

        .penm-mypage-dropdown a:hover {
            background-color: #f8f8f8;
            color: #403F6F;
        }

        .penm-mypage-dropdown a:last-child {
            border-bottom: none;
            border-radius: 0 0 8px 8px;
        }

        .penm-mypage-dropdown a:first-child {
            border-radius: 8px 8px 0 0;
        }

        /* 메인 헤더 */
        .penm-header {
            background-color: #f5f5f5;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: relative;
            z-index: 999;
        }

        .penm-header-container {
            max-width: 1400px;
            margin: 0 auto;
            padding-top: 15px;
            padding-bottom: 25px;
            padding-left: 20px;
            padding-right: 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
        }

        /* 회원가입 이벤트 배너 - 좌측 */
        .penm-signup-event {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            text-decoration: none;
            color: inherit;
            padding: 5px;
        }

        /* 이벤트 이미지 */
        .penm-event-image img {
            width: 120px;
            height: 66px;
            background-size: contain;
            flex-shrink: 0;
            border-radius: 6px;
            transition: transform 0.3s ease;
        }

        .penm-event-image:hover {
            transform: rotate(-3deg);
        }

        /* 이벤트 텍스트 */
        .penm-event-text {
            display: flex;
            flex-direction: column;
            gap: 2px;
            align-items: center;
            text-align: center;
        }

        .penm-event-title {
            font-size: 15px;
            font-weight: bold;
            color: #403F6F;
            line-height: 1.2;
        }

        .penm-event-subtitle {
            font-size: 13px;
            color: #2c344e;
            font-weight: 500;
            white-space: nowrap;
        }

        /* 로고 - 중앙 */
        .penm-logo {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
        }

        .penm-logo img {
            height: 120px;
            width: auto;
            max-width: 400px;
        }

        /* 우측 여백 확보 */
        .penm-header-right {
            width: 200px;
        }

        /* 모바일 메뉴 버튼 */
        .penm-mobile-menu-btn {
            display: none;
            position: absolute;
            right: 20px;
            background: none;
            border: none;
            font-size: 28px;
            color: #403F6F;
            cursor: pointer;
        }

    
        /* 검색 모달 */
        .penm-search-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            z-index: 2000;
            display: none;
            align-items: center;
            justify-content: center;
        }

        .penm-search-modal.active {
            display: flex;
        }

        .penm-search-box-container {
            background: white;
            padding: 40px;
            max-width: 600px;
            width: 90%;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }

        .penm-search-title {
            text-align: center;
            margin-bottom: 30px;
            font-size: 24px;
            color: #403F6F;
            font-weight: 700;
        }

        .penm-search-input-container {
            position: relative;
            margin-bottom: 20px;
        }

        .penm-search-input {
            width: 100%;
            padding: 15px 20px;
            font-size: 18px;
            border: 2px solid #e4eaff;
            outline: none;
            transition: border-color 0.3s ease;
        }

        .penm-search-input:focus {
            border-color: #403F6F;
        }

        .penm-search-button {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            background: white;
            color: #403F6F;
            border: none;
            /* padding: 8px 15px; */
            cursor: pointer;
            font-size: 20px;
        }

        .penm-search-close {
            position: absolute;
            top: 15px;
            right: 20px;
            background: none;
            border: none;
            font-size: 24px;
            color: #666;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .penm-search-close:hover {
            color: #403F6F;
        }
        .penm-brand-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 40px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 40px;
        }

        .penm-brand-column {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        .penm-brand-country {
            border-left: 3px solid #403F6F;
            padding-left: 20px;
        }

        .penm-brand-country h4 {
            color: #403F6F;
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 15px;
            padding-bottom: 8px;
            border-bottom: 2px solid #e4eaff;
        }

        .penm-brand-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .penm-brand-list li {
            margin-bottom: 0;
        }

        .penm-brand-list a {
            color: #666;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s ease;
            display: block;
            padding: 5px 0;
            line-height: 1.4;
        }

        .penm-brand-list a:hover {
            color: #403F6F;
            padding-left: 12px;
            font-weight: 600;
        }
/* ========== 네비게이션 메뉴 바 스타일 시작 ========== */ 
.penm-nav-scope, .penm-nav-scope a { font-size: 0; line-height: 1.25; }
* { -webkit-font-smoothing: antialiased; text-size-adjust: none; }
li, p, ul { margin: 0; padding: 0; }
a { background: none; color: #000; font-size: 12px; text-decoration: none; }
img { border: 0; }
li { list-style: none; }

/* 컨테이너 */
.penm-nav-container { margin: 0 auto; position: relative; width: 1320px; }

/* 상단 네이비 바 */
.penm-nav-bar {
  background-color: #403F6F;
  border-bottom: 1px solid #ddd;
  border-top: 1px solid #a7a7a7;
  color: #fff;
  height: 50px;
  position: relative;
}

/* 좌측 '전체 카테고리' / 우측 검색 */
.penm-nav-bar .penm-nav-toggle { left: 0; position: absolute; top: 0; width: 140px; }
.penm-nav-bar .penm-nav-search { position: absolute; right: 0; top: 0; }

/* 버튼 크기 */
.penm-nav-bar .penm-nav-toggle .penm-nav-toggle-btn,
.penm-nav-bar .penm-nav-search a {
  display: block; height: 50px; line-height: 50px; text-align: center;
}
.penm-nav-bar .penm-nav-toggle .penm-nav-toggle-btn {
  width: 140px; 
  box-sizing: border-box;
  background-color: #e4eaff;
  border: 1px solid #d8dbea;
  display: grid; 
  grid-template-columns: 1fr 20px;
  align-items: center
  padding: 0 8px; 
  color: #2c344e; 
  font-weight: 700;
}
.penm-nav-bar .penm-nav-search a { width: 50px; color: #ffffff; }

.penm-nav-bar .penm-nav-toggle i,
.penm-nav-bar .penm-nav-search i,
a, img { vertical-align: middle; }
.penm-nav-bar .penm-nav-search i { font-size: 26px; }
.penm-nav-bar .penm-nav-toggle i { font-size: 20px; }
.penm-nav-bar .penm-nav-toggle .penm-nav-catlabel { font-size: 16px; font-weight: 500; padding: 0 4px; }
.penm-nav-bar .penm-nav-toggle .penm-nav-catlabel{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  min-width: 0;
  line-height:1;
}

.penm-nav-bar .penm-nav-toggle .penm-nav-toggle-btn i{
  justify-self: end;
  width: 20px;
  text-align: center;
  transition: transform .18s ease;
}


/* 전체카테고리: .is-open 이 붙어있을 때 메가메뉴 표시 */
.penm-nav-bar .penm-nav-mega { display: none; left: 0; position: absolute; top: 0; }
.penm-nav-bar .penm-nav-toggle.is-open .penm-nav-mega { display: block; }
.penm-nav-bar .penm-nav-toggle.is-open .penm-nav-toggle-btn i{
  transform: rotate(45deg);
}

/* 메가메뉴 패널(브랜드 레일 140 만큼 오른쪽에서 시작) */
.penm-nav-bar .penm-nav-mega .penm-nav-mega-box{
  background-color: #fff; border: 1px solid #ddd;
  height: 600px; max-height: 600px;
  position: absolute; top: 50px; left: 140px; right: 0; width: 1220px;
  z-index: 150;
}
.penm-nav-bar .penm-nav-mega #penm-nav-close {
  background-color: #e4eaff; color: #2c344e; cursor: pointer;
  font-size: 16px; height: 51px; line-height: 50px; text-align: center;
  position: relative; left: 0; width: 140px; z-index: 10;
}
.penm-nav-bar .penm-nav-mega .penm-nav-mega-inner { overflow: hidden; padding: 0 0 0 34px; }
.penm-nav-bar .penm-nav-mega .penm-nav-columns .penm-nav-col-brands,
.penm-nav-bar .penm-nav-mega .penm-nav-columns .penm-nav-col-stationery,
.penm-nav-bar .penm-nav-mega .penm-nav-columns .penm-nav-col-categories { display: inline-block; position: relative; vertical-align: top; }
.penm-nav-bar .penm-nav-mega .penm-nav-columns .penm-nav-col-brands { width: 50%; }
.penm-nav-bar .penm-nav-mega .penm-nav-columns .penm-nav-col-stationery { width: 16%; }
.penm-nav-bar .penm-nav-mega .penm-nav-columns .penm-nav-col-categories { width: 34%; }

/* 메가 내부 기본 블록(기존 명칭 유지) */
.penm-nav-block { color: #777; float: left; font-size: 13px; margin-right: 20px; padding: 0 34px 30px 0; width: 160px; }
.penm-nav-block .penm-nav-block-title { border-bottom: 1px solid #ddd; font-size: 14px; font-weight: 700; margin: 12px 0 4px; padding-bottom: 8px; text-align: left; }
.penm-nav-block .penm-nav-block-title img {
    width: 14px;
    height: auto;
}
.penm-nav-block .penm-nav-title-spaced { margin-top: 25px; }
.penm-nav-block .penm-nav-block-links { text-align: left; }
.penm-nav-block .penm-nav-block-links div a { color: #777; display: block; font-size: 14px; height: 20px; line-height: 20px; padding: 3px 0 3px 5px; }
.penm-nav-block .penm-nav-block-links div a:hover { background-color: #f1f1f1; color: #111; }

/* 가운데 1차 메뉴(좌 130 / 우 50 여백 확보하는 안전안) */
.penm-nav-bar .penm-nav-primary { height: 50px; margin: 0 50px 0 140px; position: relative; text-align: center; width: auto; }
.penm-nav-bar .penm-nav-mega .penm-nav-columns::after,
.penm-nav-bar .penm-nav-primary::after { clear: both; content: ""; display: block; }

.penm-nav-bar .penm-nav-primary .penm-nav-primary-item { display: inline-block; padding: 0 30px; position: relative; }
.penm-nav-bar .penm-nav-primary .penm-nav-primary-item > a { color: #fff; font-size: 16px; font-weight: 700; line-height: 50px; }
.penm-nav-bar .penm-nav-primary .penm-nav-primary-item > a:hover { border-bottom: 1px solid #c8d5ff; }

/* 1차 메뉴의 드롭다운(좌측 정렬 + 경계선) */
.penm-nav-bar .penm-nav-primary .penm-nav-submenu{
  text-align: left; background-color: #fff; border: 1px solid #ddd;
  display: none; position: absolute; top: 50px; left: 50%; margin-left: -75px;
  width: 150px; z-index: 200;
}
.penm-nav-bar .penm-nav-primary .penm-nav-submenu li { font-size: 13px; line-height: 24px; }
.penm-nav-bar .penm-nav-primary .penm-nav-submenu li + li{ border-top: 1px solid #e4eaff; }
.penm-nav-bar .penm-nav-primary .penm-nav-submenu li > a{
  display: block; padding: 8px 12px; font-size: 15px; line-height: 24px;
}
.penm-nav-bar .penm-nav-primary .penm-nav-primary-item:hover > .penm-nav-submenu,
.penm-nav-bar .penm-nav-primary .penm-nav-primary-item:focus-within > .penm-nav-submenu{ display: block !important; }

/* ========== 좌측 '인기브랜드' 레일 ========== */
.penm-nav-brandrail .penm-nav-rail { display: block; left: 0; position: absolute; top: 50px; width: 140px; z-index: 120; }
.penm-nav-rail .penm-nav-rail-list > li{
  background:#ffffff; border:1px solid #cfd6e5; border-top:0; height:48px; position: relative;
}
.penm-nav-rail .penm-nav-rail-list > li:not(.penm_top_brand_title) {
  height: 48px;
}
.penm-nav-rail .penm-nav-rail-list > li:not(.penm_top_brand_title) > a{
  display: block;
  width: 100%;
  height: 100%;            /* 클릭 영역을 li 전체 높이로 */
}
.penm-nav-rail .penm-nav-rail-list > li:not(.penm_top_brand_title) > a .penm-nav-label{
  height: 100%;
  box-sizing: border-box;
  padding: 0 12px;         /* 좌우 여백 유지 */
  display: flex;           /* 중앙 정렬 핵심 */
  align-items: center;     /* 수직 가운데 */
  justify-content: center; /* 수평 가운데 (좌우 동일) */
}.penm-nav-rail .penm-nav-rail-list > li:not(.penm_top_brand_title) .penm-nav-label > span{
  line-height: 1;
  display: inline-block;
}
.penm-nav-rail .penm-nav-rail-list > li .penm-nav-label > span{ font-size: 14px; text-align: center; color:#2c344e; }
.penm-nav-rail .penm-nav-rail-list > li:hover{ background:#3f4b6f; border-color:#3f4b6f; cursor: pointer; }
.penm-nav-rail .penm-nav-rail-list > li:hover .penm-nav-label > span{ color:#ffffff; }

/* 레일 타이틀(인기브랜드) */
.penm_top_brand_title{
  background:#3f4b6f !important; border:1px solid #3f4b6f !important; color:#ffffff !important;
  height:48px; display:flex; align-items:center;
}
.penm_top_brand_title > a{ display:block; width:100%; }
.penm_top_brand_title:hover { background-color: #2c344e !important; cursor: pointer; }
.penm_top_brand_title .penm-nav-label{ width:100%; box-sizing:border-box; display:flex; align-items:center; justify-content:center; padding:0 12px; text-align:center; }
.penm_top_brand_title .penm-nav-label > span{ color:#ffffff !important; font-weight:700; }
.penm-brand-toggle-icon{ margin-left:10px; transition: transform .2s ease; color:#ffffff; } /* 아이콘 색 대비 확보 */
.penm-nav-rail-list.penm-rail-collapsed > li:not(.penm_top_brand_title){ display:none; }
.penm-nav-rail-list.penm-rail-collapsed .penm-brand-toggle-icon{ transform:rotate(180deg); }

/* ========== ★ 레거시 브랜드 팝업 스타일 제거(무효화) ========== */
/* (중요) 레거시 팝업 레이아웃/보이기 규칙은 삭제했으며, 새 디자인만 사용 */

/* ========== 새 브랜드 팝업 디자인(브랜드 레일용) ========== */
/* 기본: 보이되 투명/비활성 → hover 시 활성화 */
.penm-nav-rail .penm-nav-rail-list > li .penm-nav-pop{
  position: absolute; left: 140px; top: 0; width: 320px;
  background: #ffffff; border: 1px solid #ddd;
  z-index: 1000;
  opacity: 0; transform: translateY(-5px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
/* li 전체 hover 시 팝업 표시 (display 토글 없이 트랜지션만) */
.penm-nav-rail .penm-nav-rail-list > li:hover .penm-nav-pop{
  opacity: 1; transform: translateY(0); pointer-events: auto;
}

.penm-nav-pop-box { background: #ffffff; position: relative; }

/* 1) 브랜드 헤더 */
.penm-nav-pop-titlewrap{
  padding: 8px 15px 6px 15px; border-bottom: 1px solid #eee; position: relative;
}
.penm-nav-pop-title{ font-size: 18px; font-weight: 700; color: #333; margin-bottom: 2px; line-height: 1.2; display: block; }
.penm-nav-pop-desc{ font-size: 12px; color: #666; line-height: 1.2; margin: 0; padding: 0; border: none; display: block; }
.penm-nav-pop-more{
  position: absolute; top: 8px; right: 15px;
  font-size: 11px; color: #666; text-decoration: none; padding-top: 0;
}
.penm-nav-pop-more:hover{ color: #25a2d0; }

/* 2) 카테고리 메뉴(가로 그리드) */
.penm-nav-category-section{ padding: 6px 15px; border-bottom: 1px solid #eee; }
.penm-nav-category-grid{ display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2px 8px; }
.penm-nav-category-item{ font-size: 12px; }
.penm-nav-category-item a{
  display: block; padding: 2px 6px; color: #555; text-decoration: none;
  transition: all .15s ease; line-height: 1.35; font-size: 13px;
}
.penm-nav-category-item a::before{ content: '·'; color: #c8d5ff; font-weight: bold; margin-right: 4px; }
.penm-nav-category-item a:hover{ color: #c8d5ff; background-color: #f8f9fa; }

/* 3) 브랜드 이미지 */
.penm-nav-image-section{ padding: 6px 15px; border-bottom: 1px solid #eee; text-align: center; }
.penm-nav-brand-image{
  width: 100%; height: 120px; border: 1px solid #f0f0f0; background: #fafafa;
  display: flex; align-items: center; justify-content: center;
}
.penm-nav-brand-image img{ max-width: 90%; max-height: 100%; object-fit: contain; }

/* 4) 추천 태그 */
.penm-nav-pop .penm-nav-tags{
  padding: 10px 15px 10px 15px; border-top: none; position: relative; padding-top: 10px;
  width: 100%; right: auto; bottom: auto; text-align: left; font-weight: 400;
}
.penm-nav-pop .penm-nav-tags p{ margin: 0; display: flex; flex-wrap: wrap; gap: 8px 6px; }
.penm-nav-pop .penm-nav-tags a{ text-decoration: none; margin-left: 0; }
.penm-nav-pop .penm-nav-tags a span{
  background: #f5f5f5; 
  color: #666; 
  padding: 3px 8px; 
  font-size: 12px;
  border: 1px solid #e0e0e0; 
  transition: all .15s ease; 
  white-space: nowrap;
  line-height: 1.4; 
  border-radius: 0; 
  margin-left: 0;
  display: inline-flex;
  align-items: center;
}
.penm-nav-pop .penm-nav-tags a span:hover{ background: #e8f4f8; color: #c8d5ff; border-color: #c8d5ff; }
.penm-nav-bar .penm-nav-toggle .penm-nav-toggle-btn{
  display: grid;
  grid-template-columns: 1fr 20px;
  align-items: center;
  height: 50px;
  line-height: 1;
  text-align: left;
  padding: 0 8px;
  box-sizing: border-box;
}

.penm-nav-bar .penm-nav-toggle .penm-nav-catlabel{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  line-height: 1;
  font-size: 16px;
  font-weight: 500;
  padding: 0 4px;
}

.penm-nav-bar .penm-nav-toggle .penm-nav-toggle-btn i{
  justify-self: end;
  width: 20px; 
  line-height: 1;
  text-align: center;
  transform-origin: 50% 50%;
  transition: transform .18s ease;
}

.penm-nav-bar .penm-nav-toggle.is-open .penm-nav-toggle-btn i{
  transform: rotate(45deg);
}

/* ========== 스크롤 시 상단 고정(네비 바만) ========== */
.penm-nav-bar{
  position: sticky; position: -webkit-sticky; top: 0; z-index: 2000;
}
/* ========== 네비게이션 메뉴 바 스타일 끝 ========== */     
  
  
    /* ========== 푸터 스타일 시작 ========== */
        .penm-footer {
            background-color: #f8f8f8;
            border-top: 1px solid #e0e0e0;
            margin-top: 80px;
        }

        .penm-footer-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* 푸터 상단 네비게이션 */
        .penm-footer-top {
            border-bottom: 1px solid #e0e0e0;
            padding: 20px 0;
            background-color: #f0f0f0;
        }

        .penm-footer-nav {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: flex-start;
        }

        .penm-footer-nav a {
            font-size: 13px;
            color: #666;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .penm-footer-nav a:hover {
            color: #3f4b6f;
        }

        /* 푸터 메인 영역 */
        .penm-footer-main {
            padding: 40px 0;
        }

        .penm-footer-content {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 50px;
        }

        /* 고객센터 정보 */
        .penm-cs-title,
        .penm-bank-title,
        .penm-info-title {
            font-size: 16px;
            font-weight: 700;
            color: #403F6F;
            margin-bottom: 15px;
        }

        .penm-cs-phone {
            font-size: 24px;
            font-weight: 700;
            color: #3f4b6f;
            margin-bottom: 10px;
        }

        .penm-cs-hours p {
            font-size: 13px;
            color: #666;
            line-height: 1.4;
            margin-bottom: 3px;
        }

        /* 계좌이체 정보 */
        .penm-bank-info p {
            font-size: 13px;
            color: #666;
            line-height: 1.4;
            margin-bottom: 3px;
        }

        /* 쇼핑정보 링크 */
        .penm-info-links {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .penm-info-links a {
            font-size: 13px;
            color: #666;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .penm-info-links a:hover {
            color: #3f4b6f;
        }

        /* 푸터 하단 영역 */
        .penm-footer-bottom {
            border-top: 1px solid #e0e0e0;
            padding: 30px 0;
            background-color: #f0f0f0;
        }

        .penm-footer-company-info {
            margin-bottom: 15px;
        }

        .penm-footer-company-info p {
            font-size: 12px;
            color: #666;
            line-height: 1.5;
            margin-bottom: 5px;
        }

        .penm-footer-copyright p {
            font-size: 11px;
            color: #999;
            line-height: 1.4;
            margin-bottom: 3px;
            text-align: center;
        }

        /* 푸터 모바일 반응형 */
        @media (max-width: 768px) {
            .penm-footer-content {
                grid-template-columns: 1fr;
                gap: 30px;
            }

            .penm-cs-phone {
                font-size: 20px;
            }

            .penm-footer-nav {
                gap: 15px;
            }

            .penm-footer-nav a {
                font-size: 12px;
            }
        }

        @media (max-width: 480px) {
            .penm-footer-main {
                padding: 30px 0;
            }

            .penm-footer-bottom {
                padding: 20px 0;
            }

            .penm-footer-container {
                padding: 0 15px;
            }

            .penm-cs-phone {
                font-size: 18px;
            }

            .penm-footer-nav {
                gap: 10px;
            }
        }
        /* ========== 푸터 스타일 끝 ========== */

        /* 공통 섹션 스타일 */
        .penm-section-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .penm-section-header {
            text-align: center;
            margin-bottom: 50px;
            position: relative;
        }

        .penm-section-title {
            font-size: 36px;
            font-weight: 700;
            color: #403F6F;
            margin-bottom: 15px;
        }

        .penm-section-subtitle {
            font-size: 16px;
            color: #666;
            margin-bottom: 20px;
        }

        .penm-more-btn {
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            color: #403F6F;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: color 0.3s ease;
        }

        .penm-more-btn:hover {
            color: #3f4b6f;
        }

        .penm-more-btn i {
            margin-left: 5px;
            font-size: 12px;
        }
        
        
        /* 카탈로그 하단 푸터 */
.penm-m-catalog .penm-m-cat-footer{
  padding:10px 16px 14px;
  text-align:right;                /* 필요하면 center로 변경 */
  border-top:1px solid rgba(0,0,0,.06);
}

/* 작은 텍스트 링크 스타일 */
.penm-m-catalog .penm-m-cat-logout-link{
  font-size:12px;
  line-height:1;
  color:#2c344e;                   /* 펜마 네이비 계열 */
  text-decoration:none;
  opacity:.8;
}
.penm-m-catalog .penm-m-cat-logout-link:hover{
  text-decoration:underline;
  opacity:1;
}
.penm-m-catalog .penm-m-cat-logout-link:focus{
  outline:2px solid #c8d5ff;
  outline-offset:2px;
}




/* ===== 모바일 서브메뉴 전면 팝업 ===== */
.penm-m-submenu{
  position: fixed; inset: 0; z-index: 4800;
  display: none; pointer-events: none;
}
.penm-m-submenu.is-open{ display:block; pointer-events:auto; }

.penm-m-submenu__backdrop{
  position:absolute; inset:0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(2px);
}

.penm-m-submenu__panel{
  position:absolute; inset:0;
  display:flex; flex-direction:column; align-items:center;
  padding:12px 18px 28px;
  box-sizing:border-box;
}

.penm-m-submenu__close{
  position:absolute; top:10px; right:8px;
  background:transparent; border:0; font-size:26px; color:#2c344e;
  line-height:1; width:40px; height:40px; display:flex; align-items:center; justify-content:center;
}

/* ---- 타이틀 + 밑줄(단일) ---- */
.penm-m-submenu__title{
  position: relative;
  margin: 12px 0 26px;
  font-size: 18px; font-weight: 800; letter-spacing: -0.3px; color:#2c344e;
  text-align:center;
}
.penm-m-submenu__title::after{
  content:"";
  position:absolute; left:50%; transform:translateX(-50%);
  bottom:-12px;
  height:1px; width:72px;
  background:#3f4b6f; /* 진한 네이비 한 줄만 */
}

/* ---- 서브메뉴 리스트: 위/아래 선만 있는 라인 스타일 ---- */
.penm-m-submenu__list{
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  width: 100%;
  max-width: 560px;
  display: flex; flex-direction: column; align-items: center;
}

.penm-m-submenu__list li{
  width:100%;
}

.penm-m-submenu__list a{
  display:block; width:100%;
  padding: 14px 10px;
  text-decoration:none; text-align:center;
  font-size: 15px;                /* 타이틀(18px)보다 작게 */
  font-weight: 700;
  color:#2c344e;
  background: transparent;
  border: 0;
  border-top: 1px solid #e9ecf4;
  border-bottom: 1px solid #e9ecf4;
  border-radius: 0;
}

/* 첫/마지막 항목 라인 강조 */
.penm-m-submenu__list li:first-child a{ border-top: 2px solid #e4eaff; }
.penm-m-submenu__list li:last-child  a{ border-bottom: 2px solid #e4eaff; }

/* 호버/액티브 */
.penm-m-submenu__list a:hover{
  color:#3f4b6f;
  border-bottom-color:#c8d5ff;
}
.penm-m-submenu__list a:active{
  transform:none;
  color:#403F6F;
  border-bottom-color:#3f4b6f;
}

/* 모션 최소화 */
@media (prefers-reduced-motion: reduce){
  .penm-m-submenu__list a{ transition:none; }
}
/* BASIC css end */

