@charset "utf-8";

/* 전체 레이아웃 */
.shop_list_container { padding: 40px 20px; }

/* 1. 공지사항 (최상단) */
.shop_notice_section { background: #1a1a1a; border: 2px solid #57606f; border-radius: 12px; margin-bottom: 40px; overflow: hidden; }
.notice_header { background: #2f3542; color: #fff; padding: 10px 20px; font-weight: bold; font-size: 14px; }
.notice_body { padding: 20px; color: #ced4da; }
.notice_edit_area { width: 100%; height: 100px; background: #222; border: 1px solid #444; color: #fff; padding: 10px; border-radius: 6px; resize: vertical; margin-bottom: 10px; font-size: 13px; }
.btn_notice_save { background: #57606f; color: #fff; border: none; padding: 5px 15px; border-radius: 4px; cursor: pointer; font-size: 12px; }
.notice_content_view { line-height: 1.6; white-space: pre-wrap; word-break: break-all; font-size: 14px; text-align: left; }

/* 2. 분류 탭 (필터) */
.shop_category_nav { margin-bottom: 30px; text-align: center; }
.shop_category_nav ul { list-style: none; padding: 0; display: inline-flex; flex-wrap: wrap; gap: 8px; border-bottom: 2px solid #333; padding-bottom: 10px; }
.shop_category_nav li a { color: #888; text-decoration: none; font-size: 14px; padding: 6px 16px; border-radius: 4px; transition: 0.2s; }
.shop_category_nav li.active a { background: #ff4757; color: #fff; font-weight: bold; }
.shop_category_nav li a:hover { color: #ff4757; }

/* 3. 관리자 로그 */
.admin_section_box { margin-bottom: 40px; }
.btn_admin_toggle { background: #ff4757; color: #fff; border: none; padding: 10px 20px; border-radius: 50px; cursor: pointer; font-weight: bold; font-size: 13px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.admin_log_inner { background: #111; border: 1px solid #333; padding: 20px; border-radius: 12px; margin-top: 15px; }
.log_table_wrapper table { width: 100%; border-collapse: collapse; }
.log_table_wrapper td { padding: 10px; border-bottom: 1px solid #222; color: #ccc; font-size: 13px; }
.btn_log_action { padding: 3px 8px; border-radius: 4px; text-decoration: none; font-size: 11px; font-weight: bold; margin-right: 4px; display: inline-block; }
.btn_log_action.return { background: #ff4757; color: #fff; }
.btn_log_action.delete { background: #555; color: #ccc; }

/* 4. 내 인벤토리 */
.inventory_section { margin-bottom: 50px; }
.inv_btn_center { text-align: center; margin-bottom: 15px; }
.btn_inventory_large { background: #fff; color: #000; border: none; padding: 15px 40px; font-size: 16px; font-weight: bold; border-radius: 50px; cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.inventory_white_box { background: #fff; border-radius: 15px; padding: 30px; box-shadow: 0 15px 40px rgba(0,0,0,0.1); margin-top: 15px; }
.box_title_dark { color: #333; border-bottom: 2px solid #eee; padding-bottom: 10px; margin-bottom: 20px; font-size: 18px; text-align: left; }
.inventory_grid_4 { display: flex; flex-wrap: wrap; gap: 20px; justify-content: flex-start; }
.inv_item_card { width: 200px; text-align: center; }
.img_box_200 { width: 200px; height: 200px; border: 1px solid #eee; position: relative; overflow: hidden; border-radius: 8px; background: #fff; }
.img_box_200 img { width: 100%; height: 100%; object-fit: contain; }
.inv_item_name { color: #333; font-weight: bold; margin-top: 10px; font-size: 15px; }

/* 5. 아이템 리스트 그리드 (가로 4개) */
.shop_item_grid_4col { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; max-width: 950px; margin: 0 auto; }
.item_card_200 { width: 200px; position: relative; margin-bottom: 30px; }
.img_container_200 { width: 200px; height: 200px; background: #1a1a1a; border: 1px solid #333; border-radius: 10px; overflow: hidden; position: relative; }
.main_img { width: 100%; height: 100%; object-fit: contain; }
.random_box_wrap { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 50px; font-weight: 900; color: #fff; background: #333; }

/* 6. 버튼 (설정보기, 원본보기) */
.btn_setup_view { position: absolute; bottom: 38px; right: 8px; background: #3498db; color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 10px; text-decoration: none; z-index: 10; font-weight: bold; }
.btn_zoom { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.6); color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 10px; text-decoration: none; z-index: 10; }

/* 7. 상세 설명 호버 (중앙 정렬 및 서식 유지) */
.hover_description, .inv_hover_desc { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(255,255,255,0.98); color: #000; padding: 15px; 
    display: flex; align-items: center; justify-content: center; text-align: center !important; 
    opacity: 0; transition: 0.3s; z-index: 5; pointer-events: none; box-sizing: border-box; 
    white-space: pre-wrap; font-size: 13px; line-height: 1.5; 
}
.img_container_200:hover .hover_description, .img_box_200:hover .inv_hover_desc { opacity: 1; pointer-events: auto; }

/* 8. 품절 오버레이 */
.is_soldout .img_container_200 { filter: grayscale(100%); }
.soldout_overlay_red { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 20; }
.soldout_overlay_red p { color: #ffffff !important; font-weight: 900; font-size: 22px; text-align: center; line-height: 1.3; text-shadow: 2px 2px 8px #000; margin: 0; }

/* 9. 텍스트 정보 및 구매 버튼 (간격 조정 적용) */
.info_container { padding: 25px 0 10px; } /* 상단 여백 12px -> 25px로 증가 */
.item_name_large { font-size: 20px !important; color: #fff; margin: 0 0 12px; font-weight: bold; text-align: left; line-height: 1.4; } /* 하단 마진 5px -> 12px로 증가 */
.stock_status { color: #fff !important; font-size: 13px; font-weight: bold; text-align: left; display: block; margin-bottom: 8px; }
.item_meta_row { margin-bottom: 10px; }
.btn_buy_rect { display: block; width: 100%; padding: 12px 0; background: #333; color: #fff; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; margin-top: 15px; text-decoration: none; text-align: center; font-size: 14px; } /* 상단 마진 10px -> 15px로 증가 */
.btn_buy_rect:hover { background: #ff4757; }
.btn_buy_rect.disabled { background: #222; color: #555; cursor: not-allowed; }

/* 10. 관리자 도구 (수정/삭제/등록) */
.admin_item_manage { margin-top: 12px; display: flex; gap: 4px; }
.manage_btn { flex: 1; text-align: center; padding: 4px; font-size: 11px; border-radius: 3px; text-decoration: none; font-weight: bold; color: #fff; }
.manage_btn.edit { background: #3498db; }
.manage_btn.del { background: #e74c3c; }
.admin_action_footer { margin-top: 60px; text-align: center; }
.btn_admin_add { background: #ff4757; color: #fff; padding: 15px 40px; border-radius: 50px; text-decoration: none; font-weight: bold; font-size: 15px; box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4); display: inline-block; }

/* 11. 추가 메시지 (비밀 메시지) */
.secret_note { margin-top: 10px; color: #ff4757; font-weight: bold; font-size: 11px; text-align: center; width: 100%; }
.secret_note hr { border: none; border-top: 1px dashed #ddd; margin: 8px 0; }