@charset "UTF-8";
.shop-wrap, .shop-wrap * {
  box-sizing: border-box;
}
.shop-wrap {
  background: url('/img/shop/shop_frame.png');
  background-repeat: no-repeat;
  width: 1145px;
  height: 791px;
  
  position: relative;
  left: 50%;
  transform: translate(-50%, 0);

  display: flex;
  justify-content: space-between;
}

.layout-wrap, .page-right {
  overflow: visible !important;
}

/*********************************
	page left 
**********************************/
#shop_page {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  justify-content: space-between;

  width: 477px;
  height: 667px;
}

#shop_npc {
  z-index: 1;
  text-align: center;
  width: 100%;
  padding-top: 22px;
}
#shop_npc::after {
  content: url('/img/shop/shop_frame_1.png');
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}
#shop_npc .img-wrap {
  margin: 0 12px;
  overflow: hidden;
}
#shop_npc img {
  max-width: none;
  width: 116%;
  margin-left: -34px;
}
.npc-talk {
  display: flex;

  width: 100%;
  height: 178px;
  padding: 50px 70px;
  color: #ffffff;
  font-family: 'galmuri14', sans-serif;
  font-size: 14px;
}
.npc-talk span {
  margin-left: 8px;
}
.npc-content {
  align-content: center;
  text-align: center;
}

.npc-name {
  position: absolute;
  top: 10px;
  z-index: 99;
  font-family: 'galmuri14', sans-serif;
  color: #ffffff;
  font-weight: bold;
  font-size: 20px;
  line-height: normal;
}

#shop_npc .npc-content {
  overflow-y: auto;
}

#shop_cate {
  overflow: hidden;
  position: absolute;
  right: -18px;
  top: 160px;
  z-index: 99;
}

#shop_cate ul {
  display: block;
  overflow: hidden;
}

#shop_cate li {
  margin-bottom: 8px;
}


/******************************************
	page right
*******************************************/
.page-right {
  position: relative;
  width: 608px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 80px;
  padding-top: 136px;
}
.shop-title {
  position: absolute;
  top: 10px;
  font-family: 'galmuri14', sans-serif;
  color: #ffffff;
  font-weight: bold;
  font-size: 20px;
  line-height: normal;
  text-transform: uppercase;
  letter-spacing: 8px;
}

#item_list_box {
  width: 100%;
}

#shop_item_list > ul {
  position: relative;
  display: grid;
  grid-template: repeat(3, 81px)/repeat(5, 81px);
  justify-content: center;
  gap: 10px;
}

#shop_item_list > ul li {
  display: inline-block;
  position: relative;
  text-align: center;
  font-size: 11px;
  text-align: center;

  background-image: url('/img/shop/shop_item_frame.png');
}

#shop_item_list li a {
  display: block;
  position: relative;
  width: 81px;
  height: 81px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#shop_item_list li a.now-item::after {
  content: url("../img/shop/sel.gif");
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

#shop_item_list li span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/******************************************
	페이지네이션
*******************************************/
.inven-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
}

.pg_wrap .pg_page:not(.pg_start,.pg_end){
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 27px;
  height: 27px;
  width: 26px;
  padding: 0 4px;
  font-family: 'galmuri14';
  font-size: 12px;
  font-weight: bold;
  color: #ffffff;
  background-color: #282828;
  border: 1px solid #C0A463;
  text-decoration: none;
  line-height: 1;
  box-sizing: border-box;
}
.pg_wrap .pg_control:before {
  top: 6px;
}

.pg_wrap .pg_page:hover {
  color: #ffffff !important;
  border-color: #C0A463 !important;
  background-color: #695f49 !important;
}

.pg_wrap .pg_current {
  color: #ffffff;
  background-color: #C0A463 !important;
  border-color: #C0A463 !important;
  font-weight: bold !important;
  pointer-events: none !important;
}


/******************************************
	아이템 정보 출력
*******************************************/
#item_info { 
  width: 459px;
  height: 202px;
  background: url("/img/shop/shop_desc.png") no-repeat; 
  padding: 36px;
}

#item_info .type-item { 
  color: #fff; 
  height: 100%; 
}

#item_info .type-item .item-name {
  font-family: "Galmuri14", sans-serif;
  line-height: 1;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
}
#item_info .type-item .item-name span.name {
  font-size: 26px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #F0B863;
  font-weight: bold;
}
#item_info .type-item .item-name span.price {
  font-size: 16px;
  flex-shrink: 0;
}
#item_info .type-item .item-name span.price img {
  margin-right: 6px;
}
#item_info .type-item .item-con {
  position: relative;
}
#item_info .type-item .item-content {
  font-family: "Galmuri14", sans-serif;
  font-size: 14px;
  height: 56px;
  margin-bottom: 8px;
  overflow-y: auto;
}
#item_info .type-item a.ui-btn {
  appearance: none;
  float: right;
  font-family: "Galmuri14", sans-serif;
  font-weight: bold;
  width: 100px;
  height: 29px;
  color: #000000;
  background-color: #C1A462;
  border: 1px solid #C1A462;
}

#item_simple_viewer {
  position: relative;
}

#item_simple_viewer .item-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
}

#item_simple_viewer .item-name {
  margin-left: 60px;
  min-height: 50px;
  font-size: 16px;
  padding: 5px 0;
  font-weight: 600;
  box-sizing: border-box;
}

#item_simple_viewer .item-name sup {
  display: block;
  margin: 0;
  padding-top: 4px;
  font-size: 12px;
}

#item_simple_viewer .item-content {
  padding: 15px 0;
  font-size: 11px;
}


/*********************************
	인벤토리 리스트
**********************************/
#item_inven {
  width: 348px;
}

#item_inven ul.inventory-list {
  overflow-x: auto;
  height: 78px;
  padding-bottom: 0;
  grid-auto-flow: column;
}

#item_inven ul.inventory-list::-webkit-scrollbar {
  height: 2px;
  background: transparent;
}

#item_inven ul.inventory-list::-webkit-scrollbar-track {
  background: transparent;
}

#item_inven ul.inventory-list::-webkit-scrollbar-thumb {
  background: rgba(107, 84, 73, 0.5);
}

#item_inven ul.inventory-list:hover::-webkit-scrollbar-thumb {
  background: rgb(107, 84, 73);
}

#item_inven li.inven-item {
  pointer-events: auto;
}

#item_inven li.inven-item * {
  /* display: block; */
  -webkit-user-drag: none;
  user-select: none;
}

#item_inven .active li.inven-item a {
  pointer-events: none;
}

#item_money {
  margin-top: auto;
  align-self: flex-end;
  text-align: right;
  font-style: italic;
  font-size: 20px;
}

/* @media all and (max-width: 640px) {

  #item_info {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    z-index: 9;
  }
  #body .fix-layout {
    padding: 0;
  }
  #shop_page {
    height: auto;
    padding: 10px;
  }
  #item_list_box {
    margin-left: 0;
  }
} */