/* BASIC css start */
* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            line-height: 1.6;
        }
        /* 상단 유틸리티 바 */
        .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: 90px; 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: 80px; 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 0px;         /* 좌우 여백 유지 */
  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: 12px; 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 0px; text-align:center; }
.penm_top_brand_title .penm-nav-label > span{ color:#ffffff !important; font-weight:700; }
.penm-brand-toggle-icon{ margin-left:5px; 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: 80px; 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;
        }

        /* ========== 메인 섹션들 시작 ========== */

/* ========== 공통 변수 ========== */
:root{
  --penm-thumb-h-desktop: 260px;
  --penm-thumb-h-tablet: 200px;
  --penm-thumb-h-mobile: 160px;
}

/* ========== HOT Brand 섹션 ========== */
.penm-hot-brand-section {
  background-color: #fafafa;
  padding: 80px 0;
  border-bottom: 1px solid #f0f0f0;
}
.penm-brand-products{ padding: 0 10px; }

.penm-brand-tags {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.penm-brand-tag {
  padding: 10px 20px;
  border: 1px solid #e4eaff;
  border-radius: 25px;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.penm-brand-tag:hover,
.penm-brand-tag.penm-active {
  background-color: #403F6F;
  color: #fff;
  border-color: #403F6F;
}

.penm-brand-product-grid {
  display: none;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 30px;
}
.penm-brand-product-grid.penm-active { display: grid; }

.penm-section-more { text-align: center; margin-top: 40px; }
.penm-more-link{
  display:inline-block; padding:12px 30px; border:1px solid #403F6F;
  color:#403F6F; text-decoration:none; border-radius:25px; font-weight:500; transition:.3s;
}
.penm-more-link:hover{ background:#403F6F; color:#fff; }

/* ========== 추천 상품(펜마스터 컬렉션) ========== */
.penm-recommend-section { background:#fafafa; padding:100px 0; }

.penm-recommend-tabs{
  display:flex; justify-content:center; gap:40px; margin-bottom:50px;
}
.penm-tab-content { padding: 0 10px; }
.penm-tab-btn{
  background:none; border:none; padding:15px 0; color:#666; font-size:18px; font-weight:600;
  cursor:pointer; position:relative; transition:color .3s ease; letter-spacing:-.5px;
}
.penm-tab-btn:hover, .penm-tab-btn.penm-active{ color:#403F6F; }
.penm-tab-btn.penm-active::after{
  content:''; position:absolute; bottom:0; left:0; right:0; height:3px; background:#403F6F;
}

.penm-tab-pane{ display:none; }
.penm-tab-pane.penm-active{ display:block; }

.penm-product-grid-2row{
  display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:20px;
}
.penm-product-item, .penm-product-info{ min-width:0; }

/* ========== 인기/신상품 공통 그리드 ========== */
.penm-popular-section{ background:#fff; padding:100px 0; }
.penm-new-section{ background:#fff; padding:100px 0; }

.penm-product-grid{
  padding: 0 10px; display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:20px;
}

/* ========== 상품 카드 공통 ========== */
.penm-product-item{ transition:transform .3s ease; }
.penm-product-item:hover{ transform: translateY(-5px); }

/* --- 썸네일: 확대/자르기 방지 (HOT/RECO/POPULAR/NEW) --- */
.penm-hot-brand-section .penm-product-thumb,
.penm-recommend-section .penm-product-thumb,
.penm-popular-section .penm-product-thumb,
.penm-new-section .penm-product-thumb{
  position:relative; overflow:hidden; background:#fff; margin-bottom:15px;

  /* aspect-ratio 제거, 고정 높이 + 중앙정렬 */
  width:100%;
  height: var(--penm-thumb-h-desktop);
  display:flex; align-items:center; justify-content:center;
}

/* 이미지: contain + 잔재 리셋 */
.penm-hot-brand-section .penm-product-thumb > img,
.penm-recommend-section .penm-product-thumb > img,
.penm-popular-section .penm-product-thumb > img,
.penm-new-section .penm-product-thumb > img{
  max-width:100% !important;
  max-height:100% !important;
  width:auto !important;
  height:auto !important;
  object-fit:contain !important;
  object-position:center center !important;
  position:static !important;
  transform:none !important;
  display:block;
}

/* 섹션들에서 이미지 확대 호버 제거 */
.penm-hot-brand-section .penm-product-item:hover .penm-product-thumb > img,
.penm-recommend-section .penm-product-item:hover .penm-product-thumb > img,
.penm-popular-section .penm-product-item:hover .penm-product-thumb > img,
.penm-new-section .penm-product-item:hover .penm-product-thumb > img{
  transform:none !important;
}

/* 롤오버 이미지 클래스가 있을 경우도 동일 처리 */
.penm-hot-brand-section .penm-product-thumb img.rollover,
.penm-recommend-section .penm-product-thumb img.rollover,
.penm-popular-section .penm-product-thumb img.rollover,
.penm-new-section .penm-product-thumb img.rollover{
  max-width:100% !important; max-height:100% !important;
  width:auto !important; height:auto !important;
  object-fit:contain !important; position:static !important; transform:none !important;
}

/* 배지 */
.penm-product-badge{
  position:absolute; top:12px; right:12px; padding:8px 12px; font-size:14px; font-weight:700; color:#fff;
}
.penm-badge-popular{ background:#3f4b6f; }
.penm-badge-new{ background:#403F6F; }
.penm-badge-sale{ background:#403F6F; }

/* 정보 */
.penm-product-info{ text-align:left; }
.penm-product-info img, .penm-product-price img{ max-width:100%; height:auto; }

.penm-brand-name{
  font-size:14px; font-weight:600; color:#999; margin-bottom:8px; letter-spacing:.5px; text-transform:uppercase;
}
.penm-product-name{
  font-size:18px;
  font-weight:600;
  color:#333;
  margin-bottom:12px;
  line-height:1.4;
  letter-spacing:-.5px;

  white-space: normal;
  overflow: visible;
  text-overflow: unset;

  min-height: 2.8em; /* 1.4 x 2줄 */
  word-break: keep-all;
}
.penm-product-price{ display:flex; flex-direction:column; gap:4px; }
.penm-original-price{ font-size:15px; color:#999; text-decoration:line-through; font-weight:400; }
.penm-sale-price{ font-size:20px; font-weight:700; color:#403F6F; letter-spacing:-.5px; }
.penm-product-price, .penm-product-price span{
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}

/* ========== 고객 후기 섹션 ========== */
.penm-review-section{ background:#fafafa; padding:80px 0; }
.penm-review-grid{ padding: 0 10px; display:grid; grid-template-columns:repeat(4,1fr); gap:25px; }
.penm-review-item{
  background:#fff; border-radius:12px; box-shadow:0 2px 15px rgba(0,0,0,.08);
  overflow:hidden; transition:all .3s ease;
}
.penm-review-item:hover{ transform:translateY(-5px); box-shadow:0 8px 25px rgba(0,0,0,.15); }
.penm-review-image{ position:relative; width:100%; height:200px; overflow:hidden; }
.penm-review-photo{ width:100%; height:100%; object-fit:cover; transition:transform .3s ease; }
.penm-review-item:hover .penm-review-photo{ transform:scale(1.05); }
.penm-review-content{ padding:20px; }
.penm-review-stars{ margin-bottom:12px; }
.penm-review-stars i{ color:#FFD700; margin-right:2px; font-size:14px; }
.penm-review-text{
  font-size:14px; line-height:1.5; color:#333; margin-bottom:15px;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.penm-review-author{ font-size:13px; font-weight:600; color:#403F6F; margin-bottom:4px; }
.penm-review-product{ font-size:11px; color:#999; }
.penm-review-bottom{ text-align:center; margin-top:40px; }
.penm-review-more-btn{
  display:inline-block; padding:15px 40px; background:#403F6F; color:#fff; text-decoration:none; border-radius:30px;
  font-size:16px; font-weight:600; transition:all .3s ease; box-shadow:0 4px 15px rgba(64,63,111,.2);
}
.penm-review-more-btn:hover{
  background:#3f4b6f; transform:translateY(-2px); box-shadow:0 6px 20px rgba(64,63,111,.3);
}

/* ========== 카테고리 메뉴 섹션(원본 유지) ========== */
.penm-category-section{ background:#fff; padding:80px 20px; border-bottom:1px solid #f0f0f0; }
.penm-category-container{ max-width:1200px; margin:0 auto; }
.penm-category-grid{
  display:grid; grid-template-columns:repeat(6,1fr); gap:30px 20px; justify-items:center; max-width:900px; margin:0 auto;
}
.penm-category-item{ text-align:center; }
.penm-category-link{ display:flex; flex-direction:column; align-items:center; text-decoration:none; color:#333; transition:.3s; }
.penm-category-link:hover{ transform:translateY(-5px); }
.penm-category-icon{
  width:100px; height:100px; border-radius:50%; background:#f8f6f4; display:flex; align-items:center; justify-content:center;
  margin-bottom:18px; box-shadow:0 2px 8px rgba(0,0,0,.05); border:1px solid #f0ede9; transition:.3s;
}
.penm-category-icon::before{ display:none; }
.penm-category-icon .category-icon-img{ font-size:38px; color:#403F6F; transition:.3s; }
.category-icon-img{ width:80px; height:auto; }
.penm-category-link:hover .penm-category-icon{
  transform:scale(1.05); background:#f5f2ee; box-shadow:0 4px 12px rgba(64,63,111,.15); border-color:#f0ede9;
}
.penm-category-link:hover .penm-category-icon .category-icon-img{ color:#3f4b6f; }
.penm-category-name{ font-size:16px; font-weight:500; color:#403F6F; transition:color .3s ease; letter-spacing:-.5px; }
.penm-category-link:hover .penm-category-name{ color:#3f4b6f; font-weight:600; }

/* ========== 메인 배너 슬라이더 ========== */

/* 전체폭 섹션이지만 실제 컨텐츠(1920x600)는 화면 중앙 고정 */
:root{
  --pm-banner-w: 1920px;   /* 배너 원본 폭 */
  --pm-banner-h: 600px;    /* 배너 원본 높이 */
}

/* 전체폭 섹션이지만 실제 컨텐츠(1920x600)는 화면 중앙 고정 */
.penm-main-slider{
  position: relative;
  width: 100vw;
  height: var(--pm-banner-h);
  overflow: hidden;
  left: 50%;
  margin-left: -50vw; /* 풀블리드 */
  background: #f8f8f8;
  z-index: 1;
}

/* 1920x600 컨텐츠 박스를 화면 중앙에 고정 */
.penm-main-slider .penm-slider-container{
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--pm-banner-w);
  height: var(--pm-banner-h);
  margin-left: -940px;
  overflow: hidden;
}

.penm-main-slider .penm-slider-wrapper{
  position: relative;
  width: 100%;
  height: 100%;
}

/* 페이드 슬라이드 */
.penm-main-slider .penm-slide{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease-in-out;
}
.penm-main-slider .penm-slide.penm-slide-active{
  opacity: 1;
  pointer-events: auto;
}

/* 배너 링크(이미지 감싸기) */
.penm-main-slider .penm-slide-link{
  display: block;
  line-height: 0;         /* 인라인 갭 제거 */
  border-radius: 0;
}
.penm-main-slider .penm-slide-link:focus-visible{
  outline: 2px solid rgba(255,255,255,.9);
  outline-offset: 4px;
  border-radius: 6px;
}

.penm-main-slider .penm-slide img{
  display: block;
  width: var(--pm-banner-w) !important;
  height: var(--pm-banner-h) !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
}

/* 네비게이션 */
.penm-main-slider .penm-slider-nav{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: min(var(--pm-banner-w), 100vw);
  padding-left: 180px;   /* 필요시 조절 */
  padding-right: 180px;  /* 필요시 조절 */
  display: flex;
  justify-content: space-between;
  z-index: 3;
  pointer-events: none;  /* 버튼만 클릭 허용 */
  opacity: 0;
  transition: opacity .25s ease;
}
.penm-main-slider:hover .penm-slider-nav{ opacity: 1; }

.penm-main-slider .penm-slider-prev,
.penm-main-slider .penm-slider-next{
  background: rgba(0,0,0,.25);
  color: #fff;
  border: 0;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  cursor: pointer;
  pointer-events: all;   /* 버튼 활성 */
  transition: transform .2s ease, background .2s ease;
  backdrop-filter: blur(6px);
}
.penm-main-slider .penm-slider-prev:hover,
.penm-main-slider .penm-slider-next:hover{
  background: rgba(90,90,90,.8);
  transform: scale(1.06);
}

/* 인디케이터 */
.penm-main-slider .penm-slider-indicators{
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(var(--pm-banner-w), 100vw);
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}
.penm-main-slider .penm-indicator{
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(0,0,0,.75);
  border: 0;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, width .2s ease;
}
.penm-main-slider .penm-indicator.penm-indicator-active{
  background: rgba(255,255,255,.4);
  width: 18px;
  border-radius: 9px;
}
.penm-main-slider .penm-indicator:hover{ transform: scale(1.08); }

@media (prefers-reduced-motion: reduce){
  .penm-main-slider .penm-slide,
  .penm-main-slider .penm-slider-nav,
  .penm-main-slider .penm-indicator{ transition: none; }
}

/* ========== 프로모션 배너(오프셋 모자이크) ========== */
.penm-offset-section { margin:120px 0 130px; position:relative; --penm-gap:20px; --penm-row:290px; }
.penm-offset-container { width:1200px; margin:0 auto; position:relative; padding: 0 30px; }
@media (max-width:1240px){ .penm-offset-container{ width:95%; max-width:1200px; } }
.penm-offset-grid{ display:grid; grid-template-columns:repeat(3,1fr); grid-auto-rows:var(--penm-row); gap:var(--penm-gap); }
.penm-card, .penm-hero{
  position:relative; overflow:hidden; border-radius:0; box-shadow:0 2px 12px rgba(0,0,0,.06);
}
.penm-card img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.penm-card:hover img{ transform:scale(1.04); }
.penm-hero{ grid-column:1 / span 2; grid-row:1 / span 2; }
.penm-s1{ grid-column:3; grid-row:1; }
.penm-s2{ grid-column:3; grid-row:2; }
.penm-wide{ grid-column:1 / -1; grid-row:3; min-height:calc(var(--penm-row) * .8); }
#penm-hero{ position:relative; overflow:hidden; width:100%; height:100%; }
#penm-hero .penm-sub-slider-container{ position:relative; width:100%; height:100%; overflow:hidden; }
#penm-hero .penm-sub-slider-wrapper{ display:flex; width:300%; height:100%; transition:transform .5s ease; }
#penm-hero .penm-sub-slide{ width:33.333%; height:100%; flex-shrink:0; }
#penm-hero .penm-sub-slide img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
#penm-hero:hover .penm-sub-slide img{ transform:scale(1.05); }
#penm-hero .penm-sub-slider-controls{ position:absolute; top:50%; transform:translateY(-50%); z-index:10; opacity:0; transition:opacity .3s; }
#penm-hero:hover .penm-sub-slider-controls{ opacity:1; }
#penm-hero .penm-sub-control-btn{
  background:rgba(0,0,0,.25); border:0; border-radius:50%; width:40px; height:40px; color:#fff; font-size:18px;
  cursor:pointer; display:flex; align-items:center; justify-content:center; transition:.3s;
}
#penm-hero .penm-sub-control-btn:hover{ background:rgba(90,90,90,.8); }
#penm-hero .penm-sub-prev-btn{ left:12px; }
#penm-hero .penm-sub-next-btn{ right:12px; }
#penm-hero .penm-sub-slider-indicators{
  position:absolute; bottom:20px; left:50%; transform:translateX(-50%); display:flex; gap:4px; z-index:10;
}
#penm-hero .penm-sub-indicator{ width:14px; height:3px; background:#bbb; border:0; cursor:pointer; transition:.3s; }
#penm-hero .penm-sub-indicator.penm-sub-active{ width:25px; background:rgba(0,0,0,.7); }
#penm-hero .penm-sub-slide a{ display:block; width:100%; height:100%; }

/* ========== MD’s PICK ========== */
.penm-mdpick-section{ background:#403F6F; padding:60px 20px; margin:0 auto; }
.penm-mdpick-container{
  max-width:1200px; margin:0 auto; display:grid; grid-template-columns:20% 80%; gap:25px; align-items:center;
}
.penm-mdpick-text-area{ text-align:left; color:#fff; margin-left:25px; }
.penm-mdpick-title{ font-size:36px; font-weight:700; color:#e4eaff; margin-bottom:15px; letter-spacing:-1.5px; }
.penm-mdpick-subtitle{ font-size:18px; font-weight:300; color:#c8d5ff; margin-bottom:35px; line-height:1.6; letter-spacing:-.5px; }
.penm-mdpick-view-all{
  display:inline-block; background:transparent; color:#fff; padding:12px 30px; font-size:16px; font-weight:500;
  text-decoration:none; border:1px solid #fff; transition:.3s; letter-spacing:-.3px;
}
.penm-mdpick-view-all:hover{ background:#fff; color:#403F6F; border-color:#fff; }
.penm-mdpick-slider-area{ position:relative; padding:30px; background:#e4eaff; margin-left:20px; }
.penm-mdpick-swiper{ overflow:hidden; position:relative; }
.penm-mdpick-swiper-wrapper{ display:flex; transition:transform .3s ease; padding-right:50px; }
.penm-mdpick-slide{ flex:0 0 25%; padding:0 10px; position:relative; }
.penm-mdpick-thumb{
  position:relative; overflow:hidden; background:#fff; margin-bottom:15px;
  width:100%; height:250px; max-width:250px; aspect-ratio:1/1;
}
.penm-mdpick-thumb img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .5s; }
.penm-mdpick-thumb:hover img{ transform:scale(1.1); }
.penm-mdpick-preview{
  position:absolute; bottom:15px; right:15px; width:40px; height:40px; background:rgba(64,63,111,.9);
  border-radius:50%; display:none; align-items:center; justify-content:center; transition:.3s;
}
.penm-mdpick-preview i{ color:#fff; font-size:18px; }
.penm-mdpick-thumb:hover .penm-mdpick-preview{ display:flex; }
.penm-mdpick-preview:hover{ background:#e4eaff; }
.penm-mdpick-preview:hover i{ color:#403F6F; }
.penm-mdpick-info{ text-align:left; }
.penm-mdpick-name{
  color:#333; font-size:15px; font-weight:500; line-height:1.4; margin-bottom:8px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:200px;
}
.penm-mdpick-price{ color:#222; font-size:18px; font-weight:600; line-height:1.4; margin-bottom:5px; }
.penm-mdpick-price .penm-price-unit{ font-size:14px; font-weight:400; }
.penm-mdpick-price del{ color:#999; font-size:14px; font-weight:400; margin-left:8px; }
.penm-mdpick-discount{ color:#403F6F; font-size:16px; font-weight:700; margin-right:8px; }
.penm-mdpick-nav-btn{
  position:absolute; top:50%; transform:translateY(-50%); width:50px; height:50px; background:rgba(255,255,255,.9);
  border:none; border-radius:50%; display:flex; align-items:center; justify-content:center; cursor:pointer; z-index:10;
  transition:.3s; box-shadow:0 4px 12px rgba(0,0,0,.15);
}
.penm-mdpick-nav-btn:hover{ background:#fff; box-shadow:0 6px 20px rgba(0,0,0,.25); }
.penm-mdpick-nav-btn i{ font-size:20px; color:#403F6F; }
.penm-mdpick-prev{ left:0; } .penm-mdpick-next{ right:0; }
.penm-mdpick-nav-btn:disabled{ opacity:.3; cursor:not-allowed; }
.penm-mdpick-scrollbar{ position:absolute; bottom:-15px; left:0; width:100%; height:3px; background:rgba(64,63,111,.2); }
.penm-mdpick-scrollbar-thumb{ height:100%; background:#403F6F; transition:.3s; }

/* ========== 반응형(공통) ========== */
@media (max-width: 1024px){
  /* 썸네일 높이 축소 */
  .penm-hot-brand-section .penm-product-thumb,
  .penm-recommend-section .penm-product-thumb,
  .penm-popular-section .penm-product-thumb,
  .penm-new-section .penm-product-thumb{ height: var(--penm-thumb-h-tablet); }

  .penm-brand-product-grid{ grid-template-columns:repeat(3, minmax(0,1fr)); }
  .penm-product-grid, .penm-product-grid-2row{ grid-template-columns:repeat(3, minmax(0,1fr)); }
}

@media (max-width: 768px){
  /* 썸네일 높이 축소 */
  .penm-hot-brand-section .penm-product-thumb,
  .penm-recommend-section .penm-product-thumb,
  .penm-popular-section .penm-product-thumb,
  .penm-new-section .penm-product-thumb{ height: var(--penm-thumb-h-mobile); }

  .penm-brand-product-grid,
  .penm-product-grid, .penm-product-grid-2row{ grid-template-columns:repeat(2, minmax(0,1fr)); gap:20px; }

  .penm-review-section, .penm-popular-section, .penm-new-section{ padding:60px 0; }
  .penm-review-grid{ grid-template-columns:repeat(2,1fr); gap:20px; }
  .penm-review-image{ height:180px; }
  .penm-review-content{ padding:18px; }
  .penm-review-text{ font-size:13px; -webkit-line-clamp:2; }

  .penm-category-section{ padding:50px 15px; }
  .penm-category-grid{ grid-template-columns:repeat(3,1fr); grid-template-rows:repeat(4,1fr); gap:25px 15px; max-width:600px; }

  .penm-main-slider{ height:400px; }
  .penm-slide-content h2{ font-size:32px; margin-bottom:15px; }
  .penm-slide-content p{ font-size:16px; margin-bottom:25px; }
  .penm-slide-btn{ padding:12px 28px; font-size:14px; }
  .penm-slider-nav{ padding:0 20px; }
  .penm-slider-prev, .penm-slider-next{ width:45px; height:45px; font-size:16px; }

  .penm-mdpick-container{ grid-template-columns:1fr; gap:30px; }
  .penm-mdpick-title{ font-size:28px; }
  .penm-mdpick-subtitle{ font-size:14px; }
  .penm-mdpick-slider-area{ margin-left:0; padding:25px 20px; }
  .penm-mdpick-slide{ flex:0 0 50%; }
  .penm-mdpick-thumb{ height:150px; }
  .penm-mdpick-nav-btn{ width:40px; height:40px; }
  .penm-mdpick-nav-btn i{ font-size:16px; }
}

@media (max-width: 480px){
  .penm-brand-product-grid,
  .penm-product-grid, .penm-product-grid-2row{ grid-template-columns:1fr; gap:15px; }

  .penm-review-grid{ grid-template-columns:1fr; gap:15px; }
  .penm-review-image{ height:160px; }
  .penm-review-content{ padding:15px; }
  .penm-review-text{ font-size:12px; }
  .penm-review-author{ font-size:12px; }
  .penm-review-product{ font-size:10px; }

  .penm-category-section{ padding:40px 10px; }
  .penm-category-grid{ grid-template-columns:repeat(2,1fr); grid-template-rows:repeat(6,1fr); gap:20px 10px; max-width:400px; }
  .penm-category-icon{ width:65px; height:65px; margin-bottom:10px; }
  .penm-category-icon .category-icon-img{ font-size:24px; }
  .penm-category-name{ font-size:13px; }

  .penm-main-slider{ height:350px; }
  .penm-slide-content{ padding:0 15px; max-width:400px; }
  .penm-slide-content h2{ font-size:28px; }
  .penm-slide-content p{ font-size:14px; }
  .penm-slide-btn{ padding:10px 24px; font-size:13px; }
  .penm-slider-prev, .penm-slider-next{ width:40px; height:40px; font-size:14px; }
  .penm-slider-indicators{ bottom:20px; gap:12px; }
  .penm-indicator{ width:10px; height:10px; }

  .penm-mdpick-section{ padding:40px 15px; }
  .penm-mdpick-slider-area{ padding:20px 15px; }
  .penm-mdpick-slide{ flex:0 0 100%; }
  .penm-mdpick-thumb{ height:180px; }
  .penm-mdpick-title{ font-size:24px; }
}

/* =========================
   [공통] 상품 썸네일 베이스
   ========================= */
.penm-product-thumb{
  position: relative;
  overflow: hidden;
  background:#fff;
  margin-bottom: 15px;

  /* 정사각 기본 프레임(필요시 조정) */
  aspect-ratio: 1/1;
  display: flex;            /* 가운데 정렬 */
  align-items: center;
  justify-content: center;
}

/* 공통 이미지 기본값: contain(크롭 방지) */
.penm-product-thumb img.penm-product-img{
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  position: static !important;   /* 예전 absolute 강제되던 케이스 리셋 */
  transform: none !important;
}

/* 공통 hover 살짝 상승만, 이미지 확대는 X */
.penm-product-item{ transition: transform .3s ease; }
.penm-product-item:hover{ transform: translateY(-5px); }
.penm-product-item:hover .penm-product-img{ transform: none !important; }

/* =========================
   [핫브랜드 전용] MD's PICK과 동일한 시각 크기
   ========================= */
.penm-hot-brand-section .penm-product-thumb{
  width: 100%;
  max-width: 250px;   /* 카드 폭 제한이 필요하면 유지 */
  height: 250px;      /* MD's PICK과 동일한 고정 높이 */
  aspect-ratio: auto; /* 고정 높이를 쓰므로 비활성화 */
}

/* a 안에 img가 있으므로 '>' 제거해서 정확히 매칭 */
.penm-hot-brand-section .penm-product-thumb .penm-product-img{
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  position: static !important;
  transform: none !important;
}

/* 핫브랜드 섹션에서만 이미지 확대 효과 완전 차단 */
.penm-hot-brand-section .penm-product-item:hover .penm-product-img{
  transform: none !important;
}

/* 혹시 롤오버 이미지를 쓰는 테마 잔재가 있으면 같이 리셋 */
.penm-product-thumb img.rollover,
.penm-product-thumb .rollover img{
  position: static !important;
  transform: none !important;
  object-fit: contain !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
}


/* 썸네일 안의 a 래퍼가 이미지를 늘리지 않도록 */
.penm-product-thumb > a { display:flex; align-items:center; justify-content:center; width:100%; height:100%; }

/* 테마의 전역 규칙이 다시 cover로 덮지 못하도록 재보강 */
.penm-product-thumb a img.penm-product-img { object-fit: contain !important; }

/* 1) 썸네일 박스 고정 높이 (데스크탑 기준) */
.penm-hot-brand-section .penm-product-thumb,
.penm-recommend-section .penm-product-thumb,
.penm-popular-section .penm-product-thumb,
.penm-new-section .penm-product-thumb{
  width: 100%;
  max-width: 250px;
  height: 250px;                 /* 500x500 → 250x250로 축소될 컨테이너 */
  aspect-ratio: auto !important; /* 기존 aspect-ratio 영향 제거 */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 2) a 래퍼가 크기를 꽉 채우도록 */
.penm-hot-brand-section .penm-product-thumb > a,
.penm-recommend-section .penm-product-thumb > a,
.penm-popular-section .penm-product-thumb > a,
.penm-new-section .penm-product-thumb > a{
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

/* 3) 이미지에 contain + 100% 크기 강제 (cover/absolute 잔재 완전 무력화) */
.penm-hot-brand-section .penm-product-thumb img,
.penm-recommend-section .penm-product-thumb img,
.penm-popular-section .penm-product-thumb img,
.penm-new-section .penm-product-thumb img{
  width: 100% !important;        /* 컨테이너(250px)에 맞춰 축소 */
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;/* 자르지 말고 전부 보이게 */
  object-position: center center !important;
  position: static !important;
  transform: none !important;
}

/* 4) 이미지 확대 호버 제거 */
.penm-hot-brand-section .penm-product-item:hover .penm-product-thumb img,
.penm-recommend-section .penm-product-item:hover .penm-product-thumb img,
.penm-popular-section .penm-product-item:hover .penm-product-thumb img,
.penm-new-section .penm-product-item:hover .penm-product-thumb img{
  transform: none !important;
}

/* 5) 롤오버 이미지 사용 시도 함께 리셋 */
.penm-product-thumb img.rollover,
.penm-product-thumb .rollover img{
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  position: static !important;
  transform: none !important;
}

/* 6) 반응형(선택): 높이만 줄이고 나머지 동일 동작 */
@media (max-width:1024px){
  .penm-hot-brand-section .penm-product-thumb,
  .penm-recommend-section .penm-product-thumb,
  .penm-popular-section .penm-product-thumb,
  .penm-new-section .penm-product-thumb{ height: 200px; max-width: 200px; }
}
@media (max-width:768px){
  .penm-hot-brand-section .penm-product-thumb,
  .penm-recommend-section .penm-product-thumb,
  .penm-popular-section .penm-product-thumb,
  .penm-new-section .penm-product-thumb{ height: 160px; max-width: 160px; }
}

/* =====================================================
   펜마스터 컬렉션 PC 4열 / 모바일 1열 강제 수정 - MakeShop 대응
   ===================================================== */

/* PC, 태블릿 넓은 화면 : 4열 */
@media (min-width: 769px) {

  .penm-recommend-section .penm-tab-pane.penm-active {
    display: block !important;
    width: 100% !important;
  }

  .penm-recommend-section .penm-product-grid-2row {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
  }

  /* 메이크샵이 중간 wrapper를 넣는 경우 대응 */
  .penm-recommend-section .penm-product-grid-2row > :not(.penm-product-item) {
    display: contents !important;
  }

  .penm-recommend-section .penm-product-grid-2row .penm-product-item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    box-sizing: border-box !important;
  }
}

/* 모바일 : 1열 유지 */
@media (max-width: 768px) {

  .penm-recommend-section .penm-tab-pane.penm-active {
    display: block !important;
    width: 100% !important;
  }

  .penm-recommend-section .penm-product-grid-2row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
  }

  .penm-recommend-section .penm-product-grid-2row > :not(.penm-product-item) {
    display: contents !important;
  }

  .penm-recommend-section .penm-product-grid-2row .penm-product-item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    box-sizing: border-box !important;
  }
}

/* 썸네일 영역 정리 */
.penm-recommend-section .penm-product-thumb {
  width: 100% !important;
  max-width: none !important;
  height: 250px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  background: #fff !important;
  margin-bottom: 15px !important;
  box-sizing: border-box !important;
}

.penm-recommend-section .penm-product-thumb > a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
}

.penm-recommend-section .penm-product-thumb img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  position: static !important;
  transform: none !important;
}

@media (max-width: 768px) {
  .penm-recommend-section .penm-product-thumb {
    height: 220px !important;
  }
}

/* BASIC css end */

